answer
stringlengths
17
10.2M
package org.lockss.util; import java.io.*; import javax.xml.parsers.*; import org.w3c.dom.*; import org.apache.xml.serialize.*; import org.xml.sax.InputSource; public class XmlDomBuilder { public final static String XML_VERSIONNAME = "version"; final static String ENCODING = "UTF-8"; private static Logger logger ...
package org.myrobotlab.service; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.myrobotlab.framework.Service; import org.myrobotlab.framework.ServiceType; import org.myrobotlab.logging.LoggerFactory; import org.myrobotlab.logging.Logging; import org.myrobotlab.logging.LoggingFacto...
package org.myrobotlab.service; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import org.myrobotlab.framework.Service; import org.myrobotlab.framework.ServiceType; import org.myrobotlab.logging.LoggerFactory; import org.myrobotlab.logging.Logging; import org.myrob...
package org.myrobotlab.service; import org.myrobotlab.framework.Peers; import org.myrobotlab.framework.Service; import org.myrobotlab.framework.Status; import org.myrobotlab.logging.Level; import org.myrobotlab.logging.LoggerFactory; import org.myrobotlab.logging.Logging; import org.myrobotlab.logging.LoggingFactory; i...
package org.ojalgo.access; import java.util.ArrayList; import java.util.List; public interface IndexMapper<T extends Comparable<? super T>> { final class AnyIndex<T extends Comparable<? super T>> implements IndexMapper<T> { private final List<T> myKeys = new ArrayList<>(); AnyIndex() { s...
package org.opencms.relations; import org.opencms.file.CmsObject; import org.opencms.file.CmsRequestContext; import org.opencms.file.CmsResource; import org.opencms.file.CmsResourceFilter; import org.opencms.file.CmsVfsResourceNotFoundException; import org.opencms.file.wrapper.CmsObjectWrapper; import org.opencms.main....
package org.owasp.esapi; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import...
package org.treetank.utils; /** * <h1>IConstants</h1> * * <p> * Interface to hold all constants of the node layer. The node kinds * are equivalent to DOM node kinds for interoperability with saxon. * </p> */ public interface IConstants { /** Major version number of this release. */ public static final int VE...
package paprika.analyzer; import paprika.entities.*; import paprika.metrics.*; import soot.*; import soot.grimp.GrimpBody; import soot.grimp.internal.GLookupSwitchStmt; import soot.jimple.FieldRef; import soot.jimple.toolkits.callgraph.CallGraph; import soot.jimple.toolkits.callgraph.Edge; import soot.options.Options; ...
package petablox.util; import static petablox.util.ExceptionUtil.fail; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintStream; import java.io.PrintWriter; import java.u...
package kg.apc.charting; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Composite; import java.awt.Font; import java.awt.FontMetrics; import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Im...
//FILE: MMStudioMainFrame.java //PROJECT: Micro-Manager //SUBSYSTEM: mmstudio // Modifications by Arthur Edelstein, Nico Stuurman // This file is distributed in the hope that it will be useful, // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // ...
//FILE: MMStudioMainFrame.java //PROJECT: Micro-Manager //SUBSYSTEM: mmstudio // Modifications by Arthur Edelstein, Nico Stuurman, Henry Pinkard // This file is distributed in the hope that it will be useful, // of MERCHANTABILITY or FITNESS FOR A PARTICULAR ...
//FILE: MMStudioMainFrame.java //PROJECT: Micro-Manager //SUBSYSTEM: mmstudio // Modifications by Arthur Edelstein, Nico Stuurman // This file is distributed in the hope that it will be useful, // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // ...
package uk.co.plogic.gwt.lib.map.overlay; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import com.google.gwt.event.shared.HandlerManager; import com.google.gwt.user.client.Timer; import com.google.maps.gwt.client.GoogleMap; import com.google.maps.gwt.client.GoogleMap.BoundsChangedH...
// MemUtil.java package ed.util; import java.util.regex.*; public class MemUtil { /** Value is 1 */ public static final long BIT = 1; /** Value is 1024 */ public static final long KBIT = 1024 * BIT; /** Value is 1024^2 */ public static final long MBIT = 1024 * KBIT; /** Value is 1024^3 */ ...
// WeakBag.java package ed.util; import java.lang.ref.*; import java.util.*; /** if its not obvious what a weak bag should do, then, well... very very not thead safe */ public class WeakBag<T> { public WeakBag(){ } public void add( T t ){ _set.add( new WeakReference<T>( t ) ); } publi...
import sun.misc.Signal; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.Arrays; public class HTTPServer { private final static String[] supportedMethods = {"GET", "POST"}; ...
package com.somethingsimilar.ring_buffer; interface RingBuffer<T> { long add(T obj); T get(long slot); int capacity(); long latestSlot(); }
package core; import application.fxobjects.cell.Cell; import application.fxobjects.cell.Edge; import application.fxobjects.cell.graph.BubbleCell; import application.fxobjects.cell.graph.IndelCell; import application.fxobjects.cell.layout.GraphLayout; import application.fxobjects.cell.tree.LeafCell; import application.f...
package db; import app.SystemUtils; import domain.User; import java.io.File; import java.sql.*; import java.util.ArrayList; import java.util.List; public class DBUtils { private static final String DB_NAME = "fmps.db"; public static final String TABLE_FMPS_MAIN = "fmps_main"; public static final String DLC ...
package dudes; import java.util.ArrayList; public class Dude { String name ; String bff; ArrayList<String> info; ArrayList<String> listodfriends; public Dude(String name,String bff, ArrayList<String> listoffriends,ArrayList<String> info ) { this.name = name; this.bff = bff; t...
package hype; import hype.interfaces.HConstants; import processing.core.PConstants; import processing.core.PGraphics; import hype.interfaces.HColorist; import hype.extended.colorist.HColorPool; import processing.core.PImage; import java.util.ArrayList; public class HPath extends HDrawable { public static final...
package prm4j; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import prm4j.api.Binding; import prm4j.api.Pa...
package edu.wustl.catissuecore.util; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.ResourceBundle; import edu.wustl.catissuecore.query.Operator; import edu.wustl.catissuecore.util.global.Constants; import edu.wustl.catissuecore.vo.HTMLField; import e...
package eu.project.rapid.as; import eu.project.rapid.ac.ResultContainer; import eu.project.rapid.common.Clone; import eu.project.rapid.common.RapidMessages; import eu.project.rapid.common.RapidUtils; import eu.project.rapid.utils.Configuration; import eu.project.rapid.utils.SharedLibDependencyGraph; import eu.project.r...
package com.angrave.finalapp; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.graphics.BitmapF...
package org.zstack.kvm; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.client.RestClientException; import org.springframework.web.util.UriComponentsBuilder; import org.zstack.compute.host.HostBase; import org...
package net.somethingdreadful.MAL; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.ActionBarActivity; import android.text.method.LinkMovementMethod; import android.view.MenuItem; import android.widget.TextView; public class AboutActivity extends ActionBarActivity { @...
package algorithms.imageProcessing; import algorithms.util.PairIntArray; import algorithms.util.PairIntArrayWithColor; import java.util.logging.Logger; /** * * @author nichole */ public class ScaleSpaceCurvature { private Logger log = Logger.getLogger(this.getClass().getName()); /** * compute scale spac...
package filters; // General purpose quotient filter, takes in java Objects as an entry // Approximate Membership Query (AMQ) // import org.apache.hadoop.hbase.util for long to Bytes import java.io.IOException; import java.util.ArrayList; /* Completed lookup. * * DONE: Lookup optimization * - if lookup == true,...
package com.gallatinsystems.common.util; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import net.sf.jsr107cache.Cache; import net.sf.jsr107cache.CacheFactory; import net.sf.jsr107cache.CacheMan...
package polytheque.model.pojos; import java.util.Calendar; /** * Classe permettant de dfinir un adhrent * * @author Godefroi Roussel * */ public class Adherent { private String nom; private String prenom; private int age; private String rue; private int CP; private String ville; private...
package de.measite.smack; import org.jivesoftware.smack.debugger.SmackDebugger; import org.jivesoftware.smack.AbstractConnectionListener; import org.jivesoftware.smack.ConnectionListener; import org.jivesoftware.smack.PacketListener; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.packet.Pac...
// StreamUtil.java package ed.io; import java.io.*; import java.util.*; public class StreamUtil { public static String[] execSafe( String command ){ try { return exec( command ); } catch ( IOException ioe ){ throw new RuntimeException( ioe ); } } publi...
// NIOClient.java package ed.net; import java.io.*; import java.net.*; import java.nio.*; import java.nio.channels.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import ed.io.*; import ed.log.*; import ed.util.*; import ed.net.httpserver.*; import static ed.net.HttpExceptions.*; public abstra...
package global; /** * * @author nick */ public class Data { // software info public static final String APP_NAME = "ATAV (Analysis Tool for Annotated Variants)"; public static String VERSION = "7.0.14"; public static String userName = System.getProperty("user.name"); // atav home path public ...
package global; /** * * @author nick */ public class Data { // software info public static final String AppTitle = "ATAV (Analysis Tool for Annotated Variants)"; public static String version = "beta"; public static final String year = "2016"; public static final String leadDeveloper = "Nick Ren";...
import Entity.URL; import Entity.User; import eu.bitwalker.useragentutils.UserAgent; import spark.ModelAndView; import spark.Session; import spark.template.freemarker.FreeMarkerEngine; import java.sql.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.*; import java.util.Date; import st...
package water; import java.util.*; public abstract class Paxos { private static final boolean DEBUG = Boolean.getBoolean("water.paxos.debug"); public static class State extends Iced { public long _promise; public long _oldProposal; public long _idLo; public long _idHi; public H2ONode[] _members;...
package xml; import java.util.ArrayList; import java.util.Collection; import utility.GenericObservable; import utility.Observable; import utility.Observer; /** * The Element class is used to represent a node in an XML tree. It must have * a tag (name) which identifies it. It may optionally have textual content, * at...
package zmq; import java.nio.ByteBuffer; // Helper base class for decoders that know the amount of data to read // in advance at any moment. Knowing the amount in advance is a property // of the protocol used. 0MQ framing protocol is based size-prefixed // paradigm, which qualifies it to be parsed by this class. //...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platfroms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platfroms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platforms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platfroms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
package com.namelessdev.mpdroid.cover; import de.umass.lastfm.Album; import de.umass.lastfm.ImageSize; public class LastFMCover implements ICoverRetriever { public String[] getCoverUrl(String artist, String album, String path, String filename) throws Exception { String key = "7fb78a81b20bee7cb6e8fad4cbcb369...
// SwingNumberWidget.java package imagej.ext.ui.swing; import imagej.ext.module.ui.NumberWidget; import imagej.ext.module.ui.WidgetModel; import imagej.ext.module.ui.WidgetStyle; import imagej.util.NumberUtils; import java.awt.Adjustable; import java.awt.Dimension; import java.awt.event.AdjustmentEvent; import java.awt...
package org.bonej.ops; import static java.util.stream.DoubleStream.generate; import java.util.Collection; import java.util.Iterator; import net.imagej.ops.Contingent; import net.imagej.ops.Op; import net.imagej.ops.special.function.AbstractUnaryFunctionOp; import org.apache.commons.math3.linear.Array2DRowRealMatrix; im...
package io.vertx.ext.web.handler.sockjs.impl; import io.vertx.core.*; import io.vertx.core.buffer.Buffer; import io.vertx.core.http.HttpServerRequest; import io.vertx.core.impl.VertxInternal; import io.vertx.core.impl.logging.Logger; import io.vertx.core.impl.logging.LoggerFactory; import io.vertx.core.net.SocketAddres...
// L a g V i e w // // Contact author at herve.bitteur@laposte.net to report bugs & suggestions. // package omr.lag; import omr.constant.Constant; import omr.graph.DigraphView; import omr.selection.Selection; import omr.selection.SelectionHint; import omr.ui...
package ru.org.linux.site; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.logging.Logger; import ru.org.linux.util.*; public class CommentView { private static final Logger logger = Logger.getLogger("ru.org.linux"); public String printMessage(Comment comment, ...
import javazoom.jl.player.Player; public class AudioPlayer implements Runnable{ private Player player; //In JLayer (external class) private Thread thread; private boolean loop = false; //If audio is looping private String fileName; private boolean playing = false; //If audio is currently playing ...
package cocu; import cocu.lang.Parser; import cocu.lang.ast.AST; import cocu.lang.ast.ASTVisitor; import javafx.util.Pair; import java.lang.reflect.Array; import java.util.*; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; ...
package av.VRP.rt; import av.VRP.rt.Utils.Utils; import net.sourceforge.chart2d.*; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.table.DefaultTableModel;...
package BU.transactions; public class Rule { final String TYPE = "operation"; String softwareService; String url; public Rule(String softwareService, String url) { this.softwareService = softwareService; this.url = url; } public String toString() { String res = ""; ...
package org.rapidnewsawards.server; import java.io.Serializable; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.ConcurrentModificationException; import java.util.Date; import jav...
package gnu.xquery.lang; import gnu.kawa.lispexpr.*; import gnu.mapping.*; import gnu.lists.*; import gnu.text.*; import gnu.expr.*; import java.util.Vector; /** A class to read xquery forms. */ public class XQParser extends LispReader // should be extends Lexer { int curToken; Object curValue; public static fina...
package com.twu.biblioteca; import com.twu.biblioteca.model.Book; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.util.List; import java.util.stream.Collectors; import static com.twu.biblioteca.enums.ConsoleState.CHECK...
package com.structurizr.example; import com.structurizr.Workspace; import com.structurizr.api.StructurizrClient; import com.structurizr.model.Model; import com.structurizr.model.Tags; import com.structurizr.view.*; public class Shapes { private static final long WORKSPACE_ID = 12541; private static final String...
package com.structurizr.example; import com.structurizr.Workspace; import com.structurizr.api.StructurizrClient; import com.structurizr.model.Model; import com.structurizr.model.Tags; import com.structurizr.view.*; public class Shapes { private static final long WORKSPACE_ID = 12541; private static final String...
package com.ashazar.tabdrawer; import android.app.Activity; import android.content.Context; import android.graphics.Point; import android.graphics.Typeface; import android.view.Display; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import andro...
package wycs.builders; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import static wybs.lang.SyntaxError.*; import static wycs.solver.Solver.SCHEMA; import wyautl.io.PrettyAutomataWriter; imp...
package com.cube.storm; import android.content.Context; import android.net.Uri; import android.support.annotation.NonNull; import com.cube.storm.ui.controller.downloader.StormSchemeHandler; import com.cube.storm.ui.data.ContentSize; import com.cube.storm.ui.lib.factory.FileFactory; import com.cube.storm.ui.lib.factory....
package net.bootsfaces.component; import java.io.IOException; import java.util.List; import java.util.Map; import java.util.Set; import javax.faces.FacesException; import javax.faces.component.UIComponent; import javax.faces.component.behavior.ClientBehavior; import javax.faces.component.behavior.ClientBehaviorContext;...
package org.cloudname.log.logcat; import static org.cloudname.log.pb.Timber.LogEvent; import static org.cloudname.log.pb.Timber.Payload; import org.cloudname.log.format.LogEventFormatter; import org.cloudname.log.format.SingleLineFormatter; import org.cloudname.log.recordstore.RecordReader; import java.io.FileInputStre...
package org.adligo.models.params.client; public class XMLBuilder { public static final String UNIX_LINE_FEED = "\n"; public static final String MAC_LINE_FEED = "\r"; public static final String DOS_LINE_FEED = "\r\n"; public static final String NO_LINE_FEED = ""; public static final String TAB_INDENT...
package com.stripe.android; import android.content.Context; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.test.core.app.ApplicationProvider; import com.stripe.android.exception.AuthenticationException; import com.stripe.android.exception.CardException; import com.stripe.androi...
package gov.niarl.his.privacyca; import gov.niarl.his.webservices.hisPrivacyCAWebService2.IHisPrivacyCAWebService2; import gov.niarl.his.webservices.hisPrivacyCAWebService2.client.HisPrivacyCAWebServices2ClientInvoker; import java.io.*; import java.math.*; import java.net.InetAddress; import java.net.UnknownHostExcepti...
package fr.inria.jessy.store; import static org.junit.Assert.*; import java.io.File; import java.util.Random; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import fr.inria.jessy.EntClass; /** * @author Masoud Saeida Ardekani * */ public class DataStoreTest { DataStore dsPut; D...
package com.github.podd.resources; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.openrdf.OpenRDFException; import org.openrdf.model.Model; import org.openrdf.mo...
/** * * @author Amanda Fisher */ import javax.swing.*; import java.awt.event.*; import java.io.*; /** * The type About button swing version. * */ public class AboutButtonSwingVersion extends JButton implements ActionListener { /** * The Electro 2 d. */ Electro2D electro2D; /** * Instant...
package org.apache.xerces.jaxp; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.DOMImplementation; import org.w3c.dom.DocumentType; import org.xml...
package edu.cornell.mannlib.vitro.webapp.search.lucene; import java.util.Iterator; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.Term; import ...
package com.dmdirc.addons.qauth; import com.dmdirc.ClientModule.GlobalConfig; import com.dmdirc.DMDircMBassador; import com.dmdirc.Invite; import com.dmdirc.config.ConfigBinder; import com.dmdirc.config.ConfigBinding; import com.dmdirc.config.prefs.PluginPreferencesCategory; import com.dmdirc.config.prefs.PreferencesSe...
import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelListener; import java.a...
package afc.ant.modular; import java.io.File; import java.util.HashSet; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.PropertyHelper; import org.apache.tools.ant.types.Path; import org.apache.tools.ant.types.Path.PathElement; import junit.framework.TestCase...
package raptor.connector.bics; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.eclipse.jface.action.Action; import org.ecl...
package battle; import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.function.Predicate; public class SkillBuilder { /** * Stores the name value for producing a Skill object. * @see battle.Skill Skill.name */ private String name; /** * Stores the description v...
package com.bitgirder.mingle; import com.bitgirder.validation.Inputs; import com.bitgirder.validation.State; import com.bitgirder.lang.Lang; import com.bitgirder.lang.NumberFormatOverflowException; import com.bitgirder.lang.NumberFormatUnderflowException; import com.bitgirder.lang.path.ObjectPath; import com.bitgirder....
package ca.cumulonimbus.pressurenetsdk; import java.io.Serializable; import java.util.Random; /** * Basic weather alert information * @author jacob * */ public class CbForecastAlert implements Serializable { private static final long serialVersionUID = -5150523041192341789L; private long alertTime; priv...
package mysql51; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.support.DefaultTransactionDefinition; import fr.argus.socle....
package org.exist.xmldb.test; import java.io.File; import java.io.IOException; import java.util.HashSet; import junit.framework.TestCase; import org.exist.util.XMLFilenameFilter; import org.exist.util.XMLUtil; import org.xmldb.api.*; import org.xmldb.api.base.*; import org.xmldb.api.modules.*; public class CreateCollec...
package chameleon.core.declaration; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Set; import chameleon.core.MetamodelException; import chameleon.core.relation.WeakPartialOrder; /** * A class of objects that select declarations during lookup. * * @author Marko van Doo...
package org.mockitousage.bugs; import org.junit.Test; import org.mockitoutil.TestBase; import static org.mockito.Mockito.*; //see issue 101 public class CovariantOverrideTest extends TestBase { public static interface ReturnsObject { Object callMe(); } public static interface ReturnsString extends R...
package org.exist.xquery.functions.fn; import org.exist.dom.QName; import org.exist.dom.memtree.DocumentBuilderReceiver; import org.exist.dom.memtree.DocumentImpl; import org.exist.dom.memtree.MemTreeBuilder; import org.exist.util.serializer.XQuerySerializer; import org.exist.xquery.*; import org.exist.xquery.util.Seri...
package fm.libre.droid; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedReader; 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....
package org.springframework.aop.framework; import org.aopalliance.intercept.MethodInvocation; import org.springframework.aop.support.DelegatingIntroductionInterceptor; /** * Mixin to provide stateful locking functionality. * Test/demonstration of AOP mixin support rather than a * useful interceptor in its own right....
package us.ihmc.concurrent; import static org.junit.Assert.assertTrue; import java.util.Random; import org.junit.Test; public class ConcurrentRingBufferTest { @Test public void test() { final long iterations = 100000000L; final long writesPerIteration = 1L; final long seed = 89126450L; ...
package org.opencms.ui.apps; import org.opencms.db.CmsUserSettings; import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.file.CmsUser; import org.opencms.file.types.I_CmsResourceType; import org.opencms.json.JSONArray; import org.opencms.json.JSONException; import org.opencms.main....
package org.usfirst.frc178.custom; import edu.wpi.first.wpilibj.*; import java.io.IOException; import org.usfirst.frc178.components.*; import org.usfirst.frc178.devices.*; public class VisionProcessing implements Runnable { private Drivetrain drivetrain; private Shooter shooter; private HumanControl humanCo...
//FILE: MMStudioMainFrame.java //PROJECT: Micro-Manager //SUBSYSTEM: mmstudio // Modifications by Arthur Edelstein, Nico Stuurman, Henry Pinkard // This file is distributed in the hope that it will be useful, // of MERCHANTABILITY or FITNESS FOR A PARTICULAR ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.usfirst.frc2022.commands; import org.usfirst.frc2022.Joysticks.Xbox360; import org.usfirst.frc2022.Utils; /** *The command for using an Arcade drive. */ public class ArcadeCommand extends CommandBase{ /...
package amery.interview; /** * @author ameryhan * @date 2019/9/3 9:34 */ public class PermutationTest { static StringBuilder out = new StringBuilder(); static String in = "xyz"; static boolean[] used = new boolean[in.length()]; public static void main(String[] args) { permutationString(); ...
package com.yhy.widget.core.dialog.status; import android.content.Context; import com.yhy.widget.core.dialog.status.dialog.ErrorDialog; import com.yhy.widget.core.dialog.status.dialog.FailedDialog; import com.yhy.widget.core.dialog.status.dialog.LoadingDialog; import com.yhy.widget.core.dialog.status.dialog.SuccessDial...
package org.ow2.chameleon.wisdom.api.utils; import java.util.Map; import java.util.TreeMap; /** * A list of known mime types. */ public class KnownMimeTypes { public static String getMimeTypeByExtension(String extension) { return extensions.get(extension); } public static final Map<String, String>...
package com.xeiam.xchange.btcchina; import com.xeiam.xchange.BaseExchange; import com.xeiam.xchange.Exchange; import com.xeiam.xchange.ExchangeSpecification; import com.xeiam.xchange.btcchina.service.polling.BTCChinaAccountService; import com.xeiam.xchange.btcchina.service.polling.BTCChinaMarketDataService; import com....
package org.knowm.xchange.coinbene; import java.io.IOException; import org.knowm.xchange.BaseExchange; import org.knowm.xchange.Exchange; import org.knowm.xchange.ExchangeSpecification; import org.knowm.xchange.coinbene.service.CoinbeneAccountService; import org.knowm.xchange.coinbene.service.CoinbeneMarketDataService;...
package org.knowm.xchange.upbit.service; import com.auth0.jwt.JWT; import com.auth0.jwt.JWTCreator; import com.auth0.jwt.algorithms.Algorithm; import com.fasterxml.jackson.databind.ObjectMapper; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; import javax.ws.rs.QueryParam; import java.io.IOExcep...
package com.thoughtworks.xstream.core.util; import junit.framework.TestCase; import java.lang.ref.SoftReference; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; public class ObjectIdDictionaryTest extends TestCase { public void testMapsIdsToObjectReferences() { ...