answer
stringlengths
17
10.2M
package com.sherpasteven.sscte; import android.annotation.SuppressLint; import android.content.Intent; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; import android.support.v7.app.ActionBa...
package org.pentaho.di.ui.job.entries.snmptrap; import java.net.InetAddress; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.CCombo; import org.eclipse.swt.custom.CTabFolder; import org.eclipse.swt.custom.CTabItem; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import...
import java.util.*; import java.util.regex.*; public class MIPSGenerator{ private List<Quad> mipsCode; private final MIPSRegisterBank rb; private TigerScope scope; private final String dataSegment = ".data\n"; private final String textSegment = ".text\n"; private final String mainSegment = ".glo...
/* * $Log: AbstractPipe.java,v $ * Revision 1.7 2004-10-05 10:47:03 L190409 * retyped ParameterList * * Revision 1.6 2004/05/21 07:37:08 unknown <unknown@ibissource.org> * Moved PipeParameter to core * * Revision 1.5 2004/04/06 10:16:16 Johan Verrips <johan.verrips@ibissource.org> * Added PipeParameter a...
package test.ccn.library; import java.io.IOException; import java.util.ArrayList; import java.util.Random; import java.util.SortedSet; import javax.xml.stream.XMLStreamException; import junit.framework.Assert; import org.bouncycastle.util.Arrays; import org.junit.BeforeClass; import org.junit.Test; import test.ccn.netw...
package alma.acs.nc; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit...
package pl.cmil.wuff.plugin; import com.intellij.execution.ExecutionException; import com.intellij.execution.Executor; import com.intellij.execution.configurations.JavaCommandLineState; import com.intellij.execution.configurations.JavaParameters; import com.intellij.execution.configurations.ParametersList; import com.i...
package org.jpmml.xjc; import java.lang.reflect.Field; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Map; import javax.xml.bind.annotation.XmlValue; import com.sun.codemodel.JAnnotationUse; import com.sun.codemodel.JClass; import com.sun....
package example; //-*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.List; import javax.swing.*; import javax.swing.plaf.UIResource; import javax.swing.plaf.basic.*; public class JTabbedPaneWithCloseButton extends JTabbedPan...
package xdean.screenShot; import java.awt.Robot; import java.awt.image.BufferedImage; import javafx.application.Platform; import javafx.embed.swing.SwingFXUtils; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.image.Writable...
package com.braintreepayments.api; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.support.annotation.VisibleForTesting; import com.braintreepayments.api.exceptions.BraintreeException; import com.braintreepayments.api.exceptions.Configur...
package org.xdi.oxauth.client; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.ws.rs.HttpMethod; import javax.ws.rs.core.MediaType; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.codehaus.jettison.json.JSONArray; import org.codehaus.jett...
package org.adligo.i.util.client; /** * NOT THREAD SAFE, You must wrap with a synchronizer * * a simple collection implementaion that will * work on GWT, J2ME and J2SE * * does not allow null items! * * @author scott * */ public class ArrayCollection implements I_Collection { public static final int[] EMP...
package org.appwork.swing.exttable; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.regex.Pattern; import javax.swing.Icon; import javax.swing.ImageIcon; import...
/* * $Id: RepositoryNodeImpl.java,v 1.12 2003-01-14 22:28:56 aalto Exp $ */ package org.lockss.repository; import java.io.*; import java.util.*; import java.net.MalformedURLException; import org.lockss.util.Logger; import org.lockss.daemon.CachedUrlSetSpec; import org.lockss.util.Deadline; /** * RepositoryNode is us...
//WIP WIP WIP package org.myrobotlab.service; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Stack; impo...
package org.systemsbiology.jrap.stax; import javax.xml.stream.*; import java.io.*; import java.util.*; /** * dhmay 20091021: * -Incorporating Vagisha's changes to close files, merging in my changes for mzML 1.1 support * -adding a debug flag for messages that probably don't need to be displayed every time */ public...
package org.uct.cs.simplify.util; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayDeque; /** Class for managing temporary files generated during processing */ public class TempFileManager { public static final int DELETE_WAIT_DELAY = 50...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ // FILE NAME: Autonomous.java (Team 339 - Kilroy) // ABSTRACT: // This file is where almost all code for Kilroy will be // written. All of these functions are functions that should // override methods in the base class (It...
package rms.control; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.logging.Level; import java.util.logging.LogManager; import java.util.logging.Logger; import javax.swing.JFileChooser; import javax.swing.UIManager; im...
package vn.eazy.core.loader; import android.content.Context; import android.support.annotation.NonNull; import android.view.View; public interface LoaderUtils { public enum TYPE { SPIN, PIE, ANNULAR, BAR } void showLoading(); void showLoaing(@NonNull String title, TYPE type,Context context); ...
package org.holoeverywhere; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.WeakHashMap; import org.holoeverywhere.SystemServiceManager.SystemServiceCreator; import org.holoeverywhere.SystemServiceManager.SystemServiceCreator.SystemService...
import java.util.*; import it.unimi.dsi.fastutil.ints.IntArrayList; import it.unimi.dsi.fastutil.ints.IntIterator; import org.jgrapht.*; import org.jgrapht.graph.*; public class Bubble{ private HLAGraph g; private ArrayList<Integer> start; private ArrayList<Integer> end; //s- and t- nodes of each bubble...
package src.io.view; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseWheelListener; import java.io.InputStream; import java.util.ArrayList; import javax.swing.JComponent; import javax.swing.JFrame; imp...
package com.facebook.litho; import com.facebook.litho.annotations.ShouldUpdate; /** * Represents a diff between two values T. It should be used when defining the * {@link ShouldUpdate} callback in a ComponentSpec. a Diff * holds the previous and next value for a specific Prop for a ComponentSpec */ public class Dif...
package hudson.scm; import hudson.ExtensionPoint; import hudson.FilePath; import hudson.Launcher; import hudson.tasks.Builder; import hudson.model.AbstractBuild; import hudson.model.AbstractProject; import hudson.model.BuildListener; import hudson.model.Describable; import hudson.model.TaskListener; import java.io.File...
package com.walmart.otto.reporter; import java.math.BigDecimal; import java.math.RoundingMode; import java.text.ParseException; import java.util.HashMap; import java.util.List; import java.util.Map; public class PriceReporter { private static double virtualDevicePricePerMin = 1.00; private static double realDeviceP...
package org.waterforpeople.mapping.app.web; import java.io.IOException; import java.util.List; import java.util.logging.Logger; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.water...
package com.parrot.arsdk.arnetworkal; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Semaphore; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattService; import an...
package org.cytoscape.data.reader.kgml; import giny.view.NodeView; import java.awt.Color; import java.awt.Font; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Pattern; import org.cytoscape.data.reader.kgml.generated.Entry; import org.cytoscape.d...
package edu.wustl.query.htmlprovider; 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 edu.common.dynamicextensions.domain.UserDefinedDE; import edu.common.dynamicextensions.domaininterface.AttributeInter...
package nxt; import nxt.crypto.Crypto; import nxt.crypto.EncryptedData; import nxt.db.DbClause; import nxt.db.DbIterator; import nxt.db.DbKey; import nxt.db.DbUtils; import nxt.db.DerivedDbTable; import nxt.db.VersionedEntityDbTable; import nxt.util.Convert; import nxt.util.Listener; import nxt.util.Listeners; import n...
package cgeo.geocaching.log; import cgeo.geocaching.Intents; import cgeo.geocaching.R; import cgeo.geocaching.TrackableActivity; import cgeo.geocaching.command.AbstractCommand; import cgeo.geocaching.connector.ConnectorFactory; import cgeo.geocaching.connector.IConnector; import cgeo.geocaching.connector.ILoggingManage...
package org.voovan.http.message; import org.voovan.Global; import org.voovan.http.message.packet.Cookie; import org.voovan.http.message.packet.Part; import org.voovan.http.server.exception.ParserException; import org.voovan.http.server.exception.RequestTooLarge; import org.voovan.tools.*; import org.voovan.tools.log.Lo...
package cgeo.geocaching.maps.routing; import cgeo.geocaching.CgeoApplication; import cgeo.geocaching.R; import cgeo.geocaching.downloader.DownloadConfirmationActivity; import cgeo.geocaching.location.Geopoint; import cgeo.geocaching.settings.Settings; import cgeo.geocaching.storage.PersistableFolder; import cgeo.geocac...
package org.voovan.http.message; import org.voovan.Global; import org.voovan.http.message.packet.Cookie; import org.voovan.http.message.packet.Part; import org.voovan.http.server.exception.RequestTooLarge; import org.voovan.tools.*; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingExce...
package com.google.refine.exporters; import java.io.IOException; import java.io.OutputStream; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Properties; import org.apache.poi.hssf.usermodel.HSSFHyperlink; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.opensextant.xtext.test; import java.io.*; import java.net.URL; import java.util.*; import org.apache.commons.io.FileUtils; import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.Stri...
package experiments; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.storm.spout.SpoutOutputCollector; import backtype.storm.task.OutputCollector; import backtype.storm.task.TopologyContext; import backtype.storm.topology.IRichBolt; import backtype...
package lunatrius.ingameinfo; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.InputStream; import java.io.InputStreamReader; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collection; import java.util.Date; imp...
package cn.cerc.db.dao; import java.io.Serializable; public interface BigRecord extends Serializable { /** * record base self * * @param base * @param record */ void merge(BigRecord base, BigRecord record); /** * fieldself - record * * @param field * @param rec...
package SpaceCritters; import gameengineV1.GameEngineV1; import gameengineinterfaces.GameCommand; import gameengineinterfaces.GameCommandCode; import gameengineinterfaces.GameElementSpec; import gamelogic.Constants; import java.io.File; import java.io.IOException; import java.lang.management.ManagementFactory; import j...
package soot.util.annotations; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import com.google.common.reflect.AbstractInvocationHandler; import soot.tagkit.AnnotationElem; import soot.tagkit.AnnotationTag; import soot.util.annot...
package com.exalttech.trex.ui; import com.exalttech.trex.ui.matchers.ComboBoxMatchers; import com.exalttech.trex.ui.matchers.RadioButtonMatchers; import javafx.scene.Node; import org.testfx.api.FxAssert; import org.testfx.framework.junit.ApplicationTest; import org.testfx.matcher.base.NodeMatchers; import org.testfx.ma...
package com.github.davidmoten.geo; import static org.junit.Assert.assertEquals; import java.util.Set; import org.junit.Test; import com.google.common.collect.Sets; public class GeoHashTest { private static final double PRECISION_2 = 0.0001; private static final double PRECISION = 0.000000001; @Test publ...
package com.impossibl.postgres.jdbc; import java.math.BigDecimal; import java.sql.Array; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.sql.Types; import junit.framework.Tes...
package com.j256.ormlite.examples.spring; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.j256.ormlite.spring.TableCreator; /** * Main sample routine to show how to do basic operations with the package and Spring. */ public class Main { // here is a list of XML files to be lo...
package ru.salauyou.locks; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.concurrent.Semaphore; import java.util.c...
package com.rultor.agents; import com.jcabi.matchers.XhtmlMatchers; import com.rultor.spi.Talks; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; import org.xembly.Directives; /** * Tests for {@link com.rultor.agents.IndexesRequests}. * * @author Krzysztof Krason (Krzysztof.Kra...
package dml.parser; import java.util.ArrayList; import dml.utils.LanguageException; public class IndexedIdentifier extends DataIdentifier { // stores the expressions containing the ranges for the private Expression _rowLowerBound = null, _rowUpperBound = null, _colLowerBound = null, _colUpperBound = null; ...
package innovimax.mixthem.test001; import innovimax.mixthem.MixThem; import innovimax.mixthem.Constants; import java.io.*; import org.junit.Assert; import org.junit.Test; public class GenericTest { @Test public final void check1() { ClassLoader classLoader = getClass().getClassLoader(); File file1...
package io.schinzel.basicutils; import java.util.HashSet; import java.util.Set; import java.util.regex.Pattern; import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; /** * * @author schinzel */ public class RandomUtilTest { ...
package io.schinzel.basicutils; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import java.util.HashSet; import java.util.Set; import java.util.regex.Pattern; import static org.assertj.core.api.Assertions.assertThat; /** * @author schinzel */ public cl...
package org.pwsafe.lib.file; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.Vector; import org.pwsafe.lib.Log; import org.pwsafe.lib.crypto.SHA1; import com.amazonaws.cryp...
package it.near.sdk.geopolis; import org.json.JSONObject; import org.junit.Before; import org.junit.Test; import java.util.List; import it.near.sdk.TestUtils; import it.near.sdk.geopolis.beacons.BeaconNode; import it.near.sdk.geopolis.geofences.GeoFenceNode; import it.near.sdk.morpheusnear.Morpheus; import static org.h...
package com.polljoy.testapp; import com.polljoy.Polljoy; import android.app.Application; public class PJApplication extends Application { @Override public void onCreate() { super.onCreate(); // Polljoy.setSandboxMode(true); // register your Polljoy session here. // check YOUR_APP...
package net.imagej.ops.math; import net.imagej.ops.AbstractNamespaceTest; import net.imagej.ops.MathOps.Abs; import net.imagej.ops.MathOps.Add; import net.imagej.ops.MathOps.AddNoise; import net.imagej.ops.MathOps.And; import net.imagej.ops.MathOps.Arccos; import net.imagej.ops.MathOps.Arccosh; import net.imagej.ops.Ma...
package org.animotron.operator; import static org.animotron.Expression._; import static org.animotron.Expression.text; import org.animotron.ATest; import org.animotron.Expression; import org.animotron.instruction.string.AfterLast; import org.animotron.operator.compare.WITH; import org.animotron.operator.query.ANY; impo...
package com.cradle.iitc_mobile; import java.io.IOException; import com.cradle.iitc_mobile.R; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android...
package org.dita.dost.module; import com.google.common.collect.ImmutableMap; import net.sf.saxon.event.Receiver; import net.sf.saxon.s9api.DOMDestination; import net.sf.saxon.s9api.SaxonApiException; import net.sf.saxon.s9api.XdmDestination; import net.sf.saxon.s9api.XdmNode; import net.sf.saxon.s9api.streams.Predicate...
package org.oscii.panlex; import com.google.gson.Gson; import org.junit.Test; import org.oscii.lex.Meaning; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; import java.util.function.Predic...
package it.polimi.spark.tpcds; import java.io.IOException; import java.nio.file.Paths; import org.apache.commons.lang.time.StopWatch; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.spark.SparkConf; import org.apache.spark.api.java...
package oap.jpath; import lombok.ToString; import java.util.ArrayList; import java.util.Map; @ToString public class PathExpression { public final ArrayList<PathNode> list = new ArrayList<>(); public void add( PathNode path ) { list.add( path ); } @SuppressWarnings( "unchecked" ) public void ...
package zengine; /** * * @author SparedRay */ public class Jugador extends Entidad { private String nombre; public Jugador(String nombre, float hp, float ataque, float defensa) { super(hp, ataque, defensa); this.nombre = nombre; } public Jugador(float hp, float ataque, float defensa) ...
package seedu.ezdo.storage; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.io.IOException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; impo...
package org.openlca.app.editors.epds; import java.util.function.Supplier; import com.google.gson.JsonElement; import com.google.gson.JsonNull; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.swt.SWT; import org.openlca.app.util.ErrorReporter; import ...
package seedu.tasklist.logic; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.tasklist.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.tasklist.commons.core.Messages.MESSAGE_INVALID_TASK_DIS...
package org.openlca.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collection; import java.util.List; /** * Contains helper methods for string operations. */ public class Strings { private ...
package seedu.unburden.logic; import com.google.common.eventbus.Subscribe; import seedu.unburden.commons.core.EventsCenter; import seedu.unburden.commons.events.model.ListOfTaskChangedEvent; import seedu.unburden.commons.events.ui.JumpToListRequestEvent; import seedu.unburden.commons.events.ui.ShowHelpRequestEvent; imp...
package cx2x.xcodeml.helper; import cx2x.xcodeml.exception.*; import cx2x.xcodeml.xelement.*; import cx2x.xcodeml.xnode.Xcode; import cx2x.xcodeml.xnode.Xnode; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.w3c.dom.Node; import org.w3c.dom.NamedNodeMap; import javax.xml...
package uk.bl.odin.orcid; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.util.Properties; import javax.xml.bind.JAXBException; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement;...
package org.modmine.web; import java.io.IOException; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger;...
package the8472.utils.concurrent; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; import java.util.function.Predicate; public class SerializedTaskExecutor { ...
package us.kbase.jgiintegration.test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import j...
package generic; import javax.xml.bind.annotation.XmlElementDecl.GLOBAL; public abstract class Port { private int noOfUnits; //occupancy defines the number of clockCycles it takes for one completion //of a single transfer on the port. private Time_t occupancy; private Time_t portBusyUntil[]; pub...
package org.jgrapes.http; import java.lang.ref.WeakReference; import java.net.Inet4Address; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.URI; import java.net.UnknownHostException; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.util.ArrayLis...
package com.nulldreams.adapter; import android.content.Context; import android.support.annotation.NonNull; import android.support.v4.util.SparseArrayCompat; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.nulldreams.a...
package se.z_app.zmote.gui; import se.z_app.stb.api.RCProxy; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class RemoteControlActivity extends Activity { private Button arrow_u...
package codeOrchestra.colt.as.session.sourcetracking; import codeOrchestra.colt.core.session.sourcetracking.SourceFileFactory; import java.io.File; /** * @author Alexander Eliseyev */ public class ASSourceFileFactory implements SourceFileFactory<ASSourceFile> { @Override public ASSourceFile createSourceFile(F...
package com.vpedak.testsrecorder.plugin.actions; import com.android.tools.idea.gradle.parser.BuildFileKey; import com.android.tools.idea.gradle.parser.BuildFileStatement; import com.android.tools.idea.gradle.parser.Dependency; import com.android.tools.idea.gradle.parser.GradleBuildFile; import com.android.tools.idea.gr...
package stray.blocks; import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; import stray.Main; import stray.entity.Entity; import stray.entity.EntityWhale; import stray.entity.EntityZaborinox; import stray.world.World; import com.badlogic.gdx.graphics.Color; public class Blocks { private ...
package client.search; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.GregorianCalendar; import java.util.Date; import java.util.TimeZone; import java.util.Calendar; import client.dao.ServerInterface; import client.flight.*; import client.util.*; import ...
package com.github.fastsql.dao; import javax.persistence.Id; import javax.persistence.Table; import java.time.LocalDate; /** * @author Jiazhi * @since 2017/4/2 */ @Table(name = "student") public class Student { @Id private String id; private String name; private Integer age; private LocalDate bir...
package com.josketres.rfcfacil; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; public class RfcTest { @Test public void should_build_rfc_for_a_natural_person() { Rfc rfc = new Rfc.Builder() .name("Josué") ...
package org.clafer; import java.util.HashSet; import java.util.Set; import org.clafer.ast.AstAbstractClafer; import org.clafer.ast.AstConcreteClafer; import org.clafer.ast.AstModel; import static org.clafer.ast.Asts.*; import org.clafer.ast.analysis.InsufficientScopeException; import org.clafer.collection.Pair; import ...
package org.myrobotlab.service; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.myrobotlab.framework.Service; public class PidTest extends AbstractServiceTest { @Before public void setUp() throws Exception { // LoggingFactory.init("WARN...
// jTDS JDBC Driver for Microsoft SQL Server and Sybase // 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 GNU /...
package org.jdesktop.swingx; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.GraphicsEnvironment; import java.beans.PropertyChangeListener; import java.net.MalformedURLException; import java.net.URL; import java.text.Collator; import java.util.ArrayList; import java.util.Col...
package org.jdesktop.swingx; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.GraphicsEnvironment; import java.awt.KeyboardFocusManager; import java.beans.PropertyChangeListener; import java.lang.reflect.InvocationTargetException; import java.net.MalformedURLException; import...
package org.sakaiproject.evaluation.beans; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.sakaiproject.evaluation.constant.EvalConstants; import org.sakaiproject.evaluation.logic.EvalCo...
package com.btr.svg2java; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.Graphics2D; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.GridBagLayou...
package mathsquared.resultswizard2; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.Test; /** * @author MathSquared * */ public class FractionTest { /** * Test method for...
//RunningMedian.java /** *Keeps track of the median for a stream of numbers, updating *the median for each new number. For a stream of numbers it uses *count of words in the line for every line in the file. * *@author Sergey Kostenko *@version 3/20/15 **/ import java.io.*; import java.util.*; class RunningMedian { ...
package gov.nih.nci.cananolab.service.particle; import gov.nih.nci.cananolab.domain.common.Keyword; import gov.nih.nci.cananolab.domain.common.Source; import gov.nih.nci.cananolab.domain.particle.NanoparticleSample; import gov.nih.nci.cananolab.domain.particle.characterization.Characterization; import gov.nih.nci.canan...
package snowballmadness; import com.google.common.base.*; import org.bukkit.*; import org.bukkit.block.*; import org.bukkit.entity.*; /** * This logic takes in a material to place and possibly a second material (for * placing in the air block just above the material) and a number specifying how * many blocks down th...
/** * An implementation of SpaceInvaders in GridWorld. * * @author Foster McLane * @author Max Kirkpatrick * @version 0.1 */ import info.gridworld.actor.Actor; import info.gridworld.grid.Grid; import info.gridworld.grid.BoundedGrid; import info.gridworld.grid.Location; public class SpaceInvaders { public stat...
package com.randombot.mygame.screens; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.utils.Align; public class Help extends BaseScreen { final String instructionsText = "\n...
package com.dmdirc.addons.logging; import com.dmdirc.Channel; import com.dmdirc.Main; import com.dmdirc.Server; import com.dmdirc.Query; import com.dmdirc.actions.CoreActionType; import com.dmdirc.config.IdentityManager; import com.dmdirc.harness.TestLoggingPlugin; import com.dmdirc.harness.parser.TestParserFactory; im...
import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.core.WhitespaceAnalyzer; import org.apache.lucene.document.Field; import org.apache.lucene.document.StringField; import org.apache.lucene.document.TextField; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.index.IndexWrit...
package org.jpos.gl; import java.util.Date; import java.util.Set; import java.io.Serializable; import java.text.ParseException; import org.jdom.Element; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder...