answer stringlengths 17 10.2M |
|---|
package de.lmu.ifi.dbs.algorithm;
import de.lmu.ifi.dbs.algorithm.result.KNNDistanceOrderResult;
import de.lmu.ifi.dbs.algorithm.result.Result;
import de.lmu.ifi.dbs.data.MetricalObject;
import de.lmu.ifi.dbs.database.Database;
import de.lmu.ifi.dbs.distance.Distance;
import de.lmu.ifi.dbs.utilities.Description;
import... |
package ij.process;
import static org.junit.Assert.*;
import ij.gui.ProgressBar;
import ij.gui.Roi;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Polygon;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.awt.image.ColorMod... |
package dr.evomodel.antigenic;
import dr.evolution.util.*;
import dr.inference.model.*;
import dr.math.MathUtils;
import dr.math.distributions.NormalDistribution;
import dr.util.*;
import dr.xml.*;
import java.io.*;
import java.util.*;
import java.util.logging.Logger;
/**
* @author Andrew Rambaut
* @author Trevor Bed... |
package rest;
import org.apache.http.client.fluent.Executor;
import org.apache.http.client.fluent.Form;
import org.apache.http.client.fluent.Request;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apa... |
package dr.evomodel.antigenic;
import dr.evolution.util.*;
import dr.inference.model.*;
import dr.math.MathUtils;
import dr.math.distributions.NormalDistribution;
import dr.util.*;
import dr.xml.*;
import java.io.*;
import java.util.*;
import java.util.logging.Logger;
/**
* @author Andrew Rambaut
* @author Trevor Bed... |
package umm3601.card;
import com.google.gson.Gson;
import com.mongodb.BasicDBObject;
import com.mongodb.MongoException;
import com.mongodb.client.AggregateIterable;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.Aggregates;
import com.mongodb.util.JSO... |
package com.kehxstudios.atlas.managers;
import com.badlogic.gdx.Audio;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.files.FileHandle;
import com.kehxstudios.atlas.components.Component;
import com.kehxstudios.atlas.components.MusicComponen... |
package com.ore.infinium.systems;
import com.artemis.*;
import com.artemis.annotations.Wire;
import com.artemis.managers.TagManager;
import com.artemis.utils.IntBag;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.ore.infinium.OreWorld;
import com.ore.infinium.components.*;
@Wire
public class SpriteRenderS... |
package bisq.core.provider.fee;
import bisq.core.dao.governance.param.Param;
import bisq.core.dao.governance.period.PeriodService;
import bisq.core.dao.state.DaoStateService;
import bisq.common.UserThread;
import bisq.common.config.Config;
import bisq.common.handlers.FaultHandler;
import bisq.common.util.Tuple2;
import... |
package org.bouncycastle.math.ec;
import java.math.BigInteger;
public abstract class WNafUtil
{
private static int[] DEFAULT_WINDOW_SIZE_CUTOFFS = new int[]{ 13, 41, 121, 337, 897, 2305 };
public static int[] generateCompactNaf(BigInteger k)
{
if ((k.bitLength() >>> 16) != 0)
{
t... |
package net.sf.ij_plugins.multiband;
import ij.ImagePlus;
import ij.ImageStack;
import ij.gui.ProgressBar;
import ij.plugin.filter.Duplicater;
import ij.process.ColorProcessor;
import ij.process.FloatProcessor;
import ij.process.ImageConverter;
import ij.process.StackConverter;
import java.awt.*;
/**
* Represents vect... |
package net.wurstclient.features.mods;
import net.minecraft.network.play.client.CPacketPlayer;
import net.minecraft.potion.Potion;
import net.wurstclient.compatibility.WPotionEffects;
import net.wurstclient.compatibility.WConnection;
import net.wurstclient.compatibility.WMinecraft;
import net.wurstclient.events.listene... |
package sqlancer.sqlite3.gen;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import sqlancer.Randomly;
import sqlancer.common.gen.ExpressionGenerator;
import sqlancer.sqlite3.SQLite3Provider.SQLite3GlobalState;
import sqlance... |
package com.rultor.ci;
import com.google.common.collect.ImmutableMap;
import com.jcabi.aspects.Immutable;
import com.jcabi.aspects.Loggable;
import com.jcabi.aspects.Tv;
import com.rultor.board.Announcement;
import com.rultor.shell.Batch;
import com.rultor.spi.Signal;
import java.io.ByteArrayOutputStream;
import java.i... |
package io.druid.server.initialization;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Throwables;
import com.google.common.base.Supplier;
import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Provides;
import com.google.inject.name.Named;
import c... |
package com.notlob.jgrid.model;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import com.notlob.jgrid.Grid;
import com.notlob.jgrid.renderer.GridRenderer;
import com.notlob.jgrid.styles.CellStyle;
/**
* Tracks what's visible in the Grid.
*
* @au... |
package com.kyanogen.signatureview;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import... |
package br.senac.tads.pi3a.ado;
import br.senac.tads.pi3a.annotation.Association;
import br.senac.tads.pi3a.annotation.Columm;
import br.senac.tads.pi3a.annotation.ForeignKey;
import br.senac.tads.pi3a.annotation.Table;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.util.Objects;
import java.util.Optional;
import javax.swing.*;
import javax.swing.table.TableColumnModel;
public final class MainPanel extends JPanel {
private MainPanel() {
super(new ... |
package edu.grinnell.callaway;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class ParseExceptionsTest
{
JSONParser parser = new JSONParser();
@Rule
public ExpectedException thrown = ExpectedException.none();
@Test
public void noJasonTest1()
throws Exceptio... |
package br.usp.ime.retrobreaker;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.microedition.khronos.opengles.GL10;
import android.content.Context;
import android.content.SharedPreferences;
import android.media.AudioManager;
import android.media.SoundPool... |
package org.skyve.impl.bizport;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.skyve.CORE;
import org.skyve.domain.Bean;
import org.skyve.domain.messages.UploadException;
import org.skyve.domain.messages.UploadException.Problem;
impor... |
package com.namelessmc.plugin.common;
import com.namelessmc.java_api.NamelessAPI;
import com.namelessmc.java_api.NamelessException;
import com.namelessmc.java_api.modules.websend.WebsendCommand;
import com.namelessmc.plugin.common.audiences.NamelessConsole;
import com.namelessmc.plugin.common.command.AbstractScheduledT... |
package com.composum.sling.cpnl;
import com.composum.sling.clientlibs.handle.Clientlib;
import com.composum.sling.clientlibs.handle.ClientlibElement;
import com.composum.sling.clientlibs.handle.ClientlibRef;
import com.composum.sling.clientlibs.processor.RendererContext;
import com.composum.sling.clientlibs.service.Cli... |
package org.bouncycastle.jce.provider;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1InputStream;
import org.bouncycastle.asn1.ASN1OutputStream;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERInteger;
import org.bouncycastle.asn1.DERObjectIdentifier;
import org... |
package edu.mit.streamjit.impl.interp;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import edu.mit.streamjit.api.IllegalStreamGraphException;
import edu.mit.streamjit.api.Rate;
im... |
package functionalTests.activeobject.futuremonitoring;
import org.junit.Before;
import org.objectweb.proactive.api.ProActiveObject;
import org.objectweb.proactive.api.ProDeployment;
import org.objectweb.proactive.core.body.exceptions.FutureMonitoringPingFailureException;
import org.objectweb.proactive.core.descriptor.d... |
package org.openas2.message;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import javax.mail.Header;
import javax.mail.MessagingException;
import javax.mail.internet.InternetHeaders;
import javax.mail.internet.MimeBodyPart... |
package com.garpr.android.models;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.garpr.android.misc.ParcelableUtils;
import com.google.gson.annotations.SerializedName;
import java.util.Comparator;
public class Reg... |
package org.citydb.modules.kml.database;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashSet;
import org.citydb.api.concurrent.WorkerPool;
import org.citydb.api.database.DatabaseSrs;
import org.citydb.api.geometry.BoundingBox;
... |
package edu.nyu.cs.omnidroid.ui;
import java.util.HashMap;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClic... |
package org.eclipse.imp.pdb.facts.type;
public interface ITypeVisitor<T> {
T visitDouble(DoubleType type);
T visitInteger(IntegerType type);
T visitList(ListType type);
T visitMap(MapType type);
T visitNamed(NamedType type);
<U> T visitObject(ObjectType<U> type);
T visitRelationType(Relation... |
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import edu.wpi.first.wpilibj.templates.commands.*;
import edu.wpi.first.wpilibj.templates.debugging.RobotDebugger;
/**
* Main Robot C... |
package gov.nih.nci.evs.browser.utils;
import java.net.URLDecoder;
import java.util.regex.Pattern;
/**
* HTTP Utility methods
* @author garciawa2
*
*/
public class HTTPUtils {
/**
* Remove potentially bad XSS syntax
* @param value
* @return
*/
public static String cleanXSS(String value) ... |
package org.exist.xquery.functions.xmldb;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.StringWriter;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import org.exi... |
package com.ibm.iotf.test.suites;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
//import com.ibm.iotf.client.gateway.GatewayManagementTest;
import com.ibm.iotf.client.gateway.GatewayManagementTest2;
import com.ibm.iotf.client.application.ApplicationEventSu... |
// $Header: /share/content/gforge/sentinel/sentinel/src/gov/nih/nci/cadsr/sentinel/audits/AuditConceptToEVS.java,v 1.11 2008-05-15 17:35:48 hebell Exp $
// $Name: not supported by cvs2svn $
package gov.nih.nci.cadsr.sentinel.audits;
import gov.nih.nci.cadsr.sentinel.database.DBProperty;
import gov.nih.nci.cadsr.sentine... |
package us.myles.ViaVersion.util;
import org.yaml.snakeyaml.Yaml;
import us.myles.ViaVersion.api.configuration.ConfigurationProvider;
import java.io.*;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public abstract class Config implements Configur... |
package org.gridlab.gridsphere.tags.web;
import org.gridlab.gridsphere.tags.web.element.CheckBox;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
public class CheckboxTag extends InputTag {
public int doStartTag() throws JspException {
this.htmlelement = new CheckBox(name, v... |
package com.intel.gkl.pairhmm;
import com.intel.gkl.IntelGKLUtils;
import com.intel.gkl.NativeLibraryLoader;
import com.intel.gkl.pairhmm.IntelPairHmm;
import org.broadinstitute.gatk.nativebindings.pairhmm.HaplotypeDataHolder;
import org.broadinstitute.gatk.nativebindings.pairhmm.PairHMMNativeArguments;
import org.broa... |
package org.pcap4j.util;
import static java.nio.ByteOrder.*;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.nio.ByteOrder;
import java.util.regex.Pattern;
/**
* @author Kaito Yamada
* @since pcap4j 0.9.1
*/
public final class... |
package com.intellij.ide.projectView.impl;
import com.intellij.ide.projectView.PresentationData;
import com.intellij.ide.projectView.ProjectViewNode;
import com.intellij.ide.projectView.SelectableTreeStructureProvider;
import com.intellij.ide.projectView.ViewSettings;
import com.intellij.ide.projectView.impl.nodes.Clas... |
package org.jgroups.protocols.pbcast;
import org.jgroups.*;
import org.jgroups.stack.Protocol;
import org.jgroups.stack.StateTransferInfo;
import org.jgroups.util.Streamable;
import org.jgroups.util.Util;
import java.io.*;
import java.util.*;
/**
* New STATE_TRANSFER protocol based on PBCAST. Compared to the one in ./... |
/*
* $Id: ConfigurationPropTreeImpl.java,v 1.3 2002-11-22 17:43:42 tal Exp $
*/
package org.lockss.daemon;
import java.util.*;
import java.io.*;
import java.net.*;
import java.text.*;
import org.lockss.util.*;
import org.mortbay.tools.*;
/** <code>ConfigurationPropTreeImpl</code> represents the config parameters
* a... |
package org.lwjgl.vulkan.awt;
import org.lwjgl.BufferUtils;
import org.lwjgl.PointerBuffer;
import org.lwjgl.awt.AWT;
import org.lwjgl.awt.MacOSX;
import org.lwjgl.system.*;
import org.lwjgl.system.jawt.JAWTRectangle;
import org.lwjgl.system.libffi.FFICIF;
import org.lwjgl.system.libffi.LibFFI;
import org.lwjgl.system.... |
package com.xjeffrose.xio.guice;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.inject.Guice;
import com.google.inject.Stage;
import com.xjeffrose.xio.core.XioCodecFac... |
package org.metawatch.manager.widgets;
import java.util.ArrayList;
import java.util.Map;
import org.metawatch.manager.FontCache;
import org.metawatch.manager.MetaWatchService;
import org.metawatch.manager.MetaWatchService.GeolocationMode;
import org.metawatch.manager.MetaWatchService.Preferences;
import org.metawatch.m... |
package example.model;
import com.eaglesakura.serialize.Serialize;
import com.eaglesakura.serialize.SerializerTestUtil;
import java.util.Arrays;
/**
* Null
*/
public class NullableSerializeTarget {
@Serialize(id = 1)
public String nullStringValue = null;
@Serialize(id = 2)
public String stringValue = ... |
package org.mozilla.labs.Soup.plugins;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.mozilla.labs.Soup.R;
import org.mozilla.labs.Soup.app.AppActivity;
import org.mozilla.labs.Soup.app.Sou... |
package hudson.plugins.git.util;
import hudson.model.Api;
import hudson.model.Result;
import hudson.plugins.git.Branch;
import hudson.plugins.git.Revision;
import hudson.plugins.git.UserRemoteConfig;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Random;
import org.eclipse.jgit.lib.ObjectId;
... |
package org.myrobotlab.codec.serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import org.myrobotlab.logging.Level;
import org.myrobotlab.logging.LoggerFactory;
import org.myrobotlab.logging.Logging;
import org.myrobotlab.logging.LoggingFactory;
import org.myrobotlab.service.Ard... |
package org.processwarp.android;
import android.os.Handler;
import java.util.concurrent.locks.ReentrantLock;
public class Worker implements Runnable {
/**
* Delegate for implement by service.
*/
public interface Delegate {
void workerRelayCommand(Worker caller, CommandPacket packet);
}
... |
package io.bdrc.lucene.bo;
import static org.junit.Assert.*;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.Tokenizer;
import org.... |
package eu.seebetter.ini.chips.davis;
import net.sf.jaer.Description;
import net.sf.jaer.DevelopmentStatus;
import net.sf.jaer.aemonitor.AEPacketRaw;
import net.sf.jaer.chip.Chip;
import net.sf.jaer.event.ApsDvsEvent;
import net.sf.jaer.event.ApsDvsEventPacket;
import net.sf.jaer.event.ApsDvsEventRGBW;
import net.sf.ja... |
package io.cogswell.sdk.pubsub;
import com.google.common.util.concurrent.AsyncFunction;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.koushikdutta.async.AsyncServer;
import com.koushikdutta... |
package be.ibridge.kettle.spoon;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.StringTokenizer;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.MessageDialogWithToggle;
import org.eclipse.jfa... |
// ZAP: 2011/05/09 Support for API
// ZAP: 2011/05/15 Support for exclusions
// ZAP: 2012/03/15 Removed unnecessary castings from methods notifyListenerRequestSend,
// notifyListenerResponseReceive and isProcessCache. Set the name of the proxy thread.
// Replaced the class HttpBody with the new class HttpRequestBody an... |
package org.pi.litepost.controllers;
import java.sql.SQLException;
import java.util.Map;
import org.pi.litepost.Router;
import org.pi.litepost.View;
import org.pi.litepost.ViewContext;
import org.pi.litepost.applicationLogic.Model;
import org.pi.litepost.exceptions.EmailExistsException;
import org.pi.litepost.exception... |
package org.dada.core;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import org.dada.core.Datum;
import org.dada.core.IntegerDatum;
import org.dada.core.Registration;
import org.dada.core.SimpleModelView;
import org.dada.core.Update;
import org.dada.core.View;
import junit.frame... |
package org.vitrivr.cineast.core.features;
import java.util.stream.Collectors;
import org.vitrivr.cineast.core.config.ReadableQueryConfig;
import org.vitrivr.cineast.core.data.segments.SegmentContainer;
import org.vitrivr.cineast.core.features.abstracts.SolrTextRetriever;
import java.util.Arrays;
/**
* Uses standard t... |
package org.owasp.esapi.crypto;
import static org.junit.Assert.*;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import ja... |
package technology.tabula;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.junit.Test;
public class TestObjectExtractor {
/*@Test(expected=IOException.class)
public void ... |
package org.apache.commons.collections;
import java.util.Map;
import junit.framework.*;
/**
* Test cases for BeanMap
*
* @author <a href="mailto:morgand@apache.org">Morgan Delagrange</a>
*/
public class TestBeanMap extends TestMap {
public TestBeanMap(String testName) {
super(testName);
}
public... |
package com.doctusoft.ddd.model;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
import java.util.function.*;
import static com.doctusoft.java.Failsafe.checkState;
import static java.util.Objects.*;
/**
* The Entity API contract requires:
* <ol>
* <li>
* each... |
package Controllers;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Paths;
import java.ut... |
// No OPeration - it does nothing, but might have a parameter!
public class NoOp extends OpCode
{
public NoOp (int value)
{
super(OpCode.NOOP);
_value = value;
}
public int getValue ()
{
return _value;
}
@Override
public String toString ()
{
return OpC... |
package com.doos.update_module.core;
import com.doos.settings_manager.ApplicationConstants;
import com.doos.settings_manager.core.SettingsManager;
import com.doos.settings_manager.registry.RegistryCanNotReadInfoException;
import com.doos.settings_manager.registry.RegistryCanNotWriteInfoException;
import com.doos.settin... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of the <organization> nor the
// names of its contributors may be used to endorse or promote products
// ANY EXPRESS OR IMPLIED WARRAN... |
package ca.eandb.jmist.framework.scatter;
import java.util.ArrayList;
import java.util.List;
import ca.eandb.jmist.framework.Random;
import ca.eandb.jmist.framework.ScatteredRay;
import ca.eandb.jmist.framework.SurfacePointGeometry;
import ca.eandb.jmist.framework.ScatteredRay.Type;
import ca.eandb.jmist.framework.colo... |
package com.draga.spaceTravels3.gameEntity;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.draga.PooledVector2;
import com.draga.spaceTravels3.Constants;
import com.draga.spaceTravels3.component.graphicComponent.AnimatedGraphicComponent;
import com.draga.spaceTravels3.co... |
/*
* $Id$
* $URL$
*/
package com.googlecode.pngtastic;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import com.googlecode.pngtastic.core.PngImage;
import com.googlecode.pngtastic.core.PngOptimizer;
public class Pngtastic
{
private stati... |
package edu.wustl.common.util;
import java.text.MessageFormat;
import java.util.List;
import java.util.Random;
import javax.servlet.http.HttpSession;
import edu.wustl.catissuecore.action.DomainObjectListAction;
import edu.wustl.catissuecore.action.LoginAction;
import edu.wustl.catissuecore.actionForm.AbstractActionForm... |
package com.pholser.junit.quickcheck;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;
import com.pholser.junit.quickcheck.generator.Generator;
@Target({ PARAMETER, FIELD })
@Retention(RUNTI... |
package org.voltdb.dtxn;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import org.voltdb.ClientResponseImpl;
import org.voltdb.PrivateVoltTableFactory;
import org.voltdb.StoredProcedureInvocation;
import org.voltdb.VoltDB;
import org.voltdb.VoltTable;
/**
* In... |
package org.voltdb.messaging;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import org.apache.log4j.Logger;
import org.voltdb.VoltDB;
import org.voltdb.fault.NodeFailureFault;
import org.voltdb.network.C... |
package jenkins.security;
import com.google.common.cache.Cache;
import com.google.common.util.concurrent.UncheckedExecutionException;
import hudson.Extension;
import hudson.ExtensionList;
import hudson.security.UserMayOrMayNotExistException;
import jenkins.model.Jenkins;
import jenkins.util.SystemProperties;
import org... |
package org.voltdb.messaging;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.Set;
import org.voltdb.VoltDB;
import org.voltdb.client.ConnectionUtil;
import org.voltdb.fault.FaultHandler;
import org.vol... |
package si.inova.neatle;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.blu... |
package li.l1t.common.tree;
import com.google.common.base.Preconditions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Spliterators;
import java.util.function.Consumer;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
@Suppr... |
package org.bouncycastle.math.ec;
import java.math.BigInteger;
public abstract class WNafUtil
{
public static final String PRECOMP_NAME = "bc_wnaf";
private static final int[] DEFAULT_WINDOW_SIZE_CUTOFFS = new int[]{ 13, 41, 121, 337, 897, 2305 };
private static final byte[] EMPTY_BYTES = new byte[0];
p... |
package org.bouncycastle.util;
import java.math.BigInteger;
import java.security.SecureRandom;
/**
* BigInteger utilities.
*/
public final class BigIntegers
{
public static final BigInteger ZERO = BigInteger.valueOf(0);
public static final BigInteger ONE = BigInteger.valueOf(1);
private static final BigIn... |
package org.jasig.cas.web;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache... |
package com.dmdirc.ui.swing.dialogs.prefs;
import com.dmdirc.Main;
import com.dmdirc.config.prefs.PreferencesCategory;
import com.dmdirc.config.prefs.PreferencesManager;
import com.dmdirc.config.prefs.PreferencesSetting;
import com.dmdirc.ui.swing.MainFrame;
import com.dmdirc.ui.swing.PrefsComponentFactory;
import com.... |
package structural;
import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.List;
public class ProxyPattern {
interface Singable {
void sing();
}
static class Singer implements Singable {
@Override
public void sing() {
System.out.println("");
... |
package com.google.enterprise.adaptor;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;
/**
* The document content transformer can modify the content of a document.
*
* @author Dominik Weidenfeld (dominik.weidenfeld@twt.de)
*/
public class DocumentContentTransformer extends OutputStrea... |
package com.twitter.intellij.pants.service.task;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.configurations.GeneralCommandLine;
import com.in... |
package com.vinsol.expensetracker.helpers;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.TextView;
import com.vinsol.expensetracker.R;
public c... |
package dyvil.tools.compiler.ast.access;
import dyvil.reflect.Opcodes;
import dyvil.tools.compiler.ast.consumer.IValueConsumer;
import dyvil.tools.compiler.ast.context.IContext;
import dyvil.tools.compiler.ast.expression.IValue;
import dyvil.tools.compiler.ast.field.IDataMember;
import dyvil.tools.compiler.ast.generic.... |
package colecoes;
import java.util.ArrayList;
import java.util.List;
import com.sun.org.apache.xerces.internal.util.SynchronizedSymbolTable;
public class ForFuncional {
public static void main(String[] args){
List<Integer> numeros = new ArrayList<Integer>();
numeros.add(0);
numeros.add(1);
... |
package cuchaz.cubicChunks.generator.terrain;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.util.MathHelper;
import net.minecraft.world.WorldType;
import cuchaz.cubicChunks.generator.biome.biomegen.CubeBiomeGenBase;
import cuchaz.cubicChunks.generator.... |
package org.bitcoinj.core;
import org.bitcoinj.core.TransactionConfidence.ConfidenceType;
import org.bitcoinj.params.UnitTestParams;
import org.bitcoinj.script.Script;
import org.bitcoinj.script.ScriptBuilder;
import org.bitcoinj.testing.FakeTxBuilder;
import org.junit.Before;
import org.junit.Test;
import org.easymock... |
package suites;
import categories.BuildVerification;
import categories.VerySlowTests;
import io.paradoxical.cassieq.unittests.*;
import org.junit.experimental.categories.Categories;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
//@RunWith(Categories.class)
//@Categories.IncludeCategory(BuildVerificat... |
package de.danoeh.antennapod.adapter;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.ImageButton;
import a... |
package dr.evomodel.coalescent;
//import com.lowagie.text.Paragraph;
import dr.evolution.tree.NodeRef;
import dr.evolution.tree.Tree;
import dr.evomodel.tree.TreeModel;
import dr.evomodelxml.coalescent.GaussianProcessSkytrackLikelihoodParser;
import dr.inference.loggers.LogColumn;
import dr.inference.model.Model;
impor... |
package com.chrisfolger.needsmoredojo.intellij.actions;
import com.chrisfolger.needsmoredojo.core.amd.ImportCreator;
import com.chrisfolger.needsmoredojo.core.settings.DojoSettings;
import com.chrisfolger.needsmoredojo.core.util.PsiFileUtil;
import com.intellij.notification.Notification;
import com.intellij.notificatio... |
package dr.evomodelxml.substmodel;
import dr.evolution.datatype.DataType;
import dr.evomodel.substmodel.ComplexSubstitutionModel;
import dr.evomodel.substmodel.FrequencyModel;
import dr.evomodel.substmodel.SVSComplexSubstitutionModel;
import dr.evomodel.substmodel.SubstitutionModel;
import dr.evoxml.util.DataTypeUtils;... |
package com.opengamma.financial.analytics.fudgemsg;
import java.util.Map;
import org.fudgemsg.FudgeFieldContainer;
import org.fudgemsg.MutableFudgeFieldContainer;
import org.fudgemsg.mapping.FudgeBuilder;
import org.fudgemsg.mapping.FudgeDeserializationContext;
import org.fudgemsg.mapping.FudgeObjectDictionary;
import ... |
package edu.jhu.hltcoe.gridsearch.dmv;
import java.util.List;
import org.apache.log4j.Logger;
import edu.jhu.hltcoe.gridsearch.ProblemNode;
import edu.jhu.hltcoe.gridsearch.dmv.DmvBoundsDelta.Lu;
public class PseudocostVariableSelector extends AbstractScoringVariableSelector implements VariableSelector {
private st... |
package com.redhat.ceylon.compiler.typechecker.analyzer;
import static com.redhat.ceylon.compiler.typechecker.analyzer.AnalyzerUtil.checkAssignable;
import static com.redhat.ceylon.compiler.typechecker.analyzer.AnalyzerUtil.isExecutableStatement;
import static com.redhat.ceylon.model.loader.model.AnnotationTarget.CONST... |
package edu.washington.escience.myria.expression;
import edu.washington.escience.myria.Type;
import edu.washington.escience.myria.expression.evaluate.ExpressionOperatorParameter;
/**
* Returns all n-character substrings in sequence ("n-grams") from the input string.
*/
public class NgramExpression extends BinaryExpre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.