answer
stringlengths
17
10.2M
package com.dmdirc.addons.nowplaying; import com.dmdirc.ClientModule.GlobalConfig; import com.dmdirc.ClientModule.UserConfig; import com.dmdirc.events.PluginLoadedEvent; import com.dmdirc.events.PluginUnloadedEvent; import com.dmdirc.interfaces.config.AggregateConfigProvider; import com.dmdirc.interfaces.config.ConfigP...
package com.cloud.ha; import java.util.ArrayList; import java.util.Date; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.ej...
package io.tetrapod.core.utils; /** * A rate gauge that keeps a history of event times */ public class RateLimiter { protected final long[] samples; protected int cur = -1; protected int len; protected int perMillis; // If we're currently limiting, how many have been ignored ...
package org.commcare.session; import org.commcare.suite.model.SessionDatum; import org.commcare.suite.model.Text; import org.javarosa.core.model.condition.EvaluationContext; import org.javarosa.core.model.instance.TreeReference; import org.javarosa.xpath.XPathException; import java.util.List; import java.util.Vector; /...
// Triple Play - utilities for use in PlayN-based games package tripleplay.ui; import java.util.Map; import com.google.common.collect.Maps; import playn.core.Color; import playn.core.Game; import playn.core.PlayN; import playn.java.JavaPlatform; import react.UnitSlot; import tripleplay.ui.Background; import tripleplay....
package net.formula97.andorid.car_kei_bo; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import...
package calendar.event; import calendar.event.dto.CreateEventDTO; import calendar.event.dto.DeleteEventDTO; import calendar.event.dto.UpdateEventDTO; import calendar.event.exceptions.EventNotFoundException; import calendar.event.exceptions.Error; import calendar.event.exceptions.MissingTokenException; import calendar.u...
package wint.lang.utils; import java.lang.reflect.Array; import wint.lang.magic.MagicList; /** * @author pister 2011-12-22 10:11:30 */ public class ArrayUtil { public static final Class<?>[] EMPTY_CLASS_ARRAY = new Class<?>[0]; public static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; public static...
package org.pitest.maven; import org.apache.maven.artifact.Artifact; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.annotations.Component; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins...
package com.torodb.torod.db.postgresql.meta.routines; import com.google.common.collect.Iterators; import com.google.common.collect.Multimap; import com.google.common.collect.MultimapBuilder; import com.google.common.collect.Sets; import com.torodb.torod.core.subdocument.structure.ArrayStructure; import com.torodb.torod...
package net.formula97.android.pocket_score_card; import java.util.HashMap; import android.annotation.TargetApi; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.DatabaseErrorHandler; import android.database.SQLException; import android.databas...
package com.irccloud.androidnative; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Iterator; import java.util.TreeMap; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.content.Intent; import android.os.Asyn...
package com.frameworkset.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.net.URL; import java.util.*; import java.util.Map.Entry; public class DaemonThread extends java.lang.Thread { static class WrapperResourceInit implements ResourceInitial,UUIDResource{ pri...
package javasearch; import org.apache.commons.io.LineIterator; import java.io.File; import java.io.IOException; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Searcher { private SearchSettings settings; private List<SearchResult> results; private FileTypes f...
package levels; import item.Item; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.Rectangle; import java.io.IOException; import java.util.ArrayList; import java.util.Random; import javax.imageio.ImageIO; import thingsthatmove.Enemy; import thingsthatmove.GameObject; import th...
package org.deuce.test.queue; import org.deuce.transform.Exclude; public class EmptyException extends RuntimeException{ }
package org.mg.server; import static org.jboss.netty.channel.Channels.pipeline; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.NetworkInterface; import java.net.Socket; import java.net.SocketException; impo...
package jdbm.recman; import org.apache.directory.server.i18n.I18n; /** * This class represents a page header. It is the common superclass for * all different page views. It contains the following information: * * <ol> * <li>2 bytes: the short block type code</li> * <li>8 bytes: the long block id of the next b...
package pinterest; import com.google.gson.Gson; import exceptions.PinterestException; import fields.PinFields; import org.apache.commons.io.IOUtils; import org.apache.http.client.utils.URIBuilder; import responses.Pin; import responses.Pins; import java.io.IOException; import java.net.URI; import java.net.URISyntaxExce...
package org.whale.system.jdbc.filter.dll.impl; import java.io.Serializable; import java.util.List; import java.util.Map; import org.whale.system.common.exception.FieldValidErrorException; import org.whale.system.common.util.ValidUtil; import org.whale.system.jdbc.IOrmDao; import org.whale.system.jdbc.filter.dll.BaseDao...
package com.pauldavdesign.mineauz.minigames; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import o...
package ohtu.beddit.web; import android.app.Dialog; import android.app.ProgressDialog; import android.content.Context; import android.graphics.Bitmap; import android.util.Log; import android.view.View; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.ImageView; import android.wi...
package com.xpn.xwiki.web; import com.xpn.xwiki.XWiki; import com.xpn.xwiki.XWikiContext; import com.xpn.xwiki.XWikiException; import com.xpn.xwiki.doc.XWikiDocument; import com.xpn.xwiki.monitor.api.MonitorPlugin; import com.xpn.xwiki.plugin.fileupload.FileUploadPlugin; import com.xpn.xwiki.render.XWikiVelocityRendere...
package ru.nord; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.registry.GameRegistry; import ru.nord.common.blocks.*; import ru.nord.common.blocks.abstracts.BlockAbstractEnergyCable; import ru....
package com.readystatesoftware.android; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URLEncoder; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import ...
package org.xtreemfs.mrc.utils; import java.net.InetAddress; import java.net.InetSocketAddress; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.M...
package services; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; @Path("/calc") @Produces(MediaType.TEXT_PLAIN) public class Calculator { @GET @Path("add") public String add(@QueryParam("a")int a, @QueryParam("b...
package nl.b3p.geotools.data.arcims; import java.io.IOException; import org.geotools.data.FeatureReader; import org.geotools.data.Query; import org.geotools.data.QueryCapabilities; import org.geotools.data.store.ContentEntry; import org.geotools.data.store.ContentFeatureSource; import org.geotools.feature.simple.Simple...
package com.xpn.xwiki.plugin.activitystream.impl; import java.util.List; import java.util.ArrayList; import java.io.StringWriter; import java.net.URL; import java.net.MalformedURLException; import org.apache.commons.lang.RandomStringUtils; import org.hibernate.Query; import org.hibernate.Session; import com.xpn.xwiki.X...
package com.smartnsoft.droid4me.app; import android.app.IntentService; import android.content.SharedPreferences; import android.preference.PreferenceManager; import com.smartnsoft.droid4me.log.Logger; import com.smartnsoft.droid4me.log.LoggerFactory; public abstract class SmartIntentService extends IntentService { ...
package org.broadinstitute.sting.utils; import cern.jet.math.Arithmetic; import java.math.BigDecimal; import java.util.*; import net.sf.samtools.SAMRecord; /** * MathUtils is a static class (no instantiation allowed!) with some useful math methods. * * @author Kiran Garimella */ public class MathUtils { /** Pub...
package org.TexasTorque.TexasTorque2013.constants; public class Ports { public final static int SIDECAR_ONE = 1; public final static int SIDECAR_TWO = 2; public final static int DRIVE_CONTROLLER_PORT = 1; public final static int OPERATOR_CONTROLLER_PORT = 2; public final static int FRONT_RIGHT_D...
package org.opendaylight.yangtools.yang.data.impl.leafref; import com.google.common.collect.Iterables; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import j...
package com.swabunga.spell.event; import javax.swing.text.BadLocationException; import javax.swing.text.Document; import javax.swing.text.Segment; import java.text.BreakIterator; /** This class tokenizes a swing document model. It also allows for the * document model to be changed when corrections occur. * * @autho...
package tv.xrm.jfilter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; /** * Sub-tree specification node for FilteredTreeCopier. This is the "programmatic" specification. * * @see tv.xrm.jfilter.FilteredTreeCopier * @see tv.xrm.jfilter.Spec */ public final cla...
package org.bouncycastle.crypto.encodings; import org.bouncycastle.crypto.AsymmetricBlockCipher; import org.bouncycastle.crypto.CipherParameters; import org.bouncycastle.crypto.InvalidCipherTextException; import org.bouncycastle.crypto.params.AsymmetricKeyParameter; import org.bouncycastle.crypto.params.ParametersWithR...
package com.github.kostyasha.yad.steps; import com.github.kostyasha.yad.commons.cmds.DockerBuildImage; import com.github.kostyasha.yad.connector.YADockerConnector; import com.github.kostyasha.yad.utils.VariableUtils; import com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.DockerClient; import com.github.k...
package org.bouncycastle.jce.provider; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1InputStream; import org.bouncycastle.asn1.ASN1Object; import org.bouncycastle.asn1.ASN1OctetString; import org.bouncycastle.asn1.ASN1Sequence; import org.bouncycastle.asn1.ASN1Set; import org.bouncy...
package org.collectionspace.hello.services.nuxeo; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.List; import java.util.Map; import org.restlet.Client; import org.restlet.data.ChallengeResponse; import org.restlet.data.ChallengeScheme; import org.restlet.data.Cooki...
package water.fvec; import java.util.Arrays; import java.util.GregorianCalendar; import water.parser.Enum; import water.parser.ValueString; import water.*; import water.parser.DParseTask; // An uncompressed chunk of data, supporting an append operation public class NewChunk extends Chunk { final int _cidx; // We ca...
package org.callimachusproject.client; import java.io.Closeable; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; import org.apache.http.ConnectionReuseStrategy; import org...
package org.elmlang.intellijplugin; import com.intellij.lexer.Lexer; import com.intellij.openapi.editor.DefaultLanguageHighlighterColors; import com.intellij.openapi.editor.HighlighterColors; import com.intellij.openapi.editor.colors.TextAttributesKey; import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; import...
package com.hubspot.singularity.mesos; import com.hubspot.singularity.MachineLoadMetric; import com.hubspot.singularity.SingularitySlaveUsage; import com.hubspot.singularity.SingularitySlaveUsage.ResourceUsageType; import com.hubspot.singularity.SingularityUsageScoringStrategy; class SingularitySlaveUsageWithCalculated...
package mondrian.rolap; import mondrian.mdx.MdxVisitorImpl; import mondrian.mdx.MemberExpr; import mondrian.olap.*; import mondrian.resource.MondrianResource; import mondrian.rolap.aggmatcher.ExplicitRules; import mondrian.rolap.cache.SoftSmartCache; import org.apache.log4j.Logger; import org.eigenbase.xom.*; import or...
package com.gps.capstone.traceroute.sensors.listeners; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.util.Log; import com.gps.capstone.traceroute.sensors.SensorUtil.E...
package org.sfm.map; import org.sfm.map.column.ColumnProperty; import org.sfm.map.column.FieldMapperColumnDefinition; import org.sfm.map.column.ConstantValueProperty; import org.sfm.map.context.KeySourceGetter; import org.sfm.map.context.MappingContextFactoryBuilder; import org.sfm.map.mapper.ConstantTargetFieldMapperF...
package org.jasig.cas.util; import java.security.SecureRandom; /** * @author Scott Battaglia * @version $Id$ */ public class DefaultRandomStringGenerator implements RandomStringGenerator { private static final int MAX_TIMESTAMP_LENGTH = 10; private static final int MAX_RANDOM_LENGTH = 12; private static ...
package mondrian.tui; import mondrian.olap.*; import mondrian.olap.Util.ByteMatcher; import mondrian.rolap.RolapConnectionProperties; import mondrian.server.StringRepositoryContentFinder; import mondrian.spi.CatalogLocator; import mondrian.spi.impl.CatalogLocatorImpl; import mondrian.util.LockBox; import mondrian.xmla....
package com.philosophicalhacker.philhackernews; import android.app.Application; import android.content.Context; import android.support.test.runner.AndroidJUnitRunner; public class DaggerModuleOverridingAndroidJUnitRunner extends AndroidJUnitRunner { @Override public Application newApplication(ClassLoader cl, St...
package org.jitsi.videobridge; import java.io.*; import java.util.*; import javax.media.*; import javax.media.control.*; import javax.media.format.*; import javax.media.protocol.*; import org.jitsi.impl.neomedia.codec.*; import org.jitsi.impl.neomedia.jmfext.media.protocol.*; import org.jitsi.impl.neomedia.jmfext.media...
package info.nightscout.androidaps.plugins.Persistentnotification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.support.v4.app.TaskStackBuilde...
// G l y p h S i g n a t u r e // // This software is released under the terms of the GNU General Public // // to report bugs & suggestions. // package omr.glyph; import omr.util.Implement; import java.awt.Rectangle; /** ...
/* * $Id: SubTreeArticleIteratorBuilder.java,v 1.4 2013-08-15 00:44:34 thib_gc Exp $ */ package org.lockss.plugin; import java.util.*; import java.util.regex.*; import org.lockss.extractor.MetadataTarget; import org.lockss.util.Logger; public class SubTreeArticleIteratorBuilder { /** * <p> * A programmaticall...
package raptor.alias; import org.apache.commons.lang.StringUtils; import raptor.swt.chat.ChatConsoleController; import raptor.util.RaptorStringTokenizer; public class AbbreviatedChannelTellAlias extends RaptorAlias { public AbbreviatedChannelTellAlias() { super( "###Message", ...
package org.opencms.ade.contenteditor; import org.opencms.acacia.shared.CmsAttributeConfiguration; import org.opencms.acacia.shared.CmsEntity; import org.opencms.acacia.shared.CmsEntityAttribute; import org.opencms.acacia.shared.CmsEntityHtml; import org.opencms.acacia.shared.CmsTabInfo; import org.opencms.acacia.share...
package org.ovirt.engine.core.common.businessentities; import java.util.Set; import org.codehaus.jackson.annotate.JsonIgnore; import org.ovirt.engine.core.common.businessentities.storage.StorageType; import org.ovirt.engine.core.common.errors.EngineError; import org.ovirt.engine.core.common.utils.ObjectUtils; import or...
package org.robockets.buttonmanger.buttons; import org.robockets.buttonmanger.Button; import edu.wpi.first.wpilibj.command.Command; public class ActionButton extends Button { private boolean killOnRelease = true; public ActionButton(int joystickNumber, int buttonNumber, Command command, boolean killOnRelease) {...
package org.eclipse.smarthome.core.common; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.Timeo...
// This file was generated by RobotBuilder. It contains sections of // code that are automatically generated and assigned by robotbuilder. // These sections will be updated in the future when you export to // Java from RobotBuilder. Do not put any code or make any change in // the blocks indicating autogenerated code o...
package net.classicube.launcher; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; import java.nio.file.CopyOption; import java.nio.file.Files; import java.nio.file.Path; import ja...
package uk.nhs.careconnect.ri.gatewaylib.provider; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.rest.annotation.*; import ca.uhn.fhir.rest.api.MethodOutcome; import ca.uhn.fhir.rest.param.StringParam; import ca.uhn.fhir.rest.param.TokenParam; import ca.uhn.fhir.rest.server.IResourceProvider; import ca.uhn...
package ch.elexis.laborimport.viollier.v2_test.importer; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import java.net.URL; import java.util.List; import java.util.concurrent.atomic.AtomicReference; import org.eclipse.core.runtime.File...
package dr.evomodel.continuous; import dr.inference.model.Parameter; import dr.xml.*; public abstract class LatentFactorModelParser extends AbstractXMLObjectParser { public final static String LATENT_FACTOR_MODEL="latentFactorModel"; public final static String NUMBER_OF_FACTORS="factorNumber"; public final ...
package edu.kit.informatik.student_portal; /** * Error messages for string members of different classes * @author s_toledonavarro * @version 1.00 */ public enum ErrorMessage { /** * Error messages for first name member of class professor */ PROFESSOR_FIRSTNAME("professor firstname"), /** ...
package com.yahoo.vespa.hosted.controller.api.systemflags.v1; import com.yahoo.vespa.flags.FlagId; import com.yahoo.vespa.flags.json.FlagData; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.UncheckedIOException; import java.nio.fil...
package info.tregmine.listeners; import static org.bukkit.ChatColor.GREEN; import static org.bukkit.ChatColor.ITALIC; import static org.bukkit.ChatColor.RESET; import java.io.File; import java.util.*; import java.util.Map.Entry; import org.bukkit.*; import org.bukkit.block.*; import org.bukkit.entity.*; import org.bukk...
package org.cytoscape.datasource.biogrid.internal; import java.io.File; import java.io.IOException; import java.util.Properties; import java.util.Set; import org.cytoscape.io.datasource.DataSource; import org.osgi.framework.BundleContext; public class BioGridDataSoruceBuilder { public BioGridDataSoruceBuilder(final...
package it.cnr.isti.vir.util.bytes; public class DoubleByteArrayUtil { //private static final int MASK = 0xff; public static final int BYTES = Double.SIZE / 8; /** * @param byteArray source bytes * @param byteOffset source offset * @return */ public static final double get(...
package org.jboss.xnio; import java.io.Closeable; import java.io.IOException; import java.util.concurrent.Executor; import java.util.concurrent.ThreadFactory; import java.net.SocketAddress; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import org.jboss.xnio.channels.TcpChanne...
package org.hisp.dhis.fieldfilter; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hisp.dhis.common.LinkObje...
// Vilya 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 co.unruly.control.result; import co.unruly.control.ThrowingLambdas; import java.util.Optional; import java.util.function.Function; import java.util.function.Predicate; import java.util.function.Supplier; import static java.util.function.Function.identity; /** * A collection of functions which take regular valu...
package com.codeborne.selenide; import java.util.logging.Logger; import static com.codeborne.selenide.WebDriverRunner.FIREFOX; public class Configuration { private static final Logger LOG = Logger.getLogger(Configuration.class.getName()); public static String baseUrl = System.getProperty("selenide.baseUrl", "http:/...
package com.github.davidmoten.security; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; final class Bytes { private Bytes() { // prevent instantiation } static byte[] from(InputStream is) { try { ByteArrayOutputStream bytes = new Byte...
package com.simplyian.colonies.colony; import gnu.trove.iterator.TObjectIntIterator; import gnu.trove.iterator.TShortObjectIterator; import gnu.trove.map.TObjectIntMap; import gnu.trove.map.TShortObjectMap; import gnu.trove.map.hash.TObjectIntHashMap; import gnu.trove.map.hash.TShortObjectHashMap; import java.io.Serial...
package com.tmtravlr.potioncore; import net.minecraftforge.common.config.Configuration; import com.tmtravlr.potioncore.PotionCoreEffects.PotionData; import com.tmtravlr.potioncore.effects.PotionArchery; import com.tmtravlr.potioncore.effects.PotionExplosion; import com.tmtravlr.potioncore.effects.PotionExplosionSelf; i...
package com.trcx.ita.Common.Item; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.ShapedOreRecipe; public class ArmorHammer extends Item { public ArmorHammer() { setMaxSt...
package io.cfp.service.email; import com.sendgrid.SendGrid; import com.sendgrid.SendGridException; import freemarker.template.Configuration; import freemarker.template.TemplateException; import io.cfp.dto.TalkAdmin; import io.cfp.dto.TalkUser; import io.cfp.dto.user.CospeakerProfil; import io.cfp.dto.user.UserProfil; i...
package ljfa.noitemrot; import java.util.Iterator; import net.minecraft.launchwrapper.IClassTransformer; import org.apache.logging.log4j.Level; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassWriter; import org.objectweb.asm.Opcodes; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectw...
package net.lightbody.bmp.proxy; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; import net.lightbody.bmp.proxy.util.Log; import java.net.InetAddress; import java.util.Collection; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.uti...
package nonapi.io.github.classgraph; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Collections; import java.util.List; import io.github.classgraph.ClassGraph.ClasspathElementFilter; import io.github.classgraph.ClassInfo; import io.github.classgraph.ModulePathInfo; import io.github.classgr...
package org.treetank.axislayer; import org.treetank.api.IAxis; import org.treetank.api.IReadTransaction; import org.treetank.utils.FastStack; /** * <h1>PrecedingAxis</h1> * * <p> * Iterate over all preceding nodes of kind ELEMENT or TEXT starting at a * given node. Self is not included. * </p> */ public class Pr...
package seedu.address.logic.parser; import java.util.regex.Pattern; import seedu.address.logic.parser.ArgumentTokenizer.Prefix; /** * Contains Command Line Interface (CLI) syntax definitions common to multiple commands */ public class CliSyntax { /* Prefix definitions */ // TODO don't think we need the prefix...
package org.openmrs.validator; import java.util.ArrayList; import java.util.List; import org.openmrs.Concept; import org.openmrs.ConceptDatatype; import org.openmrs.ConceptNumeric; import org.openmrs.Obs; import org.openmrs.annotation.Handler; import org.openmrs.api.context.Context; import org.springframework.validatio...
package soot.jimple.infoflow.android; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util...
package com.github.davidmoten.rtree; import static com.github.davidmoten.rtree.Entry.entry; import static com.github.davidmoten.rtree.geometry.Geometries.point; import static com.github.davidmoten.rtree.geometry.Geometries.rectangle; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFals...
package com.github.davidmoten.rtree; import static com.github.davidmoten.rtree.Entry.entry; import static com.github.davidmoten.rtree.geometry.Geometries.point; import static com.github.davidmoten.rtree.geometry.Geometries.rectangle; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFals...
package com.github.hi_fi.testapp; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; imp...
package com.github.nsnjson; import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.node.*; import org.junit.Test; import java.util.*; import static com.github.nsnjson.format.Format.*; public abstract class AbstractFormatTest { @Test public void testNull() { processTestNull(getNul...
package com.redhat.victims; import static org.junit.Assert.*; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.redhat.victims.VictimsService.RecordStream; public class VictimsServiceTest { private...
package scenelib.annotations.el; import java.io.File; import java.lang.annotation.RetentionPolicy; import java.lang.reflect.Method; import java.util.*; import java.util.StringJoiner; import org.checkerframework.checker.nullness.qual.Nullable; import scenelib.annotations.el.AElement; import scenelib.annotations.Annotati...
package com.uwetrottmann.getglue; import junit.framework.TestCase; import org.apache.oltu.oauth2.client.OAuthClient; import org.apache.oltu.oauth2.client.URLConnectionClient; import org.apache.oltu.oauth2.client.request.OAuthClientRequest; import org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse; impo...
package com.wizzardo.http.request; import com.wizzardo.http.ResponseReader; import com.wizzardo.tools.io.FileTools; import com.wizzardo.tools.security.MD5; import org.junit.Assert; import org.junit.Test; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import jav...
package net.dean.jraw.test; import net.dean.jraw.AccountPreferencesEditor; import net.dean.jraw.ApiException; import net.dean.jraw.managers.CaptchaHelper; import net.dean.jraw.util.JrawUtils; import net.dean.jraw.http.NetworkException; import net.dean.jraw.managers.AccountManager; import net.dean.jraw.models.AccountPre...
package ly.count.android.sdk; import android.app.ActivityManager; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.FeatureInfo; import android.content.pm.PackageManager; import android.content.res.Configuration; import android.media.AudioManag...
package org.basex.test.server; import static org.basex.core.Text.*; import static org.junit.Assert.*; import java.io.IOException; import org.basex.BaseXServer; import org.basex.core.BaseXException; import org.basex.io.ArrayOutput; import org.basex.server.ClientQuery; import org.basex.server.ClientSession; import org.ju...
package org.mockito.junit; import org.junit.runners.model.InitializationError; import org.mockito.internal.junit.MismatchReportingTestListener; import org.mockito.internal.junit.MockitoTestListener; import org.mockito.internal.runners.RunnerFactory; import org.mockito.internal.runners.StrictRunner; import org.mockito.i...
package org.owasp.esapi.reference; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Arrays; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.owasp.esapi.ESAPI; import org.owasp.esapi.Encoder; i...
package org.zeroturnaround.zip; import java.io.ByteArrayOutputStream; import java.io.File; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.zeroturnaround.zip.commons.FileUtils; import org.junit.Assert; /** * Tests that need a temporary directory for the test. */ public...
package seedu.doit.model.task; import static org.junit.Assert.assertTrue; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import seedu.doit.commons.exceptions.IllegalValueException; import seedu.doit.model.item.Description; public class DescriptionTest { @Rule public Expe...