answer stringlengths 17 10.2M |
|---|
package org.jboss.jca.codegenerator;
import java.io.IOException;
import java.io.Writer;
import java.net.URL;
/**
* A SimpleTemplate.
*
* @author Jeff Zhang
* @version $Revision: $
*/
public class SimpleTemplate implements Template
{
/**
* SimpleTemplate
*/
public SimpleTemplate()
{
}
/**
... |
package org.exist.xquery.functions.util;
import org.exist.dom.DocumentSet;
import org.exist.dom.NodeSet;
import org.exist.dom.QName;
import org.exist.storage.Indexable;
import org.exist.util.ValueOccurrences;
import org.exist.xquery.BasicFunction;
import org.exist.xquery.Cardinality;
import org.exist.xquery.FunctionCal... |
package com.blarg.gdx.tilemap3d;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.VertexAttributes;
import com.badlogic.gdx.graphics.g3d.utils.MeshBuilder;
import com.badlogic.gdx.graphics.g3d.utils.MeshPartBuilder;
import com.badlogic.gdx.math.Matrix4;
import com.badlogic.gdx.math.Vector3;
impo... |
package org.floric.runningdinner.main.ui;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import ja... |
package foam.nanos.auth;
import foam.core.X;
import foam.dao.RelationshipPropertyValue;
import javax.security.auth.login.LoginException;
import java.util.concurrent.TimeUnit;
public class UserAndGroupAuthServiceTest
extends UserAndGroupAuthService
{
@Override
public void start() {
super.start();
addTestUs... |
package org.joval.scap.oval;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Method;
import java.math.BigInteger;
import java.ut... |
package com.github.suiteconfig;
import com.github.suiteconfig.junit.filter.ConfigurableRunnerBuilder;
import com.github.suiteconfig.junit.filter.FilterableSuite;
import com.google.common.base.Supplier;
import com.google.common.collect.Lists;
import org.junit.runner.Description;
import org.junit.runner.Runner;
import or... |
package com.semmle.js.extractor;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import com... |
package org.objectweb.asm.commons;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.objectweb.asm.Handle;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
/**
* A {@link ... |
package com.orientechnologies.common.collection;
import java.io.IOException;
import java.util.AbstractCollection;
import java.util.AbstractMap;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.ConcurrentModificationException;
import j... |
package org.objectweb.proactive.core.body;
import java.util.Hashtable;
import org.objectweb.proactive.Body;
import org.objectweb.proactive.core.UniqueID;
import org.objectweb.proactive.core.event.AbstractEventProducer;
import org.objectweb.proactive.core.event.BodyEvent;
import org.objectweb.proactive.core.event.BodyEv... |
package edu.mit.streamjit.impl.interp;
import static com.google.common.base.Preconditions.*;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableTable;
import com.google.common.collect.Ite... |
package com.example.ex_templete;
import android.R;
=======
import com.example.ex_templete.R;
>>>> .r94
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;
import android.widget.Toast;
public class YeXiangActivity extends Activity
{
@Override
protected... |
package org.opencms.jsp.util;
import org.opencms.file.CmsObject;
import org.opencms.jsp.CmsJspResourceWrapper;
import org.opencms.main.CmsException;
import org.opencms.main.CmsLog;
import org.opencms.main.OpenCms;
import org.opencms.staticexport.CmsLinkManager;
import org.opencms.util.CmsCollectionsGenericWrapper;
impo... |
package com.psddev.dari.util;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Modifier;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Ha... |
package org.neo4j.server.rest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.io.Writer;
import java.net.URI;
import java.net.URISyntax... |
package com.hotmail.kalebmarc.textfighter.main;
import com.hotmail.kalebmarc.textfighter.item.Armour;
import com.hotmail.kalebmarc.textfighter.item.FirstAid;
import com.hotmail.kalebmarc.textfighter.item.InstaHealth;
import com.hotmail.kalebmarc.textfighter.item.Power;
import com.hotmail.kalebmarc.textfighter.player.*;... |
package com.javasbar.framework.lib.common;
import com.jayway.jsonpath.Configuration;
import com.jayway.jsonpath.JsonPath;
import com.jayway.restassured.RestAssured;
import com.jayway.restassured.response.Header;
import com.jayway.restassured.response.Response;
import com.jayway.restassured.specification.RequestSpecific... |
package org.virion.jam.console;
import org.virion.jam.framework.Application;
import org.virion.jam.framework.MenuBarFactory;
import javax.swing.*;
import java.io.File;
import java.io.IOException;
public class ConsoleApplication extends Application {
private ConsoleFrame consoleFrame = null;
private boolean dont... |
package com.jcwhatever.rentalrooms.region;
import com.jcwhatever.nucleus.providers.friends.FriendLevels;
import com.jcwhatever.nucleus.providers.friends.IFriend;
import com.jcwhatever.nucleus.regions.RestorableRegion;
import com.jcwhatever.nucleus.regions.file.IRegionFileFactory;
import com.jcwhatever.nucleus.regions.f... |
package com.jeasonfire.engineer.game.entities;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import com.jeasonfire.engineer.Input;
import com.jeasonfire.engineer.game.levels.Level;
import com.jeasonfire.engineer.graphics.sprites.Sprite;
public class Player extends Entity {
public Player(float x, float ... |
package permafrost.tundra.datetime;
import permafrost.tundra.array.ArrayHelper;
import permafrost.tundra.exception.BaseException;
import permafrost.tundra.io.ParseException;
import permafrost.tundra.duration.DurationHelper;
import permafrost.tundra.timezone.TimeZoneHelper;
import java.util.Calendar;
import java.util.Ti... |
package com.bbn.bue.common.math;
import com.google.common.base.Function;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Ordering;
import static com.google.common.base.Preconditions.checkArgument;
public final class MathUtils {
private MathUtils... |
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 com.kovaciny.database;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.... |
package com.lassedissing.gamenight.client;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;
import com.jme3.scene.shape.Box;
import com.lassedissing.gamenight.world.weapons.Weapon;... |
package com.maddyhome.idea.vim;
import com.intellij.codeInsight.lookup.LookupEx;
import com.intellij.codeInsight.lookup.LookupManager;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.action... |
//#preprocess
package com.mmtechco.surface.monitor;
import com.mmtechco.surface.Surface;
import com.mmtechco.surface.net.Messager;
import com.mmtechco.surface.ui.KeypadLockScreen;
import com.mmtechco.util.Logger;
import com.mmtechco.util.ToolsBB;
import net.rim.device.api.system.KeyListener;
import net.rim.device.api.u... |
package com.team254.frc2013.commands;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
* Climbs to the third level autonomously.
*
* @author pat@team254.com (Patrick Fairbank)
*/
public class AutoHangCommand extends CommandGroup {
public AutoHangCommand() {
addSequential(new WaitForLiftCommand());
a... |
package net.katsuster.strview.media;
import java.util.List;
import net.katsuster.strview.util.*;
/**
* <p>
* 3
*
*
* </p>
*
* <p>
*
*
*
* </p>
*
* <ul>
* <li></li>
* <li>
* </li>
* <li>
* </li>
* </ul>
*
* <p>
*
* PacketAdapter
* </p>
*
* <p>
*
* </p>
*
* <dl>
* <dt>readHeader() </dt>
*... |
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// copies or substantial portio... |
package org.mozartoz.truffle.translator;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.lang.reflect.Constructo... |
package com.google.copybara.transform;
import static com.google.copybara.testing.FileSubjects.assertThatPath;
import com.google.common.collect.ImmutableList;
import com.google.common.jimfs.Jimfs;
import com.google.copybara.EnvironmentException;
import com.google.copybara.config.ConfigValidationException;
import com.goo... |
package app.hongs.db.util;
import app.hongs.HongsException;
import app.hongs.db.DB;
import app.hongs.db.Table;
import app.hongs.db.link.Loop;
import app.hongs.util.Synt;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map... |
package com.sun.star.lib.uno.helper;
import com.sun.star.uno.Type;
import com.sun.star.lang.EventObject;
import com.sun.star.lang.WrappedTargetException;
import com.sun.star.uno.TypeClass;
import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.XInterface;
import com.sun.star.uno.Any;
import com.sun.star.uno.UnoR... |
package app.hongs.util.sketch;
import app.hongs.HongsExpedient;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import net.coobird.thumbnailator.Thumbnails;
import net.coobird.thumbnailator.Thumbnails.Bu... |
package som.interpreter.nodes.dispatch;
import static som.interpreter.TruffleCompiler.transferToInterpreterAndInvalidate;
import som.compiler.AccessModifier;
import som.interpreter.Types;
import som.interpreter.nodes.MessageSendNode.GenericMessageSendNode;
import som.vmobjects.SClass;
import som.vmobjects.SObject;
impo... |
package folioxml.directexport;
import folioxml.config.InfobaseConfig;
import folioxml.config.InfobaseSet;
import folioxml.config.TestConfig;
import folioxml.export.InfobaseSetPlugin;
import folioxml.export.InfobaseSetVisitor;
import folioxml.export.html.FixHttpLinks;
import folioxml.export.html.MultiRunner;
import foli... |
package fi.nls.oskari.control.users;
import java.util.Date;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import fi.nls.oskari.control.users.model.Email;
i... |
package alluxio.collections;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Tests the {@link DirectedAcyclicGraph} class.
*/
public class DirectedAcyclicGraphTest {
private DirectedAcyc... |
package org.mskcc.cbio.portal.servlet;
import java.io.*;
import java.util.*;
import java.lang.Float;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.... |
package org.tigris.subversion.subclipse.core.resources;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.net.MalformedURLException;
import ... |
package com.emc.ia.sdk.support.datetime;
import static org.junit.Assert.*;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.junit.Test;
import com.emc.ia.sdk.support.test.RandomData;
public class WhenWorkingWithTime {
private static final int TASK_WAIT_DELTA = 100;
... |
package com.gentics.mesh.core.field.list;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.gentics.mesh.core.data.NodeGraphFieldContainer;... |
package net.sf.cglib.reflect;
import java.io.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.*;
import junit.framework.*;
import net.sf.cglib.core.ClassGenerator;
import net.sf.cglib.core.DefaultGeneratorStrategy;
import net.... |
import java.awt.*;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.awt.geom.Point2D.Double;
import java.awt.geom.RoundRectangle2D;
public class NodeShape extends TreeNode {
final private static int RADIUS = 17;
private int size = 0;
final private static int MAX_RADIUS = 30;
final ... |
import java.awt.*;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.awt.geom.Point2D.Double;
import java.awt.geom.RoundRectangle2D;
public class NodeShape extends TreeNode {
final private static int RADIUS = 17;
private int size = RADIUS;
final private static int MAX_RADIUS = 30;
f... |
package test.jenjinstudios.jgsf;
import com.jenjinstudios.jgcf.Client;
import com.jenjinstudios.jgsf.ClientHandler;
import com.jenjinstudios.jgsf.Server;
import com.jenjinstudios.sql.SQLHandler;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
import java.sql... |
package org.jpos.security;
import java.io.PrintStream;
import java.io.Serializable;
import org.jpos.iso.ISOUtil;
import org.jpos.util.Logger;
public class SecurePrivateKey extends SecureVariantKey implements Serializable{
private static final long serialVersionUID = -9145281998779008306L;
public SecurePrivateKe... |
package de.gurkenlabs.litiengine.graphics;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Transparency;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.concurren... |
package com.example.javamavenjunithelloworld;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
public class HelloTest {
@Test
public void testSayHello() {
Out... |
package com.megaport.api.client;
import com.megaport.api.dto.Environment;
import com.megaport.api.dto.MegaportServiceDto;
import com.megaport.api.dto.TechnicalServiceDto;
import com.megaport.api.exceptions.InvalidCredentialsException;
import com.megaport.api.exceptions.ServiceUnavailableException;
import org.junit.Test... |
package dk.dtu.adm.rap.controller;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.regex.Pa... |
package com.soulgalore.servlet;
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.is;
import org.junit.Test;
public class WhenAThumbnailIsCreated {
@Test
public void theGeneratedFilePathShouldNotBeNull() {
Thumbnail thumbnail = new Thumbnail("mySuperImage-120x29.png");
assert... |
package dr.evomodel.antigenic;
import dr.evolution.util.Taxa;
import dr.evolution.util.Taxon;
import dr.evolution.util.TaxonList;
import dr.inference.model.*;
import dr.math.MathUtils;
import dr.math.distributions.NormalDistribution;
import dr.stats.Regression;
import dr.util.Author;
import dr.util.Citable;
import dr.u... |
package org.x2a.cutter.processor;
import com.sun.source.util.Trees;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.model.JavacElements;
import com.sun.tools.javac.processing.JavacProcessingEnvironment;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.tree.TreeMaker;
import com.sun.... |
package com.thinkaurelius.titan.graphdb;
import com.google.common.collect.Iterables;
import com.thinkaurelius.titan.core.*;
import com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration;
import com.thinkaurelius.titan.graphdb.serializer.SpecialInt;
import com.thinkaurelius.titan.graphdb.serializer.Spe... |
package dr.inference.operators;
import dr.evomodel.continuous.LatentFactorModel;
import dr.inference.distribution.DistributionLikelihood;
import dr.inference.model.MatrixParameter;
import dr.inference.model.Parameter;
import dr.math.distributions.MultivariateNormalDistribution;
import dr.math.distributions.NormalDistri... |
package com.versionone.om.tests;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import org.junit.Assert;
import org.junit.Test;
import com.versionone.DB.DateTime;
import com.versionone.om.Attachment;
import ... |
package dr.inferencexml.model;
import dr.inference.model.ProductStatistic;
import dr.inference.model.Statistic;
import dr.xml.*;
public class ProductStatisticParser extends AbstractXMLObjectParser {
public static String PRODUCT_STATISTIC = "productStatistic";
public static String PRODUCT = "product";
public... |
package org.voltdb;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.... |
package com.xtremelabs.robolectric.shadows;
import android.app.Activity;
import android.view.View;
import android.widget.TabHost;
import android.widget.TabHost.TabContentFactory;
import android.widget.TextView;
import com.xtremelabs.robolectric.WithTestDefaultsRunner;
import org.junit.Test;
import org.junit.runner.RunW... |
package org.voltdb.compiler;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java... |
package org.apache.batik.bridge;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.apache.batik.script.Interpreter;
import org.apache.batik.script.InterpreterException;
import org.apache.batik.script.InterpreterPool;
import org.apache.batik.script.Ja... |
package org.amc.game.chessserver;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
import org.amc.DAOException;
import org.amc.EntityManagerThreadLocal;
import org.amc.User;
import org.amc.... |
package org.jenkinsci.plugins.gitclient;
import org.apache.commons.lang.SystemUtils;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import hudson.Launcher;
import hudson.Util;
import hudson.model.Tas... |
package net.databinder.components;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.... |
package org.owasp.security.logging;
import ch.qos.logback.access.PatternLayoutEncoder;
import ch.qos.logback.core.Appender;
import ch.qos.logback.classic.Level;
import org.junit.Test;
import org.mockito.Mock;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classi... |
package infero.gui.widgets;
import com.google.inject.*;
import com.jeta.forms.components.panel.*;
import com.jeta.forms.gui.form.*;
import infero.gui.action.*;
import infero.gui.domain.*;
import static infero.gui.domain.MemoryUsageModel.Properties.*;
import static infero.gui.domain.SampleBufferModel.Properties.*;
impor... |
package com.novoda.downloadmanager.demo;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import com.novoda.downloadmanager.AllBatchStatusesCallback;
import com.novod... |
package info.limpet.ui.xy_plot;
import info.limpet.ICollection;
import info.limpet.IQuantityCollection;
import info.limpet.IStoreItem;
import info.limpet.ITemporalQuantityCollection;
import info.limpet.data.impl.samples.TemporalLocation;
import info.limpet.data.operations.CollectionComplianceTests;
import info.limpet.d... |
package ee.ria.dhx.server.service;
import com.jcabi.aspects.Loggable;
import ee.ria.dhx.exception.DhxException;
import ee.ria.dhx.exception.DhxExceptionEnum;
import ee.ria.dhx.server.config.DhxServerConfig;
import ee.ria.dhx.server.persistence.entity.Document;
import ee.ria.dhx.server.persistence.entity.Organisation;
i... |
package org.apache.tinkerpop.gremlin.orientdb;
import org.apache.tinkerpop.gremlin.structure.Graph.Features;
import org.apache.tinkerpop.gremlin.structure.Graph.Features.GraphFeatures;
import org.apache.tinkerpop.gremlin.structure.Graph.Features.VariableFeatures;
import org.apache.tinkerpop.gremlin.structure.Graph.Feat... |
package com.yammer.dropwizard.cli;
import com.yammer.dropwizard.AbstractService;
import com.yammer.dropwizard.config.Configuration;
import com.yammer.dropwizard.config.Environment;
import com.yammer.dropwizard.config.LoggingFactory;
import org.apache.commons.cli.CommandLine;
import org.slf4j.Logger;
import org.slf4j.Lo... |
package util.timer;
import util.WaitableThread;
public class Timer extends WaitableThread {
private final long period;
private final TimerTask timerTask;
public Timer(final long period, final TimerTask timerTask) {
this.period = period;
this.timerTask = timerTask;
}
@Override
pub... |
/* @java.file.header */
package org.gridgain.examples.ggfs;
import org.gridgain.grid.*;
import org.gridgain.grid.compute.*;
import org.gridgain.grid.ggfs.*;
import org.gridgain.grid.ggfs.mapreduce.*;
import org.gridgain.grid.ggfs.mapreduce.records.*;
import org.gridgain.grid.product.*;
import java.io.*;
import java.uti... |
package org.icij.extract.redis;
import org.icij.task.Options;
import org.icij.task.annotation.Option;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
/**
* Factory for creating a Redis client.
*
*
*/
@Option(name = "redisAddress", description = "Set the Redis... |
package solver.constraints;
import gnu.trove.map.hash.THashMap;
/**
* <br/>
*
* @author Charles Prud'homme
* @since 21/01/13
*/
public enum Operator {
NONE(-1), EQ(0), LT(1), GT(2), NQ(3), LE(4), GE(5), PL(6), MN(7);
int num;
private Operator(int num) {
this.num = num;
}
static THashMap... |
package edu.umd.cs.findbugs.ba;
import java.util.*;
import org.apache.bcel.classfile.*;
import org.apache.bcel.generic.*;
/**
* Prune a CFG to remove infeasible exception edges.
* In order to determine what kinds of exceptions can be thrown by
* explicit ATHROW instructions, type analysis must first be
* performed ... |
package edu.umd.cs.findbugs.workflow;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
impor... |
package org.broadinstitute.sting.utils;
import net.sf.samtools.SAMUtils;
/**
* QualityUtils is a static class (no instantiation allowed!) with some utility methods for manipulating
* quality scores.
*
* @author Kiran Garimella
*/
public class QualityUtils {
public final static byte MAX_QUAL_SCORE = SAMUtils.MA... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.gde.android;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.List;
import org.netbean... |
package com.github.sparkcaller;
import htsjdk.samtools.*;
import picard.sam.MergeSamFiles;
import scala.Tuple2;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class SAMFileUtils {
public static File mergeBAMFiles(List<File> samFil... |
package io.georocket.index;
import static io.georocket.util.ThrowableHelper.throwableToCode;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import java.util.ServiceLoader;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.commons.... |
package org.ggp.base.player.gamer.statemachine.sample;
import org.ggp.base.apps.player.detail.DetailPanel;
import org.ggp.base.apps.player.detail.SimpleDetailPanel;
import org.ggp.base.player.gamer.exception.GamePreviewException;
import org.ggp.base.player.gamer.statemachine.StateMachineGamer;
import org.ggp.base.util.... |
package com.ostrichemulators.jfxhacc;
import com.ostrichemulators.jfxhacc.cells.PayeeAccountMemoCellFactory;
import com.ostrichemulators.jfxhacc.mapper.MapperException;
import com.ostrichemulators.jfxhacc.model.Account;
import com.ostrichemulators.jfxhacc.model.Journal;
import com.ostrichemulators.jfxhacc.model.Split;
... |
package io.bisq.gui.main.market.offerbook;
import io.bisq.common.UserThread;
import io.bisq.common.locale.CurrencyUtil;
import io.bisq.common.locale.Res;
import io.bisq.common.util.Tuple4;
import io.bisq.core.offer.Offer;
import io.bisq.core.offer.OfferPayload;
import io.bisq.gui.Navigation;
import io.bisq.gui.common.v... |
package br.pl.iJudo.ui;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import androi... |
package verification.timed_state_exploration.zoneProject;
import java.util.Arrays;
import lpn.parser.LhpnFile;
import verification.platu.lpn.LpnTranList;
import verification.platu.project.PrjState;
import verification.platu.stategraph.State;
public class TimedPrjState extends PrjState{
protected Zone[] _zones;
... |
package uk.org.opentrv.test.leafauthenc;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import ja... |
package com.honu.giftwise.data;
import android.database.Cursor;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import java.text.NumberFormat;
import java.util.Currency;
import java.util.Locale;
public class Gift implements Parcelable {
private String name;
private long gi... |
package com.x1unix.avi;
import android.app.SearchManager;
import android.net.Uri;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.support.v7.widget.SearchView;
import andr... |
package org.opencms.gwt.client;
import org.opencms.gwt.client.ui.CmsNotification;
import org.opencms.gwt.client.ui.CmsNotification.Type;
import org.opencms.gwt.client.ui.css.I_CmsLayoutBundle;
import org.opencms.gwt.shared.CmsBroadcastMessage;
import org.opencms.util.CmsStringUtil;
import java.util.List;
import com.goo... |
package gov.nih.nci.nautilus.lookup;
import gov.nih.nci.nautilus.cache.CacheManagerDelegate;
import gov.nih.nci.nautilus.cache.ConvenientCache;
import gov.nih.nci.nautilus.data.AllGeneAlias;
import gov.nih.nci.nautilus.data.CytobandPosition;
import gov.nih.nci.nautilus.data.DiseaseTypeDim;
import gov.nih.nci.nautilus.d... |
package org.opencms.gwt.client.ui;
import org.opencms.gwt.client.ui.css.I_CmsLayoutBundle;
import org.opencms.gwt.client.util.CmsDomUtil;
import org.opencms.gwt.client.util.CmsDomUtil.Method;
import java.util.Map;
import com.google.gwt.dom.client.FormElement;
import com.google.gwt.dom.client.Style.Unit;
import com.goog... |
package gov.nih.nci.ncicb.cadsr.loader.ui;
import gov.nih.nci.ncicb.cadsr.domain.AdminComponent;
import gov.nih.nci.ncicb.cadsr.domain.DataElement;
import gov.nih.nci.ncicb.cadsr.domain.ValueDomain;
import gov.nih.nci.ncicb.cadsr.domain.DomainObjectFactory;
import gov.nih.nci.ncicb.cadsr.domain.ObjectClass;
import gov.... |
package org.chromium.sdk.internal.wip;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.chromium.sdk.Breakpoint;
import org.chromium.sdk.BreakpointTypeExtension;
import org.chromium... |
package xx.com.geowind;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
int ... |
package com.alamkanak.weekview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Region... |
package org.commcare.tasks;
import android.content.Context;
import android.os.AsyncTask;
import net.sqlcipher.database.SQLiteDatabase;
import org.commcare.CommCareApplication;
import org.commcare.activities.SyncCapableCommCareActivity;
import org.commcare.android.database.user.models.FormRecord;
import org.commcare.mod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.