answer stringlengths 17 10.2M |
|---|
package org.plugface.core.impl;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentMatchers;
import org.plugface.core.PluginContext;
import org.plugface.core.PluginManager;
import org.plugface.core.PluginSource;
import org.plugface.core.internal.DependencyResolver;
import org.plugface.core.inter... |
package cpw.mods.fml.server;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableMultiset;
import com.google.common.collect.Lists;
import com.google.comm... |
package org.eclipse.xtext.linking.lazy;
import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.nodemodel.ICompositeNode;
import org.eclipse.xtext.nodemodel.INode;
... |
import java.util.Scanner;
public class Client {
/* Attributs/constructeur */
private Compte[] comptes = new Compte[100];
private int nombreDeComptes = 0;
private String nom;
private Scanner sc;
/* Methodes */
//creer un nouveau client
public Client(String nouveauClient) {
nom = n... |
import uk.co.uwcs.choob.*;
import uk.co.uwcs.choob.modules.*;
import uk.co.uwcs.choob.support.*;
import uk.co.uwcs.choob.support.events.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.regex.*;
import java.text.*;
import org.jibble.pircbot.Colors;
public class Events
{
final Pattern even... |
package com.sims.topaz;
import java.io.ByteArrayOutputStream;
import java.util.Date;
import java.util.List;
import com.google.android.gms.maps.model.LatLng;
import com.sims.topaz.network.NetworkRestModule;
import com.sims.topaz.network.interfaces.ErreurDelegate;
import com.sims.topaz.network.interfaces.MessageDelegate;... |
package com.opengamma.engine.view.execution;
import java.util.Arrays;
import java.util.EnumSet;
import javax.time.InstantProvider;
import com.opengamma.engine.marketdata.spec.MarketDataSpecification;
import com.opengamma.id.VersionCorrection;
import com.opengamma.util.ArgumentChecker;
import com.opengamma.util.PublicAP... |
package org.jboss.as.protocol.mgmt;
import static org.jboss.as.protocol.old.ProtocolUtils.expectHeader;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.jboss.as.protocol.ProtocolChannelReceiver;
imp... |
package org.bouncycastle.jcajce.provider.asymmetric.x509;
import java.io.IOException;
import java.io.InputStream;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.util.encoders.Base64;
class PEMUtil
{
/**
* Boundary class. Keeps track of the required header/footer pair for the
* current ... |
package com.twilio.video.quickstart.activity;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.media.AudioManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.w... |
package no.deichman.services.entity.z3950;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
/**
* Responsibility: map literary form codes to rdf.
*/
public final class LiteraryForm {
private LiteraryForm() {
}
private static final Map<String, String> FORMAT_MAP = ImmutableMap.<String, ... |
package lapd.test.neo4j;
import static org.junit.Assert.*;
import lapd.databases.neo4j.GraphDbMappingException;
import org.eclipse.imp.pdb.facts.IValue;
import org.junit.Test;
public class TestRelation extends BaseGraphDbTest {
@Test
public void testRelation() throws GraphDbMappingException {
IValue tup... |
package com.ehret.mixit;
import android.app.AlertDialog;
import android.app.FragmentManager;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import androi... |
package com.tytanapps.ptsd;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.gr... |
import java.util.Vector;
public class DBScan
{
public Vector<Integer> MNumClust;
public ExtractionDonnees exd;
public int v1;
DBScan(ExtractionDonnees ex)
{
exd = ex;
v1 = exd.Coord.size();
System.out.println("v1 = "+v1);
int MinPts = Integer.valueOf(exd.ui.tnbpts.get... |
package org.itevents.dao.mybatis.mapper;
import com.github.springtestdbunit.annotation.DatabaseOperation;
import com.github.springtestdbunit.annotation.DatabaseSetup;
import com.github.springtestdbunit.annotation.DatabaseTearDown;
import com.github.springtestdbunit.annotation.ExpectedDatabase;
import com.github.springt... |
package solace.cmd;
import java.util.*;
import solace.game.*;
import solace.io.Messages;
import solace.net.*;
import solace.util.*;
/**
* Controller for the game's main menu.
* @author Ryan Sandor Richards
*/
public class MainMenuController implements Controller {
private static final String commandNotFound =
... |
package org.exist.examples.xquery;
import org.exist.xquery.AbstractInternalModule;
import org.exist.xquery.FunctionDef;
/**
* @author Wolfgang Meier (wolfgang@exist-db.org)
*/
public class ExampleModule extends AbstractInternalModule {
public final static String NAMESPACE_URI = "http://exist-db.org/xquery/example... |
/**
* Find two disjoint (non-overlapping) subsequences in an array with maximum
* difference.
*
* Tags: Array
*/
class MaxSubseqDifferenceNoOverlap {
public static void main(String[] args) {
}
/**
* Cut input array in two halves
* Find max contiguous subsequences sum in left half, min sum in ... |
package com.ndpmedia.rocketmq.stalker.file;
import com.ndpmedia.rocketmq.stalker.config.DataConfig;
import com.ndpmedia.rocketmq.stalker.dao.StalkerDao;
import java.util.Map;
public class LogFormat implements FileFormat {
/**
* appoint log must like XXXXlog.typeYYYY, and YYYY will translate to map.
* @par... |
package org.jetbrains.plugins.ruby.ruby.actions;
import com.intellij.codeInsight.hint.HintUtil;
import com.intellij.codeInsight.lookup.LookupManager;
import com.intellij.execution.Executor;
import com.intellij.execution.ExecutorRegistry;
import com.intellij.execution.executors.DefaultRunExecutor;
import com.intellij.fe... |
package org.apache.tapestry.form;
import org.apache.tapestry.IBinding;
/**
* Implements a component that manages an HTML <input type=text> or
* <input type=password> form element.
*
* [<a href="../../../../../ComponentReference/TextField.html">Component Reference</a>]
*
* @author Howard Lewis Ship... |
// This file is part of Serleena.
// Nicola Mometto, Filippo Sestini, Tobia Tesan, Sebastiano Valle.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom t... |
package com.cloud.upgrade.dao;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.util.ArrayList;
import java.u... |
package io.spine.server.tuple;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import com.google.protobuf.Message;
import io.spine.server.tuple.Element.AValue;
import io.spine.server.tuple.Element.BValue;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Optional;
import static... |
package ublu.command;
import ublu.util.ArgArray;
import ublu.util.DataSink;
import ublu.util.Generics.ByteArrayList;
import ublu.util.Generics.FunctorMap;
import ublu.util.Tuple;
import com.ibm.as400.access.AS400SecurityException;
import com.ibm.as400.access.ErrorCompletingRequestException;
import com.ibm.as400.access.... |
package ublu.command;
import ublu.util.ArgArray;
import ublu.util.DataSink;
import ublu.util.Tuple;
import com.ibm.as400.access.AS400SecurityException;
import com.ibm.as400.access.ErrorCompletingRequestException;
import com.ibm.as400.access.ObjectDoesNotExistException;
import com.ibm.as400.access.RequestNotSupportedExc... |
package ublu.command;
import ublu.util.ArgArray;
import ublu.util.DataSink;
import ublu.util.Generics.ThingArrayList;
import ublu.util.Tuple;
import com.ibm.as400.access.AS400SecurityException;
import com.ibm.as400.access.ErrorCompletingRequestException;
import com.ibm.as400.access.ObjectDoesNotExistException;
import c... |
package org.buildmlearn.toolkit.activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.ap... |
package classycle;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Map;
import classycle.graph.AtomicVertex;
import classycle.graph.StrongComponent;
import classycle.graph.StrongComponentAnalyser;
import classycle.renderer.AtomicVertexRendere... |
package util;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import javafx.embed.swing.SwingFXUtils;
import javafx.scene.image.Image;
import javafx.scene.image.WritableImage;
import javax.i... |
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
import org.scm4j.releaser.WorkflowTestBase;
import org.tmatesoft.svn.core.S... |
package org.flymine.sql.query;
// TODO: Tree parser to convert conditions to conjunctive normal form.
// Done.
// Handling subqueries that reference values from the scope of the surrounding Query.
// Note: one should probably delay parsing of subqueries until after all normal
// ... |
/* OBJECT-ORIENTED RECOGNIZER FOR SIMPLE EXPRESSIONS
program -> decls stmts end
decls -> int idlist ';'
idlist -> id [',' idlist ]
stmts -> stmt [ stmts ]
stmt -> assign ';'| cmpd | cond | loop
assign -> id '=' expr
cmpd -> '{' stmts '}'
cond -> ... |
package uk.ac.ox.zoo.seeg.abraid.mp.common.web;
import org.junit.Test;
import static com.googlecode.catchexception.CatchException.catchException;
import static com.googlecode.catchexception.CatchException.caughtException;
import static org.assertj.core.api.Assertions.assertThat;
public class WebServiceClientTest {
... |
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Season {
private List<Team> teams;
private int numWeeks;
private Set<String> bcsTeams;
//tweakable parameters
//points earned per win and deducted per lose
private final double PERGA... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
PrintWriter stdout = n... |
package simcity.gui;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.List;
import java.util.ArrayList;
public class CityCard extends SimCityPanel implements MouseListener {
public static final ... |
package source;
import java.util.ArrayList;
import java.util.List;
public class CommandParser
{
private List<Command> _commands;
private Command _currentCmd;
private Command _parent;
private LineNumber _line;
public CommandParser()
{
_commands ... |
package net.pubnative;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Log;
import java.net.HttpURLConnection;
import java.net.URL;
public class URLDriller {
private static final String TAG = URLDriller.class.getSimpleName();
private String mUserAgent = nu... |
package com.raizlabs.baseutils;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
public class ThreadingUtils {
/**
* @return True if this function was called from the UI thread
*/
public static boolean isOnUIThread() {
return Looper.getMainLooper().equals(Looper.m... |
package bayesGame.minigame;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import org.apache.commons.math3.fraction.Fraction;
import bayesGame.levelcontrollers.LevelController;
import bayesGame.ui.InterfaceView;
import bayesGame.viewcontrollers.M... |
package numbertheory;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Random;
public class Euclid {
public static int gcd(int a, int b) {
return b == 0 ? Math.abs(a) : gcd(b, a % b);
}
public static int gcd2(int a, int b) {
while (b != 0) {
int t = b;
... |
package de.skuzzle.jeve;
import java.util.stream.Stream;
import de.skuzzle.jeve.annotation.ListenerKind;
import de.skuzzle.jeve.stores.AbstractSynchronizedListenerStore;
import de.skuzzle.jeve.stores.PriorityListenerStore;
/**
* Allows to register and unregister {@link Listener Listeners} for certain
* listener class... |
package eu.modernmt.model.impl.tmx;
import eu.modernmt.constants.Const;
import eu.modernmt.model.BilingualCorpus;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.input.BOMInputStream;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamExc... |
package me.footlights.core;
import java.io.*;
import java.util.*;
import java.security.*;
import javax.crypto.*;
public class Config
{
/** Singleton access */
public static Config getInstance()
{
if(instance == null) instance = new Config();
return instance;
}
/** Get a configuration... |
package swift.proto;
import java.io.PrintStream;
import sys.net.impl.KryoLib;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Output;
import com.esotericsoftware.kryo.io.UnsafeMemoryOutput;
/**
* A collector of metadata statistics.
*
* @author mzawirski
*/
public class MetadataStatsCollec... |
package org.pentaho.di.ui.spoon.trans;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.MessageDialog... |
import java.util.LinkedList;
public class IRBase {
private LinkedList<IRNode> _List;
public IRBase(){
_List = new LinkedList<IRNode>();
}
public void LABEL(String L){
_List.add(new IRNode(L));
_List.add(new IRNode(ISA.LINK)); //TODO: what is this
}
public void Trace(Strin... |
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.JButton;
import javax.swing.GroupLayout.Alignment;
import javax.swing.GroupLayout;
import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.Rectangle;
import javax.swing.JLabel;
import java.awt.TextArea;
import java... |
package org.zalando.nakadi.webservice;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Sets;
import com.jayway.restassured.RestAssured;
import com.jayway.restassured.resp... |
package com.peterverzijl.softwaresystems.qwirkle.gameengine;
import java.awt.Canvas;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferStrategy;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.util.ArrayList;
import java.util.List;
import javax.swing.... |
package de.mpicbg.tds.knime.hcstools.visualization.heatmap.model;
/**
* This class makes the connection between the Plate attribute names and the something readable. It's also a way to
* what attributes are available (Could not find a decent way to derive this directly form the Plate class.
* TODO: There is surly a ... |
package fr.adrienbrault.idea.symfony2plugin.templating.util;
import com.intellij.openapi.project.Project;
import com.jetbrains.php.PhpIcons;
import com.jetbrains.php.PhpIndex;
import com.jetbrains.php.lang.psi.elements.Method;
import com.jetbrains.php.lang.psi.elements.PhpClass;
import com.jetbrains.php.lang.psi.elemen... |
package hex;
import Jama.Matrix;
import java.util.Arrays;
import jsr166y.ForkJoinTask;
import jsr166y.RecursiveAction;
import hex.FrameTask.DataInfo;
import water.DKV;
import water.Futures;
import water.Job;
import water.Key;
import water.MemoryManager;
import water.Model;
import water.Request2;
import water.api.CoxPHP... |
package org.postgresql.fastpath;
import java.sql.SQLException;
import java.sql.ResultSet;
import java.util.Hashtable;
import org.postgresql.Driver;
import org.postgresql.core.BaseConnection;
import org.postgresql.core.QueryExecutor;
import org.postgresql.core.ParameterList;
import org.postgresql.util.PSQLException;
imp... |
package com.sapienter.jbilling.server.order.validator;
import org.apache.log4j.Logger;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* DateBetweenValidator
*
* @author Jua... |
package parser;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.ResourceBundle;
import commands.*;
public class Parser {
private CommandsFactory commandsFactory = null;
private LogoParser logoParser;
private static ResourceBundle ourLanguageBun... |
package VASL.build.module.map.boardPicker;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
i... |
package br.com.MDSGPP.ChamadaParlamentar.servlets;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servle... |
package com.celements.cells.cmd;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xwiki.context.Execution;
import org.xwiki.model.EntityType;
import org.xwiki.model.reference.DocumentReference;
import org.xwiki.model.referenc... |
package com.censoredsoftware.demigods.engine.listener;
import com.censoredsoftware.demigods.engine.element.structure.Structure;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
impor... |
package com.douglaswhitehead.model.digitaldata.privacy;
/**
* <p>AccessCategory interface.</p>
*
* <p>From the W3C CEDDL specification:</p>
*
* <p>A list of privacy categories.</p>
*
* @author douglas.whitehead
*
*/
public interface AccessCategory {
/**
* <p>Returns the CategoryName object.</p>
*... |
package com.google.code.maven_svn_revision_number_plugin;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExe... |
package net.trajano.doxdb.ejb;
import java.nio.ByteBuffer;
import java.security.Principal;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
im... |
package com.lightd.ideap.maven.execution;
import com.intellij.execution.actions.ConfigurationContext;
import com.intellij.execution.junit.JUnitUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.PsiJavaFile;
import com.intellij.psi.PsiMethod;
import com.intellij.util.text.VersionComparatorUt... |
package io.scif.formats;
import io.scif.AbstractChecker;
import io.scif.AbstractFormat;
import io.scif.AbstractMetadata;
import io.scif.AbstractParser;
import io.scif.AbstractTranslator;
import io.scif.AbstractWriter;
import io.scif.BufferedImagePlane;
import io.scif.Field;
import io.scif.FieldPrinter;
import io.scif.F... |
package com.mebigfatguy.fbcontrib.detect;
import org.apache.bcel.Const;
import org.apache.bcel.classfile.Code;
import org.apache.bcel.classfile.LocalVariable;
import org.apache.bcel.classfile.LocalVariableTable;
import org.apache.bcel.generic.ArrayType;
import org.apache.bcel.generic.ObjectType;
import org.apache.bcel.... |
package com.moilioncircle.redis.cluster.watchdog;
import com.moilioncircle.redis.cluster.watchdog.util.net.NetworkConfiguration;
/**
* @author Leon Chen
* @since 1.0.0
*/
public class ClusterConfiguration {
private String clusterAnnounceIp;
private String clusterConfigFile;
private int clusterAnnounceBus... |
package com.ociweb.pronghorn.exampleStages;
import static com.ociweb.pronghorn.pipe.Pipe.byteBackingArray;
import static com.ociweb.pronghorn.pipe.Pipe.blobMask;
import static com.ociweb.pronghorn.pipe.Pipe.bytePosition;
import static com.ociweb.pronghorn.pipe.Pipe.takeRingByteLen;
import static com.ociweb.pronghorn.pi... |
package com.philemonworks.selfdiagnose.check;
import com.philemonworks.selfdiagnose.*;
import org.apache.log4j.Logger;
import org.springframework.util.StringUtils;
import java.io.IOException;
import java.net.*;
public class CheckListeningOnHostPort extends PatternMatchingTask {
private final static Logger log = Log... |
package com.saasquatch.json_schema_inferrer;
import javax.annotation.Nonnull;
/**
* The input for {@link StringFormatInferrer}
*
* @author sli
*/
public interface StringFormatInferrerInput {
/**
* @return The input text value for inference
*/
@Nonnull
String getTextValue();
@Nonnull
SpecVersion getS... |
package com.tozny.sdk.realm.methods.otp_challenge;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tozny.sdk.ToznyApiRequest;
import javax.annotation.Nullable;
/**
* Constructs a Request for invoking the "realm.otp_challenge" method
*/
@JsonAuto... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package eu.socialsensor.documentpivot.vocabulary;
import java.io.*;
import java.util.*;
import eu.socialsensor.documentpivot.termfeature.TermFeature;
import eu.socialsensor.documentpivot.termlikelihood.TermLikelihood;
im... |
package io.github.programminglife2016.pl1_2016.collapser;
import io.github.programminglife2016.pl1_2016.parser.nodes.Node;
import io.github.programminglife2016.pl1_2016.parser.nodes.Segment;
import java.util.*;
import java.util.stream.Collectors;
public class BubbleLinker {
List<Node> bubbles;
int lastId;
i... |
package net.darkhax.darkutils.features.monolith;
import net.darkhax.bookshelf.util.ParticleUtils;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minec... |
package org.ndexbio.server.migration.v2.util;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.Callable;
import org.apache.commons.io.FileUtils;
import org.apache.solr.client.solrj.SolrServerException;
import org.nde... |
package org.openhab.binding.heos.internal.resources;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The {@link HeosResponseEvent} returns the event part of the
* JSON message from the HEOS network
*
* @author Johannes Einig - Initial contribution
*/
public class HeosRespon... |
package org.sagebionetworks.web.client;
import org.gwtbootstrap3.extras.bootbox.client.Bootbox;
import org.gwtbootstrap3.extras.bootbox.client.options.DialogOptions;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.RootPanel;
public class GlobalA... |
package org.spongepowered.api.util.command;
import org.spongepowered.api.util.PEBKACException;
/**
* Thrown when invocation of a command fails, wrapping the exception that
* is thrown.
*/
public class InvocationCommandException extends CommandException {
private static final long serialVersionUID = 7859473889077... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.synyx.urlaubsverwaltung.security;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ldap.core.DirContextOperations;
import org.springfra... |
package uk.ac.ed.learn9.bb.timetabling.service;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSo... |
package org.mtransit.parser.ca_halifax_transit_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import... |
package org.mtransit.parser.ca_windsor_transit_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.mtransit.parser.DefaultAgencyTools;
impo... |
package org.opencms.jsp.search.config.parser;
import org.opencms.file.CmsObject;
import org.opencms.file.CmsPropertyDefinition;
import org.opencms.json.JSONException;
import org.opencms.jsp.search.config.CmsSearchConfigurationFacetField;
import org.opencms.jsp.search.config.CmsSearchConfigurationFacetRange;
import org.... |
import javafx.scene.layout.BorderPane;
import javafx.scene.shape.Circle;
import junit.framework.TestCase;
import nl.joshuaslik.tudelft.SEM.control.gameObjects.Bubble;
import nl.joshuaslik.tudelft.SEM.model.container.Point;
import nl.joshuaslik.tudelft.SEM.model.container.Vector;
import org.junit.After;
import org.junit... |
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.a... |
import factoring.Factorizor;
import org.junit.Test;
import java.math.BigInteger;
import static org.junit.Assert.assertTrue;
public class FactorTest {
// @Test
// public void test1() {
// assertTrue(2 == Factorizor.factor(new BigInteger("20492001030307"), Factorizor.FactorMethod.PMO).size());
// asse... |
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.a... |
package dk.nykredit.jackson.dataformat.hal.deser;
import com.fasterxml.jackson.databind.introspect.AnnotatedField;
import com.fasterxml.jackson.databind.introspect.AnnotationMap;
import com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition;
import dk.nykredit.jackson.dataformat.hal.annotation.Link;
import ja... |
package edisyn.synth.redsounddarkstar;
import edisyn.*;
import edisyn.gui.*;
import java.awt.*;
import java.awt.geom.*;
import javax.swing.border.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import javax.sound.midi.*;
/**
A patch editor for the Red Sound Darkstar.
@autho... |
package net.openhft.chronicle.wire.method;
import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.bytes.MethodReader;
import net.openhft.chronicle.core.Mocker;
import net.openhft.chronicle.core.util.ObjectUtils;
import net.openhft.chronicle.wire.LongConversion;
import net.openhft.chronicle.wire.MicroTim... |
package cornell.eickleapp;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View... |
package org.broadinstitute.hellbender.tools;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.SamReader;
import htsjdk.samtools.SamReaderFactory;
import htsjdk.samtools.util.CloserUtil;
import htsjdk.samtools.util.IOUtil;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.an... |
package com.plugin.gcm;
import com.google.android.gcm.GCMBaseIntentService;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import a... |
package plugin.google.maps;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Locale;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaResourceApi;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.... |
package org.springframework.cloud.gateway.test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework... |
package com.sogou.fastomiai;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundExcep... |
package org.usfirst.frc.team3070.robot;
public class Drive extends Robot implements Pronstants {
public void joystickDrive() {
double joyR = joystick.getRawAxis(5);
double joyL = joystick.getRawAxis(1);
if (joyR > DEAD_ZONE || joyR < -DEAD_ZONE) {
talFR.set(joyR);
tal... |
// checkstyle: Checks Java source code for adherence to a set of rules.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.