answer
stringlengths
17
10.2M
package com.toomasr.sgf4j.parser; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * Computes the visual depth for the game nodes. The visual * depth designates as how deep in the tree should the line be * shown if a GUI is being used. I should move this helper to * sgf4j-gui projec...
package de.berlin.hu.uima.ae.normalizer; import de.berlin.hu.chemspot.ChemSpotConfiguration; import de.berlin.hu.chemspot.ChemSpotConfiguration.Component; import de.berlin.hu.util.Constants; import de.berlin.hu.util.Constants.ChemicalID; import groovyNormalizerBeans.NameNormalizer; import org.apache.uima.UimaContext; i...
package de.codescape.bitvunit.ruleset; import com.gargoylesoftware.htmlunit.html.HtmlPage; import de.codescape.bitvunit.rule.Rule; import de.codescape.bitvunit.rule.Violation; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class BasicRuleSet implements RuleSet { private List...
package de.fau.cs.mad.kwikshop.common; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import de.fau.cs.mad.kwikshop.common.interfaces.DomainObject; import de.fau.cs.mad.kw...
package de.haw.rnp.messageticker.view; import de.haw.rnp.messageticker.model.Message; import javax.swing.*; import javax.swing.border.BevelBorder; import javax.swing.text.DefaultCaret; import java.awt.*; import java.awt.event.ActionListener; /** * The view for displaying all messages and the basic chat functionality. ...
package org.fedoraproject.fedmsg; import org.zeromq.ZMQ; import java.io.IOException; /** * Connect to a fedmsg bus. * * @author Ricky Elrod * @version 1.0.0 */ public final class FedmsgConnection { private final String endpoint; private final int linger; private ZMQ.Socket sock; private ZMQ.Context...
package edu.hm.hafner.analysis.parser; import java.nio.file.Paths; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Stream; import org.apache.commons.lang3.EnumUtils; import org.apache.commons.lang3.StringUtils; import edu.hm.hafner.analysis.Issue; import...
package fi.helsinki.cs.tmc.cli.command; import fi.helsinki.cs.tmc.cli.Application; import fi.helsinki.cs.tmc.cli.core.AbstractCommand; import fi.helsinki.cs.tmc.cli.core.CliContext; import fi.helsinki.cs.tmc.cli.core.Command; import fi.helsinki.cs.tmc.cli.core.CommandFactory; import fi.helsinki.cs.tmc.cli.io.Io; import...
package org.jvalue.ceps.esper; import java.io.IOException; import java.util.LinkedList; import java.util.List; import org.jvalue.ceps.utils.Assert; import org.jvalue.ceps.utils.Log; import com.espertech.esper.client.EventBean; import com.espertech.esper.client.EventType; import com.espertech.esper.client.UpdateListener...
package fr.insee.rmes.modeles.operations; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.StringUtils; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fas...
package info.gehrels.voting; import com.google.common.base.Function; import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap.Builder; import com.google.common.collect.ImmutableSet; ...
package org.lantern; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.net.InetAddress; import java.net.InetSocketAddress; import java.security.KeyStore; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.concurrent.Conc...
package ru.artyushov.jmhPlugin.configuration; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiIdentifier; import com.intellij.psi.PsiMethod; import org.jetbrains.annotations.NotNull; public class ConfigurationUtils { public static final String SETUP_ANNOTATION = "org...
package net.afterlifelochie.fontbox.render; import net.afterlifelochie.fontbox.api.data.IBookProperties; import net.afterlifelochie.fontbox.api.layout.IIndexed; import net.afterlifelochie.fontbox.api.formatting.PageMode; import net.afterlifelochie.fontbox.api.formatting.layout.Layout; import net.afterlifelochie.fontbox...
package org.lifenoodles.jargparse; import org.lifenoodles.jargparse.parsers.OptionParser; import java.util.ArrayList; import java.util.List; import java.util.function.Predicate; class OptionValidator { private final String description; private final List<String> names; private final OptionParser optionParse...
package org.minimalj.repository.sql; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Link...
package net.dean.jraw.pagination; import net.dean.jraw.*; import net.dean.jraw.models.Sorting; import net.dean.jraw.models.core.Listing; import net.dean.jraw.models.core.Thing; import java.util.HashMap; import java.util.Map; /** * Represents the basic concept of a paginator * * @param <T> The type that the listing w...
package org.nusco.narjillos.core.utilities; import java.lang.reflect.Field; import java.util.Random; import java.util.concurrent.atomic.AtomicLong; /** * Generates numbers (mostly pseudo-random ones). * <p> * A bit like java.math.Random, but strictly deterministic. You must give it a * seed during construction, and...
package org.nustaq.offheap.bytez.onheap; import org.nustaq.offheap.bytez.BasicBytez; import org.nustaq.offheap.bytez.Bytez; import org.nustaq.offheap.bytez.malloc.MallocBytez; import org.nustaq.serialization.util.FSTUtil; import sun.misc.Unsafe; /** * byte array abstraction based on heap byte arrays */ public class H...
package org.b3log.symphony.processor; import com.qiniu.util.Auth; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.time.DateFormatUtils; import org.b3log.latke.Keys; import org.b3log.latke.ioc.inject.Inject; import org.b3log.latke.logging.Level; import org.b3log.latke.logging.Logger; import or...
package org.owasp.esapi.reference; import java.util.HashMap; import org.apache.log4j.Level; import javax.servlet.http.HttpSession; import org.owasp.esapi.ESAPI; import org.owasp.esapi.LogFactory; import org.owasp.esapi.Logger; import org.owasp.esapi.User; public class Log4JLogFactory implements LogFactory { private...
package soot.jimple.infoflow.android.resources; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import pxb.android.axml.AxmlReader; import pxb.android.axml.AxmlVisitor; import px...
/** Khalid */ package org.sikuli.slides.uis; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing....
package org.cruk.mga; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; /** * Class providing a mapping between r...
package org.stefanl.closure_cli; import com.esotericsoftware.yamlbeans.YamlConfig; import com.esotericsoftware.yamlbeans.YamlException; import com.esotericsoftware.yamlbeans.YamlReader; import com.esotericsoftware.yamlbeans.YamlWriter; import com.google.common.base.Function; import com.google.common.collect.ImmutableLi...
package com.github.ocelotwars.service; import static org.hamcrest.Matchers.notNullValue; import static org.hamcrest.Matchers.nullValue; import static org.junit.Assert.assertThat; import static org.mockito.Mockito.times; import static java.util.Collections.singletonList; import static org.mockito.Mockito.verify; import ...
package org.zooper.becuz.restmote.utils; import org.zooper.becuz.restmote.model.App; import org.zooper.becuz.restmote.model.MediaCategory; import org.zooper.becuz.restmote.model.Settings; import org.zooper.becuz.restmote.rest.resources.PcResource; /** * Defined constants used in all application * @author bebo */ pub...
package org.geoint.gf.audit.log.jul; import java.io.IOException; import java.util.logging.FileHandler; import java.util.logging.Level; import java.util.logging.Logger; import org.geoint.gf.audit.log.AuditAttribute; import org.geoint.gf.audit.log.AuditCategory; import org.geoint.gf.audit.log.AuditLogger; import org.geoi...
package pl.mkrystek.mkbot.message; import static com.google.common.collect.Lists.newArrayList; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
package org.graylog2.plugins.slack; import com.google.common.base.CharMatcher; import org.graylog2.plugin.configuration.Configuration; import org.graylog2.plugin.configuration.ConfigurationException; import org.graylog2.plugin.configuration.ConfigurationRequest; import org.graylog2.plugin.configuration.fields.BooleanFi...
package refinedstorage.inventory; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.items.ItemStackHandler; public class BasicItemHandler extends ItemStackHandler { private TileEntity tile; private IItemValidator[] validators; public BasicItemHandler(...
// of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // all copies or substanti...
package org.javarosa.core.services; import org.javarosa.core.services.properties.IPropertyRules; import org.javarosa.core.services.properties.Property; import org.javarosa.core.services.storage.IStorageUtilityIndexed; import org.javarosa.core.services.storage.StorageManager; import java.util.Enumeration; import java.ut...
package ro.satrapu.jeedeploytocloud; import javax.annotation.Resource; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; impor...
package com.wolfninja.keystore.redis; import java.util.Optional; import org.easymock.EasyMock; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import com.wolfninja.keystore.api.Keyspace; import redis.clients.jedis.JedisPool; @SuppressWarnings("javadoc") @Test pu...
package org.kuali.kfs.coa.businessobject; import java.util.logging.Logger; public class FundGroup { protected String code; protected String name; protected boolean active = true; private String financialReportingSortCode; private String fundGroupBudgetAdjustmentRestrictionLevelCode; private stat...
package org.leibnizcenter.rechtspraak.crf; import cc.mallet.fst.*; import cc.mallet.pipe.Pipe; import cc.mallet.pipe.TokenSequence2FeatureVectorSequence; import cc.mallet.types.*; import cc.mallet.util.CommandOption; import org.leibnizcenter.rechtspraak.features.Features; import org.leibnizcenter.rechtspraak.tokens.*; ...
package de.ids_mannheim.korap.index; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import org.apache.lucene.store.MMapD...
package org.lightmare.jpa.datasource.c3p0; import java.beans.PropertyVetoException; import java.io.IOException; import java.sql.SQLException; import java.util.Map; import java.util.Properties; import javax.naming.Context; import javax.sql.DataSource; import org.lightmare.jpa.datasource.InitDataSource; import org.lightm...
package seedu.emeraldo.logic.commands; /** * Lists all persons in the address book to the user. */ public class ListCommand extends Command { public static final String COMMAND_WORD = "list"; public static final String MESSAGE_SUCCESS = "Listed all tasks"; public ListCommand() {} @Override public ...
package hudson.remoting; import org.junit.After; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Random; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUn...
package org.lognavigator.controller; import static org.lognavigator.util.Constants.*; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Set; import org.lognavigator.bean.Breadcrumb; import org.lognavigator.bean.FileInfo; import org.lognavigator.bean...
package techreborn.compat.recipes; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLServerStartingEvent; import forestry.api.arboriculture.EnumWoodType; im...
package org.mbari.m3.vars.annotation; import io.reactivex.Observable; import javafx.application.Platform; import javafx.collections.ObservableList; import javafx.scene.Scene; import javafx.scene.control.Alert; import javafx.scene.control.TableView; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyCodeCom...
package org.minimalj.transaction.criteria; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class Criteria implements Serializable { private static final long serialVersionUID = 1L; // TODO: check for recursion? public Criteria and(Criteria other) { if (other !=...
package us.myles.ViaVersion.slot; import io.netty.buffer.ByteBuf; import org.bukkit.Material; import org.spacehq.opennbt.tag.builtin.CompoundTag; import org.spacehq.opennbt.tag.builtin.StringTag; import us.myles.ViaVersion.CancelException; import us.myles.ViaVersion.util.PacketUtil; import java.io.IOException; import j...
package org.kaazing.qpid.amqp_1_0.jms; import static javax.jms.Session.AUTO_ACKNOWLEDGE; import static javax.jms.Session.CLIENT_ACKNOWLEDGE; import static javax.jms.Session.DUPS_OK_ACKNOWLEDGE; import org.apache.qpid.amqp_1_0.jms.Connection; import org.apache.qpid.amqp_1_0.jms.ConnectionFactory; import org.apache.qpid....
package reborncore.common.recipes; import net.minecraft.item.ItemStack; import net.minecraft.util.NonNullList; import net.minecraftforge.oredict.OreDictionary; import javax.annotation.Nullable; public class RecipeTranslator { public static @Nullable ItemStack getStackFromObject(Object object) { if (...
package org.takes.servlet; import java.io.IOException; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletResponse; import org.cactoos.text.FormattedText; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; import org.takes.rs.RsEmpty; import org.takes.rs.RsWithHe...
package romelo333.notenoughwands.proxy; import mcjty.lib.setup.DefaultCommonSetup; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml...
package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; import org.traccar.model.Position; public class T800xProtocolDecoderTest extends ProtocolTest { @Test public void testDecode() throws Exception { T800xProtocolDecoder decoder = new T800xProtocolDecoder(null); v...
package selling.sunshine.controller; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.f...
package org.usfirst.frc.team5806.robot; import edu.wpi.first.wpilibj.Counter; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.Victor; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class GearHalf extends Subsystem { public enum GearState { MOVING, OFF, FAST_CALIBR...
package unal.architecture.test.integration; import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; import org.junit.*; import org.junit.rules.ExpectedException; import unal.architecture.entity.Credentials; import unal.architecture.entity.User; import javax.naming.NamingException; import javax.ws.rs.client.Client;...
package shadow.doctool.output; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashSet; import j...
package com.smartnsoft.droid4me.app; import java.util.List; import android.app.Activity; import android.app.Fragment; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.view.Menu; import android.view.MenuInflater; import android.v...
package stexfires.core.modifier; import stexfires.core.Record; import java.util.Comparator; import java.util.List; import java.util.Objects; import java.util.function.Function; import java.util.function.Predicate; /** * @author Mathias Kalb * @since 0.1 */ public class UnaryGroupModifier<T extends Record> extends Gr...
package tw.kewang.logback.appender; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.Layout; import ch.qos.logback.core.UnsynchronizedAppenderBase; import ch.qos.logback.core.encoder.LayoutWrappingEncoder; import com.taskadapter.redmineapi.IssueManager; import com.taskadapter.redmineapi.Redmi...
package valandur.webapi.message; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.spongepowered.api.text.Text; import org.spongepowered.api.text.serializer.TextSerializers; import valandur.webapi.cache.CachedObject; im...
package yanagishima.servlet; import yanagishima.config.YanagishimaConfig; import yanagishima.util.AccessControlUtil; import yanagishima.util.HttpRequestUtil; import yanagishima.util.SparkUtil; import yanagishima.util.YarnUtil; import javax.inject.Inject; import javax.inject.Singleton; import javax.servlet.ServletExcept...
package me.blackphreak.dynamicdungeon.MapBuilding; import com.boydti.fawe.FaweAPI; import com.sk89q.worldedit.EditSession; import com.sk89q.worldedit.Vector; import com.sk89q.worldedit.bukkit.selections.CuboidSelection; import com.sk89q.worldedit.extent.clipboard.Clipboard; import com.sk89q.worldedit.extent.clipboard.i...
package org.openspaces.grid.esm; import org.openspaces.admin.machine.Machine; public interface ElasticScaleHandler { /** * An initialization call, parameterized with the configuration used at deployment. * @param config The scale configuration. */ public void init(ElasticScaleHandlerConfig config...
package musician101.itembank.commands.ibcommand; import musician101.itembank.ItemBank; import musician101.itembank.lib.Commands; import musician101.itembank.lib.Messages; import org.bukkit.command.CommandSender; /** * The code used when the Help argument is used in the ItemBank command. * * @author Musician101 */ p...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package net.colar.netbeans.fan.handlers; import java.util.Collections; import java.util.List; import java.util.regex.Pattern; import javax.swing.text.BadLocationException; import javax.swing.text.Caret; import javax.swin...
package org.adligo.models.core.relations.client; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Set; import org.adligo.models.core.client.EMailAddress; import org.adligo.models.core.client.I_StorageInfo; import org.adligo.models.core.client.InvalidParameterExceptio...
package com.eqt.ssc.web.rest; import java.util.ArrayList; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.w...
package org.aikodi.chameleon.oo.expression; import java.lang.ref.SoftReference; import java.util.List; import org.aikodi.chameleon.core.Config; import org.aikodi.chameleon.core.declaration.Declaration; import org.aikodi.chameleon.core.lookup.DeclarationCollector; import org.aikodi.chameleon.core.lookup.DeclarationSelec...
package com.structurizr.example; import com.structurizr.Workspace; import com.structurizr.api.StructurizrClient; import com.structurizr.documentation.Format; import com.structurizr.documentation.StructurizrDocumentationTemplate; import com.structurizr.model.*; import com.structurizr.util.MapUtils; import com.structuriz...
package rhomobile.mapview; import java.io.IOException; import java.io.InputStream; import java.util.Enumeration; import java.util.Hashtable; import java.util.Vector; import com.rho.RhoClassFactory; import com.rho.RhoConf; import com.rho.RhoEmptyLogger; import com.rho.RhoLogger; import com.rho.net.IHttpConnection; impor...
package com.jenzz.buildconstants.sample; import android.content.res.Resources; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { @SuppressWarnings("unused") @Override protected void onCreate(...
package org.biojava.spice.manypanel.renderer; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Composite; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.geom.GeneralPath; import java.util.HashMap; import java.util.Iterator; import java.util.Ma...
package org.jobimtext.example.demo; import java.io.IOException; import java.util.*; import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; import javax.swing.tree.DefaultMutableTreeNode; import org.apache.commons.lang.math.NumberUtils; import org.apache.uima.jcas.tcas.Annotation; i...
package org.securegraph.test; import org.apache.commons.io.IOUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.securegraph.*; import org.securegraph.mutation.ElementMutation; import org.securegraph.property.Propert...
package org.opencms.ade.configuration; import org.opencms.ade.detailpage.CmsDetailPageInfo; import org.opencms.db.CmsPublishedResource; import org.opencms.db.CmsResourceState; import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.file.CmsResourceFilter; import org.opencms.file.types...
package org.opencms.ade.contenteditor; import com.alkacon.acacia.shared.AttributeConfiguration; import com.alkacon.acacia.shared.TabInfo; import com.alkacon.acacia.shared.Type; import com.alkacon.vie.shared.I_Type; import org.opencms.ade.contenteditor.CmsContentTypeVisitor.DisplayTypeEvaluator; import org.opencms.ade.c...
package io.druid.server.coordinator; import com.google.common.base.Function; import com.google.common.base.Predicate; import com.google.common.base.Throwables; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import com.google.common.col...
package org.zanata.action; import java.util.HashSet; import java.util.Set; import org.hibernate.CacheMode; import org.hibernate.FlushMode; import org.hibernate.ScrollMode; import org.hibernate.ScrollableResults; import org.hibernate.Transaction; import org.hibernate.search.FullTextSession; import org.hibernate.search.a...
package org.shujito.addressbook.test; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import org.shujito.addressbook.AddressBookApplication; import org.shujito.addressbook.controller.AddressBookApiController; import org.shujito.addressbook.controller.exception.Lo...
package org.skyve.impl.web; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.skyve.EXT; import org.skyve.impl.persistence.hibernate.AbstractHibernatePersistence; import org.skyve.impl.persistence.hibernate.dialect.SkyveDialect; import org...
package org.slc.sli.api.config; import java.util.Collection; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.Map; import javax.annotation.PostConstruct; import org.slc.sli.dal.repository.EntityRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.bean...
package org.yi.happy.archive.file_system; import java.io.File; import java.io.IOException; /** * Experiment with {@link RealFileSystem}. */ public class RealFileSystemPlay { /** * experiement with {@link RealFileSystem}. * * @param args * @throws IOException */ public static void main...
package choco.kernel.common.util.procedure; import solver.exception.ContradictionException; import java.io.Serializable; /** * A class that permits to execute a embeded "function" * @param <E> */ public interface Procedure<E> extends Serializable { /** * Action to execute in a <code>Delta</code> object, wit...
package etomica.dcvgcmd; import etomica.atom.IAtom; import etomica.box.Box; import etomica.potential.IPotential1; import etomica.space.Boundary; import etomica.space.Vector; /** * This acts as a 1-body WCA potential wall perpendicular to the z direction * with a hole. The size and placement of the hole can be set. ...
package etomica.util.numerical; import etomica.util.FunctionDifferentiable; public class BisectionMethodMinimumBracket { public BisectionMethodMinimumBracket(){ } public double[] mnbrak(double[] x, FunctionDifferentiable function){ double GOLD = 1.618034; double GLIMIT = 100.0; doubl...
package com.intellij.codeInsight.problems; import com.intellij.openapi.compiler.CompileScope; import com.intellij.openapi.compiler.CompilerMessage; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.problems.WolfTheProblemSolver; import com.intellij.problems.Problem; import com.intellij.ide.projectView.Pr...
package org.jasig.portal.security.provider; import java.io.Serializable; import java.util.Comparator; import java.util.Enumeration; import java.util.Vector; import org.jasig.portal.PropertiesManager; import org.jasig.portal.security.IAdditionalDescriptor; import org.jasig.portal.security.IOpaqueCredentials; import org....
package net.milanaleksic.winlauncher; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.channels.FileLock; import java.util.ArrayList; import java.util.List; import java.util.Map; public class WinLauncherUtil { private static final String CONFIGURATION_FILENAME = ".la...
package org.xtreemfs.osd.stages; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import org.xtreemfs.common.Capability; import org.xtreemfs.common.xloc.XLocations; import org.xtreemfs.foundation.LRUCache; import org.xtreemfs.foundation.TimeSync; import org.xt...
package org.jasig.portal; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.apac...
package org.broadinstitute.sting.gatk.refdata; import org.broadinstitute.sting.utils.GenomeLoc; import org.broadinstitute.sting.utils.StingException; import org.broadinstitute.sting.utils.genotype.DiploidGenotype; import org.broadinstitute.sting.utils.genotype.Genotype; import org.broadinstitute.sting.utils.genotype.Va...
package com.dqc.qlibrary.utils; import com.apkfuns.logutils.LogUtils; /** * Android * * @author DragonsQC */ public class QLog { public static void init(boolean configAllowLog, String configTagPrefix) { LogUtils.getLogConfig() .configAllowLog(configAllowLog) .configTagPre...
package net.ossrs.yasea; import android.media.MediaCodec; import android.media.MediaFormat; import android.util.Log; import com.github.faucamp.simplertmp.DefaultRtmpPublisher; import com.github.faucamp.simplertmp.RtmpHandler; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.concurrent.Concurrent...
package com.jme3.water; import com.jme3.asset.AssetManager; import com.jme3.export.InputCapsule; import com.jme3.export.JmeExporter; import com.jme3.export.JmeImporter; import com.jme3.export.OutputCapsule; import com.jme3.light.DirectionalLight; import com.jme3.light.Light; import com.jme3.material.Material; import co...
package com.newsblur.activity; import android.os.Bundle; import android.app.FragmentManager; import android.text.TextUtils; import android.util.Log; import android.view.KeyEvent; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnKeyListener; import android.widg...
package com.datatorrent.stram; import java.io.IOException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.GnuP...
package scalac.atree; import java.util.List; import java.util.ArrayList; import scalac.Unit; import scalac.ast.Tree; import scalac.ast.Tree.Ident; import scalac.ast.Tree.Template; import scalac.symtab.Definitions; import scalac.symtab.Symbol; import scalac.util.Debug; /** This class translates syntax trees into attribu...
package com.ysu.zyw.tc.api.test; import com.ysu.zyw.tc.api.dao.mappers.TcItemMapper; import com.ysu.zyw.tc.api.svc.items.TcItemService; import lombok.extern.slf4j.Slf4j; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.index.query...
// todo: (0) propagate target type in cast. // todo: eliminate Typed nodes. // todo: use SELECTOR flag to avoid access methods for privates // todo: use mangled name or drop. // todo: emit warnings for unchecked. // todo: qualified super. // todo: pattern definitions with 0 or 1 bound variable. // todo: phase sync pack...
package com.tectonica.jonix; import org.junit.Test; import repackaged.com.csvreader.CsvWriter; import java.io.IOException; import java.io.StringWriter; import java.util.Arrays; import java.util.List; /** * @author Zach Melamed * @since 1/23/2018 */ public class CsvWriterTest { @Test public void testCsvWriter...
// checkstyle: Checks Java source code for adherence to a set of rules. // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...