answer
stringlengths
17
10.2M
package com.github.solairerove.woodstock.domain; import lombok.Data; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; @Data @Document public class Task implements Serializab...
package com.itemis.maven.plugins.cdi; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; impo...
package com.hisham.design; import android.app.ProgressDialog; import android.content.Intent; import android.content.IntentSender; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Toast; impo...
package com.kstruct.markdown; import java.io.File; import java.nio.file.Path; import java.util.Arrays; import java.util.Map; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.P...
package com.lsw.weather.activity; import android.Manifest; import android.app.Activity; import android.content.Context; import android.graphics.drawable.AnimationDrawable; import android.os.Bundle; import android.support.design.widget.AppBarLayout; import android.support.design.widget.CollapsingToolbarLayout; import an...
package com.laytonsmith.core.functions; import com.laytonsmith.PureUtilities.Common.StringUtils; import com.laytonsmith.PureUtilities.LinkedComparatorSet; import com.laytonsmith.PureUtilities.RunnableQueue; import com.laytonsmith.PureUtilities.Version; import com.laytonsmith.abstraction.StaticLayer; import com.laytonsm...
package com.sanchez.fmf.fragment; import android.location.Address; import android.location.Geocoder; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.text.InputType; import android.util.Log; import android.view....
/** * (TMS) */ package com.lhjz.portal.controller; import java.util.Arrays; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import javax.validation.Valid; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframew...
package com.lothrazar.samscontent; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import com.lothrazar.util.Reference; import net....
package com.xlythe.sms.receiver; import android.app.Notification; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.Canvas; import an...
package com.machinezoo.sourceafis; import java.util.*; import gnu.trove.map.hash.*; public class FingerprintMatcher { /* * API roadmap: * + FingerprintMatcher(FingerprintTemplate) * - index(FingerprintTemplate) * + FingerprintMatcher(FingerprintTemplate, FingerprintMatcherOptions) * + compa...
package com.zulip.android; import java.sql.SQLException; import java.util.ArrayList; import java.util.Arrays; import android.annotation.TargetApi; import android.app.Activity; import android.content.ClipData; import android.content.Context; import android.os.Build; import android.os.Bundle; import android.support.v4.ap...
package devded.silkyland.cmrurun; import android.content.Context; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.AsyncTask; import android.os.Handler; import android.support.v4.app.FragmentActivity;...
// Burp Suite Logger++ // Developed by Soroush Dalili (@irsdl) package com.nccgroup.loggerplusplus.about; import com.coreyd97.BurpExtenderUtilities.Alignment; import com.coreyd97.BurpExtenderUtilities.PanelBuilder; import com.coreyd97.BurpExtenderUtilities.Preferences; import com.nccgroup.loggerplusplus.util.Globals; i...
package fi.bitrite.android.ws.ui; import android.accounts.Account; import android.app.SearchManager; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; i...
package jp.pycon.pyconjp2016app.Util; import android.support.annotation.NonNull; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.concurrent.TimeUnit; public class DateUtil { private static final String DATE_FORMAT = "yyyy-MM-dd HH:...
package com.redhat.ceylon.compiler.loader; import java.util.Map; import com.redhat.ceylon.compiler.js.CompilerErrorException; import com.redhat.ceylon.compiler.typechecker.model.Module; public class JsonModule extends Module { private Map<String,Object> model; private final JsModuleManager modman; JsonModul...
package com.seleniumtests.controller; import java.util.Collection; import java.util.List; import org.testng.Assert; import org.testng.Reporter; /** * soft assert - test case continues when validation fails. * soft assert is enabled only if context softAssertEnabled is set to true. */ public class CustomAssertion { ...
package me.hanthong.capstone.sync; import android.accounts.Account; import android.app.Notification; import android.app.PendingIntent; import android.content.AbstractThreadedSyncAdapter; import android.content.ContentProviderClient; import android.content.ContentResolver; import android.content.ContentValues; import an...
package net.misykat.misykatbandung.data; import net.misykat.misykatbandung.SoundCloudHelper; import net.misykat.misykatbandung.util.ISO8601; import org.json.JSONException; import org.json.JSONObject; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; pu...
package com.splicemachine.utils; import java.util.Comparator; public class ComparableComparator<E extends Comparable<E>> implements Comparator<E>{ private static final ComparableComparator INSTANCE = new ComparableComparator(); @SuppressWarnings("unchecked") public static <E extends Comparable<E>>Comparator...
package net.polybugger.artemis; import android.content.Intent; import android.content.SharedPreferences; import android.support.annotation.NonNull; import android.support.design.widget.Snackbar; import android.support.v4.app.FragmentManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; imp...
package com.vaguehope.onosendai.ui.pref; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget.EditText; import android.widget.Spinner; import com.vaguehope.onosendai....
package org.literacyapp.receiver; import android.app.job.JobInfo; import android.app.job.JobScheduler; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.util.Log; import org.literacyapp.LiteracyApplication; impor...
package com.vaguehope.onosendai.update; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.Callable; import java.util.concurrent.CountDownLatch; import j...
package de.nava.demo.repository; import com.mongodb.MongoClient; import org.bson.Document; import org.springframework.stereotype.Repository; import org.springframework.beans.factory.annotation.Autowired; import java.util.Map; /** * Simplest possible implementation for accessing the MongoDB * to persist job history do...
package li.vin.net; import android.app.Activity; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.util.Log; import android.webkit.WebView; import android.webkit.WebViewClient; import com.s...
package main.java.de.nullpointer.zauberei.team; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.craftbukkit.v1_10_R1.CraftServer; import org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer; import org.bukkit.entity.Player; import org.bukkit.inventory.Inventory; import ...
package li.vin.net; import android.app.Activity; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.util.Log; import android.webkit.WebView; import android.webkit.WebViewClient; import com.s...
package de.tourenplaner.algorithms.bbbundle; import com.carrotsearch.hppc.IntArrayDeque; import com.carrotsearch.hppc.IntArrayList; import com.carrotsearch.hppc.IntStack; import com.carrotsearch.hppc.cursors.IntCursor; import de.tourenplaner.algorithms.ComputeException; import de.tourenplaner.algorithms.PrioAlgorithm; ...
package de.tum.in.www1.artemis.service; import static de.tum.in.www1.artemis.domain.enumeration.AssessmentType.AUTOMATIC; import java.time.ZonedDateTime; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import javax.validation.constraints.NotNull; import org.slf4j.Logger; import org.slf4...
package de.tum.in.www1.artemis.service; import de.tum.in.www1.artemis.domain.*; import de.tum.in.www1.artemis.repository.CourseRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java....
package edu.cmu.sv.ws.ssnoc.rest; import java.sql.SQLException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import edu.cmu.sv.ws.ssnoc.common.logging.Log; import edu.cmu.sv.ws.ssnoc.common.utils.MeasurementUtils; import edu.cmu.sv.ws.ssnoc.data.util....
package edu.wright.hendrix11.svg.transform; /** * @author Joe Hendrix */ public class Translate extends XyTransform { public Translate(Number x, Number y) { super(x,y); } public Translate(Number x) { super(x); } public String toString() { StringBuilder sb = new ...
package ee.tuleva.onboarding.config; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import org.springframework.web.filter.GenericFilterBean; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletRespo...
package erogenousbeef.bigreactors.common; import java.util.Calendar; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraftforge.client.event.TextureStitchEvent; import cofh.api.modhelpers.ThermalExpansionHelper; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.commo...
package eu.hansolo.steelseries.gauges; import eu.hansolo.steelseries.tools.ColorDef; import eu.hansolo.steelseries.tools.ConicalGradientPaint; import eu.hansolo.steelseries.tools.CustomColorDef; import eu.hansolo.steelseries.tools.Direction; import eu.hansolo.steelseries.tools.ForegroundType; import eu.hansolo.steelser...
package fi.helsinki.cs.tmc.cli.command; import fi.helsinki.cs.tmc.cli.Application; import fi.helsinki.cs.tmc.cli.command.core.AbstractCommand; import fi.helsinki.cs.tmc.cli.command.core.Command; import fi.helsinki.cs.tmc.cli.io.Color; import fi.helsinki.cs.tmc.cli.io.Io; import fi.helsinki.cs.tmc.cli.io.ResultPrinter; ...
package net.darkhax.bookshelf.handler; import java.util.ArrayList; import java.util.List; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.enchantment.EnchantmentData; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; i...
package ca.ualberta.cs.drivr; import android.location.Location; import android.net.ConnectivityManager; import java.util.ArrayList; public class SearchRequest { private String minPrice; private String maxPrice; private String minPricePer; private String maxPricePer; private ArrayList<Request> reques...
package net.imagej.legacy.translate; import ij.CompositeImage; import ij.ImagePlus; import net.imagej.Dataset; import net.imagej.ImgPlus; import net.imagej.axis.Axes; import net.imagej.display.ImageDisplay; import net.imagej.display.ImageDisplayService; import net.imglib2.img.display.imagej.ArrayImgToVirtualStack; impo...
package com.almoturg.sprog.ui; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Intent; import android.net.Uri; import android.support.v4.view.MenuItemCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Share...
package net.minecraftforge.common.util; import java.io.Serializable; import net.minecraft.block.state.IBlockState; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraftforge.common.DimensionManager;...
package com.alsash.reciper.app; /** * Public keys for all elements in the Application */ public class AppContract { public static final int CACHE_MAX_ENTITIES = 1000; private static final String TAG = AppContract.class.getCanonicalName(); public static final String PAYLOAD_FLIP_BACK_TO_FRONT = TAG + ".pay...
package com.bdb.bikedeboa.model.model; import com.bdb.bikedeboa.model.network.response.LocalFull; import com.bdb.bikedeboa.model.network.response.LocalLight; import io.realm.RealmList; import io.realm.RealmObject; import io.realm.annotations.PrimaryKey; public class Rack extends RealmObject { // Light description ...
package net.sf.jabref.model.search.rules; import net.sf.jabref.model.strings.StringUtil; public class SearchRules { /** * Returns the appropriate search rule that fits best to the given parameter. */ public static SearchRule getSearchRuleByQuery(String query, boolean caseSensitive, boolean regex) { ...
package com.dreamteam.paca; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.annotation.TargetApi; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentSender; imp...
package com.mikepenz.unsplash.models; import android.support.v7.graphics.Palette; import java.io.Serializable; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Image implements Serializable { private static final DateFormat sdf = SimpleDateFormat.getDateInstance();...
package org.agmip.translators.dssat; import java.io.BufferedReader; import java.io.CharArrayReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Calendar; impor...
package com.pixnfit.async; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.AsyncTask; import android.util.Log; import android.widget.ImageView; import com.pixnfit.R; import com.pixnfit.utils.LRUCache; import java.io.IOException; import java.io.InputStream...
package edu.uci.lighthouse.core; import java.util.Collection; import java.util.LinkedList; import java.util.Properties; import org.apache.log4j.Logger; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.jobs....
package com.mapswithme.util.sharing; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.provider.Telephony; import com.mapswithme.maps.Framework; import com.mapswithme.maps.R;...
package com.samourai.wallet.send; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.os.Looper; import android.widget.Toast; import android.util.Log; import com.samourai.wallet.JSONRPC.TrustedNodeUtil; import com.samo...
package com.mapzen.tangram; import android.content.Context; import android.os.SystemClock; import android.view.GestureDetector; import android.view.GestureDetector.OnDoubleTapListener; import android.view.GestureDetector.OnGestureListener; import android.view.MotionEvent; import android.view.ScaleGestureDetector; impor...
package com.sanchez.fmf; import android.content.Context; import android.graphics.Color; import android.location.Address; import android.location.Geocoder; import android.os.AsyncTask; import android.os.Build; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v...
// -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.util.Optional; import javax.swing.*; import javax.swing.table.DefaultTableModel; public final class MainPanel ex...
package org.asciidoctor.maven; import java.io.File; import java.util.ArrayList; import java.util.Collection; import java.util.Scanner; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent...
package org.commcare.activities; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Configuration; import android.database.Cursor; import android.net.Uri; import android....
package org.bouncycastle.crypto.tls; /** * RFC 5246 7.2. */ public class AlertDescription { /** * This message notifies the recipient that the sender will not send any more messages on this * connection. The session becomes unresumable if any connection is terminated without proper * close_notify m...
package org.dainst.gazetteer.helpers; import java.text.Collator; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Set; import org.dainst.gazetteer.domain.PlaceName; public class PlaceNameHelper {...
package org.dannil.httpdownloader.utility; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathExpression; import javax.xml.xpath.XPathFactory; import org.w3c.dom.Document; /** * Clas...
package org.ftcTeam.opmodes.registrar1; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.hardware.DcMotor; import org.ftcTeam.configurations.Team8702Auto; import org.ftcTeam.opmodes.AutoStepEncoder; import org.ftcTeam.opmodes.BeaconHitter; import org.ftcTeam.opmodes.ColorValue; i...
package org.ihtsdo.otf.rest.client; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonElement; import com.google.gson.JsonParser; import com.google.gson.stream.JsonWriter; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.time.FastDateFormat; import org.apach...
package org.jenkinsci.plugins.koji.xmlrpc; import org.apache.log4j.*; import org.apache.xmlrpc.XmlRpcException; import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.List; import java.util.Map; public class XMLRPCTest { private KojiClient koji; private final String build = "classworlds-cl...
package org.jruby.rack; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.Queue; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; /** * A pooling application factory that creates runtimes and manages a fixed- or * unlimited-size pool. ...
package org.jtrfp.trcl.game; import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.lang.ref.WeakReference; import org.jtrfp.trcl.core.Feature; import org.jtrfp.trcl.core.FeatureFactory;...
package org.junit.experimental.categories; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.Set; import java.util.Collections; import java.util.HashSet; import org.junit.runner.Description; import org.junit.runner.manipulation.Filter; import org.junit.runner.manipulat...
package org.openlmis.referencedata.web.fhir; import static org.openlmis.referencedata.web.fhir.Coding.AREA; import static org.openlmis.referencedata.web.fhir.Coding.SITE; import com.fasterxml.jackson.annotation.JsonInclude; import com.google.common.collect.ImmutableList; import com.vividsolutions.jts.geom.Point; import...
package org.roaringbitmap.buffer; import java.io.*; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.LongBuffer; import java.nio.ShortBuffer; import java.util.Arrays; /** * Specialized array to store the containers used by a RoaringBitmap. This class * is similar to org.roaringbitmap.RoaringArra...
package org.spongepowered.api.world.biome; import org.spongepowered.api.Sponge; import java.util.function.Supplier; /** * An enumeration of all possible {@link BiomeType}s available in vanilla * minecraft. */ public final class BiomeTypes { // Standard Biomes // SORTFIELDS:ON public static final Supplier...
package org.synyx.urlaubsverwaltung.mail; import org.synyx.urlaubsverwaltung.person.MailNotification; import org.synyx.urlaubsverwaltung.person.Person; import java.util.List; import java.util.Map; /** * This service provides sending notification emails. */ public interface MailService { /** * Sends a mail to...
package org.zalando.nakadi.domain; import com.fasterxml.jackson.annotation.JsonProperty; import javax.annotation.concurrent.Immutable; import javax.validation.constraints.NotNull; @Immutable public class SubscriptionCursor extends Cursor { @NotNull private final String eventType; @NotNull private final ...
package seedu.address.logic.parser; import com.joestelmach.natty.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; /** * Tokenizes arguments string of the form: {@code preamble <prefix>value <prefix>value ...}<br> ...
package studentcapture.datalayer.database; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.dao.IncorrectResultSizeDataAccessException; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Re...
package studentcapture.datalayer.database; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.dao.IncorrectResultSizeDataAccessException; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Re...
package uk.ac.ebi.phenotype.solr.indexer; import org.apache.commons.lang3.StringUtils; import org.apache.solr.client.solrj.SolrServer; import org.apache.solr.client.solrj.SolrServerException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import o...
package zmaster587.advancedRocketry; import net.minecraft.block.Block; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.material.MaterialLiquid; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.e...
package org.objectweb.proactive.examples.c3d.gui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Font; import java.awt.GridLayout; import java.awt.Label; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.net.InetAddress; import...
package org.pentaho.di.trans.steps.fieldsplitter; import org.pentaho.di.core.Const; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.exception.KettleValueException; import org.pentaho.di.core.row.RowDataUtil; import org.pentaho.di.core.row.ValueMetaInterface; import org.pentaho.di.trans....
package org.pentaho.di.trans.steps.numberrange; import java.util.LinkedList; import java.util.List; import java.util.Map; import org.pentaho.di.core.CheckResult; import org.pentaho.di.core.CheckResultInterface; import org.pentaho.di.core.Const; import org.pentaho.di.core.Counter; import org.pentaho.di.core.database.Dat...
package org.teachingkidsprogramming.section03ifs; import org.junit.Assert; import org.junit.Test; import org.teachingextensions.logo.utils.EventUtils.MessageBox; @SuppressWarnings("unused") public class DeepDive03Ifs { // Step 1: SELECT the method name (doesABear on line 19), then click the Run Button // ...
package org.usfirst.frc.team997.robot.commands; import org.usfirst.frc.team997.robot.Robot; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class DriveToSetpoint extends Command { private final double setpoint, speed; public DriveToSetpoint(double...
package pt.up.fe.aiad.scheduler.agentbehaviours; import jade.core.AID; import jade.core.behaviours.SimpleBehaviour; import jade.lang.acl.ACLMessage; import jade.lang.acl.MessageTemplate; import pt.up.fe.aiad.scheduler.ScheduleEvent; import pt.up.fe.aiad.scheduler.SchedulerAgent; import pt.up.fe.aiad.scheduler.Serialize...
package com.currencycloud.client.http; import com.currencycloud.client.CurrencyCloudClient; import com.currencycloud.client.exception.ApiException; import com.currencycloud.client.model.Account; import com.currencycloud.client.model.Accounts; import com.currencycloud.client.model.Beneficiary; import com.currencycloud.c...
package com.fundynamic.d2tm.game.entities; import com.fundynamic.d2tm.Game; import com.fundynamic.d2tm.game.AbstractD2TMTest; import com.fundynamic.d2tm.math.Coordinate; import com.fundynamic.d2tm.math.MapCoordinate; import com.fundynamic.d2tm.math.Vector2D; import org.junit.Assert; import org.junit.Before; import org....
package com.google.sps.servlets; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.After; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import static com.google.sps.tool.Tool.compareJson; import static org.junit.Assert.assertEquals; import static org.junit.Ass...
package com.neverwinterdp.scribengin; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.List; import java.util.Properties; import java.util.UUID; import kafka.javaapi.producer...
package de.jbdb.sql2json.step1.input.modell; import static de.jbdb.sql2json.Sql2JSONTestObjects.TEST_COLUMN; import static de.jbdb.sql2json.Sql2JSONTestObjects.TEST_TWO_COLUMNS; import static de.jbdb.sql2json.Sql2JSONTestObjects.TEST_VALUE1; import static org.assertj.core.api.Assertions.assertThat; import java.util.Lis...
package io.kuzzle.test.core.Kuzzle; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import java.net.URISyntaxExcept...
package krasa.build.backend.execution; import krasa.build.backend.dto.Result; import krasa.build.backend.dto.Result; import krasa.build.backend.execution.process.ProcessLog; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Assert; import org.junit.Test; /** * @author Vojtech Krasaool */ public clas...
package net.finmath.montecarlo; import java.util.Map; import org.junit.Assert; import org.junit.Test; import net.finmath.stochastic.RandomVariableInterface; /** * Test cases for the class net.finmath.montecarlo.RandomVariableAAD. * * @author Christian Fries * @author Stefan Sedlmair * @see net.finmath.montecarlo.R...
package org.twonote.rgwadmin4j.impl; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.model.AmazonS3Exception; import com.amazonaws.services.s3.model.HeadBucketRequest; import com.amazonaws.services.s3.model.ObjectMetadata; import com.google.common.base.Strings; import com.google.common.colle...
package org.workdocx.cryptolite; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.security.KeyPair; import java.security.PrivateKey; import java.security.PublicK...
package org.jcoderz.commons.taskdefs; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory...
package au.com.noojee.acceloapi.cache; import java.util.Arrays; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.google.common.ca...
package com.github.davidcarboni.cryptolite; import org.apache.commons.lang.RandomStringUtils; import java.io.IOException; import java.io.InputStream; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; /** * This class provides random functions, such as Salt, ID and password * generation...
package org.netmelody.jarnia.github; import org.apache.http.client.HttpResponseException; import org.apache.http.client.ResponseHandler; import org.apache.http.client.methods.HttpGet; import org.apache.http.conn.scheme.PlainSocketFactory; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.scheme.Sch...
package net.yeputons.android239.rubikscube; import java.util.ArrayList; public class SequenceRecorder { private class OriginalFaceInfo implements Cloneable { public int originalFace; // During transformation we applied wasSwapped first, revA&revB then. public boolean wasSwapped, revA, revB; ...
package org.objectweb.proactive.core.component.asmgen; /** * Utility class for bytecode generation operations. * * @author Matthieu Morel * */ public class Utils { public static final String GENERATED_DEFAULT_PREFIX = "Generated_"; public static final String REPRESENTATIVE_DEFAULT_SUFFIX = "_representative...
package som.interpreter.nodes.dispatch; import som.interpreter.objectstorage.FieldAccess.AbstractFieldRead; import som.interpreter.objectstorage.FieldAccess.AbstractWriteFieldNode; import som.vmobjects.SObject; import som.vmobjects.SObject.SMutableObject; import com.oracle.truffle.api.CompilerDirectives; import com.ora...