answer
stringlengths
17
10.2M
package org.sagebionetworks; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import java.net.URL; import ...
package info.tregmine.listeners; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.bukkit.ChatColor; import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.block.BlockState; import org.bukkit.block.DoubleCh...
package org.commcare.utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.provider.Settings; /** * @author Phillip Mates (pmates@dimagi.com) */ public class ConnectivityStatus { public static boolean isAirplaneModeOn(Context context) { ...
package javax.annotation; import javax.annotation.meta.TypeQualifier; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.E...
package org.sagebionetworks; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Bef...
package it.unitn.introsde.process; import it.unitn.introsde.ServiceConfiguration; import it.unitn.introsde.service.soap.WorkoutSOAP; import it.unitn.introsde.wrapper.Awareness; import it.unitn.introsde.wrapper.Motivation; import it.unitn.introsde.wrapper.Progress; import it.unitn.introsde.wrapper.Workout; import org.ap...
package com.cowlark.sake.parser.parsers; import com.cowlark.sake.parser.core.Location; import com.cowlark.sake.parser.core.ParseResult; public class FunctionStatementParser extends Parser { @Override protected ParseResult parseImpl(Location location) { ParseResult pr1 = VarAssignmentParser.parse(loc...
package org.xins.server; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Enumeration; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.TimeZone; import javax.se...
package org.intermine.api.profile; /** * Exception thrown when user is not found. * @author Jakub Kulaviak <jakub@flymine.org> */ public class UserNotFoundException extends RuntimeException { /** * Constructor with message. * @param msg message */ public UserNotFoundException(String msg) { ...
package com.kirelcodes.RoboticCraft.pathFinders; import org.bukkit.Location; import org.bukkit.Material; import com.kirelcodes.RoboticCraft.robot.RobotMiner; public class MinerPathfinder extends BasicPathfinder { private RobotMiner robot; private int currentHeight; private int blockIterator; private int...
package org.flymine.web.results; import servletunit.struts.MockStrutsTestCase; import org.apache.struts.tiles.ComponentContext; import org.flymine.objectstore.ObjectStore; import org.flymine.objectstore.ObjectStoreFactory; import org.flymine.objectstore.query.Query; import org.flymine.objectstore.query.Results; public ...
// $Id: ImageUtil.java,v 1.28 2003/01/24 21:48:14 mdb Exp $ package com.threerings.media.image; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Graphics; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.G...
package org.intermine.web.logic.widget; import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Vector; import o...
// $Id: ImageUtil.java,v 1.26 2003/01/17 02:27:02 mdb Exp $ package com.threerings.media.image; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Graphics; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import ...
package Models.Actions.MActions; public abstract class SelectOneSpaceTileAction extends SelectOneSpaceComponentAction { public SelectOneSpaceTileAction(String imageKey) { super(imageKey); } public boolean pressTab(){ return false; } public boolean pressDelete(){ return false;...
package org.intermine.web.logic.widget; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.It...
package io.compgen.ngsutils.cli.bam; import htsjdk.samtools.SAMRecord; import htsjdk.samtools.SamInputResource; import htsjdk.samtools.SamReader; import htsjdk.samtools.SamReaderFactory; import htsjdk.samtools.ValidationStringency; import io.compgen.cmdline.annotation.Command; import io.compgen.cmdline.annotation.Exec;...
package de.espend.idea.php.annotation.pattern; import com.intellij.patterns.ElementPattern; import com.intellij.patterns.PatternCondition; import com.intellij.patterns.PlatformPatterns; import com.intellij.patterns.PsiElementPattern; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiWhiteSpace; import com....
package org.intermine.web.filters; import static org.easymock.EasyMock.*; import java.io.IOException; import java.util.Properties; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.intermine.ap...
package io.compgen.ngsutils.cli.vcf; import java.io.IOException; import java.util.ArrayList; import java.util.List; import htsjdk.samtools.util.CloseableIterator; import io.compgen.cmdline.annotation.Command; import io.compgen.cmdline.annotation.Exec; import io.compgen.cmdline.annotation.Option; import io.compgen.cmdli...
package org.jaxen.dom; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java.util.NoSuchElementException; import org.jaxen.DefaultNavig...
package org.jaxen.dom; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import java.util.HashMap; import java.util.Iterator; import java.util.NoSuchElementException; import org.jaxen.DefaultNavigator; import org.jaxen.FunctionCallException; import org.jaxen.Navigator; import or...
package dr.evomodel.continuous; import dr.evolution.alignment.PatternList; import dr.evolution.tree.NodeRef; import dr.evomodel.tree.TreeModel; import dr.inference.model.*; import dr.math.distributions.Distribution; import dr.util.Citable; import dr.util.Citation; import dr.util.CommonCitations; import dr.xml.*; import...
package com.jaf.examples.telnet; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.nio.charset.Charset; imp...
package org.jaxen.pattern; import java.util.Iterator; import java.util.List; import java.util.ListIterator; import org.jaxen.JaxenException; import org.jaxen.JaxenHandler; import org.jaxen.expr.*; import org.jaxen.pattern.*; import org.saxpath.Axis; import org.saxpath.SAXPathException; import org.saxpath.XPathReader; i...
package edu.psu.compbio.seqcode.projects.akshay.utils; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import...
package gov.nih.nci.calab.service.inventory; import gov.nih.nci.calab.db.DataAccessProxy; import gov.nih.nci.calab.db.IDataAccess; import gov.nih.nci.calab.domain.SampleContainer; import gov.nih.nci.calab.domain.SampleSOP; import gov.nih.nci.calab.domain.Source; import gov.nih.nci.calab.domain.StorageElement; import go...
package gov.nih.nci.calab.ui.submit; /** * This class creates nanoparticle general information and assigns visibility * * @author pansu */ /* CVS $Id: AddParticlePropertiesAction.java,v 1.7 2006-08-14 18:39:35 pansu Exp $ */ import gov.nih.nci.calab.dto.particle.BuckeyballBean; import gov.nih.nci.calab.dto.particle...
package gov.nih.nci.cananolab.ui.particle; import gov.nih.nci.cananolab.domain.common.LabFile; import gov.nih.nci.cananolab.domain.common.Report; import gov.nih.nci.cananolab.domain.common.Source; import gov.nih.nci.cananolab.domain.particle.NanoparticleSample; import gov.nih.nci.cananolab.domain.particle.characterizat...
package fr.lip6.jkernelmachines.classifier; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import fr.lip6.jkernelmachines.type.TrainingSample; import fr.lip6.jkernelmachines.util.DebugPrinter; import fr.lip6.jkernelmachines.util.algebra.VectorOperations; /** *...
package org.spine3.base; import com.google.common.base.Optional; import com.google.protobuf.Any; import com.google.protobuf.Message; import com.google.protobuf.MessageOrBuilder; import com.google.protobuf.Timestamp; import com.google.protobuf.util.Timestamps; import org.spine3.validate.ConversionError; import org.spine...
package jayhorn.test.regression_tests; import java.io.File; import java.io.IOException; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import jayhorn.checker.Eldaric...
package com.jenjinstudios.io; import com.jenjinstudios.io.connection.Connection; import com.jenjinstudios.io.connection.MultiConnectionBuilder; import com.jenjinstudios.io.connection.SingleConnectionBuilder; import com.jenjinstudios.io.serialization.GsonMessageIOFactory; import com.jenjinstudios.io.server.Server; impor...
package org.xins.client; import java.io.IOException; import java.net.ConnectException; import java.util.Iterator; import java.util.List; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpConnection; import org.apache.commons.httpclient.HttpRecoverableException; import org.apache....
package org.xins.server; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.xins.common.text.ParseException; /** * Abstraction of a calling convention. A calling convention determines how an * HTTP request is converted to a XINS request ...
package org.eclipse.jetty.server; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.eclipse...
package org.xins.server; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.xins.common.MandatoryArgumentChecker; import org.xins.common.Utils; import org.xins.common.collections.Prote...
package org.coderoller.springlayout; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.util.SparseIntArray; import android.view.View; import android.view.ViewDebug; import android.view.ViewGroup; import java.util.HashSet; import java.util.Set; import...
package org.runetranscriber.swingui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.GridLayout; import java.util.ArrayList; import java.util.List; import javax.swing.BorderFactory; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; impo...
package org.spongepowered.common.util; import com.google.common.base.Strings; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Marker; import org.apache.logging.log4j.MarkerManager; import java.io.PrintStream; impo...
package com.joelapenna.foursquared; import com.joelapenna.foursquare.types.City; import com.joelapenna.foursquare.types.Venue; import com.joelapenna.foursquare.util.VenueUtils; import com.joelapenna.foursquared.maps.BestLocationListener; import com.joelapenna.foursquared.preferences.Preferences; import com.joelapenna.f...
package basic_objects; import java.awt.Point; import java.util.LinkedList; import java.util.Queue; public class Vertex { private LinkedList<Vertex> children; private Point myVertex; private boolean wasIntersection; private int distanceFromEdge; private double tangentSlope; private boolean noTanS...
package me.lucko.helper.menu; import com.google.common.base.Preconditions; import me.lucko.helper.Events; import me.lucko.helper.Schedulers; import me.lucko.helper.metadata.Metadata; import me.lucko.helper.metadata.MetadataKey; import me.lucko.helper.metadata.MetadataMap; import me.lucko.helper.terminable.TerminableCon...
package com.googlecode.charts4j.parameters; import static com.googlecode.charts4j.Color.BLUE; import java.util.logging.Level; import java.util.logging.Logger; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import com.googlecode.charts4j...
package org.voltdb.planner; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.commons.lang3.builder.HashCodeBuilder; im...
package org.voltdb.planner; import java.util.ArrayList; import java.util.List; import org.json_voltpatches.JSONException; import org.voltdb.VoltType; import org.voltdb.catalog.CatalogMap; import org.voltdb.catalog.ColumnRef; import org.voltdb.catalog.Database; import org.voltdb.catalog.Index; import org.voltdb.catalog....
package radlab.rain.workload.redis; import java.util.HashMap; import java.util.HashSet; import java.util.Set; import redis.clients.jedis.HostAndPort; import redis.clients.jedis.Jedis; // We'll use the pool later, for now just use the non-threadsafe Jedis (no open-loop/partly-open loop workloads) //import org.apache.com...
package gov.nih.nci.calab.ui.core; /** * This abstract class is the basis for all other action classes to extend in * caLAB. It includes common operations need to be included in all caLAB actions * to reduce redundancy. * * @author pansu */ /* CVS $Id: AbstractBaseAction.java,v 1.4 2006-03-21 17:32:03 pansu Exp $...
package org.languagetool.language; import org.jetbrains.annotations.Nullable; import org.junit.Ignore; import org.junit.Test; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.Arrays; import java.util.List; import java.util.Locale; import java.util...
package com.InfinityRaider.AgriCraft.init; import com.InfinityRaider.AgriCraft.api.v1.BlockWithMeta; import com.InfinityRaider.AgriCraft.api.v1.RenderMethod; import com.InfinityRaider.AgriCraft.blocks.BlockModPlant; import com.InfinityRaider.AgriCraft.handler.ConfigurationHandler; import com.InfinityRaider.AgriCraft.it...
package resources.objects.building; import network.packets.swg.zone.baselines.Baseline.BaselineType; import resources.client_info.ClientFactory; import resources.client_info.visitors.ObjectData; import resources.client_info.visitors.PortalLayoutData; import resources.objects.SWGObject; import resources.objects.cell.Cel...
package com.silverpeas.util; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.Date; import org.apache.poi.hpsf.DocumentSummaryInformation; import org.apache.poi.hpsf.PropertySet; import org.apache.poi.hpsf.PropertySetFactory; import org.apache.poi.hpsf.SummaryInformation...
package com.datalogics.pdf.samples.util; import com.adobe.internal.io.ByteReader; import com.adobe.internal.io.InputStreamByteReader; import com.adobe.pdfjt.core.exceptions.PDFIOException; import com.adobe.pdfjt.core.exceptions.PDFInvalidDocumentException; import com.adobe.pdfjt.core.exceptions.PDFSecurityException; im...
package com.dpain.DiscordBot.plugin; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import com.dpain.DiscordBot.enums.Group; import com.dpain.DiscordBot.exception.ChannelNotFoundException; import com.dpain.DiscordBot.helper.LogHelper; import com.dpain.Di...
package edu.utah.sci.cyclist.ui.views; import java.text.NumberFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import javax.transaction.xa.XAResource; import ...
package com.xpn.xwiki.api; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Vector; import org.apache.commons...
// Narya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
package com.elmakers.mine.bukkit.action; import com.elmakers.mine.bukkit.api.action.CastContext; import com.elmakers.mine.bukkit.api.action.SpellAction; import com.elmakers.mine.bukkit.api.magic.Mage; import com.elmakers.mine.bukkit.api.spell.SpellResult; import com.elmakers.mine.bukkit.batch.ActionBatch; import com.el...
package org.yamcs.utils; import java.net.URI; import java.util.Base64; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.yamcs.security.UsernamePasswordToken; import io.netty.bootstrap.Bootst...
package com.adobe.phonegap.push; import android.annotation.SuppressLint; import android.app.Notification; import android.media.MediaPlayer; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.ContentResolver; import android.content.Context; import android.content.Intent; imp...
// $Id: IsoUtil.java,v 1.25 2002/04/02 01:05:49 mdb Exp $ package com.threerings.miso.scene.util; import java.awt.Point; import java.awt.Polygon; import java.awt.Rectangle; import com.samskivert.swing.SmartPolygon; import com.threerings.media.sprite.Sprite; import com.threerings.media.tile.ObjectTile; import com.threer...
package hudson.util; import com.gargoylesoftware.htmlunit.Page; import hudson.cli.CLICommandInvoker; import hudson.diagnosis.OldDataMonitor; import hudson.model.AbstractDescribableImpl; import hudson.model.Descriptor; import hudson.model.FreeStyleProject; import hudson.model.Items; import hudson.model.Job; import hudso...
// Nenya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
package de.mrapp.android.preference; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.os.Build; import android.os.Parcel; import android.os.Parcelable; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import ...
package com.emc.ecs.serviceBroker.config; import java.net.URL; import org.cloudfoundry.community.servicebroker.model.BrokerApiVersion; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.sp...
package se.z_app.zmote.gui; import java.io.File; import java.util.LinkedList; import java.util.concurrent.ExecutionException; import se.z_app.stb.EPG; import se.z_app.stb.MediaItem; import se.z_app.stb.WebTVItem; import se.z_app.stb.api.RemoteControl; import se.z_app.stb.api.WebTVCommand; import se.z_app.zmote.webtv.Me...
// Narya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
package com.fasterxml.jackson.databind.node; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.SerializerProvider; import com.faste...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package nl.uva.cs.lobcder.tests; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URI; import java.util.Properties; import org.apache.commons.httpclient.HttpCl...
package edu.smcm.gamedev.butterseal; import java.util.Map; import com.badlogic.gdx.graphics.g2d.SpriteBatch; public enum BSMap { HOME(null,null, new Runnable() { public void run() { // game logic } }), ICE_CAVE_ENTRY(null,null, new Runnable() { public void...
package org.jaxen.expr; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.jaxen.Context; import org.jaxen.ContextSupport; import org.jaxen.JaxenException; abstract class DefaultLocationPath extends DefaultExpr implements LocationPath { private List...
package com.forgeessentials.worldborder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.WorldServer; import net.minecraftforge.common.DimensionManager; import net.minecr...
package ch.unizh.ini.jaer.projects.minliu; import java.util.Arrays; import java.util.BitSet; import java.util.Iterator; import java.util.Observable; import java.util.Observer; import com.jogamp.opengl.util.awt.TextRenderer; import ch.unizh.ini.jaer.projects.rbodo.opticalflow.AbstractMotionFlow; import com.jogamp.opengl...
package org.jnosql.artemis.graph; import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal; import org.apache.tinkerpop.gremlin.structure.Vertex; import org.jnosql.artemis.Page; import org.jnosql.artemis.Pagination; import java.util.Collection; import java.util.List; import java.util.Objects; impo...
package com.fwdekker.randomness.string; import com.fwdekker.randomness.Settings; import com.intellij.openapi.components.PersistentStateComponent; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.components.State; import com.intellij.openapi.components.Storage; import com.intellij.util....
package ch.unizh.ini.jaer.projects.minliu; import java.awt.Dimension; import java.awt.Font; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.font.FontRenderContext; import java.awt.geom.Rectangle2D; import java.beans.PropertyChangeEvent; import java.util.Arrays; import java.util.O...
package org.apache.commons.digester; import org.xml.sax.Attributes; public abstract class Substitutor { /** * <p>Substitutes the attributes (before they are passed to the * <code>Rule</code> implementations's).</p> * * <p><code>Digester</code> will only call this method a second time * once...
package com.github.blindpirate.gogradle.util; import org.apache.commons.lang3.tuple.Pair; import java.util.HashMap; import java.util.Map; public class MapUtils { public static String getString(Map<String, Object> map, String key) { return org.gradle.internal.impldep.org.apache.commons.collections.MapUtils ...
package org.multibit.hd.ui.controllers; import com.google.common.base.Optional; import com.google.common.base.Preconditions; import com.google.common.eventbus.Subscribe; import com.google.common.util.concurrent.*; import org.bitcoinj.uri.BitcoinURI; import org.bitcoinj.uri.BitcoinURIParseException; import org.joda.time...
package com.nerodesk.om.aws; import com.amazonaws.services.s3.model.ObjectMetadata; import com.jcabi.aspects.Tv; import com.jcabi.s3.Bucket; import com.jcabi.s3.Ocket; import com.jcabi.s3.mock.MkBucket; import com.nerodesk.om.Docs; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; impor...
package com.github.horrorho.liquiddonkey.util; /** * Printer. * * @author Ahseya */ @FunctionalInterface public interface Printer { void print(String x); default void print() { print(""); } default void print(Object object) { print(object == null ? "null" : object.toString()); } ...
package com.twocheckout; import com.google.common.collect.Maps; import com.twocheckout.model.*; import org.junit.BeforeClass; import org.junit.Test; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertTrue; import java.util.Hash...
package com.codahale.metrics; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicReference; /** * A map of shared, named metric registries. */ public class SharedMetricRegistries { private static final Concurrent...
package org.apache.velocity.texen.ant; import java.util.Enumeration; import java.util.Hashtable; import java.util.Properties; import java.util.Map; import java.io.File; import java.io.FileWriter; import java.io.FileOutputStream; import java.io.FileInputStream; // Ant Stuff import org.apache.tools.ant.BuildException; im...
package net.edralzar.wargolem; import static org.assertj.core.api.Assertions.assertThat; import java.time.Instant; import org.junit.Before; import org.junit.Test; import net.edralzar.wargolem.model.Gw2Class; import net.edralzar.wargolem.model.MapResource; import net.edralzar.wargolem.model.Player; import net.edralzar.w...
package org.jdesktop.swingx.painter; import java.awt.Color; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics2D; import java.awt.Paint; import java.awt.geom.Point2D; import javax.swing.JComponent; import org.jdesktop.swingx.util.Resize; /** * "Paints" text at the given location. * * @author...
package chronostream.perf; import chronostream.common.core.ExceptionResult; import java.io.PrintStream; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Tracks the results of performance tests. */ public class PerfJobResult { private int id; private String job; private int threa...
package net.runelite.cache.fs; import java.io.IOException; import java.util.Random; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; public class StoreTest { @Rule public TemporaryFolder folder = new TemporaryFolder(); ...
package org.jivesoftware.spark.ui; import org.jivesoftware.MainWindow; import org.jivesoftware.Spark; import org.jivesoftware.resource.Res; import org.jivesoftware.resource.SparkRes; import org.jivesoftware.smack.PacketListener; import org.jivesoftware.smack.filter.AndFilter; import org.jivesoftware.smack.filter.FromCo...
package no.kantega.publishing.client; import no.kantega.publishing.api.cache.SiteCache; import no.kantega.publishing.api.content.ContentIdentifier; import no.kantega.publishing.api.content.ContentIdentifierDao; import no.kantega.publishing.api.model.Site; import no.kantega.publishing.common.exception.ContentNotFoundExc...
package com.hendyirawan.smartroad; import com.google.common.collect.Iterables; import com.hendyirawan.smartroad.core.RoadTweet; import com.hendyirawan.smartroad.core.RoadTweetRepository; import com.hendyirawan.smartroad.core.SocialTopic; import org.apache.commons.io.FilenameUtils; import org.apache.http.client.methods....
package com.almuradev.backpack; import com.almuradev.backpack.backend.DatabaseManager; import com.almuradev.backpack.backend.entity.Backpacks; import com.almuradev.backpack.inventory.BackpackChangeResult; import com.almuradev.backpack.inventory.BackpackInventory; import com.almuradev.backpack.util.Storage; import com.g...
package org.mariadb.jdbc; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.junit.Assume; import org.junit.BeforeClass; im...
package com.indexdata.pz2utils4jsf.pazpar2; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.StringTokenizer; import java.util.concurrent.ConcurrentHashMap; import javax.enterprise.context.SessionScoped; import javax.inject.Named; import org.apache.log4j.Logger; import com.index...
package com.batix.rundeck; import com.dtolabs.rundeck.core.common.INodeSet; import com.dtolabs.rundeck.core.utils.OptsUtil; import com.dtolabs.utils.Streams; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileReader; import...
package org.oakgp.function.math; import java.math.BigDecimal; import java.util.List; import org.oakgp.function.AbstractFunctionTest; import org.oakgp.function.Function; public class AddTest extends AbstractFunctionTest { @Override protected Function getFunction() { return IntegerUtils.INTEGER_UTILS.getAdd()...
//import uk.co.uwcs.choob.*; import uk.co.uwcs.choob.modules.*; import uk.co.uwcs.choob.support.*; import uk.co.uwcs.choob.support.events.*; import java.util.*; //import java.security.*; import java.util.regex.*; public class UserTypeCheckResult { boolean hasChecked; boolean isBot; boolean isAway; boole...
package com.jooones.hackcraft.mod.block; import com.google.common.cache.LoadingCache; import com.jooones.hackcraft.mod.annotation.Initialize; import net.minecraft.block.Block; import net.minecraft.block.BlockBreakable; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecr...
package com.lambdaworks.redis.protocol; import java.io.IOException; import java.net.SocketAddress; import java.nio.channels.ClosedChannelException; import java.nio.charset.Charset; import java.util.*; import java.util.concurrent.atomic.AtomicLong; import com.lambdaworks.redis.*; import com.lambdaworks.redis.internal.Le...
//@author A0111875E package com.epictodo.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; public class TimeValidator { private Pattern _pattern; private Matcher _matcher; private static TimeValida...