answer stringlengths 17 10.2M |
|---|
package edu.umn.cs.spatialHadoop.mapReduce;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapred.FileSplit;
import org.apache.hadoop.mapred.InputSplit;
public class PairOfFileSplits extends PairWritable<Fil... |
package edu.jhu.thrax.hadoop.tools;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer;
import org.apache.... |
package edu.yalestc.yalepublic.Events;
import android.app.Activity;
import android.app.usage.UsageEvents;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import an... |
package edu.kit.mindstormer.movement;
import edu.kit.mindstormer.Constants;
import edu.kit.mindstormer.sensor.Sensor;
import lejos.hardware.BrickFinder;
import lejos.hardware.motor.EV3LargeRegulatedMotor;
import lejos.hardware.motor.EV3MediumRegulatedMotor;
import lejos.robotics.RegulatedMotor;
import lejos.utility.Del... |
package edu.mit.streamjit.test.apps.fft5;
import com.jeffreybosboom.serviceproviderprocessor.ServiceProvider;
import edu.mit.streamjit.api.CompiledStream;
import edu.mit.streamjit.api.Filter;
import edu.mit.streamjit.api.Input;
import edu.mit.streamjit.api.Output;
import edu.mit.streamjit.api.Pipeline;
import edu.mit.s... |
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.Servo;
/**
* This class rotates the motor in the direction of the target, based on the
* relative location of the target as determined by TargetLocator
*
* @author (Mark Macerato, Team 3167)
* @version (March 2, 2014)
*/
class Motor {
priva... |
package openblocks.common.tileentity;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockCrops;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemDye;
import net.minecraft.item... |
package eu.visualize.ini.convnet;
import java.awt.Color;
import java.awt.Cursor;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
import com.jogamp.opengl.GL2;
import com.jogamp.opengl.GLAutoDrawable;
import java.io.IOException;
import java.util.logging.Level;
import... |
package org.apache.cocoon.components.cron;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Ou... |
package org.apache.xml.security.encryption;
import java.util.Iterator;
import java.util.List;
import java.util.LinkedList;
import org.w3c.dom.Element;
/**
* <code>ReferenceList</code> is an element that contains pointers from a key
* value of an <code>EncryptedKey</code> to items encrypted by that key value
* (<code... |
package org.apdplat.evaluation.impl;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import org.apdplat.evaluation.Evaluation;
import org.apdplat.evaluation.EvaluationResult;
import org.apdplat.evaluation.Segmenter;
import org.wltea.analyzer.core.IKSegmenter;
... |
package org.appwork.swing.exttable.columns;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.reg... |
package io.sento;
public final class SentoFactory {
public static Binding<Object> createBinding(final Class<?> clazz) {
throw new UnsupportedOperationException("This class will never be used in runtime. The real implementation will be generated by sento plugin.");
}
} |
package org.bitbucket.ardimaster.guarddogs;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Wolf;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDeathEv... |
package org.bouncycastle.mail.smime;
import java.io.IOException;
import java.io.OutputStream;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.cert.CertStore;
import java.security.... |
package org.exist.xquery.functions.xmldb;
import org.apache.log4j.Logger;
import org.exist.EXistException;
import org.exist.dom.DocumentSet;
import org.exist.dom.NodeSet;
import org.exist.dom.QName;
import org.exist.xquery.BasicFunction;
import org.exist.xquery.Cardinality;
import org.exist.xquery.FunctionSignature;
im... |
package org.gridlab.gridsphere.tools;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import java.io.*;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import java.util.jar.JarOutputStream;
public cl... |
package org.irmacard.cardemu.selfenrol.mno;
import android.os.AsyncTask;
import android.util.Log;
import net.sf.scuba.smartcards.CardServiceException;
import org.irmacard.credentials.Attributes;
import org.irmacard.credentials.idemix.IdemixCredentials;
import org.irmacard.credentials.idemix.info.IdemixKeyStore;
import ... |
package foam.nanos.crunch;
import foam.core.FObject;
import foam.core.X;
import foam.dao.ArraySink;
import foam.dao.DAO;
import foam.mlang.predicate.Predicate;
import foam.nanos.auth.Subject;
import foam.nanos.auth.User;
import foam.nanos.logger.Logger;
import java.util.ArrayDeque;
import java.util.ArrayList;
import ja... |
package org.kwstudios.play.ragemode.gameLogic;
import java.util.HashMap;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.kwstudios.play.ragemode.scoreboard.ScoreBoard;
import org.kwstudios.play.ragemode.scoreboard.ScoreBoardHolder;
import org.kws... |
// ZAP: 2011/08/30 Support for scanner levels
// ZAP: 2012/01/02 Separate param and attack
// ZAP: 2012/03/03 Added getLevel(boolean incDefault)
// ZAP: 2102/03/15 Changed the type of the parameter "sb" of the method matchBodyPattern to
// StringBuilder.
// ZAP: 2012/04/25 Added @Override annotation to all appropriate ... |
package org.pentaho.di.trans.steps.excelinput;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;
import jxl.BooleanCell;
import jxl.Cell;
import jxl.CellType;
import jxl.DateCell;
import jxl.LabelCell;
import jxl.NumberCell;
import jxl.Sheet... |
package gov.nih.nci.caintegrator.application.zip;
import java.io.File;
import java.util.List;
import org.apache.log4j.Logger;
/**
* @author Prashant Shah - NCICB/SAIC
*
* A wrapper class around the ZipFiles Class. Also provides the zip status value for the AJAX code
*/
@SuppressWarnings("unused")
public class ZipM... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package io.core9.plugin.server.vertx;
import io.core9.plugin.server.Cookie;
import io.core9.plugin.server.request.Response;
import io.core9.plugin.template.TemplateEngine;
import io.netty.handler.codec.http.ServerCookieEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.uti... |
package functionalTests.filetransfer;
import java.io.File;
import org.apache.log4j.Logger;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.objectweb.proactive.ProActive;
import org.objectweb.proactive.core.config.ProActiveConfiguration;
import org.objectweb.pr... |
package pitt.search.semanticvectors.vectors;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
import java.util.logging.Logger;
import org.apache.lucene.store.IndexInput;
import org.apache.lucene.store.IndexOutput;
import org.apache.lucene.util.OpenBitSet;
/**
* Binary implementation of ... |
package pitt.search.semanticvectors.vectors;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
import java.util.logging.Logger;
import org.apache.lucene.store.IndexInput;
import org.apache.lucene.store.IndexOutput;
import org.apache.lucene.util.OpenBitSet;
import pitt.search.semanticvecto... |
package ginger.connexus.activity;
import ginger.connexus.R;
import ginger.connexus.util.AccountUtils;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import andro... |
package br.ufrj.cos.redes.fileAccess;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import br.ufrj.cos.redes.constant.Constants;
public class RandomFileChunkRetrieve... |
// samskivert library - useful routines for java programs
// 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 shoul... |
package com.android.email.mail.transport;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import javax.net.ssl.SSLContext;... |
// Inner class for a Namespace node.
package org.jaxen.dom;
import org.jaxen.pattern.Pattern;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
* Extension DOM2 node type for a Namespace Declaration.
*
* <p>This cl... |
package com.ecyrd.jspwiki.providers;
import java.util.Properties;
import java.util.Collection;
import java.util.Date;
import java.util.ArrayList;
import java.util.List;
import java.util.Iterator;
import java.io.IOException;
import java.io.InputStream;
import org.apache.log4j.Logger;
import com.opensymphony.module.oscac... |
package org.concord.otrunk.view;
import java.awt.AWTEvent;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.... |
package com.jcwhatever.nucleus.utils.reflection;
import com.jcwhatever.nucleus.utils.CollectionUtils;
import com.jcwhatever.nucleus.utils.PreCon;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Co... |
package com.kirbybanman.travelclaimer;
import com.kirbybanman.travelclaimer.R;
import com.kirbybanman.travelclaimer.R.id;
import com.kirbybanman.travelclaimer.R.layout;
import com.kirbybanman.travelclaimer.R.menu;
import com.kirbybanman.travelclaimer.core.TravelClaimerActivity;
import com.kirbybanman.travelclaimer.mode... |
package com.programmerdan.minecraft.contraptions;
import com.programmerdan.minecraft.contraptions.commands.CommandHandler;
import java.util.logging.Logger;
import org.bukkit.plugin.java.JavaPlugin;
import vg.civcraft.mc.civmodcore.ACivMod;
/**
* <p>The server side technology mod to end all server side technology mods.... |
package com.vaadin.tests.components.combobox;
import com.vaadin.data.Item;
import com.vaadin.terminal.Resource;
import com.vaadin.terminal.ThemeResource;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.ComboBox;
public class ComboBoxItemIcon extends TestBase {
@Override
protected Integer getTi... |
package org.apache.hadoop.raid;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;
import java.util.HashMap;
import java.util.*;
//import java.util.Collections;
import org... |
// This file is part of the OpenNMS(R) Application.
// OpenNMS(R) is a derivative work, containing both original code, included code and modified
// and included code are below.
// OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
// This program is free software; you can redistribute it and/or modify
// ... |
/** @file Brain.java
* Player agent's central logic and memory center.
*
* @author Team F(utility)
*/
package futility;
import java.util.ArrayDeque;
import java.util.HashMap;
import java.util.LinkedList;
/**
* This class contains the player's sensory data parsing and strategy computation algorithms.
*/
public cla... |
package net.sf.picard.illumina;
import net.sf.picard.illumina.parser.*;
import net.sf.picard.util.IlluminaUtil;
import net.sf.picard.util.Log;
import net.sf.picard.util.TabbedTextFileWithHeaderParser;
import net.sf.picard.PicardException;
import net.sf.picard.cmdline.CommandLineProgram;
import net.sf.picard.cmdline.Opt... |
package ch.ethz.scu.obit.at;
import javax.swing.JOptionPane;
import ch.ethz.scu.obit.at.gui.AnnotationToolWindow;
import ch.ethz.scu.obit.common.settings.GlobalSettingsManager;
/**
* AnnotationTool is an application to drive the import of data from the
* acquisition stations into openBIS.
* @author Aaron Ponti
*/
p... |
package team2.inventory.controller;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.Map;
import team2.inventory.model.Company;
import team2.inventory.model.Item;
import team2.invento... |
package org.apache.commons.collections;
import java.util.Comparator;
import org.apache.commons.collections.comparators.ComparableComparator;
import org.apache.commons.collections.comparators.ReverseComparator;
import org.apache.commons.collections.comparators.NullComparator;
import org.apache.commons.collections.compar... |
package app.update;
import app.util.*;
import spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.*;
import com.heroku.sdk.jdbc.DatabaseUrl;
public class UpdateController {
privat... |
package test.beast.evolution.likelihood;
import beast.evolution.alignment.Alignment;
import beast.evolution.alignment.CodonAlignment;
import beast.evolution.alignment.Sequence;
import beast.evolution.likelihood.TreeLikelihood;
import beast.evolution.sitemodel.SiteModel;
import beast.evolution.tree.Tree;
import beast.li... |
package com.dd.beaconscanner;
import er.extensions.eof.ERXKey;
public class Beacon implements HealthItem, BeaconItem{
public static final ERXKey<String> LOCATION = new ERXKey<String>("location");
public static final ERXKey<String> UUID = new ERXKey<String>("uuid");
public static final ERXKey<Integer> MAJOR ... |
package backend.resource;
import backend.IssueMetadata;
import backend.interfaces.IModel;
import prefs.Preferences;
import java.time.LocalDateTime;
import java.util.*;
import java.util.function.Predicate;
import java.util.stream.Collectors;
/**
* Thread-safe. The only top-level state in the application.
*/
@SuppressW... |
/**
* Registers a DownloadReceiver and waits for all Downloads
* to complete, then stops
* */
package de.danoeh.antennapod.service.download;
import java.io.File;
import java.io.IOException;
import java.lang.Thread.UncaughtExceptionHandler;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
imp... |
package backend.stub;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.*;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.ImmutableTriple;
import org.eclipse.egit.github.core.Comment;
import org.eclipse.egit.github.core.User;
import backend.IssueMe... |
package com.github.webdriverextensions;
import static com.github.webdriverextensions.Bot.*;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasItem;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
im... |
package com.everypay.everypay;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Pair;
import android.view.View;
import android.widget.Button;
import android.widget... |
import javafx.application.Application;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.geometry.Point2D;
import javafx.scene.Scene;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.GridPane;
import javafx.scene.paint.Paint;
import javafx.... |
package edu.umd.cs.findbugs.detect;
import org.apache.bcel.classfile.Code;
import org.apache.bcel.classfile.ConstantNameAndType;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Method;
import edu.umd.cs.findbugs.BugInstance;
import edu.umd.cs.findbugs.BugReporter;
import edu.umd.cs.findbugs... |
package de.geeksfactory.opacclient.frontend;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import org.json.JSONException;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
imp... |
package com.bio4j.model;
import com.bio4j.angulillos.*;
import com.bio4j.angulillos.Arity.*;
public final class ENZYMEGraph<V,E> extends TypedGraph<ENZYMEGraph<V,E>,V,E> {
public ENZYMEGraph(UntypedGraph<V,E> graph) { super(graph); }
@Override
public final ENZYMEGraph<V,E> self() { return this; }
/*
## Enzy... |
package com.j256.ormlite.stmt;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.Serializable;
import java.sql.SQLException;
import java.uti... |
package com.expidev.gcmapp.db;
import android.content.ContentValues;
import android.database.Cursor;
import android.support.annotation.NonNull;
import com.expidev.gcmapp.model.Church;
public class ChurchMapper extends BaseMapper<Church> {
@Override
protected void mapField(@NonNull final ContentValues values, @N... |
package edu.umd.cs.findbugs.util;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JOptionPane;
import edu.umd.cs.findbugs.annotations.CheckForNull;
/**
* @author pugh
*/
public class JavaWebStart {
... |
package mobi.hsz.idea.gitignore.ui;
import com.intellij.icons.AllIcons;
import com.intellij.ide.CommonActionsManager;
import com.intellij.ide.DefaultTreeExpander;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.command.CommandProcessor;... |
package org.jdesktop.swingx.painter.effects;
import java.awt.Graphics2D;
import java.awt.Shape;
/**
* An effect which works on AbstractPathPainters or any thing else which can provide a shape to be drawn.
* @author joshy
*/
public interface AreaEffect {
/*
* Applies the shape effect. This effect will be dra... |
package dk.netarkivet.harvester.datamodel;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import dk.netarkivet.common.exceptions.ArgumentNotValid;
import dk.netarkivet.common.exceptions.PermissionDenied;
... |
package com.codeski.fixchat;
public class FixChat {
public enum Achievements {
ACQUIRE_IRON("Acquire Hardware"),
BAKE_CAKE("The Lie"),
BOOKCASE("Librarian"),
BREED_COW("Repopulation"),
BREW_POTION("Local Brewery"),
BUILD_BETTER_PICKAXE("Getting an Upgrade"),
B... |
package me.footlights.core;
import java.io.*;
import java.util.*;
import java.util.Map.Entry;
import java.util.logging.Logger;
import me.footlights.core.crypto.Keychain;
import me.footlights.core.plugin.*;
public class Core implements Footlights, KernelInterface
{
public Core()
{
String configDirName = ... |
package fr.umlv.ninal.interpreter;
import java.io.IOException;
import java.math.BigInteger;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import com.oracle.truffle.api.Arguments;
import com.oracle.truffle.api.CallTarget;
import com.oracle.truffle.api.ExactMath;
import com.oracle.truff... |
package net.domesdaybook.parser.tree;
/**
* This enumeration defines the types of nodes which can appear in a {@link ParseTree}
*
* @author Matt Palmer
*/
public enum ParseTreeType {
// Value-specifying leaf node types //
// Have a well defined value, and no children //
BYTE("A single byte v... |
package dr.evomodel.continuous.hmc;
import dr.evolution.tree.Tree;
import dr.evolution.tree.TreeTrait;
import dr.evomodel.treedatalikelihood.DataLikelihoodDelegate;
import dr.evomodel.treedatalikelihood.TreeDataLikelihood;
import dr.evomodel.treedatalikelihood.continuous.ContinuousDataLikelihoodDelegate;
import dr.evom... |
package com.sri.ai.test.praise;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.Before;
import com.sri.ai.brewer.BrewerConfiguration;
import com.sri.ai.brewer.api.Grammar;
import com.sri.ai.brewer.api.Parser;
import com.sri.ai.expresso.api.Expression;
import com.sri.ai... |
package com.mamewo.malarm24;
/**
* @author Takashi Masuyama <mamewotoko@gmail.com>
*/
import android.app.Activity;
import android.app.AlarmManager;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import ... |
package net.patrykczarnik.vp.out;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import net.patrykczarnik.ffmpeg.FFFilter;
import net.patrykczarnik.ffmpeg.FFFilt... |
package net.domesdaybook.parser.tree.node;
import java.util.Collections;
import java.util.List;
import net.domesdaybook.parser.ParseException;
import net.domesdaybook.parser.tree.ParseTree;
import net.domesdaybook.parser.tree.ParseTreeType;
public class BaseNode implements ParseTree {
private final ParseTreeType type... |
package hex;
import hex.glm.GLM2.Source;
import hex.glm.GLMParams.Link;
import org.junit.Assert;
import static junit.framework.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import hex.FrameTask.DataInfo;
import hex.glm.*;
import hex.glm.GLMParams.Family;
import org.junit.Test;
import water.*;
import w... |
package com.mikepenz.unsplash.models;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Image implements Serializable {
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
private String color;
private String image_src;
privat... |
package com.google.maps.android.utils.demo.model;
import com.google.android.gms.maps.model.LatLng;
import com.google.maps.android.clustering.ClusterItem;
public class MyItem implements ClusterItem {
private final LatLng mPosition;
public MyItem(double lat, double lng) {
mPosition = new LatLng(lat, lng);... |
package org.jetel.ctl;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
import java.math.RoundingMode;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
i... |
package com.cube.storm.ui.view;
import com.cube.storm.ui.model.Model;
import com.cube.storm.ui.view.holder.ViewHolderController;
import com.cube.storm.ui.view.holder.grid.GridItemHolder;
import com.cube.storm.ui.view.holder.grid.ImageGridItemHolder;
import com.cube.storm.ui.view.holder.grid.StandardGridItemHolder;
impo... |
package fr.lip6.jkernelmachines.util.algebra;
/**
* This class provides level 1 (vector) basic linear algebra operations.
* @author picard
*
*/
public class VectorOperations {
/**
* Performs a linear combination of 2 vectors and store the result in a newly allocated array C:
* C = A + lambda * B
... |
package edu.depaul.armada.dao;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.te... |
package com.skligys.cardboardcreeper;
import android.content.res.Resources;
import android.opengl.Matrix;
import android.os.SystemClock;
import android.util.Log;
import com.skligys.cardboardcreeper.model.Block;
import com.skligys.cardboardcreeper.model.Chunk;
import com.skligys.cardboardcreeper.model.Point3;
import com... |
package org.smoothbuild.testing;
import static org.smoothbuild.SmoothConstants.CHARSET;
import static org.smoothbuild.lang.base.Location.unknownLocation;
import static org.smoothbuild.util.Lists.list;
import java.io.IOException;
import org.smoothbuild.db.hashed.HashedDb;
import org.smoothbuild.db.outputs.OutputDb;
impo... |
package net.ichigotake.yancha.login;
import net.ichigotake.yancha.R;
import net.ichigotake.yancha.chat.ChatFragment;
import net.ichigotake.yancha.data.User;
import net.ichigotake.yancha.net.YanchaAuth;
import net.ichigotake.yancha.ui.FragmentTransit;
import net.ichigotake.yancha.ui.ViewContainer;
import android.support... |
package org.kitchenstudio.entity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistenc... |
package agaricus.mods.highlighttips;
import cpw.mods.fml.client.registry.KeyBindingRegistry;
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.TickType;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.co... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package homesoil;
import com.google.common.base.*;
import com.google.common.collect.*;
import java.util.*;
import org.bukkit.*;
import org.bukkit.block.*;
import org.bukkit.event.*;
import org.bukkit.event.world.*;
impor... |
package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import com.fasterxml.uuid.EthernetAddress;
import com.... |
package org.voltdb.messaging;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import org.voltcore.messaging.Subject;
import org.voltcore.messaging.VoltMessage;
import org.voltcore.utils.MiscUtils;
import org.voltdb.VoltTable;
import org.voltdb.exceptions.SerializableException;
/**
*... |
package edu.harvard.iq.dataverse.api;
import com.jayway.restassured.RestAssured;
import com.jayway.restassured.path.json.JsonPath;
import com.jayway.restassured.response.Response;
import java.io.File;
import java.util.Arrays;
import java.util.logging.Logger;
import static javax.ws.rs.core.Response.Status.CREATED;
impor... |
package com.x1unix.avi;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v7.app.ActionBar;
import a... |
package com.dtcc.csc.jrparks.final_project;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
/**
* @author jrparks
*
*/
public class Game {
private static final String ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
private static ... |
package net.java.sip.communicator.service.gui;
import java.awt.event.*;
import java.util.*;
import javax.swing.event.*;
import javax.swing.text.*;
import net.java.sip.communicator.service.gui.event.*;
/**
* The <tt>Chat</tt> interface is meant to be implemented by the GUI component
* class representing a chat. Throug... |
package au.com.sealink.printing.utils;
import au.com.sealink.printing.ticket_printer.TicketElement;
import au.com.sealink.printing.ticket_printer.printables.PrintableElement;
import org.apache.commons.codec.binary.Base64;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputSt... |
package housing;
import agent.Agent;
import housing.gui.ResidentGui;
import housing.interfaces.Resident;
import housing.test.mock.EventLog;
import housing.test.mock.LoggedEvent;
import java.util.*;
import java.util.concurrent.Semaphore;
/**
* Housing renter agent.
*/
public class ResidentAgent extends Agent implement... |
package router.client;
import com.google.gwt.core.client.EntryPoint;
import elemental2.Element;
import elemental2.Global;
import java.util.Objects;
public final class Router
implements EntryPoint
{
private RouteManager _routeManager;
private void route2( final Object element, final String string )
{
( (Elem... |
package com.gistlabs.mechanize;
import static com.gistlabs.mechanize.query.QueryBuilder.byIdOrClass;
import static com.gistlabs.mechanize.query.QueryBuilder.byIdOrClassOrName;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import jav... |
package me.itszooti.geojson;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.google.gso... |
package de.ironjan.mensaupb.menus_ui;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.support.v4.view.PagerTabStrip;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBar;
import android.suppo... |
package net.md_5.bungee;
import com.google.common.base.Preconditions;
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;
import io.netty.channel.Channel;
import java.util.Objects;
import java.util.Queue;
import lombok.RequiredArgsConstructor;
import net.md_5.bungee.api.ChatColor;
... |
package com.btr.proxy.search.browser;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import org.junit.Test;
import com.btr.proxy.TestUtil;
import com.btr.proxy.search.browser.ie.IELoca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.