answer
stringlengths
17
10.2M
package com.readytalk.oss.dbms; import java.util.Set; import java.util.Map; import java.util.List; import java.io.InputStream; import java.io.OutputStream; /** * This interface defines an API for using a revision-oriented * relational database management system. The design centers on * immutable database revisions ...
package net.i2p.router; import java.io.IOException; import java.io.Writer; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; import java.util.concurrent.Conc...
package au.com.williamhill.flywheel; import static org.junit.Assert.*; import org.junit.*; import org.slf4j.*; import com.obsidiandynamics.indigo.util.*; public final class UlimitTest { @Test public void test() { final int minLimit = 1024; final StringBuilder sb = new StringBuilder(); BashInteractor.exe...
package be.rl.j.imc.tests; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; import org.junit.FixMethodOrder; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestWatcher; import org.junit.runner.Description; import o...
package com.dragonheart.test; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Test; import com.dragonheart.dijkstra.Point; import com.dragonheart.dijkstra.Edge; import com.dragonheart.dijkstra.DijkstraGraph; public class testDijkstraGraph { ...
package com.megaport.api.client; import com.megaport.api.dto.*; import com.megaport.api.exceptions.BadRequestException; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static...
package io.ebean.dbmigration.ddl; import java.io.StringReader; import java.util.List; import org.testng.annotations.Test; import static org.assertj.core.api.Assertions.assertThat; public class DdlParserTest { private DdlParser parser = new DdlParser(); @Test public void parse_ignoresEmptyLines() throws Exception ...
package io.elssa.test.through; import io.elssa.event.ConcurrentEventReactor; import io.elssa.event.EventContext; import io.elssa.event.EventHandler; import io.elssa.net.ServerMessageRouter; public class ThroughputServer { protected static final int PORT = 5050; protected static final int QUERY_SIZE = 64; pr...
package io.github.bonigarcia.wdm.test; import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.openqa.selenium.edge.EdgeDriver; import io.github.bonigarcia.wdm.EdgeDriverManager; import io.github.bonigarcia.wdm.base...
package me.lemire.integercompression; import java.util.Arrays; import java.util.Random; import me.lemire.integercompression.differential.Delta; import me.lemire.integercompression.differential.IntegratedBinaryPacking; import me.lemire.integercompression.differential.IntegratedComposition; import me.lemire.integercompre...
package com.xpn.xwiki.doc; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.StringReader; import java.lang.ref.SoftReference; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.net.URL; import java.s...
package org.mule.transport; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.mule.DefaultMuleMessage; import org.mule.api.MuleEvent; import org.mule.api.MuleEventContext; import org.mule.api.MuleMessage; import org.mule.api.transport.PropertyScope; impo...
package fi.laverca.samples; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.security.Messag...
package to.etc.domui.state; import java.util.*; import to.etc.domui.dom.errors.*; import to.etc.domui.dom.html.*; import to.etc.domui.util.*; final public class UIGoto { static public final String SINGLESHOT_MESSAGE = "uigoto.msgs"; private UIGoto() {} static private WindowSession context() { return...
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.FileInputSt...
package org.psjava.example; import static org.junit.Assert.*; import org.junit.Test; import org.psjava.algo.graph.shortestpath.AllPairShortestPath; import org.psjava.algo.graph.shortestpath.AllPairShortestPathResult; import org.psjava.algo.graph.shortestpath.BellmanFord; import org.psjava.algo.graph.shortestpath.Dijkst...
package org.sonar.plugins.stash; import com.github.tomakehurst.wiremock.client.WireMock; import com.github.tomakehurst.wiremock.core.WireMockConfiguration; import com.github.tomakehurst.wiremock.junit.WireMockRule; import org.apache.commons.lang3.StringUtils; import org.junit.BeforeClass; import org.junit.ClassRule; im...
package com.tamsiree.rxkit; import android.annotation.SuppressLint; import android.content.Context; import android.os.Handler; import android.os.HandlerThread; import android.text.Editable; import android.text.InputFilter; import android.text.InputType; import android.text.Spanned; import android.text.TextWatcher; impo...
package org.jdesktop.swingx.renderer; import java.awt.Color; import java.awt.Component; import java.awt.Font; import java.awt.Point; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.MouseEvent; import java.io.File; import java.util.Calendar; import java.util.Date; import java.util.log...
package tlc2.tool.liveness; import java.io.IOException; import tlc2.output.EC; import tlc2.output.MP; import tlc2.output.StatePrinter; import tlc2.tool.Action; import tlc2.tool.EvalException; import tlc2.tool.StateVec; import tlc2.tool.TLCState; import tlc2.tool.TLCStateInfo; import tlc2.tool.Tool; import tlc2.util.FP6...
package asw1013.ui; import asw1013.entity.User; import java.awt.Color; import java.awt.Dimension; import java.awt.Image; import java.net.URL; import javax.swing.GroupLayout; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JList; import ...
package server; import org.restlet.Component; import org.restlet.Server; import org.restlet.data.Protocol; public class Launcher extends Component { public static void main(String[] args) throws Exception { new Launcher().start(); } public Launcher() { Server server = new Server(Protocol.HTT...
package org.hd.d.edh; import java.util.Arrays; import org.hd.d.edh.FUELINST.TrafficLightsInterface; /**Main (command-line) entry-point for the data handler. */ public final class Main { /**Print a summary of command options to stderr. */ public static void printOptions() { System.err.printl...
package org.cache2k.benchmark; import org.junit.After; import com.carrotsearch.junitbenchmarks.AbstractBenchmark; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.cache2k.benchmark.util.AccessTrace; import java.io.FileWriter; import java.io.IOException; import java.io.Prin...
package be.ecam.moneyrain; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Point; import android.widget.TextView; public class Player extends Movable { private boolean pushing = false; private int lives; private int score; public Player(Point screenSize, P...
package com.adjust.sdk; import android.net.Uri; public class AdjustInstance { private String referrer; private long referrerClickTime; private ActivityHandler activityHandler; private static Logger getLogger() { return AdjustFactory.getLogger(); } public void onCreate(AdjustConfig adjust...
import java.net.DatagramSocket; import java.time.Instant; import java.util.UUID; public class Main { private static int deviceId; private static int gradient = 0; // the server is always the sink in the network public static void main(String[] args) { System.out.println("Hello server"); d...
package yuku.alkitab.base.dialog; import android.app.Activity; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.util.Pair; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import and...
package analogsection; import java.awt.LayoutManager; import java.util.ArrayList; import javax.swing.ImageIcon; /** * * @author Stephen */ public class InformationGUIAllSections extends javax.swing.JPanel { /** * Creates new form HangmanGUIPanel */ // variables Information analogInfo; Infor...
package net.somethingdreadful.MAL.tasks; import android.app.Activity; import android.content.Context; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import com.crashlytics.android.Crashlytics; import net.somethingdreadful.MAL.ContentManager; import net.somethingdreadful.MAL.R; import ne...
package de.htwg.battleship.aview.gui; import de.htwg.battleship.controller.IMasterController; import de.htwg.battleship.model.IPlayer; import de.htwg.battleship.model.IShip; import de.htwg.battleship.observer.IObserver; import static de.htwg.battleship.util.StatCollection.createMap; import static de.htwg.battleship.uti...
package org.voovan.tools.cache; import org.voovan.Global; import org.voovan.tools.CollectionSearch; import org.voovan.tools.TEnv; import org.voovan.tools.hashwheeltimer.HashWheelTask; import org.voovan.tools.hashwheeltimer.HashWheelTimer; import org.voovan.tools.json.annotation.NotJSON; import org.voovan.tools.log.Logg...
package org.voovan.tools.collection; import org.rocksdb.*; import org.voovan.Global; import org.voovan.tools.TByte; import org.voovan.tools.TFile; import org.voovan.tools.Varint; import org.voovan.tools.exception.ParseException; import org.voovan.tools.exception.RocksMapException; import org.voovan.tools.log.Logger; im...
package org.voovan.tools.collection; import org.rocksdb.*; import org.voovan.Global; import org.voovan.tools.TByte; import org.voovan.tools.TFile; import org.voovan.tools.Varint; import org.voovan.tools.exception.ParseException; import org.voovan.tools.exception.RocksMapException; import org.voovan.tools.log.Logger; im...
package spacefront; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Shape; import java.awt.geom.AffineTransform; import java.awt.geom.Ellipse2D; import java.util.Set; public class Shot extends SpaceObject { private static final long serialVersionUID = 1L; /* Appearance */ private static f...
package io.spine.base; import com.google.protobuf.DescriptorProtos.DescriptorProto; import com.google.protobuf.Descriptors.Descriptor; import com.google.protobuf.Descriptors.FieldDescriptor; import com.google.protobuf.Message; import io.spine.protobuf.Messages; import java.util.List; import java.util.UUID; import stati...
package com.chiorichan.util; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.channels.FileChannel; import com.chiorichan.Loader; import com.chiorichan.framework.Site; /** ...
public class Node <T> { public Node <T> next; public T element; public Node (T t) { this.element = t; } } /** * EPI: 8.3 * Given a linked list: * return true if a cycle exists. * return false otherwise */ public boolean hasCycle(Node node) { Node fast = node; Node slow = node; while (fast.next !=...
package datafu.test.pig.sampling; import java.io.IOException; import java.util.HashSet; import java.util.Set; import junit.framework.Assert; import org.adrianwalker.multilinestring.Multiline; import org.apache.pig.backend.executionengine.ExecException; import org.apache.pig.data.BagFactory; import org.apache.pig.data.D...
package rr.meta; import java.util.HashSet; import java.util.Set; import java.util.Vector; import acme.util.Assert; import acme.util.Util; public class ClassInfo extends MetaDataInfo implements Comparable<ClassInfo> { public static enum State { FRESH, IN_PRELOAD, PRELOADED, COMPLETE } protected State state; ...
package smp; /** * Index values for the Hashtable in the ImageLoader class. * When other objects need to access their respective images, * use these keys to get the BufferedImage references. * @author RehdBlob * @since 2012.08.14 */ public enum ImageIndex { // SPLASHSCREEN, /* * Instruments grayed ou...
/** * A (non-adaptive) 4th-order Runge-Kutta integrator. */ public class RK4 extends OdeInt { public RK4(String system, double dt, double t0, double X0[]) { super(system, dt, t0, X0); } private void step() { int i; double[] XInc = new double[X.length]; double[] XStep = new ...
package org.wikipathways; import java.io.IOException; import java.rmi.RemoteException; import java.util.Date; import java.util.HashSet; import java.util.Set; import java.util.Timer; import java.util.TimerTask; import javax.xml.rpc.ServiceException; import org.jibble.pircbot.IrcException; import org.jibble.pircbot.PircB...
package cn.cerc.mis.core; import cn.cerc.core.IHandle; import cn.cerc.db.core.IAppConfig; import cn.cerc.db.core.ServerConfig; import cn.cerc.mis.client.IServiceProxy; import cn.cerc.mis.client.ServiceFactory; import cn.cerc.mis.config.AppStaticFileDefault; import cn.cerc.mis.config.ApplicationConfig; import cn.cerc.mi...
package org.srplib.support; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; /** * @author Q-APE */ public class BeanBuilder { public static final String BUILD_METHOD = "build"; public static <T, B extends Builder<T>> B create(T object, Class<B> buil...
package soot; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.ConcurrentModificationException; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import soot.jimple.SpecialInvokeExpr; import soot....
package soot.coffi; import soot.options.*; import java.lang.*; import java.util.*; import soot.*; import soot.jimple.*; import soot.baf.*; import soot.util.*; import soot.tagkit.*; /** A Control Flow Graph. * @author Clark Verbrugge */ public class CFG { /** Method for which this is a control flow graph. * @...
package ons.solubility.rdf; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory; import com.hp.hpl.jena.rdf.model.Property; import com.hp.hpl.jena.rdf.model.Resource; public class BO { private static Model model = ModelFactory.createDefaultModel(); public static final String NS...
package nl.mpi.arbil; import java.awt.BorderLayout; import nl.mpi.arbil.ui.menu.ArbilMenuBar; import nl.mpi.arbil.util.ApplicationVersionManager; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import...
package com.nicoletfear.Robot2015; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.livewindow.LiveWindow; import edu.wpi.first.wpilibj.CANTalon; import java.util.Vector; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility cha...
package example; //-*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: //@homepage@ import java.awt.*; import java.awt.event.*; import java.nio.charset.*; //import java.util.Objects; //import java.util.regex.*; import javax.swing.*; import javax.swing.text.*; public final class MainPanel extends JPanel { ...
package ifc.container; import com.sun.star.uno.XInterface; import lib.MultiMethodTest; import com.sun.star.container.XIndexAccess; import com.sun.star.lang.IndexOutOfBoundsException; import com.sun.star.lang.WrappedTargetException; /** * Testing <code>com.sun.star.container.XIndexAccess</code> * interface methods : * <...
package org.kaazing.test.util; import static java.util.concurrent.TimeUnit.SECONDS; import java.util.concurrent.TimeUnit; import org.junit.rules.DisableOnDebug; import org.junit.rules.RuleChain; import org.junit.rules.TestRule; import org.junit.rules.Timeout; import org.kaazing.k3po.junit.rules.K3poRule; public final c...
package start; import model.Proof; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.HashMap; public class ExportLatex { private static final HashMap<Character, String> unicodeToLaTeX; static { unicodeToLaTeX = new HashMap<Character, String>(); ...
package org.jgrapes.net; import java.io.IOException; import java.net.SocketAddress; import java.net.SocketException; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.util.ArrayDeque; import java.util.Hash...
package com.gallatinsystems.surveyal.dao; import com.gallatinsystems.common.Constants; import com.gallatinsystems.survey.dao.QuestionDao; import com.gallatinsystems.survey.dao.QuestionGroupDao; import com.gallatinsystems.survey.dao.SurveyDAO; import com.gallatinsystems.survey.dao.SurveyGroupDAO; import com.gallatinsyst...
package de.uka.ipd.sdq.beagle.gui; import de.uka.ipd.sdq.beagle.core.facade.BeagleConfiguration; import de.uka.ipd.sdq.beagle.core.facade.BeagleController; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.jface.dialogs....
package layout; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import com.example.miss.temp.R; import java...
package cx2x.decompiler; import org.w3c.dom.Document; import org.xml.sax.SAXException; import xcodeml.util.*; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import java.io.*; /** * Wrapper class to call the Fortran decom...
package info.xiaomo.redis; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.cache.CacheManager; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Bean; import org.sp...
// Main Game Panel package ui; import javax.swing.SwingConstants; import javax.swing.JPanel; import javax.swing.JLabel; import javafx.scene.media.AudioClip; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.awt.event.MouseEvent; import input.Mouse; i...
package com.dwarfartisan.parsec; import java.io.EOFException; public class Between<T, E, O, C> implements Parsec<T, E> { private Parsec<O, E> open; private Parsec<C, E> close; private Parsec<T, E> parsec; @Override public T parse(State<E> s) throws EOFException, ParsecException { open.parse(...
package org.osmdroid.util; import java.io.Serializable; import org.osmdroid.api.IGeoPoint; import org.osmdroid.util.constants.GeoConstants; import org.osmdroid.views.util.constants.MathConstants; import android.location.Location; import android.os.Parcel; import android.os.Parcelable; /** * * @author Nicolas Gramlich...
package com.example.ex_templete; import java.util.ArrayList; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.Menu; import android.view.View...
package org.neo4j.helpers; /** * Utility to handle pairs of objects. */ public final class Pair<T1, T2> { private final T1 first; private final T2 other; public Pair( T1 first, T2 other ) { this.first = first; this.other = other; } public T1 first() { return first; ...
// RMG - Reaction Mechanism Generator // RMG Team (rmg_dev@mit.edu) // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // and/or sell copies of the Software, and to permit persons to whom the // Sof...
package org.vinodkd.jnv; import javax.swing.*; import javax.swing.event.*; import javax.swing.text.*; import java.awt.*; import java.awt.event.*; import java.util.HashMap; import java.util.List; class JNV{ public static void main(String[] args) { JNV jnv = new JNV(); Models logicalModels = jnv.c...
package com.namelessmc.spigot; import java.util.Arrays; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Statistic; import org.bukkit.entity.Player; import org.bukkit.scheduler.BukkitRunnable; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.JsonPrimitiv...
package com.huettermann.all; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Message extends HttpServlet { private String userName; // As this field is shared by all users, it's obvious that this piece of information should be managed differently public void doGet(HttpServle...
package com.eegeo.location; import java.util.ArrayDeque; import android.app.Activity; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.view.Surface; import android.view....
package com.eegeo.navwidget; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.location.Location; import android.view.LayoutInflater; import android.view.View; import android.view.ViewPropertyAnimator; import android.view.WindowManager; import android...
package VASSAL.build.module; import VASSAL.tools.ProblemDialog; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.awt.event.KeyEvent; import java.io.IOException; import javax.swin...
package gradlebuild; import com.google.common.collect.ImmutableList; import groovy.util.Node; import org.gradle.api.Action; import org.gradle.api.Plugin; import org.gradle.api.Project; import org.gradle.api.Task; import org.gradle.api.artifacts.DependencySubstitutions; import org.gradle.api.artifacts.component.Componen...
package com.runescape.api; import com.runescape.api.bestiary.Bestiary; import com.runescape.api.ge.GrandExchange; import com.runescape.api.hiscores.Hiscores; /** * Represents an instance of the RuneScape web-services API. */ public final class RuneScapeAPI { /** * Creates a new {@link RuneScapeAPI} backed by...
package org.jfree.chart.util; /** * A utility class for checking parameters. * * @since 1.0.14 */ public class ParamChecks { public static void nullNotPermitted(Object param, String name) { if (param == null) { throw new IllegalArgumentException("Null '" + name + "' argument"); } ...
package jolie.net; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.nio.channels.ClosedChannelException; import java.nio.channels.SelectableChannel; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.util.Collection; import java.util.Has...
/** * Package for calculate task. * * @author Danila Barkov (mailto:danila.barkov@gmail.com) * @version $Id$ * @since 0.1 */ package ru.job4j; /** * Class. * @throws Calculate */ public class Calculate { /** * Main. * @param args - args */ public static void main(String[] args) { System.out....
package ru.job4j; /** * Class +, -, /, *, ^ . * @author akulikov * @since 24.04.2017 * @version 1 */ public class Calculate { /** * , , * "Hello world!" * @param args - . */ public static void main(String[] args) { System.out.println("Hello world!"); } }
// This file is part of OpenTSDB. // This program is free software: you can redistribute it and/or modify it // option) any later version. This program is distributed in the hope that it // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser package net.opentsdb.utils; import java.io.FileInputS...
package net.squanchy; import android.app.Activity; import android.app.Notification; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.widget.Button; import java.util.ArrayList; import java.util.List; import java.util.Random; import net.squanchy.eventdetails.domain.vi...
package com.gh4a.widget; import android.content.Context; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; import android.os.Parcelable; import android.support.annotation.ColorInt; import android.support.annotation.IdRes; import android.support.annotation.LayoutRes; import android.support.a...
package net.maxbraun.mirror; import android.content.Context; import android.graphics.drawable.Drawable; import android.text.TextUtils; import android.util.Log; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import net.maxbraun.mirror.Commute.CommuteSummary; import java.io.Unsuppor...
package net.maxbraun.mirror; import android.content.Context; import android.graphics.drawable.Drawable; import android.text.TextUtils; import android.util.Log; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import net.maxbraun.mirror.Commute.CommuteSummary; import java.io.Unsuppor...
package jcavern; import java.awt.event.*; import java.awt.*; import java.util.Enumeration; public class KeyboardCommandListener extends KeyAdapter { /** * A model of the game world */ private World mWorld; /** * The representation of the player */ private Player mPlayer; ...
package encoder; import java.io.File; import checker.SemanticException; import util.Arquivo; import util.AST.*; import util.AST.Number; public class Encoder implements Visitor { int contadorIf = 1, contadorElse = 1, contadorTest = 1, contadorWhile = 1; int contadorDesvioCondicional = 1; int nextInstr = 0; ...
// $OldId: ExpandMixins.java,v 1.24 2002/11/11 16:08:50 schinz Exp $ package scalac.transformer; import java.util.Arrays; import java.util.Map; import java.util.HashMap; import java.util.Set; import java.util.HashSet; import java.util.LinkedList; import java.util.Iterator; import scalac.Global; import scalac.ast.Tree; ...
package me.openphoto.android.app; import java.util.Date; import java.util.HashMap; import java.util.Map; import me.openphoto.android.app.model.Photo; import me.openphoto.android.app.net.IOpenPhotoApi; import me.openphoto.android.app.net.Paging; import me.openphoto.android.app.net.PhotosResponse; import me.openphoto.and...
package com.android.utility; import android.Manifest; import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Environment; import android.pre...
package io.spacedog.rest; import java.io.File; import java.io.IOException; import java.util.List; import java.util.Map; import java.util.Map.Entry; import com.fasterxml.jackson.databind.JsonNode; import com.google.common.collect.Maps; import com.google.common.io.Files; import com.google.common.primitives.Ints; import i...
package uk.ac.ebi.phis.service; import java.io.IOException; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrServerException; import org.apac...
package com.facebook.systrace; import android.os.Build; import android.os.Trace; /** * Systrace stub that mostly does nothing but delegates to Trace for beginning/ending sections. * The internal version of this file has not been opensourced yet. */ public class Systrace { public static final long TRACE_TAG_REACT_J...
package com.vondear.rxtools; import android.content.Context; import android.os.Handler; import android.text.InputFilter; import android.text.InputType; import android.text.Spanned; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.ListAdapter; import android....
import java.util.*; public class RepairDroid { public static final String INITIAL_INPUT = Integer.toString(DroidMovement.NORTH); private static final int EXPLORE_UNTIL_OXYGEN = 1; private static final int EXPLORE_ENTIRE_MAZE = 2; public RepairDroid (Vector<String> instructions, boolean debug) { ...
import java.math.*; public class SlamShuffle { public static final String DATA_FILE = "data.txt"; public static final BigInteger SIZE_OF_DECK = BigInteger.valueOf(119315717514047L);; public static final BigInteger SHUFFLE_TIMES = BigInteger.valueOf(101741582076661L); public static final int CARD = 2020;...
import java.util.*; public class ReportRepair { public static final int TOTAL_TO_FIND = 2020; public static final String DATA_FILE = "input.txt"; public static void main (String[] args) { int number = TOTAL_TO_FIND; boolean verify = false; boolean debug = false; for (int ...
package jlibs.xml.sax.helpers; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; import org.xml.sax.InputSource; import org.xml.sax.helpers.XMLFilterImpl; import org.xml.sax.helpers.DefaultHandler; import java.io.IOException; import jlibs.xml.sax.SAXUtil; import javax.xml.par...
import java.sql.Array; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Arrays; import java.util.HashSet; import java.util.Iterator; import java.util.logging.Level; import ja...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ package org.usfirst.frc4946; import edu.wpi.first.wpilibj.DriverStationLCD; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.PWM; import ed...
package tests; import static org.junit.Assert.assertEquals; import model.TurboIssue; import org.junit.Test; import stubs.ModelStub; import filter.Parser; import filter.expression.Qualifier; public class EvalTests { private final ModelStub model = new ModelStub(); @Test public void id() { TurboIssue ...
package util; import java.lang.ref.WeakReference; import java.util.List; import java.util.Timer; import java.util.TimerTask; import javafx.application.Platform; import org.eclipse.egit.github.core.Issue; import model.Model; public class ModelUpdater { private Model model; private IssueUpdateService issueUpdateS...