answer stringlengths 17 10.2M |
|---|
package com.thindeck.dynamo;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
imp... |
package net.imagej.ops.conditions;
import static org.junit.Assert.assertSame;
import net.imagej.ops.AbstractOpTest;
import org.junit.Test;
public class AndTest extends AbstractOpTest {
@Test
public void testAnd() {
final Condition<?> c1 =
ops.op(FunctionGreaterCondition.class, Double.class, ... |
package org.animotron.bridge;
import org.animotron.ATest;
import org.animotron.exception.AnimoException;
import org.animotron.graph.serializer.AnimoSerializer;
import org.animotron.statement.operator.THE;
import org.junit.Test;
import org.neo4j.graphdb.Relationship;
import java.io.IOException;
import static org.junit.A... |
package org.komamitsu.fluency;
import org.junit.Test;
import org.komamitsu.fluency.buffer.Buffer;
import org.komamitsu.fluency.buffer.MessageBuffer;
import org.komamitsu.fluency.buffer.PackedForwardBuffer;
import org.komamitsu.fluency.flusher.AsyncFlusher;
import org.komamitsu.fluency.flusher.Flusher;
import org.komami... |
package org.lantern.udtrelay;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
import java.net.Socket;
impo... |
package org.minimalj.util;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.junit.Assert;
import org.junit.Test;
public class CloneHelperTest {
@Test public void
should_copy_string_attribute() throws Exception {
CloneHelperTestA a = new CloneH... |
package org.nwapw.abacus.tests;
import org.junit.Assert;
import org.junit.Test;
import org.nwapw.abacus.lexing.Lexer;
import org.nwapw.abacus.lexing.pattern.Match;
import java.util.List;
public class LexerTests {
@Test
public void testBasicSuccess(){
Lexer<Integer> lexer = new Lexer<>();
lexer.r... |
package org.yaml.snakeyaml;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
public class Chapter2_1Test extends TestCase {
@SuppressWarnings("unchecked")
public void testExample_2_1() {
YamlDocument document = new YamlDocument("example2_1.yaml");
List<String> list =... |
//@@author A0147984L
package seedu.address.model.task;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.text.ParseException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu... |
package seedu.ezdo.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX... |
package test.blog.distrib;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import org.junit.Test;
import blog.distrib.Categorical;
/**
* @author cgioia
* @since Jun 17, 2014
*/
public class TestCatego... |
package test.com.qiniu.storage;
import com.qiniu.common.QiniuException;
import com.qiniu.common.Zone;
import com.qiniu.http.Response;
import com.qiniu.storage.BucketManager;
import com.qiniu.storage.Configuration;
import com.qiniu.storage.model.*;
import com.qiniu.util.StringUtils;
import junit.framework.TestCase;
impo... |
package org.apache.commons.lang;
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
/**
* Unit test... |
package org.chai.kevin.dsr;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory... |
package verification.platu.logicAnalysis;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.Stack;
... |
package verification.platu.logicAnalysis;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.Sta... |
package cgeo.geocaching;
import butterknife.ButterKnife;
import butterknife.InjectView;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.activity.AbstractViewPagerActivity;
import cgeo.geocaching.activity.Progress;
import cgeo.geocaching.apps.cache.navi.NavigationAppFactory;
import cgeo.geocachi... |
package cgeo.geocaching.ui;
import butterknife.InjectView;
import cgeo.geocaching.CacheDetailActivity;
import cgeo.geocaching.CgeoApplication;
import cgeo.geocaching.Geocache;
import cgeo.geocaching.IGeoData;
import cgeo.geocaching.R;
import cgeo.geocaching.enumerations.CacheListType;
import cgeo.geocaching.enumeration... |
package jlibs.xml.sax.sniff;
import javax.xml.namespace.NamespaceContext;
import java.io.PrintStream;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* @author Santhosh Kumar T
*/
public class XPathResults implements Debuggable{
private NamespaceContex... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableColumn;
public final class MainPanel extends JPanel {
public stat... |
package controllers;
import com.avaje.ebean.Ebean;
import com.avaje.ebean.ExpressionList;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.faster... |
package com.plugin.gcm;
import org.json.JSONException;
import org.json.JSONObject;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
i... |
package com.badlogic.gdx.setup;
import com.badlogic.gdx.setup.DependencyBank.ProjectType;
import java.io.BufferedWriter;
import java.io.IOException;
import java.util.List;
public class BuildScriptHelper {
private static int indent = 0;
public static void addBuildScript(List<ProjectType> projects, BufferedWriter... |
package hudson.search;
import hudson.util.EditDistance;
import org.kohsuke.stapler.Ancestor;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.StringTokenize... |
//FILE: OptionsDlg.java
//PROJECT: Micro-Manager
//SUBSYSTEM: mmstudio
// Mark Tsuchida (Layout, June 2014)
// This file is distributed in the hope that it will be useful,
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// CONTRIBUTOR... |
package org.verapdf.cli;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.verapdf.ReleaseDetails;
import org.verapdf.cli.commands.VeraCliArgParser;
import org.verapdf.pdfa.validation.ProfileDirectory;
import org.verapdf.pdfa.validation.Profiles;
import org.verapdf.pdfa.validation.ValidationProfile... |
package com.carrotsearch.hppc;
import java.util.Arrays;
//import static com.carrotsearch.hppc.KTypeVTypeWormMap.*;
/**
* Java hash for primitives.
* <p/>stdHash() is different from hash() because we want <b>standard Java</b> implementations.
* @author broustant
*/
public class WormUtil
{
private static final in... |
package <%= group %>;
/**
* Class that can hold basic static things that are better not hard-coded
* like mod details, texture paths, ID's...
* @author <%= author %>
*
*/
@SuppressWarnings("javadoc")
public class Reference {
// Mod info
public static final String MOD_ID = "<%= modid %>";
public static ... |
package hex.deeplearning;
import hex.ConfusionMatrix;
import hex.deeplearning.DeepLearningModel.DeepLearningParameters.ClassSamplingMethod;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import water.*;
import water.fvec.Frame;
import water.fvec.NFSFileVec;
import... |
package org.intermine.task;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.Target;
import org.apache.tools.ant.Project;
import org.apache.torque.task.TorqueSQLExec;
import org.apache.torque.task.TorqueSQLTask;
import java.io.File;
import java.io.PrintWriter;
im... |
package weave.servlets;
import static weave.config.WeaveConfig.getConnectionConfig;
import static weave.config.WeaveConfig.getDataConfig;
import static weave.config.WeaveConfig.initWeaveConfig;
import java.rmi.RemoteException;
import java.security.InvalidParameterException;
import java.sql.Connection;
import java.sql.S... |
package oceania.gen;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import oceania.blocks.Blocks;
import oceania.blocks.tile.TileEntityAtlantiumDepulsor;
import cpw.mods.fml.common.IWorldGenerator;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.worl... |
package model;
import java.util.ArrayList;
import java.util.List;
import com.jaunt.*;
public class Scraper {
private String html;
private Elements ef2p;
private Elements ep2p;
private World world;
public Scraper(String html) {
this.html = html;
}
public List<World> init() throws Resp... |
package org.intermine.web.logic.widget;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.text.DecimalFormat;
import java.text.FieldPosition;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
im... |
package com.yahoo.jdisc.core;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.framework.ServiceRegistration;
import org.osgi.framework.Version;
import org.osgi.framework.hooks.bundle.CollisionHook;
import org.osgi.framework.hooks.bundle.E... |
package org.jetbrains.jps.javac;
import com.intellij.execution.process.*;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.... |
package com.alibaba.jstorm.task;
import backtype.storm.generated.GlobalStreamId;
import java.util.*;
public class DownstreamTasks {
private Map<GlobalStreamId, List<CommunicationTree>> expandingTrees = new HashMap<GlobalStreamId, List<CommunicationTree>>();
private Map<GlobalStreamId, List<CommunicationTree>> n... |
package com.fsck.k9.ui.messageview;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Asyn... |
package squeek.applecore.example;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import squeek.applecore.api.food.FoodValues;
import squeek.applecore.api.food.IEdible;
import sq... |
package org.broadinstitute.sting.utils;
/**
* BaseUtils contains some basic utilities for manipulating nucleotides.
*
* @author Kiran Garimella
*/
public class BaseUtils {
/** Private constructor. No instantiating this class! */
private BaseUtils() {}
/**
* Converts a simple base to a base index
... |
package scrollfullscreen.ui.adapter;
import android.view.View;
import android.widget.AbsListView;
import scrollfullscreen.ScrollDetector;
/**
* Adapter for ListView, GridView
* <p>
* Dispatch AbsListView.OnScrollListener to ScrollDetector.onScrollChanged.
* Because ListView's OnScrollChangedListener don't respond t... |
package com.facebook.litho.processor;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.Modif... |
import java.util.*;
public class VacuumRobot
{
// instructions
public static final String LEFT_COMMAND = "L";
public static final String RIGHT_COMMAND = "R";
public static final String NEW_LINE = "\n";
private static final String INITIAL_INPUT = "";
private static final String OVERRIDE_CODE = "2... |
package Fragments;
import android.app.Activity;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.content.res.Configuration;
import android.net.Uri;
import android.os.Bundle;
import android.app.Fragment;
import android.text.Html;
import android.text.Spanned;
import android.text.metho... |
package com.facebook.litho.processor;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.Modif... |
import java.math.*;
public class SlamShuffle
{
public static final String DATA_FILE = "data.txt";
public static final BigInteger SIZE_OF_DECK = BigInteger.valueOf(119315717514047L);;
public static final BigInteger SHUFFLE_TIMES = BigInteger.valueOf(101741582076661L);
public static final int CARD = 2020;... |
package com.facebook.litho.processor;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.Modif... |
import java.util.*;
public class MathsParser
{
public MathsParser (boolean debug)
{
_debug = debug;
}
/**
* All numbers within expressions are single digit so we can continue to use them as
* characters.
*
* Handle different precedence to part 1.
*/
public long pars... |
package com.facebook.litho.widget;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.Typeface;
import android.text.Editable;
import android.text.InputFilter;
import android.text.Layout;
import android.... |
package org.fseek.thedeath.os.util;
import java.util.Locale;
/**
* Util class to detect the running operating system
* @author Simon
*/
@SuppressWarnings("unused")
public class OSDetector {
private static final int EMULATE_NONE = -1;
private static final int EMULATE_LINUX = 1;
private static final int EMULATE_... |
package org.bouncycastle.mail.smime.test;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.KeyPair;
import java.security.Security;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Array... |
// This file is part of Elveos.org.
// Elveos.org is free software: you can redistribute it and/or modify it
// option) any later version.
// Elveos.org is distributed in the hope that it will be useful, but WITHOUT
// more details.
package com.bloatit.web.linkable.team;
import com.bloatit.data.DaoTeam.Right;
import co... |
package mockit;
import java.util.*;
import org.junit.*;
import static java.util.Arrays.*;
import static org.junit.Assert.*;
public final class ExpectationsWithSomeArgumentMatchersRecordedTest
{
@SuppressWarnings({"UnusedDeclaration"})
static class Collaborator
{
void setValue(int value) {}
void set... |
package manage.control;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import io.restassured.common.mapper.TypeRef;
import io.restassured.http.ContentType;
import io.restassured.response.ValidatableResponse;
import io.restassured.specification.RequestSpe... |
package com.example.tetris;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import java.util.Set;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import and... |
package com.cs1635.classme;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ListView;
import com.... |
package org.ovirt.mobile.movirt.model;
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import android.text.format.DateUtils;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import org.ovirt.mobile.movirt.provider.OVirtContract;
impo... |
package com.theisleoffavalon.mcmanager.chatterbox;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.network.packet.NetHandler;
import net.minecraft.network.packet.Packet3Chat;
import cpw.mods.fml.common.network.*;
/**
* This class grabs all the chat code from Minecraft and hands it off to who
*... |
package com.haulmont.cuba.report.formatters;
import com.haulmont.cuba.core.app.ServerConfig;
import com.haulmont.cuba.core.entity.FileDescriptor;
import com.haulmont.cuba.core.global.ConfigProvider;
import com.haulmont.cuba.report.Band;
import com.haulmont.cuba.report.ReportOutputType;
import com.haulmont.cuba.report.e... |
package com.wizzardo.tools.misc;
import java.util.ArrayList;
import java.util.List;
public class CharTree<V> {
private CharTreeNode<V> root;
protected int size;
public CharTree() {
}
public CharTreeNode<V> getRoot() {
return root;
}
public CharTree<V> append(String s, V value) {
... |
package com.haulmont.cuba.web.toolkit.ui;
import com.haulmont.cuba.toolkit.gwt.client.ui.VTwinColumnSelect;
import com.vaadin.terminal.PaintException;
import com.vaadin.terminal.PaintTarget;
import com.vaadin.terminal.Resource;
import com.vaadin.ui.AbstractSelect;
import com.vaadin.ui.ClientWidget;
import com.vaadin.ui... |
package org.wildfly.swarm.naming;
import org.junit.Ignore;
import org.junit.Test;
import org.wildfly.swarm.container.Container;
/**
* @author Bob McWhirter
*/
public class NamingInVmTest {
@Ignore
@Test
public void testSimple() throws Exception {
Container container = new Container();
cont... |
package uk.dangrew.nuts.apis.tesco.api.parsing;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
import org.mockito.MockitoAnnotations;
import uk.dangrew.kode.launch.TestApplication;
impo... |
//FILE: TileCreatorDlg.java
//PROJECT: Micro-Manager
//SUBSYSTEM: mmstudio
//This file is distributed in the hope that it will be useful,
//of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
//INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAM... |
package org.formular.core;
import android.content.res.XmlResourceParser;
public class XmlDecoder {
public static IOperation fromXML(XmlResourceParser xml){
return null;
};
} |
/*code written by Douglas King
* edited by Mathew Boland
*/
package gonqbox.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle... |
package com.isawabird;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class AboutActivity extends Activity {
TextView appNameTextView;
TextView versionTextView;
TextView developedTextView;
TextView namesTextView;
TextView contactTextView;
protected ... |
package plugin.google.maps;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Locale;
import java.util.List;
import java.util.ArrayList;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaResourceApi;
import org.json.JSONArray;
import org.json.JSONExc... |
package heufybot.modules;
import heufybot.core.Logger;
import heufybot.utils.FileUtils;
import heufybot.utils.StringUtils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.json.simple.JSONArray... |
package org.biojava.nbio.structure.test;
import org.biojava.nbio.structure.*;
import org.biojava.nbio.structure.align.util.AtomCache;
import org.biojava.nbio.structure.io.FileParsingParameters;
import org.biojava.nbio.structure.io.PDBFileParser;
import org.biojava.nbio.structure.io.mmcif.ChemCompGroupFactory;
import or... |
package org.biojava.bio.structure.io;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintStream;
import org.biojava.bio.structure... |
package io.jenkins.blueocean.service.embedded.rest;
import hudson.console.AnnotatedLargeText;
import io.jenkins.blueocean.commons.ServiceException;
import org.kohsuke.stapler.AcceptHeader;
import org.kohsuke.stapler.Header;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import or... |
package com.tinkerpop.blueprints.impls.neo4j;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.EdgeTestSuite;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.GraphTestSuite;
import com.tinkerpop.blueprints.Index;
import com.tinkerpop.blueprints.IndexTestSuite;
import com.tink... |
package gov.nih.nci.cagrid.cadsr.service;
import gov.nih.nci.cadsr.domain.DataElement;
import gov.nih.nci.cadsr.umlproject.domain.Project;
import gov.nih.nci.cadsr.umlproject.domain.SemanticMetadata;
import gov.nih.nci.cadsr.umlproject.domain.UMLAssociationMetadata;
import gov.nih.nci.cadsr.umlproject.domain.UMLAttribu... |
package org.csstudio.utility.pv.epics;
import gov.aps.jca.Channel;
import gov.aps.jca.Channel.ConnectionState;
import gov.aps.jca.Monitor;
import gov.aps.jca.dbr.DBR;
import gov.aps.jca.dbr.DBRType;
import gov.aps.jca.event.ConnectionEvent;
import gov.aps.jca.event.ConnectionListener;
import gov.aps.jca.event.GetEvent;... |
package io.particle.android.sdk.devicesetup;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.annotation.NonNull;
import android.support.v4.content.LocalBroadcastManager;
impo... |
package org.hisp.dhis.webapi.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
import org.apache.commons.lang3.StringUtils;
import org.hisp.dhis.appmanager.App;
import org.hisp.dhis.appmanager.AppManager;
import org.hisp.dhis.appmanager.AppStatus;
import org.hisp.dh... |
package org.folio.rest.tools;
import org.apache.commons.io.FileUtils;
import org.folio.util.IoUtil;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.assertThat;
import java.io.File;
import... |
package com.bob.generator.extens.plugins;
import org.mybatis.generator.api.CommentGenerator;
import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.PluginAdapter;
import org.mybatis.generator.api.dom.java.*;
import org.mybatis.generator.config.Context;
import org.mybatis.generator.logging.... |
package com.hazelcast.ringbuffer.impl;
import com.hazelcast.config.Config;
import com.hazelcast.config.InMemoryFormat;
import com.hazelcast.config.RingbufferConfig;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.logging.ILogger;
import com.hazelcast.logging.Logger;
import com.hazelcast.ringbuffer.Rea... |
package org.jboss.as.quickstarts.datagrid.helloworld;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.container.test.api.TargetsContainer;
import org.jbo... |
package com.autonomy.abc.endtoend;
import com.autonomy.abc.config.HostedTestBase;
import com.autonomy.abc.config.TestConfig;
import com.autonomy.abc.selenium.actions.PromotionActionFactory;
import com.autonomy.abc.selenium.config.ApplicationType;
import com.autonomy.abc.selenium.connections.ConnectionService;
import co... |
package io.hawt.sample;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import org.apache.aries.blueprint.container.BlueprintContainerImpl;
import org.apache.camel.CamelException;
import org.apac... |
package org.junit.vintage.engine.discovery;
import static java.util.stream.Stream.concat;
import static org.junit.platform.commons.util.FunctionUtils.where;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entr... |
package org.languagetool.rules.fr;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.jetbrains.annotations.NotNull;
import org.languagetool.AnalyzedSentence;
import org.languagetool.Experimental;
import org.languagetool.GlobalConfig;
import org.languagetool.rules.Rule;
import org.languagetool.rules.RuleMat... |
package org.languagetool.rules.fr;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.jetbrains.annotations.NotNull;
import org.languagetool.AnalyzedSentence;
import org.languagetool.GlobalConfig;
import org.languagetool.rules.Rule;
import org.languagetool.rules.RuleMatch;
import org.slf4j.Logger;
import or... |
package com.dqc.qlibrary.utils;
import com.orhanobut.logger.Logger;
public class QLog {
private static boolean mAllowLog = true;
public static void init(boolean allowLog, String tag) {
mAllowLog = allowLog;
Logger.init(tag).hideThreadInfo();
}
/**
* verbose
*
* @param msg
... |
package com.orm.util;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.util.Log;
import com.orm.SugarRecord;
import com.orm.dsl.Ignore;
import com.orm.dsl.Table;
import java.io.File;
import java.io.IOException;... |
package wyc.io;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.List;
import java.util.Map;
import wybs.util.Pair;
import wyc.lang.Expr;
import wyc.lang.Stmt;
import wyc.lang.SyntacticType;
import wyc.lang.WhileyFile;
import wyil.l... |
package com.lightcrafts.platform.linux;
import static com.lightcrafts.platform.linux.Locale.LOCALE;
import com.lightcrafts.ui.toolkit.TextAreaFactory;
import com.lightcrafts.utils.WebBrowser;
import javax.swing.*;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.i... |
/**
* The context of the solve method. The fields in this class are cloned
* for every recursion of the solve() method.
*/
public final class SATContext implements java.io.Serializable {
/**
* A symbolic name for the `unassigned' value in
* the `assignment' array.
*/
private static final int U... |
package matlabcontrol;
import java.rmi.MarshalException;
import java.rmi.NoSuchObjectException;
import java.rmi.RemoteException;
import java.rmi.UnmarshalException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Timer;
import java.util.TimerTask;
/**
* Allows for calling MATLAB from <strong>outside</stro... |
package businessmodel.assemblyline;
import businessmodel.MainScheduler;
import businessmodel.category.VehicleModel;
import businessmodel.observer.Observer;
import businessmodel.observer.Subject;
import businessmodel.order.Order;
import businessmodel.util.IteratorConverter;
import businessmodel.util.SafeIterator;
import... |
package tp.pr5.logic;
import java.util.ArrayList;
public abstract class Move {
protected Counter currentPlayer;
protected int column;
protected int row;
public Move(Counter color, int column) {
currentPlayer = color;
this.column = column;
}
public void addswapped() {
Swap... |
package beast.evolution.operators;
import java.text.DecimalFormat;
import beast.core.Description;
import beast.core.Input;
import beast.core.Operator;
import beast.core.parameter.BooleanParameter;
import beast.core.parameter.RealParameter;
import beast.evolution.tree.Node;
import beast.evolution.tree.Tree;
import beast... |
package beast.app.beauti;
import beast.app.util.Utils;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader... |
package big.marketing.controller;
import java.io.IOException;
import java.util.List;
import java.util.Observable;
import org.apache.log4j.Logger;
import big.marketing.data.DataType;
import big.marketing.data.Node;
import big.marketing.reader.NetworkReader;
import big.marketing.reader.ZipReader;
public class DataControl... |
package com.appspot.usbhidterminal;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.os.Ha... |
package com.backendless.push;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import an... |
package br.edu.ufsc.sudoku42.view;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.Timer;
public class PainelJogador extends JPanel{
protected static final S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.