answer
stringlengths
17
10.2M
import ij.*; import ij.gui.*; import ij.process.*; import ij.plugin.filter.*; import ij.plugin.frame.*; import java.awt.*; import java.awt.event.*; public class Cell_Segmentation extends PlugInFrame { // Constant public final int WINDOW_WIDTH = 300; public final int WINDOW_HEIGHT = 280; // Internal public sta...
package org.chromium.debug.ui.actions; import org.chromium.debug.core.model.DebugTargetImpl; import org.chromium.debug.core.model.RunningTargetData; import org.chromium.debug.core.model.Value; import org.chromium.debug.core.model.Variable; import org.chromium.debug.core.model.VmResourceId; import org.chromium.debug.cor...
// this needs to be modified to work with the new java 7 date class package tap.sample; import tap.*; import quantbench.Candle; public class Subscribe { // Usage: hadoop jar yourjar.jar -s 2011-01-03 10:40:00.000 -e 2011-01-03 10:50:00.000 public static main(String[] args) throws Exception { CommandOpti...
//FILE: MMAcquisitionEngineMT.java //PROJECT: Micro-Manager //SUBSYSTEM: mmstudio // This file is distributed in the hope that it will be useful, // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, //...
package org.yakindu.sct.domain.extension; import java.net.URL; import java.util.List; import java.util.NoSuchElementException; import org.eclipse.core.runtime.Assert; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.Platform; import or...
package com.matthewtamlin.spyglass.processors.grouper; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import javax.lang.model.element.Element; import javax.lang.model.element.TypeElement; import static com.matthewtamlin.java_utilities.checkers.NullChecker.checkEachElemen...
package com.opengamma.engine.view.calcnode; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.util.ArrayList; import java.util.Collection; impor...
package net.finmath.experiments.concurrency; import java.util.concurrent.Semaphore; import java.util.stream.IntStream; public class ForkJoinPoolTest { public static void main(String[] args) { // Any combination of the booleans works, except (true,true) final boolean isUseSemaphore = true; ...
// modification, are permitted provided that the following conditions are met: // documentation and/or other materials provided with the distribution. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // CONTRIBU...
package ru.thewizardplusplus.wizardbudget; import java.io.*; import java.util.*; import java.text.*; import org.xmlpull.v1.*; import android.content.*; import android.webkit.*; import android.database.sqlite.*; import android.database.*; import android.os.*; import android.util.*; public class BackupManager { publi...
package net.finmath.montecarlo.interestrate; import java.util.ArrayList; import java.util.Map; import net.finmath.exception.CalculationException; import net.finmath.functions.AnalyticFormulas; import net.finmath.marketdata.AbstractSwaptionMarketData; import net.finmath.marketdata.model.AnalyticModelInterface; import ne...
package org.purl.wf4ever.provtaverna.owl; import java.io.InputStream; import java.net.URI; import java.util.Calendar; import com.hp.hpl.jena.ontology.DatatypeProperty; import com.hp.hpl.jena.ontology.Individual; import com.hp.hpl.jena.ontology.ObjectProperty; import com.hp.hpl.jena.ontology.OntClass; import com.hp.hpl....
package net.java.sip.communicator.impl.protocol.irc; import java.io.*; import java.util.*; import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicator.service.protocol.event.*; import net.java.sip.communicator.util.*; import org.jibble.pircbot.*; /** * An implementation of the PircBot IRC sta...
package com.ecyrd.jspwiki.search; import java.io.*; import java.util.*; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.document.Document; import org.apache.lucene.document.Fie...
// ZAP: 2011/10/01 Fixed filename problem (issue 161) // ZAP: 2012/01/24 Changed outer XML (issue 268) c/o Alla // ZAP: 2012/03/15 Changed the methods getAlertXML and generate to use the class // StringBuilder instead of StringBuffer. // ZAP: 2012/04/25 Added @Override annotation to all appropriate methods. // ZAP: 201...
package net.acomputerdog.TerrainEdit.main; import net.acomputerdog.BlazeLoader.api.command.ApiCommand; import net.acomputerdog.BlazeLoader.main.Version; import net.acomputerdog.BlazeLoader.mod.Mod; import net.acomputerdog.BlazeLoader.util.logger.BLLogger; /** * Base mod class for TerrainEdit. Registers CommandTE. */...
package org.eddy.pipeline; import org.eddy.solve.CaptchaNotify; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Objects; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; public class Pipeline { private static ...
package com.gracecode.android.rain.player; import android.animation.AnimatorSet; import android.animation.ValueAnimator; import android.annotation.TargetApi; import android.content.Context; import android.media.AudioAttributes; import android.media.AudioManager; import android.media.SoundPool; import android.os.Build; ...
package org.teachingkidsprogramming.section08tdd; public class FizzBuzzTDD { //for the whole numbers from 1 to 100, print either that number, or, //if that number is evenly divisible by 3, then print the word 'Fizz', //if that number is evenly divisible by 5, then print the word 'Buzz', //if that number is even...
package com.robrua.orianna.type.core.common; import java.util.HashMap; import java.util.Map; public enum QueueType { ARAM_5x5(65), ASCENSION_5x5(96), BILGEWATER_5x5(313), BILGEWATER_ARAM_5x5(100), BOT_5x5(7), BOT_5x5_BEGINNER(32), BOT_5x5_INTERMEDIATE(33), BOT_5x5_INTRO( 31), BOT_ODIN_5x5(25), BOT_TT_3x...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.teamupnext.robot.commands; import com.teamupnext.robot.RobotMap; import edu.wpi.first.wpilibj.command.CommandGroup; /** * * @author TeamUpNextControls */ public class Autonomous7Disc extends CommandGroup i...
package com.xruby.runtime.builtin; import antlr.RecognitionException; import antlr.TokenStreamException; import com.xruby.runtime.lang.*; import com.xruby.compiler.*; import com.xruby.compiler.codegen.*; import com.xruby.runtime.value.*; import com.xruby.runtime.javasupport.JavaClass; import java.io.*; import java.util...
public class BubbleSort { public static void main(String[] args) { int temp = 0; boolean flag = true; //populate array int[] nums = new int[10]; for (int i = 0; i < nums.length; i++) { nums[i] = ((int)(Math.random() * 20)); System.out.print("[" + nums[...
/** * Airplane Airlines simulator * @author Addison Chan, Kyle Bascomb * @version 11/04/16 */ import java.util.Scanner; import java.util.ArrayList; public class AirlineCompany { private static Airplane airplane; private static ArrayList<Passenger> passengers; public static void main (String [] args){ ...
package comments.user; import static com.dyuproject.protostuffdb.EntityMetadata.ZERO_KEY; import static com.dyuproject.protostuffdb.SerializedValueUtil.asInt64; import static com.dyuproject.protostuffdb.SerializedValueUtil.readByteArrayOffsetWithTypeAsSize; import java.io.IOException; import java.util.Arrays; import co...
import java.util.*; public class SingleNumber{ public static int singleNumber(int[] nums){ if(nums == null){ return 0; } HashSet<Integer> set = new HashSet<>(); int sum = 0; for(int i = 0;i < nums.length;i++){ if(!set.add(nums[i])){ sum -= nums[i]; }else{ sum += n...
package settings; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.math.BigDecimal; import java.net.InetAddress; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simp...
package me.exphc.StackControl; import java.util.Collections; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.UUID; import java.util.Iterator; import java.util.logging.Logger; import java.util.concurrent.ConcurrentHashMap; import java.util.Formatter; im...
package io.aeron; import java.util.ArrayList; public abstract class ArrayListUtil { private ArrayListUtil() { } /** * Removes element at i, but instead of copying all elements to the left, moves into the same slot the last * element. If i is the last element it is just removed. This avoids the...
import java.awt.AlphaComposite; import java.awt.Checkbox; import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.Desktop; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.RenderingHints; import java.awt.TextArea; import...
package com.sometrik.framework; import java.net.MalformedURLException; import java.net.URL; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; import com.example.android.trivialdrivesample.util.IabHelper; import com.example.android.trivialdrivesample.util.IabResult; import com.example.a...
package com.meedan; import android.app.Activity; import java.util.*; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.JavaScriptModule; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.ViewManager; import...
package main.swapship.android; import android.os.Bundle; import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; import main.swapship.SwapShipGame; public class AndroidLauncher extends AndroidApplication { @Override protected void on...
package ch.heig.amt.g4mify.test; import ch.heig.amt.g4mify.Utils.HttpTestRequest; import ch.heig.amt.g4mify.Utils.TestResponse; import ch.heig.amt.g4mify.model.Badge; import ch.heig.amt.g4mify.model.Counter; import ch.heig.amt.g4mify.model.Domain; import ch.heig.amt.g4mify.model.User; import com.google.gson.Gson; impor...
package uk.ac.ebi.quickgo.rest.search; import uk.ac.ebi.quickgo.rest.search.query.AggregateRequest; import uk.ac.ebi.quickgo.rest.search.query.QueryRequest; import uk.ac.ebi.quickgo.rest.search.query.QuickGOQuery; import com.google.common.base.Preconditions; import java.util.*; import static uk.ac.ebi.quickgo.rest.sear...
package oap.testng; import com.google.common.base.Throwables; import lombok.val; import oap.testng.casesuite.CaseContext; import oap.util.Stream; import org.testng.ITestContext; import org.testng.ITestListener; import org.testng.ITestResult; import java.util.stream.Collectors; public class TestListener implements ITest...
// This file is part of Serleena. // Nicola Mometto, Filippo Sestini, Tobia Tesan, Sebastiano Valle. // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // sell copies of the Software, and to permit persons to whom t...
package se.kth.nada.kmr.collaborilla.ldap; import se.kth.nada.kmr.collaborilla.client.CollaborillaDataSet; import com.novell.ldap.LDAPConnection; import com.novell.ldap.LDAPException; /** * Provides methods to directly access and manipulate entries and fields needed * to allow collaboration in the concept browser "Co...
package at.ac.tuwien.kr.alpha.common; import at.ac.tuwien.kr.alpha.common.terms.ConstantTerm; import at.ac.tuwien.kr.alpha.common.terms.FunctionTerm; import at.ac.tuwien.kr.alpha.common.terms.Term; import at.ac.tuwien.kr.alpha.common.terms.VariableTerm; import org.junit.Assert; import org.junit.Test; import java.util.L...
package cz.crcs.ectester.reader.output; import cz.crcs.ectester.common.util.CardUtil; import cz.crcs.ectester.reader.response.Response; import java.io.PrintStream; /** * @author Jan Jancar johny@neuromancer.sk */ public class ResponseWriter { private PrintStream output; public ResponseWriter(PrintStream outpu...
package com.akiban.server.test.it.qp; import com.akiban.qp.exec.UpdatePlannable; import com.akiban.qp.exec.UpdateResult; import com.akiban.qp.operator.Bindings; import com.akiban.qp.operator.Cursor; import com.akiban.qp.operator.Operator; import com.akiban.qp.operator.UpdateFunction; import com.akiban.qp.row.Overlaying...
package com.intel.gkl.pairhmm; import com.intel.gkl.IntelGKLUtils; import com.intel.gkl.pairhmm.IntelPairHmm; import org.broadinstitute.gatk.nativebindings.pairhmm.HaplotypeDataHolder; import org.broadinstitute.gatk.nativebindings.pairhmm.PairHMMNativeArguments; import org.broadinstitute.gatk.nativebindings.pairhmm.Pai...
package com.jcabi.aspects.aj; import com.jcabi.aspects.Parallel; import com.jcabi.aspects.Tv; import java.util.concurrent.atomic.AtomicInteger; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; /** * Tests for {@link Parallelizer}. * * @author Krzysztof Krason (Krzysztof.Krason@...
package com.jcabi.github; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Assume; import org.junit.Test; public final class RtGistCommentsITCase { /** * RtGistComments can create a comment. * @throws Exception if some problem inside */ @Test public void creat...
package com.jcabi.w3c; import com.jcabi.http.mock.MkAnswer; import com.jcabi.http.mock.MkContainer; import com.jcabi.http.mock.MkGrizzlyContainer; import java.io.IOException; import java.net.HttpURLConnection; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import org.apache.commons.lang3.Strin...
package com.wizzardo.http; import com.wizzardo.tools.io.FileTools; import org.junit.Assert; import org.junit.Test; import java.io.File; import java.io.IOException; public class FileTreeHandlerTest extends ServerTest { File testDir; @Override public void setUp() throws NoSuchMethodException, ClassNotFoundExc...
package edu.mayo.ve.VCFParser; import com.google.gson.Gson; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.mongodb.*; import com.mongodb.util.JSON; import com.tinkerpop.pipes.util.Pipeline; import edu.mayo.TypeAhead.TypeAhead; import edu.mayo.concurrency.exceptions.ProcessTerminatedExc...
package net.fortuna.ical4j.model.parameter; import net.fortuna.ical4j.model.Escapable; import net.fortuna.ical4j.model.Parameter; /** * Defines a Time Zone Identifier parameter. * * @author benfortuna */ public class TzId extends Parameter implements Escapable { private static final long serialVersionUID = 2366...
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.basex.test.server; import java.io.*; import java.util.concurrent.*; import org.basex.*; import org.basex.server.*; import org.basex.test.*; import org.basex.util.*; import org.junit.*; public final class AdminStressTest extends SandboxTest { /** Number of clients/events. */ private static final int NUM ...
package org.smap.surveyModel; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.ni...
package se.kth.csc.controller; import org.junit.Test; import org.springframework.http.MediaType; import org.springframework.mock.web.MockHttpSession; import org.springframework.test.annotation.DirtiesContext; import se.kth.csc.config.WebSecurityConfigurationAware; import static org.hamcrest.Matchers.hasSize; import sta...
package com.letscode.lcg.screens; import net.engio.mbassy.listener.Handler; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.EventListener; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.ui.Button; imp...
package Controllers; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.Query; import toolbox.JSONResponse; import toolbox.Sha; import models.User; import flexjson.JSONSerializer; import MVC.Controller; /** * @author Alexander * */ publ...
package edisyn.synth; import edisyn.*; import edisyn.gui.*; import java.awt.*; import java.awt.geom.*; import javax.swing.border.*; import javax.swing.*; import java.awt.event.*; import java.util.*; import java.io.*; import javax.sound.midi.*; public class Blank extends Synth { ////// BELOW ARE DEFAULT IMPLEMEN...
package com.hida.client; import com.hida.util.NotEnoughPermutationsException; import com.hida.util.TokenType; import com.hida.util.Id; import com.hida.util.CustomIdGenerator; import com.hida.util.IdGenerator; import com.hida.util.AutoIdGenerator; import java.sql.Connection; import java.sql.DatabaseMetaData; import java...
package com.akiban.server.test.it.dxl; import com.akiban.ais.model.Group; import com.akiban.ais.model.GroupIndex; import com.akiban.ais.model.Table; import com.akiban.server.error.BranchingGroupIndexException; import com.akiban.server.error.InvalidOperationException; import com.akiban.server.store.IndexKeyVisitor; impo...
package dr.evomodel.continuous; import dr.evolution.tree.MultivariateTraitTree; import dr.evolution.tree.NodeRef; import dr.evolution.tree.Tree; import dr.evomodel.tree.TreeModel; import dr.evomodel.tree.TreeStatistic; import dr.geo.math.SphericalPolarCoordinates; import dr.inference.model.Statistic; import dr.stats.Di...
package com.autonomy.abc.framework; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.IOException; public class Scre...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ package edu.wpi.first.wpilibj.templates; import com.sun.squawk.util.MathUtils; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.Joystick; impor...
package com.github.dnault.bozbar; import com.github.dnault.bozbar.annotation.Default; import com.github.dnault.bozbar.annotation.Remotable; import org.junit.Test; public class BozbarContextTest { @Remotable("foo") public interface FooService { String greet(@Default("stranger") String name); } pu...
package com.manmoe.example.test; import com.manmoe.example.model.PopupPage; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import java.io.IOException; import static org.mockito.Mockito.*; import static org.testng.Assert.*; public class ...
package com.wizzardo.tools.json; import org.junit.Assert; import org.junit.Test; import java.io.UnsupportedEncodingException; public class JsonParseBytesTest { static class TestBinder implements JsonBinder { Object value; @Override public void add(Object value) { this.value = val...
package fr.insee.rmes.api.concepts; import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import org.junit.jupiter.api.Assertions; import or...
package net.rushhourgame.httpclient; import java.io.UnsupportedEncodingException; import java.util.TreeMap; import java.util.logging.Level; import java.util.logging.Logger; import javax.ws.rs.ProcessingException; import javax.ws.rs.core.Response; import net.rushhourgame.RushHourProperties; import net.rushhourgame.RushH...
package org.anc.lapps.stanford; import edu.stanford.nlp.ling.CoreAnnotations; import edu.stanford.nlp.ling.CoreLabel; import edu.stanford.nlp.pipeline.Annotation; import edu.stanford.nlp.pipeline.StanfordCoreNLP; import org.anc.resource.ResourceLoader; import org.junit.*; import java.io.IOException; import java.util.Li...
package org.lifenoodles.jargparse; import junit.framework.TestCase; import org.lifenoodles.jargparse.exceptions.ArgumentCountException; import org.lifenoodles.jargparse.exceptions.BadArgumentException; import org.lifenoodles.jargparse.exceptions.RequiredOptionException; import org.lifenoodles.jargparse.exceptions.Unkno...
package org.apache.commons.lang.time; import java.text.SimpleDateFormat; import java.util.Date; import java.util.GregorianCalendar; import java.util.Locale; import java.util.TimeZone; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.textui.TestRunner; /** * U...
package thredds.util; import org.apache.log4j.*; import org.slf4j.Logger; import ucar.nc2.util.log.LoggerFactory; import ucar.unidata.util.StringUtil2; import java.io.IOException; /** * A LoggerFactory that uses log4j to create and configure a special RollingFileAppender * specific to this name. * used by InvDataset...
import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URI; import java.net.URISyntaxException; import java.nio.channels.NotYetConnectedException; import java.util.Collections; import java.util.LinkedList; import java.util.List; i...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cliente; /** * * @author Me */ public class ClienteApplet extends javax.swing.JApplet { /** * Initializes the applet ClienteApplet */ Cliente cliente; @Override public void init() { ...
package eu.visualize.ini.convnet; import java.util.Arrays; import net.sf.jaer.event.PolarityEvent; /** * Subsamples DVS input ON and OFF events to a desired "frame" resolution. By * subsampling (accumulation) of events it performs much better than * downsampling the sparse DVS output. * * @author tobi */ public c...
package org.voltdb.compilereport; import java.io.IOException; import java.net.URL; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.voltdb.VoltDB; import org.voltdb.VoltType; ...
package gov.nih.nci.calab.service.util; public class CalabConstants { public static final String CSM_APP_NAME = "calab"; public static final String DATE_FORMAT = "MM/dd/yyyy"; public static final String ACCEPT_DATE_FORMAT = "MM/dd/yy"; // Storage element public static final String STORAGE_BOX = "Box...
package gov.nih.nci.calab.ui.workflow; /** * This Action class saves user entered new Run information and the assigned aliquots * into the database. * * @author caLAB Team */ import gov.nih.nci.calab.dto.workflow.RunBean; import gov.nih.nci.calab.service.util.CalabConstants; import gov.nih.nci.calab.service.util.S...
package org.hsqldb_voltpatches; import java.math.BigDecimal; import java.math.BigInteger; import org.hsqldb_voltpatches.lib.HashSet; import org.hsqldb_voltpatches.store.ValuePool; import org.hsqldb_voltpatches.types.DTIType; import org.hsqldb_voltpatches.types.IntervalMonthData; import org.hsqldb_voltpatches.types.Inte...
package com.jaeksoft.searchlib.parser; import java.io.IOException; import java.io.StringWriter; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.TreeMap; import java.util.TreeSet; import org.apache.common...
package org.jdesktop.swingx.painter; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Paint; import java.awt.Rectangle; import java.awt.RenderingHints; import java.awt.Shape; import java.awt.geom.Area; import java.awt.geom.Ellipse2D; import javax.swing.JComponent; /** * <p>A Painter implementation th...
package org.jdesktop.swingx.painter; //import org.jdesktop.swingx.editors.PainterUtil; import org.jdesktop.swingx.painter.effects.AreaEffect; import javax.imageio.ImageIO; import java.awt.*; import java.awt.geom.Area; import java.awt.image.BufferedImage; import java.io.IOException; import java.net.URL; import java.util...
package org.jivesoftware.spark.component; import org.jivesoftware.resource.SparkRes; import org.jivesoftware.spark.SparkManager; import org.jivesoftware.spark.util.GraphicUtils; import java.awt.Color; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import...
package org.jsimpledb.kv.simple; import com.google.common.base.Function; import com.google.common.base.Preconditions; import com.google.common.collect.Iterables; import com.google.common.util.concurrent.ListenableFuture; import java.util.AbstractMap; import java.util.Arrays; import java.util.Collections; import java.ut...
package org.helioviewer.jhv.camera; import java.awt.Point; import org.helioviewer.jhv.base.astronomy.Sun; import org.helioviewer.jhv.base.logging.Log; import org.helioviewer.jhv.base.math.Mat4d; import org.helioviewer.jhv.base.math.Quatd; import org.helioviewer.jhv.base.math.Vec2d; import org.helioviewer.jhv.base.math....
package jnome.core.expression.invocation; import java.util.ArrayList; import java.util.List; import jnome.core.type.JavaTypeReference; import chameleon.core.lookup.LookupException; import chameleon.core.type.DerivedType; import chameleon.core.type.Type; import chameleon.core.type.TypeReference; import chameleon.core.ty...
package flow.token; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; public abstract class Token { public static void main(String[] args) { String toTokenize; toTokenize = "\"hi\""; Token[] tokens = Token.tokenize(toTokenize); System.out.pri...
package com.azizur.geoquiz; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.view.Menu; import android.vi...
package alda; import alda.error.ExitCode; import alda.error.InvalidOptionsException; import alda.error.SystemException; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.Console; import java.io.File; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.io.InputS...
package com.cylexia.mobile.glyde.exe; import android.content.Context; import android.content.DialogInterface; import android.support.v7.app.AlertDialog; import android.util.Log; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.cylexia.mobile.glyde.glue.ExtGlyde; import c...
package com.flashlight.app; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.pm.PackageManager; import android.hardware.Camera; import android.hardware.Camera.Parameters; import android.os.Bundle; import android.u...
package com.github.mobile; import static android.os.Build.VERSION.SDK_INT; import static android.os.Build.VERSION_CODES.FROYO; import android.util.Log; import java.math.BigInteger; import java.net.HttpURLConnection; import java.security.GeneralSecurityException; import java.security.SecureRandom; import java.security.c...
package com.jamieadkins.gwent.data; import android.content.Context; import com.google.firebase.database.Exclude; import com.google.firebase.database.IgnoreExtraProperties; import com.jamieadkins.gwent.R; import java.util.HashMap; import java.util.Map; /** * Class that models what a deck is. */ @IgnoreExtraProperties ...
package com.leer.myoschina; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentV...
package com.wsfmn.view; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Base64; import android.widget.ImageView; public class AddImageActivity extends AppCompatActivity { ...
package com.zsx.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.CheckBox; import android.widget.ImageView; import android.widget.ListAdapter; import android.widget.ListView; imp...
package de.maxmg.mrtd.readerapp; import android.app.Activity; import android.app.PendingIntent; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Bitma...
package ee.ria.DigiDoc.android; import android.content.ActivityNotFoundException; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.os.Bundle; import android.os.Parcel; i...
package im.fdx.v2ex.network; import android.content.Context; import android.graphics.Bitmap; import android.util.LruCache; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.toolbox.ImageLoader; import com.android.volley.toolbox.Volley; import im.fdx.v2ex.MyApplication;...
package it.inaf.android; import android.app.Activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import com.android.volley.NetworkResponse; import com.android.volley.ParseError; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android....
package org.wikipedia.page; import android.content.Intent; import android.content.res.Configuration; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.annotation.VisibleForTestin...
package org.commcare.android.adapters; import java.io.File; import java.util.Hashtable; import java.util.Vector; import org.commcare.android.javarosa.AndroidLogger; import org.commcare.android.models.AndroidSessionWrapper; import org.commcare.android.view.HorizontalMediaView; import org.commcare.android.view.ViewUtil; ...
import java.awt.AlphaComposite; import java.awt.Checkbox; import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.Desktop; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.RenderingHints; import java.awt.TextArea; import...