answer
stringlengths
17
10.2M
package net.miz_hi.smileessence.menu; import android.app.Activity; import net.miz_hi.smileessence.cache.TweetCache; import net.miz_hi.smileessence.command.ICommand; import net.miz_hi.smileessence.command.post.CommandAppendHashtag; import net.miz_hi.smileessence.command.post.CommandInsertText; import net.miz_hi.smileess...
package nl.mpi.arbil.clarin; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; import java.net.URI; import java.net.URISyntaxException; import java.net.URLDecode...
package org.inferred.cjp39.j8stages; import static org.inferred.cjp39.j8stages.LocalExecutor.runNow; import static org.inferred.cjp39.j8stages.LocalExecutor.runSoon; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import java.util.Option...
package nl.sense_os.service.constants; import android.content.Context; /** * Contains all preference keys for the SharedPreferences that are used by the Sense library.<br/> * <br/> * Nota bene: there are three separate preference files: * <ul> * <li>{@link #MAIN_PREFS}, containing the settings for the sensors and ...
package org.javaee7.websocket.bingo; /** * * @author sree */ import org.json.simple.JSONObject; public class PeerInfo { JSONObject peerInfo; PeerInfo(String id) { peerInfo = new JSONObject(); peerInfo.put("Type", "Id Description"); peerInfo.put("id", id); } public JSONObject g...
package opendap.bes.dap4Responders; import opendap.bes.*; import opendap.bes.dap2Responders.BesApi; import opendap.coreServlet.ReqInfo; import opendap.coreServlet.ResourceInfo; import opendap.coreServlet.Scrub; import opendap.coreServlet.Util; import opendap.http.error.*; import opendap.namespaces.DAP; import org.jdom....
package org.javamexico.protobuf.example; import com.codahale.metrics.ConsoleReporter; import com.codahale.metrics.MetricRegistry; import org.javamexico.service.Servicio; import org.javamexico.ws.example.ClienteWS; import org.javamexico.ws.example.WebService; import javax.xml.ws.Endpoint; import java.io.InputStreamReade...
package org.jboss.netty.buffer; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.channels.GatheringByteChannel; import java.nio.channels.ScatteringByteChannel; import java.nio.charset.UnsupportedCharsetException; ...
package org.lightmare.ejb.startup; import java.io.File; import java.io.IOException; import java.lang.reflect.Field; import java.util.List; import java.util.Properties; import java.util.concurrent.Callable; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurre...
package org.mitre.synthea.export; import static org.mitre.synthea.export.ExportHelper.dateFromTimestamp; import static org.mitre.synthea.export.ExportHelper.iso8601Timestamp; import com.google.gson.JsonObject; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Path; import ...
package org.neo4j.admin.tool; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import org.neo4j.kernel.impl.nioneo.store.Abstract64BitRecord; import org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore; import org.neo4j.kernel.impl.nioneo.store.Filter; import org.neo4j.kernel....
package org.nwapw.abacus.fx; import javafx.application.Platform; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.*; import javafx.scene.control.cell.CheckBoxListCell; import javafx.scene.text.Text; import javafx.util.Callback; impor...
package org.pcap4j.packet; import static org.pcap4j.util.ByteArrays.*; import java.util.ArrayList; import java.util.List; import org.pcap4j.packet.factory.PacketFactories; import org.pcap4j.packet.namednumber.IcmpV4Code; import org.pcap4j.packet.namednumber.IcmpV4Type; import org.pcap4j.util.ByteArrays; /** * @author ...
package org.rspql.spin.utils; import java.io.InputStream; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Iterator; import org.rspql.lang.rspql.ParserRSPQL; import org.topbraid.spin.arq.ARQ2SPIN; import org.topbraid.spin.arq.ARQFactory; import org.topbraid.spin.model.Template; import org...
package org.spongepowered.api; import org.spongepowered.api.item.ItemType; import java.util.Map; import java.util.Set; /** * A GameDictionary is a store of {@link org.spongepowered.api.item.ItemTypes}. * * <p>Note that the GameDictionary's keys are different from Minecraft item * ids. Minecraft item IDs are namespa...
package permafrost.tundra.lang; import com.wm.app.b2b.server.ServiceException; import com.wm.data.IData; import com.wm.util.coder.IDataCodable; import permafrost.tundra.data.IDataMap; import java.util.Collection; public class BaseException extends ServiceException implements IDataCodable { /** * Constructs a n...
package foam.nanos.http; import foam.box.Skeleton; import foam.core.ContextAware; import foam.core.X; import foam.dao.DAO; import foam.dao.DAOSkeleton; import foam.nanos.boot.NSpec; import foam.nanos.boot.NSpecAware; import foam.nanos.logger.NanoLogger; import foam.nanos.NanoService; import foam.nanos.pm.PM; import jav...
package permafrost.tundra.lang; import permafrost.tundra.io.InputStreamHelper; import java.io.IOException; import java.io.InputStream; import java.nio.charset.Charset; /** * A collection of convenience methods for working with Charset objects. */ public final class CharsetHelper { /** * The default character...
package permafrost.tundra.lang; import permafrost.tundra.io.StreamHelper; import java.io.IOException; import java.io.InputStream; import java.nio.charset.Charset; /** * A collection of convenience methods for working with Charset objects. */ public class CharsetHelper { /** * The default character set used b...
package roycurtis.signshopexport; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.stream.JsonWriter; import roycurtis.signshopexport.json.Exclusions; import roycurtis.signshopexport.json.Record; import roycurti...
package sb.tasks.jobs.dailypress; import com.google.common.io.Files; import com.jcabi.http.Response; import com.jcabi.http.request.JdkRequest; import com.jcabi.http.response.JsoupResponse; import com.jcabi.http.wire.AutoRedirectingWire; import com.jcabi.http.wire.RetryWire; import com.jcabi.log.Logger; import org.bson....
package sc.iview.commands.process; import static sc.iview.commands.MenuWeights.PROCESS; import static sc.iview.commands.MenuWeights.PROCESS_CONVEX_HULL; import graphics.scenery.Node; import net.imagej.ops.OpService; import org.scijava.command.Command; import org.scijava.log.LogService; import org.scijava.plugin.Menu; i...
package seedu.address.storage; import seedu.address.commons.exceptions.IllegalValueException; import seedu.address.model.tag.Tag; import seedu.address.model.tag.UniqueTagList; import seedu.address.model.task.Detail; import seedu.address.model.task.Done; import seedu.address.model.task.DueByDate; import seedu.address.mo...
package seedu.todo.controllers; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import com.joestelmach.natty.*; import seedu.todo.commons.exceptions.InvalidNaturalDateException; import seedu.todo.commons.exceptions.Pa...
package sizebay.catalog.client.model; public enum Measure { chest, waist, hip, sleeve, biceps, length, insideLeg, height, fist, neck, thigh, centralSeam, underBust, shoulderWidth, insoleLength, insoleWidth, waistUpper, waistLower, ageChart, ...
package vaeke.restcountries.rest; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.text.Normalizer; import java.text.Normalizer.Form; import java.util.ArrayList; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; imp...
import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; public class DwarfTest { @Test public void criaAnaoPrimeiroConstrutor(){ Dwarf dwarf = new Dwarf("nome"); assertEquals("nome", dwarf.getName()); assertEquals(110, dwarf.getVida()); ...
package net.domesdaybook.reader; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; import java.util.logging.Level; import java.util.logging.Logger; /** * A very simple {@link ByteReader} which accesses bytes from a file, * using an underlying Rando...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.broad.igv.ui.action; import org.apache.log4j.Logger; import org.broad.igv.PreferenceManager; import org.broad.igv.ui.IGV; import org.broad.igv.ui.UIConstants; import org.broad.igv.ui.util.MessageUtils; import...
package org.caleydo.view.bicluster.elem; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Futur...
package org.joval.os.windows.registry; import org.joval.intf.windows.registry.IKey; import org.joval.intf.windows.registry.IMultiStringValue; /** * Representation of a Windows registry multi-string value. * * @author David A. Solin * @version %I% %G% */ public class MultiStringValue extends Value implements IMulti...
package org.mockito.internal.creation; import org.mockito.MockSettings; import org.mockito.exceptions.Reporter; import org.mockito.internal.creation.settings.CreationSettings; import org.mockito.internal.debugging.VerboseMockInvocationLogger; import org.mockito.internal.util.MockCreationValidator; import org.mockito.in...
package org.myrobotlab.control; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Container; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListe...
package org.myrobotlab.service; import java.util.HashMap; import org.myrobotlab.framework.Service; import org.myrobotlab.framework.repo.ServiceType; import org.myrobotlab.logging.Level; import org.myrobotlab.logging.Logging; import org.myrobotlab.logging.LoggingFactory; import org.myrobotlab.service.interfaces.SpeechRe...
package org.pentaho.di.job.entries.shell; import static org.pentaho.di.job.entry.validator.AndValidator.putValidators; import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.andValidator; import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.fileExistsValidator; import static org.pent...
package org.usfirst.frc.team3335.robot.subsystems; import com.kauailabs.navx.frc.AHRS; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.I2C; import edu.wpi.first.wpilibj.SPI; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class ...
package jeranvier.math.dsp; import jeranvier.math.linearAlgebra.Vector; import jeranvier.math.util.Complex; public class Fourier { public static Vector dft(Vector in) { if((in.size() & (in.size() - 1)) == 0){ return FastFourier.cooleyTukeyFFT(in); } else{ return Simpl...
package joshua.tools; import java.io.BufferedOutputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.PriorityQueue; import...
package org.apache.commons.validator; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.StringTokenizer; import org.apache.commons.collecti...
package org.hibernate.ogm.datastore.redis; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.hibernate.ogm.datastore.document.impl.DotPatternMapHelpers; import org.hibernate.ogm.datastore.document.options.Ass...
package org.robolectric.internal; import static java.nio.charset.StandardCharsets.UTF_8; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import j...
package net.runelite.client.config; import com.google.common.base.Strings; import com.google.common.collect.ComparisonChain; import com.google.common.collect.ImmutableMap; import java.awt.Color; import java.awt.Dimension; import java.awt.Point; import java.awt.Rectangle; import java.io.File; import java.io.FileInputStr...
package org.bouncycastle.cms; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.security.DigestInputStream; import java.security.InvalidAlgorithmParameterException; import java.security.MessageDigest; import java.security.NoSuc...
package gov.nrel.apiumbrella; import java.io.IOException; import java.math.BigInteger; import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.text.NumberFormat; import java.util.HashSet; impor...
package org.bouncycastle.crypto.test; import java.math.BigInteger; import java.security.SecureRandom; import org.bouncycastle.crypto.AsymmetricCipherKeyPair; import org.bouncycastle.crypto.DataLengthException; import org.bouncycastle.crypto.engines.ElGamalEngine; import org.bouncycastle.crypto.generators.ElGamalKeyPair...
package org.opencms.db.jpa; import org.opencms.configuration.CmsConfigurationManager; import org.opencms.configuration.CmsParameterConfiguration; import org.opencms.db.CmsDbContext; import org.opencms.db.CmsDbSqlException; import org.opencms.db.CmsDriverManager; import org.opencms.db.CmsSubscriptionFilter; import org.o...
package org.simpleim.server.server; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerAdapter; import io.netty.channel.ChannelHandlerContext; import java.util.logging.Level; import java.util.logging.Logger; import org.simpleim.common.message.Fail...
// This file is part of JavaSMT, // an API wrapper for a collection of SMT solvers: package org.sosy_lab.java_smt.api; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.List; import java.util.Map; import org.sosy_lab.common.Appender; import org.sosy_lab.java_smt.api.visitors.FormulaTransfo...
package org.torproject.onionoo; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Scanner; import java.util...
package com.ame.bus3.common; /** * Stores variables important to multiple pieces of code in a single location. * @author Amelorate */ public class Variables { /** * Stores if it is running in client or server mode. */ public static boolean isServer; /** * The IP address of the server being...
package de.dakror.vloxlands; import com.badlogic.gdx.Application.ApplicationType; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input.Buttons; import com.badlogic.gdx.Input.Keys; import com.badlogic.gdx.InputMultiplexer; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.GL20; import c...
package com.jcabi.github; import java.util.Collections; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Assume; import org.junit.Test; /** * Integration case for {@link Gists}. * @author Mihai Andronache (amihaiemil@gmail.com) * @version $Id$ */ public final class RtGistsITCase { ...
package guitests; import javafx.scene.control.ComboBox; import javafx.scene.input.KeyCode; import org.junit.Test; import ui.UI; import ui.components.KeyboardShortcuts; import ui.listpanel.ListPanel; import util.PlatformEx; import util.events.IssueSelectedEventHandler; import util.events.PanelClickedEventHandler; import...
package org.mahjong4j.hands; import org.junit.Before; import org.junit.Test; import org.mahjong4j.MahjongTileOverFlowException; import org.mahjong4j.tile.MahjongTile; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.*; /** * @author yu1ro */ public class ToitsuTest { Toitsu toitsu...
//@@author A0093896H package seedu.todo.logic; import static seedu.todo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import org.junit.Test; import seedu.todo.commons.exceptions.IllegalValueException; import seedu.todo.logic.commands.MarkCommand; import seedu.todo.model.DoDoBird; import seedu.todo.model.task.Co...
package org.jboss.as.server.manager; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; im...
package com.exalttech.trex; import com.exalttech.trex.application.TrexApp; import com.exalttech.trex.core.ConnectionManager; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.control.ComboBox; import javafx.scene.control.Label; import javafx.scene.control.TextField; import javafx.scene.i...
// URLFixer.java package ed.appserver; import java.io.*; import ed.util.*; import ed.net.httpserver.*; public class URLFixer { public static final boolean NOCDN = Config.get().getBoolean( "NO-CDN" ); public URLFixer( HttpRequest request , AppRequest ar ){ this( getStaticPrefix( request , ar ) , getStati...
package groovy.lang; import java.beans.BeanInfo; import java.beans.EventSetDescriptor; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.io.InputStream; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflec...
package com.jsoniter; import com.jsoniter.spi.TypeLiteral; import java.io.IOException; import java.util.*; public class Any extends Slice implements Iterable<Any> { private final static ThreadLocal<JsonIterator> tlsIter = new ThreadLocal<JsonIterator>() { @Override protected JsonIterator initialValu...
package sg.ncl.service.team.web; import com.fasterxml.jackson.databind.ObjectMapper; import io.jsonwebtoken.Claims; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import ...
package cz.req.ax; import com.google.common.base.CaseFormat; import com.vaadin.data.util.converter.StringToIntegerConverter; import com.vaadin.navigator.View; import com.vaadin.navigator.ViewChangeListener; import com.vaadin.server.FontAwesome; import com.vaadin.ui.Component; import com.vaadin.ui.TabSheet; import java....
package gui.game; import common.BaseLogger; import common.data.GameMap; import engine.core.Engine; import javafx.application.Application; import javafx.collections.ObservableMap; import javafx.fxml.FXMLLoader; import javafx.scene.Group; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.image.Im...
package jdbm; import java.io.*; import java.nio.channels.OverlappingFileLockException; import java.util.ArrayList; /** * Storage which used files on disk to store data */ class StorageDisk implements Storage{ /** maximal file size not rounded to block size */ private final static long _FILESIZE = 1000000000l;...
package bankersalgorithm; import java.io.IOException; import java.util.Scanner; public class BankersAlgorithm { //np = no. of processes \ nr = no. of resources private int need[][],allocate[][],max[][],avail[][],np,nr; private void input(){ Scanner sc = new Scanner(System.in); System.out.p...
package netty; import java.net.InetSocketAddress; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Properties; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; i...
package org.junit; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * <p>When writing tests, it is common to find that several tests need similar * objects created before they can run. Annotating a <cod...
package parser; import gui.CustomProperties; import org.mapdb.DB; import org.mapdb.DBMaker; import org.mapdb.HTreeMap; import org.mapdb.Serializer; import java.io.*; import java.util.ArrayList; import java.util.Observable; import java.util.regex.Pattern; /** * This class contains a parser to parse a .gfa file into our...
package gov.nih.nci.nbia.dbadapter; import gov.nih.nci.nbia.annotations.AnnotationStorage; import gov.nih.nci.nbia.query.DicomSOPInstanceUIDQueryInterface; import gov.nih.nci.nbia.util.AdapterUtil; import gov.nih.nci.nbia.util.DicomConstants; import java.io.File; import java.io.InputStream; import java.util.Enumeration...
package water.exec; import java.util.*; import org.apache.hadoop.mapred.analysejobhistory_jsp; import water.*; import water.fvec.*; import water.util.Log; import water.util.Utils; /** Parse a generic R string and build an AST, in the context of an H2O Cloud * @author cliffc@0xdata.com */ public abstract class ASTOp ...
package com.intellij.codeInsight.generation; import com.intellij.codeInsight.CodeInsightActionHandler; import com.intellij.codeInsight.CodeInsightUtil; import com.intellij.featureStatistics.FeatureUsageTracker; import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.Editor; import com.intellij.o...
package water.exec; import hex.la.Matrix; import java.util.*; import org.joda.time.DateTime; import org.joda.time.MutableDateTime; import water.*; import water.fvec.*; import water.util.Utils; /** Parse a generic R string and build an AST, in the context of an H2O Cloud * @author cliffc@0xdata.com */ public abstract...
package mondrian.olap; import java_cup.runtime.Symbol; import org.apache.log4j.Logger; import java.util.List; import java.util.ArrayList; import java.util.Enumeration; import java.util.Hashtable; import java.io.IOException; /** * Lexical analyzer for MDX. */ public class Scanner { private static final Logger LOGG...
// B a r s B u i l d e r // // This software is released under the terms of the GNU General Public // // to report bugs & suggestions. // package omr.sheet; import omr.Main; import omr.ProcessingException; import omr.check.Check; ...
package com.dua3.meja.samples; import java.io.IOException; import java.util.Map; import javax.swing.JFrame; import javax.swing.WindowConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.dua3.meja.model.CellStyle; import com.dua3.meja.model.FillPattern; import com.dua3.meja.model.Row; import co...
package se.chalmers.watchme.database; import android.database.sqlite.SQLiteDatabase; import android.util.Log; /** * The table in the database that holds data for Movies. * * @author lisastenberg */ public class MoviesTable { public static final String TABLE_MOVIES = "movies"; public static final String COLU...
package swift.clocks; import java.util.Iterator; import java.util.LinkedList; import java.util.ListIterator; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.TreeMap; import java.util.TreeSet; import swift.exceptions.IncompatibleTypeException; /** * Class to represent version ve...
package com.exmertec.dummie; import org.junit.Test; import static com.exmertec.dummie.Dummie.create; import static com.exmertec.dummie.Dummie.prepare; import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.MatcherAssert.assertThat; import static org.ha...
package com.jcabi.aether; import java.io.File; import java.util.Arrays; import java.util.List; import org.apache.maven.model.Dependency; import org.apache.maven.project.MavenProject; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Tem...
package cpw.mods.fml.common; import org.objectweb.asm.tree.ClassNode; public interface IASMHook { /** * Inject the {@link Mod} class node into this instance. This allows retrieval from custom * attributes or other artifacts in your mod class * * @param modClassNode The mod class * @return o...
package com.ociweb.gl.example; import com.ociweb.json.appendable.AppendableByteWriter; import com.ociweb.json.template.StringTemplateBuilder; import com.ociweb.json.template.StringTemplateScript; import com.ociweb.pronghorn.network.config.HTTPHeader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.o...
package com.razorpay; import org.json.JSONObject; import org.junit.Test; import org.mockito.InjectMocks; import java.io.IOException; import java.util.List; import static org.junit.Assert.*; public class PaymentClientTest extends BaseTest{ @InjectMocks protected PaymentClient paymentClient = new PaymentClient(TE...
package com.aol.simple.react.async; import static org.hamcrest.Matchers.hasItem; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import java.util.ArrayList; ...
package de.bmoth.app; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; import org.junit.Ignore; import org.junit.Test; import static org.testfx.api.FxAssert.verifyThat; import static org.testfx.matcher.base.NodeMatchers.isNotNull; import static org.testfx....
package com.heroku; import com.atlassian.bamboo.build.logger.BuildLogger; import com.atlassian.bamboo.configuration.ConfigurationMapImpl; import com.atlassian.bamboo.task.TaskContext; import com.atlassian.bamboo.task.TaskResult; import com.atlassian.bamboo.task.TaskState; import com.atlassian.bamboo.task.TaskType; impo...
package com.twu.biblioteca.model; import com.twu.biblioteca.exceptions.BookNotBorrowable; import com.twu.biblioteca.exceptions.BookNotReturnable; import com.twu.biblioteca.exceptions.MovieNotBorrowable; import org.junit.Before; import org.junit.Test; import org.mockito.Matchers; import static org.junit.Assert.*; import...
package org.scijava.util; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.File; import java.io.FileOutputStream; import java.io.IOEx...
package de.domisum.lib.auxilium.util; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class PHRTest { // TEST: ERRORS @Test public void testErrorInvalidNumberOfArgs() { Assertions.assertThrows(IllegalArgumentException.class, ()->PHR.r("blah {} blah {} xd")); ...
package me.abeyta.deckmanager.model; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; public class CardTest { private Card card; @Before public void setup() { card = new...
package no.steria.quizzical; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.StringReader; import java.io.StringWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.servl...
package org.devocative.samples.j8; import org.junit.Test; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.*; import java.util.function.Function; import java.util.regex.Pattern; import java.util.stream.Collectors; import java.util.stream.LongStream; import java.util.st...
package org.redisson; import java.io.IOException; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.redisson.client.codec.Codec; import org.redisson.codec.JsonJacksonCodec; import org.redis...
package ru.r2cloud.satellite; import java.io.BufferedReader; import java.io.File; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.file.FileSystems; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collections; import java.util...
package seedu.address.logic; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.task.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.task.commons.core.Messages.MESSAGE_INVALID_TASK_DISPLAYED_IN...
package seedu.taskman.logic; import com.google.common.eventbus.Subscribe; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import seedu.taskman.commons.core.EventsCenter; import seedu.taskman.logic.commands.*; import seedu.taskman.com...
package apoc.load; import apoc.Extended; import apoc.result.StringResult; import apoc.util.FileUtils; import apoc.util.Util; import org.apache.commons.io.filefilter.FileFileFilter; import org.apache.commons.io.filefilter.TrueFileFilter; import org.apache.commons.io.filefilter.WildcardFileFilter; import org.neo4j.loggin...
package edu.utexas.cycic; import java.io.File; import java.io.Reader; import java.io.StringReader; import java.util.ArrayList; import java.util.List; import java.util.Set; import javafx.scene.image.Image; import javax.json.Json; import javax.json.JsonArray; import javax.json.JsonObject; import javax.json.JsonReader; im...
package onion.lang.syntax; import onion.lang.syntax.visitor.ASTVisitor; /** * @author Kota Mizushima * */ public class TypeSpec extends AstNode { private RawTypeNode component; private final int dimension; private final TypeSpec[] typeArguments; public TypeSpec(RawTypeNode component, int dimension, TypeSpec[...
// This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should have received a copy of the GNU Lesser Gene...
// $Id: Protocol.java,v 1.22 2005/04/15 10:31:41 belaban Exp $ package org.jgroups.stack; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.jgroups.Event; import org.jgroups.util.Queue; import org.jgroups.util.QueueClosedException; import org.jgroups.util.Util; import java....