answer stringlengths 17 10.2M |
|---|
package com.hf.resreader;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
impor... |
package com.sinyuk.yuk.data.shot;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.Spanned;
import android.text.TextUtils;
import com.google.gson.annotations.SerializedName;
import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.Default;
import com.litesuits.orm... |
package dateadog.dateadog;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
/**
* This class stores the user's profile information.
*/
public class UserProfile implements Serializable {
private String firstName;
private String lastName;
private String street;
pri... |
package org.wikipedia.util;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.Html;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.SpannedString;
import android.... |
package ui;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import jav... |
package dr.app.seqgen;
import dr.evolution.tree.Tree;
import dr.evolution.tree.NodeRef;
import dr.evolution.datatype.Microsatellite;
import dr.evolution.alignment.Alignment;
import dr.evolution.alignment.Patterns;
import dr.evolution.sequence.Sequence;
import dr.evolution.util.Taxa;
import dr.evomodel.sitemodel.SiteMod... |
package emergencylanding.k.library.main;
import java.util.HashMap;
import emergencylanding.k.library.internalstate.Entity;
import emergencylanding.k.library.lwjgl.render.Render;
import emergencylanding.k.library.util.LUtils;
import emergencylanding.k.library.util.StackTraceInfo;
public abstract class KMain {
privat... |
package test.SRA;
import automata.sra.*;
import automata.sfa.*;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.junit.Test;
import org.sat4j.specs.TimeoutException;
import theory.characters.CharPred;
import theory.characters.StdCharPred;
import theory.intervals.UnaryCharIntervalSolver;
import java.util.... |
package Inventaris;
public class RekapRuang extends Sistem{
public RekapRuang(){
super();
}
@Override
String Review() {
// TODO Auto-generated method stub
Ruangan();
HitungLuasRuang();
HitungRasioRuangan();
AnalisisPdanJ();
AnalisisListrik();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Game;
import Utilities.ImageCollection;
import Utilities.InputAdvance;
import Utilities.KeyBoard;
import Utilities.Mouse;
import Utilities.SoundBatch;
import Utilities.ViewScreen;
import java.awt.Graphics;
import... |
package net.time4j;
import net.time4j.base.MathUtils;
import net.time4j.base.ResourceLoader;
import net.time4j.base.TimeSource;
import net.time4j.base.UnixTime;
import net.time4j.engine.TimeSpan;
import net.time4j.format.NumberSymbolProvider;
import net.time4j.format.NumberSystem;
import net.time4j.format.NumberType;
i... |
package thaumcraft.api;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.blocks.BlocksTC;
import thaumcraft.api.items.ItemsTC;
public class OreDictionaryEntries {
/**
* I included this... |
package watchdogtest;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* Activator for the test plugin.
*/
public class Activator extends AbstractUIPlugin {
/**
* The plug-in ID
*/
public static final String PLUGIN_ID = "WatchDogTest"; //$NON-NLS-1$
/**... |
package jade.domain.mobility;
import jade.util.leap.Iterator;
import jade.util.leap.List;
import jade.util.leap.ArrayList;
import jade.util.leap.Map;
import jade.util.leap.HashMap;
import jade.core.AID;
import jade.core.Location;
import jade.core.ContainerID;
import jade.content.onto.*;
import jade.content.schema.*;
im... |
package common.i18n;
import io.sphere.sdk.models.Base;
import org.apache.commons.lang3.StringUtils;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.error.YAMLException;
import play.Logger;
import javax.annotation.Nullable;
import java.io.InputStream;
import java.util.*;
import static java.util.Collections.emp... |
package com.threerings.gwt.ui;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Widget;
/**
* Extends {@link FlexTable} with a number of extremely useful utility methods.
*/
public class SmartTable extends FlexTable
{
public SmartTable ()
{
}
public SmartTable (int ... |
// Narya library - tools for developing networked games
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should ... |
package org.apache.commons.chain;
import java.io.Serializable;
import java.util.Map;
public interface Context {
/**
* <p>Return an implementation of <code>java.util.Map</code> that
* applications can use to manipulate a general purpose collection
* of key-value pairs that maintain the state informati... |
package jmetest.sound.openal;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.ArrayList;
import java.util.logging.Level;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing... |
package lbms.plugins.mldht.kad;
import static the8472.bencode.Utils.buf2ary;
import java.nio.ByteBuffer;
import java.security.InvalidKeyException;
import java.security.Signature;
import java.security.SignatureException;
import java.util.Map;
import java.util.Optional;
import java.util.TreeMap;
import java.util.concurre... |
package annotators;
import org.apache.uima.UimaContext;
import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.fit.component.JCasAnnotator_ImplBase;
import org.apache.uima.jcas.JCas;
import org.apache.uima.resource.ResourceInitializationException;
import static org.apache.uima.fit... |
package apollo.upload;
import apollo.maven.MavenDeployer;
import apollo.predicators.PomFilePredictor;
import apollo.xml_handlers.XmlReformer;
import com.google.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.IOException;
import java.io.UncheckedIOExcepti... |
package main.java.bschecker.gui;
import java.io.File;
import org.fxmisc.richtext.StyleClassedTextArea;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.ButtonType;
import javafx.scene.control.CheckMenuItem;
import javafx.scene.control.D... |
package com.alibaba.ttl;
import com.alibaba.ttl.spi.TtlEnhanced;
import com.alibaba.ttl.spi.TtlWrapper;
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
import java.util.function.*;
import static com.alibaba.ttl.TransmittableThreadLocal.Transmitter.*;
/**
* Util methods ... |
package com.github.mjvesa.spil;
import javax.servlet.annotation.WebServlet;
import java.lang.StringBuffer;
import java.util.Properties;
import java.net.URL;
import java.nio.file.FileSystems;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.FileNo... |
package com.gmail.nossr50.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Random;
import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
im... |
package com.rampatra.arrays;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* Given an array ar[] of n numbers and
* another number x, determine whether or not there
* exists two elements in ar[] whose sum is exactly x.
*
* @author rampatra
* @since 5/18/15
*/
public class PairSum {... |
package com.twiki.tools;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.twiki.helper.AppStringUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.pdfbox.multipdf.Splitter;
import org.apache.pdfbox.pdmodel.PDDocument;
import java.io.File;
import java.io... |
package com.zandero.rest;
import com.zandero.rest.context.ContextProvider;
import com.zandero.rest.context.ContextProviderFactory;
import com.zandero.rest.data.*;
import com.zandero.rest.exception.*;
import com.zandero.rest.injection.InjectionProvider;
import com.zandero.rest.reader.ReaderFactory;
import com.zandero.re... |
package com.zierfisch.util;
import org.lwjgl.glfw.GLFWCursorPosCallback;
import static org.lwjgl.glfw.GLFW.*;
import org.lwjgl.glfw.GLFW;
public class MousePos extends GLFWCursorPosCallback{
private static double x = 0;
private static double y = 0;
private static double deltaX = 0;
private static double... |
package core.parsers;
import core.genome.Genome;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.TreeMa... |
package cronapi.database;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.pers... |
package cubicchunks.world.cube;
import com.google.common.base.Predicate;
import cubicchunks.CubicChunks;
import cubicchunks.util.AddressTools;
import cubicchunks.util.Coords;
import cubicchunks.util.CubeCoords;
import cubicchunks.world.EntityContainer;
import cubicchunks.world.ICubicWorld;
import cubicchunks.world.IOpa... |
package de.fhws.fiw.pvs.grpc;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.StatusRuntimeException;
import java.util.concurrent.TimeUnit;
public class Client
{
private final ManagedChannel channel;
private final GreeterServiceGrpc.GreeterServiceBlockingStub blockingStub;
... |
package dynamok.source;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.data.SchemaBuilder;
import org.apache.kafka.connect.data.Struct;
import java.util.HashMap;
import java.util.Map;
public enum RecordMapper {
;
privat... |
package soot;
import soot.options.*;
import static java.lang.System.gc;
import static java.lang.System.nanoTime;
/**
* Utility class providing a timer. Used for profiling various phases of
* Sootification.
*/
public class Timer {
private long duration;
private long startTime;
private boolean hasStarted;
... |
package exnihiloadscensio.util;
import java.util.ArrayList;
import java.util.Arrays;
import exnihiloadscensio.texturing.Color;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.entity.item.EntityItem... |
package fxlauncher;
import javafx.application.Application;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import javax.xml.bind.JAXB;
import java.io.ByteArrayOutputStream;
import j... |
package stray;
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.R... |
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.firefox.FirefoxDriver;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.assertThat;
import java.io.File;
public class Upload {
... |
import java.io.*;
import java.util.concurrent.locks.*;
public class SinglePileSandGrid implements Serializable {
protected int[][] gridQuad;
private transient ReentrantLock lock;
private volatile transient boolean toppling;
private static final long serialVersionUID = 8309200284561310866L;
private s... |
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.content.res.... |
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 plugin.google.maps;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import org.apache.cordova.CallbackContext;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import a... |
package model.organization.id;
import java.io.Serializable;
import model.organization.Organization;
/**
* The {@linkplain UniqueId} is class that allows customizable ways for identifying elements of an {@linkplain Organization}.
* <p>
* Implementations of {@linkplain UniqueId} are not required to ensure that instanc... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.stream.IntStream;
import javax.swing.*... |
package net.ossrs.yasea;
import android.content.res.Configuration;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
import android.media.MediaFormat;
import android.media.MediaRecorder;
import a... |
package net.simonvt.menudrawer;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.GradientDrawable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.VelocityTracker;
public class OverlayDrawer extends Dragg... |
package com.joelapenna.foursquared;
import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Environment;
import android.view.Window;
import android.widget.TabHost;
import android.widget.Toast;
/**
* @a... |
package gumtree.spoon.diff;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Optional;
import java.util.stream.Collectors;
import s... |
package hu.bme.mit.spaceship;
/**
* A simple spaceship with two proton torpedos and four lasers
*/
public class GT4500 implements SpaceShip {
private TorpedoStore primaryTorpedoStore;
private TorpedoStore secondaryTorpedoStore;
private boolean wasPrimaryFiredLast = false;
public GT4500() {
this.primaryTorpe... |
package intellimate.izou;
import intellimate.izou.identification.Identifiable;
import intellimate.izou.identification.IdentificationManager;
import intellimate.izou.main.Main;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* The base class for each IzouModule
* @author Leander... |
package javaslang.concurrent;
import javaslang.Value;
import javaslang.collection.Iterator;
import javaslang.collection.List;
import javaslang.collection.Seq;
import javaslang.collection.Stream;
import javaslang.control.*;
import javaslang.control.Try.CheckedRunnable;
import javaslang.control.Try.CheckedSupplier;
impor... |
package kr.jm.utils.helper;
import java.util.*;
import java.util.function.*;
import java.util.stream.Stream;
import static java.util.function.Function.identity;
import static java.util.stream.Collectors.*;
/**
* The Class JMLambda.
*/
public class JMLambda {
/**
* Partition by.
*
* @param <T> ... |
package mcjty.intwheel.gui;
import mcjty.intwheel.InteractionWheel;
import mcjty.intwheel.api.IWheelAction;
import mcjty.intwheel.api.WheelActionElement;
import mcjty.intwheel.input.KeyBindings;
import mcjty.intwheel.network.PacketHandler;
import mcjty.intwheel.network.PacketPerformAction;
import mcjty.intwheel.varia.R... |
package ml.iamwhatiam.tao.ddd;
import java.util.List;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
/**
* DBMS table abstract
*
* @author iMinusMinus... |
package net.folab.finddiff;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
public class FindDiff {
public static... |
package no.seria.istribute.sdk;
import no.seria.istribute.sdk.exception.InvalidResponseException;
import no.seria.istribute.sdk.exception.IstributeErrorException;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.en... |
package nz.co.crookedhill.wyem;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.M... |
package org.basex.query.func;
import java.util.Arrays;
import java.util.Comparator;
import org.basex.query.QueryContext;
import org.basex.query.QueryError;
import org.basex.query.QueryException;
import org.basex.query.expr.DynFunCall;
import org.basex.query.expr.Expr;
import org.basex.query.expr.PartFunApp;
import org.... |
package org.cirdles.topsoil;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javaf... |
package org.databene.commons;
import org.databene.commons.collection.MapEntry;
import org.databene.commons.file.FileByNameFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.MalformedURLException;
import java.net.URL... |
package org.datacite.mds.util;
import java.io.StringWriter;
import java.lang.annotation.Annotation;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import javax.validation.ConstraintValidatorContext;
import javax.validation.ConstraintViol... |
package org.gitlab4j.api.models;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Job {
private Integer id;
private Commit c... |
package org.jtrfp.trcl.core;
import java.awt.Color;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.nio.ByteBuffer;
impor... |
package org.openbmp.handler;
public class Headers {
private String version;
private String collector_hash_id;
private long length;
private long records;
private String router_hash_id;
/**
* Handle the headers by parsing it and storing the data in memory.
*
* @param data
*/
... |
package org.realrest.domain;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDate;
/**
* @author volodymyr.tsukur
*/
@Getter
@Setter
public final class Booking extends Identifiable {
private User user;
private Room room;
private LocalDate from;
private LocalDate to;
private boole... |
package org.rythmengine;
import org.mvel2.MVEL;
import org.mvel2.integration.PropertyHandler;
import org.mvel2.integration.PropertyHandlerFactory;
import org.mvel2.integration.VariableResolverFactory;
import org.rythmengine.conf.RythmConfiguration;
import org.rythmengine.conf.RythmConfigurationKey;
import org.rythmengi... |
package org.tools4j.time.base;
import org.tools4j.time.pack.*;
import org.tools4j.time.validate.DateValidator;
import org.tools4j.time.validate.TimeValidator;
import org.tools4j.time.validate.ValidationMethod;
import java.time.LocalDate;
import java.time.LocalDateTime;
import static org.tools4j.time.base.EpochImpl.divM... |
package org.webbitserver;
import org.webbitserver.netty.NettyWebServer;
import java.net.SocketAddress;
import java.net.URI;
import java.util.concurrent.Executor;
public class WebServers {
/**
* Returns a new {@link WebServer} object, which runs on the provided port.
*
* @param port
* @return {@l... |
package se.lth.cs.connect;
import iot.jcypher.query.JcQueryResult;
import iot.jcypher.query.api.IClause;
import iot.jcypher.query.factories.clause.CREATE;
import iot.jcypher.query.factories.clause.MATCH;
import iot.jcypher.query.factories.clause.NATIVE;
import iot.jcypher.query.factories.clause.RETURN;
import iot.jcyph... |
package uk.bl.wa.blindex;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import org.apache.hadoop.filecache.DistributedCache;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hado... |
// S c o r e T i m e F i x e r //
// Contact author at herve.bitteur@laposte.net to report bugs & suggestions. //
package omr.score.visitor;
import omr.log.Logger;
import omr.score.Score;
import omr.score.entity.Chord;
import omr.score.entity.Measure;
import omr.score.ent... |
package controllers;
import javax.inject.Inject;
import javax.xml.namespace.QName;
import com.fasterxml.jackson.databind.JsonNode;
import com.mysema.query.Tuple;
import com.mysema.query.sql.SQLQuery;
import com.mysema.query.sql.SQLSubQuery;
import com.mysema.query.support.Expressions;
import com.mysema.query.types.Expr... |
package com.gdrivefs.test.cases;
import java.io.IOException;
import java.security.GeneralSecurityException;
import org.junit.Assert;
import org.junit.Test;
import com.gdrivefs.simplecache.File;
import com.gdrivefs.test.util.DriveBuilder;
public class TestCreateFile
{
@Test
public void testTrivial() throws IOExc... |
package com.opera.core.systems;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
public class OperaDriverTest extends TestBase
{
// Replace the TestBase setup and teardown so that we don't launch opera
@BeforeClass
public static void setUpBeforeClass() t... |
package at.sw2017.q_up;
import android.app.Activity;
import android.content.Intent;
import android.media.Rating;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RatingBar;
import android.widget.TextView;
import android.wid... |
package afc.ant.modular;
import junit.framework.TestCase;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Reference;
public class GetModulePathTest extends TestCase
{
private GetModulePath task;
private Project project;
@Override
protect... |
package wyc.builder;
import static wyc.lang.WhileyFile.internalFailure;
import static wyc.lang.WhileyFile.syntaxError;
import static wycc.lang.SyntaxError.internalFailure;
import static wycc.lang.SyntaxError.syntaxError;
import static wyil.util.ErrorMessages.*;
import java.io.IOException;
import java.math.BigDecimal;
i... |
package com.expedia.database;
import com.expedia.test.config.SpringContextTest;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annota... |
package big.marketing.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import org.apache.log4j.Logger;
import big.marketing.data.DataType;
import big.marketing.data.HealthMessage;
import big.marketing.data.Node;
import big.marketing.reader.NetworkRe... |
package fr.jayasoft.ivy.ant;
import java.io.File;
import junit.framework.TestCase;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Delete;
public class IvyReportTest extends TestCase {
private File _cache;
private IvyReport _report;
private Project _project;
protected void setU... |
/* This file is automatically generated. Do not edit. */
package net.runelite.api;
public final class ItemID
{
public static final int DWARF_REMAINS = 0;
public static final int TOOLKIT = 1;
public static final int CANNONBALL = 2;
public static final int NULODIONS_NOTES = 3;
public static final int ... |
package org.jgroups.tests;
import org.jgroups.*;
import org.jgroups.protocols.DUPL;
import org.jgroups.protocols.pbcast.NAKACK;
import org.jgroups.protocols.pbcast.STABLE;
import org.jgroups.stack.ProtocolStack;
import org.jgroups.util.Tuple;
import org.jgroups.util.Util;
import org.testng.annotations.AfterClass;
impor... |
package com.magenta.guice.jpa;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import com.google.inject.AbstractModule;
impo... |
package ai.h2o.automl.collectors;
import hex.tree.DHistogram;
import hex.tree.SharedTreeModel;
import jsr166y.CountedCompleter;
import water.H2O;
import water.MRTask;
import water.MemoryManager;
import water.fvec.Chunk;
import water.util.ArrayUtils;
import water.util.AtomicUtils;
import water.util.Log;
import java.util... |
package water;
import org.eclipse.jetty.client.HttpExchange;
import org.eclipse.jetty.server.handler.HandlerWrapper;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.servlets.ProxyServlet;
import org.eclipse.jetty.util.B64Code;
import org.e... |
package io.github.ihongs.serv.centra;
import io.github.ihongs.combat.CombatHelper;
import io.github.ihongs.combat.anno.Combat;
import java.io.IOException;
import java.io.InputStream;
import java.io.File;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;... |
package org.zstack.identity;
import org.springframework.beans.factory.annotation.Autowired;
import org.zstack.core.Platform;
import org.zstack.core.db.EntityMetadata;
import org.zstack.header.identity.AccountConstant;
import org.zstack.header.identity.SessionInventory;
import org.zstack.header.zql.ASTNode;
import org.z... |
package de.fhg.aisec.ids.api.conm;
/**
* Bean representing an "IDSCP Connection" .
*
* @author Gerd Brost (gerd.brost@aisec.fraunhofer.de)
*
*/
public class IDSCPConnection {
private String endpointIdentifier;
private String lastProtocolState;
public IDSCPConnection() {
}
// TODO JS: Never used... |
package mondrian.test;
import mondrian.olap.*;
import mondrian.resource.MondrianResource;
import mondrian.rolap.*;
import mondrian.spi.Dialect;
import java.sql.*;
import javax.sql.DataSource;
/**
* Test generation of SQL to access the fact table data underlying an MDX
* result set.
*
* @author jhyde
* @since May 1... |
package cpw.mods.fml.client;
import static org.lwjgl.opengl.GL11.*;
import java.awt.image.BufferedImage;
import java.awt.Dimension;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
... |
package cpw.mods.fml.client;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.src.GuiButton;
import net.minecraft.src.Tessellator;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
public abstract class GuiScrollingList
{
private final Minecraft client;
protected fina... |
package io.spine.base;
import com.google.common.annotations.VisibleForTesting;
import com.google.protobuf.Timestamp;
import io.spine.annotation.Internal;
import javax.annotation.concurrent.ThreadSafe;
import java.time.Instant;
import java.time.ZoneId;
import static com.google.common.base.Preconditions.checkNotNull;
imp... |
package jlibs.nblr.rules;
import java.util.*;
/**
* @author Santhosh Kumar T
*/
public class Paths extends ArrayList<Path>{
public final Path owner;
public final int depth;
public Paths(Path owner){
this.owner = owner;
if(owner!=null){
owner.children = this;
depth =... |
package properties.competition;
import static structure.impl.other.Quantification.FORALL;
import properties.Property;
import properties.PropertyMaker;
import properties.papers.DaCapo;
import properties.papers.HasNextQEA;
import structure.intf.Assignment;
import structure.intf.Guard;
import structure.intf.QEA;
import cr... |
package structure.impl;
import monitoring.impl.configs.NonDetConfig;
/**
* This class represents a simple Quantified Event Automaton (QEA) with the
* following characteristics:
* <ul>
* <li>There is at most one quantified variable
* <li>The transitions in the function delta consist of a start state, an event
* an... |
package v2.core;
import io.networkreaders.exceptions.InvalidPolicyTagException;
/**
* The policy interface provides the necessary methods to define a routing policy. Policy must be immutable classes
* otherwise there might be some unexpected behaviour.
*/
public interface Policy {
/**
* Creates a self attri... |
// Dataset.java
package imagej.data;
import imagej.data.event.DatasetChangedEvent;
import imagej.data.event.DatasetCreatedEvent;
import imagej.data.event.DatasetDeletedEvent;
import imagej.event.Events;
import imagej.util.Log;
import imagej.util.Rect;
import net.imglib2.Cursor;
import net.imglib2.RandomAccess;
import n... |
package net.i2p.client;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.concurrent.ConcurrentHashMap;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.