answer
stringlengths
17
10.2M
package com.amee.platform.science; import org.apache.commons.lang.builder.ToStringBuilder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Holds a collection of {@link ReturnValue} objects added by Algorithms. * The first ReturnValue added is marked as the defa...
package com.assylias.jbloomberg; import com.bloomberglp.blpapi.Datetime; import com.bloomberglp.blpapi.Element; import com.bloomberglp.blpapi.ElementIterator; import com.bloomberglp.blpapi.Schema; import java.io.BufferedReader; import java.io.File; import java.io.InputStreamReader; import java.nio.charset.Charset; impo...
package com.avairebot.orion.audio; import com.avairebot.orion.factories.MessageFactory; import com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler; import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager; import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager; import com.sedmelluq...
package com.choonster.testmod3.item; import com.choonster.testmod3.TestMod3; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.init.Enchantments; impo...
package com.crawljax.browser; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.log4j.Logger; import org.openqa.selenium.By; import org.openqa.selenium.ElementNotVisibleException; import o...
package com.ds.listing.rest; import com.ds.listing.model.Listing; import com.ds.listing.services.ListingService; import java.util.ArrayList; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; @Path("/rest/list") public class ListingRestService { @Inject private...
package com.edwardsit.spark4n6; import edu.nps.jlibewf.EWFFileReader; import edu.nps.jlibewf.EWFSegmentFileReader; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.BytesWritable; import org.apache.hadoop.mapreduce.InputSpl...
package com.faforever.client.remote; import com.faforever.client.api.FafApiAccessor; import com.faforever.client.api.dto.AchievementDefinition; import com.faforever.client.api.dto.CoopResult; import com.faforever.client.api.dto.FeaturedModFile; import com.faforever.client.api.dto.Game; import com.faforever.client.api.d...
package com.gamingmesh.jobs.CMILib; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import java.util.UUID; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.OfflinePlayer; import org.b...
package com.github.davidmoten.rx.jdbc; import static com.github.davidmoten.rx.RxUtil.constant; import static com.github.davidmoten.rx.RxUtil.greaterThanZero; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset; import java.sql.Connection; import java.sql.PreparedStatement; impo...
package com.google.firebase.database.core; import static com.google.firebase.database.utilities.Utilities.hardAssert; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseException; import com.google.firebase.database.DatabaseRe...
package com.inari.firefly.graphics.scene; import java.util.Set; import com.inari.commons.JavaUtils; import com.inari.commons.lang.functional.Callback; import com.inari.commons.lang.indexed.IIndexedTypeKey; import com.inari.firefly.component.attr.AttributeKey; import com.inari.firefly.component.attr.AttributeMap; import...
package com.jcabi.mysql.maven.plugin; import com.jcabi.aspects.Loggable; import com.jcabi.log.Logger; import com.jcabi.log.VerboseProcess; import com.jcabi.log.VerboseRunnable; import java.io.File; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.Socket; import ...
package com.joelhockey.smartcard; import com.joelhockey.codec.Buf; import com.joelhockey.codec.Hex; public class SmartcardUtil { /** * Format APDU. * @param cla cla * @param ins ins * @param p1 p1 * @param p2 p2 * @param data data * @param le le * @return formatted APDU ...
package com.sciul.cloud_configurator.dsl; import com.sciul.cloud_configurator.Provider; import javax.json.JsonObject; public class Route extends Resource { private final String destinationCidrBlock; private final String routeTableId; private final String idType; private final String idValue; private final boo...
package com.tkhoon.framework; public interface FrameworkConstant { String DEFAULT_CHARSET = "UTF-8"; String APP_HOME_PAGE = "app.home_page"; String APP_JSP_PATH = "app.jsp_path"; String APP_WWW_PATH = "app.www_path"; String DEFAULT_SERVLET_NAME = "default"; String JSP_SERVLET_NAME = "jsp"; S...
package com.uwetrottmann.trakt5.enums; /** * By default, all methods will return minimal info for movies, shows, episodes, and users. Minimal info is typically * all you need to match locally cached items and includes the title, year, and ids. However, you can request different * extended levels of information. */ ...
package crazypants.enderio.conduit.gas; import mekanism.api.gas.GasStack; import mekanism.api.gas.IGasHandler; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.IBlockAccess; import cpw.mods.fml.common.ModAPIManager; import cpw.mods.fml.common.Optional.Method; import crazypants.enderio.conduit.ICon...
package de.aikiit.mailversendala.csv; import com.google.common.collect.Lists; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVRecord; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.io.IOException; import java.io.Reader; import java.util.List; im...
package de.csdev.ebus.command; import java.math.BigDecimal; import java.nio.ByteBuffer; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import de.csdev.ebus.command.IEB...
package de.domisum.lib.animulus.npc; import de.domisum.lib.animulus.AnimulusLib; import de.domisum.lib.animulus.listener.NPCInteractPacketListener; import de.domisum.lib.auxilium.util.java.annotations.APIUsage; import de.domisum.lib.auxiliumspigot.util.LocationUtil; import org.bukkit.Bukkit; import org.bukkit.entity.Pl...
package de.htw_berlin.HoboOthello.GUI; import de.htw_berlin.HoboOthello.Core.Field; import de.htw_berlin.HoboOthello.Core.Player; import sun.audio.AudioPlayer; import sun.audio.AudioStream; import javax.swing.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ComponentListener; import jav...
package de.tbressler.quadratum.logic; import de.tbressler.quadratum.model.GameBoard; import de.tbressler.quadratum.model.Player; import de.tbressler.quadratum.model.Square; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import static java.util.Objects.requireNonNull; ...
package edu.hm.hafner.analysis; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.UUID; /** * Computes old, new, and fixed issues based on the reports of two consecutive static analysis runs for the same * software artifact. ...
package hudson.plugins.ec2.ssh; import hudson.FilePath; import hudson.Util; import hudson.ProxyConfiguration; import hudson.model.Descriptor; import hudson.model.TaskListener; import hudson.plugins.ec2.*; import hudson.remoting.Channel; import hudson.remoting.Channel.Listener; import hudson.slaves.CommandLauncher; impo...
package info.faceland.strife.util; import org.bukkit.Material; import org.bukkit.entity.Item; import org.bukkit.inventory.ItemStack; public class ItemTypeUtil { public static boolean isArmor(Material material) { String name = material.name(); return name.contains("HELMET") || name.contains("CHESTPLATE") || na...
package info.tehnut.xtones.block; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; import net.minecraft.block.Block; import net.minecraft.block.BlockDirectional; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block...
package innovimax.mixthem.io; import innovimax.mixthem.interfaces.IInputLine; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.util.Random; /** * <p>Reads lines from a character-in...
package io.luna.game.model.mobile; import io.luna.LunaContext; import io.luna.game.model.Direction; import io.luna.game.model.Entity; import io.luna.game.model.EntityType; import io.luna.game.model.Position; import io.luna.game.model.mobile.attr.AttributeMap; import io.luna.game.model.mobile.update.UpdateFlagHolder; im...
package org.nnsoft.shs; /** * Exception thrown when an {@link HttpServer} instance fails on configuring phase. */ public final class InitException extends SHSException { private static final long serialVersionUID = -4615674360135156439L; /** * Constructs a new exception with the specified detail mess...
package logbook.internal.gui; import java.awt.GraphicsConfiguration; import java.awt.Rectangle; import java.awt.Robot; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.util.List; import javax.imageio.ImageIO; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4...
package com.isawabird; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.AsyncTask; import android.os....
package me.zero.client.api.util.render; import net.minecraft.client.renderer.GlStateManager; import org.lwjgl.BufferUtils; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffe...
package com.parrot.arsdk.arsal; /** * Root class for all C data that may pass through different libs of AR.SDK<br> * <br> * AR.SDK Is mainly implemented in C, and thus libs often use C structures to hold data.<br> * This is a wrapper class onto these kind of data, so java can pass them around libs without copy into...
package net.fortuna.ical4j.vcard; import net.fortuna.ical4j.vcard.Group.Id; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public class GroupRegistry { private static final Log LOG = ...
/* Author : Michael Aldridge Class : CS2336 Section: 001 Assignment: 5 Instructions: Compile with javac inToPost.java; run as java inToPost; This implementation will make an attempt to calculate all expressions that are calculable. Expressions containing variable components will not be calculated. ...
package net.glowstone.block.blocktype; import java.util.Collection; import java.util.Collections; import net.glowstone.GlowWorld; import net.glowstone.block.GlowBlock; import net.glowstone.block.GlowBlockState; import net.glowstone.block.entity.BedEntity; import net.glowstone.block.entity.BlockEntity; import net.glowst...
package net.glowstone.entity.passive; import com.flowpowered.networking.Message; import net.glowstone.entity.meta.MetadataIndex; import net.glowstone.entity.meta.MetadataMap; import net.glowstone.inventory.GlowHorseInventory; import net.glowstone.net.message.play.entity.EntityMetadataMessage; import org.bukkit.Location...
package net.gpedro.integrations.slack; import com.google.gson.JsonObject; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; public class SlackApi { private ...
package net.gtaun.wl.common.dialog; import org.apache.commons.lang3.StringUtils; public final class DialogUtils { public static String rightPad(String str, int size, int tabSize) { return str + StringUtils.repeat('\t', (size - str.length() + (tabSize-1)) / tabSize); } private DialogUtils() {...
package net.imagej.legacy; import java.awt.GraphicsEnvironment; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import net.imagej.DatasetService; import net.imagej.display.DatasetView; import ne...
package net.imagej.ops.create; import net.imagej.ops.Op; import net.imagej.ops.Ops; import net.imglib2.img.planar.PlanarImgFactory; import net.imglib2.type.Type; import net.imglib2.type.numeric.real.FloatType; import org.scijava.plugin.Parameter; import org.scijava.plugin.Plugin; /** * Creates a default image. If outT...
package net.ucanaccess.converters; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import net.ucanaccess.jdbc.UcanaccessConnection; import com.healthmarketscience.jackcess.Database; public class SQLConverte...
package nl.it.fixx.moknj.builders; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import nl.it.fixx.moknj.bal.AssetBal; import nl.it.fixx.moknj.bal.EmployeeBal; import nl.it.fixx.moknj.bal.LinkBal; import nl.it.fixx.moknj.bal.MainAcc...
package oe.maven.plugins.revision; import java.io.File; import java.util.HashSet; import java.util.Set; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.project.MavenProject; import org.tmates...
package org.almibe.codeeditor; import javafx.application.Platform; import javafx.scene.Parent; import javafx.scene.web.WebView; import java.util.Arrays; import java.util.Queue; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicBoolean; public class CodeMirrorEditor implements CodeEditor { priv...
package org.analogweb.core.response; import java.io.IOException; import java.util.Map; import java.util.Map.Entry; import org.analogweb.Renderable; import org.analogweb.Headers; import org.analogweb.RenderableHolder; import org.analogweb.RequestContext; import org.analogweb.Response; import org.analogweb.ResponseContex...
package yuku.alkitab.yes; import android.util.Log; import java.io.FileInputStream; import java.io.RandomAccessFile; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import yuku.alkitab.yes.YesFile.PericopeData.Entry; import yuku.bintex.BintexWriter; public class YesFile { ...
package org.foobar.minesweeper.model; import static com.google.common.base.Preconditions.checkElementIndex; import static com.google.common.base.Preconditions.checkState; import com.google.common.eventbus.EventBus; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.E...
package org.jfree.chart.plot; /** * Used to indicate the style for the lines linking pie sections to their * corresponding labels. * * @since 1.0.10 */ public enum PieLabelLinkStyle { /** STANDARD. */ STANDARD, /** QUAD_CURVE. */ QUAD_CURVE, /** CUBIC_CURVE. */ CUBIC_CURVE }
package org.komamitsu.fluency.sender; import org.komamitsu.fluency.Constants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; import java.nio.charset.Charset; import java.util.Arra...
package org.mybatis.jpetstore.domain; import java.io.Serializable; import java.math.BigDecimal; public class Calculate implements Serializable { public void hello() { System.out.println("JPET Store Application"); System.out.println("Class name: Calculate.java"); System.out.println("Hello World"); System.out.println("Ma...
package org.ndexbio.common.access; import org.ndexbio.common.exceptions.NdexException; import org.ndexbio.orientdb.NdexSchemaManager; import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; import com.orientechnologies.orient.core.dictionary.ODictionary; import com.orientechnologies.orient.core.record...
package org.ndexbio.rest.client; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import java.util.UUID; import org.apache.commons.codec.binary.Base64; import org.nde...
package org.nsponline.calendar.misc; import org.nsponline.calendar.store.*; import javax.servlet.http.HttpServletRequest; import java.io.PrintWriter; import java.sql.*; import java.util.ArrayList; import java.util.HashMap; /** * Main method to track general info about a resort (patrol) Not backed by a table. But sto...
package org.threadly.litesockets.tcp; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import java.nio.ByteBuffer; import java.nio.channels.ClosedChannelException; import java.nio.channels.SocketChannel; import java.util.ArrayDeque; import java.util.Deque; import java.util.concurre...
package org.whitesource.docker; import org.whitesource.contracts.PluginInfo; public class DockerAgentInfo implements PluginInfo { private static final String AGENT_TYPE = "docker-agent"; private static final String AGENT_VERSION = "2.6.4"; private static final String PLUGIN_VERSION = "18.2.2"; @Override...
package permafrost.tundra.lang; import com.wm.data.IData; import org.xml.sax.SAXParseException; import java.util.Arrays; import java.util.Collection; /** * A collection of convenience methods for working with exceptions. */ public class ExceptionHelper { /** * Disallow instantiation of this class. */ ...
package pixlepix.auracascade.item; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import pixlepix.auracascade.data.AuraQuantity; import pixlepix.auracascade.data.EnumAura; import pixlepix.auracascade.data.recipe.PylonRecipe; import pixlepix.auracascade.data.recipe....
package pl.domzal.junit.docker.rule; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Level; import org.junit.Rule; import org.junit.rules.ExternalResource; import org.juni...
package programminglife.model.drawing; import programminglife.model.Dummy; import programminglife.model.Node; import programminglife.model.XYCoordinate; import programminglife.utility.Console; import java.util.*; /** * A part of a {@link programminglife.model.Graph}. It uses a centerNode and a radius. * Roughly, ever...
package redis.clients.jedis; import java.nio.ByteBuffer; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; public class BinaryJedisCluster implements BinaryJedisCommands, BasicCommands, JedisClusterBinaryScriptingCommands { public static final short HASHSLOTS = ...
package refinedstorage.api.util; import net.minecraft.item.ItemStack; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.util.Collection; /** * An item stack list. */ public interface IItemStackList { /** * Adds a stack to the list, will merge it with another stack if it already e...
package seedu.address.model.activity.task; import java.util.Calendar; import java.util.Objects; import seedu.address.commons.util.CollectionUtil; import seedu.address.model.activity.Activity; import seedu.address.model.activity.Name; import seedu.address.model.activity.ReadOnlyActivity; import seedu.address.model.activ...
package seedu.tasklist.model.task; import seedu.tasklist.commons.util.CollectionUtil; import seedu.tasklist.model.tag.UniqueTagList; /** * Represents a Floating Task in the task list. * Guarantees: details are present and not null, field values are validated. */ public class FloatingTask implements ReadOnlyFloatingT...
package seedu.tasklist.model.task; import seedu.tasklist.model.tag.UniqueTagList; /** * A read-only immutable interface for a Task in the task list. * Implementations should guarantee: details are present and not null, field values are validated. */ public interface ReadOnlyTask { TaskDetails getTaskDetails(); ...
package seedu.taskmanager.model.task; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import seedu.taskmanager.commons.exceptions.IllegalValueException; /** * Represents a Task's start date in the task manager. Guarantees: immutable; is * valid as ...
package stream.flarebot.flarebot.util; import okhttp3.Call; import okhttp3.Callback; import okhttp3.MediaType; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; import org.json.JSONObject; import stream.flarebot.flarebot.FlareBot; import javax.annotation.ParametersAreNonnullByDefault; import ...
package tech.aroma.data.sql.serializers; import tech.sirwellington.alchemy.annotations.access.Internal; import tech.sirwellington.alchemy.annotations.access.NonInstantiable; /** * Contains the internal structure of the SQL Tables * used to serialize Aroma objects. * * @author SirWellington */ @Internal @NonInstant...
package tigase.cluster.repo; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import tigase.db.DBInitException; import tigase.db.DataRepository; import tigase.db.R...
package tigase.server.xmppserver.proc; import tigase.server.Packet; import tigase.server.xmppserver.CID; import tigase.server.xmppserver.S2SIOService; import tigase.xml.Element; import java.io.IOException; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import java.util.Queue; /*...
// jTDS JDBC Driver for Microsoft SQL Server // 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 shoul...
package unit; import org.testng.Assert; import org.testng.annotations.Test; import com.coveros.selenified.tools.General; import java.io.File; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import java.util.Map; public class GeneralTest { @Test public void listFilesForFolderT...
package com.precious.calccedo.handlers; import com.precious.calccedo.Calccedo; import com.precious.calccedo.configuration.Configuration; import java.util.ArrayList; /** * * @author Ibrahim Abdsaid Hanna * ibrahim.seniore@gmail.com */ public class CalccedoHandler extends Calccedo implements Handler { pri...
package net.minecraftforge.common; import java.io.*; import java.text.DateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.Locale; import java.util.Map; import java.util.TreeMap; import java.util.regex.Matcher; import java.util.regex.Patte...
package net.silentchaos512.lib.item; import java.util.List; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.silentchaos512.lib.SilentLib; import net.silentchaos512.lib.registry.IHasSubtypes; import ne...
package me.coley.recaf.ui.component.list; import java.awt.Color; import javax.swing.BorderFactory; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.ListCellRenderer; import org.objectweb.asm.Type; import me.coley.recaf.Recaf; import me.coley.recaf.config.impl.ConfTheme; import me.coley.recaf.conf...
package com.anton.fastcloud.natives; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; public class Natives { public static final String[] LIB_NAMES = {"libnatives.so"}; public static void init() { try { Path tempDirPath = Files.createTempDirectory("fastcloud...
package net.mcft.copy.betterstorage.blocks; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import net.mcft.copy.betterstorage.BetterStorage; import net.mcft.copy.betterstorage.ItemIdentifier; import net.minecraft...
package nitezh.ministock.domain; import android.content.Context; import org.json.JSONException; import org.json.JSONObject; import java.text.NumberFormat; import java.text.ParseException; import java.text.RuleBasedCollator; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.ut...
package org.biojava.bio.program.hmmer; import org.biojava.bio.dp.*; import org.biojava.bio.dp.onehead.*; import java.io.*; import java.util.*; import org.biojava.bio.dist.*; import org.biojava.bio.symbol.*; import org.biojava.bio.seq.*; import org.biojava.bio.seq.db.*; import org.biojava.bio.seq.io.*; import org.biojav...
package org.nschmidt.ldparteditor.data; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.Stack; import java.util.TreeSet; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CopyOnWriteArrayList; import j...
package org.owasp.esapi.reference; 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.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java...
package org.pentaho.di.job.entries.dtdvalidator; import org.pentaho.di.i18n.BaseMessages; public class Messages { public static final String packageName = Messages.class.getPackage().getName(); public static String getString(String key) { return BaseMessages.getString(packageName, key); } pu...
// 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.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.Collection; import java.ut...
package org.usfirst.frc.team2791.commands; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import org.usfirst.frc.team2791.abstractSubsystems.AbstractShakerShooterArm; import org.usfirst.frc.team2791.util.ShakerCamera; import static org.usfirst.frc.team2791.robot.Robot.*;...
package soot.jimple.infoflow.data; import java.util.HashSet; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicInteger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import soot.jimple.infoflow.solver.IMemo...
package com.arturmkrtchyan.sizeof4j; import com.arturmkrtchyan.sizeof4j.util.JvmUtil; import org.junit.Test; import static org.junit.Assert.assertEquals; public class SizeOfTest { MemoryLayout memoryLayout = JvmUtil.memoryLayout(); @Test public void primitives() { assertEquals("booleanSize must be 1...
package com.github.timp.anagram; import junit.framework.TestCase; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; /** * Tests for the Dictionary class. */ public class DictionaryTest extends TestCase { public void testDictionaryConstructor() throws Exception { Dictionary it ...
package com.lynx.fqb.select; import static org.hamcrest.Matchers.*; import java.util.Calendar; import java.util.Comparator; import java.util.Date; import java.util.List; import java.util.Optional; import org.junit.Assert; import org.junit.Test; import com.lynx.fqb.IntegrationTestBase; import com.lynx.fqb.Select; import...
package com.trevorgowing; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import static com.trevorgowing.UrlStringBuilder.basedUrlBuilder; import static com.trevorgowing.UrlStringBuilder.emptyUrlBuilder; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamc...
package de.bmoth.modelchecker; import de.bmoth.parser.Parser; import de.bmoth.parser.ast.nodes.MachineNode; import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ModelCheckerTest { private String dir = "src/test/resources/machines/"; @Test public void test...
package io.teiler.api.service; import java.lang.reflect.Field; import org.junit.Assert; import org.junit.Test; public class GroupServiceTest { private static final String ENTROPY_BITS_CONSTANT_NAME = "ENTROPY_BITS_IN_ONE_CHARACTER"; private static final int ENTROPY_BITS_IN_ONE_CHARACTER_EXPECTED = 5; @Test ...
package io.vertx.ext.consul.suite; import io.vertx.core.Handler; import io.vertx.core.Vertx; import io.vertx.core.http.HttpHeaders; import io.vertx.core.http.HttpServer; import io.vertx.core.http.HttpServerRequest; import io.vertx.core.http.HttpServerResponse; import io.vertx.ext.consul.ConsulClient; import io.vertx.ex...
package net.folab.fo.runtime; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; import java.lang.reflect.Field; import net.folab.fo.runtime._fo._lang.Boolean; import net.folab.fo.runtime._fo._lang.Integer; import org.junit.Test; import org.junit.Before; public class GeneratedCodeTest { pr...
import java.util.*; import java.time.*; import org.junit.*; import org.hamcrest.Matcher; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; import net.quasardb.qdb.ts.*; import net.quasardb.qdb.*; public class WriterTest { @Test public void canGetWriter() throws Exception { Str...
package net.sf.gaboto.entities.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.Collection; import java.util.Iterator; import net.sf.gaboto.test.TimeUtils; import org.junit.BeforeClass; import org.junit.Test; imp...
package org.hibernate.examples; import lombok.extern.slf4j.Slf4j; import org.hibernate.examples.config.JpaHSqlConfiguration; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.conte...
package org.psjava.example; import junit.framework.Assert; import org.junit.Test; import org.psjava.algo.search.BinarySearchFirst; import org.psjava.algo.search.BinarySearchFirstFalse; import org.psjava.algo.search.BinarySearchFirstInArray; import org.psjava.algo.search.BinarySearchFirstTrue; import org.psjava.algo.sea...
package org.robolectric.res; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.TextView; import org.robolectric.R; import org.robolectric.Robolectric; import org.robolectric.TestRunners; import org.robolectric.annotation.Values; import org.robolectric.tester.android.util.ResName; i...