answer stringlengths 17 10.2M |
|---|
package com.tlear.pegasus;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
public interface ShipWeapon {
public void setX(int x);
public void setY(int y);
public void setAngle(int a);
public void addX(int x);
public void addY(int y);
public void addAngle(int a);
public int getX();
pu... |
package dap4.test;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import ucar.nc2.dataset.NetcdfDataset;
import ucar.unidata.test.util.NotJenkins;
import java.io.*;
import java.math.BigInteger;
import java.nio.ByteOrder;
import java.util.ArrayList;
import java.util.List;
@Category(NotJenkins.... |
package org.appwork.swing.components;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener;
import java.util.concurrent.atomic.AtomicIn... |
package org.appwork.utils.swing.dialog;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dialog.ModalityType;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener... |
package org.biojava.bio.structure.gui;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import javax.swing.Box;
imp... |
package org.ensembl.healthcheck;
import java.sql.Connection;
import java.util.logging.Logger;
import org.ensembl.healthcheck.util.DBUtils;
/**
* Container for information about a database that can be stored in a
* DatabaseRegistry.
*
*/
public class DatabaseRegistryEntry implements Comparable {
private String n... |
package org.immopoly.android.app;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import org.immopoly.android.R;
import org.immopoly.android.c2dm.C2DMessaging;
import org.immopoly.android.constants.Const;
import org.immopoly.android.helper.Settings;
import org.immopoly.android.he... |
package org.jgroups.stack;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.Address;
import org.jgroups.Message;
import org.jgroups.util.List;
import org.jgroups.util.TimeScheduler;
import java.util.*;
import java.util.concurrent.locks.ReadWriteLock;
import java.ut... |
package org.loklak.api.search;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONArray;
import org.json.JSONObject;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.loklak.server.APIExceptio... |
package org.nschmidt.ldparteditor.data;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.SynchronousQueue;
import j... |
package io.github.protadjust;
import org.bukkit.Material;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.util.Vector;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
impor... |
package infn.bed.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
/**
* Parses a calibration file.
*
* @author Angelo Licastro
*/
public class CalibrationFileParser {
/**
* An instance of the File object.
*/
private final File file;
... |
package org.opencms.jsp.search.config.parser;
import org.opencms.i18n.A_CmsMessageBundle;
import org.opencms.i18n.I_CmsMessageBundle;
/**
* Convenience class to access the localized messages of this OpenCms package.<p>
*
* @since 10.0
*/
public final class Messages extends A_CmsMessageBundle {
/** Message const... |
package io.spacedog.server;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import org.elasticsearch.common.Strings;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import io.spacedog.clien... |
package jade.tools.introspector.gui;
import javax.swing.*;
/**
The main menu bar.
@author Andrea Squeri,Corti Denis,Ballestracci Paolo - Universita` di Parma
@version $Date$ $Revision$
*/
public class MainBar extends JMenuBar {
private JMenu fileMenu;
private JMenu actionMenu;
private JMenu viewMenu;
... |
package org.opencms.ui.apps.dbmanager;
import org.opencms.file.CmsObject;
import org.opencms.importexport.CmsExportParameters;
import org.opencms.importexport.CmsVfsImportExportHandler;
import org.opencms.main.CmsException;
import org.opencms.main.CmsLog;
import org.opencms.main.OpenCms;
import org.opencms.report.A_Cms... |
package org.openswing.swing.form.model.client;
import org.openswing.swing.client.*;
import java.lang.reflect.Method;
import java.beans.*;
import org.openswing.swing.message.receive.java.ValueObject;
import org.openswing.swing.logger.client.Logger;
import java.beans.PropertyDescriptor;
import java.util.ArrayList;
import... |
package org.apache.commons.cli;
import java.util.Map;
import java.util.Set;
import java.util.HashMap;
import java.util.List;
import java.util.ListIterator;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Collections;
/** <p>Main entry-point into the library.</p>
*
* <p>Options represents a col... |
package uk.ac.ebi.atlas.model;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.KryoSerializable;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import com.google.common.base.... |
package controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import model.CellState;
import org.w3c.dom.Documen... |
// ZAP: 2012/01/12 Changed the method createRequestMethod to always use CRLF
// ZAP: 2012/03/15 Changed to use the class StringBuilder instead of StringBuffer
// ZAP: 2012/05/04 Changed to use the class ZapGetMethod instead of org.apache.commons.httpclient.methods.GetMethod
// ZAP: 2013/01/23 Clean up of exception hand... |
package org.basex.query.expr;
import static org.basex.query.QueryText.*;
import org.basex.query.*;
import org.basex.query.func.*;
import org.basex.query.util.*;
import org.basex.query.util.list.*;
import org.basex.query.value.item.*;
import org.basex.query.var.*;
import org.basex.util.*;
import org.basex.util.hash.*;
p... |
package org.usfirst.frc.team910.robot;
import com.ni.vision.NIVision;
import com.ni.vision.NIVision.DrawMode;
import com.ni.vision.NIVision.Image;
import com.ni.vision.NIVision.ImageType;
import com.ni.vision.NIVision.MeasurementType;
import com.ni.vision.NIVision.Rect;
import com.ni.vision.NIVision.ShapeMode;
import e... |
package net.i2p.router;
import java.io.Writer;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import java.util.Properties;
import net.i2p.CoreVersion;
import net.i2p.data.DataHelper;
import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
import net.i2p.... |
package com.rultor.scm.git;
import com.google.common.base.Function;
import com.google.common.collect.Collections2;
import com.jcabi.aspects.Immutable;
import com.jcabi.aspects.Loggable;
import com.jcabi.aspects.Tv;
import com.rultor.scm.Branch;
import com.rultor.scm.SCM;
import com.rultor.shell.Shell;
import com.rultor... |
import java.net.*;
import java.io.*;
import java.util.*;
//import java.util.logging.Level;
//import java.util.logging.Logger;
/*
* The Client that can be run both as a console or a GUI
*/
public class Client {
// for I/O
private ObjectInputStream sInput; // to read from the socket
private ObjectOut... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import... |
package net.runelite.api;
import java.util.List;
import net.runelite.api.coords.LocalPoint;
import net.runelite.api.coords.WorldPoint;
/**
* Represents a tile in the game.
*/
public interface Tile
{
/**
* Gets the decoration on the tile.
*
* @return the tile decoration
*/
DecorativeObject ... |
package aQute.bnd.osgi;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.attribute.BasicFileAttributes;
import aQute.lib.io.IO;
import aQute.lib.io.IOConstants... |
package protocolsupport.protocol;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufInputStream;
import io.netty.buffer.ByteBufOutputStream;
import io.netty.handler.codec.EncoderException;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import j... |
package git4idea.history;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.VcsException;
import com.intellij.util.Function;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.... |
package com.openxc.openxcdiagnostic.diagnostic;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.openxc.messages.Diagnos... |
package de.mpicbg.tds.knime.hcstools.visualization.heatmapviewer;
import de.mpicbg.tds.core.TdsUtils;
import de.mpicbg.tds.core.model.Plate;
import de.mpicbg.tds.core.model.Well;
import de.mpicbg.tds.knime.hcstools.visualization.PlateComparators;
import de.mpicbg.tds.knime.hcstools.visualization.heatmapviewer.color.Glo... |
package dr.app.beagle.evomodel.branchmodel.lineagespecific;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.text.NumberFormat;
import java.util.HashMap;
import java.util.Map;
import dr.app.beagle.evomodel.branchmodel.BranchModel;
import dr.app.bss.Utils;
import dr... |
package com.Acrobot.ChestShop.Listeners.PostShopCreation;
import com.Acrobot.ChestShop.Configuration.Properties;
import com.Acrobot.ChestShop.Events.ShopCreatedEvent;
import com.Acrobot.ChestShop.Signs.ChestShopSign;
import com.Acrobot.ChestShop.Utils.uBlock;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import... |
package dyvil.tools.repl.command;
import dyvil.collection.Set;
import dyvil.collection.mutable.IdentityHashSet;
import dyvil.collection.mutable.TreeSet;
import dyvil.reflect.Modifiers;
import dyvil.tools.compiler.ast.classes.IClass;
import dyvil.tools.compiler.ast.classes.IClassBody;
import dyvil.tools.compiler.ast.exp... |
package com.github.games647.scoreboardstats.variables;
import com.github.games647.scoreboardstats.BackwardsCompatibleUtil;
import com.github.games647.scoreboardstats.variables.defaults.*;
import com.github.games647.scoreboardstats.config.Lang;
import com.github.games647.scoreboardstats.SbManager;
import com.github.game... |
package com.gmail.trentech.wirelessred.listeners;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.function.Predicate;
import java.util.Optional;
import org.spongepowered.api.block.BlockSnapshot;
import org.spongepowered.api.block.BlockState;
import org.spongepowered.api.b... |
package com.appnexus.opensdk;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import com.appnexus.opensdk.utils.Clog;
import com.appnexus.opensdk.utils.HashingFunctions;
import com.appnexus.opensdk.utils.Settings;
import andr... |
package com.matchandtrade.doc.maker.rest;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.notNullValue;
import java.util.Date;
import com.github.rafasantos.restdocmaker.RestDocMaker;
import com.github.rafasantos.restdocmaker.template.Snippet;
import com.github.rafasantos.restdocmaker.te... |
package ru.wapstart.plus1.sdk;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.... |
package com.sunny.grokkingalgorithms.boot2019.toast;
import java.util.Scanner;
import java.util.Stack;
public class SimpleTextEditor {
public static void simpleTextEditor(String operation,
Stack<String> undoStack,
StringBuilder myText){... |
package com.teamwizardry.refraction.client.render;
import com.teamwizardry.librarianlib.client.core.ClientTickHandler;
import com.teamwizardry.librarianlib.client.sprite.Sprite;
import com.teamwizardry.librarianlib.client.sprite.Texture;
import com.teamwizardry.refraction.api.Constants;
import com.teamwizardry.refracti... |
package de.domisum.lib.auxilium.data.container.block;
import de.domisum.lib.auxilium.data.container.dir.Direction2D;
import de.domisum.lib.auxilium.util.java.annotations.APIUsage;
import org.bukkit.block.Block;
import javax.annotation.Nonnull;
@APIUsage
public class BlockCoordinate implements Comparable<BlockCoordinate... |
package edu.upc.caminstech.equipstic.client;
public class EquipsTicClientException extends RuntimeException {
private static final long serialVersionUID = 5559008561162893859L;
private final Response<?> response;
public EquipsTicClientException(Response<?> response) {
super();
this.response ... |
package hudson.plugins.octopusdeploy;
import com.octopusdeploy.api.*;
import hudson.Launcher;
import hudson.Extension;
import hudson.model.*;
import hudson.tasks.*;
import hudson.util.*;
import java.io.IOException;
import jenkins.model.Jenkins;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.*;
/**
* Execute... |
package hudson.plugins.octopusdeploy;
import com.google.common.base.Splitter;
import com.octopusdeploy.api.data.Tag;
import com.octopusdeploy.api.data.TagSet;
import com.octopusdeploy.api.data.Task;
import com.octopusdeploy.api.*;
import java.io.*;
import java.text.DateFormat;
import java.text.ParseException;
import ja... |
package io.github.qwefgh90.handyfinder.springweb.service;
import java.awt.Desktop;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.nio.file.File... |
package net.floodlightcontroller.virtualnetwork;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import ja... |
package net.fortuna.ical4j.validate;
import java.util.ServiceLoader;
public abstract class AbstractCalendarValidatorFactory {
private static CalendarValidatorFactory instance;
static {
instance = ServiceLoader.load(CalendarValidatorFactory.class, DefaultCalendarValidatorFactory.class.getClassLoader()).i... |
package com.neucrack.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import java.util.Map;
public class HttpRequest {
public static String sendGet(String url, S... |
package org.apereo.lap.services.storage.mongo;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
i... |
package org.asciidoc.intellij.toolbar;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.components.ProjectComponent;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.FileEditorManager;
import com.intellij.openapi.file... |
package org.csanchez.jenkins.plugins.kubernetes;
import java.util.concurrent.Callable;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import hudson.model.Label;
import hudson.model.Node;
/**
* Callback for Kubernetes cloud provision
*
* @since 0.13
*/
class ProvisioningCallback implements Ca... |
package org.datacite.mds.validation.constraints.impl;
import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorCont... |
package org.lightmare.jpa.hibernate;
import java.net.URL;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceException;
import org.hibernate.jpa.HibernatePersistenceProvider;
import org.hibernate.jpa.boot.internal... |
package org.osiam.auth.login.internal;
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 javax.inject.Inject;
import org.osiam.auth.login.ResourceServerConnector;
import org.osiam.resources.scim.Role;
import org... |
package org.tyrannyofheaven.bukkit.util.command.reader;
import static org.tyrannyofheaven.bukkit.util.ToHMessageUtils.colorize;
import static org.tyrannyofheaven.bukkit.util.ToHMessageUtils.sendMessage;
import static org.tyrannyofheaven.bukkit.util.ToHStringUtils.delimitedString;
import static org.tyrannyofheaven.bukki... |
package com.exedio.cope.pattern;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.ServletException;
im... |
package org.zalando.nakadi.service.subscription.state;
import com.codahale.metrics.Meter;
import com.google.common.base.Preconditions;
import org.slf4j.LoggerFactory;
import org.zalando.nakadi.domain.ConsumedEvent;
import org.zalando.nakadi.domain.EventTypePartition;
import org.zalando.nakadi.domain.NakadiCursor;
impor... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.util.Objects;
import javax.swing.*;
import javax.swing.border.Border;
public final class MainPanel extends JPanel {
private MainPanel() {
super(new GridLayout(1, 0));
DefaultListMo... |
package com.scg.domain;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.time.LocalDate;
import java.util.Formatter;
import org.junit.Before;
import org.junit.Test;
import com.scg.util.PersonalName;
/**
* Test cases for Cons... |
package net.wurstclient.features.mods.fun;
import java.util.Random;
import net.minecraft.network.play.client.CPacketPlayer;
import net.wurstclient.compatibility.WConnection;
import net.wurstclient.compatibility.WMinecraft;
import net.wurstclient.events.listeners.UpdateListener;
import net.wurstclient.features.Mod;
impo... |
package net.oneandone.stool.site;
import net.oneandone.sushi.fs.World;
import net.oneandone.sushi.fs.file.FileNode;
import net.oneandone.sushi.util.Strings;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ... |
package com.makeramen.rounded;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;
public class RoundedImageView extends ImageVi... |
package com.digi.xbee.api;
import java.io.IOException;
import java.util.Arrays;
import com.digi.xbee.api.connection.DataReader;
import com.digi.xbee.api.connection.IConnectionInterface;
import com.digi.xbee.api.connection.serial.SerialPortParameters;
import com.digi.xbee.api.exceptions.InterfaceAlreadyOpenException;
im... |
package org.bimserver.plugins;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.FileSystem;
import java.nio.file.FileSystemNotFoundException;
import java.n... |
package trikita.anvil;
import android.content.Context;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.util.SparseArray;
import android.os.Parcel;
/**
* A most common renderable implementation - a reactive view group that updates
... |
package view.Gameplay;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import view.TableTab.TableGridView;
public class GameplayView extends BorderPane {
private Button endTurnButton = new Button("End Turn");
privat... |
package org.gridlab.gridsphere.core.persistence.castor;
/*
* @author <a href="mailto:oliver@wehrens.de">Oliver Wehrens</a>
* @team sonicteam
* @version $Id$
*
* RDBMS Implementation for castor.
*
*/
import org.exolab.castor.jdo.*;
import org.exolab.castor.jdo.PersistenceException;
import org.exolab.castor.mappin... |
package lesson.ifstatements;
import java.util.Random;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
public class StensaxPseNya {
public static void main(String[] args) {
// TODO Auto-generated method stub
Integer[] options = { 1, 2, 3, 4, 5 };
int n = (Integer) JOptionPane.sh... |
package org.mtransit.parser.ca_gtha_go_transit_bus;
import java.util.HashSet;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import org.mtransit.parser.CleanUtils;
import org.mtransit.parser.DefaultAgencyTools;
import org.mtransit.parser.Utils;
import org.mtransit.parser.gtfs.data.GCalenda... |
package org.pentaho.di.trans.steps.scriptvalues_mod;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.InetAddress;
import java.nio.ByteBuffer;
... |
package org.pentaho.di.trans.steps.synchronizeaftermerge;
import java.util.ArrayList;
import java.util.List;
import java.sql.PreparedStatement;
import java.sql.BatchUpdateException;
import java.sql.SQLException;
import org.pentaho.di.core.Const;
import org.pentaho.di.core.database.Database;
import org.pentaho.di.core.d... |
package com.github.dockerjava.netty.exec;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.isEmptyString;
import static org.hamcrest.Matchers.not;
import java.lang.reflect.Method;
import java.security.SecureRandom;
import org.slf4j.Log... |
package de.skuzzle.inject.async.internal;
import static org.mockito.Mockito.mock;
import org.junit.Before;
import org.junit.Test;
import de.skuzzle.inject.async.ScheduledContext;
import de.skuzzle.inject.async.internal.context.ScheduledContextHolder;
public class DefaultExceptionHandlerTest {
private final DefaultE... |
package net.markenwerk.utils.json.parser;
import java.io.IOException;
import java.io.Reader;
import org.junit.Assert;
import org.junit.Test;
import net.markenwerk.utils.json.common.exceptions.InvalidJsonValueException;
import net.markenwerk.utils.json.common.exceptions.JsonSyntaxError;
import net.markenwerk.utils.json.... |
package gov.nih.nci.gss.util;
import gov.nih.nci.gss.api.JSONDataService;
import gov.nih.nci.gss.domain.DomainClass;
import gov.nih.nci.gss.domain.GridService;
import gov.nih.nci.gss.domain.HostingCenter;
import gov.nih.nci.gss.support.LastRefresh;
import gov.nih.nci.system.applicationservice.ApplicationException;
impo... |
package cs201.gui;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Point;
import java.util.ArrayList;
import java.util.LinkedList;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import cs201.agents.PersonA... |
package org.zalando.nakadi.service.subscription;
import com.google.common.collect.ImmutableList;
import io.opentracing.Span;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mockito;
import org.zalando.nakadi.domain.Subscription;
import org.zalando.nakadi.service.subscription.... |
package net.sf.javabdd;
import java.io.PrintStream;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Collection;
import java.util.Random;
import java.util.function.IntFunction;
import java.util.function.Supplier;
import javax.annotation.Nonnull;
import org.apache.logging.l... |
package com.intellij.openapi.roots.impl;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.projectRoots.ProjectJdk;
import com.intellij.openapi.roots.*;
import com.intellij.openapi.roots.impl.watcher.OrderEntryProperties;
import com.intellij.openapi.ro... |
package hr.fer.zemris.vhdllab.applets.main.interfaces;
public class FileContent {
private String projectName;
private String fileName;
private String content;
public FileContent(String projectName, String fileName, String content) {
if(projectName == null || fileName == null || content == null) ... |
package data.system;
import java.io.Serializable;
/**
* An object containing location information regarding a system node
* @author Balazs Pete
*
*/
public class NodeInfo implements Serializable {
private static final long serialVersionUID = 7378201805278309534L;
private String name, location;
/**
... |
package de.eternity;
import de.eternity.gfx.TextureStorage;
import de.eternity.input.ButtonInput;
import de.eternity.map.TileStorage;
/**
* Holds all the global information for the game.
* Also handles loading and precomputing game assets.
* @author Julzenberger
*
*/
public class GameData {
public final int ti... |
package view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;
import java.util.ArrayList;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
imp... |
package org.telegram.telegrambots.bots;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.io.FileUtils;
import org.apache.http.HttpEntity;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.Ht... |
package net.java.sip.communicator.slick.contactlist.mockprovider;
import java.util.*;
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.service.protocol.event.*;
/**
* A mock protocol provider implementation that comes with a single operation
* set (OperationSetPersistentPresence) ... |
package com.neucrack.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import java.util.Map;
import com.neucrack.DAO.DAOConnectionInfo;
public class HttpRequest {
... |
package battlecode.world;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import battlecode.common.Direction;
import battlecode.common.GameConstants;
import battlecode.common.MapLocation;
import battlecode.common.RobotInfo;
import battlecode.common.RobotType;
import battlecode.common.Command... |
// This file is part of the OpenNMS(R) Application.
// OpenNMS(R) is a derivative work, containing both original code, included code and modified
// and included code are below.
// OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
// This program is free software; you can redistribute it and/or modify
// ... |
// SiteSystemState.java
package ed.lang.python;
import org.python.expose.*;
import org.python.Version;
import org.python.expose.generate.*;
import java.io.*;
import java.util.*;
import org.python.core.*;
import ed.appserver.*;
import ed.log.*;
import ed.js.*;
import ed.log.*;
import ed.js.engine.*;
import ed.lang.*;
im... |
package com.areen.jlib.tuple;
import java.io.Serializable;
import java.util.Map;
public class Pair<KeyT, ValueT> implements Map.Entry<KeyT, ValueT>, Serializable {
protected KeyT first;
protected ValueT second;
public Pair(final KeyT argFirst, final ValueT argSecond) {
super();
this.first = ... |
package soot.jimple.infoflow;
import heros.FlowFunction;
import heros.FlowFunctions;
import heros.InterproceduralCFG;
import heros.flowfunc.Identity;
import heros.solver.PathEdge;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import soot... |
package com.scg.util;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* This tests PersonalName.
* @author Brian Stamm
*/
public class PersonalNameTests {
//Private variables used for testing
private String lastName = "Cicero";
private String firstName = "Marcus";
private String middleNa... |
package com.avairebot.orion;
import com.avairebot.orion.ai.IntelligenceManager;
import com.avairebot.orion.ai.intents.RequestOnlinePlayers;
import com.avairebot.orion.ai.intents.SmallTalk;
import com.avairebot.orion.ai.intents.Unknown;
import com.avairebot.orion.cache.CacheManager;
import com.avairebot.orion.commands.C... |
package com.concurrent.guard;
/**
* User shijingui
* Date 2017/5/14
*/
public class Test {
public static void main(String[] args) {
RequestQueue requestQueue = new RequestQueue();
for (int i = 0; i < 10; i++) {
new ServerThread(requestQueue, "ServerThread" + i).start();
}
... |
package net.sf.cglib.util;
import java.util.*;
import net.sf.cglib.core.*;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.Label;
import org.objectweb.asm.Type;
/**
* This class implements a simple String->int mapping for a fixed set of keys.
*/
abstract public class StringSwitcher {
private stati... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package swift.test.microbenchmark;
import java.util.Random;
import swift.crdt.CRDTIdentifier;
import swift.crdt.IntegerTxnLocal;
import swift.crdt.IntegerVersioned;
import swift.crdt.interfaces.CachePolicy;
import swift.crdt.interfaces.IsolationLevel;
import swift.crdt.interfaces.Swift;
import swift.crdt.interfaces.Txn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.