answer
stringlengths
17
10.2M
package org.bouncycastle.math.ec; import org.bouncycastle.util.Arrays; import java.math.BigInteger; class LongArray { // private static long DEINTERLEAVE_MASK = 0x5555555555555555L; /* * This expands 8 bit indices into 16 bit contents, by inserting 0s between bits. * In a binary field, this operation i...
package org.broad.igv.track; import com.jidesoft.swing.JidePopupMenu; import org.apache.log4j.Logger; import org.broad.igv.PreferenceManager; import org.broad.igv.feature.*; import org.broad.igv.renderer.SpliceJunctionRenderer; import org.broad.igv.sam.*; import org.broad.igv.ui.IGVMainFrame; import org.broad.igv.ui.pa...
package org.kohsuke.stapler; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.ConvertUtils; import org.apache.commons.fileupload.FileItem; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpS...
package org.clapper.curn.parser.minirss; import org.clapper.curn.FeedInfo; import org.clapper.curn.parser.RSSChannel; import org.clapper.curn.parser.RSSParser; import org.clapper.curn.parser.RSSParserException; import org.clapper.util.logging.Logger; import java.io.IOException; import java.io.FileNotFoundException; imp...
package org.exist.util.hashtable; /** * A double-linked hash map additionally providing access to entries in the order in which * they were added. * * If a duplicate entry is added, the old entry is removed from the list and appended to the end. The * map thus implements a "Last Recently Used" (LRU) behaviour. */...
/* * @author <a href="mailto:novotny@aei.mpg.de">Jason Novotny</a> * @version $Id$ */ package org.gridlab.gridsphere.layout; import org.gridlab.gridsphere.event.WindowEvent; import org.gridlab.gridsphere.event.impl.WindowEventImpl; import org.gridlab.gridsphere.layout.event.PortletTitleBarEvent; import org.gridlab.g...
package model; import java.io.File; public class BaseSettings { public static String baseOutDir = getBaseOutDir(); public static String baseFolderFormat = "<threadid>_<title>"; public static String threadIdTag = "<threadid>"; public static String threadTitleTag = "<title>"; public static String user...
package org.mtransit.android.task; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import org.mtransit.android.co...
package org.sbolstandard.core2; import java.io.InputStream; public class readTester { public static String filenameRdf = "writeTesterString_v1.3.rdf"; public static String filenameJson = "writeTesterString_v1.3.json"; public static String filenameTurtle = "writeTesterString_v1.3.ttl"; public stati...
package edu.umd.cs.findbugs; import java.text.SimpleDateFormat; import java.util.Date; /** * Version number and release date information. */ public class Version { /** * Major version number. */ public static final int MAJOR = 1; /** * Minor version number. */ public static final i...
package org.pentaho.agilebi.modeler; import org.pentaho.agilebi.modeler.nodes.*; import org.pentaho.agilebi.modeler.propforms.AbstractModelerNodeForm; import org.pentaho.agilebi.modeler.propforms.ModelerNodePropertiesForm; import org.pentaho.ui.xul.XulComponent; import org.pentaho.ui.xul.XulException; import org.pentah...
package org.supercsv.cellprocessor.constraint; import org.supercsv.cellprocessor.CellProcessorAdaptor; import org.supercsv.cellprocessor.ift.LongCellProcessor; import org.supercsv.exception.SuperCSVException; import org.supercsv.util.CSVContext; /** * Converts the input data to a long and ensure that number is within ...
package org.swellrt.server.box.servlet; import com.google.gson.JsonParseException; import com.google.inject.Inject; import com.google.inject.name.Named; import org.apache.commons.io.IOUtils; import org.apache.commons.validator.routines.EmailValidator; import org.waveprotocol.box.server.CoreSettings; import org.waveprot...
package mathsquared.resultswizard2; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; /** * @author MathSquared * */ public class ArrayUtils { /** * Creates a deep copy of a multi-dimensional array, copying all sub-arrays of the array (but not the elements themselves). ...
package pl.morecraft.dev.datagrammer.commands; import pl.morecraft.dev.datagrammer.engine.Command; import pl.morecraft.dev.datagrammer.misc.Consoler; import java.io.IOException; import java.net.DatagramSocket; import java.net.InetAddress; import java.util.Objects; public class Connect extends Command { @SuppressWar...
package io.myweb; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.net.LocalServerSocket; import android.net.LocalSocket; import android.os.IBinder; import android.util.Log; import java.io.IOException; import ja...
import de.qaware.chronix.database.*; import org.kairosdb.client.HttpClient; import org.kairosdb.client.builder.*; import org.kairosdb.client.builder.aggregator.SamplingAggregator; import org.kairosdb.client.response.GetResponse; import org.kairosdb.client.response.QueryResponse; import org.kairosdb.client.response.Resp...
public class bst { public static void main(String [] args){ Node<Integer> root = new Node<Integer>(10); root.add(20); root.add(15); root.add(20); System.out.printf("%b %b %b %b\n", root.contains(10), root.contains(15),root.contains(20), root.contains(1)); } } class Node<T...
package io.javadog.cws.common; import io.javadog.cws.common.exceptions.CWSException; import io.javadog.cws.common.exceptions.CryptoException; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.KeyGenerator; import javax.crypto.NoSuchPa...
package com.xlythe.dao; import android.content.Context; import android.database.Cursor; import android.util.Log; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import static com.xlythe.dao.Util.n...
package com.armandgray.taap; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.SearchView; import android.support.v7.widget.Toolbar; import android.view.Menu; import androi...
package net; import java.io.DataInputStream; import net.io.FileAcceptor; import net.io.FileSender; import main.Core; import main.Utils; import peer.Peer; public class ListenerThread implements Runnable { public Peer peer; public DataInputStream dis; public ListenerThread(Peer peer, DataInputStream dis) { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Entity; import Datastructure.Rete.Rete; import Datastructure.Rete.ReteBuilder; import Datastructure.choice.ChoiceUnit; import Datastructure.choice.ChoiceUnitMCS; import Datastructure.choice.ChoiceUnitMCSRewrite; ...
package edu.umd.cs.findbugs; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.List; import java.util.Locale; import java.util.concurrent.AbstractExecutorService; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeUnit;...
package GUI; import java.io.IOException; import javafx.beans.property.SimpleStringProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Node; import javafx.scene.Parent; im...
package ontology; import java.io.File; import java.net.URI; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import java.util.Vector; import org.semanticweb.owlapi.apibinding.OWLManager; import org.semanticweb.owlapi.model.AxiomType; import org.semanticweb.owlapi.mode...
package org.clapper.curn; import java.io.IOException; import java.io.FileNotFoundException; import java.io.OutputStreamWriter; import java.io.File; import java.io.InputStream; import java.io.FileInputStream; import java.io.OutputStream; import java.io.FileOutputStream; import java.io.StringWriter; import java.io.PrintW...
/** * This file contains the Historic class. */ package org.datasift; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; /** * The DataSift_His...
package org.gwoptics.gui.button; import java.awt.Point; import guicomponents.*; import org.gwoptics.graphics.GWColour; import org.gwoptics.graphics.IRenderable; import processing.core.PApplet; import processing.core.PImage; /** * Simple GButton extension to allow you to alter the border colours without needing * to c...
package org.jgroups.util; import org.jgroups.*; import org.jgroups.TimeoutException; import org.jgroups.conf.ClassConfigurator; import org.jgroups.jmx.JmxConfigurator; import org.jgroups.logging.Log; import org.jgroups.protocols.*; import org.jgroups.protocols.pbcast.GMS; import org.jgroups.protocols.pbcast.NAKACK2; im...
package org.joml; public class SimplexNoise { private static class Vector3b { byte x, y, z; Vector3b(int x, int y, int z) { super(); this.x = (byte) x; this.y = (byte) y; this.z = (byte) z; } } private static class Vector4b { by...
/* * $Id: Tdb.java,v 1.27 2014-07-16 20:12:46 pgust Exp $ */ package org.lockss.config; import java.io.*; import java.util.*; import org.apache.commons.collections .*; import org.apache.commons.collections.iterators .*; import org.lockss.util.*; /** * This class represents a title database (TDB). The TDB consists o...
package models; import com.avaje.ebean.Model; import com.avaje.ebean.annotation.ConcurrencyMode; import com.avaje.ebean.annotation.EntityConcurrencyMode; import javax.persistence.*; import java.util.List; /** * @author fabiomazzone */ @Entity @Table(name = "tabledefinition") @EntityConcurrencyMode(ConcurrencyMode.NON...
package se.z_app.zmote.gui; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import se.z_app.stb.Channel; import se.z_app.stb.EPG; import se.z_app.stb.Program; import se.z_app.stb.api.RemoteControl; import se.z_app.zmote.epg.EPGQuery; import android.R.colo...
package org.mapyrus; /** * Globally useful constants including fixed distance measurements. */ public class Constants { public static final String PROGRAM_NAME = "Mapyrus"; /** * Return version number of software. * @return version number. */ public static String getVersion() { ...
package org.marc4j; import java.io.Reader; import java.io.InputStreamReader; import java.io.FileReader; import java.io.BufferedReader; import java.io.IOException; import org.marc4j.marc.MarcConstants; import org.marc4j.marc.Tag; import org.marc4j.marc.Leader; import org.marc4j.marc.MarcException; /** * <p>Parses MARC ...
package org.nschmidt.csg; import java.util.ArrayList; import java.util.List; import java.util.Stack; import java.util.TreeMap; import java.util.stream.Collectors; /** * Holds a node in a BSP tree. A BSP tree is built from a collection of polygons * by picking a polygon to split along. That polygon (and all other copl...
package fi.jumi.test; import com.google.common.io.*; import fi.jumi.launcher.daemon.EmbeddedDaemonJar; import fi.jumi.test.PartiallyParameterized.NonParameterized; import fi.jumi.test.util.*; import org.hamcrest.Matchers; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized.Par...
package org.nutz.lang; import java.util.LinkedList; public class Strings { public static String dup(CharSequence cs, int num) { if (cs == null || num <= 0) return ""; StringBuilder sb = new StringBuilder(); for (int i = 0; i < num; i++) sb.append(cs); return s...
package fi.jumi.test; import com.google.common.base.Predicates; import com.google.common.collect.FluentIterable; import com.google.common.io.*; import fi.jumi.launcher.daemon.EmbeddedDaemonJar; import fi.jumi.test.PartiallyParameterized.NonParameterized; import fi.luontola.buildtest.*; import org.hamcrest.Matchers; imp...
package soot.jimple.infoflow.android; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; imp...
package org.xcri.util.lax; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.apache.commons.logging.Log; import org.jdom.Element; import org.jdom.Namespace; public class Lax { /** * Fetch child elements and log any warnings to the specified Log instance * @param par...
package org.ggp.base.apps.player; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.io.IOException; import javax.swing.AbstractAction; import javax.swing.JButton; import javax.swing.JFrame; import javax.sw...
package at.archistar.crypto; import java.util.Arrays; import java.util.Collection; import java.util.Random; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; import at.archistar.crypto.KrawczykCSS; import at.archistar.crypt...
package com.github.davidmoten.rx; import java.util.Arrays; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.infra.Blackhole; import com.github.davidmoten.rx.buffertofile.DataSerializers; import com.github.davidmoten.rx.perf.LatchedObserver; import rx.Observable;...
package com.jcabi.aether; import java.io.File; import java.util.Arrays; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.resolver.filter.ArtifactFilter; import org.apache.maven.execution.MavenSession; import org.apache.maven.model.Dependency; import org.apache.maven.project.MavenProject; impo...
package com.jcabi.github; import java.io.ByteArrayOutputStream; import com.jcraft.jsch.JSch; import com.jcraft.jsch.KeyPair; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Assume; import org.junit.Test; /** * Test case for {@link RtPublicKeys}. * * @author Carlos Miranda (miranda.c...
package is.ru.coolpeople.tictactoe; import org.junit.Test; import org.springframework.boot.test.context.SpringBootTest; import java.util.Queue; import java.util.concurrent.ArrayBlockingQueue; import static org.junit.Assert.*; @SpringBootTest public class GameTest { @Test public void testMakesGame() { Pl...
package mho.qbar.objects; import mho.qbar.iterableProviders.QBarExhaustiveProvider; import mho.qbar.iterableProviders.QBarIterableProvider; import mho.qbar.iterableProviders.QBarRandomProvider; import mho.wheels.iterables.ExhaustiveProvider; import mho.wheels.iterables.RandomProvider; import mho.wheels.math.Combinatori...
package mho.wheels.math; import mho.wheels.iterables.ExhaustiveProvider; import mho.wheels.iterables.IterableProvider; import mho.wheels.iterables.IterableUtils; import mho.wheels.iterables.RandomProvider; import mho.wheels.structures.Pair; import mho.wheels.structures.Triple; import org.jetbrains.annotations.NotNull; ...
package net.imagej.updater; import static net.imagej.updater.FilesCollection.DEFAULT_UPDATE_SITE; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.scijava.test.TestUtils.cre...
package net.spy.memcached; import net.spy.memcached.protocol.binary.BinaryOperationFactory; import org.junit.Test; import java.io.IOException; import java.net.InetSocketAddress; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.concurrent.CountDo...
package nyc.c4q; import android.content.Intent; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; import org.junit.FixMethodOrder; import org.junit.Test; i...
package org.cactoos.list; import java.util.Collections; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; /** * Test case for {@link IterableAsList}. * * @author Kirill (g4s8.public@gmail.com) * @version $...
package org.freecompany.redline; import java.io.File; import org.junit.Test; public class ScannerTest extends TestBase { @Test public void scanNoArchRPMTest() throws Exception { Scanner.main ( new String[]{ getTestResourcesDirectory ( ) + File.separator + "rpm-1-1.0-1.noarch.rpm" } ); } @Test ...
package org.numenta.nupic.network; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.numenta.nupic.algorithms.Anomaly.KEY_MODE; import st...
package savvytodo.testutil; import savvytodo.commons.exceptions.IllegalValueException; import savvytodo.model.TaskManager; import savvytodo.model.category.UniqueCategoryList; import savvytodo.model.task.DateTime; import savvytodo.model.task.Description; import savvytodo.model.task.Location; import savvytodo.model.task....
package water.server; import water.H2O; import water.init.AbstractEmbeddedH2OConfig; import water.webserver.iface.RequestAuthExtension; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.HashSet; import java.util.Set; /** * Only the...
package uk.ac.ncl.csc8005.group3.scheduler; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import java.util.HashMap; //make a static class. Object factory?? public class DatabaseIO { public DatabaseIO() { ...
package com.dmnlk.doma.dao; import org.skife.jdbi.v2.sqlobject.Bind; import org.skife.jdbi.v2.sqlobject.SqlQuery; /** * @author dmnlk. */ public interface TAccountDao { @SqlQuery("select account_id from t_account where account_id = :account_id") Integer findById(@Bind("account_id") int id); }
package org.perl6.nqp.tools; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.PrintStream; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.Channels; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.ni...
package nutrition; import account.Profile; import java.io.Serializable; import java.util.ArrayList; /* Daily Log object is created in initialization process and can be configured to scale with the users' program schedule and their goals. */ public class DailyLog implements Serializable{ private short calorie...
package edu.umd.cs.findbugs; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; public class DetectorFactory { private Class detectorClass; // Other meta-information about the detector? public DetectorFactory(Class detectorClass) { this.detectorClass = detector...
package edu.umd.cs.findbugs.ba; import java.util.ArrayList; import java.util.BitSet; import java.util.HashMap; import java.util.HashSet; import java.util.IdentityHashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; import org.apache.bcel.Constants; import org.apache.bcel.classfile.Code; impor...
package edu.umd.cs.findbugs.ba.ch; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.Map; import java.util.Set; import org.apache.bcel.generic.ArrayType; import org.apache.bcel.generic.ObjectType; import org.apache.bcel.generic.ReferenceType; im...
package edu.umd.cs.findbugs.workflow; import java.io.File; import java.io.IOException; import java.util.Comparator; import java.util.HashSet; import java.util.IdentityHashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.Map; import java.util.Set; import java.util.TreeMap; import org.dom4j.D...
package org.jgroups; /** * Globals used by JGroups packages. * * @author Bela Ban Mar 29, 2004 * @version $Id: Global.java,v 1.17 2007/01/05 14:11:25 belaban Exp $ */ public class Global { /** Allows for conditional compilation; e.g., if(log.isTraceEnabled()) if(log.isInfoEnabled()) log.info(...) would be remo...
package org.kered.dko; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.PrintStream; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.logging....
package com.heroku.sdk.deploy; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.net.URL; import java.util.*; /** * An easy way to deploy an executable Jar file */ public class DeployJar extends App { protected File jarFile; protected String jar...
package com.cradle.iitc_mobile; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.AdapterView.OnItemLongClickListener; import android...
package jodd.db.orm.sqlgen; import jodd.util.StringUtil; import jodd.util.StringPool; import static jodd.util.CharUtil.*; /** * Internal template parser. */ class TemplateParser { protected static final char ESCAPE_CHARACTER = '\\'; protected static final String MACRO_TABLE = "$T{"; protected static final...
package com.jme3.water; import com.jme3.asset.AssetManager; import com.jme3.export.InputCapsule; import com.jme3.export.JmeExporter; import com.jme3.export.JmeImporter; import com.jme3.export.OutputCapsule; import com.jme3.light.DirectionalLight; import com.jme3.light.Light; import com.jme3.material.Material; import co...
package etomica.atom; import etomica.chem.elements.ElementSimple; import etomica.chem.elements.IElement; import etomica.meta.annotations.IgnoreProperty; import etomica.species.ISpecies; import etomica.units.dimensions.Dimension; import etomica.units.dimensions.Mass; /** * Identifies a set of atoms and defines properti...
// CloudCoder - a web-based pedagogical programming environment // This program is free software: you can redistribute it and/or modify // (at your option) any later version. // This program is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the package org.c...
package com.aspose.slides.examples.Presentation.Opening; import com.aspose.slides.Presentation; import com.aspose.slides.examples.Utils; public class OpeningAPresentation { public static final void main(String[] args) { // The path to the documents directory. String dataDir = Utils.getDataDir(Op...
package com.paypal.android.sdk.onetouch.core.network; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import javax.net.ssl.SSLException; class PayPalCertificate { private static final String CERTIFICATE = " "MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJ...
package VASSAL.tools.image; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Rectangle; import java.awt.RenderingHints; import java.awt.Toolkit; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.awt.image.ColorConvertOp; import java.awt.i...
package net.wayward_realms.waywardcharacters; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.inventory.InventoryClickEvent; import java.util.Arrays; public class InventoryClickListener implements Listener { @Ev...
package de.tr7zw.changeme.nbtapi; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; import de.tr7zw.changeme.nbtapi.utils.nmsmappings.ReflectionMethod; /** * NBT class to access vanilla/custom tags on ItemStacks. This class doesn't * autosave to the Itemstac...
package jacobi.core.decomp.chol; import jacobi.api.Matrices; import jacobi.api.Matrix; import jacobi.api.annotations.NonPerturbative; import jacobi.core.impl.CopyOnWriteMatrix; import jacobi.core.util.Pair; import jacobi.core.util.Throw; import jacobi.core.util.Triplet; import java.util.Optional; /** * * Implementati...
package org.xtreemfs.foundation.logging; import java.io.PrintStream; import java.text.SimpleDateFormat; import java.util.Date; /** * * @author bjko */ public class Logging { public enum Category { /** * enable logging for all categories (no real category) */ all, /** ...
package org.xtreemfs.osd.storage; import java.io.EOFException; import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.FilenameFilter; import java.io.IOException; import java.io.Rando...
// Triple Play - utilities for use in PlayN-based games package tripleplay.demo.anim; import pythagoras.f.FloatMath; import playn.core.CanvasImage; import playn.core.Font; import playn.core.ImageLayer; import playn.core.Pointer; import playn.core.util.Clock; import static playn.core.PlayN.*; import tripleplay.anim.Anim...
package org.csstudio.util.time; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; /** Parse an absolute date/time string. * * @see #parse(Calendar, String) * * @author Sergei Chevtsov developed the original code for the * Java Archive Viewer, from which this code...
package squeek.veganoption.integration.stillhungry; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; import squeek.veganoption.content.ContentHelper; import squeek.veganoption.co...
package org.csstudio.channel.views; import gov.bnl.channelfinder.api.ChannelQuery; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import org.csstudio.channel.widgets.ChannelQueryInputBar; import org.csstudio.channel.widgets.ChannelsViewWidget; import org.csstudio.channel.widgets.PopupM...
package net.bull.javamelody; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Calendar; import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Lis...
package cn.six.http; import android.widget.Button; import org.apache.tools.ant.taskdefs.condition.Http; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; import org.mockito.Captor; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.robolectric.Robolectric; import...
package org.csstudio.opibuilder.model; import java.util.ArrayList; import java.util.List; import org.csstudio.opibuilder.OPIBuilderPlugin; import org.csstudio.opibuilder.datadefinition.DisplayScaleData; import org.csstudio.opibuilder.properties.ActionsProperty; import org.csstudio.opibuilder.properties.BooleanProperty;...
package org.ccnx.ccn.test.protocol; import java.io.IOException; import org.ccnx.ccn.CCNFilterListener; import org.ccnx.ccn.CCNInterestListener; import org.ccnx.ccn.impl.support.ConcurrencyUtils.Waiter; import org.ccnx.ccn.protocol.ContentName; import org.ccnx.ccn.protocol.ContentObject; import org.ccnx.ccn.protocol.Int...
package com.example.thermostatapp; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon...
package org.arp.javautil.datastore; import java.util.Map; /** * Represents a data store, which can be either temporary or persistent. It can * be treated just like a {@link java.util.Map}, but defines one extra method, * <code>shutdown</code>. * * @param <K> * the key type to store * @param <V> * ...
package nl.tno.timeseries.testapp; import nl.tno.timeseries.interfaces.DataParticle; import nl.tno.timeseries.mapper.annotation.TupleField; import nl.tno.timeseries.particles.AbstractParticle; public class Measurement<T> extends AbstractParticle implements DataParticle { @TupleField T value; public Measurem...
package com.jenjinstudios.core.io; import com.jenjinstudios.core.util.TypeMapper; import com.jenjinstudios.core.xml.ArgumentType; import com.jenjinstudios.core.xml.MessageType; import java.util.Map; import java.util.TreeMap; /** * The {@code Message} class is used in sending data to and receiving data from {@code Conn...
package org.atlasapi.system.bootstrap.workers; import java.util.Set; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import javax.annotation.PostConstruct; import javax.annotation.PreDest...
package hudson.tasks; import com.thoughtworks.xstream.converters.UnmarshallingContext; import hudson.EnvVars; import hudson.Extension; import hudson.Functions; import hudson.Launcher; import hudson.RestrictedSince; import hudson.Util; import hudson.diagnosis.OldDataMonitor; import hudson.model.AbstractBuild; import hud...
package com.ycsoft.sysmanager.component.resource; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.ycsoft.beans.device.RDevice; import com.ycsoft.beans.device.RDeviceTransfer;...
package com.hbasebook.hush; /** * Helper to sort counters by key or value. * * @param <K> The key type. * @param <V> The value type. */ public class Counter<K extends Comparable<K>, V extends Comparable<V>> implements Comparable<Counter<K, V>> { public enum Sort { KeyAsc, KeyDesc, ValueAsc, ValueDesc; ...
package jsky.app.ot.gemini.editor.targetComponent; import edu.gemini.pot.sp.ISPObsComponent; import edu.gemini.pot.sp.SPNodeKey; import edu.gemini.shared.util.immutable.*; import edu.gemini.spModel.core.Magnitude; import edu.gemini.spModel.core.Site; import edu.gemini.spModel.core.Target; import edu.gemini.spModel.guid...
package pp.block5.cc.simple; import org.antlr.v4.runtime.ParserRuleContext; import org.antlr.v4.runtime.Token; import org.antlr.v4.runtime.tree.ParseTree; import org.antlr.v4.runtime.tree.ParseTreeWalker; import org.antlr.v4.runtime.tree.TerminalNode; import pp.block5.cc.ParseException; import pp.block5.cc.pascal.Simpl...