answer stringlengths 17 10.2M |
|---|
package org.webbitserver.handler;
import org.junit.After;
import org.junit.Test;
import org.webbitserver.*;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.concurrent.ExecutionException;
import static org.junit.Assert.assertEquals;
import s... |
package seedu.address.testutil;
import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS;
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL;
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE;
import static seedu.address... |
package seedu.jimi.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.jimi.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.jimi.commons.core.Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX... |
package siren;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
/**
* @author jonfreer
* @since 8/28/17
*/
public class EmbeddedLinkSubEntityTester {
private... |
package th.in.llun.thorfun;
import org.json.JSONException;
import org.json.JSONObject;
import th.in.llun.thorfun.api.Thorfun;
import th.in.llun.thorfun.api.model.CategoryStory;
import th.in.llun.thorfun.api.model.Story;
import th.in.llun.thorfun.api.model.ThorfunResult;
import android.os.Bundle;
import android.util.Log... |
package de.gurkenlabs.litiengine.entities;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.co... |
package de.mycrobase.ssim.ed.app;
import java.util.Arrays;
import com.jme3.app.Application;
import com.jme3.app.state.AppStateManager;
import com.jme3.asset.AssetKey;
import com.jme3.material.Material;
import com.jme3.math.Vector2f;
import com.jme3.math.Vector3f;
import com.jme3.terrain.geomipmap.TerrainGrid;
import co... |
package de.duenndns.ssl;
import android.app.Activity;
import android.app.Application;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Service;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.In... |
package de.fhdw.wipbank.server.util;
import java.math.BigDecimal;
public class Validation {
public static boolean isReferenceValid(final String reference) {
if (reference == null)
return false;
if (reference.equals(""))
return false;
return reference.matches("^[A-Za-z... |
package edu.cmu.minorthird.util.gui;
import org.apache.log4j.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import javax.swing.plaf.basic.BasicSpinnerUI;
import javax.swing.text.*;
import javax.swing.text.html.*;
import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import ... |
package edu.iu.grid.oim.view.divrep;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.TimeZone;
import com.divrep.DivRep;
import com.divrep.DivRepEvent;
import com.divrep.DivRepEventListener;
import com.divrep.c... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Joystic... |
// NetCoder - a web-based pedagogical programming environment
// This program is free software: you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
package edu.ycp... |
package net.sf.mpxj.mpp;
import java.io.IOException;
import java.io.InputStream;
import org.apache.poi.poifs.filesystem.DocumentEntry;
import org.apache.poi.poifs.filesystem.DocumentInputStream;
/**
* This class wraps the POI {@link DocumentInputStream} class
* to allow data to be decrypted before passing
* it back ... |
package imagej.command;
import imagej.display.Display;
import imagej.display.DisplayService;
import imagej.display.event.DisplayActivatedEvent;
import imagej.module.MethodCallException;
import imagej.module.ModuleItem;
import org.scijava.event.EventHandler;
import org.scijava.event.EventService;
import org.scijava.log.... |
// OverlayTranslator.java
package imagej.legacy;
import ij.ImagePlus;
import ij.gui.Arrow;
import ij.gui.EllipseRoi;
import ij.gui.FreehandRoi;
import ij.gui.ImageRoi;
import ij.gui.Line;
import ij.gui.OvalRoi;
import ij.gui.PointRoi;
import ij.gui.PolygonRoi;
import ij.gui.Roi;
import ij.gui.ShapeRoi;
import ij.gui.Te... |
package liquibase.database.sql;
import liquibase.database.Database;
import liquibase.database.MySQLDatabase;
import liquibase.exception.StatementNotSupportedOnDatabaseException;
import liquibase.exception.JDBCException;
public class TagDatabaseStatement implements SqlStatement {
private String tag;
public TagDa... |
package org.realityforge.arez.api2;
import java.util.concurrent.Callable;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.jetbrains.annotations.TestOnly;
public final class ArezContext
{
/**
* All changes in a context must occur within the scope of a transaction.
* This references ... |
package org.zstack.core.cloudbus;
import org.apache.logging.log4j.ThreadContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.*;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.RestClientException;
import org.zstack.... |
package org.egordorichev.lasttry.entity.drop;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
import java.util.List;
import org.egordorichev.lasttry.Globals;
import org.egordorichev.lasttry.entity.Creature;
import org.egordorichev.lasttry.entity.Entity;
import org.egordorichev.... |
package org.realityforge.arez;
import java.lang.reflect.Field;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.realityforge.guiceyloops.shared.ValueUtil;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMetho... |
import com.sun.star.beans.XPropertyAccess;
import com.sun.star.comp.loader.FactoryHelper;
import com.sun.star.lang.XInitialization;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.lang.XSingleServiceFactory;
import com.sun.star.lang.XTypeProvider;
import com.sun... |
// AppContext.java
package ed.appserver;
import java.io.*;
import java.util.*;
import ed.appserver.jxp.*;
import ed.appserver.templates.djang10.*;
import ed.db.*;
import ed.js.*;
import ed.js.engine.*;
import ed.js.func.*;
import ed.lang.*;
import ed.net.httpserver.*;
import ed.util.*;
/** The context in which the apps... |
package com.podio.sdk.domain;
import com.podio.sdk.domain.field.Field;
import com.podio.sdk.internal.Utils;
import java.util.ArrayList;
import java.util.List;
public class Application {
public static enum Status {
active, inactive, deleted, undefined
}
public static enum Type {
standard, mee... |
package aptgraph.server;
import aptgraph.core.Request;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import info.debatty.java.graphs.Graph;
import info.debatty.java.graphs.Neighbor;
import java.io.BufferedInputStream;
import java.io.IOException;
import ja... |
package hivemall.io;
import hivemall.io.WeightValueWithClock.WeightValueWithCovarClock;
import hivemall.utils.collections.IMapIterator;
import hivemall.utils.collections.OpenHashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public final class SparseModel extends AbstractPredi... |
package com.asana;
import com.google.api.client.auth.oauth2.*;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.gson.GsonFactory;
imp... |
package edu.ncsu.snap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
public class Snap {
// TODO : configurable parameters
static int gradientReps = 50;
static int reps = 25;
static int whichCircle(Graph gd, int n_id) {
//... |
package edu.umkc.sce;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.util.GenericOptionsParser;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import com.google.common.base.Stopwatch;
import com.hp.hpl.jena.graph.Graph;
impo... |
package home.solver;
import Jama.EigenvalueDecomposition;
import Jama.Matrix;
import home.finiteElements.interfaces.FemElement;
import home.other.FemPoint;
import home.other.Force;
import home.other.Support;
import home.solver.matrixes.SparseSquareSymmetricMatrix;
import home.solver.matrixes.SparseZeroOneMatrix;
import... |
package jdungeonquest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import jdungeonquest.effects.Bottomless... |
package org.tsugi;
import java.util.List;
import java.util.Properties;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* This is a set of database convienence methods
*
* This is a reimplementation of the PDOX library in the PHP Tsugi
* but it might not be the best solution since the JDBC
* PreparedSt... |
package org.zeromq;
import java.util.concurrent.atomic.AtomicBoolean;
import zmq.Msg;
import zmq.SocketBase;
import zmq.ZError;
import zmq.ZMQ;
/**
* ZeroMQ sockets present an abstraction of an asynchronous message queue, with the exact queuing
* semantics depending on the socket type in use. Where conventional socke... |
package spatwork;
import com.google.common.base.Charsets;
import com.google.common.base.Optional;
import restx.security.SignatureKey;
import restx.factory.Module;
import restx.factory.Provides;
import restx.mongo.MongoModule;
import javax.inject.Named;
@Module
public class AppModule {
@Provides
public Signature... |
package utils;
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class SantaManager implements Serializable {
private static final long serialVersionUID = 6144114037574556203L;
private Map<String, Santa> santas;
private Map<Str... |
package water;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import water.Model;
import water.Model.ModelCategory;
import water.api.AUC;
import water.api.ConfusionMatrix;
import water.api.DocGen;
import water.api.Request.API;
import water.api.Request.Default;
import water.fvec.Frame;
import wate... |
package water.api;
import static water.util.ModelUtils.getPredictions;
import org.junit.Assert;
import org.junit.Test;
import water.MRTask2;
import water.Request2;
import water.UKV;
import water.fvec.Chunk;
import water.fvec.Frame;
import water.fvec.Vec;
import water.util.Utils;
import java.util.Arrays;
import java.uti... |
package dr.app.beauti.generator;
import dr.app.beast.BeastVersion;
import dr.app.beauti.PriorType;
import dr.app.beauti.XMLWriter;
import dr.app.beauti.options.*;
import dr.evolution.alignment.Alignment;
import dr.evolution.alignment.SitePatterns;
import dr.evolution.datatype.DataType;
import dr.evolution.datatype.Nucl... |
package dr.evomodel.substmodel;
import dr.evolution.datatype.Microsatellite;
import dr.inference.model.Parameter;
import dr.inference.model.Variable;
import java.util.ArrayList;
/**
* @author Chieh-Hsi Wu
*
* Implements the LinearBiasModel of microsatellites.
*/
public class LinearBiasModel extends OnePhaseModel{
... |
package examples.dustin.commandline.cmdln;
import static java.lang.System.out;
import com.Ostermiller.util.CmdLn;
import com.Ostermiller.util.CmdLnOption;
/**
* Demonstrates use of OstermillerUtils CmdLn for processing
* command-line arguments in Java.
*/
public class Main
{
public static void main(final String[]... |
package com.sangcomz.fishbun.ui.album;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
... |
package edu.harvard.mcb.leschziner.deploy;
import java.io.IOException;
import com.googlecode.javacv.cpp.opencv_core.IplImage;
import com.googlecode.javacv.cpp.opencv_highgui;
import edu.harvard.mcb.leschziner.classify.PCAClassifier;
import edu.harvard.mcb.leschziner.particlesource.DoGParticlePicker;
import edu.harvard.... |
package dlei.forkme.helpers;
import android.graphics.Color;
import android.support.v7.widget.AppCompatImageView;
import android.support.v7.widget.AppCompatTextView;
import android.util.Log;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
/**
* Helper class to a... |
package org.unitime.timetable.webutil.timegrid;
import java.io.Serializable;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.Vector;
impo... |
package kawa.standard;
import gnu.expr.*;
import kawa.lang.*;
import gnu.lists.*;
import java.util.Vector;
import gnu.mapping.Symbol;
import gnu.mapping.Namespace;
import gnu.bytecode.Type;
import gnu.kawa.functions.Convert;
public class object extends Syntax
{
public static final object objectSyntax
= new kawa.s... |
package com.dr.kolikosamstar;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.Spinner;
import ... |
package eu.visualize.ini.convnet;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Point;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.... |
package eu.visualize.ini.convnet;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Point;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.... |
package io.cloudracer.datastream;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.Arrays;
import org.junit.Test;
import io.cloudracer.TestCons... |
package com.exedio.cope.util;
import com.exedio.cope.Model;
public final class TransactionSlicer
{
private final Model model;
private final int bitesPerSlice;
private final String transactionName;
private int bits = 0;
private int sliceCount = 0;
public TransactionSlicer(final Model model, final... |
package org.ls.asynchelper;
import java.lang.reflect.Array;
import java.util.LinkedList;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutionException... |
package com.facebook.react.fabric;
public interface FabricBinder<T extends FabricBinding> {
void setBinding(T binding);
} |
package org.openas2.processor.sender;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.security.PrivateKey;
import java.security.ce... |
package org.openas2.processor.sender;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openas2.OpenAS2Exception;
import org.openas2.WrappedException;
import org.openas2.message.AS2Message;
import org.openas2.message.AS2MessageMDN;
import org.openas2.message.Message;
import... |
package gov.nih.nci.eagle.web.struts;
import gov.nih.nci.caintegrator.application.cache.CacheConstants;
import gov.nih.nci.caintegrator.application.lists.UserListBean;
import gov.nih.nci.eagle.bean.UserInfoBean;
import gov.nih.nci.eagle.exception.LoginException;
import gov.nih.nci.eagle.service.security.LoginService;
i... |
package io.flutter.console;
import com.intellij.execution.ConsoleFolding;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import io.flutter.FlutterConstants;
import io.flutter.sdk.FlutterSdkUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nu... |
package jacobgc.grafx.grafxngine.display;
import org.lwjgl.glfw.GLFW;
import org.lwjgl.glfw.GLFWVidMode;
import org.lwjgl.opengl.GL;
import org.lwjgl.opengl.GL11;
import jacobgc.grafx.grafxngine.render_engine.Loader;
import jacobgc.grafx.grafxngine.render_engine.Renderer;
import jacobgc.grafx.grafxngine.render_engine.R... |
package com.sun.facelets;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Writer;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.... |
// $Id: TileFringer.java 3177 2004-10-28 17:49:02Z mdb $
// Narya library - tools for developing networked games
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITN... |
// Narya library - tools for developing networked games
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should ... |
package nl.b3p.kar.stripes;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.geom.Polygon;
import com.vividsolutions.jts.geom.PrecisionModel;
import com.vividsolutions.jts.io.WKTReader;
import java.io.StringReader;
import java.sql.Connection;
im... |
package nl.b3p.kar.stripes;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarsha... |
package org.apache.commons.lang;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.IOException;
import java.util.NoSuchElemen... |
package com.test.thalitest;
import org.apache.cordova.LOG;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
import java.util.Date;
public class ThaliTestRunner {
private static final String mTag = ThaliTestRunner.class.getName();
public static bool... |
package org.apache.lenya.cms.workflow;
/**
*
* @author andreas
*/
public interface Event {
String getCommand();
} |
package org.apache.lucene.document;
import java.util.Enumeration;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.search.Hits;
/** Documents are the unit of indexing and search.
*
* A Document is a set of fields. Each field has a name and a textual value.
* A field may be stored with the docume... |
package org.apache.lucene.store;
import java.io.IOException;
import java.io.File;
import java.io.RandomAccessFile;
import java.io.FileNotFoundException;
import java.util.Hashtable;
import org.apache.lucene.util.Constants;
/**
Straightforward implementation of Directory as a directory of files.
@see Directory
... |
package org.apache.velocity.runtime;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
import java.util.Hashtable;
import java.util.Properties;
import org.apache.log.LogKit;
import org.apache.log.Logge... |
package carelender.view.gui.components;
import java.text.DateFormatSymbols;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import carelender.controller.HintGenerator;
import carelender.model.data.DateRange;
import carelender.model.data.Event;
import carelender.model.data.EventLi... |
// checkstyle: Checks Java source code for adherence to a set of rules.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE... |
package com.psddev.dari.db;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.TreeMap;
im... |
package org.jboss.as.cli;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
import jav... |
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
public class RightClick... |
package edu.mines.alterego;
import java.util.ArrayList;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
import a... |
package org.xins.common.types;
import java.util.StringTokenizer;
import org.xins.common.MandatoryArgumentChecker;
import org.xins.common.net.URLEncoding;
import org.xins.common.text.FastStringBuffer;
import org.xins.common.types.standard.Text;
/**
* Standard type <em>_list</em>.
*
* @version $Revision$ $Date$
* @au... |
//This webapp was created to enable the managers of amateur orchestras/ensembles
//to have a basic database with contact information and to enable them to send
//subscription requests to a large amount of contacts for a specific musical project.
//Contacts receive a personalized email containing a URL with which they c... |
package org.lucee.mongodb;
import java.util.ArrayList;
import java.util.List;
import java.util.Iterator;
import java.util.Map.Entry;
import org.lucee.mongodb.support.DBCollectionImplSupport;
import org.lucee.mongodb.util.print;
import com.mongodb.DBCollection;
import com.mongodb.Cursor;
import com.mongodb.DBCursor;
imp... |
package org.jasig.portal.groups.ldap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Attribute;
impo... |
package com.armandgray.taap.log;
import android.view.View;
import android.widget.LinearLayout;
import com.armandgray.taap.BuildConfig;
import com.armandgray.taap.R;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.rob... |
package edu.umass.cs.ciir.waltz.sys;
/**
* @author jfoley
*/
public interface KeyMetadata<V, Subclass extends KeyMetadata<V, ?>> {
/**
* Any type of metadata must at least know how many documents were seen.
* @return the total number of documents.
*/
int totalDocuments();
/**
* Add in the informatio... |
package com.faveset.khttp;
import java.nio.ByteBuffer;
class ByteBufferArray {
private ByteBuffer[] mBufs;
// Points to the index of the first non-empty buffer in the sequence.
// It will be mBufs.length if all buffers are empty.
private int mNonEmptyOffset;
// Remainder for the first non-empty buff... |
package alignment.alignment_v2;
import gov.ornl.stucco.DBClient.Constraint;
import gov.ornl.stucco.DBClient.DBConnection;
import gov.ornl.stucco.DBClient.Constraint.Condition;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Hash... |
package alignment.alignment_v2;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.commons.io.FileUtils;
import org.apach... |
package attp;
public class QuadrupleMarriagePuzzle {
/**
* At a quadruple marriage ceremony four men Arthur, Bill, Charlie and Don were marrying
* Erica, Fanny, Georgina and Helen, though not necessarily in that order.
*
* Consider the following statements:
* If Fanny is not marrying Arthur... |
package browserview;
import java.awt.*;
import java.io.*;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.o... |
package ca.krasnay.panelized;
import java.io.Serializable;
import org.apache.wicket.Page;
import org.apache.wicket.RestartResponseException;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.request.cycle.RequestCycle;
import org.apache.wicket.request.mapper.parameter.PageParameters;
/**
* Enca... |
package qa.addressbook.tests;
import org.openqa.selenium.remote.BrowserType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
import qa.addr... |
package com.fuxi.javaagent.plugin;
import com.fuxi.javaagent.request.AbstractRequest;
import com.google.gson.Gson;
import java.util.HashMap;
import java.util.Map;
public class CheckParameter {
public enum Type {
SQL("sql"),
COMMAND("command"),
DIRECTORY("directory"),
REQUEST("request... |
package com.areen.jlib.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* Use this class to keep information about the application.
*
* @author dejan
*/
public class JlibInfo {
private static String prjVersion = "";
private static String sprintNumber = "";
p... |
package com.brg.controller;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.web.WebView;
import java.net.URL;
import java.util.ResourceBundle;
public class DefineTab implements Initializable, TabControllerImpl {
@FXML private WebView webView;
@Override
public void initialize(U... |
package qa.qcri.aidr.getdata;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import org.a... |
package ti.modules.titanium.ui;
import java.util.ArrayList;
import java.util.HashMap;
import org.appcelerator.kroll.KrollDict;
import org.appcelerator.kroll.KrollProxy;
import org.appcelerator.kroll.annotations.Kroll;
import org.appcelerator.kroll.common.AsyncResult;
import org.appcelerator.kroll.common.Log;
import org... |
package com.thebluealliance.androidclient;
import java.util.HashMap;
public class Constants {
public static final String LOG_TAG = "com.thebluealliance.androidclient";
public static final HashMap<String, String> MATCH_LEVELS;
static {
MATCH_LEVELS = new HashMap<String, String>();
MATCH_LEVEL... |
package rtdc.android.presenter;
import android.app.ActionBar;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import rtdc.android.R;
import rtdc.android.impl.AndroidUiDate;
import rtdc.android.impl.AndroidUiDropdownList;
import rtdc.android.impl.AndroidUi... |
package com.realcomp.data.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Utility class for code translati... |
package com.rox.emu.mem;
import com.rox.emu.env.RoxByte;
import com.rox.emu.env.RoxWord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Arrays;
/**
* Simple array representing memory, implementing the memory interface
*
* @author Ross Drew
*/
public class SimpleMemory implements Memory {
... |
package com.tumblr.jumblr.types;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
import org.apache.commons.lang3.StringUtils;
/... |
package org.pmiops.workbench.api;
import com.google.cloud.bigquery.BigQueryException;
import com.google.cloud.bigquery.FieldValue;
import com.google.cloud.bigquery.QueryResult;
import com.google.gson.Gson;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.pmiops.workbench... |
package org.johnnei.utils.config;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.IllegalFormatException;
import java.util.Map.Entry;
import org.johnnei.utils.T... |
package de.prob2.ui.consoles;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.Set;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.TextArea;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseButton;
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.