answer stringlengths 17 10.2M |
|---|
/*
*
* Adafruit16CServoDriver
*
* TODO - test with Steppers & Motors - switches on board - interface accepts motor control
*
*/
package org.myrobotlab.service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import org.myrobotlab.framework.Service;
import ... |
/*
*
* Adafruit16CServoDriver
*
* TODO - test with Steppers & Motors - switches on board - interface accepts motor control
*
*/
package org.myrobotlab.service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.myrobotlab.fram... |
package org.obd.ws.resources;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.log4j.Logger;
import org.bbop.dataadapt... |
package org.royaldev.royalcommands.runners;
import org.bukkit.entity.Player;
import org.royaldev.royalcommands.AFKUtils;
import org.royaldev.royalcommands.RoyalCommands;
import java.util.Date;
public class AFKWatcher implements Runnable {
RoyalCommands plugin;
public AFKWatcher(RoyalCommands instance) {
... |
package pt.fccn.saw.selenium;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import java.util.NoSuchElementException;
import pt.fccn.saw.selenium.RetryRule;
import java.util.ArrayList;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
... |
package ac.simons.tests.akismet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.junit.Assert;
import org.junit.Test;
import ac.simons.akismet.Akismet;
import ac.simons.akismet.AkismetComment;
import ac.simons.akismet.AkismetException;
/**
* @author Michael J. Simons
*/
public class AkismetTest {
... |
package algorithms.misc;
import gnu.trove.map.TIntIntMap;
import gnu.trove.map.hash.TIntIntHashMap;
import java.util.Random;
import junit.framework.TestCase;
/**
*
* @author nichole
*/
public class CDFRandomSelectTest extends TestCase {
public CDFRandomSelectTest(String testName) {
super(testName);
}... |
package com.tinkerrocks.structure;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.io.FileUtils;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
import org.apache.tinkerpop.gremlin.process.t... |
package com.tinkerrocks.structure;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.apache.tinkerpop.gremlin.structure.VertexProperty;
import... |
package org.junit.internal;
import static org.junit.Assert.assertEquals;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
public class MethodSorterTest {
privat... |
package org.mac.sim.thread;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import org.junit.Test;
import org.mac.sim.clock.Clock;
import org.mac.sim.clock.ClockBuilder;
import org.mac.sim.clock.ClockManager;
import org.mac.sim.domain.WorkerTask;
import junit.framework.Assert;... |
package org.mariadb.jdbc;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
import org.junit.Test;
public class ConnectionPoolTest extends BaseTest {
/* For this test case to compile the following must be added to the pom.xml... |
package twigkit.html;
import org.junit.Test;
/**
* @author mr.olafsson
*/
public class ConditionalWrapperTest extends AbstractHtmlCapabilityTest {
@Test
public void testTrue() throws Exception {
ContainerTag div = div().body(
when(true).use(
span().body(
... |
package sg.edu.cs2103aug2015_w13_2j.ui;
import java.awt.Color;
// @@author A0121410H
/**
* FeedbackMessage class encapsulates the data necessary to display styled
* feedback messages to the user. It comprises a message string retrievable via
* {@link #getMessage()} and a {@link FeedbackType} object which determines ... |
package space.gatt.JavacordCommander;
import de.btobastian.javacord.DiscordAPI;
import de.btobastian.javacord.entities.message.MessageBuilder;
import org.reflections.Reflections;
import space.gatt.JavacordCommander.annotations.*;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.... |
package spacesettlers.simulator;
import java.awt.Color;
import java.io.File;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import ... |
package com.ams.pageobject;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.ams.testsetup.SetUp;
public class SignUpFieldsEmpty extends SetUp {
//locators to find the element on web page
By email = By.name("email");
By Firstname = By.name("firstname");
By Lastname = B... |
package com.englishtown.promises;
import org.junit.Test;
import java.util.Date;
import static org.junit.Assert.*;
public class PromiseTest {
private Runnable<Promise<Integer, Integer>, Integer> onSuccess = new Runnable<Promise<Integer, Integer>, Integer>() {
@Override
public Promise<Integer, Integer... |
package com.github.davidmoten.geo;
import static com.github.davidmoten.geo.Base32.decodeBase32;
import static com.github.davidmoten.geo.Base32.encodeBase32;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
* Unit tests for {@link Base32}.
*
* @author dave
*
*/
public class Base32Test {
@... |
package com.jcabi.github;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Assume;
import org.junit.Test;
public class RtRepoCommitsITCase {
/**
* RtRepoCommits can fetch commits.
* @throws Excep... |
package com.levelup.java.string;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.List;
import java.util.StringTokenizer;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.junit.Test;
import com.google.common.base.Splitter;
import com.google.comm... |
package com.orasi.core.angular;
import org.openqa.selenium.JavascriptExecutor;
import org.testng.Assert;
import org.testng.ITestContext;
import org.testng.SkipException;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Optional;
import org.testng.annotatio... |
package guitests.guihandles;
import guitests.GuiRobot;
import javafx.stage.Stage;
/**
* A handle to the Command Box in the GUI.
*/
public class CommandBoxHandle extends GuiHandle{
private static final String COMMAND_INPUT_FIELD_ID = "#commandTextField";
public CommandBoxHandle(GuiRobot guiRobot, Stage primary... |
package jenkins.plugins.git;
import com.cloudbees.plugins.credentials.common.StandardCredentials;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.model.Action;
import hudson.model.Item;
import hudson.model.TaskListener;
import hudson.model.TopLevelItem;
import hudson.plugins.git.GitStatus;
import hudson.u... |
package learning.java.util.regex;
import org.junit.Test;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class PatternTest {
public static final String REGEX_1 = "([PD]{1})-(\\d+)";
public static final Stri... |
package org.fcrepo.camel;
import org.apache.camel.Produce;
import org.apache.camel.Exchange;
import org.apache.camel.EndpointInject;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit4.CamelTestS... |
package seedu.address.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_PERSON_DISP... |
package org.apache.commons.betwixt;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.io.StringWriter;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
import org.apache.commons.betwixt.io.BeanWriter;
import org.a... |
package com.example;
//remove::start[]
import javax.annotation.Nullable;
import javax.net.ssl.SSLException;
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.ClientCall;
import io.grpc.ClientInterceptor;
import io.grpc.Metadata;
import ... |
/**
* An Image Picker Plugin for Cordova/PhoneGap.
*/
package com.synconset;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import android.app.Activity;
import android... |
package com.onegini.gcm;
import java.io.IOException;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
import android.util.Log;
import com.google.android.gms.gcm.GoogleCloudMessaging;
im... |
package be.ibridge.kettle.job.entry.mail;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Properties... |
package imagej.legacy;
import ij.Executer;
import ij.IJ;
import ij.ImageJ;
import ij.ImagePlus;
import ij.Macro;
import ij.WindowManager;
import ij.gui.DialogListener;
import ij.gui.ImageWindow;
import ij.io.Opener;
import ij.plugin.filter.PlugInFilterRunner;
import imagej.data.display.ImageDisplay;
import imagej.platf... |
package com.spaceproject.ui.menu;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
i... |
package ethanjones.cubes.graphics.menu;
import ethanjones.cubes.core.localization.Localization;
import ethanjones.cubes.core.platform.Adapter;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scen... |
package liquibase.database;
import liquibase.change.*;
import liquibase.change.core.*;
import liquibase.changelog.ChangeSet;
import liquibase.changelog.RanChangeSet;
import liquibase.database.structure.*;
import liquibase.executor.WriteExecutor;
import liquibase.executor.LoggingExecutor;
import liquibase.executor.Execu... |
package arez.component;
import arez.Arez;
import arez.Disposable;
import arez.SafeProcedure;
import java.util.ArrayList;
import java.util.HashMap;
import javax.annotation.Nonnull;
import static org.realityforge.braincheck.Guards.*;
/**
* The class responsible for notifying listeners when an element is disposed.
* Lis... |
package brooklyn.util.config;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import brooklyn.config.ConfigKey;
import brooklyn.config.ConfigKey.HasConfigKey;
import brooklyn.util.flags.TypeCoercions;
import com.google.common.c... |
package hudson.util;
import hudson.FilePath;
import hudson.Util;
import static hudson.Util.fixEmpty;
import hudson.model.AbstractProject;
import hudson.model.Hudson;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import javax.servlet.ServletException;
import java.io.BufferedReade... |
package net.time4j.format;
import net.time4j.base.ResourceLoader;
import net.time4j.engine.BridgeChronology;
import net.time4j.engine.CalendarEra;
import net.time4j.engine.ChronoElement;
import net.time4j.engine.Chronology;
import net.time4j.format.internal.ExtendedPatterns;
import net.time4j.format.internal.FormatUtil... |
package bzh.plealog.bioinfo.api.filter;
import java.util.Enumeration;
/**
* This interface defines a filterable data model. It aims at being the
* gateway between the filter engine and the filter UI.
*
* @author Patrick G. Durand
*/
public interface BDataAccessors extends BOperatorAccessors{
// Accessors used el... |
package ca.ualberta.cs.bkhunter_notes;
import java.io.IOException;
// This is a Singleton controller that is used to
// access the claimList and thus subsequent claims
// throughout the app
public class ClaimController {
private static ClaimList claimList = null;
// This constructor is geared towards serializat... |
package com.tommytony.war;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.Validate;
import org.bukkit.Bukkit;
import org.buk... |
package com.appspot.usbhidterminal.core;
import android.content.Intent;
import android.hardware.usb.UsbDevice;
import android.os.Bundle;
public class USBHIDService extends AbstractUSBHIDService {
private String delimiter;
private String receiveDataFormat;
@Override
public void onCreate() {
super... |
package com.canmeizhexue.javademo.threads;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
public class WeakMapTest {
/**
* map
* @param args
*/
public static void main(String[]args){
Map map = new WeakHashMap();
//MyKey
... |
package com.dmdirc.ui.swing.dialogs.paste;
import com.dmdirc.Main;
import com.dmdirc.ui.swing.MainFrame;
import com.dmdirc.ui.swing.UIUtilities;
import com.dmdirc.ui.swing.components.InputTextFrame;
import com.dmdirc.ui.swing.components.StandardDialog;
import com.dmdirc.ui.swing.components.SwingInputHandler;
import com... |
package com.ecyrd.jspwiki.search;
import java.io.*;
import java.util.*;
import org.apache.log4j.Logger;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexRead... |
package com.example.aperture.core;
import android.app.Activity;
import android.app.ListActivity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import an... |
package com.jmex.model.XMLparser.Converters;
import java.io.DataInput;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import com.jme.image.Texture;
import com.jme.math.Vector2f;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.scene.Controller;
import... |
package com.leontg77.timebomb.listeners;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.Chest;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.... |
package com.opencms.file.genericSql;
import javax.servlet.http.*;
import java.util.*;
import java.net.*;
import java.io.*;
import source.org.apache.java.io.*;
import source.org.apache.java.util.*;
import com.opencms.boot.CmsClassLoader;
import com.opencms.boot.CmsBase;
import com.opencms.core.*;
import com.opencms.file... |
import java.applet.Applet;
import java.awt.AlphaComposite;
import java.awt.Checkbox;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Desktop;
import java.awt.Event;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.aw... |
package com.speakingfish.protocol.ssp.type;
import java.io.OutputStream;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import com.speakingfish.common.Maps;
//import com.speakingfish.common.function.Invoker;
/*
import com.speaking... |
package arez;
import arez.spy.ComponentInfo;
import arez.spy.ComputedValueInfo;
import arez.spy.ElementInfo;
import arez.spy.ObservableValueInfo;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
i... |
package de.fau.cs.mad.gamekobold.jackson;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ColumnHeader {
//TODO evtl final?
public String name,type;
public boolean hidden;
public C... |
package de.gurkenlabs.litiengine.util.io;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.concurrent.ConcurrentH... |
// modification, are permitted provided that the following conditions are met:
// and/or other materials provided with the distribution.
// * Neither the name of SimpleProps nor the names of its
// contributors may be used to endorse or promote products derived from
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDI... |
package dr.evomodel.continuous;
import dr.evolution.tree.MultivariateTraitTree;
import dr.evolution.tree.NodeRef;
import dr.evomodel.branchratemodel.BranchRateModel;
import dr.evomodel.branchratemodel.DiscretizedBranchRates;
import dr.evomodel.tree.TreeModel;
import dr.evomodel.tree.TreeStatistic;
import dr.geo.math.Sp... |
package dr.inference.mcmc;
import dr.inference.loggers.Logger;
import dr.inference.loggers.MCLogger;
import dr.inference.markovchain.MarkovChain;
import dr.inference.markovchain.MarkovChainListener;
import dr.inference.model.Model;
import dr.inference.model.PathLikelihood;
import dr.inference.operators.*;
import dr.inf... |
package edu.washington.escience.myria.api;
import java.io.IOException;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.util.Date;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.r... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.command;
import com.sun.squawk.io.BufferedReader;
import com.sun.squawk.microedition.io.FileConnection;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpil... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.command;
import com.sun.squawk.io.BufferedReader;
import com.sun.squawk.microedition.io.FileConnection;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpil... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.RobotDriv... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Jo... |
package com.civilizer.extra.tools;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.FontFormatException;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.MenuItem;
import java.awt.Point;
import java.awt.Popu... |
package gestock.resources.views.components;
import javax.swing.table.DefaultTableModel;
import java.util.Date;
public class TableModel extends DefaultTableModel {
public TableModel(String[] columnNames){
super(new Object[0][3],columnNames);
}
public Class<?> getColumnClass(int columnIndex) {
... |
// samskivert library - useful routines for java programs
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You shoul... |
package org.jsmpp.examples;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.log4j.PropertyConfigurator;
import org.jsmpp.InvalidResponseEx... |
package io.compgen.ngsutils.tabix;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import io.compgen.ngsutils.tabix.BGZFile.BGZBlock;
public class BGZInputStream extends InputStream {
protected BGZFile bgzf;
protected ByteArrayInputStream buf=null;
public BGZInpu... |
package org.apache.fop.svg;
import org.apache.batik.bridge.SVGImageElementBridge;
import org.apache.fop.image.JpegImage;
import org.apache.fop.image.FopImage;
import org.apache.fop.image.analyser.ImageReaderFactory;
import java.awt.Shape;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import org.w3c.dom.... |
package org.jivesoftware.wildfire;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.LocaleUtils;
import org.jivesoftware.util.Log;
import org.jivesoftware.wildfire.audit.AuditStreamIDFactory;
import org.jivesoftware.wildfire.auth.UnauthorizedException;
import org.jivesoftware.wildfire.component.Co... |
package jetbrains.buildServer.agentsPlugin;
import jetbrains.buildServer.configuration.ChangeListener;
import jetbrains.buildServer.configuration.FileWatcher;
import jetbrains.buildServer.log.Loggers;
import jetbrains.buildServer.serverSide.BuildAgentManager;
import jetbrains.buildServer.serverSide.SBuildAgent;
import ... |
package com.izforge.izpack.installer;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.... |
package agaricus.mods.oredupefix;
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.f... |
package at.ngmpps.fjsstt.rest;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.container.AsyncResponse;
import javax.ws.rs.container.Comple... |
package au.gov.ga.geodesy.domain.model;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;... |
package br.edu.utfpr.recipes.dao;
import br.edu.utfpr.recipes.entidade.Receita;
import java.util.List;
import org.hibernate.Query;
/**
*
* @author mairieliw
*/
public class DaoReceita extends DaoGenerics<Receita> {
public DaoReceita() {
super.clazz = Receita.class;
}
public List<Receita> buscaRec... |
package ca.wescook.nutrition.utility;
import ca.wescook.nutrition.Nutrition;
import ca.wescook.nutrition.effects.EffectsList;
import ca.wescook.nutrition.effects.JsonEffect;
import ca.wescook.nutrition.nutrients.JsonNutrient;
import ca.wescook.nutrition.nutrients.NutrientList;
import com.google.common.collect.Lists;
im... |
package com.cisco.trex.stateless;
import com.cisco.trex.stateless.model.*;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.*;
import org.pcap4j.packet.*;
import org.pcap4j.packet.namednumber.*;
import org.pcap4j.util.ByteArrays;
import org.pcap4j.util.MacAddress;
import org.slf4j.Logger;
impo... |
package com.codeborne.selenide;
import static com.codeborne.selenide.ClickMethod.DEFAULT;
import static com.codeborne.selenide.ClickMethod.JS;
public class ClickOptions {
private final int offsetX;
private final int offsetY;
private final ClickMethod clickMethod;
private ClickOptions(ClickMethod clickMethod, in... |
package com.comandante.creeper;
import com.comandante.creeper.Items.*;
import com.comandante.creeper.entity.EntityManager;
import com.comandante.creeper.managers.GameManager;
import com.comandante.creeper.merchant.*;
import com.comandante.creeper.merchant.GrimulfWizard;
import com.comandante.creeper.npc.Npc;
import com... |
package com.dbsys.rs.client;
import com.dbsys.rs.client.tableModel.PelayananTableModel;
import com.dbsys.rs.client.tableModel.PemakaianTableModel;
import com.dbsys.rs.connector.ServiceException;
import com.dbsys.rs.connector.TokenHolder;
import com.dbsys.rs.connector.service.PasienService;
import com.dbsys.rs.connector... |
package com.facebook.litho;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrap... |
package com.facebook.litho;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrap... |
package com.filestack.model;
import com.filestack.model.transform.base.ImageTransform;
import com.filestack.util.Upload;
import com.filestack.util.UploadOptions;
import io.reactivex.Single;
import io.reactivex.schedulers.Schedulers;
import java.io.IOException;
import java.util.concurrent.Callable;
/**
* Wrapper for co... |
package com.github.intangir.Tweaks;
import java.io.File;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Boat;
import org.bukkit.entity.Horse;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Minecart;
import org.bukkit.entity.Player;
import org.bukkit.entity.Vehicle;
imp... |
package com.gooddata.dataset;
import com.gooddata.AbstractService;
import com.gooddata.gdc.DataStoreService;
import com.gooddata.project.Project;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.RandomStringUtils;
import org.codehaus.jackson.map.ObjectMapper;
import org.springframework.http.client.C... |
package com.greatwebguy.application;
import java.io.InputStream;
import org.controlsfx.glyphfont.FontAwesome;
import org.controlsfx.glyphfont.GlyphFont;
import org.controlsfx.glyphfont.GlyphFontRegistry;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javaf... |
package com.groupbyinc.api.model;
import com.groupbyinc.common.jackson.annotation.JsonIgnore;
import com.groupbyinc.common.jackson.annotation.JsonInclude;
import com.groupbyinc.common.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
/**
* <code>
* The Navigation object represents dy... |
package com.ideaheap;
import java.util.Comparator;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
public class StreamsBasedCalculator {
public Map<String, String> getStringTransition(
final Set<String> stringSet,
final Map<String, Double> stringCosts) {
retur... |
package com.imcode.imcms.model;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@NoArgsConstructor
public abstract class CategoryType implements Serializable {
private static final long serialVersionUID = 6975350692159491957L;
protected CategoryType(CategoryType from) {
setId(from.getId())... |
package com.mattcorallo.relaynode;
import com.google.bitcoin.core.*;
import com.google.bitcoin.networkabstraction.NioClientManager;
import com.google.bitcoin.networkabstraction.NioServer;
import com.google.bitcoin.networkabstraction.StreamParser;
import com.google.bitcoin.networkabstraction.StreamParserFactory;
import ... |
package com.mongodb.hadoop.demo;
import com.mongodb.hadoop.BSONFileInputFormat;
import com.mongodb.hadoop.MongoOutputFormat;
import org.apache.hadoop.conf.Configuration;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.... |
package com.my.blog.website.utils;
import com.my.blog.website.exception.TipException;
import com.my.blog.website.constant.WebConst;
import com.my.blog.website.controller.admin.AttachController;
import com.my.blog.website.modal.Vo.UserVo;
import org.apache.commons.lang3.StringUtils;
import org.commonmark.node.Node;
impo... |
package com.recallq.parseweblog;
import com.recallq.parseweblog.fieldparser.LocalTimeFieldParser;
import com.recallq.parseweblog.fieldparser.RequestFieldParser;
import com.recallq.parseweblog.outputters.JsonOutputter;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
i... |
package com.stripe.model;
import java.util.Map;
import java.util.List;
import com.stripe.Stripe;
import com.stripe.exception.APIConnectionException;
import com.stripe.exception.APIException;
import com.stripe.exception.AuthenticationException;
import com.stripe.exception.CardException;
import com.stripe.exception.Inval... |
package com.wuest.prefab.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.shapes.VoxelShape;
import net.minecraft.world.IBlockReader;
public class BlockShaped ... |
package com.yq.manager.service;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation... |
package de.prob2.ui.chart;
import java.util.ArrayList;
import java.util.List;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Singleton;
import de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView;
import de.prob.animator.domainobjects.AbstractEvalResult;
import de.prob.animat... |
package edu.uib.info310.search;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.net.URLConnection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import edu.uib.info310.transformation.XslT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.