answer stringlengths 17 10.2M |
|---|
package org.exist.xquery;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
import org.exist.dom.ContextItem;
import org.exist.dom.DocumentImpl;
import org.exist.dom.DocumentSet;
import org.exist.dom.ExtArrayNodeSet;
import org.exist.dom.NodeProxy;
import org.exist.dom.NodeSet;
import org.exist... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package org.inceptus;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.... |
// $Id: SIZE.java,v 1.4 2003/12/27 00:17:10 belaban Exp $
package org.jgroups.protocols;
import org.jgroups.Event;
import org.jgroups.Message;
import org.jgroups.log.Trace;
import org.jgroups.stack.Protocol;
import java.io.ByteArrayOutputStream;
import java.io.ObjectOutputStream;
import java.util.Properties;
import jav... |
package org.jgroups.stack;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.Event;
import java.util.Map;
import java.util.Properties;
import java.util.Vector;
/**
* The Protocol class provides a set of common services for protocol layers. Each layer has to
* be a... |
package org.mit.jstreamit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* TODO: pipelines are not compile-time type-safe!
*
* Programmers building a stream graph can either create instances of Pipeline
* for one-off pipelines, or create subclasses of Pipeline that create and pass
... |
package org.pentaho.di.job;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.vfs.FileName;
import org.apache.commons.vfs.FileObject;
import org.eclipse.core.runtime.IProgressMonitor;
import org.pentaho.di.core.CheckResu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.util;
import java.lang.reflect.Type;
import java.lang.reflect.*;
import java.util.*;
import org.redkale.asm.*;
import static org.redkale.asm.ClassWriter.COMPUTE_FRAMES;
import static org.redkale.asm.O... |
package org.sugr.gearshift;
import java.text.DecimalFormat;
import org.sugr.gearshift.TransmissionSessionManager.Exclude;
import android.content.Context;
import android.text.Html;
import android.text.Spanned;
import com.google.gson.annotations.SerializedName;
public class Torrent {
@SerializedName("id") private int... |
package net.malisis.core.util;
import net.malisis.core.client.gui.MalisisGui;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
/**
* @author Ordinastie
*
*/
public class TileEntityUtils
{
@SideOnly(S... |
package org.jasig.portal;
import java.io.*;
import java.util.*;
import java.lang.SecurityManager;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.*;
import javax.servlet.http.*;
import java.security.AccessController;
import org.jasig.portal.services.LogService;
import or... |
package urteam;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import urteam.community.*;
import urteam.event.*;
im... |
package org.pentaho.di.core.database;
import java.io.StringReader;
import java.sql.BatchUpdateException;
import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ParameterMetaData;
import java.sql.PreparedStatem... |
package mm.da;
import java.sql.SQLException;
import java.util.ArrayList;
import mm.model.Pair;
import mm.model.User;
import mm.model.User.userType;
public interface DataInterface {
public User login(String email) throws SQLException;
public boolean updateUserInfo(User user) throws SQLException;
public boole... |
package org.ms2ms.utils;
import com.compomics.util.io.FilenameExtensionFilter;
import com.google.common.base.Optional;
import com.google.common.collect.*;
import com.google.gson.stream.JsonReader;
import com.hfg.util.collection.BiHashMap;
import org.apache.commons.io.filefilter.WildcardFileFilter;
import org.ms2ms.Disp... |
package JavaProject;
import epic.sequences.SemiCRF;
import epic.sequences.SemiConllNerPipeline;
import org.apache.commons.lang3.SystemUtils;
import org.apache.commons.lang3.math.NumberUtils;
import java.io.*;
import java.nio.channels.FileChannel;
import java.util.*;
public class InformationDensity {
public static v... |
package problems;
public class MaximumGap {
class Bucket {
int min, max;
Bucket(int t) {
min = max = t;
}
public void add(int t) {
min = Math.min(min, t);
max = Math.max(max, t);
}
}
public int maximumGap(int[] num) {
if (nu... |
package pt.inescid.gsd;
import com.sun.rowset.internal.Row;
public class Main {
public static void main(String[] args) {
// write your code here
test_broad_graph();
}
public static void test_broad_graph(){
long startTime = System.currentTimeMillis();
QueueScheduler q = new QueueS... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.colar.netbeans.fan.indexer;
import fan.sys.Buf;
import fan.sys.FanObj;
import fan.sys.Pod;
import fan.sys.Slot;
import fan.sys.Type;
import fanx.fcode.FConst;
import fanx.fcode.FField;
import fanx.fcode.FMeth... |
package openblocks.common.entity;
import java.util.WeakHashMap;
import openblocks.OpenBlocks;
import com.google.common.io.ByteArrayDataInput;
import com.google.common.io.ByteArrayDataOutput;
import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
import net.minecraft.entity.Entity;
import net.minecraft.entity.p... |
package org.TexasTorque.TexasTorque2013;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.Watchdog;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.TexasTorque.TexasTorque2013.autonomous.AutonomousManager;
import org.TexasTorque.TexasTo... |
package org.antlr.stringtemplate.language;
import antlr.RecognitionException;
import antlr.collections.AST;
import org.antlr.stringtemplate.AttributeRenderer;
import org.antlr.stringtemplate.StringTemplate;
import org.antlr.stringtemplate.StringTemplateGroup;
import org.antlr.stringtemplate.StringTemplateWriter;
import... |
package org.bouncycastle.crypto.engines;
import org.bouncycastle.crypto.BlockCipher;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.DataLengthException;
import org.bouncycastle.crypto.params.KeyParameter;
/**
* a class that provides a basic DES engine.
*/
public class DESEngine
im... |
package org.bouncycastle.crypto.modes.gcm;
import org.bouncycastle.crypto.util.Pack;
import org.bouncycastle.util.Arrays;
abstract class GCMUtil
{
static byte[] oneAsBytes()
{
byte[] tmp = new byte[16];
tmp[0] = (byte)0x80;
return tmp;
}
static int[] oneAsInts()
{
int... |
package org.exist.xquery.functions;
import org.exist.dom.ExtArrayNodeSet;
import org.exist.dom.NodeSet;
import org.exist.dom.QName;
import org.exist.xquery.*;
import org.exist.xquery.value.DoubleValue;
import org.exist.xquery.value.FunctionParameterSequenceType;
import org.exist.xquery.value.FunctionReturnSequenceType;... |
package algorithms.imageProcessing;
import algorithms.imageProcessing.Sky.SkyObject;
import algorithms.imageProcessing.features.mser.Canonicalizer;
import algorithms.imageProcessing.features.mser.Canonicalizer.RegionGeometry;
import algorithms.imageProcessing.features.mser.EllipseHelper;
import algorithms.imageProcessi... |
package org.opencms.file.types;
import org.opencms.configuration.CmsConfigurationException;
import org.opencms.db.CmsSecurityManager;
import org.opencms.file.CmsFile;
import org.opencms.file.CmsObject;
import org.opencms.i18n.CmsEncoder;
import org.opencms.i18n.CmsLocaleManager;
import org.opencms.jsp.util.CmsJspLinkMa... |
package org.opencms.workplace;
import org.opencms.configuration.CmsDefaultUserSettings;
import org.opencms.db.CmsExportPoint;
import org.opencms.db.CmsUserSettings;
import org.opencms.db.I_CmsProjectDriver;
import org.opencms.file.CmsFolder;
import org.opencms.file.CmsObject;
import org.opencms.file.CmsProject;
import ... |
// FILE NAME: Hardware.java (Team 339 - Kilroy)
// ABSTRACT:
// This file contains all of the global definitions for the
// hardware objects in the system
// Team 339.
package org.usfirst.frc.team339.Hardware;
import org.usfirst.frc.team339.HardwareInterfaces.DoubleThrowSwitch;
import org.usfirst.frc.team339.HardwareIn... |
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 ca.patricklam.judodb.client;
import java.text.ParseException;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.cli... |
package ch.mlutz.plugins.t4e.index;
/**
* A class to that stores and serializes relations between different files
* making up a Tapestry 4 web application. Any logic generating these relations
* is the responsibility of different, more higher-level classes.
*
* @author Marcel Lutz
* @version 1.0 27.01.2014
*/
im... |
package ch.unizh.ini.jaer.projects.minliu;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.beans.PropertyChangeEvent;
import java.util.Arrays;
import java.util.O... |
package uk.co.alynn.games.suchrobot;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteB... |
package com.backendless.rt.data;
import com.backendless.rt.RTCallback;
import com.backendless.rt.RTSubscription;
import com.backendless.rt.SubscriptionNames;
class DataSubscription extends RTSubscription
{
DataSubscription( RTDataEvents rtDataEvent, String tableName, RTCallback callback )
{
super( SubscriptionN... |
package com.dmdirc.addons.parser_twitter;
import com.dmdirc.addons.parser_twitter.api.TwitterAPI;
import com.dmdirc.addons.parser_twitter.api.TwitterErrorHandler;
import com.dmdirc.addons.parser_twitter.api.TwitterException;
import com.dmdirc.addons.parser_twitter.api.TwitterMessage;
import com.dmdirc.addons.parser_twi... |
package radlab.rain.workload.rubis;
import java.util.Arrays;
import java.util.Calendar;
import java.util.logging.Logger;
import java.util.Random;
import org.apache.http.HttpStatus;
import org.json.JSONObject;
import org.json.JSONException;
import radlab.rain.Generator;
import radlab.rain.LoadProfile;
import radlab.rain... |
package org.eclipse.imp.pdb.facts.util;
import java.util.*;
public abstract class AbstractSpecialisedImmutableMap<K, V> implements ImmutableMap<K,V> {
@SuppressWarnings("rawtypes")
private static ImmutableMap EMPTY_MAP = new Map0();
@SuppressWarnings("unchecked")
public static <K, V> ImmutableMap<K, V>... |
package com.fsck.k9.fragment;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.EnumMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;
import android.app.Activity;
import android.... |
package org.voltdb;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Collections;
import ... |
package com.fsck.k9.fragment;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util... |
package org.jetbrains.plugins.scala.config;
import com.intellij.util.PathUtil;
/**
* @author ilyas
*/
public class ScalaLibrariesConfiguration {
public ScalaLibrariesConfiguration() {
if (myScalaSdkJarPaths == null ||"".equals(myScalaSdkJarPaths[0])) {
myScalaSdkJarPaths = new String[] {PathUtil.getJarPat... |
package smartsockets.virtual;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.BindException;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iter... |
package com.jakewharton.snakewallpaper;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.os.Handler;
import android.service.wallpaper.WallpaperService;
import android.util.Log;
import android.view.MotionEvent;
... |
package rtc.pa.create;
import java.io.IOException;
import java.net.URI;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import ... |
package com.mmtechco.surface.ui;
import com.mmtechco.surface.ui.component.LockButtonField;
import com.mmtechco.surface.ui.container.EvenlySpacedHorizontalFieldManager;
import com.mmtechco.surface.ui.container.EvenlySpacedVerticalFieldManager;
import com.mmtechco.util.Logger;
import com.mmtechco.util.ToolsBB;
import net... |
package com.diogonunes.jcdp.tests.unit;
import com.diogonunes.jcdp.color.api.Ansi;
import com.diogonunes.jcdp.color.impl.WindowsColoredPrinter;
import helpers.DataGenerator;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
im... |
package com.opencms.flex.jsp;
import com.opencms.file.CmsObject;
import com.opencms.file.CmsRequestContext;
import com.opencms.flex.cache.CmsFlexRequest;
import com.opencms.flex.cache.CmsFlexResponse;
import com.opencms.flex.util.CmsMessages;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.http.Ht... |
// $Id: TestClient.java,v 1.9 2001/12/17 03:36:36 mdb Exp $
package com.threerings.whirled;
import com.samskivert.util.Config;
import com.samskivert.util.Queue;
import com.threerings.presents.client.*;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.net.*;
import com.threerings.crowd.... |
package genepi.imputationserver.steps;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import genepi.hadoop.HdfsUtil;
import genepi.hadoop.common.Wor... |
package com.reason.merlin;
import com.fasterxml.jackson.databind.JsonNode;
import com.intellij.notification.NotificationType;
import com.intellij.notification.Notifications;
import com.reason.Platform;
import com.reason.ide.RmlNotification;
import com.reason.merlin.types.*;
import org.jetbrains.annotations.NotNull;
imp... |
package com.nerodesk.om.aws;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.jcabi.aspects.Tv;
import com.jcabi.s3.Bucket;
import com.jcabi.s3.Ocket;
import com.jcabi.s3.mock.MkBucket;
import com.nerodesk.om.Docs;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
impor... |
package com.simplenote.android.ui;
import java.util.HashMap;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.BaseColumns;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInf... |
package com.kii.thingif;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Pair;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.suppor... |
package integration;
import com.codeborne.selenide.Configuration;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Point;
import static com.codeborne.selenide.Selenide.close;
import static com.codeborne.selenide.Selenide.open;
import static com.codeborne.selenide.WebDri... |
package org.openmrs.api;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.openmrs.Allergies;
import org.openmrs.Allergy;
import org.openmrs.Concept;
import org.openmrs.Location;
import org.openmrs.Patient;
import org.openmrs.PatientIdentifier;
import org.openmrs.PatientIdentifierTyp... |
package org.commcare.suite.model;
import org.javarosa.core.util.externalizable.DeserializationException;
import org.javarosa.core.util.externalizable.ExtUtil;
import org.javarosa.core.util.externalizable.ExtWrapMap;
import org.javarosa.core.util.externalizable.ExtWrapMapPoly;
import org.javarosa.core.util.externalizabl... |
package me.kaes3kuch3n.lwjgltest.entities;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.util.vector.Vector3f;
public class Camera {
private float distanceFromPlayer = 50;
private float angleAroundPlayer = 0;
private Vector3f position = new Vector3f(100, 35, 50);
privat... |
package org.mitre.synthea.modules;
import org.junit.Before;
import org.junit.Test;
import org.mitre.synthea.world.agents.Person;
import org.mitre.synthea.world.concepts.HealthRecord;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import static org.junit.Assert.*;
public class GrowthDataErro... |
package com.zms.zpc.emulator.assembler;
import com.zms.zpc.support.*;
import java.io.*;
import java.util.*;
public class Assembler {
static {
Init();
}
public static Map<String, Collection<InstruData>> InstruMap;
public static Map<String, RegData> RegMap;
private static void _add(Map<String,... |
package org.realityforge.gwt.websockets.client;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
import org.realityforge.gwt.websockets.client.event.CloseEvent;
import org.realityforge.gwt.websockets.client.event.ErrorEvent;
import org.realityforge.gwt.w... |
package org.mariadb.jdbc;
import org.junit.Assume;
import org.junit.AssumptionViolatedException;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mariadb.jdbc.internal.util.scheduler.SchedulerServiceProviderHolder;
import java.io.UnsupportedEncodingException;
import java.net.InetAddress;
import java.net.... |
package org.vetmeduni.utils.fastq;
import htsjdk.samtools.SAMException;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.fastq.FastqRecord;
import htsjdk.samtools.util.FastqQualityFormat;
import org.junit.*;
import org.vetmeduni.utils.record.SAMRecordUtilsTest;
public class StandardizerAndCheckerTest {
Fast... |
package org.mariadb.jdbc;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.net.InetAddress;
impor... |
package uk.ac.ebi.subs.api;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestEx... |
package picocli;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.*;
import static org.junit.Assert.*;
import static picocli.CommandLine.*;
import static picocli.CommandLine.AbbreviationMatcher.*;
public class AbbreviationMatcherTest {... |
package org.jdesktop.swingx;
import junit.framework.TestCase;
import org.jdesktop.test.PropertyChangeReport;
/**
*
* @author Jeanette Winzenburg
*/
public class JXTaskPaneIssues extends TestCase {
/**
* Issue #835-swingx: event notification on expanded.
* Here: two events fired on setExpanded
* @d... |
package uk.me.steev.java.heating.io.http;
import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.... |
package gov.nasa.jpf.test.basic;
import gov.nasa.jpf.JPF;
import gov.nasa.jpf.JPFConfigException;
import gov.nasa.jpf.jvm.NoUncaughtExceptionsProperty;
import gov.nasa.jpf.util.test.TestJPF;
import org.junit.Test;
/**
* basic test to test the test harness (how often can you say 'test' in one
* sentence?)
*/
public c... |
package stroom.test;
import com.google.common.base.Preconditions;
import com.google.common.reflect.ClassPath;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.time.LocalDateTime;
import java... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.venky.swf.db.table;
import com.venky.cache.Cache;
import com.venky.core.collections.IgnoreCaseList;
import com.venky.core.collections.LowerCaseStringCache;
import com.venky.core.collections.SequenceMap;
impor... |
package org.jdesktop.swingx;
import java.awt.Font;
import javax.swing.text.JTextComponent;
import org.jdesktop.beans.BeanInfoSupport;
import org.jdesktop.beans.EnumerationValue;
import org.jdesktop.swingx.prompt.PromptSupport.FocusBehavior;
public abstract class JXPromptBeanInfo extends BeanInfoSupport {
protected ... |
package org.zstack.sdk;
import java.util.HashMap;
import java.util.Map;
import org.zstack.sdk.*;
public class SetVipQosAction extends AbstractAction {
private static final HashMap<String, Parameter> parameterMap = new HashMap<>();
private static final HashMap<String, Parameter> nonAPIParameterMap = new HashMap<... |
package crystal.client;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.List;
import java.util.Vector;
import org.junit.Assert;
import crystal.model.DataSource;
import javax.swing.BoxLayout;
import javax.swing.J... |
package de.bitdroid.flooding.map;
import static de.bitdroid.flooding.pegelonline.PegelOnlineSource.COLUMN_STATION_LAT;
import static de.bitdroid.flooding.pegelonline.PegelOnlineSource.COLUMN_STATION_LONG;
import static de.bitdroid.flooding.pegelonline.PegelOnlineSource.COLUMN_STATION_NAME;
import java.util.ArrayList;
i... |
package de.bwaldvogel.mongo.backend;
import static de.bwaldvogel.mongo.backend.TestUtils.json;
import java.net.InetSocketAddress;
import java.time.Clock;
import java.time.Instant;
import java.time.ZoneOffset;
import java.util.List;
import org.assertj.core.api.AbstractBooleanAssert;
import org.assertj.core.api.AbstractD... |
package dr.evomodel.continuous;
import dr.inference.model.*;
import dr.math.matrixAlgebra.Matrix;
import dr.util.Citable;
import dr.util.Citation;
import java.util.List;
/**
* @author Max Tolkoff
* @author Marc Suchard
*/
public class LatentFactorModel extends AbstractModelLikelihood implements Citable {
// priva... |
package com.splunk.shep.mapreduce.lib.rest;
import java.io.File;
import java.io.IOException;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.Fil... |
package org.sagebionetworks.bridge.dynamodb;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import static org.sagebionetworks.bridge.models.OperatingSystem.IOS;
import java.util.List;
import ... |
package uk.me.graphe.server.database;
import java.net.UnknownHostException;
import java.util.List;
import uk.me.graphe.server.database.dbitems.UserDB;
import com.google.code.morphia.Datastore;
import com.google.code.morphia.Morphia;
import com.google.code.morphia.query.Query;
import com.google.code.morphia.query.Update... |
package edu.berkeley.guir.prefuse.graph;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
public class GraphLib {
public static Graph getStar(int n) {
Node n0 = new TreeNode();
n0.setAttribute("label","n"+0);
ArrayList al = new ArrayL... |
package edu.yalestc.yalepublic;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
import org.json.JSONArray;
import org.json.JSONException;
import ... |
package com.psddev.dari.util;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Type;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
impor... |
package experimentalcode.lisa;
import java.util.Iterator;
import java.util.List;
import de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm;
import de.lmu.ifi.dbs.elki.algorithm.clustering.EM;
import de.lmu.ifi.dbs.elki.data.RealVector;
import de.lmu.ifi.dbs.elki.database.AssociationID;
import de.lmu.ifi.dbs.elki.database.... |
package experimentalcode.lisa;
import de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm;
import de.lmu.ifi.dbs.elki.algorithm.clustering.EM;
import de.lmu.ifi.dbs.elki.algorithm.outlier.ABOD;
import de.lmu.ifi.dbs.elki.data.RealVector;
import de.lmu.ifi.dbs.elki.database.AssociationID;
import de.lmu.ifi.dbs.elki.database... |
package no.nordicsemi.android.dfu;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import no.nordicsemi.android.dfu.exception.HexFileValidationException;
public class HexInputStream extends FilterInputStre... |
package org.tomighty.plugin;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
public class DefaultPluginTest {
private Plug... |
package org.broad.igv.hic.track;
import org.apache.commons.math.stat.StatUtils;
import org.broad.igv.data.WiggleDataset;
import org.broad.igv.hic.Context;
import org.broad.igv.hic.HiC;
import org.broad.igv.renderer.Renderer;
import org.broad.igv.track.AbstractTrack;
import org.broad.igv.track.RenderContext;
import org.... |
package org.camsrobotics.lib;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.communication.FRCNetworkCommunicationsLibrary;
import edu.wpi.first.wpilibj.communication.UsageReporting;
import edu.wpi.first.wpilibj.communication.FRCNetworkCommunicationsLibrary... |
package org.languagetool.gui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.util.ResourceBundle;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
imp... |
package org.eclipse.imp.pdb.facts.impl.fast;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import org.eclipse.imp.pdb.facts.IList;
import org.eclipse.imp.pdb.facts.INode;
import org.eclipse.imp.pdb.facts.IValue;
import org.eclipse.imp.pdb.facts.IValueFactory;
import org.eclip... |
package org.exist.storage;
import org.apache.log4j.Logger;
import org.exist.collections.CollectionCache;
import org.exist.storage.cache.Cache;
import org.exist.util.DatabaseConfigurationException;
import org.exist.management.AgentFactory;
import org.exist.management.Agent;
public class CollectionCacheManager implements... |
package galileo.samples.net.event;
import galileo.event.EventMap;
/**
* An example {@link EventMap} implementation that links events to
* integer-based IDs.
*/
public class SampleEventMap extends EventMap {
private static SampleEventMap instance = null;
private SampleEventMap() {
/* Here we give our ... |
package VASSAL.build.module;
import VASSAL.tools.ProblemDialog;
import static java.lang.Math.round;
import java.awt.AWTEventMulticaster;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Component;
import java.awt.Composite;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Grap... |
package hudson.plugins.warnings;
import java.io.File;
import com.thoughtworks.xstream.XStream;
import hudson.model.AbstractBuild;
import hudson.plugins.analysis.core.BuildHistory;
import hudson.plugins.analysis.core.ParserResult;
import hudson.plugins.analysis.core.ResultAction;
import hudson.plugins.analysis.core.Buil... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package consolefps.models;
import consolefps.models.elements.arme.FusilAPompe;
import consolefps.models.elements.Zombie;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import static org.testng.Assert... |
package org.opencms.scheduler.jobs;
import org.opencms.file.CmsObject;
import org.opencms.file.CmsProject;
import org.opencms.main.CmsException;
import org.opencms.report.CmsLogReport;
import org.opencms.scheduler.I_CmsScheduledJob;
import java.util.Map;
/**
* Scheduled job for time based publishing.<p>
* <p>
* This... |
package org.openid4java.consumer;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.httpclient.methods.StringRequestEntity;
import ... |
package com.dciets.cumets;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.util.Log;
i... |
package org.peg4d.pegcode;
import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import org.peg4d.Grammar;
import org.peg4d.Main;
import org.peg4d.PEG4d;
import org.peg4d.ParsingRule;
... |
package com.example.idk.myuber;
import android.os.AsyncTask;
import android.util.Log;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.