answer stringlengths 17 10.2M |
|---|
package org.mitre.synthea.export;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java... |
package nl.nn.adapterframework.jdbc;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.sql.Types;
import java.util.Date;
import javax.naming.NamingException;
import javax.sql.DataSource;
import nl.nn.adap... |
package org.nanopub.extra.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
im... |
package org.objectstyle.japp.worker;
import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.types.FileSet;
import com.oracle.appbundler.AppBundlerTask;
import com.oracle.appbundler.Option;
/**
* Packages OS X apps for Java 1.7+ using Oracle appbunder.
*/
class JAppMacWorker exten... |
package org.nanopub.extra.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
im... |
package org.opennars.inference;
import org.opennars.control.DerivationContext;
import org.opennars.entity.*;
import org.opennars.io.Symbols;
import org.opennars.language.*;
import org.opennars.main.Parameters;
import java.util.HashMap;
import java.util.Map;
import static org.opennars.inference.TruthFunctions.*;
import ... |
package org.owasp.dependencycheck.data.nvdcve;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
i... |
package org.pfaa.chemica.registration;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.pfaa.chemica.Chemica;
import org.pfaa.chemica.item.MaterialStack;
import org.pfaa.chemica.model.Aggregate;
import org.pfaa.chemica.... |
package sc.yhy.servlet;
import java.io.IOException;
import java.util.logging.Logger;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* servlet
*
* @au... |
package org.sagebionetworks.web.client;
import static org.sagebionetworks.web.client.ClientProperties.ALERT_CONTAINER_ID;
import static org.sagebionetworks.web.client.ClientProperties.DEFAULT_PLACE_TOKEN;
import static org.sagebionetworks.web.client.ClientProperties.ERROR_OBJ_REASON_KEY;
import static org.sagebionetwor... |
package org.spongepowered.api.data;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
import static org.spongepowered.api.data.DataQuery.of;
import com.google.common.base.Objec... |
package lispy;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
public class Compiler {
public static String jsNamespace = "lispy";
public static String prelude(String namespace) {
StringBuilder builder = new StringBuilder();
bui... |
package org.spongepowered.common.network;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.network.INetHandler;
import net.minecraft.network.NetHandlerPlayServer;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.CPacketClientSettin... |
package org.trancecode.parallel;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import java.util.Iterator;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
/**
* Parallel equivalent of {@link Iterables}.
*
*... |
package org.zalando.nakadi.service;
import com.google.common.collect.ImmutableSet;
import org.everit.json.schema.Schema;
import org.everit.json.schema.SchemaException;
import org.everit.json.schema.loader.SchemaLoader;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.... |
package org.yaml.snakeyaml.resolver;
import java.util.regex.Pattern;
final class ResolverTuple {
private final String tag;
private final Pattern regexp;
public ResolverTuple(String tag, Pattern regexp) {
this.tag = tag;
this.regexp = regexp;
}
public String getTag() {
return ... |
package com.exedio.cope.util;
import java.io.File;
import javax.servlet.Filter;
import javax.servlet.FilterConfig;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import com.exedio.cope.Cope;
import com.exedio.cope.Model;
publ... |
package pointGroups.geometry.symmetries;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import pointGroups.geometry.Point4D;
import pointGroups.geometry.Quaternion;
import pointGroups.geometry... |
package permafrost.tundra.tn.profile;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import com.wm.app.b2b.server.ServiceException;
import com.wm.app.tn.profile.Profile;
import com.wm.app.tn.profile.ProfileStore;
import com.wm... |
package romelo333.notenoughwands.Items;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
impo... |
package ru.parallel.octotron.http.operations;
import ru.parallel.octotron.core.attributes.SensorAttribute;
import ru.parallel.octotron.core.attributes.Value;
import ru.parallel.octotron.core.collections.ModelList;
import ru.parallel.octotron.core.model.ModelEntity;
import ru.parallel.octotron.core.primitive.exception.E... |
package ru.r2cloud.satellite.decoder;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.List;
import java.util.zip.GZIPInputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impor... |
package ru.r2cloud.satellite;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.slf4j.Lo... |
package seedu.taskmanager.model.task;
import static seedu.taskmanager.logic.commands.SortCommand.SORT_KEYWORD_ENDDATE;
import static seedu.taskmanager.logic.commands.SortCommand.SORT_KEYWORD_STARTDATE;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import javafx.collections.FXCollections... |
package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import seedu.address.c... |
package team.unstudio.udpl.bungeecord;
import com.google.common.collect.Iterables;
import com.google.common.io.ByteArrayDataInput;
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import ... |
package seedu.taskboss.logic.commands;
import seedu.taskboss.commons.core.EventsCenter;
import seedu.taskboss.commons.core.Messages;
import seedu.taskboss.commons.core.UnmodifiableObservableList;
import seedu.taskboss.commons.events.ui.JumpToListRequestEvent;
import seedu.taskboss.logic.commands.exceptions.CommandExcep... |
package seedu.unburden.logic.commands;
import java.util.List;
import java.util.NoSuchElementException;
import seedu.unburden.commons.exceptions.IllegalValueException;
import seedu.unburden.model.tag.UniqueTagList.DuplicateTagException;
import seedu.unburden.model.task.ReadOnlyTask;
import seedu.unburden.model.task.Task... |
package control.forms.tabs;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import view.forms.Page;
import model.settings.Status;
import model.settings.ViewSettings;
import control.ControlPaint;
import control.interfaces.MoveEvent;
import control.interfaces.TabbedListener;
/**
* Controller class for Ta... |
package main;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import data.Rating;
import database.RatingDB;
public class Processor {
private RatingDB db;
public Processor() {
db = new RatingDB("jdbc:mysql://ratewhatever.cloudapp.net/ratewhatever",
... |
package org.cornutum.tcases;
import org.cornutum.tcases.generator.*;
import org.cornutum.tcases.generator.io.*;
import org.cornutum.tcases.io.*;
import org.apache.commons.collections4.IteratorUtils;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
impor... |
package uk.ac.ox.oucs.vle.mvc;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.util.UrlPathHelper;
public class PathInfoHelper extends UrlPathHelper {
/**
* Sakai wrapper around request returns pathInfo of null
* which breaks spring mvc
*/
@Override
public String ... |
package com.google.firebase.quickstart;
import com.google.auth.oauth2.GoogleCredentials;
import com.google.common.collect.ImmutableMap;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import com.google.firebase.auth.ExportedUserRecord;
import com.google.firebase.auth.FirebaseAuth;
im... |
package Tetrlais;
import java.util.Vector;
import messages.TetrlaisStateResponse;
import rlVizLib.Environments.EnvironmentBase;
import rlVizLib.general.ParameterHolder;
import rlVizLib.general.RLVizVersion;
import rlVizLib.messaging.environment.EnvironmentMessageParser;
import rlVizLib.messaging.environment.Environment... |
package sgdk.rescomp.processor;
import java.io.IOException;
import sgdk.rescomp.Processor;
import sgdk.rescomp.Resource;
import sgdk.rescomp.resource.Align;
import sgdk.tool.StringUtil;
public class AlignProcessor implements Processor
{
@Override
public String getId()
{
return "ALIGN";
}
@Ov... |
package com.jarvis.cache;
import com.jarvis.cache.to.CacheKeyTO;
import com.jarvis.cache.to.CacheWrapper;
public class MSetParam {
private CacheKeyTO cacheKey;
private CacheWrapper<Object> result;
public MSetParam(CacheKeyTO cacheKey, CacheWrapper<Object> result) {
this.cacheKey = cacheKey;
... |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Game {
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
Person p = new Person(0, 5);
Maze maze = new Maze(
"",
"........................",... |
package uk.ac.ebi.gxa.dao;
import oracle.jdbc.OracleTypes;
import oracle.sql.ARRAY;
import oracle.sql.ArrayDescriptor;
import oracle.sql.STRUCT;
import oracle.sql.StructDescriptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.dao.DataAccessException;
import org.springframework.dao... |
package com.android.library.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.FrameLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
imp... |
package org.geomajas.global;
/**
* Constants which are used in Geomajas (and which are not local to a class).
*
* @author Joachim Van der Auwera
* @since 1.6.0
*/
@Api(allMethods = true)
public interface GeomajasConstant {
/**
* Value to use when all aspects of the Feature should be lazy loaded.
*/
... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import static spark.Spark.*;
import pro.tmedia.CardController;
import pro.tmedia.CardService;
import pro.tmedia.JsonUtil;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark... |
package com.willy.ratingbar;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.DrawableRes;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionE... |
package arez.processor;
import com.google.auto.common.SuperficialValidation;
import com.google.auto.service.AutoService;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.TypeSpec;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import j... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark.get;
import com.heroku.sdk.jdbc.Dat... |
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import org.telegram.telegrambots.ApiContextInitializer;
import org.telegram.telegrambots.TelegramBotsApi;
import org.telegram.telegrambots.exceptions.Teleg... |
package aQute.bnd.url;
import static aQute.libg.slf4j.GradleLogging.LIFECYCLE;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import aQute.bnd.service.Plugin;
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 net.hearthstats.ocr;
import net.hearthstats.analysis.HearthstoneAnalyser;
import org.apache.commons.lang3.StringUtils;
import java.awt.image.BufferedImage;
public class RankLevelOcr extends OcrBase {
public Integer processNumber(BufferedImage bufferedImage) throws OcrException {
String result = proc... |
package com.rahulrav.cordova.amazon.plugin;
import android.content.Context;
import android.util.Log;
import com.amazon.inapp.purchasing.GetUserIdResponse;
import com.amazon.inapp.purchasing.GetUserIdResponse.GetUserIdRequestStatus;
import com.amazon.inapp.purchasing.ItemDataResponse;
import com.amazon.inapp.purchasing.... |
package org.aktin.broker.node;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transforme... |
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.sql.*;
public class Main extends HttpServlet {
@Override
protected void doG... |
import org.apache.http.HttpEntity;
import org.apache.http.StatusLine;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpResponseException;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client... |
package cz.muni.fi.pa165.entity;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne... |
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import spark.ModelAndView;
import spark.template.freemarker.FreeMarkerEngine;
import javax.validation.ConstraintViolationException;
import javax.validation.ValidationException;
import java.sql.Connection;
impo... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark.get;
import com.heroku.sdk.jdbc.Dat... |
import com.google.gson.Gson;
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import org.json.JSONObject;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
impo... |
package org.basex.http;
import static javax.servlet.http.HttpServletResponse.*;
import static org.basex.http.HTTPText.*;
import static org.basex.util.Token.*;
import static org.basex.util.http.HttpText.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
impor... |
package pbl1;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reduc... |
package ifc.lang;
import lib.MultiMethodTest;
import com.sun.star.lang.XTypeProvider;
import com.sun.star.uno.Type;
/**
* Testing <code>com.sun.star.lang.XTypeProvider</code>
* interface methods :
* <ul>
* <li><code> getTypes()</code></li>
* <li><code> getImplementationId()</code></li>
* </ul> <p>
* Test is <b> NOT <... |
package lombok.launch;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
public class Delombok {
private final Object delombokInstance;
private final Method addDirectory;
private ... |
package wolf.parser;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
/**
* Generates a parse table
* @author Joseph Alacqua
* @author Kevin Dittmar
* @author William Ezekiel
* @version Mar 14, 2016
*/
public class ParseTableGe... |
package org.appwork.utils.logging2.sendlogs;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.FileFilter;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.... |
package org.griphyn.cPlanner.transfer.implementation;
import org.griphyn.cPlanner.classes.ADag;
import org.griphyn.cPlanner.classes.SubInfo;
import org.griphyn.cPlanner.classes.TransferJob;
import org.griphyn.cPlanner.classes.PlannerOptions;
import org.griphyn.cPlanner.classes.FileTransfer;
import org.griphyn.cPlanner.... |
package org.jgroups.protocols.pbcast;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutpu... |
package org.opencms.ade.containerpage;
import org.opencms.ade.configuration.CmsADEConfigData;
import org.opencms.ade.configuration.CmsADEManager;
import org.opencms.ade.configuration.CmsElementView;
import org.opencms.ade.configuration.CmsModelPageConfig;
import org.opencms.ade.configuration.CmsResourceTypeConfig;
impo... |
package org.sotorrent.posthistoryextractor.gt;
import org.sotorrent.posthistoryextractor.blocks.CodeBlockVersion;
import org.sotorrent.posthistoryextractor.blocks.PostBlockVersion;
import org.sotorrent.posthistoryextractor.blocks.TextBlockVersion;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.C... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package com.ibm.mil.cafejava;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.reflect.TypeT... |
package com.joelapenna.foursquared;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.error.FoursquareException;
import com.joelapenna.foursquare.types.Group;
import com.joelapenna.foursquare.types.Venue;
import com.joelapenna.foursquared.app.LoadableListActivity;
import com.joelapenna.fours... |
package hudson.maven;
import org.apache.maven.project.MavenProject;
import org.apache.maven.model.Plugin;
import org.apache.maven.model.ReportPlugin;
import org.apache.maven.model.Extension;
import java.io.Serializable;
import hudson.Functions;
/**
* group id + artifact id + version and a flag to know if it's a plugin... |
package com.yahoo.messagebus;
import com.yahoo.concurrent.CopyOnWriteHashMap;
import com.yahoo.concurrent.SystemTimer;
import java.util.logging.Level;
import com.yahoo.messagebus.network.Network;
import com.yahoo.messagebus.network.NetworkOwner;
import com.yahoo.messagebus.routing.Resender;
import com.yahoo.messagebus.... |
package com.awsmithson.tcx2nikeplus.util;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
public class LogFormatter extends Formatter
{
private static final String FORMAT_NORMAL = "%1$tF %1$tT (%2$s)\t%3$s\n";
private static final ... |
package soot.jimple.infoflow.android;
import java.util.List;
import soot.SootMethod;
import soot.jimple.infoflow.android.data.AndroidMethod;
import soot.jimple.infoflow.source.SourceSinkManager;
/**
* SourceManager implementation for AndroidSources
* @author sarzt
*
*/
public class AndroidSourceSinkManager implemen... |
package net.saick.android.calcapp;
import android.os.Bundle;
import android.app.Activity;
import android.text.InputType;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import net.saick.android.calcapp.R;
publ... |
package com.bkahlert.nebula.widgets.composer;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang.ObjectUtils;
import org.apache.log4j.Logger;
import org.eclipse.... |
package at.ac.tuwien.kr.alpha.solver;
import at.ac.tuwien.kr.alpha.common.AnswerSet;
import at.ac.tuwien.kr.alpha.grounder.NaiveGrounder;
import at.ac.tuwien.kr.alpha.grounder.parser.ParsedProgram;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import org.junit.Ignore;
import org.junit.Test;... |
package ch.goodrick.brewcontrol.mashing;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import java.io.IOException;
import org.junit.Test;
import ch.goodrick.brewcontrol.actuator.Actuator;
import ch.goodrick.brewcontrol.actuator.FakeActuat... |
package com.cloudbees.jenkins;
import com.google.common.base.Charsets;
import com.google.common.net.HttpHeaders;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.response.Header;
import com.jayway.restassured.specification.RequestSpecification;
import org.apache.commons.io.IOUtils... |
package com.github.klondike.android.campfire;
import java.util.ArrayList;
import android.app.Activity;
import android.app.Dialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import a... |
package com.hubspot.jinjava.tree;
import static org.assertj.core.api.Assertions.assertThat;
import java.nio.charset.StandardCharsets;
import org.junit.Before;
import org.junit.Test;
import com.google.common.base.Throwables;
import com.google.common.io.Resources;
import com.hubspot.jinjava.Jinjava;
import com.hubspot.ji... |
package com.noradltd.cucumberjvm.demo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class ReverseBasics {
private static final String EMPTY_STRING = "";
@Test
public void emptyStringIsReversedToEmptyString() {
assertThat(new StringR... |
package de.cronn.jira.sync;
import static de.cronn.jira.sync.SetUtils.*;
import static de.cronn.jira.sync.config.Context.*;
import static org.assertj.core.api.Assertions.*;
import java.net.URL;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.u... |
package de.siegmar.logbackgelf;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import... |
package hello.controllers;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockit... |
package com.iskrembilen.quasseldroid.gui;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
import android.annotation.TargetApi;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.c... |
package kuleuven.group2.policy;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import com.google.common.collect.ImmutableList;
public class RoundRobinPolicyTest extends TestSortingPolicyTest {
@Override
public void correct_order_test() {
... |
package com.mantono.blink.importing;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.se... |
package net.imagej.patcher;
import static net.imagej.patcher.TestUtils.construct;
import static net.imagej.patcher.TestUtils.invokeStatic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
import ... |
package com.opengamma.engine.security;
import java.io.Serializable;
import java.util.Collection;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.opengamma.id.DomainSpecificIdentifier;
import co... |
package main;
import io.IORobot;
import java.awt.Point;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import javax.swing.SwingUtilities;
import java.lang.InterruptedException;
import java.lang.Thread;
import move.AttackTran... |
package org.asteriskjava.manager.event;
import java.util.TimeZone;
import junit.framework.TestCase;
public class TestCdrEvent extends TestCase
{
CdrEvent cdrEvent;
TimeZone defaultTimeZone;
@Override
protected void setUp() throws Exception
{
cdrEvent = new CdrEvent(this);
cdrEvent.se... |
package nallar.patched.entity;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import nallar.patched.annotation.FakeExtend;
import net.minecraft.entity.DataWatcher;
import net.minecraft.entity.Wa... |
package org.mitre.synthea.export;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mitre.synthea.world.agents.Person.INCOME_LEVEL;
import java.io.File;
import java.io.IOExcepti... |
package org.wyona.yanel.core.util;
import org.apache.log4j.Category;
import org.wyona.commons.io.Path;
import org.wyona.yarep.core.Node;
import org.wyona.yarep.core.NodeType;
import org.wyona.yarep.core.Repository;
import org.wyona.yarep.core.RepositoryException;
/**
* @deprecated Use org.wyona.yarep.util.YarepUtil
*... |
package org.myrobotlab.service;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.junit.Assert;... |
package org.owasp.esapi.util;
import static org.junit.Assert.*;
import junit.framework.JUnit4TestAdapter;
import org.junit.Test;
import org.owasp.esapi.codecs.Hex;
/** JUnit test for {@code ByteConversionUtil}. */
public class ByteConversionUtilTest {
private static final String EOL = System.getProperty("line.separ... |
package org.threadly.concurrent;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.threadly.test.TestUtil;
public class TaskDistributorTest {
private static final int PARALL... |
package org.jdesktop.swingx.renderer;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import ... |
package de.gurkenlabs.utiLITI.Components;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.Stroke;
import java.awt.event.AdjustmentEvent;
import java.awt.event.Adjus... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.