answer stringlengths 17 10.2M |
|---|
package froop.rest.resource;
import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
import org.junit.Test;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Application;
... |
package io.mycat.net2;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import junit.framework.Assert;
public class TestMySQLPackageSplitte... |
package net.leanix.api.test;
import java.text.SimpleDateFormat;
import java.util.Date;
import net.leanix.api.WorkspacesApi;
import net.leanix.api.common.*;
import net.leanix.api.models.*;
import org.junit.rules.*;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
public class WorkspaceSetupRule extends ExternalR... |
package org.amc.myservlet.test;
import static org.junit.Assert.*;
import java.util.Collection;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
import org.amc.dao.MaterialDAO;
import org.amc... |
package org.darkphoenixs.mq.util;
import kafka.serializer.Decoder;
import kafka.serializer.DefaultDecoder;
import kafka.utils.VerifiableProperties;
import org.darkphoenixs.mq.message.MessageBeanImpl;
import org.junit.Assert;
import org.junit.Test;
public class RefleToolTest {
@Test
public void test() throws Exc... |
package org.elinker.core.api.java;
import static org.junit.Assert.assertTrue;
import eu.freme.bservices.testhelper.AuthenticatedTestHelper;
import eu.freme.bservices.testhelper.OwnedResourceManagingHelper;
import eu.freme.bservices.testhelper.SimpleEntityRequest;
import eu.freme.bservices.testhelper.api.IntegrationTest... |
package org.mariadb.jdbc;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.sql.*;
import static org.junit.Assert.*;
public class PreparedStatementTest extends BaseTest {
private static final int ER_NO_... |
package org.owasp.esapi.reference;
import java.io.File;
import java.net.URI;
import java.net.URLDecoder;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.owasp.esapi.SafeFile;
import org.owasp.esapi.errors.ValidationException;
/**
* @author Jeff Williams (jeff.... |
//package pt.fccn.mobile.arquivo.suite;
//import org.junit.runner.RunWith;
//import org.junit.runners.Suite;
//import org.junit.runners.Suite.SuiteClasses;
//import pt.fccn.mobile.arquivo.tests.FullTextSearchTest;
//import pt.fccn.mobile.arquivo.tests.URLSearchTest;
//import pt.fccn.mobile.arquivo.tests.imagesearch.Ima... |
package seedu.scheduler.logic;
import com.google.common.eventbus.Subscribe;
import guitests.GuiRobot;
import javafx.scene.input.KeyCode;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import seedu.scheduler.commons.core.EventsCenter... |
package whelk.history;
import whelk.Document;
import whelk.JsonLd;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.util.*;
public class History {
// Most-recent-ownership for each part of the record
private final HashMap<List<Object>, Ownership> m_pathOwnership;
// A (json) summary of ... |
package com.sun.star.wizards.web.data;
import java.util.Calendar;
import java.util.Hashtable;
import java.util.Map;
import java.util.Vector;
import com.sun.star.beans.PropertyValue;
import com.sun.star.container.NoSuchElementException;
import com.sun.star.container.XNameAccess;
import com.sun.star.i18n.NumberFormatInde... |
package org.jdesktop.swingx.renderer;
import java.awt.Component;
import java.awt.Font;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
import java.util.logging.Logger;
import javax.swing.AbstractListModel;
import javax.swing.Icon;
import javax.swing.JTree;
import javax.swing.JViewpor... |
// A zorbage example: Resampling.
// Read an image and display it and three different resamplings
// This code is in the public domain. Use however you wish.
package resample;
import java.awt.FlowLayout;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import javax.swing.Image... |
package array;
import java.util.Arrays;
public class SortColors {
public void sortColors(int[] A) {
int len = A == null ? 0 : A.length;
if (len < 2) return;
int i = 0, left = 0, right = len - 1;
while (i < right) {
if (A[i] == 0) {
swap(A, i, left);
... |
package xyz.elmot.oscill;
import purejavacomm.*;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Objects;
import java.util.Queue;
import java.util.concurrent.ArrayBlockingQueue;
import java.util... |
package net.dynamicdungeon;
import java.util.ArrayList;
import java.util.List;
import net.dynamicdungeon.ai.CreatureAi;
import net.dynamicdungeon.sound.Sound;
import net.dynamicdungeon.world.Tile;
import net.dynamicdungeon.world.World;
public class Creature {
private final World world;
public int x;
public ... |
package undo.impl;
import inhibeans.Hold;
import inhibeans.value.Indicator;
import java.util.Optional;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.value.ObservableBooleanValue;
import reactfx.Source;
import reactfx.Subscriptio... |
package org.col.db.dao;
import com.google.common.collect.Lists;
import org.apache.ibatis.session.SqlSession;
import org.col.api.model.*;
import org.col.db.NotFoundException;
import org.col.db.mapper.NameMapper;
import org.col.db.mapper.ReferenceMapper;
import org.col.db.mapper.VerbatimRecordMapper;
import org.col.db.ma... |
package backend;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class Database {
private Connection conn;
public Database() {
try {
Class.forName("org.sqlite.JDBC");
conn = Driv... |
package biomodelsim;
import gcm2sbml.gui.GCM2SBMLEditor;
import gcm2sbml.network.GeneticNetwork;
import gcm2sbml.parser.GCMFile;
import gcm2sbml.parser.GCMParser;
import graph.Graph;
import java.awt.AWTError;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
impo... |
package biomodelsim;
import gcm2sbml.gui.GCM2SBMLEditor;
import gcm2sbml.network.GeneticNetwork;
import gcm2sbml.parser.CompatibilityFixer;
import gcm2sbml.parser.GCMFile;
import gcm2sbml.parser.GCMParser;
import gcm2sbml.util.GlobalConstants;
import lhpn2sbml.parser.LHPNFile;
import lhpn2sbml.gui.*;
import graph.Graph... |
package fml;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.logging.FileHandler;
import java.util.loggi... |
package li.util;
import java.util.HashMap;
import java.util.Map;
/**
* ,Log4jConsole
*
* @author li (limw@w.cn)
* @version 0.1.6 (2012-07-05)
*/
public abstract class Log {
private static final Map LOG_MAP = new HashMap();
/**
* LOG_MAP,synchronized
*/
public synchronized static void put(Obje... |
package city;
import java.awt.Color;
import java.awt.Point;
import java.awt.Rectangle;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.TimeZone;
import java.... |
package com.company;
import com.company.entities.Item;
import org.htmlcleaner.XPatherException;
import org.w3c.dom.NodeList;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import java.io.IOException;
import java.util.*;
impo... |
package game;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.Window;
import java.awt.event.ActionEvent;
impor... |
package gblib;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.io.PrintStream;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
/**
* A singleton message manager.
*
* @author karl
*/
public class MessageMgr {
... |
package edu.cmu.sphinx.util;
import java.text.DecimalFormat;
/** Some simple matrix and vector manipulation methods. */
public class MatrixUtils {
public static DecimalFormat df = new DecimalFormat("0.00");
public static String toString(double[][] m) {
StringBuffer s = new StringBuffer("[");
for... |
package swarm.client.navigation;
import java.util.logging.Logger;
import javax.persistence.criteria.Root;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.Style.Overflow;
import com.google.gwt.event.dom.client.ScrollEvent;
import com.google.gwt.event.dom.client.ScrollHandler;
import com.google.g... |
package test.dr.evomodel.operators;
import dr.evolution.io.Importer;
import dr.evolution.io.NewickImporter;
import dr.evolution.io.NexusImporter;
import dr.evolution.tree.FlexibleTree;
import dr.evolution.tree.Tree;
import dr.evolution.util.Units;
import dr.evomodel.coalescent.CoalescentSimulator;
import dr.evomodel.sp... |
package com.dmdirc.addons.systray;
import com.dmdirc.ClientModule.GlobalConfig;
import com.dmdirc.DMDircMBassador;
import com.dmdirc.addons.ui_swing.EdtHandlerInvocation;
import com.dmdirc.addons.ui_swing.MainFrame;
import com.dmdirc.config.prefs.PluginPreferencesCategory;
import com.dmdirc.config.prefs.PreferencesCate... |
package com.carlosbecker;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
public class FizzBuzzTest {
private static FizzBuzz fb;
@BeforeClass
public static void init() {
fb = new FizzBuzz();
}
@Test
public void number_is_divisible_by_3() throws Exc... |
package org.cornutum.tcases;
import org.cornutum.tcases.generator.*;
import org.cornutum.tcases.generator.io.*;
import org.cornutum.tcases.io.*;
import org.apache.commons.collections4.IteratorUtils;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
impor... |
package com.cleeng.api;
import com.cleeng.api.domain.*;
import com.cleeng.api.domain.async.*;
import org.junit.*;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.*;
import st... |
package com.gildedrose;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class GildedRoseTest {
private static final String BACKSTAGE_PASSES_TO_A_TAFKAL80ETC_CONCERT = "Backstage passes to a TAFKAL80ETC concert";
private static final String JUNK = "jun... |
package imagej;
import imagej.util.ClassUtils;
import imagej.util.StringMaker;
/**
* Abstract superclass of {@link UIDetails} implementations.
*
* @author Curtis Rueden
*/
public abstract class AbstractUIDetails implements UIDetails {
/** Unique name of the object. */
private String name;
/** Human-read... |
package com.grum.geocalc;
import org.apache.log4j.Logger;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author rgallet
*/
public class DistanceTest {
final Logger logger = Logger.getLogger(getClass());
@Test
public void testDistance() {
//Kew
Coordinate lat = n... |
package com.jcabi.github;
import com.jcabi.aspects.Tv;
import javax.json.Json;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.RandomStringUtils;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.AfterClass;
import org.junit.Assume;
import org.junit.BeforeC... |
// %Z%%M%, %I%, %G%
// 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. See the GNU
// You should have received a copy of... |
package com.qiniu.qbox.testing;
import junit.framework.TestCase;
import com.qiniu.qbox.Config;
import com.qiniu.qbox.auth.CallRet;
import com.qiniu.qbox.auth.DigestAuthClient;
import com.qiniu.qbox.rs.BucketsRet;
import com.qiniu.qbox.rs.DeleteRet;
import com.qiniu.qbox.rs.DropRet;
import com.qiniu.qbox.rs.GetRet;
impo... |
package de.eightbitboy.ecorealms.logic;
public class MapPoint {
private int x;
private int y;
public MapPoint() {
this.x = 0;
this.y = 0;
}
public MapPoint(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return this.x;
}
public in... |
package org.extratrees;
import static org.junit.Assert.*;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
public class MultitaskTests {
public static FactorExtraTrees getData1(int ndata, int ndim) {
int[] output = new int[ndata];
double[] v = new dou... |
package wicket.markup.html.tree;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swi... |
package org.apache.commons.dbcp;
import java.sql.Connection;
import java.sql.DriverManager;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.pool.ObjectPool;
import org.apache.commons.pool.impl.GenericKeyedObjectPool;
import org.apache.commons.pool.impl.GenericKeyedObjectPoolFact... |
/*
* $Log: Adapter.java,v $
* Revision 1.12 2004-07-06 07:00:44 L190409
* configure now throws less exceptions
*
* Revision 1.11 2004/06/30 10:02:23 Gerrit van Brakel <gerrit.van.brakel@ibissource.org>
* improved error reporting
*
* Revision 1.10 2004/06/16 13:08:11 Johan Verrips <johan.verrips@ibissource... |
package tof.cv.mpp;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
im... |
/*
* $Log: Adapter.java,v $
* Revision 1.53 2009-06-05 07:20:40 L190409
* support for adapter level only statistics
* added throws clause to forEachStatisticsKeeperBody()
* end-processing of statisticskeeperhandler in a finally clause
* removed redundant names from statistics groups
* added getLastMessageDateD... |
//$URL$
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.dev.eth0.bitcointrader;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author deveth0
*/
public class Cache {
private static final long DEFAULT_LIFETIME = 15 * 60 ... |
package entity;
public class Player{
private String playerName;
private BankAccount bankAccount;
private int onField;
private int ID;
private static int nextID = 0;
private int equalsInRowCount;
private boolean playerInJail;
private int getOutOfJailCardCount;
private int attemptsAtGe... |
package uk.co.alynn.games.ld30;
import java.util.List;
import uk.co.alynn.games.ld30.world.Planet;
import uk.co.alynn.games.ld30.world.Adversary;
public class SuperimposedWave extends Wave {
private final Wave m_left;
private final Wave m_right;
public SuperimposedWave(Wave left, Wave right) {
m_lef... |
package org.commacq;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.jmx.export.annotation.ManagedOperation;
impo... |
package com.adaptc.mws.plugins;
import java.util.Map;
import groovy.lang.Closure;
import net.sf.json.JSON;
import net.sf.json.JSONObject;
import net.sf.json.JSONArray;
/**
* The Moab REST service gives easy access to all supported REST resources
* in Moab Web Services. The {@link #isAPIVersionSupported(int)} method ... |
package claw.wani.transformation.sca;
import claw.shenron.transformation.Transformation;
import claw.shenron.translator.Translator;
import claw.tatsu.common.Context;
import claw.tatsu.common.Message;
import claw.tatsu.common.Target;
import claw.tatsu.common.Utility;
import claw.tatsu.directive.common.DataMovement;
impo... |
package org.jamel.dbf;
import org.jamel.dbf.exception.DbfException;
import org.jamel.dbf.structure.DbfField;
import org.jamel.dbf.structure.DbfHeader;
import org.jamel.dbf.utils.DbfUtils;
import java.io.*;
import java.util.Date;
import java.util.GregorianCalendar;
public class DbfReader implements Closeable {
prote... |
package ar.com.ada3d.utilidades;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import org.openntf.domino.*;
import org.openntf.domino.xsp.XspOpenLogUtil;
public class DocUsr implements Serializable{
private static final long serialVersionUID = 1L;
private final HashMap<Strin... |
package debbie.DB;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.io.IOException;
import java.io.FileReader;
import java.io.BufferedReader;
/**
* A wrapper class for the database. This class will send queries t... |
package robots;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author Giuseppe Giorgi <giuseppe.giorgi1987@gmail.com>
*/
public abstract class AbstractRule implements Rule {
private String path;
private boolean wildcardsAllowed;
public AbstractRule(String path, boolean wildcardsAllow... |
package com.floreysoft.jmte;
import static org.junit.Assert.*;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Ar... |
package com.valkryst.VTerminal;
import com.valkryst.VTerminal.misc.IntRange;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.awt.*;
public class AsciiStringTest {
private final String testString = "ABCDEFGHJIKLMNOP";
private AsciiString string;
@Before
public void in... |
package ui;
import java.util.Observable;
import java.util.Observer;
import model.Turtle;
import javafx.scene.canvas.Canvas;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.paint.Color;
public class TurtleView implements Observer {
private ImageView myImageView;
private ... |
package uk.co.panaxiom.playjongo;
import static org.fest.assertions.Assertions.assertThat;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import play.Configuration;
import static uk.co.panaxiom.playjongo.PlayJongoTest.MapBuilder.*;
import com.mongodb.ServerAddress;
import com.mongodb.WriteConcer... |
package loader;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Frame;
import java.awt.KeyboardFocusManager;
import java.awt.LayoutManager;
import java.awt.Point;
import java.awt.Rectangle;
impor... |
package se.soy.gpg;
import java.util.List;
import java.util.ArrayList;
public class GPG {
// FIXME Remove when done
static<T> void println(T arg) { System.out.println(arg); }
/*
FIXME: Add as tests
GPG.decrypt(java.io.File).output();
GPG.decrypt("string").output(System.out, "println");
GPG.decrypt("string... |
package se.soy.gpg;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.io.*;
public class GPG {
// FIXME Remove when done
static<T> void println(T arg) { System.out.println(arg); }
/*
FIXME: Add as tests
GPG.decrypt(java.io.File).output();
GPG.decrypt("string").output(Sy... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import com.heroku.sdk.jdbc.DatabaseUrl;
public class NPD {
public String Id;
public String Name;
public Date LaunchDate;
public String Plant;
public String PlantCode;
public String ProjectName;
pub... |
import java.util.Random;
/**
* Basic Yut 11.13
*/
public class Yut {
private String[] yutMatrix;
private String[] yut = {"DOE", "GAE", "GIRL", "YUT", "MOE"};
private String typeOfPlayer = "o ";
private final int playerNum = 2;
private final int raceRoom = 10;
// Initialize Yut Matrix
publi... |
package com.github.podd.client.api;
/**
* The base class of unchecked exceptions thrown by the PODD Client API.
*
* @author Peter Ansell p_ansell@yahoo.com
*
*/
public class PoddClientException extends RuntimeException
{
private static final long serialVersionUID = -2854524362938904344L;
public PoddClientE... |
package com.sequenceiq.cloudbreak.cloud.arm;
public enum ArmDiskType {
LOCALLY_REDUNDANT("Standard_LRS", "l"),
GEO_REDUNDANT("Standard_GRS", "g");
// TODO DS_ instance types are required
// PREMIUM_LOCALLY_REDUNDANT("Premium_LRS", "p");
private final String value;
private final String abbreviati... |
package ai.vespa.reindexing;
import ai.vespa.reindexing.Reindexing.Status;
import ai.vespa.reindexing.ReindexingCurator.ReindexingLockException;
import com.google.inject.Inject;
import com.yahoo.document.DocumentType;
import com.yahoo.document.select.parser.ParseException;
import com.yahoo.documentapi.DocumentAccess;
i... |
package org.cloudname.zk;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.ZooKeeper;
import org.cloudname.Cloudname;
import org.cloudname.CloudnameException;
import org.cloudname.Coordinate;
import org.cloudname.CoordinateEx... |
package jolie;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedLi... |
package city;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import city.agents.PersonAgent;
import city.animations.RestaurantTimmsCashierAnimation;
import city.animations.RestaurantTim... |
package com.typesafe.config;
/**
* Context provided to a {@link ConfigIncluder}; this interface is only useful
* inside a {@code ConfigIncluder} implementation, and is not intended for apps
* to implement.
*
* <p>
* <em>Do not implement this interface</em>; it should only be implemented by
* the config library. ... |
package com.gpgex;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.app.Activity;
import org.haxe.extension.Extension;
import com.google.android.gms.games.Games;
import com.google.android.gms.games.Player;
import com.google.android.gms.common.api.GoogleApiClient;
import ... |
package com.mfk.web.maker.client;
import java.util.Vector;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.d... |
package otld.otld.jvm;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.Label;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.objectweb.asm.util.CheckClassAdapter;
import otld.otld.Compiler;
import ... |
package extension.collection;
/**
* Simple implementation of array of boolean values which
* requires only 1 bit of memory per boolean value
*
* @author Ivan Zaitsau
*/
public class BooleanArray {
private static int ADDRESS_BITS = 5;
private static int BITS = 1 << ADDRESS_BITS;
private static int MASK ... |
package org.neo4j.server.rest;
import java.text.ParseException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import org.neo4j.kernel.impl.annotations.Documented;
import org.neo4j.server.rest.repr.util.RFC1123;
import org.neo4j.server.rest.transactional.error.StatusCode;... |
package com.github.jsonldjava.core;
import static com.github.jsonldjava.utils.Obj.newMap;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.github.jsonldjava.core.JsonLdError.Error;
import com.github.jsonldjava.impl.NQuadRDF... |
package de.cubeisland.engine.reflect;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.logging.Level;
import de.cubeisland.engine.reflect.codec.FileCodec;
import de.cubeis... |
package org.bouncycastle.math.ec;
import java.math.BigInteger;
/**
* Class implementing the WNAF (Window Non-Adjacent Form) multiplication
* algorithm.
*/
public class WNafL2RMultiplier extends AbstractECMultiplier
{
/**
* Multiplies <code>this</code> by an integer <code>k</code> using the
* Window NAF... |
package visitor;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import exceptions.InternalAnalyzerException;
import logging.L1Logger;
import analyzer.level1.JimpleInjector;
import analyzer.level2.HandleStmt;
import soot.Local;
import soot.Value;
import soot.jimple.AddExpr;
import so... |
package uk.co.alt236.easycursor;
import java.util.Arrays;
import android.database.Cursor;
import android.database.CursorWrapper;
import android.util.Log;
public class EasyCursor extends CursorWrapper{
private static final String TAG = "EasyCursor";
private final static int COLUMN_NOT_PRESENT = -1;
public st... |
package com.company;
import com.company.entities.Item;
import org.htmlcleaner.TagNode;
import org.htmlcleaner.XPatherException;
import org.w3c.dom.NodeList;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import java.io.IOExc... |
package simulator.simbot;
import basestation.bot.robot.Bot;
import basestation.bot.sensors.SensorCenter;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import org.jbox2d.dynamics.World;
import simulator.physics.PhysicalObject;
import java.io.*;
import java.net.*;
import java.util.Map;
import jav... |
import java.util.Iterator;
import java.util.Set;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
public class PopUps {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "C:\chromedriver.exe");
ChromeDrive... |
package util;
import java.util.HashMap;
import java.util.Map;
import util.errors.ErrorManager;
import globals.*;
import gnu.kawa.lispexpr.ReadTable;
import gnu.mapping.*;
import gnu.math.RatNum;
import kawa.lang.NamedException;
import kawa.standard.Scheme;
/**
* Wrapper around Kawa.
*/
public class KawaWrap {
Sch... |
import com.cubethree.GPIOLib.*;
import java.util.Scanner;
public class Turn2 {
public static double high = 2.5;
public static double mid = 2;
public static double low = 1.5;
public static double bindToRange( double min, double value, double max ){ return Math.max( min, Math.min( max, value ) ); }
pu... |
package barbarahliskov.cambialibros;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayLi... |
package fr.conferencehermes.confhermexam;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.sup... |
package com.gravity.levels;
import java.awt.Color;
import java.awt.Font;
import java.nio.FloatBuffer;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.UnicodeFont;
import org.n... |
package forklift.connectors;
import forklift.consumer.ActiveMQMessageConsumer;
import forklift.consumer.ForkliftConsumerI;
import forklift.producers.ActiveMQProducer;
import forklift.producers.ForkliftProducerI;
import forklift.source.GroupedTopicSource;
import forklift.source.QueueSource;
import forklift.source.TopicS... |
package com.example.drinkingapp;
import java.text.DateFormatSymbols;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android... |
package primes.bramble;
import java.io.Serializable;
import java.util.ArrayList;
import bramble.networking.JobSetupData;
import bramble.node.controller.IControllerNode;
public class ControllerNodeRunner implements IControllerNode {
@Override
public JobSetupData getJobSetupData(int jobSetupDataID, int jobNumber)... |
package com.stanfy.enroscar.goro;
import android.test.AndroidTestCase;
import android.test.FlakyTest;
import com.stanfy.enroscar.async.AsyncObserver;
import com.stanfy.enroscar.goro.support.AsyncGoro;
import com.stanfy.enroscar.goro.support.RxGoro;
import java.util.concurrent.Callable;
import java.util.concurrent.Count... |
package com.fuzzywave.tetribattle.gameplay.statemachine;
import com.fuzzywave.tetribattle.TetriBattle;
import com.fuzzywave.tetribattle.gameplay.Block;
import com.fuzzywave.tetribattle.gameplay.BlockType;
import com.fuzzywave.tetribattle.gameplay.GameInstance;
import com.fuzzywave.tetribattle.gameplay.Piece;
public cla... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package experimentalgeography;
import com.google.common.base.*;
import com.google.common.collect.*;
import java.util.*;
import org.bukkit.*;
import org.bukkit.block.*;
/**
* Space represents some finite set of blocks th... |
package de.danoeh.antennapod.core.service.playback;
import android.content.Context;
import android.media.AudioAttributes;
import android.media.AudioFocusRequest;
import android.media.AudioManager;
import android.os.Build;
import android.os.PowerManager;
import android.support.annotation.NonNull;
import android.telephon... |
package fredboat.command.fun;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import fredboat.Config;
import fredboat.commandmeta.abs.Command;
import fredboat.commandmeta.abs.IFu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.