answer
stringlengths
17
10.2M
package sc.iview.commands.edit; import bdv.viewer.SourceAndConverter; import graphics.scenery.*; import graphics.scenery.volumes.Colormap; import graphics.scenery.volumes.Volume; import kotlin.jvm.Volatile; import net.imagej.lut.LUTService; import net.imglib2.RandomAccessibleInterval; import net.imglib2.display.ColorTa...
package seedu.address.logic.parser; import seedu.address.logic.commands.*; import seedu.address.model.task.Name; import seedu.address.model.task.RecurringDateParser; import seedu.address.model.task.RecurringType; import seedu.address.model.task.TaskDate; import seedu.address.commons.util.StringUtil; import seedu.addres...
package seedu.forgetmenot.model.task; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.joestelmach.natty.DateGroup; import com.joestelmach.natty.Parser; impo...
package seedu.todo.controllers; import seedu.todo.commons.exceptions.ParseException; /** * Contains the logic required to appropriately interpret and process user input * from the views. * * @author louietyj * */ public interface Controller { /** * Given a user input, returns a measure of confidence of w...
package net.java.otr4j.message.encoded; import java.math.BigInteger; import java.nio.ByteBuffer; import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import javax.crypto.interfaces.DHPublicKey; import net.java.otr4j.message.MessageType; import net.java.otr4j.protocol.crypto....
package net.maizegenetics.tassel; import net.maizegenetics.baseplugins.ArchaeopteryxPlugin; import net.maizegenetics.baseplugins.TableDisplayPlugin; import net.maizegenetics.baseplugins.TreeDisplayPlugin; import net.maizegenetics.baseplugins.Grid2dDisplayPlugin; import net.maizegenetics.baseplugins.LinkageDiseqDisplayP...
package nl.sense_os.service.location; import nl.sense_os.service.R; import nl.sense_os.service.constants.SenseDataTypes; import nl.sense_os.service.constants.SensePrefs; import nl.sense_os.service.constants.SensePrefs.Main; import nl.sense_os.service.constants.SensorData.DataPoint; import nl.sense_os.service.constants....
package opendap.wcs.v2_0; import net.opengis.gml.v_3_2_1.*; import net.opengis.swecommon.v_2_0.DataRecordPropertyType; import net.opengis.swecommon.v_2_0.DataRecordType; import net.opengis.wcs.v_2_0.CoverageDescriptionType; import opendap.dap4.*; import opendap.namespaces.XML; import opendap.wcs.srs.SimpleSrs; import o...
package simpleserver.bot; import static simpleserver.util.Util.print; import java.io.*; import java.net.InetAddress; import java.net.Socket; import java.net.UnknownHostException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.concurrent.locks.ReentrantLock; import simpleserver.Coordinate.Dimens...
package opendap.wcs.v2_0; import net.opengis.gml.v_3_2_1.*; import net.opengis.swecommon.v_2_0.DataRecordType; import net.opengis.swecommon.v_2_0.QuantityType; import net.opengis.swecommon.v_2_0.UnitReference; import net.opengis.wcs.v_2_0.CoverageDescriptionType; import opendap.dap4.*; import opendap.namespaces.XML; im...
package opendap.wcs.v2_0; import net.opengis.gml.v_3_2_1.*; import net.opengis.swecommon.v_2_0.DataRecordPropertyType; import net.opengis.swecommon.v_2_0.DataRecordType; import net.opengis.wcs.v_2_0.CoverageDescriptionType; import opendap.dap4.*; import opendap.namespaces.XML; import opendap.wcs.srs.SimpleSrs; import o...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.broad.igv.feature.genome; import org.apache.log4j.Logger; import org.broad.igv.util.*; import java.util.*; /** * @author jrobinso */ public class SequenceHelper { private static Logger log = Logger.getL...
package org.exist.xquery.functions.util; import java.io.IOException; import java.io.StringReader; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.exist.dom.QName; import org.exist.memtree.DocumentImpl; import or...
package org.exist.xquery.functions.util; import org.exist.dom.QName; import org.exist.storage.serializers.Serializer; import org.exist.xquery.BasicFunction; import org.exist.xquery.Cardinality; import org.exist.xquery.FunctionSignature; import org.exist.xquery.XPathException; import org.exist.xquery.XQueryContext; impo...
package org.ohmage.query.impl; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.TimeZone; import java.util.UUID; ...
package org.opencms.ade.configuration; import org.opencms.ade.configuration.CmsADEConfigData.DetailInfo; import org.opencms.ade.configuration.CmsElementView.ElementViewComparator; import org.opencms.ade.configuration.formatters.CmsFormatterConfigurationCache; import org.opencms.ade.configuration.formatters.CmsFormatter...
package org.opencms.file.types; import org.opencms.configuration.CmsConfigurationException; import org.opencms.db.CmsSecurityManager; import org.opencms.file.CmsFile; import org.opencms.file.CmsObject; import org.opencms.file.CmsProperty; import org.opencms.file.CmsPropertyDefinition; import org.opencms.file.CmsResourc...
package fr.emn.fil; import fr.emn.fil.model.Constraint; import fr.emn.fil.model.Domain; import fr.emn.fil.model.ForbiddenRegion; import fr.emn.fil.model.Position; import org.junit.Assert; import org.junit.Test; import org.junit.Before; import org.junit.After; public class MainTest { @Before public void before()...
package polyglot.ext.jl5.translate; import java.util.ArrayList; import java.util.List; import polyglot.ast.TypeNode; import polyglot.ext.jl5.ast.JL5NodeFactory; import polyglot.ext.jl5.types.IntersectionType; import polyglot.ext.jl5.types.JL5ParsedClassType; import polyglot.ext.jl5.types.JL5SubstClassType; import polyg...
import java.io.BufferedWriter; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.time.LocalDateTime; import java.util.Random; import java.util.stream.Collectors; import static java.nio.charset.StandardCharsets.UTF_8; import static java.nio.file.St...
package radlab.rain.workload.rubis; import java.io.IOException; import java.util.ArrayList; import java.util.List; import radlab.rain.IScoreboard; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.message.BasicNameValuePair; import org.apac...
package com.alvazan.test; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.alvazan.orm.api.base.Bootstrap; import com.alvazan.orm.api.base.DbTypeEnum; import com.alvazan.orm.api.base.NoSqlEntityManagerFactory; public class FactorySingleton { private...
package htmlflow.test; import htmlflow.test.model.Stock; import htmlflow.test.views.HtmlDynamic; import htmlflow.test.views.HtmlDynamicStocks; import org.junit.Test; import java.util.Iterator; import static htmlflow.test.Utils.NEWLINE; import static junit.framework.Assert.assertEquals; public class TestDynamicVersusOf ...
package jfdi.test.storage; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertFalse; import java.io.File; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.AfterClass; import or...
package org.jenkinsci.plugins.p4; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.logging.Logger; import java.util.regex.Matcher; import java.util.regex.Pattern; im...
package seedu.ezdo.logic; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX...
package org.apache.commons.lang; import java.lang.reflect.Constructor; import java.lang.reflect.Modifier; import java.util.Arrays; import java.util.Date; import java.util.Map; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.textui.TestRunner; /** * Unit test...
package org.jaudiotagger.tag.mp4; import org.jaudiotagger.AbstractTestCase; import org.jaudiotagger.tag.*; import org.jaudiotagger.tag.reference.GenreTypes; import org.jaudiotagger.tag.mp4.Mp4FieldKey; import org.jaudiotagger.tag.mp4.Mp4Tag; import org.jaudiotagger.tag.mp4.atom.Mp4ContentTypeValue; import org.jaudiotag...
package is.xyz.mpv; import android.app.Activity; import android.content.res.AssetManager; import android.database.Cursor; import android.os.Bundle; import android.os.Handler; import android.provider.MediaStore; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.content.In...
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 net.katsuster.semu.ui; import java.lang.reflect.*; import java.awt.*; import java.io.*; import javax.swing.*; /** * * * System.out * * @author katsuhiro */ public class SystemPane extends JPanel { //out -> outInner -> outPout -> outPin -> outRead -> outText // `-> System.out private static ...
package org.jgroups.tests; import org.jgroups.Global; import org.jgroups.JChannel; import org.jgroups.View; import org.jgroups.protocols.MERGE2; import org.jgroups.protocols.pbcast.GMS; import org.jgroups.protocols.pbcast.NAKACK2; import org.jgroups.stack.ProtocolStack; import org.jgroups.util.Util; import org.testng.a...
package aQute.bnd.ant; import java.io.*; import java.util.*; import org.apache.tools.ant.*; import org.apache.tools.ant.taskdefs.*; import aQute.bnd.build.*; import aQute.bnd.osgi.*; import aQute.libg.reporter.*; import aQute.service.reporter.*; public class BaseTask extends Task implements Reporter { ReporterAdapt...
import java.text.ParseException; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import edu.wustl.catissuecore.domain.Address; import edu.wustl.catissuecore.domain.Biohazard; import edu.wustl.catissuecore.domain.CancerResearchGroup; impor...
package org.jboss.as.web; import org.jboss.as.controller.ReloadRequiredWriteAttributeHandler; import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.ADD; import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.DESCRIBE; import static org.jboss.as.controller.descriptions.ModelD...
package com.trello.navi; /** * Represents an Android component (Activity, Fragment) that can have listeners. */ public interface NaviComponent { /** * Determines whether this component can handle a particular type of event. * * For example, Activities do not handle Event.CREATE_VIEW since they do not have ...
package com.github.amsemy.resty.request; import com.github.amsemy.resty.request.RestyRequest.*; import org.junit.Test; import static com.github.amsemy.resty.request.RestyRequest.*; import static org.junit.Assert.*; import java.util.Calendar; import java.util.HashMap; import java.util.ListResourceBundle; import java.uti...
package org.ow2.proactive.resourcemanager.core; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.when; import java.security.Permission; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Set; import org.junit.Before; import org.junit.Test; impo...
package motocitizen.app.general; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.Typeface; import android.os.Bundle; import android.view.Gravity; import android.view.View; import android.view.View.OnLongClickListener; imp...
package org.usfirst.frc.team847.robot; import edu.wpi.first.wpilibj.*; //import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; //import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * The VM is configured to automatically run this class, and to call the * functions corresponding to each mode, as des...
package com.agilie; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.graphics.RectF; import android.graphics.Typeface; import android.os.Build; import android.support.v7.widget.AppCompatEditText; import android.text.Editable; import android.text....
package net.runelite.client.plugins.cannon; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import lombok.Getter; import net.runelite.api.coords.WorldPoint; public enum CannonSpots { BLOODVELDS(new WorldPoint(2439, 9821, 0), new WorldPoint(2448, 9821, 0), new WorldPoint(2472, 9833, 0), n...
package com.amplitude.api; import android.content.Context; import android.content.SharedPreferences; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Matchers;...
package cx2x.xcodeml.xelement; import org.w3c.dom.Element; import org.w3c.dom.Document; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import java.io.File; import java.util.ArrayList; import java.util.List; import cx2x.xcodeml.error.*; import cx2x.xcodeml.helper.*; /** * The...
package com.planetmayo.debrief.satc_rcp.views; import java.util.HashMap; import java.util.List; import java.util.Map; import org.eclipse.jface.viewers.ArrayContentProvider; import org.eclipse.jface.viewers.ComboViewer; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionChangedListen...
package semeval2014.task10.io; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.FileUtils; import org.apache.uima.UimaContext; import org.apache.uima.collection.CollectionException; import org.apache.uima.fit.descriptor.ConfigurationParamet...
package com.coillighting.udder; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; // TODO see whether using the 32 bit vs 64 bit versions are really any different // on the Raspi. public class Util { // TODO see if there are already Boon equivalents for th...
package org.taverna.server.master.rest; import static javax.ws.rs.core.MediaType.TEXT_PLAIN_TYPE; import static javax.ws.rs.core.Response.Status.NOT_FOUND; import static org.taverna.server.master.TavernaServerImpl.log; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Prov...
package net.fortuna.ical4j.model; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import junit.framework.TestCase; import net.fortuna.ical4j.util.TimeZones; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /*...
package io.spine.server.integration; import com.google.common.collect.HashMultimap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Multimap; import com.google.protobuf.Message; import io.spine.core.BoundedContextName; import io.spine.type.TypeUrl; import java.util.Collection; import jav...
package com.precious.calccedo.handlers; import com.precious.calccedo.Calccedo; import com.precious.calccedo.configuration.Configuration; import java.util.ArrayList; /** * * @author Ibrahim Abdsaid Hanna * ibrahim.seniore@gmail.com */ public class CalccedoHandler extends Calccedo implements Handler { pri...
package test.controllers; import com.google.common.collect.ImmutableMap; import org.junit.Test; import play.mvc.Http; import play.mvc.Result; import play.test.Helpers; import play.test.WithApplication; import static org.junit.Assert.assertEquals; import static play.mvc.Http.Status.OK; import static play.test.Helpers.*;...
package com.pineone.icbms.so.profile.logic; import com.pineone.icbms.so.contextmodel.entity.ContextModel; import com.pineone.icbms.so.contextmodel.pr.ContextModelPresentation; import com.pineone.icbms.so.contextmodel.ref.ContextType; import com.pineone.icbms.so.profile.entity.Profile; import com.pineone.icbms.so.profil...
package com.pineone.icbms.so.service.logic; import com.pineone.icbms.so.compositevo.ref.CompositeProfile; import com.pineone.icbms.so.service.entity.Service; import com.pineone.icbms.so.service.proxy.ServiceProxy; import com.pineone.icbms.so.service.ref.ConceptService; import com.pineone.icbms.so.service.ref.DeviceObje...
package us.kbase.networks.adaptor.mak; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.Arrays; import java.util.List; import org.junit.Before; import org.junit.Test; import us.kbase.networks.NetworksUtil; import us.kb...
package net.minecraftforge.common; import java.io.*; import java.text.DateFormat; import java.util.Collection; import java.util.Date; import java.util.Locale; import java.util.Map; import java.util.TreeMap; import com.google.common.base.CharMatcher; import com.google.common.base.Splitter; import com.google.common.colle...
package com.intellij.util.io; import com.intellij.openapi.util.io.FileUtil; import com.intellij.util.containers.LimitedPool; import com.intellij.util.containers.SLRUCache; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import java.io.*; import java.util.Collection; public class Persi...
package org.objectweb.proactive.core.descriptor.parser; import java.io.CharArrayWriter; import java.io.IOException; import java.net.MalformedURLException; import java.util.ArrayList; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import java.util.Map; import java.util.StringTokenizer; ...
package org.objectweb.proactive.core.descriptor.parser; import java.io.CharArrayWriter; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.util.ArrayList; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import java.util.Map; import java.u...
//This code is developed as part of the Java CoG Kit project //This message may not be removed or altered. package org.globus.cog.karajan.scheduler; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.TreeSet; import org.globus.cog.karajan.util.BoundContact; public class Weighted...
package dr.app.beauti.components.ancestralstates; import dr.app.beauti.options.*; import java.io.Serializable; import java.util.*; /** * @author Andrew Rambaut * @version $Id$ */ public class AncestralStatesComponentOptions implements ComponentOptions { public AncestralStatesComponentOptions() { } public...
package org.endeavourhealth.ui.endpoints; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.common.base.Strings; import org.apache.commons.io.FileUtils; import org.endeavourhealth.common.secu...
package edu.towson.cis.cosc455.ftchen.project1.implementation; import java.util.*; /** * MySemanticAnalyzer * Takes an abstract syntax tree (parseTree) translates it to HTML5 * and returns the HTML5 equivalent to be written into a file. * @author Felicia Tchen * @param voidw */ public class MySemanticAnalyzer...
package org.rstudio.studio.client.workbench.views.vcs.diff; import org.rstudio.core.client.Debug; import org.rstudio.core.client.regex.Match; import org.rstudio.core.client.regex.Pattern; import org.rstudio.studio.client.workbench.views.vcs.diff.Line.Type; import java.util.ArrayList; public class UnifiedParser { pub...
package io.bisq.common.app; public class DevEnv { // Was used for P2P network stress test to adjust several setting for the tests (e.g. use lower btc fees for offers,..) public static final boolean STRESS_TEST_MODE = false; // If that is true all the privileged features which requires a private key to enabl...
import static org.junit.Assert.*; import org.junit.Test; public class ReduceFractionTest { @Test public void alreadyInLowestTerms() throws Exception { assertEquals(new Fraction(3, 4), new Fraction(3, 4)); } @Test public void reduceToNotWholeNumber() throws Exception { assertEquals(ne...
package org.jgroups.tests; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; /** * Test driver for testing JGroups-based HttpSession replication. * * @author Brian Stansberry * @version $Id: StressTester.java,v 1.2 2006/09/05 02:22:08 bstansberry Exp $ */ public class StressTester...
package org.antlr.v4.test; import org.junit.Test; public class TestParseTrees extends BaseTest { @Test public void testToken() throws Exception { String grammar = "grammar T;\n" + "s\n" + "@init {setBuildParseTrees(true);}\n" + "@after {System.out.println($r.t...
package io.lumify.web; import com.google.inject.Injector; import io.lumify.core.exception.LumifyAccessDeniedException; import io.lumify.core.exception.LumifyException; import io.lumify.core.util.LumifyLogger; import io.lumify.core.util.LumifyLoggerFactory; import io.lumify.core.util.ServiceLoaderUtil; import io.lumify....
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 org.intermine.bio.web.widget; import java.util.ArrayList; import static java.util.Arrays.asList; import java.util.Collection; import java.util.LinkedList; import java.util.List; import static org.apache.commons.collections.CollectionUtils.collect; import static org.apache.commons.collections.TransformerUtils.in...
package kg.apc.cmd; // N.B. this must only use standard Java packages import java.io.File; import java.io.FilenameFilter; import java.io.IOException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.util.Iterator; import java.util.L...
package exm.stc.ic.tree; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.log4j.Logger; import exm.stc.common.CompilerBackend; import exm.stc.common.exceptions.STCRuntimeError; import exm.stc.common.la...
package exm.stc.ic.tree; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.log4j.Logger; import exm.stc.common.CompilerBackend; import exm.stc.common.exceptions.STCRuntimeError; import exm.stc.common.la...
package asw1013; import asw1013.entity.Tweet; import asw1013.util.TweetListFile; import asw1013.entity.TweetList; import asw1013.util.UserListFile; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.Date; import java.util.LinkedList; ...
package com.axelor.db; import java.util.Properties; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.inject.AbstractModule; import com.google.inject.persist.PersistService; import com.google.inject.persist.jpa.JpaPersistModule; /** * A Guice module to configure JPA...
class A { public void m(){ System.out.println("A.m"); } } class B extends A { @Override public void m() { super.m(); System.out.println("B.m"); } public void v() { m(); } } public class Test { public static void main(String[] args) { //Integer intt...
package arez.processor; final class Constants { static final String ACTION_ANNOTATION_CLASSNAME = "arez.annotations.Action"; static final String COMPONENT_ANNOTATION_CLASSNAME = "arez.annotations.ArezComponent"; static final String AUTORUN_ANNOTATION_CLASSNAME = "arez.annotations.Autorun"; static final String D...
import static org.junit.Assert.*; import java.util.*; public class Test{ // Instance variables for use with testing Sound aSoundA = new Sound(100, 100, 100, 100, 100, 100); Note aNoteA = new Note("A", 440, 60, 1, 1, 127, 1); Note aNoteB = new Note("B", 440, 60, 1,...
package com.google.sps.agents; // Imports the Google Cloud client library import com.google.gson.Gson; import com.google.protobuf.Value; import com.google.sps.data.Location; import com.google.sps.utils.LocationUtils; import java.util.Map; /** Maps Agent */ public class Maps implements Agent { private final String int...
package net.bytebuddy.asm; import net.bytebuddy.ClassFileVersion; import net.bytebuddy.description.annotation.AnnotationDescription; import net.bytebuddy.description.field.FieldDescription; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.description.method.MethodList; import net.bytebudd...
package org.jboss.as.web; import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.ADD; import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.DESCRIBE; import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.FAILED; import static org.jboss.as.controller.de...
package c5db.replication; import c5db.codec.ProtostuffDecoder; import c5db.codec.ProtostuffEncoder; import c5db.interfaces.C5Module; import c5db.interfaces.C5Server; import c5db.interfaces.DiscoveryModule; import c5db.interfaces.LogModule; import c5db.interfaces.ReplicationModule; import c5db.log.Mooring; import c5db.m...
package c5db.tablet; import c5db.AsyncChannelAsserts; import c5db.C5ServerConstants; import c5db.ConfigDirectory; import c5db.TestHelpers; import c5db.discovery.generated.Availability; import c5db.interfaces.C5Server; import c5db.interfaces.DiscoveryModule; import c5db.interfaces.ReplicationModule; import c5db.interfac...
package butterknife; import android.annotation.TargetApi; import android.app.Activity; import android.os.Build; import android.util.Log; import android.util.Property; import android.view.View; import butterknife.internal.ButterKnifeProcessor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect....
package mod._forms; import com.sun.star.beans.PropertyValue; import com.sun.star.drawing.XControlShape; import com.sun.star.drawing.XShape; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.text.XTextDocument; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; import com.sun.star.u...
/** * Write a description of class View here. * * @author (your name) * @version (a version number or a date) */ import java.util.ArrayList; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTextArea...
package view; import java.awt.Font; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.time.LocalDate; import java.time.LocalTime; import java.time.format.DateTimeFormatter; import javax.swing.ButtonGroup; import javax.swing.ImageIco...
package wicket; /** * Causes wicket to interrupt current request processing and immediately respond * with the specified page. * * @author Igor Vaynberg (ivaynberg) */ public class RestartResponseException extends AbstractRestartResponseException { private static final long serialVersionUID = 1L; /** ...
package Nosotros_BattleCode; import battlecode.common.Direction; import battlecode.common.GameConstants; import battlecode.common.RobotController; import battlecode.common.RobotType; import battlecode.common.*; import java.util.*; public class RobotPlayer { static Random rand; private static Robot getLowest(Rob...
package com.brogrammers.agora; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import and...
package org.jboss.tm; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.spec.WebArchive; import org.junit.Assert; import org.junit.Test; im...
package com.victoria.rest; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.*; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType;...
package com.victoria.rest; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.*; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType;...
package com.victoria.rest; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws...
package com.zackehh.bisect; import android.app.Activity; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; import android.support.v4.app.Fragment; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.view.View...
package io.branch.referral; import android.annotation.SuppressLint; import java.util.Collection; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class BranchLinkData extends JSONObject { private Collection<String> tags; private String alias; private int type; ...
import java.util.Scanner; import javafx.application.Application; import static javafx.application.Application.launch; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.BorderPane...
import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.geom.*; import javax.swing.border.*; import javax.swing.JOptionPane; import java.util.ArrayList; /** * Instantiates the navigator GUI for pathfinding. */ public class Navigator { public static void main(String[] args) { Draw...
import java.util.ArrayList; import java.util.List; /** * Course: * Instructor: * <p> * Project 06 * * @author John Meyer */ public class TicTacToe { private ArrayList<BoardState> currentBoardState = new ArrayList<>(9); private DictionaryInterface<ArrayList<BoardState>, Integer> bestMoveDictionary = new H...