answer stringlengths 17 10.2M |
|---|
package org.virtue.engine.script.api;
import org.virtue.game.entity.Entity;
import org.virtue.game.map.CoordGrid;
public interface EntityAPI {
public void moveTo (Entity entity, CoordGrid coords);
public void setCoords(Entity entity, CoordGrid coords);
/**
* Retrieves the current coordinates of the spe... |
package org.xtx.ut4converter.t3d;
import org.xtx.ut4converter.MapConverter;
import org.xtx.ut4converter.export.UTPackageExtractor;
import org.xtx.ut4converter.tools.Geometry;
import org.xtx.ut4converter.ucore.UPackageRessource;
import org.xtx.ut4converter.ucore.ue1.BrushPolyflag;
import org.xtx.ut4converter.ucore.ue4.B... |
package reborncore.common.crafting;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.mojang.datafixers.Dynamic;
import com.mojang.datafixers.types.JsonOps;
import net.minecraft.datafixers.NbtOps;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.i... |
package tachyon.web;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import tachyon.CommonUtils;
import tachyon.Constants;
import tachyon.MasterIn... |
package tbax.baxshops.serialization;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;
import org.bukkit.block.Block;
import org.bukkit.block.Sign;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import o... |
package tigase.server.sreceiver;
import java.util.Map;
import java.util.LinkedHashMap;
import java.util.logging.Logger;
import tigase.server.Command;
import tigase.server.Packet;
import tigase.util.JIDUtils;
import tigase.xml.XMLUtils;
import static tigase.server.sreceiver.PropertyConstants.*;
import static tigase.serv... |
package weka.classifiers.trees.xgboost;
import ml.dmlc.xgboost4j.java.Booster;
import weka.classifiers.AbstractClassifier;
import weka.core.*;
import ml.dmlc.xgboost4j.java.DMatrix;
import weka.core.Capabilities.Capability;
import java.util.*;
/**
* <!-- globalinfo-start -->
* * Class for a XGBoost classifier.
* * <... |
package yokohama.unit.translator;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Op... |
package main.sg.javapackage.visualize;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Shape;
import java.io.File;
import java.io.IOException;
import java.text.NumberFormat;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.S... |
/**
* Custom asciitable render
*
* @author Nuno Aguiar
* based on de.vandermeer.asciitable.v2.render.WidthLongestWordMaxCol
*
*/
package openaf.asciitable.render;
import de.vandermeer.asciitable.v2.V2_AsciiTable;
import de.vandermeer.asciitable.v2.render.V2_Width;
import de.vandermeer.asciitable.v2.row.V2_Row;
im... |
package org.bouncycastle.x509;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1InputStream;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERBitString;
import org.bouncycastle.asn1.DERObjectIdentifier;
import org.bouncycastle.asn1.x509.AttributeCertificate;
import ... |
package org.ensembl.healthcheck.testgroup;
import org.ensembl.healthcheck.GroupOfTests;
/**
* These are the tests that register themselves as ensembl_genomes. The tests are:
*
* <ul>
* <li> org.ensembl.healthcheck.testcase.eg_core.DuplicateXref </li>
* <li> org.ensembl.healthcheck.testcase.eg_core.ExonBoundary... |
package org.firebears.commands.drive;
import org.firebears.Robot;
import org.firebears.RobotMap;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.command.Command;
public class ToteApproachCommand extends Command {
boolean continueCommand;
int lastState;
public final double DRIVE_TO = 6.0;
... |
package org.gridlab.gridsphere.tools;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.BuildException;
import java.util.jar.JarFile;
import java.util.jar.JarEntry;
import java.util.jar.JarOutputStream;
import java.util.Enumeration;
import java.util.Vector;
import java.util.List;
import java.io.*;
public cl... |
package org.jets3t.servlets.gatekeeper;
import java.security.Principal;
import javax.servlet.http.HttpSession;
/**
* Stores information about an HTTP client that submitted a request to the Gatekeeper.
* <p>
* The information available about a client will depend on the server and client configuration,
* such as whet... |
package org.objectweb.proactive.ic2d.gui.data;
import org.objectweb.proactive.ic2d.data.AbstractDataObject;
import org.objectweb.proactive.ic2d.data.HostObject;
import org.objectweb.proactive.ic2d.data.WorldObject;
import org.objectweb.proactive.ic2d.event.WorldObjectListener;
import org.objectweb.proactive.ic2d.gui.Ac... |
package org.usfirst.frc.team1306.robot.subsystems;
import org.usfirst.frc.team1306.robot.Constants;
import org.usfirst.frc.team1306.robot.RobotMap;
import org.usfirst.frc.team1306.robot.commands.turret.ResetTurret;
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.CANTalon.FeedbackDevice;
import edu.w... |
package day03;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class FrontPanel {
// {x: {y: {'r', 'b'}}}
protected HashMap<Integer, Map<Integer, Map<Character, Integer>>> pointWires;
// {'r': {x: {y, ...}}}
protected HashMap<Character, Map<Integer,... |
package org.xbill.DNS;
import java.io.*;
import java.util.*;
import java.text.*;
import org.xbill.DNS.utils.*;
/**
* Transaction Key - used to compute and/or securely transport a shared
* secret to be used with TSIG.
* @see TSIG
*
* @author Brian Wellington
*/
public class TKEYRecord extends Record {
private Name... |
package org.wisdom.api.http;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Preconditions;
import org.wisdom.api.bodies.NoHttpBody;
import org.wisdom.api.bodies.RenderableFile;
import org.wisdom.api.bodies.RenderableStream;
import org.wisdom.api.bodies.RenderableURL;
import java.io... |
package org.devgateway.ocds.web.rest.controller.test;
import com.mongodb.DBObject;
import org.apache.commons.io.IOUtils;
import org.devgateway.ocds.persistence.mongo.Organization;
import org.devgateway.ocds.persistence.mongo.repository.ReleaseRepository;
import org.devgateway.ocds.persistence.mongo.spring.ExcelImportSe... |
package com.box.l10n.mojito.service.assetExtraction;
import com.box.l10n.mojito.entity.Asset;
import com.box.l10n.mojito.entity.AssetContent;
import com.box.l10n.mojito.entity.AssetExtraction;
import com.box.l10n.mojito.entity.AssetExtractionByBranch;
import com.box.l10n.mojito.entity.AssetTextUnit;
import com.box.l10n... |
package ${package};
import fiftyfive.wicket.FoundationApplication;
import ${package}.home.HomePage;
import org.apache.wicket.Request;
import org.apache.wicket.ResourceReference;
import org.apache.wicket.Response;
import org.apache.wicket.javascript.DefaultJavascriptCompressor;
import org.apache.wicket.markup.html.Packa... |
package cn.wizzer.app.web.commons.processor;
import org.nutz.lang.Stopwatch;
import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.nutz.mvc.ActionContext;
import org.nutz.mvc.impl.processor.AbstractProcessor;
import javax.servlet.http.HttpServletRequest;
public class LogTimeProcessor extends AbstractProcessor {... |
package ro.isdc.wro.extensions.processor;
import java.io.File;
import java.io.StringReader;
import java.io.StringWriter;
import java.net.URL;
import java.util.concurrent.Callable;
import org.junit.Before;
import org.junit.Test;
import ro.isdc.wro.extensions.processor.css.BourbonCssProcessor;
import ro.isdc.wro.model.re... |
package com.xpn.xwiki.web;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.xwiki.job.Job;
import org.xwiki.model.reference.DocumentReference;
import org.xwiki.model.reference.EntityReference;
import org.xwiki.refactoring.script.RefactoringScriptService;
import org.xwiki.script.service.Scr... |
package polyglot.ext.jl5.types;
import java.util.*;
import polyglot.ext.param.types.PClass;
import polyglot.frontend.Source;
import polyglot.types.*;
import polyglot.util.CodeWriter;
import polyglot.util.InternalCompilerError;
import polyglot.util.TypedList;
@SuppressWarnings("serial")
public class JL5ParsedClassType_c... |
package org.dspace.app.itemimport;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.util.ArrayLis... |
package polyglot.ext.jl5.types;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import polyglot.ext.jl5.types.reflect.JL5LazyClassInitializer;
import polyglot.ext.param.types.PClass;
import polyglot.frontend.Source;
import polyglot.types.ClassType;
import pol... |
package com.sun.web20.driver;
import com.sun.faban.common.NameValuePair;
import com.sun.faban.common.Utilities;
import com.sun.faban.driver.*;
import com.sun.web20.util.RandomUtil;
import com.sun.web20.util.ScaleFactors;
import com.sun.web20.util.UserName;
import org.apache.commons.httpclient.HttpClient;
import org.apa... |
package au.edu.uts.eng.remotelabs.schedserver.bookings.impl.slotsengine;
import static au.edu.uts.eng.remotelabs.schedserver.bookings.impl.slotsengine.SlotBookingEngine.TIME_QUANTUM;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import au.edu.uts.eng.remotelabs.sched... |
package radlab.rain.workload.mongodb;
import java.net.UnknownHostException;
import java.util.ArrayList;
//import java.util.Hashtable;
import com.mongodb.BasicDBObject;
import com.mongodb.DBAddress;
import com.mongodb.DBCursor;
import com.mongodb.Mongo;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.... |
package edu.uw.bladedroid;
import java.util.Set;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import edu.uw.bladedroid.blade.AbstractBlade;
import edu.uw.bladedroid.loader.BladeLoader;
public final class BladeDroid {
public static final String TAG = "... |
package org.slc.sli.api.service;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springfram... |
// ZAP: 2011/05/15 Support for exclusions
// ZAP: 2012/11/01 Issue 411: Allow proxy port to be specified on the command line
// ZAP: 2012/12/27 Added method addPersistentConnectionListener(...)
// ZAP: 2013/01/25 Added method removeProxyListener()
// ZAP: 2013/08/30 Issue 775: Allow host to be set via the command line
... |
public class Image
{
/*
* 144 tiles in the example. Hard wire
* this for now but could make it dynamic.
*/
public static final int MAX_X = 12;
public static final int MAX_Y = 12;
public static final String NO_TILE = "xxxxxxxx";
public Image (boolean debug)
{
this(MAX_Y, MA... |
package com.cosylab.acs.maci.test;
import java.io.File;
import java.util.Properties;
import com.cosylab.acs.maci.manager.HandleDataStore;
import com.cosylab.acs.maci.manager.ManagerImpl;
import com.cosylab.acs.maci.plug.ClientProxyImpl;
import com.cosylab.util.FileHelper;
import junit.framework.TestCase;
import org.omg... |
package com.sunteam.ebook.view;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import com.sunteam.ebook.R;
import com.sunteam.ebook.entity.ReadMode;
import com.sunteam.ebook.entity.ReverseInfo;
import com.sunteam.ebook.entity.SplitInfo;
import... |
/**
* $Id: HighlightTextTag.java,v 1.3 2006-05-04 17:30:41 schroedn Exp $
*
* $Log: not supported by cvs2svn $
*
*/
package gov.nih.nci.camod.webapp.taglib;
import gov.nih.nci.camod.Constants;
import java.io.IOException;
import java.io.Serializable;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
i... |
package gov.nih.nci.nbia.restAPI;
import gov.nih.nci.nbia.restUtil.OviyamUtil;
import java.util.List;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
im... |
package com.alibaba.json.bvt.bug;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import junit.framework.TestCase;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public class Issue978 extends TestCase {
protected... |
package com.db.common.gui;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.BasicStroke;
import java.awt.Insets;
import java.awt.Point;
import java.aw... |
package gov.nih.nci.ncicb.cadsr.loader.parser;
import gov.nih.nci.ncicb.cadsr.loader.event.*;
import gov.nih.nci.ncicb.cadsr.loader.defaults.UMLDefaults;
import org.apache.log4j.Logger;
import gov.nih.nci.ncicb.cadsr.loader.util.PropertyAccessor;
import gov.nih.nci.ncicb.cadsr.loader.util.StringUtil;
import gov.nih.nci... |
package com.mangopay.core;
import com.mangopay.core.enumerations.*;
import com.mangopay.entities.*;
import com.mangopay.entities.subentities.*;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
impor... |
package hu.pazsitz.pacuse.pageObjects;
import hu.pazsitz.pacuse.pages.AbstractPage;
import hu.pazsitz.pacuse.pages.AbstractWidget;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import com.google.common.collect.Iterables;
public abstr... |
package com.navigation.reactnative;
import android.content.Context;
import android.graphics.Rect;
import android.os.Build;
import android.util.DisplayMetrics;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.WindowManager;
im... |
package com.github.wolf480pl.phpass;
import junit.framework.Assert;
import junit.framework.TestCase;
import org.junit.Test;
public class TestPHPass extends TestCase {
static final String correct = "test12345";
static final String wrong = "test12346";
static final String hash = "$P$9IQRaTwmfeRo7ud9Fh4E2PdI0S... |
package de.naoth.rc.dialogsFx.moduleconfiguration;
import com.google.protobuf.InvalidProtocolBufferException;
import de.naoth.rc.RobotControl;
import de.naoth.rc.core.messages.Messages;
import de.naoth.rc.core.server.Command;
import de.naoth.rc.core.server.ResponseListener;
import java.io.BufferedWriter;
import java.io... |
package de.mxro.metrics.tests;
import de.mxro.async.properties.PropertyNode;
import de.mxro.async.properties.PropertyOperation;
import de.mxro.fn.Success;
import de.mxro.metrics.jre.Metrics;
import de.mxro.promise.Promise;
import de.oehme.xtend.junit.Hamcrest;
import de.oehme.xtend.junit.JUnit;
import org.eclipse.xtext... |
package org.xins.server;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Enumeration;
import java.util.P... |
package io.mewbase.log;
import io.mewbase.bson.BsonObject;
import io.mewbase.server.impl.Protocol;
import io.mewbase.server.impl.log.FramingOps;
import io.mewbase.server.impl.log.HeaderOps;
import io.mewbase.server.impl.log.LogImpl;
import io.vertx.core.buffer.Buffer;
import io.vertx.ext.unit.junit.VertxUnitRunner;
imp... |
package org.cactoos.text;
import org.cactoos.TextHasString;
import org.hamcrest.MatcherAssert;
import org.junit.Test;
/**
* Test case for {@link ReplacedText}.
* @author Mehmet Yildirim (memoyil@gmail.com)
* @version $Id$
* @since 0.1
* @checkstyle JavadocMethodCheck (500 lines)
*/
public final class ReplacedText... |
package com.sun.facelets.impl;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax... |
package ua.yandex.shad.tries;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import static ua.yandex.shad.tries.RWayTrie.Node;
import static ua.yandex.shad.utils.StringIterableUtils.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
impor... |
package fr.paris.lutece.portal.service.init;
/**
* this class provides informations about application version
*/
public final class AppInfo
{
/** Defines the current version of the application */
private static final String APP_VERSION = "5.0.0-SNAPSHOT";
/**
* Creates a new AppInfo object.
*/
... |
package fr.paris.lutece.portal.service.init;
/**
* this class provides informations about application version
*/
public final class AppInfo
{
/** Defines the current version of the application */
private static final String APP_VERSION = "5.1.0-SNAPSHOT";
/**
* Creates a new AppInfo object.
*/
... |
package org.jdesktop.swingx;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import java.util.logging.Logger;
import javax.swing.Abstr... |
package ru.stqa.pft.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import ru.stqa.pft.addressbook.model.Groups;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAsser... |
package org.apache.commons.lang.reflect;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import org.apache.commons.lang.ArrayUtils;
/**
* <p><code>MethodUtils</code> contains utility methods for working for
* methods b... |
package ru.stqa.pft.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
public class GroupModificationTests extends TestBase {
@Test
public void testGroupMod... |
package org.apache.xmlrpc.applet;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.text.DateFormat;
import java.text.ParseException;
imp... |
package qa.qcri.aidr.manager.repository.impl;
import org.apache.commons.collections.ListUtils;
import org.hibernate.*;
import org.hibernate.criterion.*;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.stereotype.Repository;
import org.springframework.util.StringUtils;
import qa.q... |
package org.jdesktop.swingx.graphics;
import java.awt.Composite;
import java.awt.CompositeContext;
import java.awt.RenderingHints;
import java.awt.image.ColorModel;
import java.awt.image.DataBuffer;
import java.awt.image.DirectColorModel;
import java.awt.image.Raster;
import java.awt.image.WritableRaster;
import java.a... |
package alien4cloud.tosca.parser;
import java.io.FileNotFoundException;
import java.nio.file.Paths;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.annotation.Resource;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import ... |
package uk.ac.kent.dover.fastGraph;
import static org.junit.Assert.assertTrue;
import java.nio.*;
import java.util.*;
import uk.ac.kent.displayGraph.*;
/**
* Testing the structural similarity of two FastGraphs
*
* @author Peter Rodgers
*
*/
public class ExactIsomorphism {
private int DECIMAL_PLACES = 6; // num... |
package imagej.script;
import imagej.module.AbstractModule;
import imagej.module.Module;
import imagej.module.ModuleItem;
import java.io.FileReader;
import java.io.Reader;
import javax.script.ScriptEngine;
import javax.script.ScriptException;
import org.scijava.Context;
import org.scijava.Contextual;
import org.scijava... |
package org.jivesoftware.messenger.net;
import org.dom4j.Element;
import org.dom4j.io.XPPPacketReader;
import org.jivesoftware.messenger.PacketRouter;
import org.jivesoftware.messenger.Session;
import org.jivesoftware.messenger.auth.UnauthorizedException;
import org.jivesoftware.messenger.interceptor.InterceptorManager... |
package org.jivesoftware.wildfire.roster;
import org.jivesoftware.util.CacheSizes;
import org.jivesoftware.util.Cacheable;
import org.jivesoftware.util.IntEnum;
import org.jivesoftware.wildfire.SharedGroupException;
import org.jivesoftware.wildfire.group.Group;
import org.jivesoftware.wildfire.group.GroupManager;
impor... |
package com.spaceproject.systems;
import com.badlogic.ashley.core.Entity;
import com.badlogic.ashley.core.Family;
import com.badlogic.ashley.systems.IteratingSystem;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.physics.box2d.Body;
import com.spaceproject.SpaceProject;
import com.spaceproject.componen... |
package org.orbeon.oxf.pipeline.api;
import java.util.*;
import org.orbeon.oxf.common.OXFException;
import org.orbeon.oxf.properties.Properties;
import org.orbeon.oxf.properties.PropertySet;
/**
* PipelineContext represents a context object passed to all the processors running in a given
* pipeline session.
*/
publi... |
package hudson.cli;
import hudson.Extension;
import hudson.FilePath;
import hudson.model.Hudson;
import hudson.model.UpdateSite;
import hudson.model.UpdateSite.Data;
import hudson.util.EditDistance;
import org.kohsuke.args4j.Argument;
import org.kohsuke.args4j.Option;
import java.io.File;
import java.net.URL;
import ja... |
package org.sbolstandard.core2;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.StringReader;
import java.io.Writer;
import java.net.URI;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
... |
package com.sortedunderbelly.motomileage.test;
import android.test.RenamingDelegatingContext;
import com.sortedunderbelly.motomileage.SharedPreferencesTripStorage;
import com.sortedunderbelly.motomileage.TripStorage;
public class SharedPreferencesTripStorageTest extends BaseTripStorageTest {
private static final St... |
package org.fossasia.susi.ai.adapters.recyclerAdapters;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.text.Spannable;
import android.text.SpannableString;
im... |
package ve.com.abicelis.remindy.app.services;
import android.app.IntentService;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.util.Log;
import com.google.android.gms.location.Geofence;
import com.google.android.gms.location.GeofencingEvent;
import java.util.ArrayList;
import ... |
package org.ovirt.engine.core.bll.storage;
import com.woorea.openstack.base.client.OpenStackResponseException;
import com.woorea.openstack.cinder.model.ConnectionForInitialize;
import com.woorea.openstack.cinder.model.SnapshotForCreate;
import com.woorea.openstack.cinder.model.Volume;
import com.woorea.openstack.cinder... |
package org.biojavax.bio.alignment.blast;
import java.util.HashMap;
import java.util.Set;
import java.util.Arrays;
import org.biojavax.bio.alignment.RemotePairwiseAlignmentProperties;
/**
*
* This class implements RemotePairwiseAlignmentProperties by specifying several
* convenient methods used to wrap the addition ... |
package org.bitrepository.service.workflow;
import java.util.Date;
import java.util.TimerTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A timer task encapsulating a workflow.
* Used for scheduling workflows to run continuously at a given interval.
*/
public class WorkflowTimerTask extends Timer... |
package com.tinkerpop.blueprints.impls.orient;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.orientechnologies.common.collection.OLazyIterator;
import com.orientechnologies.common.collection.OMultiCollectio... |
package com.box.androidsdk.browse.fragments;
import android.content.IntentFilter;
import android.os.Bundle;
import com.box.androidsdk.browse.service.BoxResponseIntent;
import com.box.androidsdk.content.models.BoxFolder;
import com.box.androidsdk.content.models.BoxIterator;
import com.box.androidsdk.content.models.BoxIt... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package creation;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;... |
package org.project.openbaton.catalogue.mano.record;
import org.project.openbaton.catalogue.mano.common.*;
import org.project.openbaton.catalogue.util.IdGenerator;
import javax.persistence.*;
import java.util.Set;
import java.io.Serializable;
@Entity
public class NetworkServiceRecord implements Serializable{
@Id
... |
package com.griddynamics.jagger.engine.e1.collector;
import com.griddynamics.jagger.coordinator.NodeContext;
import com.griddynamics.jagger.engine.e1.scenario.KernelSideObject;
// @todo add an ability to use validators with properties
/** Validates the result of invocation
* @author Grid Dynamics
* @n
* @par Details... |
package acmi.l2.clientmod.l2pe;
import acmi.l2.clientmod.io.ObjectOutput;
import acmi.l2.clientmod.io.ObjectOutputStream;
import acmi.l2.clientmod.io.UnrealPackage;
import acmi.l2.clientmod.properties.control.PropertiesEditor;
import acmi.l2.clientmod.unreal.Environment;
import acmi.l2.clientmod.unreal.UnrealRuntimeCon... |
package act.storage;
import act.Destroyable;
import act.app.App;
import act.app.AppService;
import act.app.event.AppEventId;
import act.conf.AppConfig;
import act.inject.DependencyInjectionBinder;
import act.plugin.AppServicePlugin;
import act.storage.db.DbHooker;
import act.storage.db.util.Setter;
import org.osgl.$;
i... |
package app.lsgui.utils;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.ProcessBuilder.Redirect;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.controlsfx.control.... |
package application.factories;
import application.controllers.MainController;
import application.fxobjects.graphCells.CollectionCell;
import application.fxobjects.graphCells.RectangleCell;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
impor... |
package ch.carve.jlog2elastic;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Log2Elastic {
private static final Logger logger = LoggerFactory.getLogger(Log2Elastic.class);
public static void main(String[] args) throws IOException {
HttpElasticSender se... |
package com.example.test.spring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestSpringBean {
@SuppressWarnings("resource")
public static void main(String[] args) {
ApplicationContext applicationContext = ... |
package com.github.sbouclier;
import com.github.sbouclier.result.AssetInformationResult;
import com.github.sbouclier.result.AssetPairsResult;
import com.github.sbouclier.result.ServerTimeResult;
import com.github.sbouclier.result.TickerInformationResult;
import org.apache.http.HttpEntity;
import org.apache.http.HttpSta... |
package com.alvazan.ssql.cmdline;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.alvazan.orm.api.base.NoSqlEntityManager;
import com.alvazan.orm.api.z3api.NoSqlTypedSession;
import com.alvazan.orm.api... |
package com.catherine.pq;
/**
* @author : Catherine
* An implementation of symbol table
*/
public class FrequencyCounter {
public int cal(int minlen, String[] array) {
ST<String, Integer> st = new ST<>();
for (String word : array) {
if (word.length() < minlen) {
contin... |
package net.fortuna.ical4j.data;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StreamTokenizer;
import java.net.URISyntaxException;
import java.text.ParseException;
import net.fortuna.ical4j.model.Calendar;
import net.fortuna.ical4j.model... |
package com.datasift.client.cli;
import com.datasift.client.BaseDataSiftResult;
import com.datasift.client.DataSiftClient;
import com.datasift.client.DataSiftConfig;
import com.datasift.client.DataSiftResult;
import com.datasift.client.pylon.PylonQueryParameters;
import com.datasift.client.pylon.PylonQuery;
import com.... |
package org.animotron.bridge.web;
import org.animotron.ATest;
import org.animotron.bridge.FSBridge;
import org.animotron.expression.JExpression;
import org.animotron.statement.operator.AN;
import org.animotron.statement.query.ANY;
import org.animotron.statement.relation.USE;
import org.junit.Test;
import static org.ani... |
package org.jasig.portal.car;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jasig.portal.tools.RegisterChannelType;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
/**
* Handles the channel-type tags in CAR dep... |
package org.jfree.chart.renderer.xy;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Stroke;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.entity.EntityCollection;
import org.jfree.chart.event.... |
package com.github.davidmoten.rtree;
import static com.github.davidmoten.rtree.geometry.Geometries.rectangle;
import static com.google.common.base.Optional.absent;
import static com.google.common.base.Optional.of;
import java.util.List;
import rx.Observable;
import rx.functions.Func1;
import rx.functions.Func2;
import ... |
package com.github.davidmoten.rx2;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import j... |
package com.github.kratorius.jefs;
import sun.misc.Unsafe;
import java.util.NoSuchElementException;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Represents a last-in-first-out (LIFO) unbounded stack of objects.
* The usual {@code push} and {@code pop} operations are provided, as well as
* a {@code peek} m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.