answer stringlengths 17 10.2M |
|---|
package com.maxent.dscache.cache;
import com.google.common.base.Charsets;
import com.google.common.base.Preconditions;
import com.maxent.dscache.api.rest.request.RestCreateSubCacheRequest;
import com.maxent.dscache.api.rest.request.RestDeleteSubCacheRequest;
import com.maxent.dscache.api.rest.response.RestCreateSubCach... |
package org.ccnx.ccn.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
import java.nio.channels.NotYetConnectedException;
import java.nio.channels.SelectionKey;
import java.nio.... |
package org.openlmis.core.model.repository;
import android.content.Context;
import com.google.inject.Inject;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.misc.TransactionManager;
import com.j256.ormlite.stmt.QueryBuilder;
import com.j256.ormlite.stmt.Where;
import com.j256.ormlite.table.TableUtils;
import o... |
package org.opencms.search.documents;
import org.opencms.i18n.CmsLocaleManager;
import org.opencms.main.CmsException;
import org.opencms.main.OpenCms;
import org.opencms.page.CmsXmlPage;
import org.opencms.search.CmsIndexException;
import org.opencms.search.CmsIndexResource;
import org.opencms.file.CmsFile;
import org.... |
package com.mixpanel.android.mpmetrics;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.ActivityNotFoundException;
import android.cont... |
package org.ccnx.ccn.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
import java.nio.channels.NotYetConnectedException;
import java.nio.channels.SelectionKey;
import java.nio.... |
package pl.kodujdlapolski.na4lapy.system;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import pl.kodujdlapolski.na4lapy.model.Animal;
import rx.subjects.PublishSubject;
public class SystemServiceImpl implements SystemService {
... |
// This file is part of JavaSMT,
// an API wrapper for a collection of SMT solvers:
package org.sosy_lab.java_smt.example;
import com.google.common.base.Joiner;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Col... |
/* For usage rights, please contact contact@perrinn.com */
package com.perrinn.appservice.geo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotatio... |
package raptor.swt.chat;
import java.io.FileWriter;
import java.io.IOException;
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.Map;
import org.apache.commons.lang.StringUtils;
import or... |
package sword.langbook3.android;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.tex... |
package org.sosy_lab.java_smt.solvers.boolector;
/** Native code for Boolector methods. */
@SuppressWarnings({"unused", "checkstyle:methodname", "checkstyle:parametername"})
class BtorJNI {
private BtorJNI() {}
protected static native int BOOLECTOR_PARSE_ERROR_get();
protected static native int BOOLECTOR_PARSE_UN... |
package com.quine.springdemo.service;
import org.slf4j.LoggerFactory;
/**
* @author Ivan Dejanovic
*
* @version 1.0
*/
public class MainServiceImpl implements MainService {
private final static org.slf4j.Logger logger = LoggerFactory.getLogger(MainServiceImpl.class);
@Override
public String retrieveMess... |
package wenhao.practice.morsi;
public class Constant_ApplicationConstant {
public final static String FirebaseURL=
"your_own_root_base";
} |
package org.umlg.sqlg.util;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.collect.LinkedListMultimap;
import com.google.common.collect.Multimap;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.lang3.tuple.Triple;
impor... |
package com.realexpayments.remote.sdk.http;
import java.io.Closeable;
import java.io.IOException;
import org.apache.http.ConnectionReuseStrategy;
import org.apache.http.HttpHeaders;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient;
import org.apache.http.c... |
package org.pentaho.di.core;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ArrayBlockingQueue;
import org.pentaho.di.core.row.RowMetaInterface;
/**
* Contains a buffer of rows. Instead of passing rows along the chain
* immediately we will batch them up to... |
package org.opencms.ui.client;
import org.opencms.ui.components.extensions.CmsMaxHeightExtension;
import org.opencms.ui.shared.components.CmsMaxHeightState;
import org.opencms.ui.shared.rpc.I_CmsMaxHeightServerRpc;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.dom.client.Element;
import com.... |
package com.psddev.dari.db;
import java.io.IOException;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.ArrayLi... |
package org.usfirst.frc.team2503.r2016.component;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.SpeedController;
public class Intake extends SpeedControllerComponent {
public enum IntakeMode {
UNKNOWN,
STOPPED,
INBOUND,
OUTBOUND,
FIRE
}
publi... |
package org.opencms.gwt.client.util;
import org.opencms.util.CmsStringUtil;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.MissingResourceException;
import com.google.gwt.i18n.client.Dictionary;
/**
* Reads localized resource Strings from a <code>java.util.ResourceBundle</code>... |
package org.mg.server;
import static org.jboss.netty.channel.Channels.pipeline;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostE... |
package phys2d.collisionLogic.spacePartitioning;
import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.List;
import phys2d.Phys2DMain;
import phys2d.entities.Vec2D;
import phys2d.entities.shapes.Shape;
import phys2d.entities.shapes.polygons.Rectangle;
import phys2d.entities.shapes.polygons.WorldBound... |
package com.sri.ai.grinder.sgdpllt.anytime;
import java.util.HashSet;
import java.util.Set;
import com.sri.ai.expresso.api.Expression;
import com.sri.ai.expresso.core.DefaultSymbol;
public class component {
public Expression V;
public Set<component> children;
public Set<Expression> Dext;
public Set<Expr... |
package pl.softronic.szkolenie.klasy.dziedziczenie;
import pl.softronic.szkolenie.klasy.geometria.Punkt;
public class Main {
public static void main(String[] args) {
Samochod a = new Samochod("szybki", new Punkt(0, 0));
a.setPredkosc(new Wektor(100, 0));
Samochod b = new Samochod("wolny", ne... |
package com.translationdata.p010;
/** Strategy: Brute Force, High Order Functions */
import static org.junit.Assert.assertEquals;
import java.util.function.BiFunction;
import java.util.stream.IntStream;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import static java.lang.Math.max;
import JU... |
package GeeksforGeeksPractice;
import java.util.Arrays;
public class _0016PrintAncestorsOfANode {
static int[] path;
public static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
public static void main(String args[]){
path=... |
package io.spine.server.bc.given;
import com.google.protobuf.Message;
import io.spine.core.BoundedContextName;
import io.spine.core.EventId;
import io.spine.protobuf.AnyPacker;
import io.spine.server.integration.IntegrationEvent;
import io.spine.server.integration.IntegrationEventContext;
import io.spine.test.bc.Projec... |
package com.vaguehope.onosendai.payload;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.vaguehope.onosendai.model.Tweet;
public final class PayloadUtils {
private static final String URL_REGEX = "\\(?\\b(https?://|www[.])[-A-Za-z0-9+&@#/... |
package com.vzome.core.editor;
import com.vzome.core.math.symmetry.IcosahedralSymmetry;
import com.vzome.core.model.Connector;
public class IcosahedralToolFactory extends AbstractToolFactory implements ToolFactory
{
private final IcosahedralSymmetry symmetry;
public IcosahedralToolFactory( EditorModel model, Un... |
package com.zend.php.releng.eclipsediff;
import static com.zend.php.releng.eclipsediff.report.ReportEntryType.MODIFIED;
import static com.zend.php.releng.eclipsediff.utils.JarUtils.getManifestPath;
import static com.zend.php.releng.eclipsediff.utils.MapUtils.equal;
import java.io.File;
import java.io.FileInputStream;
i... |
package cz.brmlab.brmson.blanqa.analysis;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import org.oaqa.model.SearchResult;
import cz.brmlab.brmson.blanqa.framework.data.NamedEntity;
import cz.brmlab.brmson.blanqa.framework.data.Sentence;
import cz.brmlab.brms... |
package cz.brmlab.yodaqa.analysis.tycor;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import net.didion.jwnl.data.IndexWord;
import net.didion.jwnl.data.IndexWordSet;
import net.didion.jwnl.da... |
package rapanui.core;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import rapanui.dsl.Term;
import static rapanui.core.Patterns.*;
/**
* Represents the core proof process, in which a term is transformed using rules and premises.
*/
public class ConclusionProcess {
private... |
package de.adito.irradiate.emitters;
import de.adito.irradiate.*;
import java.util.function.Supplier;
/**
* @author j.boesl, 26.07.17
*/
public class CombiningEmitter<T1, T2> extends Emitter<CombiningEmitter.Combined<T1, T2>>
{
@SuppressWarnings("FieldCanBeLocal")
private IParticle<T1> particle1;
@SuppressWarni... |
package org.chromium.base.library_loader;
import android.content.Context;
import android.os.SystemClock;
import android.util.Log;
import org.chromium.base.CommandLine;
import org.chromium.base.JNINamespace;
import org.chromium.base.SysUtils;
import org.chromium.base.TraceEvent;
/**
* This class provides functionality ... |
package de.exciteproject.refext.run;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.apache.commons.io.File... |
package com.smartdevicelink.proxy;
import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.proxy.interfaces.ISdl;
import com.smartdevicelink.proxy.interfaces.OnSystemCapabilityListener;
import com.smartdevicelink.proxy.rpc.AppServiceCapability;
import com.smartdevicelink.proxy.rpc.AppServicesCa... |
package de.is24.deadcode4j.analyzer;
import com.google.common.base.Function;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import de.is24.deadcode4j.CodeContext;
import javassist.ClassPool;
import javassist.CtClass;
import javassist... |
package org.biojava.bio.structure;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.biojava.bio.structure.io.PDBFileReader;
import org.biojava.bio.structure.io.mmcif.ChemCompGrou... |
package de.onyxbits.tradetrax.pages.edit;
import java.util.List;
import java.util.Vector;
import org.apache.tapestry5.alerts.AlertManager;
import org.apache.tapestry5.alerts.Duration;
import org.apache.tapestry5.alerts.Severity;
import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.... |
package animesearch.controller;
import animesearch.exception.DatabaseLoginFailedException;
import animesearch.model.AnimeInfo;
import animesearch.model.DatabaseManager;
import animesearch.model.SearchFilter;
import animesearch.view.AnimeFilter;
import animesearch.view.BookmarkView;
import animesearch.view.DatabaseLogin... |
package dk.pfrandsen.wsdl.wsi;
import dk.pfrandsen.check.AnalysisInformationCollector;
import org.uddi4j.transport.TransportFactory;
import org.wsi.WSIException;
import org.wsi.test.analyzer.BasicProfileAnalyzer;
import org.wsi.util.WSIProperties;
import java.io.BufferedWriter;
import java.io.IOException;
import java.n... |
package hudson.plugins.warnings.parser;
import java.util.regex.Matcher;
/**
* A parser for the ant javac compiler warnings.
*
* @author Ulli Hafner
*/
public class AntJavacParser extends RegexpLineParser {
/** Warning type of this parser. */
static final String WARNING_TYPE = "Java Compiler";
/** Patter... |
package edu.hm.hafner.analysis.parser;
import java.util.Optional;
import java.util.regex.Matcher;
import org.apache.commons.lang3.StringUtils;
import edu.hm.hafner.analysis.Issue;
import edu.hm.hafner.analysis.IssueBuilder;
import edu.hm.hafner.analysis.RegexpLineParser;
import edu.hm.hafner.analysis.Severity;
/**
* A... |
package edu.hm.hafner.analysis.parser;
import javax.annotation.Nonnull;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;
import java.io.Reader;
import java.util.List;
import org.apache.commons.io... |
package hu.kazocsaba.imageviewer;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class ImageSequenceViewer {
pri... |
package hudson.plugins.logstash;
import hudson.Extension;
import hudson.Launcher;
import hudson.console.LineTransformationOutputStream;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.Run;
import hudson.tasks.Build... |
package info.faceland.strife.commands;
import info.faceland.facecore.shade.command.Arg;
import info.faceland.facecore.shade.command.Command;
import info.faceland.facecore.shade.voorhees.PrettyMessageFactory;
import info.faceland.facecore.shade.voorhees.api.IPrettyMessage;
import info.faceland.messaging.Chatty;
import i... |
package info.u_team.u_team_core.gui.elements;
import com.mojang.blaze3d.matrix.MatrixStack;
import info.u_team.u_team_core.api.gui.*;
import info.u_team.u_team_core.util.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.SoundHandler;
import net.minecraft.util.math.MathHelper;
import net.minecr... |
package mtymes.javafixes.beta.decimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import static mtymes.javafixes.beta.decimal.BigIntegerUtil.canConvertToLong;
import static mtymes.javafixes.beta.decimal.Constants.BIG_TEN;
// todo: test it
// todo: maybe merge DecimalCreator and DecimalScaler
class Deci... |
package net.ninjacat.pop500.config.modules;
import net.ninjacat.drama.ActorSystem;
import net.ninjacat.drama.ActorSystemFactory;
import net.ninjacat.dws.DefaultContext;
import net.ninjacat.dws.WebService;
import net.ninjacat.pop500.api.actors.BitmapApiResponseActor;
import net.ninjacat.pop500.api.net.BitmapService;
imp... |
package se.ejp.traci.lang.interpreter.node;
import java.util.List;
import se.ejp.traci.lang.interpreter.Context;
import se.ejp.traci.lang.interpreter.TraciValue;
import se.ejp.traci.lang.interpreter.exceptions.FunctionReturnException;
import se.ejp.traci.lang.interpreter.exceptions.InterpreterIllegalNumberOfArguments;
... |
package net.onrc.onos.ofcontroller.topology;
import java.util.List;
import java.util.LinkedList;
import java.util.Map;
import java.util.TreeMap;
import net.onrc.onos.graph.DBOperation;
import net.onrc.onos.graph.IDBOperation;
import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IPortObject;
import net.onrc.ono... |
package som.interpreter.objectstorage;
import som.compiler.MixinDefinition.SlotDefinition;
import som.interpreter.TruffleCompiler;
import som.interpreter.TypesGen;
import som.interpreter.objectstorage.StorageLocation.AbstractObjectStorageLocation;
import som.interpreter.objectstorage.StorageLocation.DoubleStorageLocati... |
package org.ambraproject.wombat.config.site.url;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.collect.Multimap;
import org.ambraproject.wombat.config.site.HandlerDirectory;
import org.ambraproject.wombat.config.site.Site;
import org.ambraproject.wombat.co... |
package com.akiban.ais.ddl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Array... |
package com.akiban.server.test.it.qp;
import com.akiban.qp.exec.UpdatePlannable;
import com.akiban.qp.exec.UpdateResult;
import com.akiban.qp.operator.Cursor;
import com.akiban.qp.operator.Operator;
import com.akiban.qp.operator.QueryContext;
import com.akiban.qp.operator.UpdateFunction;
import com.akiban.qp.row.Overla... |
package at.irian.cordova.svg;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.util.Base64;
import com.caverock.androidsvg.SVG;
import com.caverock.androidsvg.SVGParseException;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
i... |
package org.apdplat.word.recognition;
import org.slf4j.LoggerFactory;
/**
*
*
* @author
*/
public class RecognitionTool {
private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(RecognitionTool.class);
private static final char[] chineseNumbers = {'','','','','','','','','','','','','','','',... |
package com.assylias.jbloomberg;
import com.bloomberglp.blpapi.CorrelationID;
import java.lang.reflect.Field;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import static org.test... |
package io.jxcore.node;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.os.CountDownTimer;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.thaliproject.p2p.btconnectorlib.ConnectionManager;
import org.thaliproject.p2p.btconnectorlib.Connection... |
package simulation;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.ListIterator;
import org.jacop.constraints.Alldifferent;
import org.jacop.constraints.And;
import org.jacop.constraints.AndBool;
import org.jacop.constraints.AndBoolVector;
import org.jacop.constraints.Cons... |
package com.intel.gkl.pairhmm;
import com.intel.gkl.IntelGKLUtils;
import com.intel.gkl.pairhmm.IntelPairHmm;
import org.broadinstitute.gatk.nativebindings.pairhmm.HaplotypeDataHolder;
import org.broadinstitute.gatk.nativebindings.pairhmm.PairHMMNativeArguments;
import org.broadinstitute.gatk.nativebindings.pairhmm.Pai... |
package org.codehaus.mojo.buildhelper;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.Ma... |
package org.cryptomator.cryptofs.migration;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Map;
import java.util.Optional;
import javax.inject.Inject;
import org.cryptomator.cryptofs.co... |
package com.notnoop.apns.utils;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.SocketException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
imp... |
package org.dannil.httpdownloader.utility;
import java.util.Arrays;
import org.dannil.httpdownloader.model.URL;
/**
* Class which constructs strings for URL operations. By utilizing this class,
* we achieve a layer between the controllers and the config file, and can
* therefore change implementation easily if neede... |
package javax.time.calendar;
import static javax.time.calendar.Calendars.*;
import static javax.time.calendar.field.DayOfWeek.*;
import static org.testng.Assert.*;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Obje... |
package objektwerks;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import jdk.incubator.concurrent.StructuredTaskScope;
import org.junit.jupiter.api.Test;
/**
* Run > Edit Configurations > StructuredConcurrencyTest
* --enable-preview --add-modules jdk.incubator.concurrent
*/
cla... |
package org.granitepowered.granite.mappings;
import com.github.kevinsawicki.http.HttpRequest;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
import com.typesafe.config.*;
import javassist.*;
import org.apache.commons.lang3.ArrayUtils;
import org.granitepowered.granite.Granite;
impor... |
package org.myrobotlab.framework;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.myrobotlab.logging.LoggerFactory;
import org.myrobotlab.service.InMoov2;
import org.myrobotlab.service.Ru... |
package org.jdesktop.swingx;
import java.awt.Component;
import java.awt.Container;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.util.Locale;
import javax.swing.AbstractAction;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JMenu;
import... |
package org.lightmare.jpa.jta;
import java.util.Collection;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.transaction.UserTransaction;
import org.lightmare.ejb.handlers.BeanHandler;
import org.lightmare.utils.CollectionUtils;
import org.lightmare.utils.ObjectUtils;
/**... |
package org.mitre.synthea.engine;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
import org.mitre.synthea.world.agents.Person;
import org.mitre.synthea.world.concepts.HealthRecord;
/**
* A singleton class for managing all of the implementations of Health... |
package org.spongepowered.api.service.scheduler;
import com.google.common.base.Optional;
import org.spongepowered.api.plugin.PluginContainer;
import org.spongepowered.api.util.Identifiable;
/**
* Represents a task that has been scheduled.
*/
public interface Task extends Identifiable {
/**
* Gets the name of... |
package uk.ed.inf.graph.compound.base;
import java.util.Iterator;
import uk.ed.inf.graph.basic.IBasicPair;
import uk.ed.inf.graph.compound.ICompoundGraph;
import uk.ed.inf.graph.compound.IModifiableCompoundGraph;
import uk.ed.inf.graph.compound.ISubCompoundGraph;
import uk.ed.inf.graph.directed.IDirectedPair;
import uk... |
package org.spongepowered.asm.mixin;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogMan... |
package us.corenetwork.moblimiter.commands;
import org.bukkit.Bukkit;
import org.bukkit.Chunk;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.e... |
package org.team2471.frc.lib.motion_profiling;
import org.team2471.frc.lib.vector.Vector2;
public class Path2D {
private Path2DCurve m_xyCurve; // positive y is forward in robot space, and positive x is to the robot's right
private MotionCurve m_easeCurve; // the ease curve is the percentage along the path... |
package us.kbase.jgiintegration.test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import j... |
package rmblworx.tools.timey.gui;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.ResourceBundle;
import java.util.TimeZone;
import javafx.beans.property.StringProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.concurrent.Task;
imp... |
package seedu.dailyplanner.logic.commands;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import seedu.dailyplanner.commons.exceptions.IllegalValueException;
import seedu.dailyplanner.commons.util.DateUtil;
import seedu.dailyplanner.model.categor... |
package studentcapture.submission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.... |
package es.deusto.weblab.client.experiments.visir;
import java.util.List;
import com.google.gwt.http.client.URL;
import es.deusto.weblab.client.comm.exceptions.CommException;
import es.deusto.weblab.client.configuration.IConfigurationRetriever;
import es.deusto.weblab.client.dto.experiments.ResponseCommand;
import es.d... |
package com.newsblur.database;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import android.app.Activi... |
package com.newsblur.database;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Color;
import android.graphics.Typeface;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.SimpleCursorAdap... |
package com.thoughtworks.selenium;
import junit.framework.*;
import org.openqa.selenium.server.*;
public class WindowNamesTest extends TestCase
{
private Selenium selenium;
public void setUp() throws Exception {
String url = "http:
selenium = new DefaultSelenium("localhost", SeleniumServer.getDefau... |
package org.jetel.interpreter.extensions;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.jetel... |
package me.sharpjaws.sharpSK.hooks.JobsReborn;
import java.util.ArrayList;
import java.util.Iterator;
import javax.annotation.Nullable;
import org.bukkit.OfflinePlayer;
import org.bukkit.event.Event;
import com.gamingmesh.jobs.Jobs;
import com.gamingmesh.jobs.container.Job;
import ch.njol.skript.lang.Expression;
import... |
package net.finmath.experiments.montecarlo;
import java.text.DecimalFormat;
import net.finmath.montecarlo.BrownianMotion;
import net.finmath.montecarlo.RandomVariable;
import net.finmath.stochastic.ImmutableRandomVariableInterface;
import net.finmath.stochastic.RandomVariableInterface;
import net.finmath.time.TimeDiscr... |
package nl.rubensten.texifyidea.highlighting;
import com.intellij.codeInsight.editorActions.TypedHandlerDelegate;
import com.intellij.openapi.editor.CaretModel;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.ex.EditorEx;
import com.intellij.openapi.editor.highlighter.EditorHighlighter;
im... |
package org.ensembl.healthcheck.testcase.generic;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
... |
package org.ow2.proactive_grid_cloud_portal;
import java.io.Serializable;
import java.net.HttpURLConnection;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathPara... |
package org.usfirst.frc.team4373.robot.commands;
import org.usfirst.frc.team4373.robot.*;
import edu.wpi.first.wpilibj.command.Command;
public class RooDriveLocked extends RooDrive {
@Override
protected void execute() {
// update the relevant variables
stickF = oi.getForwardAxis();
stick... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package soot.jimple.toolkits.reflection;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import soot.Body;
import soot.BooleanType;
import soot.Local;
import soot.PatchingChain;
import soot.PhaseOptions;
import soot.RefType;
import soot.Scene;
import soot.SceneTransf... |
package svk.sglubos.sgserialization.basic.buffer;
import svk.sglubos.sgserialization.PrimiArrReader;
import svk.sglubos.sgserialization.PrimiArrWriter;
import svk.sglubos.sgserialization.PrimiReader;
import svk.sglubos.sgserialization.PrimiWriter;
import svk.sglubos.sgserialization.SerializableReader;
import svk.sglubo... |
package com.fundynamic.d2tm.game.map;
import com.fundynamic.d2tm.game.TestableImage;
import com.fundynamic.d2tm.graphics.Shroud;
import junit.framework.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.