answer
stringlengths
17
10.2M
package org.eigenbase.enki.test; import java.io.*; import java.util.*; import javax.xml.parsers.*; import org.junit.*; import org.xml.sax.*; import org.xml.sax.helpers.*; /** * XmiFileComparator performs an order-insensitive comparison of two XMI files * or strings. In addition to ignoring the order of model element...
package org.exist.xquery.functions.util; import org.exist.dom.DocumentSet; import org.exist.dom.NodeSet; import org.exist.dom.QName; import org.exist.storage.Indexable; import org.exist.util.ValueOccurrences; import org.exist.xquery.BasicFunction; import org.exist.xquery.Cardinality; import org.exist.xquery.FunctionCal...
package com.lightcrafts.image.metadata.makernotes; import java.awt.image.RenderedImage; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.ResourceBundle; import com.lightcrafts.image.BadImageFileException; import com.lightcrafts.image.ImageInfo; import com.lightcrafts.image.Un...
package org.exist.xquery.functions.util; import org.apache.log4j.Logger; import org.exist.dom.DocumentSet; import org.exist.dom.NodeSet; import org.exist.dom.QName; import org.exist.indexing.IndexWorker; import org.exist.indexing.OrderedValuesIndex; import org.exist.indexing.QNamedKeysIndex; import org.exist.storage.DB...
package dynamake.models; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Point; import java.awt.Rectangle; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; ...
package org.exist.xquery.functions.util; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.Properties; import javax.xml.transform.OutputKeys; import org.exist.dom.QName; import org.exist.storage.serializers.Serial...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package nl.uva.cs.lobcder.optimization; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; import nl.uva....
package dynamake.models; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Point; import java.awt.Rectangle; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.ArrayList; import java.ut...
package cgeo.geocaching.settings.fragments; import cgeo.geocaching.BuildConfig; import cgeo.geocaching.R; import cgeo.geocaching.settings.Settings; import cgeo.geocaching.settings.SettingsActivity; import android.content.Intent; import android.os.Bundle; import androidx.preference.ListPreference; import androidx.prefer...
package org.mockito.internal.stubbing; import java.util.LinkedList; import java.util.List; import org.mockito.exceptions.Reporter; import org.mockito.internal.util.MockUtil; import org.mockito.stubbing.Answer; @SuppressWarnings("unchecked") public class StubberImpl implements Stubber { final List<Answer> answers = ...
package cgeo.geocaching.settings.fragments; import cgeo.geocaching.R; import cgeo.geocaching.apps.navi.NavigationAppFactory; import cgeo.geocaching.brouter.BRouterConstants; import cgeo.geocaching.brouter.util.DefaultFilesUtils; import cgeo.geocaching.maps.routing.RoutingMode; import cgeo.geocaching.settings.Settings; ...
package org.pentaho.ui.xul.binding; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.lo...
package org.photon.jackson.flatjson; import com.fasterxml.jackson.annotation.ObjectIdGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.deser.Hack; import com.fasterxml.jackson.databind.deser.ValueInstantiator; import com.fasterxml.jac...
package org.treetank.xmllayer; import org.treetank.api.IConstants; import org.treetank.api.INode; import org.treetank.api.IReadTransaction; import org.treetank.utils.FastStack; import org.treetank.utils.UTF; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; public class SubtreeSAXGenerator extends SAX...
package com.mongodb.migratecluster.migrators; import com.mongodb.MongoClient; import com.mongodb.MongoClientURI; import com.mongodb.migratecluster.AppException; import com.mongodb.migratecluster.commandline.ApplicationOptions; import com.mongodb.migratecluster.commandline.Resource; import com.mongodb.migratecluster.com...
package org.usfirst.frc.team4915.stronghold; import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.command.Scheduler; import edu.wpi.first.wpilibj.livewindow.LiveWindow; import edu.wpi.first.wpilibj.smartdashboard.S...
package org.yvka.Beleg2.gui; import javafx.animation.Interpolator; import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import javafx.animation.Timeline; import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.DepthTest; import javafx....
package com.touchboarder.weekdaysbuttons; import android.content.Context; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import android.support.annotation.AttrRes; import androi...
package org.torquebox.core.runtime; import java.io.Closeable; import java.io.IOException; import java.io.PrintStream; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java...
package com.haulmont.chile.core.loader; import com.haulmont.bali.util.ReflectionHelper; import com.haulmont.chile.core.annotations.*; import com.haulmont.chile.core.datatypes.Datatype; import com.haulmont.chile.core.datatypes.Datatypes; import com.haulmont.chile.core.datatypes.impl.EnumerationImpl; import com.haulmont....
package org.testcontainers.containers; import com.github.dockerjava.api.command.ExecCreateCmdResponse; import com.github.dockerjava.api.command.InspectContainerResponse; import com.github.dockerjava.core.command.ExecStartResultCallback; import lombok.SneakyThrows; import org.testcontainers.utility.Base58; import org.te...
package entity.mob.projectiles; import indieQuest.entity.Entity; import indieQuest.graphics.Screen; import indieQuest.graphics.Sprite; public class Projectile extends Entity { public final int startX, startY; public double angle; public double x, y; public double targetX, targetY; public double spee...
package com.awplab.core.mongodb.command; import com.awplab.core.mongodb.Log; import com.awplab.core.mongodb.MDCLoggerAutoClosable; import org.apache.karaf.shell.api.action.Action; import org.apache.karaf.shell.api.action.Argument; import org.apache.karaf.shell.api.action.Command; import org.apache.karaf.shell.api.actio...
package org.hibernate.ogm.datastore.mongodb; import static org.hibernate.ogm.datastore.mongodb.dialect.impl.MongoDBTupleSnapshot.SnapshotType.INSERT; import static org.hibernate.ogm.datastore.mongodb.dialect.impl.MongoDBTupleSnapshot.SnapshotType.UPDATE; import static org.hibernate.ogm.datastore.mongodb.dialect.impl.Mo...
package mb.nabl2.terms.unification.u; import java.io.Serializable; import java.util.Collection; import java.util.Deque; import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import java.util.Optional; import org.metaborg.util.Ref; import org.metaborg.util.functions.Predicate1; import com.google....
package net.nemerosa.ontrack.service.job; import com.codahale.metrics.MetricRegistry; import net.nemerosa.ontrack.job.JobListener; import net.nemerosa.ontrack.job.JobScheduler; import net.nemerosa.ontrack.job.Schedule; import net.nemerosa.ontrack.job.orchestrator.JobOrchestrator; import net.nemerosa.ontrack.job.orchest...
package de.geeksfactory.opacclient.apis; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpGet; import org.apache.http.message.BasicNameValuePair; import org.json.JSONException; import org.json.JSONObject; import org.jsoup.Connecti...
// This file is part of the OpenNMS(R) Application. // OpenNMS(R) is a derivative work, containing both original code, included code and modified // and included code are below. // OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc. // Modifications: // 2006 Aug 15: Formatting, use generics for collections,...
package org.fiteagle.adapters.openstack; import info.openmultinet.ontology.vocabulary.Omn; import info.openmultinet.ontology.vocabulary.Omn_domain_pc; import info.openmultinet.ontology.vocabulary.Omn_lifecycle; import info.openmultinet.ontology.vocabulary.Omn_monitoring; import info.openmultinet.ontology.vocabulary.Omn...
package org.jenetics.internal.util; import java.util.ListIterator; import java.util.NoSuchElementException; public class ArrayProxyIterator<T> implements ListIterator<T> { final ArrayProxy<T> _proxy; private int _pos = 0; public ArrayProxyIterator(final ArrayProxy<T> proxy) { _proxy = proxy; } ...
package sk.henrichg.phoneprofiles; import android.annotation.SuppressLint; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.provider.Settings; import android.support.v7.app.AppCompatActivity; import android.view.Gravity; import android.view.LayoutInflater; import andro...
package ua.com.fielden.platform.utils; import static java.lang.String.format; import static ua.com.fielden.platform.entity.AbstractEntity.COMMON_PROPS; import static ua.com.fielden.platform.reflection.AnnotationReflector.getKeyType; import java.io.Serializable; import java.lang.reflect.Constructor; import java.lang.ref...
package com.intellij.execution.ui; import com.intellij.execution.BeforeRunTask; import com.intellij.execution.BeforeRunTaskProvider; import com.intellij.execution.ExecutionBundle; import com.intellij.execution.configurations.RunConfiguration; import com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl; import...
package com.intellij.openapi.vcs.actions; import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.actionSystem.ActionPromoter; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.editor.actions.NextWordWithSelec...
package com.intellij.vcs.log.ui; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.ui.JBColor; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.ui.UIUtil; import com.intellij.vcs.log.ui.tables.AbstractVcsLogTableModel; import org.j...
package net.mcft.copy.tweaks; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.ListIterator; import java.util.Map; import java.util.Set; import net.mcft.copy.betterstorage.api.crafting.BetterStorageCrafting; import net.mcft.copy.betterstorage.api.craft...
package com.mapzen.tangram; import android.content.Context; import android.content.res.AssetManager; import android.graphics.Bitmap; import android.graphics.PointF; import android.graphics.Rect; import android.opengl.GLSurfaceView.Renderer; import android.os.Build; import android.os.Handler; import android.support.anno...
package net.milkycraft.Listeners; import java.util.List; import net.milkycraft.Spawnegg; import org.bukkit.entity.CaveSpider; import org.bukkit.entity.Chicken; import org.bukkit.entity.Cow; import org.bukkit.entity.Creeper; import org.bukkit.entity.Enderman; import org.bukkit.entity.Ghast; import org.bukkit.entity.Iron...
package netspy.components.mailing; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import netspy.NetSpy; import netspy.components.config.ConfigPropertiesManager; import netspy.components.filehandling.lists.Blacklist; import netspy.components.fileha...
package nl.tudelft.selfcompileapp; import java.io.File; import java.io.InputStream; import java.io.PrintWriter; import java.security.PrivateKey; import java.security.cert.X509Certificate; import java.util.Locale; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Async...
package openblocks.common.entity; import com.google.common.io.ByteArrayDataInput; import com.google.common.io.ByteArrayDataOutput; import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.ai.EntityAIFollowOwner; import net.minecraft.entity.ai...
package org.apache.xerces.readers; import org.apache.xerces.framework.XMLErrorReporter; import org.apache.xerces.utils.QName; import org.apache.xerces.utils.StringPool; import org.apache.xerces.utils.XMLCharacterProperties; import org.xml.sax.Locator; import org.xml.sax.InputSource; import java.io.IOException; /** * R...
// Sep 14, 2000: // Fixed problem with namespace handling. Contributed by // David Blondeau <blondeau@intalio.com> // Sep 14, 2000: // Fixed serializer to report IO exception directly, instead at // the end of document processing. // Reported by Patrick Higgins <phiggins@transzap.com> // Aug 21, 2000: // Fixed bu...
package org.biojava.bio.program.abi; import java.io.DataInput; import java.io.DataInputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.biojava.bio.seq.DNATools...
package kawa.lang; import gnu.lists.*; import java.io.*; import gnu.mapping.*; import gnu.expr.*; import java.util.*; /** The translated form of a <code>(syntax <var>template</var>)</code>. */ public class SyntaxTemplate implements Externalizable { /** A <code>syntax</code> or <code>syntax-rules</code> template is ...
package de.independit.scheduler.server.repository; import java.io.*; import java.util.*; import java.lang.*; import java.sql.*; import de.independit.scheduler.server.*; import de.independit.scheduler.server.util.*; import de.independit.scheduler.server.exception.*; public class SDMSParameterDefinition extends SDMSParam...
package org.inaturalist.android; import java.io.Serializable; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.HashMap; import java.util.Locale; import java.util.Map; import org.inaturalist.android.R; import org.inaturalist.android.INaturalistService.LoginType; import android.app.Activity;...
package soot.jimple.internal; import soot.*; import soot.jimple.*; import java.util.*; public class JInterfaceInvokeExpr extends AbstractInterfaceInvokeExpr { public JInterfaceInvokeExpr(Value base, SootMethodRef methodRef, List args) { super(Jimple.v().newLocalBox(base), methodRef, new Val...
package org.jetbrains.plugins.groovy.util; import com.intellij.openapi.components.PersistentStateComponent; import com.intellij.openapi.fileChooser.FileChooserDescriptor; import com.intellij.openapi.options.Configurable; import com.intellij.openapi.options.ConfigurationException; import com.intellij.openapi.project.Pro...
package org.jstrava.entities.activity; import org.jstrava.entities.segment.SegmentEffort; import org.jstrava.entities.athlete.Athlete; import java.util.List; import com.google.gson.annotations.SerializedName; public class Activity { private int id; private int resource_state; private String external_id; ...
package org.mozilla.mozstumbler; import android.net.wifi.ScanResult; import android.util.Log; import java.util.Locale; import java.util.regex.Pattern; final class BSSIDBlockList { private static final String LOGTAG = BSSIDBlockList.class.getName(); private static final String NULL_BSSID = "000000000000...
package org.newdawn.slick.state; import java.util.HashMap; import java.util.Iterator; import org.newdawn.slick.Game; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Input; import org.newdawn.slick.InputListener; import org.newdawn.slick.SlickException; import org.newd...
package org.jkiss.dbeaver.model.sql; import org.eclipse.core.resources.IFile; import org.jkiss.code.NotNull; import org.jkiss.code.Nullable; import org.jkiss.dbeaver.Log; import org.jkiss.dbeaver.model.DBPDataKind; import org.jkiss.dbeaver.model.DBPDataSource; import org.jkiss.dbeaver.model.DBPObject; import org.jkiss....
package org.nutz.lang.reflect; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.Arrays; import java.util.Comparator; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; import org...
package org.jkiss.dbeaver.model.sql; import org.eclipse.core.resources.IFile; import org.jkiss.code.NotNull; import org.jkiss.code.Nullable; import org.jkiss.dbeaver.Log; import org.jkiss.dbeaver.model.DBPDataKind; import org.jkiss.dbeaver.model.DBPDataSource; import org.jkiss.dbeaver.model.DBPObject; import org.jkiss....
package org.nwapw.abacus.plugin; import org.nwapw.abacus.function.Function; import org.nwapw.abacus.number.NaiveNumber; import org.nwapw.abacus.number.NumberInterface; import javax.print.attribute.standard.MediaSize; import java.util.function.BiFunction; /** * The plugin providing standard functions such as addition a...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.olentangyfrc.subsystems; import edu.wpi.first.wpilibj.Victor; import edu.wpi.first.wpilibj.command.Subsystem; import org.olentangyfrc.RobotMap; /** * * @author Bindernews */ public class DriveTrain extends...
package org.sugr.gearshift; import android.app.ActionBar; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; import andro...
package org.sylvani.bot.universal; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Stack; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sylvani.bot.ActivityType; import org.sylvani.bot.ContextBase; import org.sylvani.bot.IActivity; import org.sylvani.bo...
package org.treetank.utils; public final class FastByteArrayReader { private final byte[] mBuffer; private int mPosition; /**F * Constructor. * */ public FastByteArrayReader(final byte[] buffer) { mBuffer = buffer; mPosition = 0; } public final boolean setOffset(int offset) { if (offset...
package org.treetank.utils; import java.math.BigInteger; public final class FastByteArrayWriter { private byte[] mBuffer; private int mSize; /** * Constructor. * */ public FastByteArrayWriter() throws Exception { mBuffer = new byte[32]; mSize = 0; } public final void writeBoolean(final bool...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.trie.spellchecker; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; im...
package biweekly.io.json; import static biweekly.util.TestUtils.assertDateEquals; import static biweekly.util.TestUtils.assertIntEquals; import static biweekly.util.TestUtils.assertWarnings; import static biweekly.util.TestUtils.buildTimezone; import static org.junit.Assert.assertEquals; import static org.junit.Assert....
package com.adyen; import com.adyen.httpclient.ClientInterface; import com.adyen.httpclient.HTTPClientException; import com.adyen.model.checkout.CreateCheckoutSessionRequest; import com.adyen.model.checkout.CreatePaymentLinkRequest; import com.adyen.model.checkout.PaymentSessionRequest; import com.adyen.model.checkout....
package com.alexrnl.commons.mvc; import static org.junit.Assert.assertEquals; import java.util.logging.Level; import java.util.logging.Logger; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * Test suite for the * @author Alex */ public class MVCTest { /** The model for the tests*/ ...
package com.github.arteam.jdbi3; import com.codahale.metrics.annotation.Timed; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import org.jdbi.v3.sqlobject.customizer.Bind; import org.jdbi.v3.sqlobject.statement.SqlQuery; import org.jdbi.v3.stringtemplate4.UseStringTemplat...
package com.lhkbob.entreri; import org.junit.Assert; import org.junit.Test; import com.lhkbob.entreri.component.IntComponent; public class IteratorTest { @Test public void testDisabledComponents() { EntitySystem system = new EntitySystem(); IntComponent cd = system.createDataInstance(TypeId.get(...
package hudson.plugins.jira; import com.atlassian.jira.rest.client.api.RestClientException; import com.atlassian.jira.rest.client.api.domain.Comment; import com.atlassian.jira.rest.client.api.domain.Issue; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import hudson.model.*; import hudso...
package integration.blog; import integration.configuration.IntegrationTestsConfiguration; import org.hamcrest.MatcherAssert; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; i...
package isomorphly; import isomorphly.annotations.Component; import isomorphly.annotations.Group; import java.lang.annotation.Annotation; import java.util.List; import test.isomorphly.dummy.annotations.Plugin; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit te...
package linenux.command; import static junit.framework.TestCase.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.time.LocalDateTime; import java.util.ArrayList; import org.junit.Before; import org.junit.Test; import linenux.command.result.CommandResult; im...
package org.mozilla.taskcluster; import java.io.BufferedReader; import java.io.InputStreamReader; import java.nio.ByteBuffer; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.TimeZone; import java.util.UUID; import java...
package seedu.address.testutil; import com.google.common.io.Files; import guitests.guihandles.PersonCardHandle; import javafx.geometry.Bounds; import javafx.geometry.Point2D; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyCodeCombination; import java...
package com.facebook.presto.execution; import com.facebook.presto.OutputBuffers; import com.facebook.presto.ScheduledSplit; import com.facebook.presto.TaskSource; import com.facebook.presto.event.query.QueryMonitor; import com.facebook.presto.metadata.LocalStorageManager; import com.facebook.presto.metadata.Metadata; i...
package uk.me.graphe.server.database; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import uk.me.graphe.server.database.dbitems.*; import uk.me.graphe.shared.Edge; import uk.me.graphe.shared.Vertex; import uk.me.graphe.shared.graphmanagers.OTGraphM...
package us.kbase.common.service; import us.kbase.auth.AuthException; import us.kbase.auth.AuthService; import us.kbase.auth.AuthToken; import us.kbase.auth.AuthUser; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import jav...
package com.opengamma.core.id; import static org.testng.AssertJUnit.assertEquals; import org.testng.annotations.Test; import com.opengamma.id.ExternalId; import com.opengamma.util.test.TestGroup; /** * Test {@link ExternalSchemes}. */ @Test(groups = TestGroup.UNIT) public class ExternalSchemesTest { public void tes...
package gov.nih.nci.cabig.caaers.web.security; import gov.nih.nci.cabig.caaers.AbstractTestCase; import gov.nih.nci.cabig.caaers.CaaersTestCase; import gov.nih.nci.security.acegi.csm.authorization.CSMAuthorizationCheck; import junit.framework.TestCase; import org.acegisecurity.Authentication; import org.acegisecurity.G...
package com.jetbrains.python.console; import com.intellij.codeInsight.hint.HintManager; import com.intellij.execution.console.LanguageConsoleImpl; import com.intellij.execution.console.LanguageConsoleViewImpl; import com.intellij.execution.process.ProcessHandler; import com.intellij.execution.runners.ConsoleExecuteActi...
/** * Implements the Cold Fusion Function urlencodedformat */ package railo.runtime.functions.other; import java.io.UnsupportedEncodingException; import railo.commons.lang.StringUtil; import railo.commons.lang.URLEncoder; import railo.runtime.PageContext; import railo.runtime.exp.PageException; import railo.runtime.e...
package com.apixandru.rummikub.server; import com.apixandru.rummikub.api.room.RummikubRoomListener; import com.apixandru.rummikub.model.Rummikub; import com.apixandru.rummikub.model.RummikubFactory; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Optional; import static ...
package org.cyanogenmod.launcher.home.api.provider; import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.content.UriMatcher; import android.content.res.AssetFileDescriptor; import android.database.Cursor; import ...
package io.spine.server.transport.memory; import io.spine.server.transport.ChannelId; import io.spine.server.transport.Subscriber; /** * An in-memory implementation of the {@link Subscriber}. * * <p>To use only in scope of the same JVM as {@linkplain InMemoryPublisher publishers}. */ class InMemorySubscriber extend...
package org.spine3.server.entity; import com.google.common.base.Optional; import com.google.protobuf.Message; import org.spine3.base.Event; import org.spine3.base.EventContext; import org.spine3.base.Events; import org.spine3.server.BoundedContext; import org.spine3.server.entity.idfunc.IdSetEventFunction; import org.s...
package com.jcabi.github; import com.rexsl.test.request.FakeRequest; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; import org.mockito.Mockito; /** * Test case for {@link GhLimit}. * * @author Giang Le (giang@vn-smartsolutions.com) * @version $Id$ */ public final class GhLi...
package com.opentok.test; import com.github.tomakehurst.wiremock.WireMockServer; import com.github.tomakehurst.wiremock.client.WireMock; import com.github.tomakehurst.wiremock.core.WireMockConfiguration; import com.github.tomakehurst.wiremock.junit.WireMockRule; import com.opentok.Archive; import com.opentok.Archive.Ou...
package org.jgroups.tests; import junit.framework.TestCase; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.jgroups.*; import org.jgroups.blocks.RpcDispatcher; import org.jgroups.mux.MuxChannel; import org.jgroups.stack.GossipRouter; import org.jgroups.util.Util; import j...
package com.redhat.victims; public class Resources { public static final String JAR_FILE = "testdata/junit-4.11/junit-4.11.jar"; public static final String JAR_SHA1 = JAR_FILE + ".sha1"; public static final String JAR_JSON = JAR_FILE + ".json"; public static final String POM_FILE = "testdata/junit-4.11/...
package gov.adlnet.xapi; import java.io.IOException; import java.net.URL; import java.util.HashMap; import java.util.UUID; import org.junit.Test; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import gov.adlnet.xapi.client.ActivityClient; import gov.adlnet.xapi....
package guitests; import static org.junit.Assert.assertTrue; import static seedu.taskboss.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import org.junit.Test; import seedu.taskboss.commons.core.Messages; import seedu.taskboss.logic.commands.AddCommand; import seedu.taskboss.logic.commands.MarkDoneCommand; impor...
package net.afnf.blog; import java.sql.Connection; import javax.sql.DataSource; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io....
package org.jdesktop.swingx; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.regex.Pattern; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JButton; import javax.swing.JComponen...
package tk.wurst_client.features.mods; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.util.math.BlockPos; import tk.wurst_client.events.LeftClickEvent; import tk.wurst_client.events.listeners.LeftClickListener; import tk.wurst_client.events.listeners.RenderListener;...
package be.fedict.dcat.tools; import be.fedict.dcat.helpers.Storage; import com.google.common.collect.ListMultimap; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException; import java.nio.file.Files; import...
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 et: */ package jp.oist.flint.component; import java.io.File; import java.util.ArrayList; import java.util.List; public class Component { enum Shell { CMD, SH } private static final Shell mSh...
// FakeReader.java package loci.formats.in; import java.io.IOException; import java.util.Random; import loci.common.DataTools; import loci.common.Location; import loci.formats.CoreMetadata; import loci.formats.FormatException; import loci.formats.FormatReader; import loci.formats.FormatTools; import loci.formats.Metada...
// Colorizer.java package loci.plugins.in; import ij.CompositeImage; import ij.ImagePlus; import ij.measure.Calibration; import ij.process.ColorProcessor; import ij.process.ImageProcessor; import ij.process.LUT; import java.awt.Color; import java.awt.image.ColorModel; import java.awt.image.IndexColorModel; import java....
package dk.netarkivet.archive.tools; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URI; import java.net.URISyntaxException; import dk.netarkivet.common.distribute.JMSConnectionFactory; import dk.netarkivet.co...
package org.jfree.data.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.sql.Timestamp; import java.sql.Types; import org.jfree.data.general.DefaultPieDataset; import org.jfr...
package app.android.gambit.remote; import com.google.api.client.util.Key; public class CellEntry { @Key("gs:cell") private Cell cell; @Key private String id; @Key private String content; public Cell getCell() { return cell; } public String getId() { return id; } ...