answer
stringlengths
17
10.2M
package com.mitchellbosecke.pebble; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.io.StringWriter; import java.io.Writer; import java.util.HashMap; import java.util.Map; import org.junit.Test; import com.mitchellbosecke.pebble.error.AttributeNotFoundException; import com.mitchellb...
package de.alpharogroup.string; import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertNull; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertFalse; import static org.testng.AssertJUnit.assertTrue; import java.util.List; import java.util.Map; im...
package edu.hm.hafner.analysis.assertj; import org.assertj.core.api.AbstractAssert; import edu.hm.hafner.analysis.Issues; public class IssuesAssert extends AbstractAssert<IssuesAssert, Issues> { public IssuesAssert(final Issues actual) { super(actual, IssuesAssert.class); } public static IssuesAsser...
package io.github.yas99en.mojo.script; import java.util.Arrays; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import com.tngtech.java.junit.dataprovider.DataProvider; import com.tngtech.java.junit.dataprovider.DataProviderRunner; import com.tngtech.java.junit.dataprovider.UseDataProvi...
package net.liquidpineapple.pang.objects; import org.junit.Before; import org.junit.Test; import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import static org.junit.Assert.*; /** * @author Jurriaan Den Toonder<jurriaan.toonder@liquidpineapple.net> * @date 2016/09/12. */ public class PlayerTest ...
package test.com.qiniu.storage; import com.google.gson.Gson; import com.qiniu.common.QiniuException; import com.qiniu.http.Client; import com.qiniu.http.Response; import com.qiniu.storage.BucketManager; import com.qiniu.storage.Configuration; import com.qiniu.storage.FixBlockUploader; import com.qiniu.util.Etag; import...
package tk.coursesplus.development.devsync; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.nio.file.FileSystems; impor...
package uk.co.eluinhost.ultrahardcore.commands; import java.util.List; import org.bukkit.command.CommandSender; import uk.co.eluinhost.commands.Command; import uk.co.eluinhost.commands.CommandRequest; import uk.co.eluinhost.features.IFeature; import uk.co.eluinhost.features.FeatureManager; public class FeatureCommand e...
package edu.washington.escience.myria.operator; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import java.util.HashMap; import org.joda.time.DateTime; import org.junit.Test; import com.google.common.collect.ImmutableList; import com...
package org.sagebionetworks.bridge.dynamodb; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; import org.joda.time.DateTime; import org.junit.Before; import org.junit.Test; import org.sagebionetwor...
package org.springframework.transaction; import junit.framework.TestCase; import org.springframework.transaction.support.DefaultTransactionDefinition; import org.springframework.transaction.support.TransactionCallbackWithoutResult; import org.springframework.transaction.support.TransactionTemplate; /** * @author Juerg...
package me.thekey.android.lib; import android.content.Context; import android.content.SharedPreferences; import android.net.Uri; import android.net.Uri.Builder; import android.support.annotation.AnyThread; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.anno...
package se.sics.cooja.mspmote; import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collection; import java.util.Hashtable; import java.util.Observable; import org.apache.log4j.Logger; import org.jdom.Element; import se.sics.cooja.ContikiError; import...
package com.angcyo.uiview.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; ...
package org.wso2.carbon.uuf.core; import org.apache.commons.lang3.tuple.Pair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; /** * Note: thi...
package com.vimeo.networking; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.reflect.TypeToken; import com.vimeo.stag.generated.Stag; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import static org.junit.Assert.assertNotNull; import static ...
package org.wisdom.api; import com.google.common.collect.Maps; import org.wisdom.api.cookies.FlashCookie; import org.wisdom.api.cookies.SessionCookie; import org.wisdom.api.http.*; import org.wisdom.api.router.Route; import org.wisdom.api.templates.Template; import java.util.Collections; import java.util.List; import j...
package org.echovantage.wonton; import org.echovantage.util.AccessListDecorator; import org.echovantage.util.AccessMapDecorator; import org.echovantage.util.ListDecorator; import org.echovantage.util.MapDecorator; import org.echovantage.wonton.standard.StandardPath; import java.util.ArrayList; import java.util.Collecti...
package models; import java.io.IOException; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.net.URI; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Set; import java.io.File; import javax.persistence.*; import com.fasterxml.jackson.databind.node....
package verification.platu.project; import java.util.*; import lpn.parser.LhpnFile; import lpn.parser.Transition; import verification.platu.main.Options; import verification.platu.stategraph.*; public class PrjState { protected State[] stateArray; private PrjState father; private PrjState child; privat...
package utils; import models.Project; import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import org.owasp.html.HtmlPolicyBuilder; import org.owasp.html.Po...
package gnu.kawa.lispexpr; import kawa.lang.*; import gnu.expr.*; import gnu.mapping.*; import gnu.lists.*; import gnu.bytecode.ClassType; public class DefineNamespace extends Syntax { private boolean makePrivate; private boolean makeXML; public static final DefineNamespace define_namespace = new DefineNamesp...
package com.jme3.scene; import com.jme3.bounding.BoundingVolume; import com.jme3.collision.Collidable; import com.jme3.collision.CollisionResults; import com.jme3.export.JmeExporter; import com.jme3.export.JmeImporter; import com.jme3.export.Savable; import com.jme3.material.Material; import com.jme3.util.SafeArrayList...
package io.jooby; import io.jooby.exception.NotAcceptableException; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.nio.charset.StandardCharsets; /** * Render a route output as byte array. * * @author edgar * @since 2.0.0 */ public interface MessageEncoder { /** To string renderer....
package Testing.Package; import steamgameselector.*; import org.junit.*; import static org.junit.Assert.*; import java.util.ArrayList; /** * * @author sfcook */ public class SteamDataTest { private SteamUtils sUtils; private SteamData sdb; @Before public void init() { sUtils=new SteamUtil...
package verification; import java.awt.AWTError; import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.Win...
package verification; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; impor...
package com.ibm.mil.cafejava; import android.content.Context; import com.worklight.wlclient.api.WLClient; import com.worklight.wlclient.api.WLFailResponse; import com.worklight.wlclient.api.WLProcedureInvocationData; import com.worklight.wlclient.api.WLRequestOptions; import com.worklight.wlclient.api.WLResponse; impor...
package com.cube.storm.ui.view.holder.list; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.LinearLayout; import com.cube.storm.UiSettings; import com.cube.storm.ui.R; import com.cube.storm.ui.lib.EventHook; imp...
package alien4cloud.paas.cloudify3.util; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import javax.annotation.Resource; import lombok.extern.slf4j.Slf4j; import org.springframework.security.authentication.TestingAuthenticationToken; import org.springframework.security.core.Authenti...
package co.phoenixlab.common.number; import org.junit.*; import static org.junit.Assert.*; public class ParseIntTest { private static final String WHITESPACE; static { // Fill string with all "whitespace" chars (defined by String.trim() as any code below 0x21) char[] chars = new char[0x21]; ...
package com.frostwire.jlibtorrent.demo; import com.frostwire.jlibtorrent.*; import com.frostwire.jlibtorrent.alerts.Alert; import com.frostwire.jlibtorrent.swig.settings_pack; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; /** * @au...
package com.github.egonw.ops4j; import java.io.IOException; import org.apache.http.HttpException; import org.apache.http.client.ClientProtocolException; import org.junit.Assert; import org.junit.Test; public class ActivityTypesTest extends AbstractOPS4JTest { { super.pickUpConfig(); } @Test public void coun...
package com.github.rconner.anansi; import com.google.common.collect.ImmutableListMultimap; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Multimap; import org.junit.Test; import java.util.Arrays; import java.util.Collections; import ja...
package com.github.rconner.anansi; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ImmutableListMultimap; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Multimap; import org.junit.Test; import java....
package org.noear.weed; import java.util.Map; public abstract class WhereBase<T extends WhereBase> { protected DbContext _context; protected SQLBuilder _builder; protected WhereBase(){ } public WhereBase(DbContext context) { _context = context; _builder = new SQLBuilder(); } ...
package com.relayrides.pushy.apns; import java.io.File; import java.security.cert.Certificate; import java.security.cert.X509Certificate; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Objects; import java.util.Set; import javax.net.ssl.SSLSession; impo...
package com.rhymestore.lang.es; import static com.rhymestore.lang.es.SpanishNumber.getBaseSound; import static org.testng.Assert.assertEquals; import org.testng.annotations.Test; /** * Unit tests for the {@link SpanishNumber} enum. * * @author Serafin Sedano */ public class SpanishNumberTest { @Test public ...
package com.sun.star.wizards.form; import com.sun.star.beans.PropertyValue; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.sdb.CommandType; import com.sun.star.uno.AnyConverter; import com.sun.star.lang.XComponent; import com.sun.star.wizards.common.*; import com.sun.star.wizards.db.DBMetaData; impo...
package raptor.connector.ics; import java.util.StringTokenizer; import org.apache.commons.lang.StringUtils; import raptor.Raptor; import raptor.chat.Bugger.BuggerStatus; import raptor.chat.ChatType; import raptor.chess.AtomicGame; import raptor.chess.BughouseGame; import raptor.chess.ClassicGame; import raptor.chess.Cr...
package databook.persistence.rule; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.irods.jargon.core.connection.IRODSAccount; import or...
package com.shinemo.mpush.client; import com.shinemo.mpush.api.Client; import com.shinemo.mpush.util.DefaultLogger; import org.junit.Test; import java.util.concurrent.locks.LockSupport; import static org.junit.Assert.*; public class MPushClientTest { private String publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBg...
package com.squareup.proto; import com.squareup.proto.EnumType.Value; import com.squareup.proto.MessageType.Label; import java.util.Arrays; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import junit.framework.TestCase; public final class ProtoSchemaParserTest...
package com.legit2.Demigods.Listeners; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.event.EventException; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.buk...
package com.maddyhome.idea.vim.helper; import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.Editor; import com.maddyhome.idea.vim.group.CommandGroups; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; i...
/** * Registers a DownloadReceiver and waits for all Downloads * to complete, then stops * */ package de.danoeh.antennapod.service; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurr...
package com.miviclin.droidengine2d.audio; import java.util.HashMap; import android.content.Context; import android.content.res.AssetFileDescriptor; import android.media.AudioManager; import android.media.SoundPool; import com.miviclin.droidengine2d.resources.AssetsLoader; /** * Manages sounds and allows playing them.<...
package de.danoeh.antennapod.service; import java.io.IOException; import android.R; import android.app.PendingIntent; import android.app.Service; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFi...
package com.swabunga.spell.engine; import java.util.*; import java.io.*; /** * An implementation of <code>SpellDictionary</code> that doesn't cache any words in memory. Avoids the huge * footprint of <code>SpellDictionaryHashMap</code> at the cost of relatively minor latency. A future version * of this class that im...
package com.tisawesomeness.minecord.util; import java.sql.SQLException; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import com.tisawesomeness.minecord.Bot; import com.tisawesomeness.minecord.Config; import com.tisawesomeness.minecord.database.Database; import...
package com.tisawesomeness.minecord.util; import java.awt.Color; import java.time.OffsetDateTime; import java.util.Random; import java.util.Timer; import java.util.TimerTask; import org.apache.commons.lang3.ArrayUtils; import com.tisawesomeness.minecord.Bot; import com.tisawesomeness.minecord.Config; import net.dv8tion...
package com.vinsol.expensetracker.helpers; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.List; import android.app.Activity; import android.graphics.Color; import android.os.AsyncTask; import android.util.TypedValue; import android.view.GestureDetector; import andr...
package org.jboss.remoting3.test; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertNull; import static org.testng.Assert.assertTrue; import java.io.FilterOutputStream; import java.io.IOException; import java.io.InputStream; import java.ut...
package com.virtualfactory.utils; import com.jme3.asset.AssetManager; import com.jme3.bullet.control.GhostControl; import com.jme3.math.FastMath; import com.jme3.renderer.RenderManager; import com.jme3.renderer.ViewPort; import com.jme3.scene.control.AbstractControl; public class BulletinBoardControl extends AbstractCo...
package com.winterbe.java8.samples.concurrent; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.IntStream; /** * @author Benjamin Winterberg * @author Ramazan */ public class Atomic1 { private static fina...
package org.mvel2.tests.core; import org.mvel2.*; import static org.mvel2.MVEL.*; import org.mvel2.ast.ASTNode; import org.mvel2.ast.Function; import org.mvel2.ast.WithNode; import org.mvel2.compiler.CompiledExpression; import org.mvel2.compiler.ExpressionCompiler; import org.mvel2.debug.DebugTools; import org.mvel2.de...
package org.secureauth.restapi.test.Impl; import org.secureauth.sarestapi.SAAccess; import org.secureauth.sarestapi.data.Response.GroupAssociationResponse; import org.secureauth.sarestapi.data.Response.ResponseObject; import org.secureauth.sarestapi.data.Response.UserProfileResponse; import org.secureauth.sarestapi.dat...
package redis.clients.jedis.tests; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.*; import redis.clients.jedis.exceptions.JedisDataException; import redis.clients.jedis.tests.HostAndPortUtil.HostAndPort; import java.io.UnsupportedEncodingException; import java.util....
package seedu.taskmanager.logic; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.taskmanager.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.taskmanager.commons.core.Messages.MESSAGE_INVALID...
package core.textInjection.dialog; import base.BaseDialog; import com.intellij.openapi.fileTypes.PlainTextFileType; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.ComboBox; import com.intellij.openapi.ui.ValidationInfo; import com.intellij.ui.EditorTextField; import com.intellij.ui.componen...
package dr.app.beauti.generator; import dr.app.beauti.components.ComponentFactory; import dr.app.beauti.options.BeautiOptions; import dr.app.beauti.options.PartitionData; import dr.app.beauti.options.PartitionPattern; import dr.app.beauti.options.PartitionSubstitutionModel; import dr.app.beauti.util.XMLWriter; import d...
package dr.app.beauti.generator; import dr.app.beauti.components.ComponentFactory; import dr.app.beauti.components.ancestralstates.AncestralStatesComponentOptions; import dr.app.beauti.components.sequenceerror.SequenceErrorModelComponentOptions; import dr.app.beauti.options.BeautiOptions; import dr.app.beauti.options.P...
package org.mifos.application.accounts.savings.struts.tag; import java.io.IOException; import java.sql.Date; import java.util.List; import java.util.Locale; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import org.mifos.application.accounts.business.AccountActionDateEntity; impo...
package dr.geo.distributions; import dr.math.distributions.MultivariateDistribution; /** * @author Marc Suchard * * Abstract base class for probability distributions on a hyper-sphere S^{d-1} in R^{d}. * Usual cases are: circle (d=2) and sphere (d=3) */ public abstract class HyperSphereDistribution implements Mult...
package com.artemis; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import com.artemis.ArchetypeBuilder.Archetype; import com.artemis.component.ComponentX; import com.artemis.component.ComponentY; import com.artemis.systems.EntityProcessingSystem; public class ArchetypeTest { priv...
package dr.inference.operators; import dr.inference.model.Bounds; import dr.inference.model.Parameter; import dr.inferencexml.operators.SwapOperatorParser; import dr.math.MathUtils; import java.util.List; /** * A generic operator swapping all values (dimensions) between two or more parameters * * @author Marc A. Suc...
package org.verapdf.model.impl.pb.operator.xobject; import org.apache.pdfbox.cos.COSBase; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.pdmodel.PDResources; import org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject; import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject; import org.verapdf.m...
package edu.wpi.first.wpilibj.team2903.commands; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.team2903.OI; /** * * @author bradmiller */ public class Auto extends CommandBase { public Auto() { // Use requires() here to declare subsystem dependencies requires(drive)...
package eu.seebetter.ini.chips.davis; import java.awt.Color; import java.awt.Font; import java.awt.Point; import java.awt.geom.Rectangle2D; import java.io.File; import java.io.IOException; import java.util.Iterator; import java.util.logging.Level; import javax.swing.JComponent; import com.jogamp.opengl.GL; import com.j...
package de.lmu.ifi.dbs.elki.database; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Random; import javax.swing.event.EventListenerList; ...
package de.ptb.epics.eve.data.measuringstation; import de.ptb.epics.eve.data.DataTypes; import de.ptb.epics.eve.data.MethodTypes; import de.ptb.epics.eve.data.TransportTypes; /** * This class representes a access description through a mediated layer like EPICS. * * * @author Stephan Rehfeld <stephan.rehfeld( -at -)...
package de.ust.skill.common.java.internal; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.Set; import de.ust.skill.common.java.api.Access; import de.ust.skill.common.java.api.SkillF...
package ibis.connect.parallelStreams; import ibis.connect.socketFactory.BrokeredSocketFactory; import ibis.connect.socketFactory.ConnectProperties; import ibis.connect.socketFactory.ExtSocketFactory; import ibis.connect.util.MyDebug; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOExce...
package org.navalplanner.web.resourceload; import static org.navalplanner.web.I18nHelper._; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.L...
package info.tregmine.commands; import org.bukkit.ChatColor; import info.tregmine.Tregmine; import info.tregmine.api.TregminePlayer; public class CleanInventoryCommand extends AbstractCommand { public CleanInventoryCommand(Tregmine tregmine) { super(tregmine, "clean"); } @Override public boo...
package it.polimi.hadoop.hadoopnn.ec2; import it.polimi.hadoop.hadoopnn.Configuration; import it.polimi.hadoop.hadoopnn.HadoopException; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.PrintWriter; import java.net.URL; import java.nio.file.Paths; import java.util.ArrayList; import java.u...
package it.uniroma1.lcl.dietrolequinte.loader; import java.io.File; import java.util.List; import it.uniroma1.lcl.dietrolequinte.exception.DirectoryNotFoundException; import it.uniroma1.lcl.dietrolequinte.exception.EmptyDirectoryException; import it.uniroma1.lcl.dietrolequinte.exception.NotADirectoryException; public c...
package tresc.benchmark.dataGen; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import org.apache.log4j.Logger; import org.vagabond.util.CollectionUtils; import org.vagabond.util.DirectedGraph; import or...
// $Id: ComparableArrayList.java,v 1.21 2004/02/25 13:20:44 mdb Exp $ // samskivert library - useful routines for java programs // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANT...
package ualberta.g12.adventurecreator; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android...
package io.compgen.ngsutils.cli.bam; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import htsjdk.samtools.SAMFileHeader; import htsjdk.samtools.S...
package com.salesmanager.shop.fileupload.services; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Service; @ConfigurationProperties("storage") @Service public class StorageProperties { /** ...
package com.brein.api; import com.brein.domain.BreinCategoryType; import com.brein.domain.BreinConfig; import com.brein.domain.BreinResult; import com.brein.domain.BreinUser; import com.brein.domain.results.BreinTemporalDataResult; import com.brein.engine.BreinEngineType; import org.junit.Assert; import org.junit.Test;...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class RobotTemplate extends SimpleRobot { final boolean FEELERS_EXTEND = true; final boolean FEELERS_RETRACT = false; final long ONE_SECOND_IN_US = 1000000; //Varia...
package org.eclipse.mylyn.internal.tasks.ui; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.URLEncoder; import java.nio.channels.FileChannel; import java.nio.channels.F...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.CANJaguar; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.DigitalOutput; import ed...
package org.eclipse.scanning.event.remote; import java.net.URI; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import org.eclipse.scanning.api.device.IRunnableDeviceService; import org.eclipse.scanning.api.device.IScannableDeviceService; import org.ec...
import java.util.*; /* * Commands: L,4 Commands: L,4 Commands: L,6 Commands: R,10 Commands: L,6 = A Commands: L,4 Commands: L,4 Commands: L,6 Commands: R,10 Commands: L,6 = A Commands: L,12 Commands: L,6 Commands: R,10 Commands: L,6 = B Commands: R,8 Commands: R,10 Commands: L,6 = C Commands: R,8 Commands: R,10 Comman...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Compressor; import edu.wpi.first.wpilibj.DriverStationLCD; import edu.wpi.first.wpilibj....
package project; import java.util.*; public class Course { private String courseID; private List<StudentRecord> records; private List<Assignment> assignments; private double homeworkWeight = 0; private double quizWeight = 0; private double testWeight = 0; public Course(String courseID, List<...
package com.sunteam.ebook.util; import java.io.IOException; import android.media.MediaPlayer; import android.os.Handler; /** * MediaPlayer * * @author wzp */ public class MediaPlayerUtils { private static final int MSG_PLAY_COMPLETION = 100; private static MediaPlayerUtils instance = null; private Media...
package org.eclipse.scanning.points; import java.io.File; import java.io.IOException; import java.nio.file.Path; import java.util.Iterator; import java.util.Properties; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.Platform; import org.eclipse.scanning.scisoftpy.python.PythonUtils; import...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class RobotTemplate extends SimpleRobot { final boolean FEELERS_EXTEND = true; final boolean FEELERS_RETRACT = false; final boolean CATAPULT_UP = false; final boole...
package springapp.web; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.we...
package org.eclipse.scanning.points; import java.io.File; import java.io.IOException; import java.util.Iterator; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.Platform; import org.osgi.framework.Bundle; import org.osgi.framework.wiring.BundleWiring; import org.python.core.Py; import org.p...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.D...
package org.jsimpledb.gui; import com.google.common.base.Function; import com.google.common.collect.Iterators; import java.util.Iterator; import org.jsimpledb.CopyState; import org.jsimpledb.JObject; import org.jsimpledb.JSimpleDB; import org.jsimpledb.JTransaction; import org.jsimpledb.SnapshotJTransaction; import org...
package ru.job4j.threads; /** * Class <Name class>. * * @author Alexey Rastorguev (rastorguev00@gmail.com) * @version 0.1 * @since 26.01.2018 */ public class StopThred { private String text; private int countWord = 0; private int time = 0; private Thread t1 = null; private Thread t2 = null; ...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.D...
package cz.metacentrum.perun.wui.pwdreset.pages; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.event.dom.client.BlurEvent; import com.google.gwt.event.dom.client.BlurHandler; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event...