answer stringlengths 17 10.2M |
|---|
package org.jenkinsci.plugins.p4;
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.perforce.p4java.exception.P4JavaException;
import hudson.AbortException;
import hudson.EnvVars;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.Plugin;
import hudson.matrix.M... |
package org.jenkinsci.remoting.util;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.security.Key;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Objects;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
/**
* Utility met... |
package org.jtrfp.trcl.obj;
import java.awt.Color;
import java.awt.Dimension;
import java.util.concurrent.Future;
import javax.media.opengl.GL3;
import org.apache.commons.math3.geometry.euclidean.threed.Vector3D;
import org.jtrfp.trcl.AnimatedTexture;
import org.jtrfp.trcl.ColorProcessor;
import org.jtrfp.trcl.DummyFut... |
package org.lightmare.ejb.meta;
import static org.lightmare.jpa.JPAManager.closeEntityManagerFactories;
import java.io.IOException;
import java.net.URL;
import java.util.Iterator;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.persistence.EntityManagerFactory;
imp... |
package org.mitre.synthea.export;
import static org.mitre.synthea.export.ExportHelper.dateFromTimestamp;
import static org.mitre.synthea.export.ExportHelper.iso8601Timestamp;
import com.google.common.collect.Table;
import com.google.gson.JsonObject;
import java.io.File;
import java.io.FileOutputStream;
import java.io.I... |
import java.util.*;
/**
* A map of the tunnel system.
*/
public class Map
{
public Map (Vector<String> input, boolean debug)
{
_theMap = new Vector<Cell>();
_nodeMap = null;
_keys = new Vector<Character>();
_doors = new Vector<Character>();
_debug = debug;
creat... |
package org.nio4r;
import java.util.Iterator;
import java.io.IOException;
import java.nio.channels.Channel;
import java.nio.channels.SocketChannel;
import java.nio.channels.SelectableChannel;
import java.nio.channels.SelectionKey;
import org.jruby.Ruby;
import org.jruby.RubyModule;
import org.jruby.RubyClass;
import or... |
package com.fasterxml.jackson.core.util;
import java.io.*;
import java.util.Iterator;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.JsonParser.NumberType;
import com.fasterxml.jackson.core.type.ResolvedType;
import com.fasterxml.jackson.core.type.TypeReference;
import static org.junit.Assert.as... |
package team046;
import battlecode.common.*;
public class RobotPlayer {
private static RobotController rc;
private static int round;
private static double power;
private static int zergRushChannel = randomWithRange(0, GameConstants.BROADCAST_MAX_CHANNELS);
private static int zergRushCode = randomWit... |
package com.github.piotrkot.mustache.tags;
import com.github.piotrkot.mustache.Contents;
import com.github.piotrkot.mustache.TagIndicate;
import com.google.common.collect.ImmutableMap;
import java.util.Collections;
import java.util.regex.Pattern;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import o... |
package team353;
import battlecode.common.*;
import java.util.*;
public class RobotPlayer {
public static class smuConstants {
public static int roundToBuildAEROSPACELAB = 2000;
public static int roundToBuildBARRACKS = 500;
public static int roundToBuildBASHER = 1200;
public static i... |
package com.microsoft.sqlserver.jdbc.fips;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import java.security.Provider;
import java.security.Security;
import java.util.Enumeration;
import java.util.Properties;
import java.util.logging.Level;
impor... |
package org.neo4j.index.lucene;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import org.neo4j.kernel.impl.transaction.xaframework.LogBuffer;
import org.neo4j.kernel.impl.transaction.xaframework.XaCommand;
abstract class LuceneCommand extends XaCommand
{
priva... |
package com.pm.server.repository;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.logging.log4j.LogManager... |
package org.openforis.users.dao;
import static org.openforis.users.jooq.tables.OfUserGroup.OF_USER_GROUP;
import org.jooq.Configuration;
import org.jooq.DSLContext;
import org.jooq.Record;
import org.jooq.TransactionalRunnable;
import org.jooq.impl.DSL;
import org.openforis.users.jooq.tables.daos.OfUserGroupDao;
import... |
package com.yahoo.sketches.quantiles;
import static com.yahoo.sketches.quantiles.PreambleUtil.*;
import static org.testng.Assert.*;
import com.yahoo.sketches.quantiles.QuantilesSketch;
import org.testng.annotations.Test;
public class PreambleUtilTest {
@Test
public void checkExtracts() {
long along = 0XFFL;
... |
package mho.wheels.iterables;
import mho.wheels.ordering.Ordering;
import mho.wheels.random.IsaacPRNG;
import mho.wheels.structures.Pair;
import mho.wheels.structures.Triple;
import org.jetbrains.annotations.NotNull;
import org.junit.Test;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.util.Arr... |
package org.robolectric.res;
import org.jetbrains.annotations.NotNull;
import org.robolectric.util.PropertiesHelper;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
impor... |
package mho.wheels.iterables;
import mho.wheels.math.BinaryFraction;
import mho.wheels.numberUtils.BigDecimalUtils;
import mho.wheels.numberUtils.FloatingPointUtils;
import mho.wheels.ordering.Ordering;
import mho.wheels.random.IsaacPRNG;
import mho.wheels.structures.NullableOptional;
import mho.wheels.structures.Pair;... |
package org.scribe.builder.api;
import org.scribe.extractors.*;
import org.scribe.model.*;
import org.scribe.oauth.*;
import org.scribe.services.*;
/**
* Default implementation of the OAuth protocol, version 1.0a
*
* This class is meant to be extended by concrete implementations of the API.
* If your Api adheres to... |
package neomcfly.jsoupmapper;
import java.io.InputStream;
import org.junit.Test;
import junit.framework.TestCase;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class JSoupMapperConvertorTest {
JSoupMapper mapper = new JSoupMapper();
@Test
public void convertorPrimitive1() {
Inp... |
package org.smoothbuild.db.outputs;
import static com.google.common.collect.ImmutableList.toImmutableList;
import static com.google.common.collect.Streams.stream;
import static org.smoothbuild.db.outputs.OutputsDbException.corruptedValueException;
import static org.smoothbuild.db.outputs.OutputsDbException.ioException;... |
package net.sf.jooreports.templates;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.imageio.ImageIO;
import net.sf.jooreports.templates.image.ClasspathImageSource;
import net.sf.jooreports.templates.image.FileImageSource;
import net.s... |
package org.spongepowered.api.world;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
import com.flowpowered.math.vector.Vector3d;
import com.flowpowered.math.vector.Vector3i;... |
package org.jutils.jprocesses.util;
import org.junit.Test;
import java.text.ParseException;
import java.util.Locale;
import static org.junit.Assert.*;
@SuppressWarnings("Since15")
public class ProcessesUtilsTest {
@Test
public void getCustomDateFormat() throws Exception {
assertEquals("10/23/2016 08:30:00", P... |
package uk.co.qmunity.lib.tile;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;... |
package util.validator;
import http.helpers.Helper;
import io.appium.java_client.AppiumDriver;
import org.apache.commons.io.FileUtils;
import org.apache.log4j.Logger;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;
import org.openqa.selenium.Dimension;
... |
package org.apache.commons.collections;
import junit.framework.*;
import java.util.*;
public class TestCollectionUtils extends TestCase {
public TestCollectionUtils(String testName) {
super(testName);
}
public static Test suite() {
return new TestSuite(TestCollectionUtils.class);
}
p... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software d... |
// D o t F a c t o r y //
// <editor-fold defaultstate="collapsed" desc="hdr">
// This program is free software: you can redistribute it and/or modify it under the terms of the
// </editor-fold>
package org.audiveris.omr.sheet.symbol;
import or... |
package com.lambdaworks.redis;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.Set;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class GeoCommandTest extends AbstractCommandTest {
@Rule
p... |
package com.mangopay.core;
import com.mangopay.core.enumerations.CultureCode;
import com.mangopay.entities.Mandate;
import com.mangopay.entities.Transfer;
import com.mangopay.entities.UserNatural;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.*;
/**
* MandateApiImpl test methods.
*/
pub... |
package com.noveogroup.android.log;
import org.junit.Assert;
import org.junit.Test;
public class UtilsTest {
@Test
public void shortenClassNameTest() {
Assert.assertEquals(null, Utils.shortenClassName(null, 0, 10));
String className = "com.example.android.MainActivity";
Assert.assertEqua... |
package ezvcard.io.text;
import static ezvcard.util.TestUtils.assertIntEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.nio.charset.Charset;
import org.junit.T... |
package intellimate.izou.testHelper;
import intellimate.izou.events.Event;
import intellimate.izou.events.LocalEventManager;
import intellimate.izou.fullplugintesting.TestAddOn;
import intellimate.izou.main.Main;
import intellimate.izou.system.Context;
import intellimate.izou.system.Identifiable;
import intellimate.izo... |
package link.webarata3.poi;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.experimental.... |
package link.webarata3.poi;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.experimental.... |
package net.kullo.javautils;
import junit.framework.TestCase;
import java.nio.charset.Charset;
import java.util.Arrays;
public class StrictBase64Test extends TestCase {
static void assertBytearrayEquals(byte[] expected, byte[] actual) {
assertTrue(Arrays.equals(expected, actual));
}
public void test... |
package org.cfwheels.cfwheels;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import j... |
package seedu.address.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_PERSON_DISP... |
package net.craftstars.general.command;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import net.craftstars.general.CommandBase;
import net.craftstars.general.General;
import net.craftstars.general.util.M... |
package nu.nerd.beastmaster.commands;
import java.util.Comparator;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import java.util.stream.Collectors;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.command.Command;
i... |
package org.ensembl.healthcheck;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.logging.Handler;
import java.util.logging.Level;
import org.ensembl.healthcheck.testcase.EnsTestCase;
import org.ensembl.healthcheck.util.ConnectionPool;
import org.ensembl.healthcheck.util.LogF... |
package org.exist.xquery.functions;
import org.exist.dom.QName;
import org.exist.xquery.BasicFunction;
import org.exist.xquery.Cardinality;
import org.exist.xquery.Dependency;
import org.exist.xquery.FunctionSignature;
import org.exist.xquery.Function;
import org.exist.xquery.Profiler;
import org.exist.xquery.XPathExce... |
package org.jitsi.impl.neomedia.recording;
import org.jitsi.service.neomedia.MediaType;
import org.jitsi.service.neomedia.control.*;
import org.jitsi.service.neomedia.recording.*;
import org.jitsi.util.*;
import javax.media.*;
import javax.media.datasink.*;
import javax.media.format.*;
import javax.media.protocol.*;
im... |
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class TestaEntrada {
public static void main(String[] args) throws IOException {
// InputStream is = System.in; // Leitura do teclado do sistema
// InputStream is = new F... |
package org.loklak.api.search;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import org.json.JSONArray;
import org.json.JSONObject;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.loklak.server.APIExcepti... |
package org.objectweb.proactive.core.body;
import org.apache.log4j.Logger;
import org.objectweb.proactive.Body;
import org.objectweb.proactive.core.UniqueID;
import org.objectweb.proactive.core.body.future.Future;
import org.objectweb.proactive.core.body.future.FuturePool;
import org.objectweb.proactive.core.body.futur... |
/**
* FIRST Team 1699
*
* Abstract Command Class
*
* @author squirlemaster42, FIRST Team 1699
*
* @version v0.2-norobot
*/
package org.usfirst.frc.team1699.utils.command;
public abstract class Command {
private String name;
private int id;
// id is used for commands run in auto. It should be set to ... |
package pt.iscte.lei.pi.firujo.scores;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Collections;
public clas... |
// MODEL SYNTHESIS
// clone: 338318 (using testLRS, default params)
// lrs:
// AXIOM SYNTHESIS
// clone: 32605 (using testLRS, default params)
// lrs:
import java.util.*;
class SuffixArray {
// Size of the suffix array
int N;
// T is the text
int[] T;
// Suffix array. Contains the indexes of sorted suffixes.
... |
package placebooks.client.ui.items;
import placebooks.client.model.PlaceBookItem;
import placebooks.client.resources.Resources;
import placebooks.client.ui.widget.RichTextArea;
import com.google.gwt.event.dom.client.BlurEvent;
import com.google.gwt.event.dom.client.BlurHandler;
import com.google.gwt.event.dom.client.Cl... |
package com.intellij.diagnostic;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationInfo;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.PathManager;
import com.intellij.open... |
package com.intellij.ide.plugins;
import com.intellij.core.CoreBundle;
import com.intellij.diagnostic.Activity;
import com.intellij.diagnostic.LoadingState;
import com.intellij.diagnostic.PluginException;
import com.intellij.diagnostic.StartUpMeasurer;
import com.intellij.ide.plugins.cl.PluginAwareClassLoader;
import c... |
package melnorme.lang.tests;
import melnorme.lang.tooling.LANG_SPECIFIC;
import melnorme.utilbox.misc.Location;
@LANG_SPECIFIC
public class LangCoreTests_Actual {
public static Location SAMPLE_SDK_PATH = LangToolingTestResources.getTestResourceLoc("mock_sdk");
} |
/*
* $Id: TestSimulatedUrlCacher.java,v 1.9 2003-02-26 21:32:24 troberts Exp $
*/
package org.lockss.plugin.simulated;
import java.util.Properties;
import org.lockss.test.*;
import org.lockss.daemon.*;
import org.lockss.repository.TestLockssRepositoryImpl;
import org.lockss.plugin.*;
/**
* This is the test class for... |
package me.thekey.android.core;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.net.Uri.Builder;
import android.support.annotation.AnyThread;
import android.support.annotation.NonNull;
import android.support.annotat... |
package ru.job4j.set;
import ru.job4j.generics.DynamicList;
import java.util.Arrays;
public class SetHashtable<E> {
int length = (int) Math.pow(2, 14);
int size = 0;
Object[] container = new Object[length];
boolean add(E e) {
if (!this.contains(e)) {
if ((size > 0.75 * length)) {
... |
package org.uli.logging;
import java.io.File;
import java.util.regex.Pattern;
import org.apache.log4j.xml.DOMConfigurator;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.Ignore;
import static org.junit.Assert.*;
@Ignore
public class EverySecondTest {
@BeforeClass
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package stallone.mc.sampling;
import cern.jet.random.Beta;
import cern.jet.random.Exponential;
import cern.jet.random.Uniform;
import cern.jet.random.engine.MersenneTwister;
import stallone.api.doubles.IDoubleArray;
impo... |
package info.tregmine.listeners;
import info.tregmine.Tregmine;
import info.tregmine.api.TregminePlayer;
import info.tregmine.database.ConnectionPool;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.ut... |
package ch.poole.openinghoursparser;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.ByteAr... |
package com.alibaba.json.bvt;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.fastjson.parser.SymbolTable;
public class SymbolTableTest extends TestCase {
protected String[] symbols = new String[] { "EffectedRowCount", "DataSource", "BatchSizeMax", "BatchSizeTotal", "ConcurrentMax"... |
package imagej.updater.gui;
import imagej.updater.core.FileObject;
import imagej.updater.core.FileObject.Action;
import imagej.updater.core.FileObject.Status;
import imagej.updater.core.FilesCollection;
import imagej.updater.core.FilesCollection.UpdateSite;
import imagej.updater.core.Installer;
import imagej.updater.co... |
package com.jcabi.github;
import com.rexsl.test.Request;
import com.rexsl.test.request.ApacheRequest;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Assume;
import org.junit.Test;... |
package com.angcyo.uiview.utils;
import android.app.Activity;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.DrawableRes;
import android.support.v7.app.NotificationCompat;
import android.widget.Re... |
package com.uwetrottmann.trakt5;
import com.uwetrottmann.trakt5.entities.AccessToken;
import com.uwetrottmann.trakt5.entities.BaseEpisode;
import com.uwetrottmann.trakt5.entities.BaseMovie;
import com.uwetrottmann.trakt5.entities.BaseRatedEntity;
import com.uwetrottmann.trakt5.entities.BaseSeason;
import com.uwetrottma... |
package datastructures;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
/**
* @author Pavel Nichita
*
*/
public class DFJointProjectionTest {
private SetUpClass setUpObject;
/**
* Set up.
*/
@Before
public void setUp() {
this.setUpObject = new SetUp... |
package cz.xtf.openshift.messaging;
import cz.xtf.openshift.builder.pod.PersistentVolumeClaim;
import org.apache.commons.lang3.StringUtils;
import cz.xtf.docker.DockerContainer;
import cz.xtf.openshift.OpenshiftUtil;
import cz.xtf.openshift.builder.ApplicationBuilder;
import cz.xtf.openshift.builder.DeploymentConfigBui... |
package de.bmoth.architecture;
import guru.nidi.codeassert.config.AnalyzerConfig;
import guru.nidi.codeassert.dependency.DependencyRule;
import guru.nidi.codeassert.dependency.DependencyRuler;
import guru.nidi.codeassert.dependency.DependencyRules;
import guru.nidi.codeassert.model.ModelAnalyzer;
import org.junit.Befor... |
package org.safehaus.jettyjam.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.management.ManagementFactory;
import java.net.URL;
import java.util.Properties;
import java.util.Timer;
import java.util.Time... |
package umm3601.user;
import com.google.gson.Gson;
import com.mongodb.*;
import com.mongodb.client.FindIterable;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import com.mongodb.util.JSON;
import org.bson.Document;
import org.bson.types.ObjectId;
import spark.Request;
import spark.... |
package fake_ev3dev.ev3dev.actuators;
import ev3dev.actuators.LCD;
import ev3dev.hardware.EV3DevPlatform;
import fake_ev3dev.BaseElement;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
public class FakeLCD extends BaseElement{
public FakeLCD(final EV3DevPlatform ev3DevPlatform) t... |
package net.sf.jabb.util.stat;
import static org.junit.Assert.*;
import net.sf.jabb.util.stat.TimePeriod;
import org.junit.Test;
/**
* @author James Hu
*
*/
public class TimePeriodTest {
@Test
public void testIsDivisorOf() {
assertIsDivisorOf("3 day", "1 year", false);
assertIsDivisorOf("3 da... |
package org.neo4j.examples.socnet;
import org.hamcrest.CoreMatchers;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Transaction;
import org.neo4j.helpers.collection.IteratorUtil;
import org.neo4j.index.IndexService;
import ... |
package org.neo4j.talend;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Standard... |
package pokeraidbot.domain;
import net.dv8tion.jda.core.entities.User;
import org.junit.Before;
import org.junit.Test;
import pokeraidbot.TestServerMain;
import pokeraidbot.domain.config.LocaleService;
import pokeraidbot.domain.errors.GymNotFoundException;
import pokeraidbot.domain.gym.Gym;
import pokeraidbot.domain.gy... |
package technology.tabula;
import java.io.File;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
import java.nio.file.Files;
import java.util.*;
import static org.junit.Assert.*;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import org.junit.BeforeClass;
import org... |
package transportation.Agents;
import java.awt.*;
import java.util.*;
import java.util.List;
import market.Market;
import transportation.Transportation;
import transportation.TransportationPanel;
import transportation.GUIs.BusGui;
import transportation.GUIs.CarGui;
import transportation.GUIs.TruckGui;
import transporta... |
package uk.org.bobulous.java.collections;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.u... |
package us.kbase.jgiintegration.perftest;
import static us.kbase.jgiintegration.common.JGIUtils.wipeRemoteServer;
import java.io.File;
import java.net.URL;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Level;
import java.util.lo... |
package org.mozartoz.truffle.nodes.builtins;
import static org.mozartoz.truffle.nodes.builtins.Builtin.ALL;
import java.util.HashMap;
import java.util.Map;
import org.mozartoz.truffle.nodes.OzNode;
import org.mozartoz.truffle.runtime.OzCons;
import org.mozartoz.truffle.runtime.OzVar;
import org.mozartoz.truffle.transla... |
package alphagram;
import alphagram.model.Alphagram;
import alphagram.model.Anagram;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
* @author Fanaen <contact@fanaen.fr>
*/
public class AlphagramCLI {
/**
* @para... |
package com.newrelic.cordova;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaActivity;
import org.apache.cordova.CordovaWebView;
import org.json.JSONArray;
import com.newrelic.agent.android.NewRelic;
import... |
package forestry.api.mail;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTUtil;
import net.minecraft.server.MinecraftServer;
import org.apache.commons.lang3.StringUtils;
import com.mojang.authlib.GameProfile;
import forestry.api.core.INBTTagable;
public class MailAddress implements INBTTagable {
... |
package me.brendanweinstein;
public enum CardType {
VISA(1, "Visa", false, 3),
MASTERCARD(2, "Mastercard", false, 3),
AMERICAN_EXPRESS(3, "American Express", false, 4),
DISCOVER(4,"Discover", false, 3),
JCB(5, "JCB", false, 3),
DINERS_CLUB(6, "Diners Club", false, 3),
UNKNOWN_CARD(7, "Unknow... |
import com.scalien.scaliendb.*;
import java.io.*;
import java.util.ArrayList;
import java.util.Random;
public class ConcurrentWords {
public static void main(String[] args) {
try {
final String wordsFile = "/usr/share/dict/words";
String[] controllers = {"127.0.0.1:7080"};
... |
package com.example.wrench;
import android.content.ContentResolver;
import android.content.Context;
import android.database.ContentObserver;
import android.database.Cursor;
import android.net.Uri;
import android.os.Handler;
import android.support.annotation.Nullable;
public class BoltLiveData extends LiveData<Bolt> {
... |
package perf.backend;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.reactivex.netty.RxNetty;
import io.reactivex.netty.protocol.http.server.HttpServerRequest;
import io.reactivex.netty.protocol.http.server.HttpServerResponse;
import java.util.List;
import rx.Observable;
public class StartMockService ... |
package org.yamcs.tctm.ccsds;
import java.util.function.Consumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.yamcs.tctm.PacketTooLongException;
import org.yamcs.tctm.TcTmException;
import org.yamcs.utils.ByteArrayUtils;
/**
* Receives data chunk by chunk and assembles it into packets. Two type... |
package simizer.laws;
import java.lang.reflect.Field;
import org.junit.*;
/**
* Basic tests that should be run on all Law subclasses.
*/
@Ignore
public class LawTest {
protected Law law;
/**
* Outputs values from the law to evaluate their distribution.
*/
@Test
public void testOutput() {
for (int i ... |
package git4idea.history;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.FilePath;
import com.intellij.openapi.vcs.FileStatus;
import com.intellij.openapi.vc... |
package build.pluto.builder;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import build.pluto.BuildUnit;
import build.pluto.BuildUnit.State;
import build.pluto.dependency.BuildRequirement;
import build.pluto.output.Output;
public class Bu... |
package org.mskcc.cgds.test.servlet;
import java.io.IOException;
import java.io.File;
import java.util.ArrayList;
import java.util.HashSet;
import junit.framework.TestCase;
import org.mskcc.cgds.dao.DaoCancerStudy;
import org.mskcc.cgds.dao.DaoCase;
import org.mskcc.cgds.dao.DaoCaseList;
import org.mskcc.cgds.dao.DaoEx... |
package org.batfish.client;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintStream... |
package frs.amantonrun;
import android.content.pm.ActivityInfo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ImageView;
public class GamePlayActivity extends AppCompatActivit... |
package frs.amantonrun;
import android.content.pm.ActivityInfo;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.DisplayM... |
// $Id: PlaylistPanel.java,v 1.4 2001/07/26 01:18:49 mdb Exp $
package robodj.chooser;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.swing.*;
import com.samskivert.swing.*;
impo... |
// $Id: PlaylistPanel.java,v 1.10 2002/02/22 08:37:17 mdb Exp $
package robodj.chooser;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import java.util.ArrayList;
import java.util.Iterator;
import com.samskivert.io.PersistenceException;
import com.samsk... |
package com.jetbrains.python.debugger;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.proje... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.