answer
stringlengths
17
10.2M
package org.jboss.aesh.extensions.ls; import org.jboss.aesh.cl.Arguments; import org.jboss.aesh.cl.CommandDefinition; import org.jboss.aesh.cl.Option; import org.jboss.aesh.console.Config; import org.jboss.aesh.console.command.Command; import org.jboss.aesh.console.command.CommandResult; import org.jboss.aesh.console.c...
package org.lightmare.deploy.fs; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.Path; import java.nio.file.StandardWatchEventKinds; import java...
package org.lightmare.deploy.fs; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.Path; import java.nio.file.StandardWatchEventKinds; import java...
package org.lightmare.utils; import java.io.Closeable; import java.io.IOException; import java.lang.reflect.Array; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; /** * Utility class to help with general object checks * * @author levan * */ public class ObjectUt...
package org.lightmare.utils; import java.io.Closeable; import java.io.IOException; import java.lang.reflect.Array; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; /** * Utility class to help with general object checks * * @author levan * */ public class ObjectUt...
package dr.app.tools; import dr.app.beast.BeastVersion; import dr.app.util.Arguments; import dr.evolution.io.Importer; import dr.evolution.io.NewickImporter; import dr.evolution.io.NexusImporter; import dr.evolution.io.TreeImporter; import dr.evolution.tree.NodeRef; import dr.evolution.tree.Tree; import dr.geo.KMLCoord...
package org.links.objecthash; import java.nio.ByteBuffer; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.TreeSet; import java.util...
package org.mariadb.jdbc; import org.mariadb.jdbc.internal.SQLExceptionMapper; import org.mariadb.jdbc.internal.common.QueryException; import org.mariadb.jdbc.internal.common.Utils; import org.mariadb.jdbc.internal.common.query.MySQLQuery; import org.mariadb.jdbc.internal.common.query.Query; import org.mariadb.jdbc.int...
package com.kierdavis.kmail; import java.util.Arrays; import java.util.Iterator; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class KMailCommandExecutor implements CommandExecutor { private KMail plugin...
package org.minimalj.frontend.form; import java.lang.reflect.Method; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalTime; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import...
package org.mobicents.protocols.asn; /** * * @author amit bhayani * */ public class Tag { /** * Class of tag used with primitives */ public static final int CLASS_UNIVERSAL = 0x0; public static final int CLASS_APPLICATION = 0x1; public static final int CLASS_CONTEXT_SPECIFIC = 0x2; pub...
// $RCSfile: ImportReplay.java,v $ // @version $Revision: 1.18 $ // $Log: ImportReplay.java,v $ // Revision 1.18 2007/06/01 13:46:08 ian.mayo // Improve performance of export text to clipboard // Revision 1.17 2006/08/08 12:55:30 Ian.Mayo // Restructure loading narrative entries (so we can see it from CMAP) // Revi...
package org.narwhal.pool; import org.narwhal.core.DatabaseConnection; import org.narwhal.core.DatabaseInformation; import org.narwhal.query.QueryCreator; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLo...
package org.ndexbio.task; import java.sql.Timestamp; import java.util.Set; import java.util.UUID; import org.ndexbio.common.util.NdexUUIDFactory; import org.ndexbio.model.exceptions.NdexException; import org.ndexbio.model.object.Status; import org.ndexbio.model.object.Task; import org.ndexbio.model.object.TaskType; imp...
package project.v_trainning; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import java.util.Vector; //import android.os.AsyncTask; import android.os.Bundle; import android.os.SystemClock; import android.app.Activity; import android.content.Context; ...
package com4j; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map.Entry; import java.util.NoSuchElementException; /** * Collection of living objects of a {@link ComThread}. This co...
package org.openforis.ceo.users; import static org.openforis.ceo.utils.JsonUtils.findInJsonArray; import static org.openforis.ceo.utils.JsonUtils.intoJsonArray; import static org.openforis.ceo.utils.JsonUtils.parseJson; import static org.openforis.ceo.utils.JsonUtils.toStream; import com.google.api.client.http.GenericU...
package com.vimeo.networking.model.error; import com.google.gson.annotations.SerializedName; import com.vimeo.stag.UseStag; @SuppressWarnings("unused") @UseStag public enum ErrorCode { // The default code that will be returned if the code returned from the server isn't enumerated below // If that is the case, c...
package com.gelvt.gofdp.visitor; public class DirectoryStructureDisplayer implements FileInfoVisitor { private int basePathDepth; public DirectoryStructureDisplayer(int basePathDepth) { this.basePathDepth = basePathDepth; } @Override public void visitFile(RegularFileInfo file) { int ...
package org.voovan.http.message; import org.voovan.http.message.packet.Body; import org.voovan.http.message.packet.Cookie; import org.voovan.http.message.packet.Header; import org.voovan.http.message.packet.ResponseProtocol; import org.voovan.http.server.context.WebContext; import org.voovan.network.IoSession; import o...
package org.takes.facets.fork; import java.util.regex.Pattern; import lombok.EqualsAndHashCode; import lombok.ToString; import org.cactoos.Text; import org.cactoos.text.Lowered; import org.cactoos.text.TextOf; import org.cactoos.text.Trimmed; import org.cactoos.text.UncheckedText; @ToString @EqualsAndHashCode final cla...
package org.project.openbaton.common.vnfm_sdk; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import org.project.openbaton.catalogue.mano.common.Event; import org.project.openbaton.catalogue.mano.common.LifecycleEvent; import org.project.openbaton.catalogue.mano.record.Status; import org.project.openb...
package org.threadly.litesockets; import java.io.Closeable; import java.net.SocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.atomic.AtomicBoolean; import org.threadly.concurrent.SubmitterExecutor; import org...
package org.project.openbaton.common.vnfm_sdk; import org.project.openbaton.catalogue.mano.common.Ip; import org.project.openbaton.catalogue.mano.descriptor.InternalVirtualLink; import org.project.openbaton.catalogue.mano.descriptor.VirtualDeploymentUnit; import org.project.openbaton.catalogue.mano.descriptor.VirtualNe...
package pl.pronux.sokker.model; import java.util.ArrayList; import java.util.List; import pl.pronux.sokker.bean.TrainingSummary; public class Training { final public static int FORMATION_GK = 0; final public static int FORMATION_DEF = 1; final public static int FORMATION_MID = 2; final public static int...
package ptrman.Showcases; import ptrman.Datastructures.Dag; import ptrman.Datastructures.IMap2d; import ptrman.Datastructures.Map2d; import ptrman.Datastructures.Vector2d; import ptrman.Gui.*; import ptrman.bpsolver.BpSolver; import ptrman.bpsolver.Parameters; import ptrman.levels.visual.ColorRgb; import ptrman.levels....
package engine; import java.awt.Point; import java.awt.geom.Point2D; import java.util.ArrayList; /** * * @author bjodet982 */ public class CollisionChecker { public static final double CorrectionPercentage = 0.2, Slop = 0.01; public static boolean intersect(double px, double py, double qx, double qy, double ...
package refinedstorage.tile; import io.netty.buffer.ByteBuf; import net.minecraft.block.Block; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import refinedstorage.RefinedStorageUtils; import refinedstorage.network.MessageMachineConnectedUpdate; impor...
package engine; import engine.Main.MyJPanel; import engine.OptionFrame.MyOptionPanel; import java.awt.Color; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.lang.refl...
package seedu.taskmanager.ui; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane; import javafx.scene.web.WebView; import javafx.stage.Stage; import seedu.taskmanager.commons.core.LogsCenter; import seedu.taskmanager.commons.util.FxViewUtil; import java.util.logging.Logger; /** ...
package tamaized.aov.client; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.vertex.DefaultVertexFormats; import net.minecraft.entity.pla...
package org.cytoscape.welcome.internal.panel; import java.awt.Cursor; import java.awt.Dimension; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import jav...
package tars.logic.commands; /** * Undo an undoable command. * * @@author A0139924W */ public class UndoCommand extends Command { public static final String COMMAND_WORD = "undo"; public static final String MESSAGE_SUCCESS = "Undo successfully."; public static final String MESSAGE_UNSUCCESS = "Undo unsu...
package net.ripe.db.whois.api.whois.rdap; import com.google.common.base.Joiner; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import net.ripe.db.whois.api.whois.rdap.domain.Autnum; import net.ripe.db.whois.api.whois.rdap.domain.Domain; import net.r...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package erp.data; /** * * @author Sergio Flores */ public abstract class SDataConstants { public static final int UNDEFINED = 0; public static final int MOD_CFG = 101000; public static final int MOD_FIN = ...
package net.wigle.wigleandroid; import java.io.File; import java.io.FilenameFilter; import java.util.Arrays; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.co...
package tigase.cluster; import tigase.conf.Configurable; import tigase.disco.ServiceEntity; import tigase.disco.ServiceIdentity; import tigase.disco.XMPPService; import tigase.server.DisableDisco; import tigase.server.Packet; import tigase.server.ServerComponent; import tigase.util.DNSResolver; import tigase.util.Tigas...
/* vim: set et ts=4 sts=4 sw=4 tw=72 : */ package uk.ac.cam.cl.git; import java.util.Arrays; import java.util.List; import java.util.LinkedList; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import jav...
/* * $Id: TestAuConfig.java,v 1.10 2008-07-11 08:21:38 tlipkis Exp $ */ package org.lockss.servlet; import junit.framework.TestCase; import java.io.*; import java.util.*; import org.lockss.util.*; import org.lockss.test.*; import org.lockss.state.*; import org.lockss.plugin.*; import org.lockss.servlet.*; import org....
package org.resteasy; import org.resteasy.spi.ResourceFactory; import org.resteasy.util.IsHttpMethod; import org.resteasy.util.PathHelper; import javax.ws.rs.Path; import javax.ws.rs.core.MediaType; import javax.ws.rs.ext.ProviderFactory; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Has...
package skylight1.sevenwonders; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.CheckBox; public class MenuActivity extends A...
package me.lucko.helper.menu; import com.google.common.base.Preconditions; import me.lucko.helper.Events; import me.lucko.helper.Schedulers; import me.lucko.helper.metadata.Metadata; import me.lucko.helper.metadata.MetadataKey; import me.lucko.helper.metadata.MetadataMap; import me.lucko.helper.terminable.TerminableCon...
package yuku.alkitabconverter.util; import org.junit.Test; import static org.junit.Assert.assertEquals; public class DesktopVerseParserTest { @Test public void testVerseStringToAri() throws Exception { test("John 3:16", "0x2a0310 ."); test("John 3.16", "0x2a0310 ."); test("John 3:16-18",...
package ru.job4j.max; import org.junit.Test; import static org.junit.Assert.assertThat; import static org.hamcrest.core.Is.is; /** * MaxTest. * @author mklimentiev * @version 2.0 * @since 01.04.2017 */ public class MaxTest { /** * Test maxFromTwo. */ @Test public void whenPassFirstAndSecondThen...
package ru.job4j.bank; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Final task collection. */ public class Manage { /** * Private filed. */ private Map<User, List<Account>> dep = new HashMap<User, List<Account>>(); /** * Getter. ...
package org.smoothbuild.cli; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.smoothbuild.util.Strings.unlines; import java.io.ByteArrayOutputStream; import java.i...
import java.io.FileOutputStream; import java.io.IOException; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.Provider; import java.security.PublicKey; import java.security.Security; import java.secu...
import java.awt.*; import java.awt.Dialog.ModalityType; import java.awt.event.*; import java.io.*; import javax.swing.*; import javax.swing.border.TitledBorder; public class GoL extends JFrame{ JPanel p1 = new JPanel(new BorderLayout()); JPanel p2 = new JPanel(new GridLayout(32,32));//Table Panel //JPanel p3 = new JPan...
package kryptografia; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintWriter; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import javax.imageio.Image...
package outbackcdx; import org.junit.*; import org.junit.rules.TemporaryFolder; import outbackcdx.auth.Permit; import java.io.*; import java.nio.charset.Charset; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import static org.junit.Assert.assertEquals; import st...
package kryptografia; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintWriter; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import javax.imageio.Image...
package com.ayvytr.easyandroid.tools.withcontext; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.support.annotation.ArrayRes; import android.support.annotation.ColorRes; import android.support.annotation.DimenRes; import android....
package org.exist.dom; import org.junit.AfterClass; import org.junit.BeforeClass; import org.exist.EXistException; import org.exist.collections.Collection; import org.exist.collections.IndexInfo; import org.exist.collections.CollectionConfigurationManager; import org.exist.security.SecurityManager; import org.exist.sec...
package fi.harism.curl; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import java.util.Vector; import javax.microedition.khronos.opengles.GL10; import android.graphics.Bitmap; import android.graphics.PointF; import android.graphics.RectF; import android.opengl.GLUtils; /** * Class...
package fi.harism.curl; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import javax.microedition.khronos.opengles.GL10; import android.graphics.Bitmap; import android.graphics.PointF; import android.graphics.RectF; import android.opengl.GLUtils; import android.util.Log; /** * Class...
package foam.dao.pg; import foam.core.ClassInfo; import foam.core.FObject; import foam.core.PropertyInfo; import foam.core.X; import foam.dao.AbstractDAO; import foam.dao.ListSink; import foam.dao.Sink; import foam.mlang.order.Comparator; import foam.mlang.predicate.Predicate; import java.sql.*; import java.util.Iterat...
package foam.dao.pg; import foam.core.ClassInfo; import foam.core.FObject; import foam.core.PropertyInfo; import foam.core.X; import foam.dao.AbstractDAO; import foam.dao.ListSink; import foam.dao.Sink; import foam.mlang.order.Comparator; import foam.mlang.predicate.Predicate; import java.sql.*; import java.util.ArrayL...
package rogel.io.fopl.formulas; import rogel.io.fopl.Symbol; /** * A NegatedFormula is a Formula whose value is the opposite of the * value of another Formula it describes. * @author recardona */ public class NegatedFormula extends Formula { /** The Formula this class negates. */ private Formula formula; ...
package sample.java.project; import com.beust.jcommander.JCommander; import com.beust.jcommander.Parameter; import com.beust.jcommander.ParameterException; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.NonNull; import lombok.Setter; /** * The main class of the a...
package org.TexasTorque.TexasTorque2013; import edu.wpi.first.wpilibj.IterativeRobot; import org.TexasTorque.TexasTorque2013.io.*; import org.TexasTorque.TexasTorque2013.subsystem.*; import org.TexasTorque.TorqueLib.util.DashboardManager; public class RobotBase extends IterativeRobot { DashboardManager dashboardMan...
package org.anddev.andengine.opengl.util; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.IntBuffer; import javax.microedition.khronos.opengles.GL10; import javax.microedition.khronos.opengles.GL11; import org.anddev.andengine.engine.options.RenderOptions; import org.andde...
package org.apache.fop.fo.pagination; // FOP import org.apache.fop.fo.*; import org.apache.fop.fo.properties.*; import org.apache.fop.fo.flow.Flow; import org.apache.fop.fo.flow.StaticContent; import org.apache.fop.layout.PageMaster; import org.apache.fop.area.AreaTree; import org.apache.fop.area.PageViewport; import o...
package org.biojava.bio.seq.io; import java.io.*; import java.util.*; import org.biojava.bio.*; import org.biojava.utils.*; import org.biojava.bio.symbol.*; import org.biojava.bio.seq.*; /** * Simple parser for feature tables. This is shared between * the EMBL and GENBANK format readers. * * <p> * This has been p...
package org.bouncycastle.crypto.digests; import org.bouncycastle.crypto.*; /** * implementation of MD2 * as outlined in RFC1319 by B.Kaliski from RSA Laboratories April 1992 */ public class MD2Digest implements ExtendedDigest { private static final int DIGEST_LENGTH = 16; /* X buffer */ private byte[...
package org.broad.igv.renderer; import org.apache.log4j.Logger; import org.broad.igv.PreferenceManager; import org.broad.igv.feature.*; import org.broad.igv.feature.genome.Genome; import org.broad.igv.feature.genome.GenomeManager; import org.broad.igv.track.FeatureTrack; import org.broad.igv.track.RenderContext; import...
package org.concord.data.ui; import java.awt.event.ActionEvent; import java.util.Vector; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.Icon; import org.concord.framework.data.DataFlow; import org.concord.framework.data.DataFlowCapabilities; import org.concord.framework.simulation.Simu...
package org.jetbrains.plugins.scala; import com.intellij.lang.Language; import com.intellij.lang.PairedBraceMatcher; import com.intellij.lang.Commenter; import com.intellij.lang.ParserDefinition; import com.intellij.openapi.fileTypes.SyntaxHighlighter; import com.intellij.openapi.project.Project; import com.intellij.op...
package org.ojalgo.array.operation; /** * @author apete */ public interface ArrayOperation { /** * Sets all matrix size operation thresholds to precisly this value. * * @param value The threshold */ static void setAllOperationThresholds(final int value) { ArrayOperation.setThreshol...
package org.pentaho.di.core.database; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; import org.pentaho.di.core.Const; import org.pentaho.di.core.Row...
package org.usfirst.frc.team339.Utils; import com.ctre.CANTalon; import com.ctre.CANTalon.FeedbackDevice; import com.ctre.CANTalon.TalonControlMode; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * Class to make tuning PID loops easier, either by the smartdashboard,...
package peergos.server.tests.slow; import org.junit.*; import org.junit.runner.*; import org.junit.runners.*; import peergos.server.*; import peergos.server.tests.*; import peergos.server.util.*; import peergos.shared.*; import peergos.shared.social.*; import peergos.shared.user.*; import peergos.shared.user.fs.*; impo...
package org.flexunit.ant.launcher.commands.player; import java.io.File; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.taskdefs.Java; import org.apache.tools.ant.types.FilterSet; import org.apache.tools.ant.types.FilterSetCollection; import org.apache.tools.ant.types.Commandline.Argument; impor...
package org.waterforpeople.mapping.app.gwt.server.survey; import static com.google.appengine.api.labs.taskqueue.TaskOptions.Builder.url; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import jav...
package com.strobel.expressions; import com.strobel.compilerservices.CallerResolver; import com.strobel.compilerservices.DebugInfoGenerator; import com.strobel.core.StringUtilities; import com.strobel.core.VerifyArgument; import com.strobel.reflection.MethodInfo; import com.strobel.reflection.Type; import com.strobel.r...
package net.wayward_realms.waywardskills; import net.wayward_realms.waywardlib.character.Character; import net.wayward_realms.waywardlib.character.CharacterPlugin; import net.wayward_realms.waywardlib.character.Equipment; import net.wayward_realms.waywardlib.character.Pet; import net.wayward_realms.waywardlib.classes.C...
package com.javax0.jdsl; import static com.javax0.jdsl.analyzers.terminals.NumberAnalyzer.number; import java.util.List; import org.junit.Assert; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.javax0.jdsl.analyzers.AnalysisResult; import com.javax0.jdsl.analyzers.Analyzer; im...
package com.mergesort; import junit.framework.TestCase; public class MergeSortTest extends TestCase { public void testMain() throws Exception { } }
package com.rox.emu.env; import com.pholser.junit.quickcheck.Property; import com.pholser.junit.quickcheck.When; import com.pholser.junit.quickcheck.generator.InRange; import com.pholser.junit.quickcheck.runner.JUnitQuickcheck; import com.rox.emu.InvalidDataTypeException; import org.junit.Assert; import org.junit.Test;...
package de.bmoth.issues; import de.bmoth.modelchecker.ModelChecker; import de.bmoth.modelchecker.ModelCheckingResult; import org.junit.Test; import static org.junit.Assert.assertEquals; public class Issue59Test { @Test public void testIssue59() throws Exception { String machine = "MACHINE SimpleMachine\...
package guitests; import static org.junit.Assert.assertTrue; import java.io.IOException; import org.junit.Test; import guitests.guihandles.AlertDialogHandle; import seedu.task.commons.events.storage.DataSavingExceptionEvent; //import static junit.framework.TestCase.assertTrue; //import java.io.IOException; //import org...
package integration; import com.codeborne.selenide.junit.ScreenShooter; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Rule; import static com.codeborne.selenide.Selenide.open; import static com.codeborne.selenide.WebDriverRunner.*; import static org.openqa.selenium.net.PortProber.findFreeP...
package interpreter; import com.github.stony.interpreter.Interpreter; import org.junit.Assert; import java.io.*; import java.net.URISyntaxException; import java.net.URL; /** * Barebones framework to test story files. Testing classes should extend this. * * The idea is to test the output */ class InterpreterTest { ...
package org.mariadb.jdbc; import org.junit.Assert; import org.junit.Assume; import org.junit.Before; import org.junit.Test; import java.sql.*; import java.util.Arrays; import java.util.Properties; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import static org.junit.Assert.assertEq...
package org.neuron_di.it; import org.junit.Test; import org.neuron_di.api.Brain; import org.neuron_di.api.CachingStrategy; import org.neuron_di.api.Neuron; import org.neuron_di.api.Synapse; import javax.inject.Singleton; import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.MatcherAssert.assertThat; pub...
package seedu.todo.guitests; import static org.junit.Assert.*; import static seedu.todo.testutil.AssertUtil.*; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Rule; i...
package goryachev.fx.edit; import goryachev.fx.FX; import goryachev.fx.edit.internal.CaretLocation; import goryachev.fx.edit.internal.EditorTools; import goryachev.fx.util.FxPathBuilder; import javafx.animation.Animation; import javafx.animation.KeyFrame; import javafx.animation.Timeline; import javafx.beans.binding.Bo...
package sg.ncl.adapter.deterlab; import org.apache.commons.lang3.RandomStringUtils; import org.json.JSONException; import org.json.JSONObject; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.mockito.Mock; import org.mockito.junit.MockitoJUnit; ...
package pft.addressbook.appmanager; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import pft.addressbook.model.GroupData; import pft.addressbook.model.Groups; import java.util.ArrayList; import java.util.Hash...
package org.jenkinsci.plugins.workflow.steps; import hudson.model.Result; import hudson.tasks.Fingerprinter; import hudson.tasks.junit.TestResultAction; import java.util.List; import org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition; import org.jenkinsci.plugins.workflow.job.WorkflowJob; import org.jenkinsci.plugins...
package org.libreoffice; import android.graphics.Bitmap; import android.graphics.RectF; import android.util.Log; import org.libreoffice.kit.Document; import org.libreoffice.kit.LibreOfficeKit; import org.libreoffice.kit.Office; import org.mozilla.gecko.gfx.BufferedCairoImage; import org.mozilla.gecko.gfx.CairoImage; im...
package net.fabricemk.android.mycv.adapters; import android.content.Context; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import net.fabricemk.android.mycv.fragments.TripFragment; import net.fabricemk.android.mycv.fragmen...
package edu.purdue.voltag.fragments; import android.app.Activity; import android.app.ListFragment; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.nfc.NfcAdapter; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import...
package edu.purdue.voltag.fragments; import android.app.Activity; import android.app.ListFragment; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.nfc.NfcAdapter; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import...
package com.emc.mongoose.api.metrics; import com.codahale.metrics.Clock; import com.codahale.metrics.Histogram; import com.codahale.metrics.SlidingTimeWindowArrayReservoir; import com.codahale.metrics.SlidingWindowReservoir; import com.codahale.metrics.UniformReservoir; import com.codahale.metrics.UniformSnapshot; impo...
package tlc2.tool.fp; import java.io.IOException; import java.text.DecimalFormat; import java.util.Random; public abstract class FPSetTest extends AbstractFPSetTest { private long previousTimestamp = System.currentTimeMillis(); private long previousSize; private final DecimalFormat df = new DecimalFormat(" ...
package org.jgrapes.http; import java.io.Serializable; import java.time.Instant; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * Implements the {@link Session} interface using a {@link ConcurrentHashMap}. */ @SuppressWarnings("serial") public class InMemorySession extends Concurrent...
package org.spoofax.jsglr; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import aterm.AFun; import aterm.ATerm; public class Disambiguator { private static final int FILTER_DRAW = 1; private static final int FILTER_LEFT_WINS = 2; ...
package com.akexorcist.sleepingforless.config; import android.content.SharedPreferences; import android.preference.PreferenceManager; import com.akexorcist.sleepingforless.util.Contextor; import com.akexorcist.sleepingforless.view.settings.SettingsFragment; public class SettingsPreference { private static SettingsP...
package com.aranea_apps.android.libs.commons.sample; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import com.aranea_apps.android.libs.commons.logging.ALog; import com.aranea_apps.android.libs.commons.notifications.BaseNotificationUtil; public class MainActivity extends ActionBarActivity { ...
package com.example.harry2636.emotionanalyzer; import static android.content.ContentValues.TAG; import static android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE; import static android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO; import com.google.android.youtube.player.YouTubeBaseActivity; import...