answer stringlengths 17 10.2M |
|---|
package com.github.fangzy.redis;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.Jedis;
import java.util.concurrent.*;
public class JLockTest extend... |
package com.github.javamodel;
import org.junit.Test;
import static org.junit.Assert.*;
public class NodeTreeTest {
private String toTree(String code){
Node root = new ParserCli().parse(code);
StringBuffer stringBuffer = new StringBuffer();
ParserCli.printTree(root, 0, stringBuffer);
... |
package com.jcabi.github;
import com.jcabi.aspects.Tv;
import javax.json.Json;
import javax.json.JsonObject;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.RandomStringUtils;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Assume;
import org.junit.Test;
... |
package com.networknt.schema;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.networknt.schema.walk.JsonSchemaWalkListener;
import com.networknt.schema.walk.WalkEvent;
import com.networknt.schema.walk.WalkFlow;
import org.junit.jupiter.api.AfterEach;
import... |
package mil.nga.geopackage.test;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.ByteBuffer;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.sql.SQLException;
import java.util.ArrayList;
import java... |
package org.cojen.tupl.rows;
import java.lang.reflect.Method;
import java.util.*;
import org.junit.*;
import static org.junit.Assert.*;
import org.cojen.tupl.*;
/**
*
*
* @author Brian S O'Neill
*/
public class FilteringTest {
public static void main(String[] args) throws Exception {
org.junit.runner.JU... |
package org.smoothbuild.testing;
import static org.smoothbuild.testing.TestingStream.assertContent;
import java.io.IOException;
import org.smoothbuild.fs.base.FileSystem;
import org.smoothbuild.fs.plugin.MutableStoredFile;
import org.smoothbuild.plugin.File;
import org.smoothbuild.plugin.Path;
public class TestingFile ... |
package uk.me.graphe.server.database.dbitems;
import java.util.List;
import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
@Entity
public class UserDB {
@Id
private String mUserID;
private String mEmail;
private List<String> mKeys;
// Void constructor for ... |
package com.cardpay.pbccrcReport;
/**
* @Title: Constants.java
* @Description: TODO()
* @author
* @date 2014-12-2 11:52:33
*/
public class Constants {
public final static String PBOC_REQUEST_RESULT_0 = "0";
public final static String PBOC_REQUEST_RESULT_1 = "1";
public final static String PBOC_REQUEST_... |
package com.sun.facelets.compiler;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.el.ELException;
import javax.el.ExpressionFactory;
import j... |
package ru.fitgraph.rest.resources;
import org.hibernate.validator.constraints.NotEmpty;
import ru.fitgraph.database.users.User;
import ru.fitgraph.database.users.UserController;
import ru.fitgraph.engine.secure.AuthController;
import ru.fitgraph.engine.vkapi.VkAuth;
import ru.fitgraph.engine.vkapi.exceptions.VkSideErr... |
package com.facebook.csslayout;
import javax.annotation.Nullable;
import java.util.ArrayList;
import com.facebook.infer.annotation.Assertions;
/**
* A CSS Node. It has a style object you can manipulate at {@link #style}. After calling
* {@link #calculateLayout()}, {@link #layout} will be filled with the results of th... |
package jmetest.TutorialGuide;
import java.net.URL;
import java.util.Random;
import com.jme.app.SimpleGame;
import com.jme.bounding.BoundingSphere;
import com.jme.image.Texture;
import com.jme.input.KeyInput;
import com.jme.input.action.AbstractInputAction;
import com.jme.intersection.Intersection;
import com.jme.math.... |
package jmetest.renderer.loader;
import com.jme.app.SimpleGame;
import com.jme.scene.model.XMLparser.JmeBinaryReader;
import com.jme.scene.model.XMLparser.BinaryToXML;
import com.jme.scene.model.XMLparser.Converters.MaxToJme;
import com.jme.scene.Node;
import com.jme.scene.state.CullState;
import com.jme.scene.state.Re... |
package soot.jimple.spark.internal;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import soot.AnySubType;
import soot.ArrayType;
import soot.FastHierarchy;
import soot.G;
import soot.NullType;
import soot.Re... |
package backtype.storm.task;
import backtype.storm.generated.Bolt;
import backtype.storm.generated.ComponentCommon;
import backtype.storm.generated.GlobalStreamId;
import backtype.storm.generated.Grouping;
import backtype.storm.generated.SpoutSpec;
import backtype.storm.generated.StateSpoutSpec;
import backtype.storm.g... |
package unitTests;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.ow2.proactive.scheduler.common.job.JobEnvironment;
import org.ow2.proactive.scheduler.common.job.JobId;
import... |
package krasa.grepconsole.plugin;
import com.intellij.execution.configurations.RunConfigurationBase;
import com.intellij.execution.filters.CompositeInputFilter;
import com.intellij.execution.filters.InputFilter;
import com.intellij.execution.impl.ConsoleViewImpl;
import com.intellij.execution.ui.ConsoleView;
import com... |
package cn.cerc.mis.language;
import cn.cerc.core.IHandle;
import cn.cerc.core.TDateTime;
import cn.cerc.core.Utils;
import cn.cerc.db.mysql.SqlQuery;
import cn.cerc.mis.core.Application;
import cn.cerc.mis.core.ISystemTable;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
@Slf4j
public ... |
package com.igumnov.common;
import org.junit.Test;
import javax.security.auth.callback.CallbackHandler;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import static org.junit.Assert.*;
public class CacheTest {
@Test
public void testCache() throws ExecutionException, Interrup... |
package com.obdobion.excom;
import org.junit.Test;
import com.obdobion.argument.CmdLine;
import com.obdobion.argument.annotation.Arg;
import com.obdobion.howto.App;
import com.obdobion.howto.Config;
import com.obdobion.howto.Context;
import com.obdobion.howto.PluginManager;
import junit.framework.Assert;
/**
* <p>
* ... |
package ru.mail.polis;
import org.apache.http.HttpResponse;
import org.apache.http.client.fluent.Request;
import org.jetbrains.annotations.NotNull;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
import java.io.File;
import java.io... |
/*
* This represents a reader thread in the simulator which keeps on reading from EMUTHREADS.
*/
package emulatorinterface;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
imp... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tonegod.gui.controls.extras;
import com.jme3.font.BitmapFont;
import com.jme3.font.LineWrapMode;
import com.jme3.input.KeyInput;
import com.jme3.input.event.KeyInputEvent;
import com.jme3.input.event.MouseButtonE... |
package javaslang.collection.euler;
import javaslang.Function2;
import javaslang.Function3;
import javaslang.collection.*;
import javaslang.control.Option;
public class Sieve {
final static List<Function2<Integer, Integer, Option<Integer>>> rules = List.of(
(x, y) -> Option.of((4 * x * x) + (y * y)).fil... |
package org.owasp.esapi.codecs;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class CodecTest extends TestCase {
private static final char[] EMPTY_CHAR_ARRAY = new char[0];
private static final Character LESS_THAN = Character.valueOf('<');
private sta... |
package us.kbase.userprofile;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import us.kbase.common.service.JsonServerMethod;
import us.kbase.common.service.JsonServerServlet;
//BEGIN_HEADER
import java.util.ArrayList;
import us.kbase.auth.AuthService;
import us.k... |
package seedu.gtd.logic;
import com.google.common.eventbus.Subscribe;
import seedu.gtd.commons.core.EventsCenter;
import seedu.gtd.commons.events.model.AddressBookChangedEvent;
import seedu.gtd.commons.events.ui.JumpToListRequestEvent;
import seedu.gtd.commons.events.ui.ShowHelpRequestEvent;
import seedu.gtd.logic.Logi... |
package org.apache.commons.lang.enum;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import junit.framework.Test;
import jun... |
package org.jdesktop.swingx;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.InvocationTargetException;
import java.util.Vector;
import java.util.logging.Logger;
import javax.swing.AbstractA... |
package org.jsimpledb.core;
import java.io.ByteArrayInputStream;
import org.jsimpledb.TestSupport;
import org.jsimpledb.kv.simple.SimpleKVDatabase;
import org.jsimpledb.schema.SchemaModel;
import org.testng.Assert;
import org.testng.annotations.Test;
public class DeleteListenerTest extends TestSupport {
@Test
@... |
package uk.org.cinquin.mutinack.misc_util;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
@SuppressWarnings("static-method")
public class UtilTest {
@Test
public void testBasesEqualByteByteBoolean() {
assertFalse(Util.basesEqual((byte) 'a', ... |
package com.googlecode.charts4j;
import static com.googlecode.charts4j.Color.BLUE;
import static com.googlecode.charts4j.TestUtil.getBasicChart;
import static com.googlecode.charts4j.UrlUtil.normalize;
import static org.junit.Assert.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.junit.Af... |
package controllers;
import com.fasterxml.jackson.databind.node.ObjectNode;
import play.data.*;
import play.libs.Json;
import play.libs.WS;
import play.libs.F.Function;
import play.libs.F.Function0;
import play.libs.F.Promise;
import play.mvc.Controller;
import play.mvc.Result;
import play.mvc.Security;
import views.ht... |
package eu.verdelhan.ta4j;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
import java.math.RoundingMode;
/**
* Immutable, arbitrary-precision signed decimal numbers designed for technical analysis.
* <p>
* A {@code TADecimal} consists of a {@code BigDecimal} with arbitrary {@... |
package baseCodeTest.dataFilter;
import java.util.HashSet;
import java.util.Set;
import baseCode.dataFilter.RowNameFilter;
import baseCode.dataStructure.DenseDoubleMatrix2DNamed;
import baseCode.dataStructure.reader.DoubleMatrixReader;
import junit.framework.TestCase;
import java.net.URL;
/**
* @author Paul Pavlidis
... |
package com.dmdirc.logger;
import com.dmdirc.util.ClientInfo;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Optional;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Capto... |
package org.github.irengrig.test;
import com.intellij.openapi.progress.EmptyProgressIndicator;
import com.intellij.openapi.util.Ref;
import com.intellij.openapi.vcs.*;
import com.intellij.openapi.vcs.changes.Change;
import com.intellij.openapi.vcs.update.SequentialUpdatesContext;
import com.intellij.openapi.vcs.update.... |
package com.ecyrd.jspwiki.ui;
import java.util.Properties;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import com.ecyrd.jspwiki.TestEngine;
import com.ecyrd.jspwiki.TestHttpServletRequest;
import com.ecyrd.jspwiki.WikiContext;
import com.ecyrd.jspwiki.WikiEngine;
impo... |
package com.ezardlabs.lostsector;
import com.ezardlabs.dethsquare.Transform;
import com.ezardlabs.dethsquare.Vector2;
import com.ezardlabs.lostsector.NavMesh.NavPoint.NavPointType;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Stack;
public class NavMesh {
publi... |
package act.db.morphia;
import act.Act;
import act.ActComponent;
import act.app.App;
import act.app.DbServiceManager;
import act.db.*;
import act.util.General;
import com.mongodb.DBCollection;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.aggregation.AggregationPipeline;
import org.mongodb.morphia.ag... |
package com.areen.jlib.gui;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing... |
package com.fishercoder.solutions;
/**
*41. First Missing Positive
*Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
*/
public class _41 {
public static class... |
package com.fishercoder.solutions;
public class _88 {
public static class Solution1 {
public void merge(int[] nums1, int m, int[] nums2, int n) {
int i = m - 1;
int j = n - 1;
int k = m + n - 1;
while (i >= 0 && j >= 0) {
if (nums1[i] > nums2[j... |
package com.github.pagehelper;
import com.foundationdb.sql.StandardException;
import com.foundationdb.sql.parser.FromBaseTable;
import com.foundationdb.sql.parser.OrderByList;
import com.foundationdb.sql.parser.SQLParser;
import com.foundationdb.sql.parser.StatementNode;
import com.foundationdb.sql.unparser.NodeToStrin... |
package com.gmail.nossr50.util;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.AnimalTamer;
import org.bukkit.entity.Animals;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.IronGolem;
import... |
package com.guitar.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
impor... |
package com.jaamsim.input;
import com.jaamsim.basicsim.Entity;
public class InOutHandle extends OutputHandle {
private final Input<?> in;
private final String name;
private final Class<?> returnType;
private final Class<? extends Entity> entClass;
public InOutHandle(Entity ent, Input<?> in) {
... |
package com.jaamsim.ui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowFocusListener;
import ... |
package com.pft.datapovider.stub;
import com.pft.core.domain.GetDailyWip;
import com.pft.core.domain.GetLeadTimeDistribution;
import com.pft.core.domain.LeadTimeDistribution;
import com.pft.core.domain.ValueProbability;
import javax.inject.Named;
@Named
public class Stub implements GetLeadTimeDistribution, GetDailyWip ... |
package com.project1;
import java.io.IOException;
import java.math.BigInteger;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.security.SecureRandom;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impo... |
package com.queen.counter.domain;
import javafx.animation.Animation;
import javafx.animation.TranslateTransition;
import javafx.beans.binding.When;
import javafx.beans.property.*;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Text;
import org.reactfx.EventStream;
import org.reactfx.EventStreams;
import ... |
package com.saha.service;
import com.saha.model.User;
import com.saha.persistence.entity.TweetEntity;
import com.saha.persistence.entity.UserEntity;
import com.saha.persistence.repository.UserRepository;
import org.dozer.DozerBeanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... |
package mondrian.olap.fun;
import junit.framework.TestCase;
import mondrian.olap.*;
import java.io.PrintWriter;
/**
* <code>MemberHelperTest</code> tests {@link MemberHelper}.
*
* @author gjohnson
* @version $Id$
*/
public class MemberHelperTest extends TestCase {
public MemberHelperTest(String name) {
... |
package com.theironyard.entities;
import org.springframework.stereotype.Controller;
import javax.persistence.*;
@Entity
@Table(name = "shops")
public class Shop {
@Id
@GeneratedValue
int id;
@Column()
String name;
@Column()
String location;
@Column()
String hours;
@Column()
S... |
package com.velo.cityon.api.vo;
import java.util.Date;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
@Document(collection="post")
@JsonInclude(JsonIncl... |
package edu.chl.proton.model;
import java.io.File;
import java.io.IOException;
import java.util.*;
public class Document {
private Cursor cursor;
private FileUtility file;
IDoc docType;
public Document(IDoc type){
this.docType = type;
}
public Document(IDoc type, File file){
this... |
package edu.howest.breakout.game;
import edu.howest.breakout.game.difficulty.Difficulty;
import edu.howest.breakout.game.entity.Entity;
import edu.howest.breakout.game.entity.EntityBall;
import edu.howest.breakout.game.entity.EntityPad;
import edu.howest.breakout.game.info.GameProperties;
import edu.howest.breakout.gam... |
package edu.jhu.hlt.optimize;
/**
* An unconstrained real scalar function.
*
* f: \mathcal{R}^n --> \mathcal{R}
*
* @author mgormley
* @author noandrews
*/
public interface Function {
/**
* Sets the current point for this function.
* @param point The point.
*/
void setPoint(double[] point)... |
package edu.ufl.cise.cnt5106c;
import edu.ufl.cise.cnt5106c.conf.RemotePeerInfo;
import edu.ufl.cise.cnt5106c.log.EventLogger;
import edu.ufl.cise.cnt5106c.log.LogHelper;
import edu.ufl.cise.cnt5106c.messages.Have;
import edu.ufl.cise.cnt5106c.messages.NotInterested;
import edu.ufl.cise.cnt5106c.messages.Piece;
import ... |
package org.bouncycastle.tls;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.Enumeration;
import java.util.Hashtable;
import java.ut... |
package elegit;
import javafx.concurrent.Task;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import java.io.File;
import java.io.IOException;
import java.nio.file.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class ConflictingFileWatcher {
... |
package io.ebean.typequery;
import io.ebean.CacheMode;
import io.ebean.DtoQuery;
import io.ebean.Ebean;
import io.ebean.EbeanServer;
import io.ebean.ExpressionList;
import io.ebean.FetchConfig;
import io.ebean.FetchGroup;
import io.ebean.FutureIds;
import io.ebean.FutureList;
import io.ebean.FutureRowCount;
import io.e... |
package io.leonrd.webdav;
import fi.iki.elonen.NanoHTTPD;
import org.kxml2.io.KXmlParser;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.*;
import java.net.URLEncoder;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
public class WebD... |
package junitparams;
import java.util.List;
import org.junit.runner.Description;
import org.junit.runner.manipulation.Filter;
import org.junit.runner.manipulation.NoTestsRemainException;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.Fra... |
package me.nucleartux.date;
import android.app.Activity;
import android.app.DialogFragment;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
public class DateMod... |
package me.rkfg.ns2gather.client;
import static ru.ppsrk.gwt.client.ClientUtils.*;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import me.rkfg.ns2gather.dto.ChatMessageType;
import me.rkfg.ns2gather.dto.CheckedDTO;
im... |
package mil.nga.geopackage.io;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.HashMap;
imp... |
package mytown.entities.flag;
import mytown.proxies.LocalizationProxy;
public enum FlagType {
// CONSTRUCTOR: class, value, allowedValues, wildPerm, defaultWildPerm, townOnly, mod, isWhitelistable <false>
// Allows entering the area
enter(Boolean.class, true, null, false, true, Property.all, null),
// A... |
package net.mingsoft.config;
import java.io.File;
import org.springframework.aop.Advisor;
import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.aop.support.JdkRegexpMethodPointcut;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web... |
package no.ntnu.okse.core;
import no.ntnu.okse.core.event.Event;
import no.ntnu.okse.core.event.SystemEvent;
import no.ntnu.okse.core.messaging.Message;
import no.ntnu.okse.protocol.ProtocolServer;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.concurrent.ExecutorService;
import java.util.concur... |
package org.assertj.db.type;
import static java.lang.Character.isDigit;
import java.text.ParseException;
public class DateValue {
/**
* Day of the month.
*/
private final int dayOfTheMonth;
/**
* Month.
*/
private final int month;
/**
* Year.
*/
private final int year;
/**
* Indicates... |
package org.dynmap.spout;
import java.io.File;
import java.net.InetSocketAddress;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
import org.dynmap.DynmapCommonAPI;
import org.... |
package org.jasonnet.bytes;
/**
* A set of helper functions for working with byte arrays.
*
* @author jasonnet (12/18/2014)
*/
public class ByteArrays {
/**
* hiding default constructor by declaring it private.
*
* @author jasonnet (12/19/2014)
*/
private ByteArrays() {
}
/**
... |
package org.jspec.runner;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import org.jspec.dsl.It;
final class FieldExample implements Example {
private final Field behavior;
public FieldExample(Field behavior) {
if(!It.class.equals(behavior.getType()))
throw new UnsupportedFieldExce... |
package org.jtrfp.trcl;
import java.awt.Color;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.TimerTask;
import org.jtrfp.trcl.core.TR;
import org.jtrfp.trcl.file.LVLFile;
import org.jtrfp.trcl.flow.Game;
import org.jtrfp.trcl.obj.EnemyIntro;
import org.jtrfp.trcl.obj.PositionedRenderable;... |
package org.kuali.kra.bo;
import java.sql.Date;
import java.util.List;
import org.springframework.util.AutoPopulatingList;
public class Organization extends KraPersistableBusinessObjectBase {
private static final long serialVersionUID = 2010946634885248282L;
private String organizationId;
private String add... |
package org.lantern;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.Certificate;
import java.security.cert.Ce... |
package org.mowit.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
import org.mowit.validator.PositiveValidator;
@Retention(Ret... |
package org.oregami.entities;
import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;
import org.hibernate.envers.Audited;
import javax.persistence.Entity;
@Entity
@Audited
@TopLevelEntity(discriminator = TopLevelEntity.Discriminator.LANGUAGE)
@NamedQueries({@NamedQuery(name="languag... |
package org.pfaa.block;
import java.util.List;
import org.pfaa.chemica.model.Condition;
import org.pfaa.geologica.GeoMaterial;
import org.pfaa.geologica.Geologica;
import org.pfaa.geologica.client.registration.ClientRegistrant;
import org.pfaa.geologica.processing.Aggregate;
import net.minecraft.block.Block;
import net... |
package org.rundeck.api;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang.StringUtils;
import org.rundeck.api.RundeckApiException.RundeckApiLoginException;
import org.rundeck.api.domain.Runde... |
package org.rundeck.api;
import java.io.Serializable;
import java.util.List;
import java.util.Properties;
import org.apache.commons.lang.StringUtils;
import org.rundeck.api.RundeckApiException.RundeckApiLoginException;
import org.rundeck.api.domain.RundeckExecution;
import org.rundeck.api.domain.RundeckJob;
import org.... |
package org.rurik.geohash;
import java.util.ArrayList;
import java.util.List;
import static java.lang.Math.*;
public class GeohashGrid {
private final int LONGITUDE_PERIOD = 360;
private final int LONGITUDE_CORRECTION = -180;
private final int LATITUDE_PERIOD = 180;
private final int LATITUDE_CORRECTION... |
package org.wahlzeit.model;
import com.googlecode.objectify.annotation.Id;
import java.util.Calendar;
public class Motorcycle {
private MotorcycleType motorcycleType;
private String brand;
private String model;
private int buildYear;
public Motorcycle(MotorcycleType mt, String brand, String model, i... |
package org.zendesk.client.v2;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxm... |
package seedu.ezdo.model;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.EmptyStackException;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
import java.util.logging.Logger;
import javafx.collections.transformation.FilteredList;
import seedu.ezdo.commons.core.C... |
package seedu.gtd.logic.parser;
import static seedu.gtd.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.gtd.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import seedu.gtd.commons.exceptions.IllegalValueExcepti... |
package seedu.taskell.model.task;
import java.util.Objects;
import seedu.taskell.commons.exceptions.IllegalValueException;
import seedu.taskell.commons.util.CollectionUtil;
import seedu.taskell.model.tag.UniqueTagList;
/**
* Represents a Task in the task manager.
* Guarantees: details are present and not null, field ... |
package springer.di;
import java.util.LinkedHashMap;
import java.util.Map;
public class DependencyBuilder<K> implements IDependencyBuilder<K> {
private final Map<K, IComponentSource<?, K>> graph = new LinkedHashMap<K, IComponentSource<?, K>>();
public DependencyBuilder<K> set(K key, IComponentSource<?, K> sourc... |
package tigase.db.jdbc;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.CallableStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.util.Arrays;
import ... |
package util.events;
import backend.interfaces.IModel;
import backend.resource.MultiModel;
import java.util.Optional;
public class ModelUpdatedEvent extends Event {
public final IModel model;
public final boolean hasMetadata;
public ModelUpdatedEvent(MultiModel models, boolean hasMetadata) {
this.mo... |
package xyz.openmodloader.event;
public class Event {
/**
* Whether or not the event has been canceled.
*/
private boolean canceled;
/**
* Checks if the event can be canceled.
*
* @return Whether or not the event can be canceled.
*/
public boolean isCancelable() {
r... |
package com.plugin.core;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ServiceInfo;
import android.os.Build;
import com.plugin.content.PluginActivityInfo;
import com.plugin.content.PluginDescriptor;
import com.plugin.content.PluginReceiverIntent;
import com.plugin.core.m... |
package com.backendless.push;
import android.app.AlarmManager;
import android.app.IntentService;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import androi... |
//$HeadURL$
package org.deegree.record.persistence;
import java.io.File;
import java.io.FilenameFilter;
import java.net.URL;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import jav... |
package com.ecyrd.jspwiki.providers;
import java.io.IOException;
import java.io.File;
import java.io.StringReader;
import java.util.*;
import org.apache.log4j.Logger;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.ana... |
package integrationTests.multicast;
import java.io.*;
import java.net.*;
import org.junit.*;
import mockit.*;
import static org.junit.Assert.*;
public final class MessageTest
{
static final String testContents = "hello there";
@Test
public void sendMessageToSingleClient() throws Exception
{
final Clie... |
package com.github.andlyticsproject;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
im... |
package com.itmill.toolkit.demo.testbench;
import java.io.File;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import com.itmill.toolkit.Application;
import com.itmill.toolkit.data.Property;
import com.itmill.too... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.