answer stringlengths 17 10.2M |
|---|
package org.sourcepit.common.testing;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
/**
* @author Bernd
*/
public final class Environment
{
private... |
package reciter.database.dynamodb;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient;
import org.apache.commons.lang3.StringUtils;
import org.socialsignin.spring.... |
package se.purplescout.pong.gui.server;
import javafx.geometry.HPos;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.control.Control;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.scene.text.... |
package se.su.it.svc.server.log;
import org.eclipse.jetty.http.HttpHeaders;
import org.eclipse.jetty.server.Authentication;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.RequestLog;
import org.eclipse.jetty.server.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class... |
package seedu.address.logic.commands;
import java.util.logging.Logger;
import seedu.address.commons.core.EventsCenter;
import seedu.address.commons.core.LogsCenter;
import seedu.address.commons.core.Messages;
import seedu.address.commons.core.UnmodifiableObservableList;
import seedu.address.commons.exceptions.IllegalVa... |
package seedu.address.logic.commands;
/**
* Lists all tasks in the uTask to the user.
*/
public class ListCommand extends Command {
public static final String COMMAND_WORD = "list";
public static final String MESSAGE_SUCCESS = "Listed all tasks";
@Override
public CommandResult execute() {
mode... |
package seedu.emeraldo.model.task;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import seedu.emeraldo.commons.exceptions.IllegalValueException;
//@@author A0139749L
/**
* Parses the date and time, and check for the validity of the inputs
*/
pu... |
package com.malhartech.util;
import java.io.Serializable;
public class Pair<F, S> implements Serializable
{
private static final long serialVersionUID = 731157267102567944L;
public final F first;
public final S second;
@Override
public int hashCode()
{
int hash = 7;
hash = 41 * hash + (this.first !=... |
package seedu.ezdo.commons.util;
import java.util.Optional;
import java.util.Set;
import seedu.ezdo.model.todo.Priority;
import seedu.ezdo.model.todo.TaskDate;
//@@author A0141010L
public class SearchParameters {
private Set<String> namesToCompare;
private Optional<Priority> priorityToCompare;
private Optio... |
package seedu.malitio.logic.commands;
import java.util.Set;
//@@author a0126633j
/**
* Finds and lists tasks from the last shown list whose name or tags or date/time contains any of the argument keywords.
* Keyword matching is case insensitive.
*/
public class FindCommand extends Command {
public static final ... |
package org.apache.jmeter.gui.action;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import javax.swing.JDialog;
import javax.swing.JScrollPane;
import org.apache.jmeter.gui.GuiPackage;
import org.apache.j... |
package seedu.tasklist.logic.commands;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import seedu.tasklist.commons.exceptions.IllegalValueException;
import seedu.tasklist.logic.commands.exceptions.CommandException;
import seedu.tasklist.model.ta... |
package selling.sunshine.schedule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import selling.sunshine.service.RefundService;
public class RefundSchedule {
private Logger logger = LoggerFactory.getLogger(PoolSchedule.class);
@Autowired
... |
package sib.swiss.swissprot;
import org.openjdk.jmh.annotations.*;
import java.nio.ByteBuffer;
import java.util.Random;
@State(Scope.Thread)
public class MyBenchmark {
private static final int size = 2 * 1024 * 1024;
private ByteBuffer dna;
@Setup
public void setUp(){
dna = ByteBuffer.allocateDirect... |
package top.quantic.sentry.service.util;
import de.androidpit.colorthief.ColorThief;
import de.androidpit.colorthief.MMCQ;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.InputStream;
import java.net.InetSocket... |
package de.jungblut.math.cuda;
import java.util.Random;
import jcuda.Pointer;
import jcuda.Sizeof;
import jcuda.jcublas.JCublas2;
import jcuda.jcublas.cublasHandle;
import jcuda.jcublas.cublasOperation;
import jcuda.jcublas.cublasPointerMode;
import jcuda.runtime.JCuda;
import jcuda.runtime.cudaDeviceProp;
import jcuda... |
package de.mycrobase.ssim.ed.app;
import com.jme3.app.Application;
import com.jme3.app.state.AppStateManager;
import com.jme3.audio.AudioNode;
import com.jme3.scene.Node;
import de.mycrobase.ssim.ed.weather.Weather;
import de.mycrobase.ssim.ed.weather.ext.PrecipitationType;
public class AudioAppState extends BasicAppSt... |
package de.wolfi.minopoly.commands;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import de.wolfi.minopoly.Main;
import de.wolfi.minopoly.components.Minopoly;
import de.wolfi.minopoly.componen... |
package uk.nhs.ciao.camel;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.camel.spring.Main;
import org.apache.camel.util.IOHelper;
im... |
package xyz.tiltmaster.listener;
import org.jnativehook.GlobalScreen;
import org.jnativehook.NativeHookException;
import org.jnativehook.keyboard.NativeKeyEvent;
import org.jnativehook.keyboard.NativeKeyListener;
import xyz.tiltmaster.util.Observer;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
im... |
package org.deidentifier.arx.algorithm;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Stack;
import org.deidentifier.arx.criteria.KAnonymity;
import org.deidentifier.arx.framework.check.INodeChecker;
import org.deidentifier.arx.framework.che... |
package tlc2.tool.fp;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class ShortDiskFPSetTest extends AbstractFPSetTest {
private static final boolean runKnownFailures = Boolean
.getBoolean(ShortDiskFPSetTest.class.getName() + ".runKnown"... |
package dr.app.beauti.generator;
import dr.app.beast.BeastVersion;
import dr.app.beauti.BeautiFrame;
import dr.app.beauti.components.ComponentFactory;
import dr.app.beauti.components.marginalLikelihoodEstimation.MarginalLikelihoodEstimationOptions;
import dr.app.beauti.options.*;
import dr.app.beauti.types.*;
import dr... |
package dr.app.beauti.options;
import java.util.ArrayList;
import java.util.List;
import dr.app.beauti.enumTypes.OperatorType;
import dr.app.beauti.enumTypes.PriorScaleType;
import dr.app.beauti.enumTypes.TreePriorType;
import dr.app.beauti.generator.Generator;
import dr.evolution.util.Taxon;
import dr.evomodel.coalesc... |
package dr.evolution.alignment;
import dr.app.bss.XMLExporter;
import dr.app.tools.NexusExporter;
import dr.evolution.datatype.Codons;
import dr.evolution.datatype.DataType;
import dr.evolution.datatype.GeneralDataType;
import dr.evolution.sequence.Sequence;
import dr.evolution.sequence.Sequences;
import dr.evolution.u... |
package dr.evomodel.operators;
import dr.evolution.tree.MutableTree;
import dr.evolution.tree.NodeRef;
import dr.evomodel.tree.TreeModel;
import dr.inference.operators.MCMCOperator;
import dr.inference.operators.OperatorFailedException;
import dr.inference.operators.SimpleMCMCOperator;
import dr.math.MathUtils;
import ... |
package edu.jhu.thrax.hadoop.tools;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer;
import org.apache.... |
import com.google.maps.GeoApiContext;
import com.google.maps.GeocodingApi;
import com.google.maps.model.GeocodingResult;
public class Hello {
public static void main(String[] args) throws Exception {
GeoApiContext context = new GeoApiContext().setApiKey("AIzaSyCL9BI_9U8ba_Zf_ldHd9KrYFtBtK7cTzI");
Ge... |
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
public class ADBInterface {
private String OS_NAME;
private int OS; // int representing OS
private String FS; // file separator. '/' or '\'
private String PWD; // no trailing slash
private String ADBPATH;
private final ... |
package com.kuxhausen.huemore;
import com.google.gson.Gson;
import com.kuxhausen.huemore.state.HueState;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.sup... |
package com.cky.learnandroiddetails;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.widget.LinearLayout;
public class MyLayout extends LinearLayout {
/*
*Scroller
* */
public MyLayout(Context context,... |
package com.coomweather.android;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContent... |
package com.emsilabs.emsitether;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackb... |
package com.samourai.wallet.util;
import android.util.Patterns;
import com.samourai.wallet.SamouraiWallet;
import com.samourai.wallet.bip47.rpc.PaymentCode;
import com.samourai.wallet.segwit.bech32.Bech32;
import com.samourai.wallet.segwit.bech32.SegwitAddress;
import org.apache.commons.lang3.tuple.Pair;
import org.bit... |
package com.tlongdev.bktf;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetManager;
import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.net.Uri;
import androi... |
package com.yubico.yubikitold;
import android.app.Activity;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.Nullable;
import com.yubico.yubikitold.transport.OnYubiKeyListener;
import com.yubico.yubikitold.transport.nfc.NfcDeviceManager;
import com.yubico.yubikitold.transport.usb.UsbDevic... |
package edu.rutgers.css.Rutgers;
import java.util.ArrayList;
import org.jdeferred.android.AndroidDoneCallback;
import org.jdeferred.android.AndroidExecutionScope;
import org.jdeferred.android.AndroidFailCallback;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Ac... |
package me.ykrank.s1next.data.api.model;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.support.v4.util.SimpleArrayMap;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnorePr... |
package org.stepic.droid.web;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.util.Log;
import com.squareup.okhttp.Authenticator;
import com.squareup.okhttp.Credentials;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.... |
package org.commcare.activities;
import static org.commcare.activities.DispatchActivity.SESSION_ENDPOINT_ARGUMENTS_BUNDLE;
import static org.commcare.activities.DispatchActivity.SESSION_ENDPOINT_ARGUMENTS_LIST;
import static org.commcare.activities.DispatchActivity.SESSION_ENDPOINT_ID;
import static org.commcare.activi... |
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
impo... |
package com.sun.star.wizards.db;
// import com.sun.star.lang.WrappedTargetException;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.beans.*;
// import com.sun.star.container.NoSuchElementException;
import com.sun.star.container.XIndexAccess;
import com.sun.star.container.XNameAccess;
import com.sun.... |
package netspy.components.gui.components.frame;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.util.Collections;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import java... |
package org.hyperic.sigar.jmx;
import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.management.AttributeNotFoundException;
import javax.management.MBeanAttributeInfo;
import javax.management.MBeanException;
import javax.management.MBeanInfo;
impo... |
package org.intermine.bio.ontology;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.... |
package nu.validator.xml;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.cybozu.labs.langdetect.Detector;
import com.cybozu.labs.langdetect.D... |
package biz.aQute.resolve;
import static org.osgi.framework.namespace.BundleNamespace.BUNDLE_NAMESPACE;
import static org.osgi.framework.namespace.IdentityNamespace.IDENTITY_NAMESPACE;
import static org.osgi.resource.Namespace.REQUIREMENT_RESOLUTION_DIRECTIVE;
import static org.osgi.resource.Namespace.RESOLUTION_OPTION... |
package btools.server;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java... |
package org.clapper.curn.output.script;
import org.clapper.curn.Constants;
import org.clapper.curn.CurnConfig;
import org.clapper.curn.ConfiguredOutputHandler;
import org.clapper.curn.CurnException;
import org.clapper.curn.FeedInfo;
import org.clapper.curn.Version;
import org.clapper.curn.output.FileOutputHandler;
impo... |
package org.eigenbase.enki.hibernate;
import java.io.*;
import java.lang.ref.*;
import java.lang.reflect.*;
import java.sql.*;
import java.util.*;
import java.util.concurrent.atomic.*;
import java.util.concurrent.locks.*;
import java.util.logging.*;
import javax.jmi.model.*;
import javax.jmi.reflect.*;
import javax.man... |
package jlibs.xml.stream;
import jlibs.xml.sax.AbstractXMLReader;
import jlibs.xml.sax.SAXDelegate;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader... |
package org.esupportail.smsuapi.domain.beans.sms;
import java.io.Serializable;
/**
* Defines a SMS.
* @author PRQD8824
*
*/
public class SMSBroker implements Serializable {
private static final long serialVersionUID = 1L;
/**
* The unique identifier message.
*/
private int id;
/**
* T... |
package org.helioviewer.jhv.camera.annotate;
import javax.annotation.Nullable;
import org.helioviewer.jhv.base.Colors;
import org.helioviewer.jhv.camera.Camera;
import org.helioviewer.jhv.camera.Interaction;
import org.helioviewer.jhv.display.Display;
import org.helioviewer.jhv.display.Viewport;
import org.helioviewer.... |
package com.xpn.xwiki.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.io.StreamTokenizer;
import java.io.StringReader;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.... |
package org.nschmidt.ldparteditor.ldraworg;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLConnection;
import java.text.MessageFormat;
import java.util... |
package org.yamcs;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.yamcs.api.EventProducer;
import org.yamcs.api.EventProducerFactory;
import org.yamcs.parameter.ParameterConsumer;
import org.yamcs.parameter.Pa... |
package org.odk.collect.android.widgets;
import java.util.ArrayList;
import java.util.Vector;
import org.javarosa.core.model.SelectChoice;
import org.javarosa.core.model.data.IAnswerData;
import org.javarosa.core.model.data.SelectOneData;
import org.javarosa.core.model.data.helper.Selection;
import org.javarosa.form.ap... |
package org.openhab.habdroid.ui;
import java.net.MalformedURLException;
import java.net.URL;
import org.openhab.habdroid.R;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceActivity;
import android.util.Log;
import android.app.Ale... |
package org.pentaho.di.job.entries.zipfile;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.uti... |
package heufybot.modules;
import heufybot.utils.FileUtils;
import heufybot.utils.StringUtils;
import java.util.List;
import com.memetix.mst.MicrosoftTranslatorAPI;
import com.memetix.mst.detect.Detect;
import com.memetix.mst.language.Language;
public class Translate extends Module
{
public Translate(String server)
... |
package ryhma57.references;
import java.util.EnumSet;
import ryhma57.backend.BibtexReferenceField;
import static ryhma57.backend.BibtexReferenceField.*;
public class Book extends Reference {
private static EnumSet<BibtexReferenceField> existingFields;
private static EnumSet<BibtexReferenceField> requiredFields,... |
package de.mklinger.tomcat.juli.logging;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.fil... |
package havarunner.example;
import havarunner.HavaRunner;
import havarunner.annotation.RunSequentially;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(HavaRunner.class)
@RunSequentially
public class SequantialExampleTest {
@Test
void this_test_is_run_in_sequence_with_the_other_tests_in_this_cl... |
package hello.controllers;
import static org.hamcrest.core.StringContains.containsString;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.header;
import static org.springframework.test.web.servlet.re... |
package org.dstadler.commons.svn;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;
import java.io.File;
import ... |
package org.lantern.endpoints;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.lantern.TestingUtils;
import org.lantern.oauth.OauthUtils;
imp... |
package seedu.taskboss.testutil;
import seedu.taskboss.commons.exceptions.IllegalValueException;
import seedu.taskboss.logic.commands.AddCommand;
import seedu.taskboss.model.TaskBoss;
import seedu.taskboss.model.task.Task;
import seedu.taskboss.model.task.UniqueTaskList;
public class TypicalTestTasks {
public TestT... |
package seedu.tasklist.testutil;
import seedu.tasklist.commons.exceptions.IllegalValueException;
import seedu.tasklist.model.TaskList;
import seedu.tasklist.model.task.*;
public class TypicalTestTasks {
public static TestTask task1, task2, task3, task4, task5, task6, task7, task8, task9;
public TypicalTestTasks... |
package uk.gov.register.db;
import org.skife.jdbi.v2.ResultIterator;
import org.skife.jdbi.v2.sqlobject.Bind;
import uk.gov.register.core.Entry;
import uk.gov.register.store.postgres.BindEntry;
import java.time.Instant;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Opti... |
package website.automate.jwebrobot;
import com.google.inject.AbstractModule;
import com.google.inject.util.Modules;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mockito;
import org.mockito.runners.Mockit... |
package com.intellij.psi;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.ClassExtension;
import com.intellij.openapi.util.TextRange;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
/**
* @author peter
*/
public class ElementManipulators extends Class... |
package com.intellij.ide.util;
import com.intellij.codeInsight.generation.*;
import com.intellij.ide.IdeBundle;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
import com.in... |
package com.intellij.openapi.util;
import com.intellij.util.containers.MultiMap;
import org.jetbrains.annotations.Debug;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* @deprecated use {@link com.intellij.util.containers.MultiMap} directly.
* <p></p>On mi... |
package com.googlecode.goclipse.editors;
import java.util.ResourceBundle;
import melnorme.lang.ide.ui.LangUIPlugin;
import melnorme.lang.ide.ui.editor.AbstractLangEditor;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclips... |
package edu.umd.cs.findbugs;
/**
* Version number and release date information.
*/
public class Version {
/**
* Major version number.
*/
public static final int MAJOR = 0;
/**
* Minor version number.
*/
public static final int MINOR = 9;
/**
* Patch level.
*/
publ... |
package edu.umd.cs.findbugs;
import java.io.IOException;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Properties;
/**
* Version number and release date information.
*/
public class Version {
/**
* Major version number.
*/
public static final ... |
package edu.umd.cs.findbugs;
/**
* Version number and release date information.
*/
public class Version {
/**
* Major version number.
*/
public static final int MAJOR = 0;
/**
* Minor version number.
*/
public static final int MINOR = 9;
/**
* Patch level.
*/
publ... |
package edu.umd.cs.findbugs;
import java.io.InputStream;
import java.net.URL;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date;
import java.util.Locale;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.Ti... |
package org.jpos.gl;
import java.util.Arrays;
import java.math.BigDecimal;
import java.text.ParseException;
import org.jdom.Element;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.jpos.is... |
package Ontology.Mappings.Tests;
import java.util.*;
import static org.junit.Assert.*;
/**
* MessageMapTest1 Junit Testcase
* The testfile containing the data of storing all the mappings and further performing some tests for validity checks
* and also for the conversions
* @author tirthmehta
*/
import org.junit.T... |
package com.ibm.bi.dml.api;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputS... |
package com.voxelwind.nbt.io;
import com.voxelwind.nbt.tags.*;
import com.voxelwind.nbt.util.Varints;
import java.io.Closeable;
import java.io.DataInput;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.*;
import static com.voxelwind.nbt.io.NBTEncoding.MCPE_0_16_NETWORK;
public cla... |
package model;
import javafx.beans.property.ListProperty;
import javafx.beans.property.SimpleListProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.io.*;
import java.util.ArrayList;
import java.util.Scanner;
public ... |
package model;
import lombok.Getter;
import lombok.Setter;
import misc.Job;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
public class MainModel extends Model {
/** The jobs. */
@Getter @Setter private Map<St... |
package org.ccnx.ccn.test.io;
import java.io.IOException;
import junit.framework.Assert;
import org.ccnx.ccn.CCNHandle;
import org.ccnx.ccn.impl.support.DataUtils;
import org.ccnx.ccn.io.CCNInputStream;
import org.ccnx.ccn.io.CCNVersionedInputStream;
import org.ccnx.ccn.profiles.SegmentationProfile;
import org.ccnx.ccn... |
package me.eddiep;
import net.minecraft.server.v1_8_R3.*;
import org.bukkit.Material;
public class ChunkEdit {
public World world;
public ChunkEdit(World w) {
this.world = w;
}
public void setBlock(int x, int y, int z, Material type, byte data) {
int columnX = x >> 4;
int columnZ... |
package org.freeflow.core;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.freeflow.debug.TouchDebugUtils;
import org.freeflow.layouts.AbstractLayout;
import org.freeflow.layouts.animations.DefaultLayoutAnimator;
import org.freeflow.layouts.animations.LayoutAnimator;
import org.fre... |
package edu.teco.dnd.graphiti;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.util.Repository;
... |
package com.yox89.ld32.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.Bitm... |
package ru.osetsky;
public class Count {
/**
* Wait before terminate.
*/
private static final long WATCH_DOG_TIMER = 1000;
/**
* Count.
*/
private final Thread count;
/**
* Time.
*/
private final Thread time;
/**
* Constructor initialize two threads.
*... |
package com.javadude.observer;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
public class ButtonExample {
private static class ButtonReport implements ActionListener {
@Override public void ... |
package com.special.ResideMenu;
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Build;
import android.util.DisplayMetrics;
import android.view.*;
import android.view.animation.Ani... |
package org.xins.tests.server;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framewo... |
package yuku.alkitab.base.util;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class QueryTokenizer {
public static final String TAG = QueryTokenizer.class.getSimpleName();
static Pattern oneToken = Pattern.compi... |
package com.angles.angles;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Calendar;
import com.angles.model.Angle;
import com.angles.model.AnglesEvent;
import com.angles.model.User;
import com.goog... |
package smile.feature;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.ArrayList;
import java.util.Arrays;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.ju... |
package org.jpmml.evaluator;
import java.util.Map;
import org.dmg.pmml.FieldName;
import org.dmg.pmml.LocalTransformations;
import org.dmg.pmml.MathContext;
import org.dmg.pmml.MiningFunction;
import org.dmg.pmml.MiningSchema;
import org.dmg.pmml.Model;
import org.dmg.pmml.ModelExplanation;
import org.dmg.pmml.ModelSta... |
package edu.knoxcraft.turtle3d;
import static edu.knoxcraft.turtle3d.KCTCommand.*;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @author ppypp emhastings hahaha
*
*/
public class Turtle3D
{
/* Sample JSON commands:
{
"scriptname" : "script-test",
"commands" : [
{"cmd" : "forward",
... |
// 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 the Software is
// furnished to do so, subject to the following conditions:
// all copies or substantial... |
// 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 the Software is
// furnished to do so, subject to the following conditions:
// all copies or substantial... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.