answer
stringlengths
17
10.2M
package org.zeromq; import zmq.ZError; public class ZMQException extends RuntimeException { public static class IOException extends RuntimeException { private static final long serialVersionUID = 8440355423370109164L; public IOException(java.io.IOException cause) { super(caus...
package roart.client; import roart.model.ResultItem; import java.util.List; import java.util.ArrayList; import java.util.TreeMap; import java.util.Map; import java.util.Date; //import roart.beans.session.misc.Unit; import roart.beans.session.comic.Unit; import roart.beans.session.comic.UnitBuy; import javax.servlet.ann...
package sc.iview.vector; import net.imglib2.Localizable; import net.imglib2.RealLocalizable; import net.imglib2.RealPositionable; /** * Interface for 3D vectors. * * @author Kyle Harrington * @author Curtis Rueden */ public interface Vector3 extends RealLocalizable, RealPositionable { // -- Vector3 methods -- ...
// Triple Play - utilities for use in PlayN-based games package tripleplay.anim; import pythagoras.f.MathUtil; import react.Signal; import playn.core.Game; import playn.core.Pointer; /** * Implements click, and scroll/flick gestures for a single variable (y position by default). When * the pointer is pressed and drag...
package org.webrtc; import java.nio.ByteBuffer; /** Java wrapper for a C++ DataChannelInterface. */ public class DataChannel { /** Java wrapper for WebIDL RTCDataChannel. */ public static class Init { public boolean ordered = true; // Optional unsigned short in WebIDL, -1 means unspecified. public int m...
package net.genesishub.gFeatures.Feature.gWarsSuite.Multiplayer; import net.genesishub.gFeatures.Feature.gWarsSuite.Statistics; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.me...
package net.java.sip.communicator.plugin.provisioning; import java.io.*; import java.net.*; import java.util.*; import javax.swing.*; import net.java.sip.communicator.service.configuration.*; import net.java.sip.communicator.service.credentialsstorage.*; import net.java.sip.communicator.service.gui.*; import net.java.s...
package org.ensembl.healthcheck.testcase.generic; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; import org.ensembl.healthcheck.DatabaseRegistryEntry; import org.ensembl.healthcheck.Repo...
package de.terrestris.shogun2.util.http; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.Proxy; import java.net.ProxySelector; import java.net.URI; import java.net.URISyntaxException; import jav...
package com.basho.riak.client.api.commands.itest; import com.basho.riak.client.api.RiakClient; import com.basho.riak.client.api.commands.kv.BatchDelete; import com.basho.riak.client.api.commands.kv.FetchValue; import com.basho.riak.client.api.commands.kv.StoreValue; import com.basho.riak.client.core.RiakFuture; import ...
package com.github.dannil.httpdownloader.test.utility; import java.util.LinkedList; import java.util.List; import java.util.Random; import org.joda.time.DateTime; import com.github.dannil.httpdownloader.model.Download; import com.github.dannil.httpdownloader.model.User; public final class TestUtility { // TODO Chan...
package duro.reflang.ast; public interface ASTVisitor { void visitMessageExchange(ASTMessageExchange ast); void visitMessage(ASTMessage ast); void visitThis(ASTThis ast); void visitNull(ASTNull ast); void visitTrue(ASTTrue ast); void visitFalse(ASTFalse ast); void visitFrame(ASTFrame ast); ...
package com.rarchives.ripme.tst.ripper.rippers; import com.rarchives.ripme.ripper.rippers.HqpornerRipper; import com.rarchives.ripme.utils.Utils; import java.io.IOException; import java.net.URL; public class HqpornerRipperTest extends RippersTest { public void testRip() throws IOException { if (Utils.getCon...
package duro.runtime; import duro.runtime.CustomProcess.Frame; public class ClosureProcess extends DictionaryProcess { private static final long serialVersionUID = 1L; private CustomProcess.Frame frame; private CallFrameInfo callFrameInfo; private CallFrameInfo callCallFrameInfo; public ClosureProce...
package de.dhbw.humbuch.viewmodel; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import com.google.inje...
package de.dhbw.humbuch.viewmodel; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import com.google.inje...
package org.opencloudb.config.loader.zookeeper; import org.json.JSONObject; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.opencloudb.config.ZookeeperTestServer; import org.opencloudb.config.loader.zookeeper.entitiy.Property; import org.opencloudb.config.loader.zookeeper.entitiy.Ser...
package com.puppycrawl.tools.checkstyle.checks.imports; import com.puppycrawl.tools.checkstyle.checks.imports.AccessResult; import com.puppycrawl.tools.checkstyle.checks.imports.Guard; import com.puppycrawl.tools.checkstyle.checks.imports.PkgControl; import junit.framework.TestCase; public class PkgControlTest extends ...
package org.helioviewer.viewmodel.view.jp2view.image; import java.awt.Rectangle; import org.helioviewer.base.math.Interval; /** * A very simple region of interest class. Basically just an immutable (for * thread safety) rectangle class with less functionality. At the moment the * information contained in this class ...
package com.ippon.kafka.streams.processor; import com.ippon.kafka.streams.model.Effectif; import com.ippon.kafka.streams.serdes.SerdeFactory; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.serialization.Serde; import org.apache.kafka.common.serialization.Serdes; import org.apach...
package net.sf.farrago.test; import java.sql.*; import java.util.*; import javax.jmi.reflect.*; import junit.framework.*; import net.sf.farrago.cwm.relational.*; import net.sf.farrago.fem.security.*; import net.sf.farrago.jdbc.engine.*; import net.sf.farrago.resource.*; import net.sf.farrago.session.*; import net.sf.fa...
import ibis.ipl.*; import java.util.Properties; class Throughput extends Thread { int count = 1000; int transferSize = 0; int rank; int remoteRank; int windowSize = Integer.MAX_VALUE; String ibis_impl = "ibis.ipl.impl.tcp.TcpIbis"; ReceivePort rport; SendPort sport; byte[] data; ...
package com.scg.domain; import java.util.List; import java.util.Properties; import java.io.InputStream; import java.time.LocalDate; import java.util.ArrayList; import java.util.Collections; /** * Invoice encapsulates the attributes and behavior to create client * invoices for a given time period from time cards. The ...
package com.tuxnet.project_euler; public class Main { public static void main(String[] args) { Problem10.solve(); } }
package fi.mikuz.boarder.gui; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.Button; import android.w...
//This code is developed as part of the Java CoG Kit project //This message may not be removed or altered. package org.globus.cog.karajan.scheduler; import java.util.List; import org.globus.cog.karajan.util.BoundContact; // I'm terrible with naming classes public interface ResourceConstraintChecker { /** * Che...
package ca.corefacility.bioinformatics.irida.processing.impl; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.HashMap; import java.util.Map; import javax.imageio.Image...
package com.bullhornsdk.data.model.entity.core.customobject; import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; import com.bullhornsdk.data.model.entity.core.type.CreateEntity; import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; import com.bullhornsdk.data.model.entity.core.ty...
package com.github.mikhailerofeev.mars.calendar.model.values.time; import org.joda.time.*; import org.springframework.web.bind.MethodArgumentNotValidException; public class PlanetDateTime { private DateTime timePoint = null; private DateTime epoch = null; private PlanetCalendar calendar = null; private ...
package org.chocosolver.solver.propagation.hardcoded; import org.chocosolver.solver.ICause; import org.chocosolver.solver.Model; import org.chocosolver.solver.Settings; import org.chocosolver.solver.constraints.Constraint; import org.chocosolver.solver.constraints.Propagator; import org.chocosolver.solver.exception.Con...
package uk.ac.ebi.pride.archive.web.service.controller.protein; import com.mangofactory.swagger.annotations.ApiIgnore; import com.wordnik.swagger.annotations.Api; import com.wordnik.swagger.annotations.ApiOperation; import com.wordnik.swagger.annotations.ApiParam; import org.slf4j.Logger; import org.slf4j.LoggerFactory...
package raptor.connector.ics; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import raptor.chat.Bugger; import raptor.chat.ChatEvent; impor...
package org.spongepowered.common.mixin.api.mcp.util.registry; import com.mojang.serialization.Lifecycle; import net.minecraft.util.RegistryKey; import net.minecraft.util.ResourceLocation; import org.spongepowered.api.ResourceKey; import org.spongepowered.api.registry.Registry; import org.spongepowered.api.registry.Regi...
package org.pentaho.di.repository.kdr.delegates; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.ut...
package org.helioviewer.jhv.plugins.swhvhekplugin; import java.util.ArrayList; import java.util.Date; import java.util.Map; import java.util.Map.Entry; import java.util.SortedMap; import org.helioviewer.jhv.base.time.JHVDate; import org.helioviewer.jhv.data.container.JHVEventContainer; import org.helioviewer.jhv.data.c...
package net.openhft.chronicle.map.fromdocs.acid.revelations; import net.openhft.chronicle.core.values.LongValue; import net.openhft.chronicle.map.ChronicleMap; import net.openhft.chronicle.map.ChronicleMapBuilder; import net.openhft.chronicle.values.Values; import java.io.File; import java.io.IOException; import java.u...
package org.eclipse.xtext.generator.tests; import junit.framework.Test; import junit.framework.TestSuite; /* * automatically generated by org.eclipse.emf.mwe.releng.GenerateTestSuite * * @generated */ public class AllTests { public static Test suite() { TestSuite suite = new TestSuite("Tests for org.eclips...
package org.hibernate.beanvalidation.tck.util.shrinkwrap; import java.util.ArrayList; import java.util.List; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.Asset; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.jboss.shri...
package org.deidentifier.arx.gui; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JOptionPane; import javax.swing.Timer; import org.deidentifier.arx.gui.view.impl.MainWindow; import org.deidentifier.arx.gui.view.impl.Splash; import org.eclipse.swt.events.ShellAdapter; import ...
package gamepack.manager; import gamepack.data.Point; import gamepack.data.PointMatrix; import gamepack.data.drawable.Bomb; import gamepack.data.drawable.Tile; import gamepack.data.drawable.TileList; import gamepack.data.drawable.TileMatrix; import gamepack.utility.Direction; import java.util.ArrayList; import java.uti...
package io.miti.beetle.dbutil; import io.miti.beetle.model.DbType; import io.miti.beetle.util.Logger; import java.io.File; import java.io.IOException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.sql.Connection; import java.sql....
package net.sf.jabref; import java.util.Hashtable; import java.awt.*; import java.awt.event.*; import javax.swing.*; import net.sf.jabref.search.SearchExpression; class SearchManager2 extends SidePaneComponent implements ActionListener, KeyListener, ItemListener { GridBagLayout gbl = new GridBagLayout() ; G...
// 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. See the // You should have received a copy of the GNU Lesser General ...
package org.apache.lucene.index; /** A Term represents a word from text. This is the unit of search. It is composed of two elements, the text of the word, as a string, and the name of the field that the text occured in, an interned string. Note that terms may represent more than words from text fields, but al...
package org.formic.ant; import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.util.ResourceBundle; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Target; import org.apache.tools.ant.Task; import org.apache.tools.ant.taskdefs.Property; import org.apache.tool...
package org.orbeon.oxf.util; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.disk.DiskFileItem; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.log4j.Logger; import org.orbeon.oxf.common.OXFExcepti...
package org.jaxen; import java.io.IOException; import java.util.Iterator; import java.util.List; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.jaxen.dom.DOMXPath; import org.jaxen.dom.NamespaceNode; import org.w3c.dom.Attr; import junit.framework.Test...
package inprotk.carchase2; import inprotk.carchase2.Configuration.CarState; import inprotk.carchase2.World.Street; import inprotk.carchase2.World.WorldPoint; import java.util.LinkedList; import processing.core.PApplet; import processing.core.PImage; import processing.core.PVector; public class CarChaseViewer extends PA...
package inprotk.carchase2; import java.util.ArrayList; import java.util.List; import inprotk.carchase2.Configuration.CarState; import inprotk.carchase2.World.Street; import inprotk.carchase2.World.WorldPoint; import processing.core.PApplet; import processing.core.PImage; import processing.core.PVector; public class Car...
package org.luaj.vm2.lib.jse; import java.io.BufferedInputStream; import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.io.RandomAccessFile; import org.luaj.vm2.Globals; import org.luaj.vm2.LuaError; import org.luaj.vm2....
package nxt; import nxt.BlockchainProcessor.BlockNotAcceptedException; import nxt.NxtException.NotValidException; import nxt.at.AT_Block; import nxt.at.AT_Constants; import nxt.at.AT_Controller; import nxt.at.AT_Exception; import nxt.crypto.Crypto; import nxt.db.Db; import nxt.db.DbIterator; import nxt.db.DerivedDbTabl...
package nxt.at; public class AT_Machine_Processor{ protected AT_Machine_State machineData; private Fun fun = new Fun(); private int getFun(){ if (machineData.getMachineState().pc + 2>=machineData.getCsize()) return -1; else { fun.fun = (machineData.getAp_code(...
package org.sqsh.commands; import static org.sqsh.options.ArgumentRequired.NONE; import static org.sqsh.options.ArgumentRequired.REQUIRED; import java.sql.SQLException; import java.sql.Connection; import java.sql.CallableStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import org...
package jmetest.renderer; import com.jme.app.SimpleGame; import com.jme.bounding.BoundingBox; import com.jme.image.Texture; import com.jme.math.Vector3f; import com.jme.scene.Node; import com.jme.scene.shape.Box; import com.jme.scene.state.TextureState; import com.jme.util.TextureManager; import com.jme.renderer.Render...
package com.faveset.khttp; import java.io.IOException; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.util.Map; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import java.nio.channels.Selector; import java.nio.channels.SelectableChannel...
package cubicchunks; import net.minecraft.world.Dimension; import net.minecraft.world.IChunkProvider; import net.minecraft.world.ISaveHandler; import net.minecraft.world.WorldClient; import net.minecraft.world.WorldServer; import net.minecraft.world.chunk.storage.ChunkLoader; import net.minecraft.world.chunk.storage.IC...
// ModuleDirectory.java package ed.appserver; import java.io.*; import java.util.*; import ed.js.*; import ed.js.engine.*; public class ModuleDirectory extends JSObjectLame implements JSLibrary { public ModuleDirectory( String root , String name , AppContext context , Scope scope ){ this( new File( Module._...
package arjuan; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import java.text.SimpleDateFormat; import java.util.Date; import java.util.concurrent.TimeUnit; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory...
package com.jcabi.aether; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.apache.maven.project.MavenProject; import org.apache.maven.repository.internal.MavenRepositorySystemSession; import org.sonatype.aether.RepositorySystem; import org.sonatype.aether.artifact.Artifact; im...
package com.project1; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.hibernate.Query; import or...
package com.qiniu.common; import java.nio.charset.Charset; // CHECKSTYLE:OFF public final class Config { public static final String VERSION = "7.0.6"; public static final int BLOCK_SIZE = 4 * 1024 * 1024; public static final Charset UTF_8 = Charset.forName("UTF-8"); /** * API */ public sta...
package com.twu.biblioteca; public class User { private String librarynum; private String password; private String name; private String email; private String phone; public User(String librarynum, String password, String name, String email, String phone) { setLibraryNumber(librarynum); ...
package cz.muni.fi.network; import cz.muni.fi.datascrapper.DataTools; import cz.muni.fi.datascrapper.model.Movie; import cz.muni.fi.datascrapper.model.Person; import java.io.IOException; import java.util.*; import java.util.stream.Collectors; public class Main { private static List<Person> actors; private stati...
package edu.rit.csh.models; import java.io.IOException; import java.io.Serializable; import java.util.Calendar; import java.util.HashMap; import java.util.Iterator; import java.util.List; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneT...
package graphql.schema; public interface Coercing { /** * Called to convert a result of a DataFetcher to a valid runtime value. * * @param input is never null * @return null if not possible/invalid */ Object serialize(Object input); /** * Called to resolve a input from a variab...
package hivemall.common; import hivemall.common.WeightValue.WeightValueWithCovar; import hivemall.utils.collections.IMapIterator; import hivemall.utils.collections.OpenHashMap; public final class SparseModel implements PredictionModel { private final OpenHashMap<Object, WeightValue> weights; public SparseModel(...
package hudson.ivy; import static hudson.Util.fixEmpty; import static hudson.model.ItemGroupMixIn.loadChildren; import hudson.CopyOnWrite; import hudson.Extension; import hudson.FilePath; import hudson.Util; import hudson.ivy.builder.AntIvyBuilderType; import hudson.ivy.builder.IvyBuilderType; import hudson.ivy.builder...
public class MathematicalOperations { public int binaryPlus(int x,int y){ return x+y; } /** * Performs integer subtraction operation * @param x The minuend * @param y The subtrahend * @return The difference */ public int binaryMinus(int x, int y) { return x-y; ...
package in.tombo.ponto; import java.io.PrintWriter; import java.util.HashSet; import java.util.List; import java.util.Map.Entry; import java.util.Properties; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.lang.model.SourceVersion; public enum KeyStyle { Flat { @...
package beaform.dao; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.Query; import javax.transaction.NotSupportedException; import javax.transaction.SystemException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import beafor...
package com.datastax.probe; import java.util.Arrays; import org.apache.commons.cli.BasicParser; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.OptionBuilder; import org.apache.commons.cli.Options; imp...
package com.imcode.imcms.db; import com.imcode.imcms.persistence.components.SqlResourcePathResolver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.jdbc.core.ConnectionCallback; import org.springframework.jdbc.core.JdbcTemplate; import javax.sql.DataSource; import java.io.IOExceptio...
package mtr.render; import minecraftmappings.Utilities; import minecraftmappings.UtilitiesClient; import mtr.MTRClient; import mtr.block.BlockSignalLightBase; import mtr.block.BlockSignalSemaphoreBase; import mtr.config.Config; import mtr.data.*; import mtr.gui.ClientCache; import mtr.gui.ClientData; import mtr.gui.IDr...
package com.patreon; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.PropertyNamingStrategy; import com.github.jasminb.jsonapi.DeserializationFeature; import com.github.jasminb.jsonapi.JSONAPIDocument; import com.github.jasminb.jsonapi.ResourceConverter; import com.google.gson....
package net.imagej.ops; /** * An {@link HybridOp} is a {@link ComputerOp} which is able to create the * output object itself. Hence, the "out" parameter is marked optional (i.e., * "required = false") and may be omitted, in which case it will be created * based on the given "in" parameter. * * @author Christian D...
package nuclibook.models; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import nuclibook.server.Renderable; import java.util.HashMap; /** * Model to represent a tracer. */ @DatabaseTable(tableName = "tracers") public class Tracer implements Renderable { @DatabaseField(g...
package core.index; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; public class LockManager { // locks for posting list ReadWriteLock[] postsLocks; // any operation to the version set needs to occupy this lock ReadWriteLock versionLock; pub...
package org.charlie.chess; import org.charlie.chess.directions.Black; import org.charlie.chess.directions.NeighboringSquareDirection; import org.charlie.chess.directions.White; import org.charlie.chess.moves.ChessMove; import org.charlie.chess.moves.Moves; import org.charlie.chess.pieces.*; import org.charlie.chess.pla...
package de.fau.osr.gui; import java.awt.Color; import java.awt.Component; import java.awt.GridLayout; import java.awt.event.MouseListener; import java.awt.event.WindowEvent; import java.io.File; import java.io.IOException; import javax.swing.*; import de.fau.osr.bl.RequirementsTraceabilityMatrix; import de.fau.osr.bl.R...
package org.lantern; import static org.littleshoot.util.FiveTuple.Protocol.*; import java.net.ConnectException; import java.net.InetSocketAddress; import java.net.URI; import java.util.Date; import java.util.concurrent.atomic.AtomicLong; import javax.net.ssl.SSLEngine; import org.lantern.proxy.BaseChainedProxy; import ...
package org.lantern; import java.io.File; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import java.net.URI; import java.net.URISyntaxException; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.Map; impor...
package org.neo4j.webadmin; import java.net.URI; import java.net.URISyntaxException; import org.neo4j.helpers.Args; import org.neo4j.rest.WebServer; import org.neo4j.rest.domain.DatabaseLocator; /** * Main entry point for the neo4j stand-alone REST system with web * administration. This code based on Main class for t...
package org.weakref.s3fs; import com.google.common.base.Function; import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.base.Splitter; import com.google.common.collect.ImmutableList; import java.io.File; import java.io.IOException; import java.net.URI; import java.n...
package plugincore; import ActiveMQ.*; import org.apache.activemq.command.ActiveMQDestination; import org.apache.commons.configuration.SubnodeConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import netdiscovery.DiscoveryClientIPv6; import netdiscovery.DiscoveryEngine; //import shared.Clogger; imp...
package ixa.kaflib; import java.util.LinkedHashMap; import java.util.List; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.io.File; import java.io.Reader; import java.text.SimpleDateFormat; import java.util.Date; import java.io.IOException; import org.jdom2.JDOMException; public ...
package main; import entities.Corpus; import entities.Song; import org.hibernate.Transaction; import plsa.PLSA; import storage.Hibernator; import javax.persistence.TypedQuery; import java.util.List; public class MainHibernateTest { public static void main(String[] args) throws Exception { Corpus c = new Cor...
package tigase.xmpp.impl; import java.util.Map; import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; import tigase.db.NonAuthUserRepository; import tigase.db.TigaseDBException; import tigase.db.UserNotFoundException; import tigase.server.Iq; import tigase.server.Packet; import tigase...
package org.cactoos.scalar; import org.cactoos.Func; import org.cactoos.Scalar; import org.cactoos.iterable.IterableOf; import org.cactoos.iterable.Mapped; /** * Logical conjunction. * This class performs short-circuit evaluation in which arguments are * executed only if the preceding argument does not suffice to de...
package org.dita.dost.util; import static org.dita.dost.util.Constants.*; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import ja...
package org.jenetics.util; import javolution.lang.Immutable; public interface ISeq<T> extends Seq<T>, Copyable<MSeq<T>>, Immutable { @Override public ISeq<T> subSeq(final int start, final int end); @Override public ISeq<T> subSeq(final int start); @Override public <B>...
package org.jfree.chart; import java.awt.Color; public class Colors { private Colors() { // no need to instantiate this class } /** * Returns the default colors. * * @return The default colors. */ public static Color[] getDefaultColors() { return createFancyLightColor...
package org.jpmml.xgboost; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.nio.ByteOrder; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import com.beust.jcommander.JCommander; import...
package org.scm4j.vcs.api; import org.scm4j.vcs.api.exceptions.EVCSBranchExists; import org.scm4j.vcs.api.exceptions.EVCSFileNotFound; import org.scm4j.vcs.api.exceptions.EVCSTagExists; import org.scm4j.vcs.api.workingcopy.IVCSWorkspace; import java.util.List; import java.util.Set; public interface IVCS { void crea...
package quadcitydjs; import java.lang.*; import javax.swing.*; import java.util.*; import java.awt.*; import java.awt.event.*; import java.awt.Point; /* I am thnking that this class will handle the GUI much like minesweeper. I also believe that we should use the enable option should be used to distinguish between the t...
package utility; import java.util.ArrayList; /** * A CommandHistory objects holds a history of previously-issued commands for * a piece of data such that they can be undone/redone. * * @see utility.Command */ public class CommandHistory { private final int NULL_INDEX = -1; private ArrayList<Command> comman...
package mondrian.rolap.sql; import java.io.PrintWriter; import java.io.StringWriter; import java.sql.DatabaseMetaData; import java.sql.SQLException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import mondrian.olap.MondrianDef; import mondrian.olap.MondrianProperties; import mondrian.ol...
package picoded.struct; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.HashMap; import java.util.Map; import org.junit.After; import org.junit.Before; import org.junit.Test; public class DeferredMapEntry_test { private DeferredMapEntry<String, String> deferr...
package picoded.struct; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertFalse; import java.util.HashMap; import java.util.Map; import org.junit.After; import org.junit.Before; import org.junit.Test; public class DeferredMapEntry_test { pri...
package pt.fccn.arquivo.pages; import java.io.IOException; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.xml.parsers.ParserConfigurationException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox...
package org.exist.xquery.xqts; import java.io.IOException; import java.io.StringWriter; import java.util.HashMap; import java.util.HashSet; import java.util.Properties; import java.util.Set; import junit.framework.Assert; import org.custommonkey.xmlunit.Diff; import org.exist.dom.ElementImpl; import org.exist.dom.NodeP...