answer
stringlengths
17
10.2M
package squeek.veganoption.integration.tic; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; impor...
package org.lucee.mongodb; import java.util.ArrayList; import java.util.List; import java.util.Iterator; import java.util.Map.Entry; import org.lucee.mongodb.support.DBCollectionImplSupport; import org.lucee.mongodb.util.print; import com.mongodb.DBCollection; import com.mongodb.DBCursor; import com.mongodb.DBObject; i...
package restservices.publish; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Arrays; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.io.IOUtil...
package org.ccnx.ccn.io; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException; import java.util.ArrayList; import java.util.Arrays; import java.util.EnumSet; import java.util.logging...
package org.jpos.iso.channel; import org.jpos.iso.*; import org.jpos.iso.packager.XMLPackager; import java.io.BufferedReader; import java.io.EOFException; import java.io.IOException; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; /** * Implements an ISOChannel able to exchange ...
package opendap.wcs.v2_0.http; import opendap.coreServlet.ReqInfo; import opendap.wcs.v2_0.*; import org.jdom.Document; import org.jdom.Element; import org.jdom.input.SAXBuilder; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; import org.slf4j.Logger; import org.xml.sax.EntityResolver; import org.xm...
package org.antlr.stringtemplate; import java.io.*; import java.util.*; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import org.antlr.stringtemplate.language.*; import antlr.*; import antlr.collections.AST; import antlr.collections.ASTEnumeration; /** A <TT>StringTemplate</T...
package org.biojava.utils.io; import java.io.IOException; import java.io.RandomAccessFile; import java.io.Reader; /** * <code>RandomAccessReader</code> extends <code>Reader</code> to * provide a means to create buffered <code>Reader</code>s from * <code>RandomAccessFile</code>s. * * @author Keith James * @since 1...
package org.griphyn.cPlanner.classes; import org.griphyn.cPlanner.partitioner.graph.Bag; import org.griphyn.cPlanner.common.PegasusProperties; import org.griphyn.cPlanner.common.LogManager; import org.griphyn.cPlanner.poolinfo.PoolInfoProvider; import org.griphyn.common.catalog.TransformationCatalog; import org.griphyn...
package org.nutz.dao.impl.entity; import java.sql.Connection; import java.sql.SQLException; import java.util.Map; import java.util.Map.Entry; import javax.sql.DataSource; import org.nutz.dao.entity.Entity; import org.nutz.dao.entity.annotation.ColType; import org.nutz.dao.impl.EntityHolder; import org.nutz.dao.impl.ent...
package org.torproject.onionoo; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.text.ParseException; import java.text.Simple...
package org.torproject.onionoo; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.text.ParseException; import java.text.Simple...
package org.usfirst.frc.team4536.robot; import edu.wpi.first.wpilibj.Solenoid; /* *Suggested improvement: There needs to be comments in this class! Caleb */ public class Platform { Solenoid rightSolenoid; Solenoid leftSolenoid; public Platform(int rightSolenoidChannel, int leftSolenoidChannel) { rig...
package org.carrot2.text; import java.util.*; import com.google.common.collect.Maps; /** * Maps an integer to each added unique token ({@link CharSequence}). */ public final class CharSequenceIntMap { /** * Mutable character sequence (for token ID lookups). */ private final MutableCharArray buffer =...
// DisplayViewEvent.java package imagej.display.event; import imagej.display.DisplayView; /** * An event on a display view. * * @author Lee Kamentsky */ public class DisplayViewEvent extends DisplayEvent { private final DisplayView displayView; public DisplayViewEvent(final DisplayView displayView) { ...
package com.benny.openlauncher.core.widget; import android.appwidget.AppWidgetHostView; import android.content.Context; import android.view.MotionEvent; //Important!! ReadMe //We are now using the old method to detect widget long press, this fixed all the "randomly disappearing" behaviour of widgets //However, you will...
package com.sequenceiq.cloudbreak.conf; import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.jasypt.encryption.pbe.PBEStringCleanablePasswordEncryptor; import org.jasyp...
package org.jeeventstore.core.store; import javax.ejb.EJB; import org.jeeventstore.core.notifier.EventStoreCommitNotifier; import org.jeeventstore.core.persistence.EventStorePersistence; import org.jeeventstore.core.ReadableEventStream; import org.jeeventstore.core.WritableEventStream; /** * The EventStoreService orch...
package org.javarosa.xml.util; /** * @author ctsims */ public class UnfullfilledRequirementsException extends Exception { private int severity; private int requirement; /** * Version Numbers if version is incompatible * */ private int maR, miR, maA, miA; public UnfullfilledRequirementsEx...
package com.gentics.mesh.test.context; import static com.gentics.mesh.test.util.MeshAssert.failingLatch; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CountDownLatch; import java.util.concurr...
package com.yahoo.vespa.flags; import com.yahoo.component.Vtag; import com.yahoo.vespa.defaults.Defaults; import com.yahoo.vespa.flags.custom.PreprovisionCapacity; import java.util.List; import java.util.Optional; import java.util.TreeMap; import static com.yahoo.vespa.flags.FetchVector.Dimension.APPLICATION_ID; import...
package com.yahoo.vespa.flags; import com.yahoo.component.Vtag; import com.yahoo.vespa.defaults.Defaults; import java.time.Instant; import java.time.LocalDate; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.util.List; import java.util.Optional; import java.util.TreeMap; import stati...
package com.yahoo.vespa.flags; import com.yahoo.component.Vtag; import com.yahoo.vespa.defaults.Defaults; import java.time.Instant; import java.time.LocalDate; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.util.List; import java.util.Optional; import java.util.TreeMap; import stati...
package cpw.mods.fml.client; import static org.lwjgl.opengl.GL11.*; import java.awt.image.BufferedImage; import java.awt.Dimension; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.util.ArrayList; impo...
package org.specsy.core; import fi.jumi.api.drivers.SuiteNotifier; import java.util.concurrent.Executor; public class SpecRun implements Runnable { private final Spec spec; private final Path pathToExecute; private final SuiteNotifier notifier; private final Executor executor; public SpecRun(Spec sp...
package hr.fer.zemris.vhdllab.service; import hr.fer.zemris.vhdllab.dao.DAOException; import hr.fer.zemris.vhdllab.model.File; import hr.fer.zemris.vhdllab.model.Project; import hr.fer.zemris.vhdllab.vhdl.CompilationResult; import hr.fer.zemris.vhdllab.vhdl.SimulationResult; import hr.fer.zemris.vhdllab.vhdl.VHDLGenera...
package com.exedio.cope.console; import java.io.IOException; import java.io.PrintStream; import java.util.List; import javax.servlet.http.HttpServletRequest; import com.exedio.cope.Item; import com.exedio.cope.Model; import com.exedio.cope.Query; import com.exedio.cope.pattern.Media; final class MediaCop extends Consol...
package test.dr.distibutions; import dr.math.distributions.InverseGaussianDistribution; import dr.math.interfaces.OneVariableFunction; import dr.math.iterations.BisectionZeroFinder; import junit.framework.TestCase; /** * @author Wai Lok Sibon Li */ public class InverseGaussianDistributionTest extends TestCase { I...
package com.akiban.server.encoding; import org.junit.Test; import static org.junit.Assert.assertEquals; public class YearEncoderTest extends LongEncoderTestBase { public YearEncoderTest() { super(EncoderFactory.YEAR, new TestElement[] { new TestElement("0000", 0), ...
package com.github.bot.curiosone.core.nlp; // SUPPRESS CHECKSTYLE AvoidStarImport import static org.junit.Assert.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import org.junit.Test; public class WordTest { @Test public void testInstant...
package com.manmoe.example.test; import com.google.common.base.Predicate; import com.manmoe.example.model.PopupPage; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.remote.SessionId; import org.openqa.selenium.sup...
package com.uwetrottmann.trakt5.services; import com.uwetrottmann.trakt5.BaseTestCase; import com.uwetrottmann.trakt5.TestData; import com.uwetrottmann.trakt5.entities.BaseEpisode; import com.uwetrottmann.trakt5.entities.BaseSeason; import com.uwetrottmann.trakt5.entities.BaseShow; import com.uwetrottmann.trakt5.entiti...
package ecplugins.openstack; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.h...
package edu.yu.einstein.wasp.util; //import static org.junit.Assert.*; import org.testng.annotations.Test; import org.testng.Assert; import org.testng.annotations.*; public class StringHelperTest { @BeforeClass public void setUp() throws Exception { } @AfterClass public void tearDown() throws Except...
package net.peerindex.s3stream; import com.amazonaws.AmazonClientException; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.services.s3.AmazonS3Client; import com.amazonaws.services.s3.model.*; import com.codahale.metrics.MetricRegistry; import com.google.common.base.Charsets; import com.google.comm...
package nom.bdezonia.zorbage.algorithm; import static org.junit.Assert.assertEquals; import org.junit.Test; import nom.bdezonia.zorbage.groups.G; import nom.bdezonia.zorbage.type.data.float64.real.Float64Member; import nom.bdezonia.zorbage.type.storage.IndexedDataSource; import nom.bdezonia.zorbage.type.storage.array.A...
package jdit.testing.dao; import com.google.common.collect.ImmutableList; import jdit.testing.domain.ImmutableChessGame; import jdit.testing.domain.ImmutableChessPlayer; import jdit.testing.domain.mapper.ChessGameMapper; import jdit.testing.domain.mapper.ChessPlayerMapper; import org.skife.jdbi.v2.sqlobject.SqlQuery; i...
package org.mariadb.jdbc.integration; import static org.junit.jupiter.api.Assertions.*; import java.sql.*; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.junit.jupiter.api.*; import org.mariadb.jdbc.Common; import org.mariadb.jdbc.Connection; import org.mariadb.jdbc.State...
package uk.co.eluinhost.ultrahardcore.commands; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.World; import org.bukkit.command.CommandSender; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import uk.co.eluinhost.commands.Command; import uk.co.eluinhost.commands.CommandReque...
package nl.mpi.kinnate.ui; import java.awt.BorderLayout; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URI; import java.net.URISyntaxException; import javax.swing.JButton; import javax.swing.JInternalFrame; import javax.swing.JPanel; import javax.swi...
package com.almende.dialog.adapter; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URLDecoder; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.logging.Logger; import jav...
package com.liferay.lms.upgrade; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.liferay.lms.model.LmsPrefs; import com.liferay.lms.model.Module; import com.liferay.lms.service.LmsPrefsLocalServiceUtil; import com.liferay.lms...
package com.exedio.cope.lib; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Compa...
package com.exedio.cope.instrument; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.SortedSet; import java.util.TreeMap; import java.util.TreeSet; import com.exedio.cope.FinalViolationException; import com.exedio.cope.Item; import com.exedio.co...
package com.phonegap; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.res.Configuration; import android.graphics.Color; import android.os.Bundle; import android.util.Log; import and...
package org.intermine.web; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeMap; import org.intermine.objectstor...
package org.wyona.yanel.servlet; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.InputStream; import java.io.IOException; import java.io.OutputStream; import java.io.PrintWriter; import java.net.URL; import java.util.Calendar; import java.util.Date; import ...
package Main.Controllers.Retailers; import Main.Helpers.Retailers.Sale; import Main.Helpers.UserInfo; import Main.JdbcConnection.JDBC; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.*; import javafx.scene.control.cell.PropertyValue...
package org.wyona.yanel.servlet; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.InputStream; import java.io.IOException; import java.io.OutputStream; import java.io.PrintWriter; import java.net.URL; import java.util.Calendar; import java.util.Date; import ...
package com.db.util; import java.util.Comparator; import java.util.Iterator; import java.util.Vector; /** * A tree with nodes that can have multiple ordered children. The * children of a node are ordered relative to their siblings, * not relative to the entire tree. * * @param <T> the type of object to store in th...
package fortran.ofp; import java.util.ArrayList; import java.util.Arrays; import java.util.logging.Level; import java.util.logging.Logger; import org.antlr.runtime.Token; import org.w3c.dom.Attr; import org.w3c.dom.Element; import fortran.ofp.parser.java.IActionEnums; import fortran.ofp.parser.java.IFortranParser; publ...
package com.intellij.util; import com.intellij.openapi.util.Comparing; import gnu.trove.Equality; import junit.framework.Assert; import junit.framework.AssertionFailedError; import java.io.BufferedReader; import java.io.IOException; import java.io.StringReader; import java.util.*; public class Assertion extends Assert ...
package gameEngine; import gameEngine.actors.BaseTower; import java.util.ArrayList; import java.util.List; import javafx.animation.KeyFrame; import javafx.animation.Timeline; import javafx.beans.property.DoubleProperty; import javafx.beans.property.SimpleDoubleProperty; import javafx.scene.image.ImageView; import javaf...
package railo.runtime.tag.util; import railo.commons.lang.StringUtil; import railo.runtime.exp.ApplicationException; public class FileUtil { public static final int NAMECONFLICT_UNDEFINED = 1; // can't start at 0 because we need to be able to do a bitmask test public static final int NAMECONFLICT_ERROR ...
package com.intellij.openapi.util; import com.intellij.util.ObjectUtils; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.containers.IntObjectMap; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.M...
package pl.shockah.godwit.asset; import com.badlogic.gdx.assets.AssetDescriptor; import com.badlogic.gdx.assets.AssetLoaderParameters; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.utils.Array; import java.lang.reflect.Field; import javax.annotation.Nonnull; import javax.annotation.Nullable; impo...
package com.rexsl.core; import com.ymock.util.Logger; import java.io.File; import java.lang.annotation.Annotation; import java.net.MalformedURLException; import java.net.URL; import java.util.HashSet; import java.util.Set; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.w...
package arez.test; import arez.AbstractArezTest; import arez.Arez; import arez.ArezContext; import arez.ArezObserverTestUtil; import arez.ArezTestUtil; import arez.ComputedValue; import arez.Disposable; import arez.Observable; import arez.Observer; import arez.ObserverErrorHandler; import arez.Procedure; import arez.Sp...
package git4idea.actions; import com.intellij.dvcs.DvcsUtil; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.CommonDataKeys; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.progress...
package sofia.graphics.collision; import sofia.graphics.Shape; import static sofia.graphics.ShapeAccessUtilities.*; import java.util.*; /** * A collision checker using a Binary Space Partition tree. * * <p>Each node of the tree represents a rectangular area, and potentially has * two non-overlapping child nodes whi...
package net.i2p.router.transport.ntcp; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.CancelledKeyException; import java.nio.channels.ClosedChannelException; import java.nio.channels.ClosedSelectorException; import java.nio.channels.NoConnectionPendin...
package hu.sch.ejb; import hu.sch.domain.enums.ValuationStatus; import hu.sch.domain.user.User; import hu.sch.domain.*; import hu.sch.domain.config.Configuration; import hu.sch.domain.user.ProfileImage; import hu.sch.domain.user.UserAttribute; import hu.sch.domain.user.UserAttributeName; import hu.sch.domain.user.UserS...
package hu.sch.ejb; import com.unboundid.ldap.sdk.LDAPException; import hu.sch.domain.user.User; import hu.sch.domain.*; import hu.sch.domain.user.UserAttribute; import hu.sch.domain.user.UserAttributeName; import hu.sch.domain.user.UserStatus; import hu.sch.ejb.ldap.LdapSynchronizer; import hu.sch.services.*; import h...
package org.sejda.impl.sambox; import static java.util.Comparator.reverseOrder; import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; import static org.sejda.common.ComponentsUtility.nullSafeCloseQuietly; import static org.sejda.core.notification.dsl.ApplicationEventsNotifier.notifyEvent; import static org....
package org.jboss.as.server.deployment; /** * An enumeration of the phases of a deployment unit's processing cycle. * * @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a> */ public enum Phase { /* == TEMPLATE == * Upon entry, this phase performs the following actions: * <ul> * <li...
package org.jboss.as.server.deployment; /** * An enumeration of the phases of a deployment unit's processing cycle. * * @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a> */ public enum Phase { /* == TEMPLATE == * Upon entry, this phase performs the following actions: * <ul> * <li...
package io.spine.server.delivery; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterators; import com.google.common.truth.Truth8; import com.google.protobuf.Timestamp; import com.google.protobuf.util.Durations; import com.google.protobuf....
package org.webrtc; import static java.lang.Math.abs; import static java.lang.Math.ceil; import android.content.Context; import android.graphics.ImageFormat; import android.graphics.SurfaceTexture; import android.hardware.Camera; import android.hardware.Camera.PreviewCallback; import android.opengl.GLES11Ext; import an...
package sophena.rcp.editors.results.compare; import org.eclipse.swt.widgets.Composite; import org.eclipse.ui.forms.widgets.FormToolkit; import sophena.calc.Comparison; import sophena.calc.CostResult; import sophena.calc.CostResult.FieldSet; import sophena.rcp.utils.UI; import sophena.utils.Num; class CostTable { pr...
package gnu.expr; import gnu.bytecode.*; import gnu.mapping.Values; public class StackTarget extends Target { Type type; public StackTarget(Type type) { this.type = type; } public Type getType() { return type; } public void compileFromStack(Compilation comp, Type stackType) { if (type == stackType) ...
package com.gildedrose; import static org.junit.Assert.*; import org.junit.Test; public class GildedRoseTest { private static final String JUNK = "junk"; private static final String AGED_BRIE = "Aged Brie"; @Test public void itemsWhosQualityIsNegativeAreReportedAsQualityZero() { Item[] items = new...
package com.github.nsnjson; import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.node.ObjectNode; import org.junit.*; public class DriverTest extends AbstractFormatTest { @Test public void shouldBeConsistencyWhenGivenNull() { assertConsistency(getNull()); } @Test pu...
package com.firefly.net.tcp.ssl; import java.io.Closeable; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLEngine; import javax.net.ssl.SSLEngineResult; import javax.net.ssl.SSLEngineResult.HandshakeStatus; import com...
package guitests; import javafx.scene.control.ComboBox; import javafx.scene.control.TextField; import javafx.scene.input.KeyCode; import org.junit.After; import org.junit.Test; import org.loadui.testfx.utils.FXTestUtils; import prefs.Preferences; import java.io.File; import java.util.List; import java.util.Map; import ...
package net.sf.flatpack.pzparser; import java.io.StringReader; import java.util.Iterator; import java.util.NoSuchElementException; import junit.framework.TestCase; import net.sf.flatpack.DataError; import net.sf.flatpack.DataSet; import net.sf.flatpack.DefaultParserFactory; import net.sf.flatpack.Parser; import net.sf....
package i5.las2peer.p2p; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import i5.las2peer.api.p2p.ServiceNameVersion; import i5.las2peer.api.security.A...
package innovimax.mixthem; import innovimax.mixthem.MixThem; import innovimax.mixthem.Rule; import innovimax.mixthem.exceptions.MixException; import java.io.*; import java.net.URL; import org.junit.Assert; import org.junit.Test; public class GenericTest { @Test public final void checkRule1() throws MixException, ...
package io.sniffy.util; import org.junit.Test; import static org.junit.Assert.*; public class StringUtilTest { @Test public void testEscapeJsonString() throws Exception { assertEquals("\"\\\\\\\"\\t\\n\\r\\f/_<\\/script>\"", StringUtil.escapeJsonString("\\\"\t\n\r\f/_</script>")); assertEquals("...
package org.influxdb; import org.influxdb.InfluxDB.ConsistencyLevel; import org.influxdb.InfluxDBException.DatabaseNotFoundError; import org.influxdb.dto.BatchPoints; import org.influxdb.dto.Point; import org.influxdb.dto.Query; import org.influxdb.dto.QueryResult; import org.junit.jupiter.api.Assertions; import org.ju...
package org.jdesktop.swingx; import java.awt.BorderLayout; import java.awt.Dimension; import java.net.URL; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; /** * Test to expose known issues of <code>JXHeader</code>. * <p> * * Ideally, there would be at lea...
package controllers; import java.util.*; import play.*; import play.mvc.*; import play.libs.Json; import com.fasterxml.jackson.databind.node.ObjectNode; import views.html.*; import models.*; import service.YahooFinanceService; /** * Controller for handling buy, sell, and short market orders. */ public class Trader ex...
package org.flymine.metadata; import java.io.File; import java.util.List; import java.util.ArrayList; import java.util.Iterator; import java.util.Map; import java.util.HashMap; import java.util.Collection; import java.util.Properties; import org.flymine.util.PropertiesUtil; import org.flymine.modelproduction.xml.ModelP...
package org.mskcc.portal.servlet; import org.rosuda.REngine.REXP; import org.rosuda.REngine.Rserve.RConnection; import org.owasp.validator.html.PolicyException; import org.apache.log4j.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; imp...
package org.tltv.gantt.client; import static org.tltv.gantt.client.SvgUtil.createSVGElementNS; import static org.tltv.gantt.client.SvgUtil.setAttributeNS; import com.google.gwt.dom.client.Element; /** * Background Grid SVG implementation. */ public class BgGridSvgElement extends BgGridCssElement implements BgGridElem...
package org.pentaho.ui.xul.gwt.tags; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ChangeEvent; import com.google.gwt.event.dom.client.ChangeHandler; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.FileUpload; import com.google.gwt.user.client.ui.FormHandler; ...
// Created : 2006 Jun 14 (Wed) 18:29:38 by Harold Carr. // Last Modified : 2006 Aug 14 (Mon) 22:21:15 by Harold Carr. package com.differentity.client; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.HorizontalPanel; import com.g...
package algorithms.convexhullvg; import java.util.Arrays; import grid.GridGraph; import algorithms.PathFindingAlgorithm; import algorithms.datatypes.Memory; import algorithms.rotationalplanesweep.ConvexHullRPSScanner; import algorithms.priorityqueue.ReusableIndirectHeap; public class ConvexHullVGAlgorithm extends PathF...
package org.hamcrest.core; import static org.hamcrest.core.StringEndsWith.endsWith; import org.hamcrest.AbstractMatcherTest; import org.hamcrest.Matcher; public class StringEndsWithTest extends AbstractMatcherTest { static final String EXCERPT = "EXCERPT"; final Matcher<String> stringEndsWith = endsWith(EXCERPT...
package com.networknt.handler; import io.undertow.server.HttpServerExchange; /** * @author Nicholas Azar */ public class OrchestrationHandler implements LightHttpHandler { @Override public void handleRequest(HttpServerExchange exchange) throws Exception { if (Handler.start(exchange)) { Han...
package io.jxcore.node; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothSocket; import android.content.Context; import android.os.Handler; import android.util.Log; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.thaliproject.p2p.btconnectorli...
package git4idea.actions; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.CommonDataKeys; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.progress.Task; import com.intellij.openapi.project.DumbAwareAction; import com.intellij.openapi.p...
package io.github.ihongs.action.serv; import io.github.ihongs.Cnst; import io.github.ihongs.Core; import io.github.ihongs.HongsExemption; import io.github.ihongs.action.ActionDriver; import io.github.ihongs.action.ActionHelper; import io.github.ihongs.action.ActionRunner; import io.github.ihongs.action.PasserHelper; im...
package ui.issuepanel.comments; import java.text.SimpleDateFormat; import java.util.Date; import java.util.regex.Pattern; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.w3c.dom.events.Event; import org.w3c.dom.events.EventListener; import org.w3c.dom.events.EventTarget;...
package heufybot.core; import java.util.AbstractMap.SimpleEntry; import heufybot.core.events.LoggingInterface; import heufybot.modules.Module; import heufybot.modules.ModuleInterface; import heufybot.modules.ModuleInterface.ModuleLoaderResponse; import heufybot.utils.FileUtils; public class HeufyBot { public final ...
package be.ibridge.kettle.job.entry; import java.util.ArrayList; import org.eclipse.swt.widgets.Shell; import org.w3c.dom.Node; import be.ibridge.kettle.core.Result; import be.ibridge.kettle.core.database.DatabaseMeta; import be.ibridge.kettle.core.exception.KettleException; import be.ibridge.kettle.core.exception.Kett...
package beast.evolution.tree.coalescent; import java.util.ArrayList; import java.util.List; import beast.core.CalculationNode; import beast.core.Description; import beast.core.Input; import beast.core.Input.Validate; import beast.evolution.tree.Node; import beast.evolution.tree.Tree; import beast.util.HeapSort; /** * ...
package org.opencms.ade.publish; import org.opencms.file.CmsResource; import org.opencms.main.CmsLog; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import org.apa...
package ch.idsia.benchmark.mario.engine.sprites; import ch.idsia.benchmark.mario.engine.Art; import ch.idsia.benchmark.mario.engine.GlobalOptions; import ch.idsia.benchmark.mario.engine.LevelScene; import ch.idsia.benchmark.mario.engine.level.Level; public final class Mario extends Sprite { private final int Fractional...
import java.time.format.*; import java.time.*; import java.io.*; import java.nio.file.*; import java.net.*; import java.util.*; public class DumpOpenFiles { public static void main(String[] args) throws Exception { String url = "http://localhost:" + parsePort() + "/dump"; System.out.println("Sending...
package client.command.commands.gm3; import client.command.Command; import client.MapleClient; import client.MapleCharacter; import net.server.Server; import server.events.gm.MapleEvent; import tools.MaplePacketCreator; public class StartEventCommand extends Command { { setDescription(""); } @Overri...