answer
stringlengths
17
10.2M
package org.intellij.ibatis; import com.intellij.codeInsight.completion.CompletionUtil; import com.intellij.codeInspection.InspectionToolProvider; import com.intellij.facet.FacetTypeRegistry; import com.intellij.ide.IconProvider; import com.intellij.javaee.ExternalResourceManager; import com.intellij.openapi.components...
package org.joval.plugin.adapter.cisco.ios; import java.util.Collection; import java.util.List; import java.util.NoSuchElementException; import java.util.StringTokenizer; import java.util.Vector; import javax.xml.bind.JAXBElement; import oval.schemas.common.MessageType; import oval.schemas.common.MessageLevelEnumeratio...
// Sep 14, 2000: // Fixed comments to preserve whitespaces and add a line break // when indenting. Reported by Gervase Markham <GRM@dataconnection.com> // Sep 14, 2000: // Fixed serializer to report IO exception directly, instead at // the end of document processing. // Reported by Patrick Higgins <phiggins@transz...
package org.nutz.dao.impl.entity; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.sql.Connection; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.sql.DataSource;...
package org.appwork.utils.swing.dialog; import java.awt.Color; import java.awt.Component; import java.awt.Dialog.ModalityType; import java.awt.Dimension; import java.awt.Image; import java.awt.Point; import java.awt.Toolkit; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener...
package org.nutz.mvc.adaptor.injector; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.nutz.lang.Strings; import org.nutz.lang.inject.Injecting; /** * PairUploadAdaptor * getreferMapMapkey * * @author ...
package org.appwork.utils.swing.dialog; import java.awt.Dimension; import java.awt.Frame; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.HierarchyEvent; import java.awt.event.HierarchyListener; import java.awt.event.WindowEv...
package org.objectweb.proactive.core.component; import java.io.Serializable; import org.apache.log4j.Logger; import org.objectweb.fractal.api.Interface; /** * Stores a binding between a client interface and a server interface. * Only composite components have their bindings stored in such manner. * Primitive compone...
package org.ensembl.healthcheck.testcase.generic; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Statement; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.ensembl.healthcheck.AssemblyNameInfo; import org.ensembl.healthcheck.DatabaseRegistryEntry; import org.ensembl.he...
package org.opencms.jsp.util; import org.opencms.ade.configuration.formatters.CmsFormatterBeanParser; import org.opencms.ade.configuration.formatters.CmsFormatterConfigurationCache; import org.opencms.file.CmsFile; import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.file.CmsResour...
package org.rubyforge.debugcommons; import java.io.File; 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.util.List; import org.rubyforge.debugcommons.RubyDebugge...
package org.loklak.harvester.strategy; import org.loklak.api.search.SearchServlet; import org.loklak.api.search.SuggestServlet; import org.loklak.data.DAO; import org.loklak.harvester.PushThread; import org.loklak.harvester.TwitterAPI; import org.loklak.harvester.TwitterScraper; import org.loklak.objects.MessageEntry; ...
package org.madlonkay.supertmxmerge.data.JAXB; import gen.core.tmx14.Tuv; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Collections; import java.util.List; import java.util.Map; import org.madlonkay.supertmxmerge.data.CannotMergeException; import org.madlonkay.sup...
package org.texastorque.texastorque2015.auto; public class DriveAuto extends AutoMode { //test auto to try out commands and raw inputs. @Override public void run() { System.out.println("Starting drive auto!"); runCommand(new DriveDistance("DriveForward", 10, 0.25, 10)); } }
package org.metawatch.manager.actions; import org.metawatch.manager.apps.InternalApp; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.provider.ContactsContract; import android.provider.ContactsContract.CommonDataKinds.Phone; public cl...
package org.nschmidt.ldparteditor.data; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Queue; import java.util.Set; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.SynchronousQueue; import j...
// This file was generated by RobotBuilder. It contains sections of // code that are automatically generated and assigned by robotbuilder. // These sections will be updated in the future when you export to // Java from RobotBuilder. Do not put any code or make any change in // the blocks indicating autogenerated code o...
package org.nschmidt.ldparteditor.data; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Queue; import java.util.Set; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.ato...
package org.opencms.ade.publish; import org.opencms.ade.containerpage.CmsDetailOnlyContainerUtil; import org.opencms.ade.publish.shared.CmsProjectBean; import org.opencms.ade.publish.shared.CmsPublishOptions; import org.opencms.file.CmsObject; import org.opencms.file.CmsProject; import org.opencms.file.CmsProperty; imp...
package org.haggle.LuckyMe; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.plasmarobotics.jim.controls; import edu.wpi.first.wpilibj.Joystick; /** * * @author Allek */ public class PlasmaGamepad extends Joystick { private ToggleableButton aButton = new ToggleableButton(this, ...
package com.urx.android; import android.os.Build; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.loopj.android.http.AsyncHttpClient; import com.loopj.android.http.AsyncHttpResponseHandler; import com.loopj.android.http.SyncHttpClient; import com.urx.core.*; import com.urx....
package org.plugin.dot.preview; import com.intellij.codeHighlighting.BackgroundEditorHighlighter; import com.intellij.openapi.Disposable; import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.event.DocumentEvent; import com.intellij.openapi.editor.event.DocumentListener; import com.intellij.op...
package org.usfirst.frc.team2503.r2016.control; import java.util.Date; public class Ticker implements Runnable { @Override public void run() { while(true) { long dt0 = new Date().getTime(); this._tickable.tick(); long dt1 = new Date().getTime(); long d = d...
package picoded.JStruct.module.site; /// Java imports import java.util.*; /// Picoded imports import picoded.conv.*; import picoded.struct.*; import picoded.servlet.*; import picoded.JStruct.*; import picoded.struct.query.*; /// A simple shopping cart system, which is built ontop of MetaTable, and AtomicLongMap public ...
// This file is part of the OpenNMS(R) Application. // OpenNMS(R) is a derivative work, containing both original code, included code and modified // and included code are below. // OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc. // This program is free software; you can redistribute it and/or modify // ...
package br.com.caelum.brutal.dao; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import net.vidageek.mirror.dsl.Mirror; import org.junit.Before; import org.junit.Test; import br.com.caelum.brutal.infra.Digester; import br.com.caelum.brutal.infra.MD5; import br.com.caelum.brutal....
package com.crawljax.core.plugin; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.File; import java.util.Hashtable; import java.util.List; import org.apache.commons.configuration.ConfigurationException; import org.apach...
package com.github.gchudnov.squel; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * Test Selection */ public class SelectTest { @Test public void simpleQuery() { String actual = Squel.select() .from("table") .toString(); String expected ...
package com.projectkaiser.scm.vcs; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.util.HashSet; import java.util.Set; import org.eclipse.jgit.api.CreateBranchCommand; import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.errors.CheckoutConflictException; import org.eclipse.jgi...
package de.hpi.bpt.chimera.execution; import java.util.UUID; import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.Application; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.JerseyTest; import org.junit.After; import org.junit.Rule; import org.mockserver.client.server.MockSe...
package org.cactoos.func; import java.io.IOException; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; /** * Test case for {@link IoCheckedBiFunc}. * @author Mehmet Yildirim (memoyil@gmail.com) * @version $Id$ * @since 0.13 * @checkstyle JavadocMethodCheck (500 lines) */ pub...
package org.cfwheels.cfwheels; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import java.util.ArrayList; import j...
package seedu.address.logic; import com.google.common.eventbus.Subscribe; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import seedu.address.commons.core.EventsCenter; import seedu.address.logic.commands.*; import seedu.address.com...
package seedu.ezdo.commons.util; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.File; import java.io.IOException; import org.junit.Rule; import org.junit.Test; import org.junit.rules....
package org.apache.commons.betwixt; import java.io.FileInputStream; import java.io.InputStream; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.util.List; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.textui...
package org.jdesktop.swingx.painter; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import javax.swing.Action; import javax.swing.Box; import javax.swing.JComponent; import javax.swing.JLabel; import org.jdesktop.swingx.InteractiveTestCase; import org.jdesktop.swingx.JXFrame; i...
package uk.org.bobulous.java.collections; import java.math.BigInteger; import java.util.ArrayList; import java.util.BitSet; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.u...
package us.kbase.nextgen.dapi; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.util.Hashtable; import java.util.List; import java.util.Ma...
package cn.cerc.ui.core; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.HashMap; import java.util.Map; public class UrlRecord { private String site; private String name; private String title; private String target; private String hintMsg; private String...
package cn.cerc.ui.parts; import cn.cerc.mis.core.AbstractJspPage; import cn.cerc.mis.core.Application; import cn.cerc.mis.core.IForm; import cn.cerc.mis.language.R; import cn.cerc.ui.core.Component; import cn.cerc.ui.core.HtmlWriter; import cn.cerc.ui.core.UrlRecord; import java.util.ArrayList; import java.util.List; ...
package uk.co.cntwo.pilllogger.fragments; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.app.Fragment; import android.util.SparseIntArray; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView...
package org.postgresql.jdbc; import org.postgresql.Driver; import org.postgresql.PGNotification; import org.postgresql.PGProperty; import org.postgresql.copy.CopyManager; import org.postgresql.core.BaseConnection; import org.postgresql.core.BaseStatement; import org.postgresql.core.CachedQuery; import org.postgresql.co...
package p7_group3.LaserTag.controller; import java.io.IOException; import java.net.URL; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Time; import java.util.Date; import java.util.ResourceBundle; import ...
package p7_group3.LaserTag.controller; import java.io.IOException; import java.net.URL; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Time; import java.util.Date; import java.util.ResourceBundle; import ...
// Source: package com.CMPUT301W15T02.teamtoapp; import java.lang.reflect.Array; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Observable; import java.util.Observer; import android.net.wifi.WifiConf...
package io.tetrapod.core.rpc; import static io.tetrapod.protocol.core.CoreContract.*; import io.tetrapod.core.Session; import io.tetrapod.core.rpc.Structure.Security; import io.tetrapod.core.utils.*; import io.tetrapod.core.utils.AuthToken.Decoded; import io.tetrapod.protocol.core.*; public class SessionRequestContext ...
package org.apps8os.trafficsense.core; import java.util.ArrayList; import org.apps8os.trafficsense.android.Constants; import org.apps8os.trafficsense.util.TimeParser; import com.google.gson.JsonArray; import com.google.gson.JsonObject; /** * Top level object holding a journey in internal structure. * Includes also pr...
package edu.wustl.catissuecore.action; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Collection; 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 java.util.StringTokenizer; import java....
package com.arjuna.mw.wsas.completionstatus; /** * The completion status is unknown. This is a transient and should eventually * become determined. * * @author Mark Little (mark@arjuna.com) * @version $Id: Unknown.java,v 1.1 2002/11/25 10:51:42 nmcl Exp $ * @since 1.0. */ public class Unknown implements Completi...
package com.ninty.system.setting; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.media.AudioManager; import android.net.wifi.WifiManager; import android.provider.Settings; import com.facebook.react.bridge.Argum...
package team046; import battlecode.common.*; public class RobotPlayer { private static RobotController rc; private static int round; private static double power; private static int zergRushChannel = randomWithRange(0, GameConstants.BROADCAST_MAX_CHANNELS); private static int zergRushCode = randomWit...
package ch.epfl.sweng.project; import android.os.SystemClock; import android.support.test.espresso.Espresso; import android.support.test.espresso.contrib.DrawerActions; import android.support.test.espresso.contrib.NavigationViewActions; import android.support.test.rule.ActivityTestRule; import android.support.test.runn...
package ca.ualberta.cs.linkai.beep; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import java.util.ArrayList; public class WelcomeActivity...
package com.almoturg.sprog.presenter; import com.almoturg.sprog.data.MarkdownConverter; import com.almoturg.sprog.data.UpdateHelpers; import com.almoturg.sprog.model.Poem; import com.almoturg.sprog.model.Poems; import com.almoturg.sprog.model.PreferencesRepository; import com.almoturg.sprog.view.MainActivity; import co...
package com.bearddev.cityguide; import android.app.Fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.androidquery.AQuery;...
package com.example.ankit.mixlyrics; import android.app.ProgressDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.ImageView; i...
package com.fei_ke.crashreport; import com.fei_ke.crashreport.db.CrashInfo; import com.fei_ke.crashreport.db.RecordDao; import com.fei_ke.crashreport.ui.CrashDialog; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import ...
package com.joy.app.activity.poi; import android.app.Activity; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.widget.AppCompatButton; import android.support.v7.widget.AppCompatCheckBox; import android....
package com.stan.customdialogfragment; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.view.View; import com.stan.library.AbstractDialogFragment; public class CustomDialog extends AbstractDialogFragment implements View.OnClickListener { @Override public int setLayou...
package edu.usc.parknpay.seeker; import android.content.Context; import android.content.Intent; import android.location.Address; import android.location.Geocoder; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androi...
package im.tny.segvault.disturbances; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; import android.os.B...
package me.devsaki.hentoid.adapters; import android.content.Context; import android.content.Intent; import android.os.SystemClock; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.recycle...
package org.ieatta.activity; import android.content.Intent; import android.content.res.Resources; import android.support.annotation.DimenRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.annotation.VisibleForTesting; import org.ieatta.IEAApp; import org.i...
package org.sil.bloom.reader.models; import android.app.Activity; import android.content.Context; import android.net.Uri; import android.os.Environment; import android.util.Log; import android.widget.Toast; import org.json.JSONArray; import org.json.JSONObject; import org.sil.bloom.reader.BloomFileReader; import org.si...
package org.commcare.dalvik.activities; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.PowerManager; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.util.Log;...
package org.commcare.dalvik.activities; import org.commcare.android.database.global.models.ApplicationRecord; import org.commcare.android.framework.CommCareActivity; import org.commcare.android.framework.ManagedUi; import org.commcare.android.framework.UiElement; import org.commcare.android.framework.WrappingSpinnerAda...
package org.commcare.models.database.app; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.util.Log; import net.sqlcipher.database.SQLiteDatabase; import org.apache.commons.lang3.StringUtils; import org.commcare.android.database.app.models.FormDefRecord; import org....
package org.odk.collect.android.activities; import android.annotation.SuppressLint; import android.app.ActionBar; import android.app.AlertDialog; import android.content.BroadcastReceiver; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.content.Dia...
package co.infinum.pokemon.test; import com.squareup.okhttp.mockwebserver.MockResponse; import com.squareup.okhttp.mockwebserver.RecordedRequest; import junit.framework.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.Robolectric; import org.robolectric.RuntimeEnvironment; import o...
package winterwell.markdown.editors; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; im...
package aufgabe1.algorithms; import aufgabe1.Marker; import aufgabe1.Vertex; import org.jgrapht.Graph; import org.jgrapht.Graphs; import org.jgrapht.graph.DefaultWeightedEdge; import java.util.List; public class Dijkstra { private final Graph<Vertex, DefaultWeightedEdge> graph; private final Vertex startVertex;...
package org.bouncycastle.jce; import java.io.IOException; import java.security.Principal; import java.util.Hashtable; import java.util.Vector; import org.bouncycastle.asn1.ASN1Encoding; import org.bouncycastle.asn1.ASN1InputStream; import org.bouncycastle.asn1.ASN1Sequence; import org.bouncycastle.asn1.x500.X500Name; i...
package test; import static org.assertj.core.api.Assertions.assertThat; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Method; import java.net.URL; import java.net.URLClassLoader; import java.util.List; import java.util.Properties; import java.util.concurrent.TimeU...
package test; import java.io.File; import java.util.Properties; import java.util.jar.Manifest; import aQute.bnd.header.Attrs; import aQute.bnd.header.OSGiHeader; import aQute.bnd.header.Parameters; import aQute.bnd.osgi.Analyzer; import aQute.bnd.osgi.Builder; import aQute.bnd.osgi.Constants; import aQute.bnd.osgi.Jar;...
package ru.job4j.wait; /** * Class <Name class>. * * @author Alexey Rastorguev (rastorguev00@gmail.com) * @version 0.1 * @since 11.02.2018 */ public class SimpleLock { private boolean block = false; private Thread lockThred = null; private int lockCount = 0; public void lock() { Thread cur...
package ru.job4j.jdbc; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.sql.*; import java.util.ArrayList; public class DbIterator { private static final Logger LOG = LoggerFactory.getLogger(DbIterator.class); // private DataConnection dataConnection; public DbIterator() { //this....
package de.gurkenlabs.litiengine.tweening; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import de.gurkenlabs.litiengine.Game; import de.gurkenlabs.litiengine.ILaunchable; import de.gurkenlabs.litiengine.IUpdateable; /** * The TweenEngine is the central manager for Tweens. It tracks all current ...
package de.lmu.ifi.dbs.elki.math; import de.lmu.ifi.dbs.elki.utilities.pairs.Pair; /** * Class for the typical case of an aggregating (e.g. counting, averaging) * Histogram. * * @author Erich Schubert * * @param <T> Type of data in histogram * @param <D> Type of input data */ public class AggregatingHistogram<T...
package com.rultor.base; import com.jcabi.aspects.Immutable; import com.jcabi.aspects.Loggable; import com.rultor.spi.Proxy; import com.rultor.spi.Work; import java.util.Collection; import javax.validation.constraints.NotNull; import lombok.EqualsAndHashCode; /** * Restricts access for certain users. * * @author Yeg...
package com.s3auth.relay; import com.rexsl.core.Manifests; import com.s3auth.hosts.Host; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URI; import org.apache.commons.io.IOUtils; /** * Local host with data. * * @author Yegor Bugayenko (yegor@tpc2.com) * @v...
package dr.evomodel.continuous; import dr.evolution.tree.MultivariateTraitTree; import dr.evolution.tree.NodeRef; import dr.evolution.tree.Tree; import dr.evomodel.branchratemodel.DiscretizedBranchRates; import dr.evomodel.tree.TreeModel; import dr.evomodel.tree.TreeStatistic; import dr.geo.math.SphericalPolarCoordinat...
package dr.inference.operators.hmc; import cern.colt.matrix.DoubleFactory2D; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; import cern.colt.matrix.impl.DenseDoubleMatrix2D; import cern.colt.matrix.linalg.Algebra; import dr.inference.hmc.GradientWrtParameterProvider; import dr.inference...
package dr.inference.trace; import dr.math.LogTricks; import dr.math.MathUtils; import dr.util.TaskListener; import java.util.ArrayList; import java.util.List; /** * @author Marc Suchard * @author Alexei Drummond * <p/> * Source translated from model_P.c (a component of BAli-Phy by Benjamin Redeling...
package edu.dynamic.dynamiz.controller; import static org.junit.Assert.*; import org.junit.Test; import edu.dynamic.dynamiz.parser.CommandLine; import edu.dynamic.dynamiz.parser.Options; import edu.dynamic.dynamiz.parser.Parser; import edu.dynamic.dynamiz.storage.Storage; import edu.dynamic.dynamiz.structure.ToDoItem; ...
/* * FRC Team 53: The Alien Cow Abductors * 2012 FRC Competition "Rebound Rumble" * Released under GNU GPL v. 3 or later */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.image.ParticleAnalysisReport; /** * * @...
package ru.stqa.pft.sandbox; public class MyHomeWork2 { public static void main(String[] args) { Point p1 = new Point(2,3); Point p2 = new Point(-3,0); System.out.println("Расстояние между точкой А(" + p1.x + "; " + p1.y + ") " + "и точкой В(" + p2.x + "; " + p2.y + ") = " + p1.distance(p2)); ...
import config.ConfigExtractor; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertTrue; import java.util.Enumeration; public class ConfigExtractorTest { @Test public void getProperties() { int propertyCount = 0; Enumeration<String> properties = ConfigExtrac...
package com.ashish.convertforme; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.gesture.GestureOverlayView; import android.os.Bu...
package experimentalcode.elke.algorithm.lof; import java.util.List; import de.lmu.ifi.dbs.elki.algorithm.outlier.LOF; import de.lmu.ifi.dbs.elki.data.DatabaseObject; import de.lmu.ifi.dbs.elki.database.Database; import de.lmu.ifi.dbs.elki.database.DatabaseEvent; import de.lmu.ifi.dbs.elki.database.DatabaseListener; imp...
package fitnesse.testsystems.slim; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import fitnesse.testsystems.ExecutionResult; import fitnesse.testsystems.TestPage; import fitnesse...
package io; import interfaces.IOable; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; /** * Classe representant un ensemble d'octets. Celle-ci permet de manipuler divers types de donnees * @author Alexis * @see IOable */ public class IO implements IOable { public static final byte...
package soot.jimple.infoflow.android.axml; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import pxb.android.axml.AxmlWriter; import pxb.android.axml.NodeVisitor; import soot.Scene; import soot.SootClass; import soot.SootFie...
package org.voltcore.logging; import static com.google_voltpatches.common.base.Preconditions.checkArgument; import java.io.File; import java.io.IOException; import java.io.StringReader; import java.util.Enumeration; import java.util.MissingResourceException; import java.util.ResourceBundle; import org.apache.log4j.Appe...
package com.misha.dedi.tests; import org.junit.Assert; import org.junit.Test; import com.misha.dedi.annotations.Autowired; import com.misha.dedi.annotations.Component; import com.misha.dedi.exceptions.UnexpectedImplementationCountException; /** * Tests that subclasses are properly injected for their super classes. */...
package com.networknt.schema; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import java.io.FileNotFoundException; import java.io.IOException; import java.net.MalformedURLException; import java.net.URI; import java.net.URL; import java.net.UnknownHostException; import java.util.HashMa...
package is.ru.coolpeople.tictactoe; import org.junit.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest public class GameTest { @Test public void testMakesGame () { Game g = new Game(); assertFalse(g == null); } }
package net.ripe.commons.ip; import static net.ripe.commons.ip.PrefixUtils.*; import static org.junit.Assert.*; import java.math.BigInteger; import java.util.Arrays; import java.util.Collections; import org.junit.Test; public class PrefixUtilsTest { @Test public void shouldFindBiggestAndSmallestPrefixWhenRangeI...
package org.animotron.operator; import static org.animotron.Expression.*; import org.animotron.ATest; import org.animotron.Expression; import org.animotron.operator.query.ANY; import org.animotron.operator.query.GET; import org.animotron.operator.relation.HAVE; import org.animotron.operator.relation.IS; import org.anim...
package org.cactoos.iterable; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; /** * Test case for {@link StickyList}. * @a...