answer
stringlengths
17
10.2M
package blog.common.numerical; /** * Creates MatrixLib objects. * * All code should use this class to create new MatrixLib objects, instead * of importing JamaMatrixLib directly. This allows us to easily change the * underlying implementation in the future. */ public class MatrixFactory { static public MatrixLi...
// Unless required by applicable law or agreed to in writing, software / // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. / package br.shura.venus.compiler; import br.shura.venus.component.AsyncContainer; import br.shura.venus.component.Component; import br.shur...
package br.ufrj.cos.redes.receiver; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.util.Timer; import java.util.TimerTask; import br.ufrj.cos.redes.delayLossSimu...
package cc.mallet.topics; import java.util.Arrays; import java.util.ArrayList; import java.util.zip.*; import java.io.*; import java.text.NumberFormat; import cc.mallet.types.*; import cc.mallet.util.Randoms; /** * A parallel topic model runnable task. * * @author David Mimno, Andrew McCallum */ /* ...
import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTextPane; import javax.swing.JPanel; import javax.swing.JTable; import javax.swing.JOptionPane; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import javax.swing.BorderFactory; import java.io.Serializable; /** * The entr...
package cc.mallet.topics; import java.util.Arrays; import java.util.List; import java.util.ArrayList; import java.util.TreeSet; import java.util.Iterator; import java.util.Formatter; import java.util.Locale; import java.util.concurrent.*; import java.util.logging.*; import java.util.zip.*; import java.io.*; import java...
package com.android.email.activity; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import android.app.AlertDialog; import android.app.Dialog; import com.android.email.K9ListActivity; import android.app.NotificationManager; import android.content.Context; import android.content.DialogInterface; imp...
package com.chromium.fontinstaller; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import android.content.Intent; import android.app.Activity; import android.app.AlertDialog; import android.app.DownloadManager; import android...
package com.dmdirc.installer; import com.dmdirc.installer.cliparser.CLIParser; import java.io.File; import java.io.PrintWriter; import java.io.IOException; /** * Installs DMDirc on linux * * @author Shane Mc Cormack */ public class LinuxInstaller extends Installer { /** * Are we running as root? */ ...
package com.ecyrd.jspwiki.xmlrpc; import java.io.*; import org.apache.log4j.Category; import com.ecyrd.jspwiki.*; import java.util.*; /** * Provides handlers for all RPC routines. * * @author Janne Jalkanen * @since 1.6.6 */ // We could use WikiEngine directly, but because of introspection it would // show just...
package com.esotericsoftware.kryo.util; import static com.esotericsoftware.minlog.Log.*; import com.esotericsoftware.kryo.Serializer; import com.esotericsoftware.kryo.SerializerFactory; import com.esotericsoftware.kryo.serializers.FieldSerializer; import com.esotericsoftware.kryo.util.Generics.GenericType; import java....
package com.hp.hpl.jena.util; import java.io.InputStream; import java.util.*; import com.hp.hpl.jena.JenaRuntime; import com.hp.hpl.jena.vocabulary.LocationMappingVocab; import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.shared.JenaException; import org.apache.commons.logging.*; /** * Alternative locations for...
package com.opencms.core; import java.io.*; import java.util.*; import java.lang.reflect.*; import javax.servlet.*; import javax.servlet.http.*; import source.org.apache.java.io.*; import source.org.apache.java.util.*; import com.opencms.boot.*; import com.opencms.file.*; import com.opencms.util.*; public class OpenCms...
package com.twu.biblioteca.menuObjects; import com.twu.biblioteca.LibraryMember; import com.twu.biblioteca.inputOutputDevice.InputOutputManager; import com.twu.biblioteca.menuObjects.IMenuItem; import java.io.IOException; public class Exit implements IMenuItem { /** * Executes the Exit function */ @Override ...
package com.vmware.vim25.mo.samples; import java.net.URL; import com.vmware.vim25.*; import com.vmware.vim25.mo.*; import com.vmware.vim25.mo.util.*; /** * This sample shows how to get hold of the first VirtualMachine in an inventory and retrieve its properties. * @author sjin */ public class HelloVM { public st...
package com.timepath.swing; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; import javax.swing.JDialog; import...
package com.xruby.compiler; import antlr.RecognitionException; import antlr.TokenStreamException; import com.xruby.compiler.codegen.CompilationResults; import com.xruby.runtime.builtin.ObjectFactory; import com.xruby.runtime.builtin.RubyFixnum; import com.xruby.runtime.builtin.RubyIO; import com.xruby.runtime.builtin.R...
package com.yz.service.imp; import java.io.File; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.annotation.Resource; import org.springframework.stereotype.Component; import com.yz.dao.IPersonDao; import com.yz.dao.ISocialManDao; import com.yz.dao.IUnitDao...
package memorymeasurer; import com.google.common.base.Preconditions; import com.google.common.base.Predicate; import com.google.common.base.Predicates; import com.google.common.base.Supplier; import com.google.common.base.Throwables; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.C...
package hl.jsoncrud; import java.io.IOException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java....
package org.voltdb.utils; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import junit.framework.TestCase; import org.voltdb.VoltDB; import org.voltdb.benchmark.tpcc.TPCCProjectBuilder; import org.voltdb.catalog.Catalog; import org.voltdb.catalog.Cluster; import org.volt...
package structures; import game.DataHandler; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RadialGradientPaint; import java.awt.geom.Point2D; import java.util.ArrayList; /** * A Body is the default class for an object that is representing a Planet. * @author Sean Lewis ...
package taskDo; import Parser.ParsedResult; import commandFactory.CommandAction; import commandFactory.CommandFactory; import commandFactory.CommandType; import commonClasses.Constants; import commonClasses.StorageList; import commonClasses.SummaryReport; public class Executor { public Executor() { StorageL...
import java.util.*; public class TicTacToeInteraction { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); TicTacToe game = new TicTacToe(); Iterator<ArrayList<BoardState>> bestMoveDictionaryKeyIterator = game.getBestMoveDictionary().getKeyIterator(); ...
package sqlancer; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.nio.file.Files; import java.sql.Connection; impor...
package group4; import group3.MovingBlob; import group4.IMovingBlobReduction; import java.util.LinkedList; import java.util.List; import java.util.stream.Collectors; public class BlobFilter implements IMovingBlobReduction { /** * Constant thresholds which do all the magic * All inclusive thresholds *...
package jade.core; import jade.util.leap.List; import jade.util.leap.LinkedList; import jade.util.leap.Iterator; import jade.util.leap.Serializable; import jade.core.behaviours.Behaviour; /** @author Giovanni Rimassa - Universita` di Parma @version $Date$ $Revision$ */ class Scheduler implements Serializable { /** ...
package algorithms.misc; import algorithms.imageProcessing.GreyscaleImage; import algorithms.util.PairInt; import algorithms.util.PairIntArray; import algorithms.util.ResourceFinder; import gnu.trove.iterator.TIntIterator; import gnu.trove.map.TObjectIntMap; import gnu.trove.map.hash.TObjectIntHashMap; import gnu.trove...
package de.lmu.ifi.dbs.linearalgebra; import de.lmu.ifi.dbs.data.RationalNumber; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.StreamTokenizer; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.Format; import java.text.NumberFormat; import java.util.Loca...
package de.wolfi.minopoly.components; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.metadata.FixedMetadataValue; import de.wolfi.minopoly.Main; import de.wolfi.minopoly.components.fields.Field; import de.wolfi.minopoly.events.MoneyEvent; import de.wolfi.minopoly.utils.Dangerous; import de.wolf...
package dr.app.beauti.treespanel; import dr.app.beauti.components.SequenceErrorModelComponentOptions; import dr.app.beauti.*; import dr.app.beauti.options.*; import dr.app.tools.TemporalRooting; import dr.evolution.alignment.Patterns; import dr.evolution.datatype.DataType; import dr.evolution.distance.DistanceMatrix; i...
package edu.iu.grid.oim.servlet; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.cert.CertificateException; import java.sql.SQLExceptio...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package recipease.gui; import java.awt.event.KeyEvent; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Random; import javax.swing.JOptionPa...
package org.voltdb.iv2; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; im...
package org.voltdb.utils; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.sql.Time; import java.util.Map; import java.util.TimeZone; import java.util.Timer; import java.util.TreeMap; import java.util.co...
package org.voltdb.utils; import java.io.*; import java.util.TimeZone; import java.util.concurrent.atomic.AtomicLong; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.voltdb.client.*; import au.com.bytecode.opencsv_voltpatches.CSVReader; /** * CSVLoader is a simple utility to load data from a...
package infn.bed.util; import infn.bed.geometry.GeometricConstants; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; /** * Parses a calibration file. * * @author Angelo Licastro */ public class CalibrationFileParser { /** ...
package io.flutter.run; import com.intellij.codeInsight.hint.HintManager; import com.intellij.codeInsight.hint.HintManagerImpl; import com.intellij.codeInsight.hint.HintUtil; import com.intellij.concurrency.JobScheduler; import com.intellij.ide.actions.SaveAllAction; import com.intellij.notification.Notification; impor...
package it.csttech.dbloader.test; import java.lang.reflect.Method; import java.sql.Date; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import it.csttech.dbloader.orm.BeanInfo; import it.csttech.dbloader.entities.Record; /** * Preliminary ver...
package org.jaxen; /** Implemented by classes that know how to resolve XPath function names and * namespaces to implementations of these functions. * * <p> * By using a custom <code>FunctionContext</code>, new or different * functions may be installed and available to XPath expression writers. * </p> * * ...
package org.apache.velocity.util; import java.io.*; import java.text.*; import java.util.*; public class Trace { /** Set via the trace property. */ public static final boolean ON = active(); /** The logging interface. */ private static final PrintWriter LOG = getLog(); /** Whether to log in detail. ...
package view; import java.util.ResourceBundle; import javafx.scene.Group; import javafx.scene.Node; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.image.Image; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; ...
package net.runelite.client.plugins.lowmemory; import com.google.common.eventbus.Subscribe; import javax.inject.Inject; import net.runelite.api.Client; import net.runelite.api.GameState; import net.runelite.api.events.GameStateChanged; import net.runelite.client.plugins.Plugin; import net.runelite.client.plugins.Plugin...
package net.runelite.client.ui.overlay.infobox; import com.google.common.base.Strings; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Rectangle; import java.util.List; import javax.inject.Inject; import javax.inject.Provider; import javax.inject.Singleton; import net.runel...
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; impor...
package net.kencochrane.raven.sentrystub; import net.kencochrane.raven.sentrystub.auth.AuthValidator; import net.kencochrane.raven.sentrystub.auth.InvalidAuthException; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; import java.io.Byte...
package bizcal.swing; import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.Cursor; import java.awt.Dimension; import java.awt.Font; import java.awt.LayoutManager; import java.awt.Point; import java.awt.Rectangle; import java.util.ArrayList; import java.util.Calendar; import java....
package org.smart4j.plugin.mybatis; import java.lang.reflect.Method; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.smart4j.framework.aop.AspectProxy; import org.smart4j.framework.aop.annotation.Aspect; import org.smart4j.framework.core.ConfigHelper; import org.smart4j.framework.tx.annotation.Servi...
package com.garpr.android.activities; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.ProgressBar; import com.garpr.android.R; import com.garpr.android.calls.Regions; import...
package com.intellij.codeInsight.daemon.impl.quickfix; import com.intellij.codeInsight.intention.impl.TypeExpression; import com.intellij.codeInsight.template.Template; import com.intellij.codeInsight.template.TemplateBuilder; import com.intellij.codeInsight.template.TemplateManager; import com.intellij.openapi.diagnos...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.broad.igv.sam; import net.sf.samtools.SAMFileHeader; import net.sf.samtools.util.CloseableIterator; import org.broad.igv.Globals; import org.broad.igv.PreferenceManager; import org.broad.igv.sam.reader.Alignm...
package com.splicemachine.mrio.api.core; import java.io.IOException; import java.math.BigDecimal; import java.sql.ResultSetMetaData; import java.sql.Connection; import java.sql.Date; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sq...
package hudson.slaves; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import com.gargoylesoftware.htmlunit.html.DomNodeUtil; import com.gargoyleso...
package socialite.dist.master; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import java.io.File; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net....
package org.pentaho.di.ui.repository.repositoryexplorer.controllers; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.HashMap; im...
package at.game.desktop; import at.game.GameTitle; import at.game.utils.Constants; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; import com.badlogic.gdx.tools.texturepacker.TexturePacker; /** * @author Herkt Kevin */ public class Desktop...
import java.util.*; class uri1046{ public static void main(String[] args) { int x,y; Scanner e = new Scanner (System.in); x = e.nextInt(); y = e.nextInt(); if(y <= x) System.out.println("O JOGO DUROU "+(y+24-x)+" HORA(S)"); else System.out.prin...
package com.mixpanel.android.mpmetrics; import android.app.Notification; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Color; import android.net.Uri; import android.os.Build; import android.os.Bundle; import andro...
package cafe.util; import java.util.Arrays; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Set; import java.lang.reflect.Array; import java.nio.ByteOrder; import java.util.AbstractList; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.nio.ShortBuffer; /*...
package com.audacious_software.passive_data_kit.generators.device; import android.annotation.SuppressLint; import android.app.AppOpsManager; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageMan...
package gov.nih.nci.cananolab.service.particle.impl; import gov.nih.nci.cagrid.cananolab.client.CaNanoLabServiceClient; import gov.nih.nci.cagrid.cqlquery.Association; import gov.nih.nci.cagrid.cqlquery.Attribute; import gov.nih.nci.cagrid.cqlquery.CQLQuery; import gov.nih.nci.cagrid.cqlquery.Predicate; import gov.nih....
package org.rstudio.studio.client.workbench.views.source.editors.text; import java.util.ArrayList; import java.util.List; import com.google.gwt.animation.client.AnimationScheduler; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.core.client.JsArrayStr...
package com.forgeessentials.core.preloader.mixin.entity; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityTracker; import net.minecraft.entity.EntityTrackerEntry; import net.minecraft.util.IntHashMap; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; @Mixin(Entity...
package com.insightfullogic.honest_profiler.ports.javafx.model; import static javafx.application.Platform.isFxApplicationThread; import static javafx.application.Platform.runLater; import java.util.concurrent.atomic.AtomicInteger; import com.insightfullogic.honest_profiler.core.profiles.FlameGraph; import com.insightfu...
package org.mym.plog; import org.json.JSONObject; /** * Builder style API; use this class to fit complicated needs. * <p> * NOTE: APIs in {@link PLog} class is for common scenarios and this class is for advanced usage. * Some decor method in {@link PLog} will NOT be added into this class, e.g. * {@link PLog#wtf(Th...
package fr.ens.transcriptome.nividic.om.filters; import fr.ens.transcriptome.nividic.om.BioAssay; /** * This class define a filter for double with a threshold and a comparator. * @author Laurent Jourdren */ public class BioAssayDoubleThresholdFilter extends BioAssayGenericDoubleFieldFilter { private String fie...
package jp.ac.nii.prl.mape.autoscaling.analysis.service; import java.util.Collection; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import jp.ac.nii.prl.mape.autoscaling.analysis.configuration.AnalysisProperties; import jp.ac.nii...
package net.sf.taverna.t2.activities.beanshell; import java.io.StringReader; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashSet; import java.util.List; import net.sf.taverna.t2.activities.dependencyactivity.AbstractAsynchronousDependencyActivity.FileExtFilter; import net.sf.taverna.t2.v...
// Cloud.java package ed.cloud; import java.io.*; import java.net.*; import java.util.*; import java.util.regex.*; import ed.db.DBAddress; import ed.js.*; import ed.js.engine.*; import ed.log.*; public class Cloud extends JSObjectBase { static final boolean FORCE_GRID = ed.util.Config.get().getBoolean( "FORCE-GRID"...
package org.chocosolver.solver.search.strategy.selectors.values; import org.chocosolver.solver.Cause; import org.chocosolver.solver.Model; import org.chocosolver.solver.ResolutionPolicy; import org.chocosolver.solver.exception.ContradictionException; import org.chocosolver.solver.search.strategy.assignments.DecisionOpe...
package org.spongepowered.common.item.inventory.lens.impl.comp; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import org.spongepowered.api.item.inventory.Inventory; import org.spongepowered.common.item.inventory.adapter.InventoryAdapt...
package org.synyx.urlaubsverwaltung.absence.web; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.MessageSource; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.util.StringUtils; import org.springframework...
package team1100.season2010.robot; import team1100.season2010.robot.DashboardPacker; import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.camera.AxisCameraException; import edu.wpi.first.wpilibj.image.ColorImage; import edu.wpi.first.wpilibj.image.NIV...
package org.mtransit.parser.ca_richelieu_citvr_bus; import java.util.HashSet; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.mtransit.parser.DefaultAgencyTools; import org.mtransit.parser.Utils; import org.mtransit.parser.gtfs.data.GCalendar; import org.mtransit.parser.gtfs.data.GCalendarDat...
package com.maxmind.db; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.lang.IllegalAccessException; import java.lang.InstantiationException; import java.lang.reflect.InvocationTargetException; import java.m...
package org.pentaho.platform.dataaccess.datasource.wizard; import java.util.List; import org.pentaho.agilebi.modeler.ModelerPerspective; import org.pentaho.agilebi.modeler.gwt.BogoPojo; import org.pentaho.agilebi.modeler.services.IModelerServiceAsync; import org.pentaho.agilebi.modeler.services.impl.GwtModelerServiceIm...
//@@author A0142102E package guitests; import seedu.tasklist.testutil.TypicalTestTasks; import org.junit.Test; import static org.junit.Assert.assertTrue; public class ClearCommandTest extends TaskListGuiTest { @Test public void clear() { //verify a non-empty list can be cleared assertClearComman...
package me.coley.recaf; import me.coley.recaf.search.*; import me.coley.recaf.workspace.*; import org.junit.jupiter.api.*; import java.io.IOException; import java.util.*; import java.util.stream.Collectors; import static me.coley.recaf.search.StringMatchMode.*; import static org.junit.jupiter.api.Assertions.assertEqual...
package pdp.web; import com.fasterxml.jackson.databind.type.CollectionType; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableList; import com.google.common.net.HttpHeaders; import org.apache.openaz.xacml.api.Attribute; import org.apache.openaz.xacml.api.IdReference; import org.apache.open...
package org.mvel.tests; import java.util.HashMap; import java.util.Map; import junit.framework.TestCase; import org.mvel.MVEL; public class DroolsTest extends TestCase { public void test1() throws Exception { MVEL.executeExpression( MVEL.compileExpression( "new Integer(5)" ), ...
package net.sf.clirr.event; import java.util.Locale; import junit.framework.TestCase; /** * Tests for the Message and MessageManager classes. * <p> * It is assumed here that the other unit tests have forced every Check * class to be loaded into memory, hence all the static Message objects * have been created and r...
package com.baidu.cafe.record; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.Queue; import com.baidu.cafe.local.LocalLib; import com.baidu.cafe.local.Log; impo...
package com.cloudbees.plugins.credentials; import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials; import com.cloudbees.plugins.credentials.domains.Domain; import com.cloudbees.plugins.credentials.domains.DomainRequirement; import com.cloudbees.plugins.credentials.impl.BaseStandardCredentia...
/** @author Andrew McCallum <a href="mailto:mccallum@cs.umass.edu">mccallum@cs.umass.edu</a> */ package cc.mallet.util; // Math and statistics functions public final class Maths { // From libbow, dirichlet.c // Written by Tom Minka <minka@stat.cmu.edu> public static final double logGamma (double x) ...
package Game; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class Team { private List<Player> players; private List<Panel> panels; private String name; private List<Instruction> activeInstructions; private int lives = 3; private int time = 9; /** ...
package main.java; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import main.python.PyInterpreter...
import java.io.IOException; import java.util.Scanner; public class PitRunner { public void runMutation() throws IOException, InterruptedException { String cp, OS = System.getProperty("os.name").toLowerCase(); if(OS.contains("win")){
package com.maven8919.chesschallenge.fengenerator.service; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertEquals; import java.io.File; import java.net.URL; import java.util.List; import java.util.stream.Collectors; import org.junit.Test; import org.junit.runner.RunWith; i...
package net.kerflyn.broceliand.test.configuration; import com.google.inject.Guice; import com.google.inject.Inject; import com.google.inject.Injector; import com.google.inject.persist.PersistService; import com.google.inject.persist.jpa.JpaPersistModule; import net.kerflyn.broceliand.configuration.ControllerModule; imp...
package com.pdsuk.cordova.bluetoothle; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.LinkedList; import java.util.Iterator; import java.util.UUID; import java.lang.reflect.Method; import java.nio.ByteBuffer; import java.io.UnsupportedEncodingException; imp...
package com.jgeppert.struts2.jquery.radio; import com.jgeppert.struts2.jquery.selenium.JQueryIdleCondition; import java.util.Arrays; import java.util.Collection; import java.util.List; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.ope...
package com.cordova.plugin; import org.apache.cordova.CallbackContext; import org.apache.cordova.CordovaArgs; import org.apache.cordova.CordovaInterface; import org.apache.cordova.CordovaPlugin; import org.apache.cordova.CordovaWebView; import org.apache.cordova.PluginResult; import org.json.JSONException; import org.j...
package org.strangeforest.tcb.stats.spring; import java.io.*; import org.springframework.boot.actuate.health.*; import org.springframework.context.annotation.*; import org.springframework.stereotype.*; import ch.qos.logback.core.util.*; @Component @Profile("openshift") public class MemoryHealthIndicator extends OpenShi...
package org.b3mn.poem; import java.io.File; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.Hashtable; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import...
package cc.lupine.quicksocial.shareutils; import java.io.File; import org.acra.ACRA; import twitter4j.AsyncTwitter; import twitter4j.AsyncTwitterFactory; import twitter4j.Status; import twitter4j.StatusUpdate; import twitter4j.TwitterAdapter; import twitter4j.TwitterException; import twitter4j.TwitterListener; import t...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package tonegod.gui.controls.text; import com.jme3.font.BitmapFont; import com.jme3.font.BitmapText; import com.jme3.font.LineWrapMode; import com.jme3.font.Rectangle; import com.jme3.input.KeyInput; import com.jme3.inpu...
package de.danielnaber.languagetool.rules.patterns; import java.util.ArrayList; import java.util.List; import de.danielnaber.languagetool.AnalyzedSentence; import de.danielnaber.languagetool.AnalyzedToken; import de.danielnaber.languagetool.AnalyzedTokenReadings; import de.danielnaber.languagetool.Language; import de.d...
package ucar.nc2.iosp.uf; import ucar.unidata.io.RandomAccessFile; import ucar.nc2.iosp.cinrad.Cinrad2Record; import java.nio.ByteBuffer; import java.io.IOException; import java.util.*; public class UFheader { ucar.unidata.io.RandomAccessFile raf; ucar.nc2.NetcdfFile ncfile; static final boolean littleEndia...
package script.memodb.data; import java.io.IOException; import java.util.concurrent.atomic.AtomicInteger; public class MDataFile<T extends MData> { public static final int MDATAFILE_MAXSIZE_CHUNK = 1024 * 1024 * 1024; public static final int MDATAFILE_MAXSIZE_INDEX = 256 * 1024 * 1024; public static final i...
package tools; import static org.junit.Assert.*; import org.junit.FixMethodOrder; import org.junit.Ignore; import org.junit.Test; import org.junit.runners.MethodSorters; import java.util.Map.Entry; /** * * @author cmantas */ @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class CSARParserTest { public CSARP...