answer
stringlengths
17
10.2M
package edu.miamioh.cse283.htw; import java.io.*; import java.net.*; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Client (player) for the Hunt the Wumpus game. * <p/> * The Client class takes the following command-line parameters: * <p/> * <Hostname of CaveSystemServer>...
package etomica.models.nitrogen; import etomica.api.IBoundary; import etomica.api.IBox; import etomica.api.IMolecule; import etomica.api.IMoleculeList; import etomica.api.IVector; import etomica.api.IVectorMutable; import etomica.data.types.DataTensor; import etomica.potential.IPotentialMolecularTorque; import etomica....
package etomica.zeolite; //This class includes a main method to demonstrate its use import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import etomica.EtomicaElement; import etomica.EtomicaInfo; import etomica.action.Action; import etomica.action.activity.Controller; imp...
package cs201.roles.housingRoles; import java.util.LinkedList; import java.util.List; import cs201.agents.PersonAgent.Intention; import cs201.gui.Gui; import cs201.gui.roles.residence.ResidentGui; import cs201.interfaces.roles.housing.Resident; import cs201.roles.Role; import cs201.roles.marketRoles.MarketManagerRole.I...
package mu.nu.nullpo.game.subsystem.mode; import java.util.Random; import mu.nu.nullpo.game.component.BGMStatus; import mu.nu.nullpo.game.component.Controller; import mu.nu.nullpo.game.event.EventReceiver; import mu.nu.nullpo.game.play.GameEngine; import mu.nu.nullpo.game.play.GameManager; import mu.nu.nullpo.util.Cust...
package mu.nu.nullpo.game.subsystem.mode; import java.io.IOException; import java.util.LinkedList; import java.util.Locale; import java.util.Random; import mu.nu.nullpo.game.component.BGMStatus; import mu.nu.nullpo.game.component.Block; import mu.nu.nullpo.game.component.Controller; import mu.nu.nullpo.game.component.F...
import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.List; import java.util.Collection; import org.hamcrest.Matcher; import org.hamcrest.collection.IsIterableContainingInOrder; import static org.hamcrest.Cor...
package net.java.sip.communicator.impl.gui; import java.awt.Component; import java.util.ArrayList; import java.util.Collections; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Vector; import javax.swing.JFrame; import net.java.sip.communicator.impl.g...
package org.apache.xerces.validators.common; import org.apache.xerces.framework.XMLAttrList; import org.apache.xerces.framework.XMLContentSpec; import org.apache.xerces.framework.XMLDocumentHandler; import org.apache.xerces.framework.XMLDocumentScanner; import org.apache.xerces.framework.XMLErrorReporter; import org.ap...
package com.ecyrd.jspwiki.providers; import java.util.*; import org.apache.log4j.*; import com.ecyrd.jspwiki.*; /** * A provider who counts the hits to different parts. */ public class CounterProvider implements WikiPageProvider { public int m_getPageCalls = 0; public int m_pageExistsCalls = 0; ...
package org.exist.xquery.functions.response; import java.io.BufferedOutputStream; import java.io.IOException; import java.io.OutputStream; import org.apache.log4j.Logger; import org.exist.dom.QName; import org.exist.http.servlets.ResponseWrapper; import org.exist.xquery.BasicFunction; import org.exist.xquery.Cardinalit...
package org.objectweb.proactive.core.util; import org.apache.log4j.Logger; import org.objectweb.proactive.core.ProActiveException; import org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl; import org.objectweb.proactive.core.util.log.Loggers; import java.util.Hashtable; import java.util.Map; /** * A cache for ...
package sfBugsNew; import edu.umd.cs.findbugs.annotations.ExpectWarning; import edu.umd.cs.findbugs.annotations.NoWarning; public class Feature329 { @ExpectWarning("DM_INVALID_MIN_MAX") public int checkBounds(int rawInput) { return Math.min(0, Math.max(100, rawInput)); } @ExpectWarning("DM_INVAL...
package org.opencms.gwt; import org.opencms.ade.containerpage.CmsRelationTargetListBean; import org.opencms.file.CmsFile; import org.opencms.file.CmsObject; import org.opencms.file.CmsProperty; import org.opencms.file.CmsPropertyDefinition; import org.opencms.file.CmsResource; import org.opencms.file.CmsResourceFilter;...
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 org.opencms.xml.types; import org.opencms.file.CmsObject; import org.opencms.main.CmsIllegalArgumentException; import org.opencms.main.CmsRuntimeException; import org.opencms.xml.I_CmsXmlDocument; import java.util.Locale; import org.dom4j.Element; /** * Describes the XML content type "OpenCmsVfsFile".<p> * *...
package com.airbnb.lottie; import android.graphics.PointF; import android.support.annotation.FloatRange; import android.support.annotation.Nullable; import android.support.v4.util.SparseArrayCompat; import android.support.v4.view.animation.PathInterpolatorCompat; import android.view.animation.Interpolator; import andro...
package com.yahoo.vespa.flags; import com.yahoo.component.Vtag; import com.yahoo.vespa.defaults.Defaults; import com.yahoo.vespa.flags.custom.HostCapacity; import java.util.List; import java.util.Optional; import java.util.TreeMap; import static com.yahoo.vespa.flags.FetchVector.Dimension.APPLICATION_ID; import static ...
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.bloatit.framework; import java.math.BigDecimal; import java.util.Date; import java.util.Locale; import com.bloatit.common.PageIterable; import com.bloatit.framework.lists.CommentList; import com.bloatit.framework.lists.ContributionList; import com.bloatit.framework.lists.OfferList; import com.bloatit.framew...
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.sun.star.lib.util; import java.io.File; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.URL; import java.net.URLClassLoader; import java.net.URLDecoder; import java.net.URLEncoder; /** Helper functions to locate and l...
package storm.petrel; import java.io.InputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.Map; import org.apache.thrift7.TBase; import org.yaml.snakeyaml.Yaml; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.s...
package grouplab; import java.util.LinkedList; import java.util.Scanner; /** * Helper class for input processing for Checkers game * * @author Nick Care (2014) * @author Andrew Amis (2014) * @author Sam Goree (2014) * @author Gabe Appleby (2014) */ public class InputHelper { /* * prints a formatted menu with op...
package flounder.lights; import flounder.maths.*; import flounder.maths.vectors.*; import flounder.physics.*; import flounder.space.*; /** * Represents a light in the game, contains a colour, position and attenuation. */ public class Light implements ISpatialObject { public Colour colour; public Vector3f posi...
package foam.nanos.dig; import foam.core.Detachable; import foam.core.FObject; import foam.core.X; import foam.dao.AbstractSink; import foam.dao.DAO; import foam.dao.JDAO; import foam.dao.ProxyDAO; import foam.nanos.auth.User; import foam.nanos.logger.Logger; import foam.util.Auth; /** Execute DUGs on startup or when f...
package de.geeksfactory.opacclient.apis; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.SocketException; import java.net.URI; import java.net.URISyntaxException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Has...
package de.onyxbits.pocketbandit; import com.badlogic.gdx.*; import com.badlogic.gdx.graphics.g2d.*; import com.badlogic.gdx.scenes.scene2d.*; import com.badlogic.gdx.graphics.*; import com.badlogic.gdx.audio.*; import com.badlogic.gdx.scenes.scene2d.ui.*; import com.badlogic.gdx.scenes.scene2d.actions.*; import com.ba...
package de.podfetcher.service; import java.io.File; import android.R; import android.app.Notification; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.MediaPlayer; import android.util...
package com.SSUJ.world; import com.SSUJ.animal.Animal; import com.SSUJ.animal.EatType; import com.SSUJ.tile.Tile; import com.SSUJ.vegetation.Vegetation; import java.util.ArrayList; import java.util.List; import java.util.Random; public class World { private int x; // Size of map in x dir private int y; // Size ...
/* * Author : Priyanka & Ravi */ package com.iit.commons; import java.sql.Date; public class Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Commons cm = new Commons(); Date d = cm.stringToSqlDate("2014-04-24"); ...
package com.joml; /** * Resembles the matrix stack known from legacy OpenGL. * <p> * Their names and semantics resemble those of the legacy OpenGL matrix stack. * <p> * As with the OpenGL version there is no way to get a hold of any matrix * instance within the stack. You can only load the current matrix into a ...
package org.typemeta.funcj.parser; import org.typemeta.funcj.data.Lazy; import java.util.Objects; /** * A reference to a {@link Parser}. * <p> * At creation the reference is typically uninitialised. * Any of the {@code Parser} methods will throw if invoked on an uninitialised {@code Ref}. * It is subsequently init...
package com.rapid.utils; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class JSON { // turns a JSONArray, either from a single member, or muliple if they exist - solves the issue when creating JSON from XML if there is only one member public static JSONArray getJSO...
package org.jasig.portal.jmx; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import org.jasig.portal.PortalException; import org.jasig.portal.PortalSessionManager; import org.jasig.portal.ProblemsTable; import org.jasig.portal.RDBMServices; import org.jasig.portal.u...
package org.jfree.data.general; import org.jfree.data.pie.PieDataset; import org.jfree.data.pie.DefaultPieDataset; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.jfree.chart.util.ArrayUtilities; import org.jfree.data.DomainInfo; import org.jfree.data.KeyToGroupMap; import org.j...
package org.bouncycastle.tls; /** * RFC 7919 */ public class NamedGroup { /* * RFC 4492 5.1.1 * <p> * The named curves defined here are those specified in SEC 2 [13]. Note that many of these curves * are also recommended in ANSI X9.62 [7] and FIPS 186-2 [11]. Values 0xFE00 through 0xFEFF are ...
package org.bouncycastle.tls; /** * RFC 7919 */ public class NamedGroup { /* * RFC 4492 5.1.1 * <p> * The named curves defined here are those specified in SEC 2 [13]. Note that many of these curves * are also recommended in ANSI X9.62 [7] and FIPS 186-2 [11]. Values 0xFE00 through 0xFEFF are ...
package grouplab; /** * Checkers game implementation * * @author Nick Care * @author Andrew Amis * @author Sam Goree * @author Gabe Appleby * */ public class Checkers { // plays a game of checkers public static void play() { } }
package edu.cmu.pocketsphinx; import static java.lang.String.format; import java.io.File; import java.io.IOException; import java.util.Collection; import java.util.HashSet; import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaRecorder.AudioSource; import android.os.Handler; impo...
package org.pentaho.di.core.database; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Enumeration; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; import org.pentaho.di.core.Const; impo...
package edu.wustl.common.bizlogic; import java.net.URLDecoder; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.Vector; import edu.wustl.common.beans.NameValueBean; import edu.wustl.common.beans.SessionDataBean; import edu.wustl...
package org.apache.james.pop3server; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.net.Socket; import java.util.Enumeration; import java.util.Iterator; import java.util.List; import java.util.StringTokeni...
package com.xqbase.util.sns; import java.io.IOException; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.util.HashSet; import java.util.Properties; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import com.xqbase.util.ByteArrayQueue; import com.xq...
package BeanPlant.the_DJDJ.JavaText.io; import BeanPlant.the_DJDJ.JavaText.handlers.CommandLockHandler; import BeanPlant.the_DJDJ.JavaText.handlers.EventHandler; import BeanPlant.the_DJDJ.JavaText.npc.Entity; import BeanPlant.the_DJDJ.JavaText.world.exit.Exit; import BeanPlant.the_DJDJ.JavaText.world.World; import Bean...
import edu.stanford.nlp.ling.CoreAnnotations; import edu.stanford.nlp.pipeline.Annotation; import edu.stanford.nlp.pipeline.StanfordCoreNLP; import edu.stanford.nlp.semgraph.SemanticGraph; import edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations; import edu.stanford.nlp.trees.TypedDependency; import edu.stanford.n...
package org.mozartoz.truffle.translator; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.function.Function; import org.mozartoz.bootcompiler.ast.BinaryOp; import org...
package org.pentaho.ui.xul.gwt.tags; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Set; import org.pentaho.gwt.widgets.client.table.BaseTable; import org.pentaho.gwt.widgets.client.table.ColumnComparators.BaseColumnComparator; import org.pentaho.ui.xul.XulCompon...
package com.faveset.khttp; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketAddress; ...
package BlueTurtle.groupers; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; import java.io.File; import java.io.IOException; import java.util.Ar...
package com.hubspot.jinjava.lib.tag; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Date; import java.util.List; import java.util.Map; import org.jsoup.Jsoup; import org.jsoup.n...
package com.mdsol.mauth; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import org.apache.commons.io.IOUtils; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.junit.Before; import org....
package com.redditprog.webcrawler; import java.util.Map; import java.util.NoSuchElementException; import java.util.Scanner; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; import org.junit.Ignore; /** *...
package laboratory.jdk.java.lang; import org.junit.Assert; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CharacterTest { // @SuppressWarnings("unused") private static final Logger log = LoggerFactory.getLogger(CharacterTest.class); @Test public void compare(...
package net.imagej.ops.help; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import net.imagej.ops.AbstractOpTest; import net.imagej.ops.Op; import net.imagej.ops.Ops; import org.junit.Test; import org.scijava.Priority; import org.scijava.plugin.Plugin; /** * Tests {@link HelpCa...
package org.neo4j.server.database; import static org.hamcrest.Matchers.containsString; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; import java.net.Socket; import org.junit.Before; import org.junit.Test; import org.neo4j.graphdb.T...
package org.openremote.security; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.testng.Assert; import org.testng.annotations.AfterSuite; import org.testng.annotations.Test; import javax.crypto.spec.SecretKeySpec; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputS...
package org.apache.commons.dbcp; import java.sql.Connection; import junit.framework.Test; import junit.framework.TestSuite; public class TestBasicDataSource extends TestConnectionPool { public TestBasicDataSource(String testName) { super(testName); } public static Test suite() { return new T...
package gui.dialog.settings; import gui.ImageIconProxy; import plugin.DiderotPlugin; import plugin.editor.DiderotProjectEditor; import plugin.exporter.DiderotProjectExporter; import plugin.importer.DiderotProjectImporter; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event....
import javafx.animation.FadeTransition; import javafx.application.Application; import javafx.application.Platform; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.geometry.Rectangle2D; import javafx.scene.AmbientLight; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.sc...
package sublandroid.plugin; import java.util.*; import java.io.*; import sublandroid.core.*; import sublandroid.plugin.util.*; import org.gradle.api.*; import org.gradle.api.execution.*; import org.gradle.api.invocation.*; import org.gradle.api.internal.tasks.ContextAwareTaskAction; import org.gradle.api.internal.tasks...
package grundkurs_java; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Chap16 { public static void main(String[] args) { // Zeichnung.main(args); PunkteVerbinden.main(args); } } class PunkteVerbinden extends JFrame { Container c; // Container dieses Frames...
package grundkurs_java; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; public class Chap18 { public static void main(String[] args) { // MehrmalsP.main(args); // MehrmalsT.main(args); // TVProgAuslosung.main(args); // MehrmalsR.main(args); ...
package implementations; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; import java.util.List; import model.Attribute; import model.Filter; import model.Key; import com.datastax.driver.core.ColumnDefinitions; import com.datastax.driver.core.ColumnMetadata; import com.datastax.driv...
package grundkurs_java; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; public class Chap18 { public static void main(String[] args) { // MehrmalsP.main(args); // MehrmalsT.main(args); // TVProgAuslosung.main(args); // MehrmalsR.main(args); ...
// $Id: CalendarUtil.java,v 1.2 2004/06/09 09:40:04 mdb Exp $ package com.samskivert.util; import java.util.Calendar; /** * Contains some useful calendar related functions. */ public class CalendarUtil { /** * Set all the time components of the passed in calendar to zero. */ public static void zeroT...
// 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 ...
// Vilya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
package lila.runtime.dispatch; import java.io.BufferedWriter; import java.io.FileWriter; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; import j...
package nginx.clojure; import static nginx.clojure.MiniConstants.BYTE_ARRAY_OFFSET; import static nginx.clojure.MiniConstants.CONTENT_TYPE; import static nginx.clojure.MiniConstants.DEFAULT_ENCODING; import static nginx.clojure.MiniConstants.KNOWN_RESP_HEADERS; import static nginx.clojure.MiniConstants.NGX_DONE; import...
// This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // You should have received a copy of the GNU Lesser General ...
package org.jdesktop.swingx; import java.awt.Component; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; import java.awt.event.ActionEvent; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.beans.PropertyChangeEven...
package org.jdesktop.swingx; import java.awt.Cursor; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Insets; import java.awt.Rectangle; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.File; import java.net.URL; ...
package org.joda.time; import java.security.BasicPermission; public class JodaTimePermission extends BasicPermission { /** Serialization version */ private static final long serialVersionUID = 1408944367355875472L; public JodaTimePermission(String name) { super(name); } }
package steamgameselector; import java.util.Map; import java.util.HashMap; import java.util.ArrayList; /** * * @author sfcook */ public class SteamGameSelector { private Map steamGames; private ArrayList sharedGames; private ArrayList accounts; public SteamGameSelector() { steamGames=new ...
package nl.mpi.yaas.client; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; im...
package com.google.sps.utils; // Imports the Google Cloud client library import com.google.cloud.dialogflow.v2.QueryInput; import com.google.cloud.dialogflow.v2.QueryResult; import com.google.gson.Gson; import com.google.protobuf.ByteString; import com.google.protobuf.Struct; import com.google.protobuf.Value; import co...
package task.timer.view; import javafx.scene.control.Label; import javafx.scene.input.MouseEvent; import javafx.scene.layout.AnchorPane; import javafx.fxml.FXML; import task.timer.ViewLoader; import task.timer.helper.Helper; public class MainManagerController { @FXML private Label loggedUserName; @FXML private ...
package btspn.sr; import btspn.sr.cmd.EventStore; import btspn.sr.cmd.InMemoryStore; import btspn.sr.event.Holder; import javaslang.Tuple; import javaslang.collection.List; import org.testng.annotations.Test; import java.util.Objects; import java.util.function.Predicate; import static btspn.sr.CommandFunction.pc; impor...
package com.rox.emu.P6502; import com.rox.emu.Memory; import com.rox.emu.SimpleMemory; import com.rox.emu.UnknownOpCodeException; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import static junit.framework.TestCase.assertEquals; import static com.rox.emu.P6502.InstructionSet.*; import static ...
package com.slugterra.item; import com.slugterra.block.BlockRegistry; import net.minecraft.item.ItemBlock; import net.minecraftforge.fml.common.registry.GameRegistry; public class ItemBlockRegistry { public static void registerBlocks(){ initialiseBlock(); registerBlock(); } public static Ite...
package imagej.ops; import net.imglib2.FinalInterval; import net.imglib2.img.Img; import net.imglib2.img.array.ArrayImgs; import net.imglib2.type.numeric.integer.ByteType; import net.imglib2.type.numeric.integer.UnsignedByteType; import net.imglib2.util.Intervals; import org.junit.After; import org.junit.Before; import...
package org.mariadb.jdbc; import org.junit.Assert; import org.junit.Assume; import org.junit.BeforeClass; import org.junit.Test; import java.sql.*; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.TimeZone; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assert...
package SW9.model_canvas.edges; import SW9.model_canvas.IParent; import SW9.model_canvas.ModelCanvas; import SW9.model_canvas.Parent; import SW9.model_canvas.Removable; import SW9.model_canvas.arrow_heads.SimpleArrowHead; import SW9.model_canvas.locations.Location; import SW9.utility.colors.Color; import SW9.utility.co...
package org.zeromq.auth; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; import java.io.FileWriter; import java.io.IOException; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Temporar...
package cgeo.geocaching.maps; import cgeo.geocaching.R; import cgeo.geocaching.settings.Settings; import cgeo.geocaching.ui.dialog.Dialogs; import cgeo.geocaching.utils.functions.Action1; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import an...
package perf; import com.intuit.karate.PerfHook; import com.intuit.karate.Runner; import com.intuit.karate.core.FeatureResult; import com.intuit.karate.core.PerfEvent; import com.intuit.karate.core.ScenarioRuntime; import com.intuit.karate.http.HttpRequest; /** * * @author pthomas3 */ public class Main { public ...
package application.rest.v1; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import java.util.ArrayList; @Path("hello") public class Example { @GET @Produces...
package au.com.agic.apptesting; import au.com.agic.apptesting.constants.Constants; import au.com.agic.apptesting.utils.SystemPropertyUtils; import au.com.agic.apptesting.utils.impl.SystemPropertyUtilsImpl; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.math.NumberUtils; import org.slf4j.Logger;...
package au.com.agic.apptesting; import au.com.agic.apptesting.constants.Constants; import au.com.agic.apptesting.utils.SystemPropertyUtils; import au.com.agic.apptesting.utils.WebDriverFactory; import au.com.agic.apptesting.utils.impl.SystemPropertyUtilsImpl; import au.com.agic.apptesting.utils.impl.WebDriverFactoryImp...
package uk.ac.york.mhe504.dblm; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import uk.ac.york.mhe504.dblm.ann...
package fitnesse.wikitext.parser; import fitnesse.html.HtmlTag; import util.Maybe; public class Link extends SymbolType implements Rule, Translation { public static final Link symbolType = new Link(); public static final String ImageProperty = "image"; public static final String WidthProperty = "width"; ...
// modification, are permitted provided that the following conditions are met: // documentation and/or other materials provided with the distribution. // * Neither the name of the <organization> nor the // names of its contributors may be used to endorse or promote products // ANY EXPRESS OR IMPLIED WARRAN...
package com.github.jsonj; import static com.github.jsonj.tools.JsonBuilder.fromObject; import static com.github.jsonj.tools.JsonBuilder.primitive; import java.io.IOException; import java.io.OutputStream; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; im...
package com.gmail.nossr50.util; import java.util.ArrayList; import org.bukkit.entity.Player; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.skills.SkillType; import com.gmail.nossr50.skills.Skills; public class Page { public static int getTotalPageNumber(String address) { String[...
package com.immersion.cesium; import com.vaadin.annotations.JavaScript; import com.vaadin.annotations.StyleSheet; import com.vaadin.ui.AbstractJavaScriptComponent; import com.vaadin.ui.JavaScriptFunction; import org.json.JSONArray; import org.json.JSONException; import javax.annotation.CheckForNull; import javax.annota...
package com.jaamsim.render; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; import java.io.IOException; import java.net.URL; import java.nio.ByteBuffer; import java.nio.IntBuffer...
package com.jsh.util; /** * * @author jishenghua */ public interface AssetConstants { /** * * @author jishenghua */ public class Common { } /** * --excel * @author jishenghua */ public class BusinessForExcel { public static final int EXCEL_ASSETNAME =...
package com.litle.sdk; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.security.GeneralSecurityException; import java.util.Properties; import javax.net.ssl.SSLContext; import org.apache.http.HttpEntity; import org.apache.http.HttpHost; import org.ap...
package com.timgroup.status; public class Version extends Component { private final Class<?> anchorClass; public Version(String id, String label, Class<?> anchorClass) { super(id, label); this.anchorClass = anchorClass; } public Version(Class<?> anchorClass) { this("version", "Ve...