answer
stringlengths
17
10.2M
package example; // tag::user_guide[] import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestReporter; class TestReporterDemo { @Test void reportSingleValue(TestReporter testReporter) { testReporter.publishEntry("a key", "a value"); } ...
package com.jme3.cinematic.events; import com.jme3.animation.LoopMode; import com.jme3.app.Application; import com.jme3.audio.AudioNode; import com.jme3.audio.AudioRenderer; import com.jme3.cinematic.Cinematic; import com.jme3.export.InputCapsule; import com.jme3.export.JmeExporter; import com.jme3.export.JmeImporter; ...
package org.knowm.xchart.internal.chartpart; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.Shape; import java.awt.font.FontRenderContext; import java.awt.font.TextLayout; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import java.util.LinkedHashMap; import java.uti...
package org.jboss.dna.common.util; import java.util.Collection; import java.util.Iterator; import java.util.Map; import org.jboss.dna.common.CommonI18n; /** * Utility class that checks arguments to methods. This class is to be used only in API methods, where failure to supply correct * arguments should result in a us...
package org.codehaus.xfire.test; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.StringReader; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.stream.XMLInputFactory; im...
package jkind; import java.math.BigInteger; import java.util.Arrays; import java.util.List; import org.apache.commons.cli.BasicParser; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Options; public cl...
package org.whattf.datatype; import org.relaxng.datatype.DatatypeException; import java.util.Arrays; import com.ibm.icu.lang.UCharacter; public class KeyLabelList extends AbstractDatatype { /** * The singleton instance. */ public static final KeyLabelList THE_INSTANCE = new KeyLabelList(); private...
package ego.gomuku.core; import ego.gomuku.entity.Point; import java.util.ArrayList; import java.util.List; class LevelProcessor { static List<Point> getExpandPoints(Analyzer data) { List<Point> result = selectSet(data); if (result.isEmpty()) { result.add(new Point(7, 7)); re...
package com.rocketchat.core; import com.rocketchat.common.RocketChatApiException; import com.rocketchat.common.RocketChatAuthException; import com.rocketchat.common.RocketChatException; import com.rocketchat.common.RocketChatInvalidResponseException; import com.rocketchat.common.RocketChatNetworkErrorException; import ...
package org.opennms.netmgt.provision.adapters.link; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.Collection; import java.util.M...
package org.xwiki.rendering.internal.macro.message; import java.util.Collections; import java.util.List; import org.xwiki.rendering.block.Block; import org.xwiki.rendering.block.MetaDataBlock; import org.xwiki.rendering.macro.MacroExecutionException; import org.xwiki.rendering.macro.box.AbstractBoxMacro; import org.xwi...
package $package; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.RobotDrive.MotorType; import edu.wpi.first.wpilibj.SampleRobot; import edu.wpi.first.wpilibj.Timer; /** * This is a demo program showing how to use Mecanum control with the RobotDrive class. ...
package org.safehaus.subutai.core.network.impl; import java.util.Set; import java.util.StringTokenizer; import java.util.UUID; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.safehaus.subutai.common.command.CommandException; import org.safehaus.subutai.common.command.CommandResult; import org...
package org.nuxeo.ecm.platform.ec.notification.email; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.util.Collection; import java.util.Date; import java.util.Map; import javax.mail.Message; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.I...
package org.ossmeter.platform.communicationchannel.nntp; import java.io.Reader; import org.apache.commons.net.nntp.Article; import org.apache.commons.net.nntp.NNTPClient; import org.apache.commons.net.nntp.NewsgroupInfo; import org.ossmeter.platform.Date; import org.ossmeter.platform.delta.communicationchannel.Communic...
package br.net.mirante.singular.pet.module.wicket.view.util.dispatcher; import static br.net.mirante.singular.util.wicket.util.WicketUtils.$b; import java.lang.reflect.Constructor; import org.apache.wicket.Component; import org.apache.wicket.behavior.Behavior; import org.apache.wicket.markup.head.IHeaderResponse; impor...
package org.apereo.cas.oidc.token; import org.apereo.cas.services.OidcRegisteredService; import org.apereo.cas.support.oauth.services.OAuthRegisteredService; import org.apereo.cas.ticket.BaseOidcTokenSigningAndEncryptionService; import com.github.benmanes.caffeine.cache.LoadingCache; import lombok.SneakyThrows; import ...
import java.awt.BorderLayout; import java.awt.Button; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.EventObject; import javax.print.attribute.s...
package io.spine.server.delivery; /** * A mixin for the state of the {@linkplain CatchUpProcess catch-up processes}. */ public interface CatchUpMixin { }
package com.sinnerschrader.smaller; import java.io.File; import org.apache.commons.io.FileUtils; import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; /** * @author marwol */ public class ServerTest extends AbstractBaseTest { /** * @throws Ex...
package com.pragmaticobjects.oo.atom.codegen.bytebuddy.bt; import com.pragmaticobjects.oo.atom.tests.AssertAssertionFails; import com.pragmaticobjects.oo.atom.tests.AssertAssertionPasses; import com.pragmaticobjects.oo.atom.tests.TestCase; import com.pragmaticobjects.oo.atom.tests.TestsSuite; /** * Tests suite for {@l...
/* * Component to edit requirements. */ package net.sourceforge.javydreamercsw.client.ui.components.requirement.edit; import com.validation.manager.core.DataBaseManager; import com.validation.manager.core.db.Requirement; import com.validation.manager.core.db.RequirementSpecNode; import com.validation.manager.core.db....
package io.flutter.view; import android.graphics.Rect; import android.opengl.Matrix; import android.os.Build; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityNodeInfo; import android.view.ac...
package org.innovateuk.ifs.project.projectdetails.workflow.configuration; import org.innovateuk.ifs.project.projectdetails.workflow.guards.AllProjectDetailsSuppliedGuard; import org.innovateuk.ifs.project.resource.ProjectDetailsEvent; import org.innovateuk.ifs.project.resource.ProjectDetailsState; import org.innovateuk...
package com.oasisfeng.android.base; import android.app.Activity; import android.app.Application.ActivityLifecycleCallbacks; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.annotati...
package com.sksamuel.jqm4gwt.form; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.event.dom.client.BlurEvent; ...
package org.opennms.netmgt.provision.detector.simple.support; import org.apache.mina.core.session.IoSession; import org.opennms.core.utils.LogUtils; import org.opennms.netmgt.provision.detector.simple.request.LineOrientedRequest; import org.opennms.netmgt.provision.detector.simple.response.LineOrientedResponse; import ...
package verification.platu.partialOrders; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import lpn.parser.ExprTree; import lpn.parser.Place; import lpn.parser.Transition; import lpn.parser.LpnDecompos...
package org.atlasapi.content; import java.util.Comparator; import java.util.Iterator; import java.util.Map; import org.joda.time.DateTime; import com.google.common.base.Strings; import com.google.common.collect.ImmutableMap; public enum SortKey { ADAPTER("95") { @Override protected String generateFr...
package de.onyxbits.remotekeyboard; import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.Scanner; import android.content.Context; import android.content.res.AssetManager; import android.content.res.Resources; import android.os.PowerManager; impor...
package com.orhanobut.hawk; import android.text.TextUtils; import java.security.GeneralSecurityException; /** * Provides AES algorithm * * @author Orhan Obut */ final class AesEncryption implements Encryption { /** * Key used to look up stored generated salt values, not the actual salt * Never ever ch...
package org.jboss.webbeans.xml; import java.io.IOException; import java.io.InputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Method; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import j...
package es.uvigo.esei.daa.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Timestamp; import java.util.LinkedList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger...
package de.lebk.madn.gui; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.JComponent; public class BoardDice extends JComponent implements MouseListener { private int n...
import uk.co.uwcs.choob.*; import uk.co.uwcs.choob.modules.*; import uk.co.uwcs.choob.support.*; import uk.co.uwcs.choob.support.events.*; import java.io.*; import java.net.*; import java.util.*; import java.util.regex.*; import java.text.*; import org.jibble.pircbot.Colors; public class Events { final Pattern even...
package no.nordicsemi.actuators; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.media.AudioManager; import org.droidparts.annotation.inject.InjectSystemService; import org.json.JSONException; import org.json.JSONObject; import no.nordicsemi.R; impo...
import uk.co.uwcs.choob.*; import uk.co.uwcs.choob.modules.*; import uk.co.uwcs.choob.support.*; import uk.co.uwcs.choob.support.events.*; import java.io.*; import java.net.*; import java.util.*; import java.util.regex.*; import java.text.*; import org.jibble.pircbot.Colors; public class Events { final Pattern even...
package org.broad.igv; import java.io.*; import java.net.Socket; import java.net.UnknownHostException; /** * @author Jim Robinson * @date 11/3/11 */ public class Launcher { public static void main(String[] args) throws IOException { String file = null; String locus = null; String genome =...
package com.exedio.cope.instrument; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.lang.reflect.Modifier; import java.text.MessageFormat; import java.util.ArrayList; import java.util...
package functionalTests.descriptor.services.p2p; import functionalTests.FunctionalTest; import static junit.framework.Assert.assertTrue; import org.objectweb.proactive.ProActive; import org.objectweb.proactive.core.Constants; import org.objectweb.proactive.core.config.ProActiveConfiguration; import org.objectweb.proact...
package jolie.net; import jolie.ExecutionThread; import jolie.Interpreter; import jolie.js.JsUtils; import jolie.lang.Constants; import jolie.lang.NativeType; import jolie.monitoring.events.ProtocolMessageEvent; import jolie.net.http.HttpMessage; import jolie.net.http.HttpParser; import jolie.net.http.HttpUtils; import...
package org.frc4931.zach.drive; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.DoubleSolenoid; public class Solenoid { private final DoubleSolenoid solenoid; private final DigitalInput extendedSwitch; private final DigitalInput retractedSwitch; public Solenoid(int extendChannel,...
package org.xwiki.watchlist.internal.job; import java.util.Collection; import java.util.Date; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.quartz.Job; import org.quartz.JobDataMap; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.slf4j.Logger; ...
package com.yahoo.vespa.hosted.athenz.instanceproviderservice.identitydocument; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; /** * @author bjorncs */ public class ProviderUniqueId { @JsonProperty("tenant") public final String tenant; @JsonProperty("application") publ...
package dr.app.beagle.tools; import dr.app.beagle.evomodel.sitemodel.GammaSiteRateModel; import dr.app.beagle.evomodel.substmodel.FrequencyModel; import dr.evolution.alignment.SimpleAlignment; import dr.evolution.datatype.Codons; import dr.evolution.datatype.DataType; import dr.evolution.datatype.Nucleotides; import dr...
package lucee.runtime; import java.net.URL; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Stack; import java.util.concurrent.ConcurrentHashMap; import javax.servlet.Servlet; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.ht...
package dr.evomodel.newtreelikelihood; import dr.evolution.alignment.PatternList; import dr.evolution.tree.NodeRef; import dr.evolution.tree.Tree; import dr.evolution.util.TaxonList; import dr.evomodel.branchratemodel.BranchRateModel; import dr.evomodel.branchratemodel.DefaultBranchRateModel; import dr.evomodel.sitemod...
class StringAVLTreeExtra2 extends StringAVLTree { public StringAVLTreeExtra2() { super(); } public void display() { paren_out(getRoot()); System.out.println(); bal_out(getRoot()); } public void paren_out(StringAVLNode t) { if (t == null) { } else { ...
package dr.inference.operators; import dr.inference.model.Bounds; import dr.inference.model.Parameter; import dr.math.MathUtils; import dr.xml.*; /** * A generic operator for use with a sum-constrained (possibly weighted) vector parameter. * * @author Alexei Drummond * @author Andrew Rambaut * * @version $Id: Del...
package magic.data.database; import java.io.File; import java.io.IOException; import java.util.Comparator; import java.util.List; import java.util.Optional; import java.util.concurrent.atomic.AtomicLong; import java.util.stream.Collectors; import java.util.stream.Stream; import com.google.common.base.Charsets; import c...
package cgeo.geocaching.ui.dialog; import cgeo.geocaching.activity.ActivityMixin; import cgeo.geocaching.utils.Log; import android.app.ProgressDialog; import android.content.Context; import android.os.Bundle; import android.view.View; import java.lang.reflect.Field; /** * Modified progress dialog class which allows hi...
package com.jbooktrader.platform.util; import com.jbooktrader.platform.marketbook.*; import com.toedter.calendar.*; import java.util.*; public abstract class MarkSnapshotUtilities { public static MarketSnapshotFilter getMarketDepthFilter(JTextFieldDateEditor fromDateEditor, JTextFieldDateEditor toDateEditor) { ...
package org.jasig.portal.channels.cusermanager; import java.util.Enumeration; import java.text.MessageFormat; import org.jasig.portal.IChannel; import org.jasig.portal.security.IPerson; import org.jasig.portal.security.IPermission; import org.jasig.portal.security.provider.PersonImpl; //import edu.cornell.uportal.chann...
package beaform.dao; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.concurrent.Callable; import org.apache.commons.collections.ListUtils; import org.junit.After; import org.junit...
package fi.hu.cs.titokone; import fi.hu.cs.ttk91.*; import java.util.*; /** This class represents the processor. It can be told to run for one command cycle at a time. */ public class Processor implements TTK91Cpu { /** When SVC call is made PC points to this place. */ public static final int OS_CODE_AREA =...
package com.tns.bindings; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.*; import org.ow2.asmdex.*; import org.ow2.asmdex.structureCommon.*; import android.util.Log; public class Dump { private static final String callJsMethodSignatureCtor...
package org.hyperic.sigar.jmx; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Map; import javax.management.AttributeNotFoundException; import javax.management.MBeanAttributeInfo; import javax.management.MBeanConstructorInfo; import javax.management.MBeanInfo; imp...
package dynamo.manager.games; import java.io.IOException; import java.net.MalformedURLException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import org.apache.commons.lang3.StringUtils; import com.fasterxml.jackson.core.JsonGenerationException; import com.fasterxml.jackson.databind.Jso...
package org.easybatch.core.impl; import org.easybatch.core.api.*; import org.easybatch.core.util.Utils; import java.util.List; import java.util.Set; import java.util.concurrent.Callable; import java.util.logging.Level; import java.util.logging.Logger; /** * Core Easy Batch engine implementation. * * @author Mahmoud ...
package com.aware.ui; import android.app.Activity; import android.app.DownloadManager; import android.app.DownloadManager.Query; import android.app.IntentService; import android.content.ActivityNotFoundException; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Cont...
package com.datatorrent.stram.client; import com.datatorrent.stram.client.StramAppLauncher.AppFactory; import com.datatorrent.stram.plan.logical.LogicalPlan; import java.io.*; import java.util.*; import java.util.jar.*; import net.lingala.zip4j.core.ZipFile; import net.lingala.zip4j.exception.ZipException; import org.a...
package fredboat.commandmeta; import fredboat.command.admin.*; import fredboat.command.fun.*; import fredboat.command.maintenance.GetIdCommand; import fredboat.command.maintenance.ShardsCommand; import fredboat.command.maintenance.StatsCommand; import fredboat.command.admin.TestCommand; import fredboat.command.maintena...
package com.malhartech.stram; import com.malhartech.api.DAG; import com.malhartech.engine.GenericTestOperator; import com.malhartech.engine.TestGeneratorInputOperator; import com.malhartech.stram.PhysicalPlan.PTOperator; import com.malhartech.stram.TupleRecorder.PortInfo; import com.malhartech.stram.TupleRecorder.Recor...
package org.neo4j.backup; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.fail; import static org.neo4j.helpers.collection.MapUtil.stringMap; import static org.neo4j.kernel.Config.ENABLE_ONLINE_BACKUP; import java.io.File; import org.apache.commons...
package edu.rutgers.css.Rutgers.api; import java.util.Hashtable; import java.util.Locale; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import edu.rutgers.css.Rutgers.SingleFragmentAc...
package com.lds.game; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.opengl.GLU; import android.content.Context; public class GameRenderer implements com.lds.Graphics.Renderer { public Game game; public Context context; int prevRenderCount; ...
package br.com.dbsoft.util; import java.math.BigDecimal; import java.math.RoundingMode; import java.sql.Date; import java.sql.Timestamp; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.SimpleDateFormat; import java.util.Locale; import java.util.regex.Matcher; import java.util.reg...
package com.bio4j.model; import com.bio4j.angulillos.*; import com.bio4j.angulillos.Arity.*; public final class UniProtGraph<V,E> extends TypedGraph<UniProtGraph<V,E>,V,E> { public UniProtGraph(UntypedGraph<V,E> graph) { super(graph); } @Override public final UniProtGraph<V,E> self() { return this; } /* ## Pr...
package com.grosner.dbflow.sql; import android.database.DatabaseUtils; import com.grosner.dbflow.config.FlowLog; import com.grosner.dbflow.config.FlowManager; import com.grosner.dbflow.runtime.DBTransactionInfo; import com.grosner.dbflow.runtime.TransactionManager; import com.grosner.dbflow.runtime.transaction.QueryTra...
package sensor; import ch.quantasy.tinkerforge.tinker.agent.implementation.TinkerforgeStackAgent; import ch.quantasy.tinkerforge.tinker.application.implementation.AbstractTinkerforgeApplication; import ch.quantasy.tinkerforge.tinker.core.implementation.TinkerforgeDevice; import com.tinkerforge.*; import com.tinkerforge...
package be.ibridge.kettle.test.rowproducer; import java.math.BigDecimal; import java.util.Date; import be.ibridge.kettle.core.LogWriter; import be.ibridge.kettle.core.Row; import be.ibridge.kettle.core.exception.KettleException; import be.ibridge.kettle.core.util.EnvUtil; import be.ibridge.kettle.core.value.Value; impo...
package com.matt.forgehax.util; import com.matt.forgehax.Globals; import com.matt.forgehax.util.entity.EntityUtils; import com.matt.forgehax.util.math.Angle; import com.matt.forgehax.util.math.VectorUtils; import net.minecraft.entity.Entity; import net.minecraft.inventory.ItemStackHelper; import net.minecraft.item.Item...
package ch.unizh.ini.jaer.projects.speakerid.libsvm320; import java.io.*; import java.util.*; // Kernel Cache // l is the number of total data items // size is the cache size limit in bytes class Cache { private final int l; private long size; private final class head_t { head_t prev, next; /...
package edu.umd.cs.findbugs.ba.jsr305; /** * This is the FindBugs representation of the When value * of a type qualifier. (Corresponding to the * javax.annotation.meta.When enumeration.) * * @author David Hovemeyer * @author Bill Pugh */ public enum When { ASSUME_ALWAYS, ALWAYS, UNKNOWN, MAYBE_NOT, NEVER; ...
package org.pentaho.di.ui.spoon.delegates; import java.util.ArrayList; import java.util.List; import org.eclipse.swt.dnd.DND; import org.eclipse.swt.dnd.DragSource; import org.eclipse.swt.dnd.DragSourceEvent; import org.eclipse.swt.dnd.DragSourceListener; import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.widg...
package com.ratemarkt.models; import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.Currency; import java.util.List; import javax.annotation.Nullable; import org.immutables.gson.Gson; import org.immutables.value.Value; @Gson.TypeAdapters @Value.Immutable public inter...
//FILE: LiveModeTimer.java //PROJECT: Micro-Manager //SUBSYSTEM: mmstudio // This file is distributed in the hope that it will be useful, // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, // ...
package com.transloadit.sdk; import com.transloadit.sdk.exceptions.TransloaditRequestException; import com.transloadit.sdk.exceptions.TransloaditSignatureException; import com.transloadit.sdk.response.AssemblyResponse; import io.tus.java.client.*; import java.io.File; import java.io.IOException; import java.net.URL; im...
package control; import data.ScriptingProject; import gui.CameraShotBlock; import gui.DetailView; import gui.ShotBlock; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; public class DetailViewController { private DetailView detailView; private ControllerManager manager; p...
package edu.cmu.sv.ws.ssnoc.data; /** * This class contains all the SQL related code that is used by the project. * Note that queries are grouped by their purpose and table associations for * easy maintenance. * */ public class SQL { public static final String SSN_USERS = "SSN_USERS"; public static final S...
package edu.jhu.srl; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.TreeSet; import org.a...
package gov.nih.nci.ncicb.cadsr.loader.ui; import gov.nih.nci.ncicb.cadsr.loader.UserSelections; import gov.nih.nci.ncicb.cadsr.loader.ui.util.TreeUtil; import gov.nih.nci.ncicb.cadsr.loader.util.RunMode; import gov.nih.nci.ncicb.cadsr.loader.util.UserPreferences; import java.io.File; import java.io.FileWriter; import ...
package edu.ouc.async.event; /** * Listener * * @author wqx * * @param <T> */ public interface Listener<T> { /** * success * * @param event */ public void onSuccess(Event<T> event); /** * failure * * @param event * @param t */ void onException(Event<T> ...
package eu.amidst.scai2015; import eu.amidst.core.datastream.*; import eu.amidst.core.distribution.Multinomial; import eu.amidst.core.inference.InferenceAlgorithmForBN; import eu.amidst.core.inference.messagepassing.VMP; import eu.amidst.core.io.DataStreamLoader; import eu.amidst.core.learning.StreamingVariationalBayes...
package fr.insee.stamina.utils; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; /** * Implementation of the URI and naming policy for the project. * * @author Franck Cotton * @version 0.1, 28 Apr 2016 */ public class Na...
package org.caboto; import com.hp.hpl.jena.vocabulary.DCTerms; import com.hp.hpl.jena.vocabulary.DC; import com.hp.hpl.jena.vocabulary.RDF; import org.caboto.vocabulary.Annotea; import com.hp.hpl.jena.rdf.model.ModelFactory; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.Resource; import org.c...
package io.pivotal; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; public class LandmarkQualifier { private static final double MIN_WORD_FRACTION = 0.30; private static final String[] WORD_LIST = { "according", "achieved", "achievement", "across", "ac...
// Narya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
package io.teknek.model; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.Map; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomi...
// Narya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
package lexek.fetcher; import com.github.benmanes.caffeine.cache.Caffeine; import com.github.benmanes.caffeine.cache.LoadingCache; import com.google.common.collect.ImmutableMap; import io.netty.buffer.ByteBuf; import io.netty.buffer.PooledByteBufAllocator; import io.netty.handler.codec.http.HttpContentDecompressor; imp...
// $Id: IsoSceneView.java,v 1.81 2001/12/18 08:38:33 mdb Exp $ package com.threerings.miso.scene; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Polygon; import java.awt.Shape; import java.awt.Stroke; import java.awt.Rectangle; import java.awt.FontMetrics; import java.awt.P...
package lib.jebt.xlsx; import lib.jebt.BaseJebtWriter; import lib.jebt.JebtWriter; import lib.jebt.parser.*; import org.apache.commons.lang3.StringUtils; import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.util.WorkbookUtil; import org.apache.poi.util.IOUtils; import org.apache.poi.xssf.streaming.SXSSFCell; ...
package org.unitime.commons.jgroups; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; imp...
// Narya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
// $Id: Portal.java,v 1.2 2001/11/29 00:16:31 mdb Exp $ package com.threerings.whirled.spot.data; /** * A portal is a location, but one that represents an exit to another * scene rather than a place to stand in the current scene. A body sprite * would walk over to a portal's coordinates and then either proceed off ...
package com.elmakers.mine.bukkit.spell; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import javax.annotation.Nullable; import org.bukkit.configuration.ConfigurationSection; import com.elmakers.mine.bukkit.action.ActionHandler; import com.elmakers.mine.bukk...
package net.imagej.ops.fopd; import net.imagej.ops.OpMatchingService; import net.imagej.ops.OpService; import net.imglib2.img.ImagePlusAdapter; import net.imglib2.img.Img; import net.imglib2.img.display.imagej.ImageJFunctions; import net.imglib2.type.numeric.real.FloatType; import org.scijava.Context; import org.scijav...
package org.apache.commons.dbcp; import java.io.PrintWriter; import java.util.Properties; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; import javax.sql.DataSource; import org.apache.commons.dbcp.DriverConnectionFactory; import org.apache.commons.dbcp.P...
package com.elmakers.mine.bukkit.utility; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Arrays; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang.StringUtils; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.World; ...