answer stringlengths 17 10.2M |
|---|
package org.contikios.cooja;
import java.util.Random;
/**
* This ensures that the functions of the random number generator are
* only called by the the thread initializing a simulation or the
* simulation thread itself.
* Rationale: By allowing another thread to use the random number
* generator concurrency is int... |
package com.smartdevicelink.streaming;
import java.io.IOException;
import java.io.InputStream;
import java.util.Hashtable;
import com.smartdevicelink.marshal.JsonRPCMarshaller;
import com.smartdevicelink.protocol.ProtocolMessage;
import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.protocol.... |
package com.xinzhongxin.bletester;
import java.util.UUID;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.co... |
package net.arnx.xmlic;
import java.io.IOException;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.ListIterator;
impor... |
package ar.com.java.samples.acf;
import java.math.BigDecimal;
import org.springframework.util.Assert;
public class MathSamples {
// Weights
private static final int CR_WEIGHT = 17;
private static final int E_WEIGHT = 12;
private static final int SM_WEIGHT = 22;
private static final int ODRS_WEIGHT =... |
package org.ow2.proactive.scheduler.task.executors;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PrintStream;
import java.io.Serializable;
import java.util.List;
impor... |
package se.sics.cooja.plugins;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
impor... |
package nl.meine.datastructures.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import nl.meine.datastructures.Binary... |
package me.nallar.patched;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import cpw.mods.fml.common.FMLL... |
package org.openscore.lang.compiler.scorecompiler;
import org.openscore.lang.compiler.SlangTextualKeys;
import org.openscore.lang.entities.ForLoopStatement;
import org.openscore.lang.entities.ResultNavigation;
import org.openscore.lang.entities.ScoreLangConstants;
import org.openscore.lang.entities.bindings.Input;
impo... |
package boilerplate.common.utils;
import java.util.ArrayList;
import net.minecraft.block.Block;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks... |
package org.sejda.impl.sambox.util;
import org.sejda.model.pdf.transition.PdfPageTransition;
import org.sejda.model.pdf.transition.PdfPageTransitionStyle;
import org.sejda.sambox.pdmodel.interactive.pagenavigation.PDTransition;
import org.sejda.sambox.pdmodel.interactive.pagenavigation.PDTransitionDimension;
import org... |
package nl.mpi.kinnate.ui;
import java.awt.Component;
import java.io.File;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Arrays;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import nl.... |
package dyvilx.tools.compiler;
import dyvil.io.Console;
import dyvil.io.Files;
import dyvilx.tools.BasicTool;
import dyvilx.tools.compiler.ast.external.ExternalHeader;
import dyvilx.tools.compiler.ast.structure.Package;
import dyvilx.tools.compiler.ast.type.builtin.Types;
import dyvilx.tools.compiler.config.ArgumentPar... |
package org.openscore.lang.tools.verifier;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.openscore.api.ExecutionPlan;
import org.openscore.lang.compiler.SlangCompiler;
import org.op... |
package br.com.caelum.brutal.dao;
import static org.hibernate.criterion.Order.desc;
import static org.hibernate.criterion.Projections.rowCount;
import static org.hibernate.criterion.Restrictions.eq;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import br... |
package nom.bdezonia.zorbage.algorithm;
import nom.bdezonia.zorbage.algebra.Addition;
import nom.bdezonia.zorbage.algebra.Algebra;
import nom.bdezonia.zorbage.algebra.Exponential;
import nom.bdezonia.zorbage.algebra.Invertible;
import nom.bdezonia.zorbage.algebra.Multiplication;
import nom.bdezonia.zorbage.algebra.Orde... |
package br.edu.utfpr.recipes.dao;
import br.edu.utfpr.recipes.entidade.Ingrediente;
import br.edu.utfpr.recipes.entidade.Receita;
import java.sql.ResultSet;
import org.hibernate.Query;
/**
*
* @author mairieliw
*/
public class DaoReceita extends DaoGenerics<Receita> {
public DaoReceita() {
super.clazz = ... |
package org.securegraph.accumulo.mapreduce;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.apache.accumulo.core.client.mapreduce.AccumuloRowInputFormat;
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken;
import org.apache.accumulo.core.data.Key;
import org.apache.a... |
package ch.ethz.geco.gecko.rest.api;
import ch.ethz.geco.gecko.ConfigManager;
import ch.ethz.geco.gecko.GECkO;
import ch.ethz.geco.gecko.rest.RequestBuilder;
import ch.ethz.geco.gecko.rest.gson.GsonManager;
import com.google.gson.reflect.TypeToken;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity... |
package au.com.codeka.warworlds.server.cron;
import java.sql.SQLException;
import java.util.ArrayList;
import au.com.codeka.common.Log;
import au.com.codeka.common.protobuf.Messages;
import au.com.codeka.warworlds.server.data.DB;
import au.com.codeka.warworlds.server.data.SqlResult;
import au.com.codeka.warworlds.serve... |
package org.eclipse.kapua.service.account.internal;
import java.util.Objects;
import javax.persistence.TypedQuery;
import org.eclipse.kapua.KapuaEntityNotFoundException;
import org.eclipse.kapua.KapuaException;
import org.eclipse.kapua.KapuaIllegalAccessException;
import org.eclipse.kapua.KapuaIllegalArgumentException;... |
package com.akiban.rest;
import com.akiban.rest.resources.ResourceHelper;
import com.akiban.server.Quote;
import com.akiban.server.error.ErrorCode;
import com.akiban.server.error.InvalidOperationException;
import com.akiban.server.error.NoSuchRoutineException;
import com.akiban.server.error.NoSuchTableException;
import... |
package au.com.codeka.warworlds.server.ctrl;
import java.io.IOException;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import org.joda.time.DateTime;
import org.slf4j... |
package com.akiban.sql.views;
import com.akiban.sql.parser.*;
import com.akiban.sql.StandardException;
public class ViewDefinition
{
private CreateViewNode definition;
private FromSubquery subquery;
/**
* Parse the given SQL as CREATE VIEW and remember the definition.
*/
public ViewDefinition(... |
package io.spine.server.stand;
import com.google.protobuf.Any;
import io.spine.base.Identifier;
import io.spine.client.EntityId;
import io.spine.client.EntityStateUpdate;
import io.spine.client.EntityUpdates;
import io.spine.client.Subscription;
import io.spine.client.SubscriptionUpdate;
import io.spine.core.Responses;... |
package umm3601.digitalDisplayGarden.Authentication;
// For interacting with Google OAuth
import com.github.scribejava.apis.GoogleApi20;
import com.github.scribejava.core.builder.ServiceBuilder;
import com.github.scribejava.core.model.OAuth2AccessToken;
import com.github.scribejava.core.oauth.OAuth20Service;
// For par... |
package org.apache.easyant.tasks;
import java.io.File;
import java.util.Iterator;
import org.apache.easyant.core.EasyAntMagicNames;
import org.apache.ivy.core.LogOptions;
import org.apache.ivy.core.module.id.ModuleRevisionId;
import org.apache.ivy.core.report.ArtifactDownloadReport;
import org.apache.ivy.core.report.Re... |
package io.spine.server.entity;
import com.google.common.collect.Lists;
import com.google.common.truth.IterableSubject;
import com.google.common.truth.OptionalSubject;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import com.google.protobuf.Any;
import com.google.protobuf.FieldMask;
import com.google.p... |
package com.atilika.kuromoji.fst;
import java.io.IOException;
import java.io.LineNumberReader;
import java.io.Reader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public class FSTBuilder {
// Note that FST only allows the presorted d... |
package com.bemobi.controller;
import com.bemobi.model.UrlResponse;
import com.bemobi.repository.UrlRepository;
import com.bemobi.service.UrlService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import... |
package eu.ydp.empiria.player.client.controller.extensions.internal.sound;
import java.util.HashSet;
import java.util.Set;
import com.google.gwt.core.client.GWT;
import com.google.gwt.media.client.Audio;
import com.google.gwt.media.client.Video;
import com.google.inject.Inject;
import com.google.inject.Provider;
import... |
package com.bwfcwalshy.flarebot;
import com.bwfcwalshy.flarebot.music.MusicManager;
import com.google.gson.JsonParseException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import sx.blah.discord.handle.obj.IChannel;
import sx.blah.discord.handle.obj.IMessage;
import sx.blah.d... |
package org.codehaus.mojo.aspectj;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import org.apache.maven.artifact.handler.ArtifactHandler;
import org.apache.maven.plugin.MojoExecutionException;
i... |
package ca.corefacility.bioinformatics.irida.ria.integration.pages.projects;
import ca.corefacility.bioinformatics.irida.ria.integration.pages.AbstractPage;
import ca.corefacility.bioinformatics.irida.ria.integration.utilities.PageUtilities;
import com.google.common.collect.Ordering;
import org.openqa.selenium.By;
impo... |
package net.md_5.bungee;
import net.md_5.bungee.config.Configuration;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.Calendar;
import java.util.Collection;
import java.util.Coll... |
package com.comandante.creeper;
import com.comandante.creeper.Items.*;
import com.comandante.creeper.entity.EntityManager;
import com.comandante.creeper.managers.GameManager;
import com.comandante.creeper.merchant.*;
import com.comandante.creeper.npc.Npc;
import com.comandante.creeper.npc.NpcExporter;
import com.comand... |
package rationals;
/**
* Defines a Transition (an edge from a state to a state) in an Automaton
*
* This class defines the notion of transition of an automaton. a transition is
* a triple <em>(q , l , q')</em> where <em>q, q'</em> are states and
* <em>l</em> a label. States <em>q</em> and <em>q'</em> must belong t... |
package com.splicemachine.derby.impl.sql.execute.constraint;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import com.splicemachine.hbase.batch.WriteContext;
import com.splicemachine.hbase.batch.WriteHandler;
import com.splicemachine.hbas... |
package me.katefiore.mlpblindbaghelper.base;
public class Blindbag implements Comparable<Blindbag> {
public final int wave;
public final String name;
public final String id;
public final int wave_color;
public final String[] images;
public Blindbag(int wave, String id, String name, int wave_colo... |
package com.defano.hypertalk.util;
import com.defano.hypertalk.ast.model.enums.ConvertibleDateFormat;
import com.defano.hypertalk.ast.model.Convertible;
import com.defano.hypertalk.ast.model.enums.LengthAdjective;
import com.defano.hypertalk.ast.model.Value;
import java.text.*;
import java.util.Calendar;
import java.ut... |
package org.simmetrics.metrics;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import org.simmetrics.StringMetric;
public abstract class StringMetricTest {
protected class T {
... |
package org.devnull.matchmaking;
/**
* TODO: Write this!
*/
public interface PlayerInterface {
/**
* Returns the name of this player.
*
* @return the name of this player, which is a non-null String
*/
String getName();
/**
* Returns the number of battles this player has won.
... |
package com.digium.respokesdk;
import android.content.Context;
import android.util.Log;
import com.digium.respokesdk.RestAPI.APIDoOpen;
import com.digium.respokesdk.RestAPI.APIGetToken;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java... |
package joliex.wsdl;
import com.ibm.wsdl.PortTypeImpl;
import com.ibm.wsdl.ServiceImpl;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.net.URI;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
impor... |
package org.icij.extract.extractor;
import org.apache.poi.poifs.filesystem.*;
import org.apache.tika.io.TemporaryResources;
import org.apache.tika.io.TikaInputStream;
import org.apache.tika.metadata.Metadata;
import org.apache.tika.metadata.TikaCoreProperties;
import org.apache.tika.parser.ParseContext;
import org.apac... |
package org.shipkit.internal.gradle.util.handler;
import java.util.ArrayList;
import java.util.List;
import org.gradle.api.GradleException;
public class ProcessExceptionHandler {
private List<TaskExceptionHandler> exceptionHandlers = new ArrayList<TaskExceptionHandler>();
public void runProcessExceptionally(Run... |
package de.st_ddt.crazylogin.listener;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;... |
package com.evanlennick.retry4j;
import java.time.Duration;
public class CallResults<T> {
private long startTime;
private long endTime;
private String callName;
private boolean wasSuccessful;
private int totalTries;
private Duration totalElapsedDuration;
private T result;
private Excepti... |
package twitter4j.internal.http.alternative;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.H... |
//! \file SFGraphView.java
//! \brief Graphics view with media overlay surface placed behind its window.
package rhcad.touchvg.view;
import rhcad.touchvg.IGraphView;
import rhcad.touchvg.core.GiCoreView;
import rhcad.touchvg.core.GiView;
import rhcad.touchvg.core.Ints;
import rhcad.touchvg.view.internal.BaseViewAdapter... |
package de.uos.inf.did.abbozza.handler;
import com.sun.net.httpserver.Headers;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import de.uos.inf.did.abbozza.AbbozzaLocale;
import de.uos.inf.did.abbozza.AbbozzaLogger;
import de.uos.inf.did.abbozza.AbbozzaServer;
import java.io.Buff... |
package com.sun.star.lib.uno.helper;
import com.sun.star.uno.XComponentContext;
import com.sun.star.lang.XSingleComponentFactory;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.lang.XInitialization;
import com.sun.star.registry.XRegistryKey;
import com.sun.star.uno.UnoRuntime;
/** Factory helper class suppo... |
package com.evolvedbinary.j8fu;
import com.evolvedbinary.j8fu.tuple.*;
import java.util.*;
import java.util.function.Supplier;
import static com.evolvedbinary.j8fu.Either.Left;
import static com.evolvedbinary.j8fu.Either.Right;
import static com.evolvedbinary.j8fu.tuple.Tuple.Tuple;
/**
* Functional utility methods th... |
package org.jboss.modules;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.net.URL;
import java.security.AccessControlContext;
import java.security.AccessController;
import java.security.PrivilegedExceptionAction;
import java.security.SecureClassLoader;
import java.ut... |
package org.xwiki.model.internal.reference;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.xwiki.component.annotation.Component;
import org.xwiki.component.annotation.Requirement;
import org.xwiki.model.EntityType;
import org.xwik... |
package jmini3d.android;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import jmini3d.GpuObjectStatus;
import jmini3d.MatrixUtils;
import jmini3d.Object3d;
import jmini3d.Scene;
import jmini3d.android.compat.CompatibilityWrapper5;
import jmini3d.android.input.TouchCon... |
package ch.docbox.cdach;
import java.io.File;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Vector;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.Marshaller;
import ... |
package org.zstack.sdk;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import okhttp3.*;
import okhttp3.internal.http.HttpMethod;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.*;
... |
package wingset;
import java.util.*;
import org.wings.SBorderLayout;
import org.wings.SComponent;
import org.wings.SDimension;
import org.wings.SGridLayout;
import org.wings.SLabel;
import org.wings.SPanel;
import org.wings.STextField;
import org.wingx.XSuggest;
import org.wingx.XSuggestDataSource;
/**
* Example demon... |
// $Id: Dome.java 4131 2009-03-19 20:15:28Z blaine.dev $
package com.jme3.scene.shape;
import com.jme3.export.InputCapsule;
import com.jme3.export.JmeExporter;
import com.jme3.export.JmeImporter;
import com.jme3.export.OutputCapsule;
import com.jme3.math.FastMath;
import com.jme3.math.Vector3f;
import com.jme3.scene.Me... |
package com.github.fjdbc;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Objects;
public abstract class ConnectionProvider {
private Connection currentCnx;
public final Connection borrow() throws SQLException {
if (currentCnx != null) throw new IllegalStateException(
... |
package org.jsoftware.utils.io;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;... |
package org.xwiki.rendering.wikimodel.xhtml.impl;
import org.xwiki.component.annotation.Component;
/**
* @version $Id$
* @since 4.0M1
* @deprecated use org.xwiki.xml.internal.LocalEntityResolver instead
*/
@Deprecated
// TODO: Work around the fact that LocalEntityResolver is a Component while org.xwiki.xml.internal... |
package cryptohelper.data;
import cryptohelper.interfaces.CalcolatoreMappatura;
/**
*
* @author Sasha Alexandru Podgoreanu
*/
public class CalcolatoreParolaChiave extends CalcolatoreMappatura {
@Override
public Mappatura calcola(String chiave) {
chiave = chiave.toLowerCase();
Mappatura m = ne... |
package com.github.kmkt.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Objects;
public class StreamSplitter implements AutoCloseable {
private byte[] delimiter = null;
private int delimiterLength;
private int[] skipTable = new int[256]; // QuickSearch... |
package org.opendaylight.yangtools.yang.parser.spi.meta;
import com.google.common.base.Preconditions;
import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSe... |
package cz.cuni.lf1.lge.ThunderSTORM;
public class ThunderSTORM {
public static final String VERSION = "dev-2013-09-16-b1";
public static final String URL_DAILY = "https://googledrive.com/host/0BzOGc-xMFyDYR1JaelZYQmJsaUE/builds/daily";
public static final String URL_STABLE = "https://googledrive.com/host/0... |
package com.github.nsnjson.decoding;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.Optional;
public class Decoder {
private static final Decoding DEFAULT_DECODING = new DefaultDecoding();
public static Optional<JsonNode> decode(JsonNode presentation) {
return DEFAULT_DECODING.decode(p... |
package org.lightmare.cache;
import java.io.IOException;
import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.persistence.EntityManagerFactory;
import org.apache.log4j.Logger;
import org.lightmare.jndi.JndiManager;
import org.lightmare.jpa.J... |
package de.bitdroid.flooding.levels;
import static de.bitdroid.flooding.pegelonline.PegelOnlineSource.COLUMN_LEVEL_TIMESTAMP;
import static de.bitdroid.flooding.pegelonline.PegelOnlineSource.COLUMN_LEVEL_TYPE;
import static de.bitdroid.flooding.pegelonline.PegelOnlineSource.COLUMN_LEVEL_UNIT;
import static de.bitdroid.... |
package org.lightmare.cache;
import java.io.IOException;
import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.persistence.EntityManagerFactory;
import org.apache.log4j.Logger;
import org.lightmare.jndi.JndiManager;
import org.lightmare.jpa.J... |
package de.kisi.android.ui;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import ... |
package org.lightmare.jpa.datasource;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import org.lightmare.jpa.datasource.Initializer.... |
package com.machine.learning.classifier;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
public class ID3 implements Comparable {
List<DataPoint> trainingData = new ArrayList<>();
List<DataPoint> validationData = new ArrayList<>();
DecisionTree dt;
public class DecisionT... |
package de.openpizza.android.service;
import android.app.Activity;
import android.os.AsyncTask;
import com.google.gson.Gson;
import de.openpizza.android.service.data.OrderRequest;
import de.openpizza.android.service.data.OrderResponse;
import de.openpizza.android.service.restapi.RESTService;
import de.openpizza.android... |
package org.lightmare.jpa.datasource;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
imp... |
package com.mattcorallo.relaynode;
import com.google.bitcoin.core.*;
import com.google.bitcoin.net.NioClientManager;
import com.google.bitcoin.net.NioServer;
import com.google.bitcoin.net.StreamParser;
import com.google.bitcoin.net.StreamParserFactory;
import com.google.bitcoin.params.MainNetParams;
import com.google.b... |
package com.gmail.jameshealey1994.simplepvptoggle.commands;
import com.gmail.jameshealey1994.simplepvptoggle.SimplePVPToggle;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/**
* Command executor for the SimplePVPT... |
package org.lightmare.jpa.datasource;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import org.lightmare.jpa.datasource.Initializer.... |
package com.microsoft.tfs.demo;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;
import java.util.ArrayList;
@Path("/images")
public class ImageService {
private final static List<Image> planetaries;... |
package com.crescentflare.viewletcreator;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.crescentflare.viewletcreator.binder.ViewletBinder;
import com.crescentflare.viewletcreator.utility.ViewletMapUtil;
import java.util.ArrayList;
import java.util.HashMap;
import ja... |
package com.ninty.nativee.sun.misc;
import com.ninty.nativee.INativeMethod;
import com.ninty.nativee.NaMethodManager;
import com.ninty.runtime.LocalVars;
import com.ninty.runtime.NiFrame;
import com.ninty.runtime.heap.NiObject;
import sun.misc.Unsafe;
import java.lang.reflect.Field;
public class NaUnsafe {
private ... |
package org.neo4j.util.index;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import... |
//start of PreLh1Decoder.java
//TEXT_STYLE:CODE=Shift_JIS(Japanese):RET_CODE=CRLF
package com.orangesignal.jlha;
//import classes and interfaces
import java.io.InputStream;
import java.lang.Math;
//import exceptions
import java.io.IOException;
import java.io.EOFException;
import java.lang.NullPointerException;
import c... |
package org.opennars.inference;
import org.opennars.control.ConceptProcessing;
import org.opennars.control.DerivationContext;
import org.opennars.entity.*;
import org.opennars.io.Symbols;
import org.opennars.io.Symbols.NativeOperator;
import org.opennars.language.*;
import org.opennars.main.Parameters;
import java.util... |
package com.orasi.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class ExcelDocumentRead... |
package com.podio.hudson;
import hudson.Extension;
import hudson.Launcher;
import hudson.model.BuildListener;
import hudson.model.Result;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Run;
import hudson.model.User;
import hudson.scm.ChangeLogSet;
import hudson.scm.ChangeLog... |
package org.objectweb.proactive.extra.scheduler.task;
import org.objectweb.proactive.extra.scheduler.common.task.TaskId;
import org.objectweb.proactive.extra.scheduler.common.task.TaskResult;
/**
* Class representing the task result.
* A task result can be an exception or an object that you have to cast into your own... |
package info.nightscout.androidaps.plugins.general.wear.wearintegration;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.HandlerThread;
import android.util.Log;
import androidx.annotation.NonNull;
import com.google.android.gms.common.Con... |
package com.sensei.conf;
import java.io.File;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFa... |
package nodomain.freeyourgadget.gadgetbridge.service.devices.banglejs;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import androi... |
/**
Khalid
*/
package org.sikuli.slides.core;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.io.FilenameUtils;
import org.sikuli.slides.media.So... |
package org.smoothbuild.lang.parse;
import static java.util.Optional.empty;
import static org.smoothbuild.lang.base.type.api.ItemSignature.toItemSignatures;
import static org.smoothbuild.lang.base.type.api.TypeNames.isVariableName;
import static org.smoothbuild.lang.parse.InferArgsToParamsAssignment.inferArgsToParamsAs... |
package com.ubervu.river.github;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonStreamParser;
import org.apache.commons.codec.digest.DigestUtils;
import org.elasticsearch.action.bulk.BulkProcessor;
import org.elasticsearch.action.bulk.... |
package org.csstudio.utility.pv.epics;
import java.util.concurrent.atomic.AtomicInteger;
import org.csstudio.platform.data.IDoubleValue;
import org.csstudio.platform.data.IEnumeratedMetaData;
import org.csstudio.platform.data.IEnumeratedValue;
import org.csstudio.platform.data.ILongValue;
import org.csstudio.platform.d... |
package org.spongepowered.api.event.cause;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.s... |
package control;
import gui.modal.CameraShotCreationModalView;
import gui.modal.DirectorShotCreationModalView;
import javafx.event.EventHandler;
import javafx.scene.control.CheckBox;
import javafx.scene.input.KeyCode;
import javafx.scene.input.MouseEvent;
import javafx.scene.paint.Color;
import java.util.List;
public c... |
package org.spongepowered.api.event.cause;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.apache.commons.lang3.Validate.noNullElements;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableL... |
package cz.pfreiberg.knparser.parser;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import cz.pfreiberg.kn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.