answer
stringlengths
17
10.2M
package com.philihp.weblabora.model; import static com.philihp.weblabora.model.TerrainTypeEnum.*; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.List; import com.philihp.weblabora.model.building.*; public class CommandUse implements MoveCommand, InvalidDuringS...
package com.redhat.ceylon.compiler.js; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.nio.channels.FileChannel; import ja...
package com.softserverinc.edu.entities; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import javax.persistence.*; import java.util.Date; @Enti...
package com.stackmob.customcode; import com.stackmob.core.InvalidSchemaException; import com.stackmob.core.DatastoreException; import com.stackmob.core.customcode.CustomCodeMethod; import com.stackmob.core.rest.ProcessedAPIRequest; import com.stackmob.core.rest.ResponseToProcess; import com.stackmob.sdkapi.SDKServicePr...
package com.tterrag.k9.mappings.srg; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import org.apache.commons.io.IOUtils; import com.google.common.base.Charsets; import com.go...
package com.wrapper.spotify; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.wrapper.spotify.exceptions.SpotifyWebApiException; import com.wrapper.spotify.exceptions.detailed.*; import org.apache.http.*; import org.apache.http.auth.AuthScope; import org.apache.http.auth.UsernamePassword...
package com.xiaogua.better.file; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.Input...
package de.linkvt.bachelor.config; import de.linkvt.bachelor.web.converters.message.FunctionalSyntaxHttpMessageConverter; import de.linkvt.bachelor.web.converters.message.ManchesterSyntaxHttpMessageConverter; import de.linkvt.bachelor.web.converters.message.OntologySyntax; import de.linkvt.bachelor.web.converters.messa...
package edu.columbia.tjw.item.algo; import java.io.Serializable; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; /** * Code cloned from streaminer project, and updated to use more primitives for performance reasons. * <p> * Original javadoc follows. * <p> * This class is an implemen...
package edu.neu.ccs.pyramid.eval; import java.util.stream.IntStream; public class MicroMeasures extends LabelBasedMeasures { /** * Construct function: initialize each variables. * * @param numLabels */ public MicroMeasures(int numLabels) { super(numLabels); } /** * Retur...
package function.coverage.comparison; import function.annotation.base.Gene; import function.annotation.base.Exon; import function.coverage.base.CoverageCommand; import function.genotype.base.SampleManager; import global.Data; import utils.LogManager; import java.util.ArrayList; import java.util.Collections; import java...
package org.duracloud.sync; import org.duracloud.sync.backup.SyncBackupManager; import org.duracloud.sync.config.SyncToolConfig; import org.duracloud.sync.config.SyncToolConfigParser; import org.duracloud.sync.endpoint.DuraStoreChunkSyncEndpoint; import org.duracloud.sync.endpoint.SyncEndpoint; import org.duracloud.syn...
package io.github.data4all.model.drawing; /** * A Point is a Object that can hold an x and y coordinate There is no further * logic in this class * * @author tbrose */ public class Point { private final float x; private final float y; public Point(float x, float y) { this.x = x; this.y ...
package thredds.server.wms; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.AbstractController; import org.simpleframework.xml.load.Persister; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletExceptio...
package io.sigpipe.sing.stat; public class SummaryStatistics { private long num; private double min; private double max; private double mean; private double std; private double var; public SummaryStatistics(RunningStatistics rs) { this.num = rs.n(); this.min = rs.min(); ...
package jfdi.ui.commandhandlers; import java.util.ArrayList; import java.util.Comparator; import java.util.logging.Logger; import com.google.common.eventbus.Subscribe; import edu.emory.mathcs.backport.java.util.Collections; import jfdi.common.utilities.JfdiLogger; import jfdi.logic.events.AddTaskDoneEvent; import jfdi....
package me.nallar.modpatcher; import net.minecraft.launchwrapper.ITweaker; import net.minecraft.launchwrapper.Launch; import net.minecraft.launchwrapper.LaunchClassLoader; import java.io.*; import java.lang.reflect.*; import java.util.*; /** * Tries to ensure that our transformer is last */ public class ModPatcherTwe...
package net.aicomp.javachallenge2015; import java.util.ArrayList; import java.util.Random; import java.util.Scanner; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; import org.apache.com...
package net.gigimoi.zombietc.weapon; import net.gigimoi.zombietc.EntityZZombie; import net.gigimoi.zombietc.TileBarricade; import net.gigimoi.zombietc.event.GameManager; import net.gigimoi.zombietc.helpers.MouseOverHelper; import net.gigimoi.zombietc.helpers.TextAlignment; import net.gigimoi.zombietc.helpers.TextRender...
package net.minecraftforge.common; import static net.minecraftforge.common.ForgeVersion.Status.*; import java.io.InputStream; import java.net.URL; import java.util.Map; import com.google.common.io.ByteStreams; import com.google.gson.Gson; import net.minecraftforge.fml.common.versioning.ArtifactVersion; import net.minec...
package monto.eclipse.launching; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.debug.core.DebugEvent; import org.eclipse.debug.core.De...
package nl.topicus.jdbc; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.nio.channels.Channels; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.Result...
package mu.nu.nullpo.game.subsystem.mode; import mu.nu.nullpo.game.component.Block; import mu.nu.nullpo.game.component.Controller; import mu.nu.nullpo.game.component.Piece; import mu.nu.nullpo.game.event.EventReceiver; import mu.nu.nullpo.game.play.GameEngine; import mu.nu.nullpo.game.play.GameManager; import mu.nu.nul...
/* * ProcessLineOfHapmap */ package net.maizegenetics.pal.alignment; import java.util.LinkedList; import java.util.Queue; import net.maizegenetics.baseplugins.FileLoadPlugin; import net.maizegenetics.util.BitUtil; import net.maizegenetics.util.OpenBitSet; /** * * @author terry */ public class ProcessLineOfHapmap i...
package org.appwork.utils.swing.table.columns; import java.awt.Component; import java.util.regex.Pattern; import javax.swing.BorderFactory; import javax.swing.Icon; import javax.swing.JLabel; import javax.swing.JTable; import org.appwork.utils.swing.renderer.RenderLabel; import org.appwork.utils.swing.table.ExtColumn; ...
package com.pineone.icbms.so.util; import org.apache.kafka.common.serialization.StringDeserializer; import org.apache.kafka.common.serialization.StringSerializer; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class Settings2 { /** ...
package org.apache.ibatis.type; import java.sql.CallableStatement; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class EnumTypeHandler extends BaseTypeHandler implements TypeHandler { private Class type; public EnumTypeHandler(Class type) { this.type = type; ...
package org.reactfx.util; import static org.reactfx.util.Either.*; import static org.reactfx.util.LL.*; import static org.reactfx.util.Tuples.*; import java.util.AbstractList; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.NoSuchElementException; import java.util.Optio...
package org.ensembl.healthcheck.testcase.compara; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Statement; import java.util.Map; import java.util.Vector; import org.ensembl.healthcheck.DatabaseRegistry; import org.ensembl.healthcheck.DatabaseRegistryEntry; import org.ensembl.healthcheck.Databas...
package hm.binkley.labs; import reactor.Environment; import reactor.bus.EventBus; import java.io.IOException; import java.util.concurrent.CountDownLatch; import static java.lang.System.out; import static reactor.bus.selector.Selectors.T; public final class ReagentMain { public static void main(final String... args)...
package api.web.gw2.mapping.v2.guild.id.members; import api.web.gw2.mapping.core.DateValue; import api.web.gw2.mapping.core.IdValue; import api.web.gw2.mapping.core.OptionalValue; import java.time.ZonedDateTime; import java.util.Optional; public final class JsonpMember implements Member { @IdValue private Strin...
package org.ensembl.healthcheck.testcase.generic; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; imp...
package org.craft.launch.task.tasks; import java.io.*; import org.apache.commons.io.*; import org.craft.launch.*; public class LWJGLSetup { private static boolean loaded; /** * Load LWJGL in given folder */ public static void load(File folder) throws Exception { if(!loaded) { ...
package org.jmist.framework.services; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.UUID; import java.util.concurrent.Executor; import org.jmist.framework.IJob; import org.jmist.framework.IProgr...
package org.egordorichev.lasttry.item; import org.egordorichev.lasttry.entity.Player; import org.egordorichev.lasttry.entity.Stat; import java.util.List; public class Modifier { // Accessories // Defense public static final Modifier hard = new Modifier("Hard", Type.ACCESSORY, new Stat(Stat.Type.DEFENSE, +1)...
package org.jmist.packages.geometry.primitive; import org.jmist.framework.IntersectionRecorder; import org.jmist.framework.Material; import org.jmist.framework.SingleMaterialGeometry; import org.jmist.toolkit.Box3; import org.jmist.toolkit.Point2; import org.jmist.toolkit.Point3; import org.jmist.toolkit.Polynomial; im...
package org.ohmage.request.survey; import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import jav...
package org.ihtsdo.otf.snomedboot; import java.io.FileNotFoundException; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; class ReleaseFiles { private Path conceptPath; private Path descriptionPath; private Path textDefinitionPath; private Path relationshipPath; private ...
package org.influxdb.impl; import java.lang.reflect.Field; import java.time.Instant; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; import java.time.temporal.ChronoField; import java.util.LinkedList; import java.util.List; import java.util.Objects; import java.util.Map.Entr...
package org.javarosa.core.model; import org.javarosa.core.model.condition.IConditionExpr; import org.javarosa.core.model.instance.FormInstance; import org.javarosa.core.model.instance.TreeReference; import org.javarosa.core.model.util.restorable.RestoreUtils; import org.javarosa.core.util.externalizable.Deserialization...
package org.jboss.netty.handler.ssl; import static org.jboss.netty.channel.Channels.*; import java.nio.ByteBuffer; import java.nio.channels.ClosedChannelException; import java.util.LinkedList; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.Executor; import java.ut...
package com.intellij.psi; import com.intellij.lang.*; import com.intellij.openapi.application.ex.ApplicationManagerEx; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.util.Comparing; import com.intellij.openapi.util.Key; import com.intellij.openapi.util.Pair; import com.intellij.openapi.util....
package org.jtrfp.trcl; import java.util.Comparator; import java.util.List; import java.util.TreeSet; import org.jtrfp.trcl.math.Vect3D; import org.jtrfp.trcl.obj.PositionedRenderable; import org.jtrfp.trcl.obj.VisibleEverywhere; public class GridCubeProximitySorter extends AbstractSubmitter<List<PositionedRenderable>>...
package org.jtrfp.trcl.gui; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.FileInputStr...
package org.encuestame.core.persistence.pojo; import java.io.Serializable; import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import static javax.persistence...
package org.lightmare.deploy; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.ThreadFactory; import org.lightmare.cache.MetaContainer; import org.lightmare.libraries.LibraryLoader; i...
package com.akjava.gwt.three.client.gwt.model; import com.akjava.gwt.lib.client.LogUtils; import com.akjava.gwt.three.client.js.core.Face3; import com.akjava.gwt.three.client.js.math.UV; import com.akjava.gwt.three.client.js.math.Vector2; import com.akjava.gwt.three.client.js.math.Vector4; import com.akjava.gwt.three.c...
package org.lightmare.utils.fs.codecs; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.URL; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import org.lightmare.utils.IOU...
package org.apache.batik.apps.svgbrowser; import java.awt.BorderLayout; import java.awt.CardLayout; import java.awt.Component; import java.awt.Container; import java.awt.FlowLayout; import java.awt.Frame; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt...
package com.ecyrd.jspwiki.providers; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; import java.io.FileNotFoundException; import java.io.File; import java.io.FilenameFilter; import java.io.FileOutputStream; import java.io.FileInputStream; import java.util.Collection; import java.ut...
package com.github.assisstion.ModulePack.logging; import java.awt.BorderLayout; import java.awt.Color; import java.util.List; import java.util.function.Consumer; import java.util.logging.Logger; import javax.lang.model.SourceVersion; import javax.swing.JPanel; import javax.swing.JProgressBar; import javax.swing.JScroll...
package org.ow2.petals.activitibpmn; import static org.ow2.petals.activitibpmn.ActivitiSEConstants.DEFAULT_ENGINE_ENABLE_BPMN_VALIDATION; import static org.ow2.petals.activitibpmn.ActivitiSEConstants.DEFAULT_ENGINE_ENABLE_JOB_EXECUTOR; import static org.ow2.petals.activitibpmn.ActivitiSEConstants.DEFAULT_MONIT_TRACE_DE...
package org.sahagin.runlib.srctreegen; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang3.tuple.Pair; import org.eclipse.jdt.core.dom.IAnnotationBinding; import org.eclipse.jdt.core.dom.IMemberValuePairBinding; import org.eclipse.jdt.core.d...
package com.googlecode.jmxtrans.model.output; import com.googlecode.jmxtrans.model.Query; import com.googlecode.jmxtrans.model.Result; import com.googlecode.jmxtrans.util.BaseOutputWriter; import com.googlecode.jmxtrans.util.ValidationException; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; impor...
package com.hp.hpl.jena.db.impl; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import com.hp.hpl.jena.graph.*; import com.hp.hpl.jena.util.iterator.ExtendedIterator; import com.hp.hpl.jena.util.iterator.MapFiller; import com.hp.hpl.jena.util.iterator.MapMany; /** * @author hkuno * @ver...
package org.spongepowered.api.entity; import com.flowpowered.math.imaginary.Quaterniond; import com.flowpowered.math.matrix.Matrix4d; import com.flowpowered.math.vector.Vector3d; import org.spongepowered.api.Sponge; import org.spongepowered.api.world.Location; import org.spongepowered.api.world.World; public interface ...
package com.michaldabski.filemanager.folders; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.List; import android.app.AlertDialog; import android.app.Dialog; import android.app.Fragment; import...
package org.testng.reporters; import org.testng.IInvokedMethod; import org.testng.IReporter; import org.testng.IResultMap; import org.testng.ISuite; import org.testng.ISuiteResult; import org.testng.ITestClass; import org.testng.ITestContext; import org.testng.ITestNGMethod; import org.testng.ITestResult; import org.te...
package com.namelessmc.java_api.modules.store; import com.google.gson.JsonObject; import com.namelessmc.java_api.NamelessAPI; import com.namelessmc.java_api.exception.NamelessException; import com.namelessmc.java_api.NamelessUser; import org.checkerframework.checker.nullness.qual.Nullable; import java.util.UUID; public...
package org.xtx.ut4converter.t3d; import org.xtx.ut4converter.export.UTPackageExtractor; import org.xtx.ut4converter.tools.Geometry; import org.xtx.ut4converter.ucore.UPackageRessource; import org.xtx.ut4converter.ucore.ue2.TerrainLayer; import org.xtx.ut4converter.ucore.ue4.LandscapeCollisionComponent; import org.xtx....
package org.zalando.nakadi.domain; import com.google.common.base.Preconditions; import java.util.Objects; public class NakadiCursor { public static final int VERSION_LENGTH = 3; /** * - ZERO is reserved for old offset format, e.g. those previous to timelines: "000000000000000010" * - ONE is reserved f...
//@@author A0139961U package seedu.tache.logic.commands; import seedu.tache.commons.exceptions.IllegalValueException; import seedu.tache.logic.commands.exceptions.CommandException; /** * Adds a task to the task manager. */ public class SaveCommand extends Command { public static final String COMMAND_WORD = "save"...
//@@author A0150120H package seedu.tache.logic.commands; import java.util.Stack; /* * Class to handle the Undo history. Uses a First-In-Last-Out data structure * This class follows the Singleton Pattern */ public class UndoHistory { private Stack<Undoable> data; private static UndoHistory currentInstance; ...
package seedu.todo.controllers; import java.io.IOException; import java.util.Map; import seedu.todo.MainApp; import seedu.todo.commons.core.Config; import seedu.todo.commons.util.ConfigUtil; import seedu.todo.commons.util.StringUtil; import seedu.todo.controllers.concerns.Renderer; import seedu.todo.models.TodoListDB; ...
package seedu.todo.logic.parser; import static seedu.todo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.todo.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Patt...
package test.dr.evomodel.substmodel; import dr.evolution.datatype.DataType; import dr.evolution.datatype.TwoStateCovarion; import dr.evolution.datatype.TwoStates; import dr.evomodel.substmodel.BinaryCovarionModel; import dr.evomodel.substmodel.FrequencyModel; import dr.evomodel.substmodel.GeneralSubstitutionModel; impo...
package de.danoeh.antennapod.feed; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.List; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory; import de.danoeh.antennapod.AppConfig; i...
package de.geeksfactory.opacclient.apis; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Locale; import j...
package tigase.cluster; import tigase.cluster.api.ClusterControllerIfc; import tigase.cluster.api.ClusteredComponentIfc; import tigase.cluster.api.SessionManagerClusteredIfc; import tigase.cluster.strategy.ClusteringStrategyIfc; import tigase.server.ComponentInfo; import tigase.server.Message; import tigase.server.Pack...
package com.helpmobile.test; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.helpmobile.rest.WorkshopBooking; import com.helpmobile.rest.RestAccess; import java.io.IOException; import ...
package de.lmu.ifi.dbs.elki.math; /** * Do some simple statistics (mean, average). * * This class can repeatedly be fed with data using the add() methods, * The resulting values for mean and average can be queried at any time using * getMean() and getVariance(). * * Trivial code, but replicated a lot. The class ...
package uk.co.jemos.podam.api; import net.jcip.annotations.Immutable; import net.jcip.annotations.NotThreadSafe; import org.apache.commons.lang3.ArrayUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import uk.co.jemos.podam.api.DataProviderStrategy.Order; import uk.co.jemos.podam.common.AttributeStrategy...
package yokohama.unit.translator; import yokohama.unit.contract.Contract; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.lang.reflect.Modifier; import java.nio.file.Paths; import java.util.Arrays; import java.util.Collections; import java.uti...
package com.cedarsoftware.ncube; import org.junit.Test; import java.io.File; import java.io.FilenameFilter; import java.net.URL; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertEquals; public class TestJsonFormatter { @Test public void testJsonFormatter() throws Exception...
package org.traccar.protocol; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import org.junit.Test; public class TotemProtocolDecoderTest { @Test public void testDecode() throws Exception { TotemProtocolDecoder decoder = new TotemProtocolDecoder(null); d...
package org.xwalk.core; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Rect; import android.util.AttributeSet; import android.view.ViewGroup; import android.webkit.WebSettings; import android.widget.FrameLayout; import org.xwalk.core.client.XWalkDefau...
package eco; public class popMethods { //public static int[] unfilledpops = new int[1000]; public static void scanPops(){ // System.out.println("efa"); int x = 0; int y = 0; while(Main.popArray.length > x){ if((Main.popArray[x].people < 100...
package com.clxcommunications.xms; import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; import static com.github.tomakehurst.wiremock.client.WireMock.delete; import static com.github.tomakehurst.wiremock.client.WireMock.deleteRequestedFor; import static com.github.tomakehurst.wiremock.client.WireMoc...
package com.github.arteam.jgcompare; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.function...
package com.oltruong.teamag.rest; import com.oltruong.teamag.model.Member; import com.oltruong.teamag.model.Task; import com.oltruong.teamag.model.builder.EntityFactory; import com.oltruong.teamag.model.enumeration.MemberType; import com.oltruong.teamag.service.MemberService; import com.oltruong.teamag.service.TaskServ...
// 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...
package edu.hm.hafner.analysis; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.nio.file.Path; import java.nio.file.Paths; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.junit.jupiter.api.Test; ...
package mho.wheels.misc; import mho.wheels.iterables.ExhaustiveProvider; import mho.wheels.iterables.IterableProvider; import mho.wheels.iterables.IterableUtils; import mho.wheels.iterables.RandomProvider; import mho.wheels.structures.Pair; import org.junit.Test; import java.math.BigDecimal; import java.math.BigInteger...
package org.broad.igv.ui.action; import junit.framework.AssertionFailedError; import org.broad.igv.AbstractHeadlessTest; import org.broad.igv.feature.BasicFeature; import org.broad.igv.feature.NamedFeature; import org.broad.igv.feature.genome.Genome; import org.broad.igv.util.TestUtils; import org.junit.Before; import ...
package org.fcrepo.binary; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.modeshape.jcr.api.JcrConstants.JCR_MIME_TYPE; import javax.jcr.No...
package org.openlmis.fulfillment.domain; import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertFalse; import static junit.framework.TestCase.assertTrue; import static org.openlmis.fulfillment.domain.OrderStatus.FULFILLING; import static org.openlmis.fulfillment.domain.OrderSt...
package com.kennyc.sample; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.MenuItem; import android.view.View...
package net.hillsdon.reviki.wiki.renderer.creole; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import org.antlr.v4.runtime.ParserRuleContext; import com.google.common.base.Optional; import com.uwyn.jhighlight.renderer.XhtmlRendererFactory; import net.hill...
package dr.app.beagle.evomodel.branchmodel; import java.util.ArrayList; import java.util.List; import dr.app.beagle.evomodel.substmodel.SubstitutionModel; import dr.evolution.tree.NodeRef; import dr.evomodel.tree.TreeModel; import dr.inference.model.AbstractModel; import dr.inference.model.Model; import dr.inference.mo...
package mobi.hsz.idea.gitignore.util; import mobi.hsz.idea.gitignore.Common; import org.junit.Test; import java.util.regex.Matcher; import java.util.regex.Pattern; public class MatcherUtilTest extends Common<MatcherUtil> { @Test public void testMatch() { final Pattern pattern = Pattern.compile("foo"); ...
package dr.app.beauti.traitspanel; import dr.app.beauti.options.BeautiOptions; import dr.app.beauti.options.TraitGuesser; import dr.app.beauti.util.PanelUtils; import dr.app.beauti.*; import dr.evolution.util.*; import dr.gui.table.TableSorter; import org.virion.jam.framework.Exportable; import org.virion.jam.table.Hea...
package net.hillsdon.reviki.wiki.renderer.creole; import java.util.ArrayList; import java.util.List; import org.antlr.v4.runtime.ParserRuleContext; import com.uwyn.jhighlight.renderer.XhtmlRendererFactory; import net.hillsdon.reviki.vc.PageInfo; import net.hillsdon.reviki.web.urls.URLOutputFilter; import net.hillsdon.r...
package org.example; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import java.nio.charset.StandardCharsets; import java.util.Base64; public class App { private static final byte[] key = "abcdefghijklmnop".getBytes(); private static final byte[] iv...
package edu.afs.subsystems.drivesubsystem; import edu.wpi.first.wpilibj.command.PIDSubsystem; import edu.wpi.first.wpilibj.Talon; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.AnalogChannel; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.PIDSource; import edu.afs.commands.DriveT...
package dr.app.beauti.traitspanel; import dr.app.beauti.BeautiFrame; import dr.app.beauti.BeautiPanel; import dr.app.beauti.ComboBoxRenderer; import dr.app.beauti.datapanel.DataPanel; import dr.app.beauti.options.BeautiOptions; import dr.app.beauti.options.TraitData; import dr.app.beauti.options.TraitGuesser; import dr...
package tlc2.tool.distributed; import java.io.EOFException; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer; import java.net.URI; import java.rmi.RemoteException; import java.util.Date; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.ExecutorService; import...
package net.java.sip.communicator.impl.gui; import java.awt.*; import java.util.*; import java.util.List; import javax.swing.*; import net.java.sip.communicator.impl.gui.lookandfeel.*; import net.java.sip.communicator.impl.gui.main.*; import net.java.sip.communicator.impl.gui.main.account.*; import net.java.sip.communi...
package com.sun.star.lib.sandbox; import java.awt.Image; import java.awt.Dimension; import java.awt.Container; import java.awt.BorderLayout; import java.applet.Applet; import java.applet.AppletStub; import java.applet.AppletContext; import java.applet.AudioClip; import java.io.IOException; import java.io.InputStream; i...
package org.jastadd.tinytemplate.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import org.jastadd.tinytemplate.SimpleContext; import org.jastadd.tinytemplate.TemplateParser.SyntaxError; import org.jastadd.tinytemplate.TinyTemplate; import org.junit.Test; public class TestCondit...
package edu.brandeis.cs.steele.wn; import edu.brandeis.cs.steele.util.ArrayUtilities; import java.util.*; import static edu.brandeis.cs.steele.wn.PointerTypeFlags.*; /** Instances of this class enumerate the possible WordNet pointer types, and * are used to label <code>PointerType</code>s. * Each <code>PointerType</c...