answer stringlengths 17 10.2M |
|---|
package dr.app.beagle.evomodel.substmodel;
import dr.app.beagle.evomodel.sitemodel.SiteRateModel;
import dr.app.beagle.evomodel.treelikelihood.AncestralStateBeagleTreeLikelihood;
import dr.app.beagle.evomodel.utilities.TreeTraitLogger;
import dr.evolution.datatype.Codons;
import dr.evolution.tree.NodeRef;
import dr.evo... |
package flow.netbeans.markdown.typinghooks;
import flow.netbeans.markdown.csl.MarkdownLanguageConfig;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.text.BadLocationException;
import javax.swing.text.StyledDocument;
import org.netbeans.api.editor.mimelookup.MimePath;
import org.netbe... |
package nl.mpi.arbil.ui;
import nl.mpi.arbil.ArbilMetadataException;
import nl.mpi.arbil.userstorage.ArbilSessionStorage;
import nl.mpi.arbil.templates.ArbilFavourites;
import nl.mpi.arbil.data.ArbilTreeHelper;
import nl.mpi.arbil.data.ArbilDataNode;
import java.awt.Container;
import java.awt.datatransfer.Clipboard;
im... |
import java.util.*;
final class Minimum {
private static short minimum(final short[] values)
{
short result = Short.MAX_VALUE;
for (final short v: values) {
if (v < result) {
result = v;
}
}
return result;
}
public static void main(... |
package alien4cloud.paas.cloudify3;
import java.util.Collections;
import java.util.Map;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import alien4cloud.model.co... |
package au.com.agic.apptesting.utils.impl;
import au.com.agic.apptesting.constants.Constants;
import au.com.agic.apptesting.drivers.PhantomJSFixedDriver;
import au.com.agic.apptesting.exception.DriverException;
import au.com.agic.apptesting.utils.ProxyDetails;
import au.com.agic.apptesting.utils.SystemPropertyUtils;
im... |
package ch.hsr.whitespace.javapilot.akka;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zuehlke.carrera.relayapi.messages.PenaltyMessage;
import com.zuehlke.carrera.relayapi.messages.SensorEvent;
import com.zuehlke.carrera.time... |
package cloud.swiftnode.kspam.abstraction.checker;
import cloud.swiftnode.kspam.abstraction.Info;
import cloud.swiftnode.kspam.abstraction.SpamChecker;
import org.bukkit.entity.Player;
public class LocalChecker extends SpamChecker {
public LocalChecker(Info info) {
super(info);
}
@Override
publi... |
package com.InfinityRaider.AgriCraft.tileentity;
import com.InfinityRaider.AgriCraft.api.v1.IDebuggable;
import com.InfinityRaider.AgriCraft.api.v1.IFertiliser;
import com.InfinityRaider.AgriCraft.api.v1.ISeedStats;
import com.InfinityRaider.AgriCraft.api.v1.ITrowel;
import com.InfinityRaider.AgriCraft.apiimpl.v1.Plant... |
package com.foundationdb.sql.optimizer.rule;
import com.foundationdb.sql.optimizer.rule.cost.CostEstimator;
import com.foundationdb.sql.optimizer.rule.join_enum.*;
import com.foundationdb.sql.optimizer.rule.join_enum.DPhyp.ExpressionTables;
import com.foundationdb.sql.optimizer.rule.join_enum.DPhyp.JoinOperator;
import... |
package com.github.apixandru.games.rummikub.ui;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JComponent;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
/**
* @aut... |
package com.github.klieber.phantomjs.mojo;
import com.github.klieber.phantomjs.archive.PhantomJSArchive;
import com.github.klieber.phantomjs.archive.PhantomJSArchiveBuilder;
import de.schlichtherle.truezip.file.TFile;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Lif... |
package com.github.nutomic.controldlna.gui;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
im... |
package javaUtilities;
import java.io.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.util.concurrent.locks.*;
/**
* A reentrant read-write lock allowing at most one designated upgradable thread
* that can switch between reading and writing. Other readers can ac... |
package com.ichorcommunity.latch.listeners;
import com.ichorcommunity.latch.Latch;
import com.ichorcommunity.latch.entities.Lock;
import com.ichorcommunity.latch.interactions.AbstractLockInteraction;
import com.ichorcommunity.latch.utils.LatchUtils;
import org.spongepowered.api.block.BlockSnapshot;
import org.spongepow... |
package com.imcode.imcms.domain.service.api;
import com.imcode.imcms.components.MenuHtmlConverter;
import com.imcode.imcms.domain.dto.MenuDTO;
import com.imcode.imcms.domain.dto.MenuItemDTO;
import com.imcode.imcms.domain.exception.SortNotSupportedException;
import com.imcode.imcms.domain.service.AbstractVersionedConte... |
package com.imcode.imcms.domain.service.api;
import com.imcode.imcms.components.MenuHtmlConverter;
import com.imcode.imcms.domain.dto.MenuDTO;
import com.imcode.imcms.domain.dto.MenuItemDTO;
import com.imcode.imcms.domain.exception.SortNotSupportedException;
import com.imcode.imcms.domain.service.AbstractVersionedConte... |
package com.ranorex.jenkinsranorexplugin.util;
import java.security.InvalidParameterException;
import java.util.ArrayList;
import java.util.Arrays;
public class RanorexParameter {
private static final ArrayList<String> WHITELIST_PARAM_FLAGS = new ArrayList<>(Arrays.asList(
"pa", "param"
));
priv... |
package com.searchbox.core.search.stat;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.response.QueryResponse;
import com.searchbox.anno.SearchAdaptor;
import com.searchbox.core.adaptor.SolrElementAdapter;
import com.searchbox.core.dm.Collection;
import com.searchbox.core.dm.Preset;
... |
package com.sequenceiq.ambari.shell.commands;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.shell.core.CommandMarker;
import org.springframework.shell.core.annotation.CliAvailabilityIndicator;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframe... |
package org.basex.query.expr;
import static org.basex.query.QueryText.*;
import java.util.*;
import org.basex.query.*;
import org.basex.query.expr.path.*;
import org.basex.query.func.*;
import org.basex.query.iter.*;
import org.basex.query.util.*;
import org.basex.query.util.list.*;
import org.basex.query.value.*;
impo... |
package com.transparent.politics.dao.data;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
i... |
package de.uni_potsdam.hpi.bpt.bp2014.jcore.rest;
import de.uni_potsdam.hpi.bpt.bp2014.database.*;
import de.uni_potsdam.hpi.bpt.bp2014.jcore.*;
import de.uni_potsdam.hpi.bpt.bp2014.util.JsonUtil;
import org.json.JSONArray;
import org.json.JSONObject;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
import javax.... |
package net.hyperic.sigar.win32;
import java.util.Arrays;
import java.util.List;
public class Service extends Win32 {
// Service State
public static final int SERVICE_STOPPED = 0x00000001;
public static final int SERVICE_START_PENDING = 0x00000002;
public static final int SERVICE_STOP_PENDIN... |
package eu.goodlike.twitch.playlist;
import eu.goodlike.functional.Futures;
import eu.goodlike.functional.Optionals;
import eu.goodlike.io.log.CustomizedLogger;
import eu.goodlike.libraries.okhttp.HttpUrls;
import eu.goodlike.twitch.CompletableFutureErrorHandler;
import eu.goodlike.twitch.download.configurations.policy... |
package eu.matejkormuth.weronicamc.spectating;
import com.google.common.base.Preconditions;
import eu.matejkormuth.weronicamc.Dependency;
import eu.matejkormuth.weronicamc.Module;
import eu.matejkormuth.weronicamc.PluginAccessor;
import eu.matejkormuth.weronicamc.spectating.commands.SpectateCommandExecutor;
import eu.m... |
package io.github.thatsmusic99.headsplus.reflection;
import com.mojang.authlib.GameProfile;
import io.github.thatsmusic99.headsplus.HeadsPlus;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.block.Block;
import org.bukkit.inventory.ItemStack;
import java.lang.reflect.Constructor;
import j... |
package io.mycat.server.interceptor.impl;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import io.mycat.server.interceptor.SQLInterceptor;
public class DefaultSqlInterceptor implements SQLInterceptor {
private static final Pattern p = Pattern.compile("\\'", Pattern.LITERAL);
private static fin... |
package bndtools.views;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.ac... |
package io.proleap.cobol.asg.runner.impl;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import org.apache.commons.io.FilenameUtils;
import org.apache.co... |
package io.usethesource.capsule.core;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.Spliterator;
import java.u... |
package mcjty.deepresonance.blocks.purifier;
import elec332.core.world.WorldHelper;
import mcjty.container.InventoryHelper;
import mcjty.deepresonance.blocks.base.ElecTileBase;
import mcjty.deepresonance.blocks.tank.ITankHook;
import mcjty.deepresonance.blocks.tank.TileTank;
import mcjty.deepresonance.config.ConfigMach... |
package me.coley.recaf.decompile.fernflower;
import me.coley.recaf.workspace.Workspace;
import org.jetbrains.java.decompiler.main.*;
import org.jetbrains.java.decompiler.main.extern.*;
import org.jetbrains.java.decompiler.struct.*;
import org.jetbrains.java.decompiler.struct.lazy.LazyLoader;
import org.jetbrains.java.d... |
package org.caleydo.view.domino.internal.data;
import java.util.Arrays;
import java.util.Collection;
import java.util.Set;
import org.caleydo.core.data.collection.EDimension;
import org.caleydo.core.data.collection.Histogram;
import org.caleydo.core.data.perspective.variable.Perspective;
import org.caleydo.core.util.ba... |
package org.jenkinsci.plugins.jobprofiles;
import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.tasks.BuildWrapper;
import hudson.tasks.BuildWrapperDescriptor;
import org.kohsuke.stapler.DataBoundConstructor;
import java.util.Map;
public class JobProfileProperties extends BuildWrapper{
publi... |
package org.owasp.esapi.reference;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
impo... |
package org.sagebionetworks.web.client;
import static com.google.gwt.http.client.RequestBuilder.DELETE;
import static com.google.gwt.http.client.RequestBuilder.GET;
import static com.google.gwt.http.client.RequestBuilder.POST;
import static com.google.gwt.http.client.RequestBuilder.PUT;
import static org.apache.http.Ht... |
package org.sistemafinanciero.controller;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
impor... |
package org.synyx.urlaubsverwaltung.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest;
import org.springframework.boot.actuate.health.HealthEndpoint;
import org.springframework.boot.actuate.metrics.export.prome... |
package team.creative.creativecore.reflection;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Arrays;
public class ReflectionHelper {
public static <T> Field findField(Class<? super T> clazz, String offical, String obfuscated) {
try {
Field f = clazz.getDeclare... |
package ua.pp.condor.jbattlecity.area.actions;
import ua.pp.condor.jbattlecity.JBattleCity;
import ua.pp.condor.jbattlecity.area.Cell;
import ua.pp.condor.jbattlecity.area.MapState;
import ua.pp.condor.jbattlecity.tank.Orientation;
import ua.pp.condor.jbattlecity.tank.TankState;
import java.util.Collection;
import java... |
package ee.ria.xroad.monitor;
import ee.ria.xroad.common.SystemProperties;
import ee.ria.xroad.common.conf.serverconf.ServerConf;
import ee.ria.xroad.common.util.CryptoUtils;
import ee.ria.xroad.monitor.CertificateMonitoringInfo.CertificateType;
import ee.ria.xroad.monitor.common.SystemMetricNames;
import ee.ria.xroad.... |
package net.domesdaybook.compiler.multisequence;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.domesdaybook.compiler.CompileException;
import net.domesdaybook.compiler.Compiler;
import net.domesdaybook.compiler.sequence.SequenceMatcherCompile... |
package net.java.sip.communicator.impl.protocol.jabber;
import java.lang.reflect.*;
import java.util.*;
import org.jivesoftware.smack.packet.*;
import net.java.sip.communicator.impl.protocol.jabber.extensions.gtalk.*;
import net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.*;
import net.java.sip.communi... |
package org.eclipse.imp.pdb.facts.impl.primitive;
import java.net.URI;
import java.net.URISyntaxException;
import org.eclipse.imp.pdb.facts.impl.primitive.IURI;
/*
* Not supported: in URI class, scheme is case insensitive, but this is already kinda broken, since on windows & osx, so should path's be.
*/
/*package*/ c... |
package org.objectweb.proactive.core.runtime.ibis;
import ibis.rmi.Remote;
import ibis.rmi.RemoteException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import org.apache.log4j.Logger;
import org.objectweb.proactive.Body;
import org.objectweb.proactive.core.body.UniversalBody;
import org.objec... |
package org.royaldev.royalcommands.listeners;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.asascience.ncsos.describeSen;
import com.asascience.ncsos.outputformatter.SOSOutputFormatter;
import com.asascience.ncsos.service.SOSParser;
import com.asascience.ncsos.util.XMLDomUtils;
import java.io.*;
imp... |
package com.crawljax.plugins.crawloverview;
import static org.hamcrest.collection.IsArrayWithSize.arrayWithSize;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import java.io.File;
import org.apache.commons.io.FileUtils;
import org.junit.Rule;
import org.junit.Test;
import org.junit.r... |
package com.faforever.client.chat;
import com.faforever.client.achievements.AchievementDefinitionBuilder;
import com.faforever.client.achievements.AchievementItemController;
import com.faforever.client.achievements.AchievementService;
import com.faforever.client.achievements.PlayerAchievementBuilder;
import com.faforev... |
package com.fatboyindustrial.gsonjodatime;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.joda.time.Instant;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
/**
* Tests for {@link Inst... |
package com.ghusse.violations.bbcloud.lib;
import com.ghusse.ci.violations.bbcloud.lib.CommentsProvider;
import com.ghusse.ci.violations.bbcloud.lib.CommentsProviderError;
import com.ghusse.ci.violations.bbcloud.lib.DiffParser;
import com.ghusse.ci.violations.bbcloud.lib.PullRequestDescription;
import com.ghusse.ci.vio... |
import com.github.mavogel.client.ILIASSoapWebserviceBindingStub;
import com.github.mavogel.client.ILIASSoapWebserviceLocator;
import com.github.mavogel.client.ILIASSoapWebservicePortType;
import com.github.mavogel.ilias.model.IliasNode;
import com.github.mavogel.ilias.model.LoginConfiguration;
import com.github.mavogel... |
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.NfsfwRipper;
public class NfsfwRipperTest extends RippersTest {
} |
package digital.loom.rhizome.authentication;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.L... |
package uk.co.plogic.gwt.lib.widget.dataVisualisation;
import java.util.ArrayList;
import java.util.logging.Logger;
import uk.co.plogic.gwt.lib.events.DataVisualisationEvent;
import uk.co.plogic.gwt.lib.events.DataVisualisationEventHandler;
import uk.co.plogic.gwt.lib.map.overlay.OverlayHasMarkers;
import uk.co.plogic.... |
package com.stubbornjava.common;
import java.io.IOException;
import java.net.CookieManager;
import java.net.CookiePolicy;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.util.concurrent.TimeUnit;
import javax.net.ssl... |
package com.bbn.kbp.events;
import com.bbn.bue.common.TextGroupImmutable;
import com.bbn.bue.common.evaluation.BootstrapInspector;
import com.bbn.bue.common.evaluation.BootstrapWriter;
import com.bbn.bue.common.evaluation.EvalPair;
import com.bbn.bue.common.math.PercentileComputer;
import com.bbn.bue.common.symbols.Sym... |
package labs;
import java.awt.*;
import javax.swing.*;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferedImage;
@SuppressWarnings("serial")
public class Animator extends JFrame {
//TODO use system specific dimensions
private static final int WIDTH = 800;
privat... |
package PortalBlock;
import java.util.HashMap;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit... |
package cz.vutbr.fit.iha.activity;
import java.util.List;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.support... |
package org.micromanager.utils;
import java.awt.AWTEvent;
import java.awt.Button;
import java.awt.Component;
import java.awt.Toolkit;
import java.awt.Window;
import java.awt.event.AWTEventListener;
import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import javax.swing.AbstractButton;
import javax.swing... |
/**
* Instructions
* insert this into java vm command line -ea -Xss100m (go to run configurations)
*/
package com.algorithms.splay;
import java.util.Random;
public class TreeComparator {
private static boolean thirdTest;
private static boolean speedUp;
private final static int TEN_THOUSAND = 10000;
p... |
package edu.umd.cs.findbugs;
import java.io.IOException;
import java.io.Serializable;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.Itera... |
package com.symantec.yamba;
import android.app.ListFragment;
import android.database.Cursor;
import android.os.Bundle;
import android.text.format.DateUtils;
import android.view.View;
import android.widget.SimpleCursorAdapter;
import android.widget.SimpleCursorAdapter.ViewBinder;
import android.widget.TextView;
public c... |
package org.intermine.xml.full;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;
import org.intermine.metadata.Model;
import org.intermine.metadata.ClassDescriptor;
import org.intermine.util.StringUtil;
import org.int... |
package br.com.blackhubos.eventozero.util;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import ja... |
package edu.umd.cs.findbugs.cloud;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URL;
import java.util.Collection;
import java.util.Date;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.Set;
import javax.annotation.CheckForNull;
import edu.umd.cs.findbugs.BugCollecti... |
package br.com.unesp.manageadbeans;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import javax.annotation.... |
package carelender.view.gui.components;
import carelender.model.strings.AppColours;
import javafx.geometry.VPos;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.TextAlignment;
import java.text.SimpleDateFormat;
import java.util.Date;
i... |
package org.cloudname.flags;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import javax.annotation.PostConstruct;
import junit.framework.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static org.hamcrest.CoreMatchers.i... |
package com.connectsdk.discovery.provider;
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.*;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;
import org.po... |
package com.github.foo;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
import java.util.Queue;
/**
* Class consists static methods that operates on
* Tree.
* <p>The methods of this class all throw a <tt... |
package net.runelite.cache.fs;
import com.google.common.io.Files;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import net.runelite.cache.io.InputStream;
import net.runelite... |
package org.jomdb.fetch;
import java.io.IOException;
import org.jomdb.entity.Movie;
import org.jomdb.utils.CommonUtils;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;
/**
* Retrieves information about a given movie from IMDB based using the OMDB API
* @author Rupak Chakraborty
* @si... |
/*
* This samples uses multiple threads to post synchronous requests to the
* VoltDB server, simulating multiple client application posting
* synchronous requests to the database, using the native VoltDB client
* library.
*
* While synchronous processing can cause performance bottlenecks (each
* caller waits for... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// LIABLE FOR ... |
package com.linkedin.thirdeye.impl;
import com.linkedin.thirdeye.api.StarTree;
import com.linkedin.thirdeye.api.StarTreeConstants;
import com.linkedin.thirdeye.api.StarTreeNode;
import com.linkedin.thirdeye.api.StarTreeQuery;
import com.linkedin.thirdeye.api.StarTreeRecord;
import com.linkedin.thirdeye.api.StarTreeReco... |
package com.thinkaurelius.titan.diskstorage;
import com.google.common.base.Function;
import com.google.common.base.Joiner;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.thinkaurelius.titan.core.TitanConfigurationException;
i... |
import java.io.*;
import java.util.*;
import com.ecyrd.jspwiki.Release;
/**
* Simple utility that shows you a sorted list of property differences between
* the 'default en' and a given i18n file. It also warns if there are any duplicates.
* <p>
* The first argument is the language, and it is mandatory.
* The secon... |
package ru.job4j.models;
import java.text.*;
public class StartUI {
static final String ADDNEW = "0";
static final String SHOWALL = "1";
static final String EDIT = "2";
static final String DELETE = "3";
static final String FINDBYID = "4";
static final String FINDBYNAME = "5";
static final St... |
package waitnotify;
import net.jcip.annotations.ThreadSafe;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.TimeUnit;
@ThreadSafe
public class MyThreadPool implements Executor {
private final Linke... |
package com.akjava.gwt.poseeditor.client;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.akjava.bvh.client.BVH;
import com.akj... |
package mainpackage;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.apache.derby.jdbc.EmbeddedDriver;
public class Database {
public static void main(S... |
package com.bellaire.aerbot.testing;
import org.junit.Before;
import org.junit.Test;
import org.junit.Assert;
import com.bellaire.aerbot.input.InputMethod;
import com.bellaire.aerbot.systems.AccelerometerSystem;
import com.bellaire.aerbot.systems.GyroSystem;
import com.bellaire.aerbot.systems.WheelSystem;
import edu.wp... |
package com.googlecode.networklog;
import android.util.Log;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class ThroughputTracker {
public static String throughputString = "";
static class ThroughputData {
ApplicationsTracker.AppEntry app;
String address;
long upload;... |
package com.gsoltis.androidchat;
import android.app.Activity;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.firebase.client.ChildEventListener;
import com.firebase.client.DataSnapshot;
import com.fireba... |
package com.jackpf.blockchainsearch.Entity;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;
import android.os.AsyncTask;
import com.ja... |
package com.jme.util.resource;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
public class SimpleResourceLocator implements ResourceLocator {
protected URI baseDir;
public SimpleResourceLocator(URI baseDir) {
if (baseDir == ... |
package com.kunze.androidlocaltodo;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import jav... |
package com.onlinephotosubmission.csv_importer;
import javax.net.ssl.HttpsURLConnection;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList... |
package com.smartnsoft.droid4me.ws;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.net.SocketException;
import java.net.URL... |
package com.subgraph.orchid.crypto;
import java.nio.ByteBuffer;
public class TorKeyDerivation {
private final byte[] kdfBuffer;
private int round;
public TorKeyDerivation(byte[] seed) {
this.kdfBuffer = new byte[seed.length + 1];
System.arraycopy(seed, 0, kdfBuffer, 0, seed.length);
}
... |
package com.valkryst.generator;
import com.valkryst.NameGenerator;
import java.util.List;
import java.util.Random;
import java.util.function.IntUnaryOperator;
public final class GrammarNameGenerator implements NameGenerator{
/** The rules of the grammar to use when generating a name. */
private String[] rules;
... |
package com.vinsol.expensetracker.edit;
import java.util.Calendar;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnDismissListener;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import ... |
package com.vmware.vim25.mo.samples;
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import java.util.Hashtable;
import javax.xml.rpc.ServiceException;
import com.vmware.vim25.*;
import com.vmware.vim25.mo.*;
import com.vmware.vim25.mo.util.*;
/**
* This sample code shows h... |
package com.mfk.web.maker.client;
import java.util.Vector;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.event... |
package grakn.core.test.behaviour.graql.explanation.language;
import grakn.core.test.behaviour.server.SingletonTestServer;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import java.lang.reflect.Inv... |
package com.box.l10n.mojito.okapi.filters;
import com.box.l10n.mojito.okapi.CopyFormsOnImport;
import com.box.l10n.mojito.okapi.TextUnitUtils;
import net.sf.okapi.common.Event;
import net.sf.okapi.common.IResource;
import net.sf.okapi.common.LocaleId;
import net.sf.okapi.common.filters.FilterConfiguration;
import net.s... |
package org.knowm.xchange.bitmex;
import java.math.BigDecimal;
import java.math.MathContext;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.Map.Entry;
import org.knowm.xchange.bitmex.dto.account.BitmexTicker;
import org.knowm.xchange.bitmex.dto.account.BitmexWal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.