answer
stringlengths
17
10.2M
package org.basex.query.value.item; import java.io.*; import org.basex.io.*; import org.basex.io.in.*; import org.basex.query.*; import org.basex.query.func.*; import org.basex.query.util.*; import org.basex.util.*; public final class B64Stream extends B64 { /** File reference. */ private final IO input; /** Erro...
package tictactoe.GameMechanics; import java.util.ArrayList; import java.util.List; public class BoardHistory { private List<Board> boards = new ArrayList<Board>(); /** * Ctor: board histories always start with just an empty board. */ public BoardHistory() { boards.add(new Board()); } ...
package xyz.acmer.entity.contest; import xyz.acmer.entity.user.User; import javax.persistence.*; import java.util.Date; import java.util.HashSet; import java.util.Set; @Entity(name = "contest") public class ContestInfo { private Integer contestId; private User creater; private String title; private Date...
package org.dannil.httpdownloader.model; import java.io.Serializable; import java.util.Collection; import java.util.LinkedList; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import j...
package org.drivrhq.drivr.web.page; import com.google.common.base.Preconditions; import org.apache.commons.lang3.NotImplementedException; import org.drivrhq.drivr.web.page.interfaces.UIElementInt; import org.drivrhq.drivr.utils.exception.DrivrInterruptionException; import org.openqa.selenium.*; import org.openqa.seleni...
package org.intellimate.server; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.Message; import com.google.protobuf.util.JsonFormat; import org.intellimate.server.izou.Communication; import org.intellimate.server.jwt.JWTHelper; import org.intellimate.server.jwt.JWTokenPassed; impor...
package org.jabref.gui.entryeditor; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.util.Map; import java.util.Objects; import javax.swing.undo.UndoManager; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; import javafx.col...
package org.jham.transferobjects; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name="keyholder") public class KeyHolderTO { private Integer key; public KeyHolderTO() { } public KeyHolderTO(Integer key) { setKey(key); } @Xml...
package org.kitteh.deathlockout; import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityDeathE...
package org.lightmare.utils.earfile; import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Set; import java.util.jar.JarEntry; import java.util.jar.JarFile; import org.lightmare.jpa.ConfigLoader; impo...
package org.lightmare.utils.earfile; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Enumeration; import java.util.Set; import java.util.UUID; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import java.util...
package org.mitre.synthea.export; import static org.mitre.synthea.export.ExportHelper.nextFriday; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Path; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; impor...
package org.mitre.synthea.export; import static org.mitre.synthea.export.ExportHelper.nextFriday; import com.google.gson.JsonObject; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Path; import java.text.SimpleDateFormat; import java.util.A...
package org.mitre.synthea.export; import static org.mitre.synthea.export.ExportHelper.iso8601Timestamp; import com.google.gson.JsonObject; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Path; import java.util.HashMap; import java.util.Map; import java.util.Random; impor...
package org.mklab.taskit.shared.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import net.sf.gilead.pojo.gwt.LightEntity; /** * @author teshima * @version $Revision$, Jan 25, 2011 */ @Entity(name = "REPORT") public final class Report extends LightEntity ...
package org.opennars.inference; import org.opennars.control.DerivationContext; import org.opennars.control.TemporalInferenceControl; import org.opennars.entity.*; import org.opennars.io.Symbols; import org.opennars.language.*; import org.opennars.operator.Operation; import java.util.*; /** * * @author Pei Wang * @au...
package org.vaadin.viritin.form; import com.vaadin.ui.AbstractComponentContainer; import com.vaadin.ui.AbstractField; import com.vaadin.ui.AbstractTextField; import com.vaadin.ui.Button; import com.vaadin.ui.Component; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.UI;...
package pl.hycom.pip.messanger.model; import java.io.Serializable; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.util.Set; import lombok.Data; @Data @Entity @Table(name = "PRODUCTS") public class Product implements Serializable { private static final long serialVersionUID = 92...
package se.kth.csc.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Controller; import org.springframework.transaction.annotati...
package seedu.address.logic.parser; import java.util.regex.Pattern; import seedu.address.logic.parser.ArgumentTokenizer.Prefix; /** * Contains Command Line Interface (CLI) syntax definitions common to multiple commands */ public class CliSyntax { /* Prefix definitions */ public static final Prefix PREFIX_STAR...
package wasdev.sample.servlet; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.Enumeration; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; ...
package io.bitsquare.gui.components; import io.bitsquare.gui.main.overlays.editor.PeerInfoWithTagEditor; import io.bitsquare.user.Preferences; import javafx.geometry.Point2D; import javafx.scene.Group; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.control.Label; impo...
package water.hadoop; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Counter; import org.apache.hadoop.mapreduce.Mapper; import water.H2O; import water.util.Log; import water.util.StringUtils; import java.io.*; import java.net.InetSocketAddress; import ...
package app.hongs.serv.matrix; import app.hongs.Cnst; import app.hongs.Core; import app.hongs.HongsException; import app.hongs.action.ActionHelper; import app.hongs.action.FormSet; import app.hongs.action.NaviMap; import app.hongs.db.DB; import app.hongs.db.Model; import app.hongs.db.Table; import app.hongs.db.util.Fet...
package com.ikasoa.core.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * * @author <a href="mailto:larry7696@gmail.com">Larry</a> * @version 0.2 */ public class StringUtil { private static final Logger LOG = LoggerFactory.getLogger(StringUtil.class); public static boolean isEmpty(Str...
// Nexus JVMIO - I/O and network services for Nexus built on java.nio package com.samskivert.nexus.io; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.lang.reflect.Method; import java.lang.reflect.Modifier;...
package com.fsck.k9.helper; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Locale; import android.util.Log; import com.fsck.k9.K9; public class FileHelper { /** * Regular expression that represents characters we won't allow in file names. * * <p...
/* The isBadVersion API is defined in the parent class VersionControl. boolean isBadVersion(int version); */ public class Solution extends VersionControl { public int firstBadVersion(int n) { int l = 1, r = n; while (l <= r) { // key point: avoid overflow which causes strange behav...
package org.jaudiotagger.tag.wma; import java.io.File; import junit.framework.TestCase; import org.jaudiotagger.AbstractTestCase; import org.jaudiotagger.audio.AudioFile; import org.jaudiotagger.audio.AudioFileIO; import org.jaudiotagger.audio.asf.util.Utils; import org.jaudiotagger.tag.Tag; /** * Base class for WMA t...
package us.gov.dod.standard.ssrf._3_1; import java.util.*; import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import us.gov.dod.standard.ssrf._3_1.adapter.*; import us.gov.dod.standard.ssrf._3_1.adapter.types.*; import us.gov.dod.standard.ssrf._3_1.allotment.POCInformation...
package us.kbase.common.service; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import org.apache.commons.io.IOUtils; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.ObjectMapper; /** Methods for checkin...
package org.perl6.rakudo; import java.util.*; import org.perl6.nqp.runtime.*; import org.perl6.nqp.sixmodel.*; import org.perl6.nqp.sixmodel.reprs.ContextRefInstance; @SuppressWarnings("unused") public final class Binder { /* Possible results of binding. */ public static final int BIND_RESULT_OK = 0; ...
package xhsun.gw2api.guildwars2.model.util; import java.util.List; /** * Character inventory bag item model class * @see Inventory character inventory item * @author xhsun * @since 2017-02-07 */ public class Bag { private long id; private int size; private List<Inventory> inventory; public long get...
package algorithms.imageProcessing.transform; import algorithms.matrix.MatrixUtil; import algorithms.misc.CubicRootSolver; import algorithms.misc.PolynomialRootSolver; import java.util.Arrays; import no.uib.cipr.matrix.NotConvergedException; /** * utility methods for camera intrinsic and extrinsic matrices. * * @aut...
package io.ray.runtime; import com.google.common.base.Preconditions; import com.google.gson.Gson; import io.ray.api.BaseActorHandle; import io.ray.api.id.ActorId; import io.ray.api.id.JobId; import io.ray.api.id.UniqueId; import io.ray.api.runtimecontext.ResourceValue; import io.ray.runtime.config.RayConfig; import io....
package com.kloudtek.idvkey.sdk; import com.fasterxml.jackson.databind.ObjectMapper; import com.kloudtek.kryptotek.DigestAlgorithm; import com.kloudtek.kryptotek.jce.JCECryptoEngine; import com.kloudtek.kryptotek.key.SignAndVerifyKey; import com.kloudtek.kryptotek.key.SignatureVerificationKey; import com.kloudtek.krypt...
package org.jamocha.rete.visualisation; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.RenderingHints; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; import java.awt.ev...
package protka.main; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties; import protka.FastaItem; import protka.io.ProteinStatsArffWriter; import protka.io.FastaReader; import protka.stat.Pro...
package org.ccnx.ccn.test.impl; import java.io.IOException; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import junit.framework.Assert; import org.ccnx.ccn.CCNFilterListener; import org.ccnx.ccn.CCNInterestListener; import org.ccnx.ccn.config.SystemConfiguration; import org.ccnx.ccn.prot...
package mu.nu.nullpo.game.subsystem.mode; import mu.nu.nullpo.game.component.BGMStatus; import mu.nu.nullpo.game.component.Block; import mu.nu.nullpo.game.component.Controller; import mu.nu.nullpo.game.component.Piece; import mu.nu.nullpo.game.event.EventReceiver; import mu.nu.nullpo.game.net.NetUtil; import mu.nu.null...
package net.ssehub.kernel_haven.config; import static net.ssehub.kernel_haven.config.Setting.Type.BOOLEAN; import static net.ssehub.kernel_haven.config.Setting.Type.DIRECTORY; import static net.ssehub.kernel_haven.config.Setting.Type.FILE; import static net.ssehub.kernel_haven.config.Setting.Type.INTEGER; import static...
package org.jpos.transaction; import org.HdrHistogram.AtomicHistogram; import org.jdom2.Element; import org.jpos.core.Configuration; import org.jpos.core.ConfigurationException; import org.jpos.q2.QBeanSupport; import org.jpos.q2.QFactory; import org.jpos.space.*; import org.jpos.util.*; import java.io.PrintStream; imp...
package net.x4a42.volksempfaenger.ui; import java.util.ArrayList; import java.util.HashMap; import net.x4a42.volksempfaenger.R; import android.app.ListFragment; import android.app.LoaderManager; import android.app.LoaderManager.LoaderCallbacks; import android.content.Intent; import android.content.Loader; import androi...
package org.mozartoz.truffle.translator; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.lang.reflect.Constructo...
package com.jayway.jsonpath.internal; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.ObjectStreamClass; import java.io.OutputS...
package com.fsck.k9.message.quote; import java.text.DateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; import android.content.res.Resources; import com.fsck.k9.K9; import com.fsck.k9.mail.Message; class QuoteHelper { // amount of extra buffer to allocate to accommodate quoting he...
package com.kerb4j.client; import com.kerb4j.common.jaas.sun.Krb5LoginContext; import com.kerb4j.common.util.JreVendor; import com.kerb4j.common.util.LRUCache; import com.kerb4j.common.util.SpnegoProvider; import org.ietf.jgss.GSSContext; import org.ietf.jgss.GSSCredential; import org.ietf.jgss.GSSException; import org...
package br.edu.fametro.portal.listener; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; import br.edu.fametro.portal.business.AlunoBusiness; import br.edu.fametro.portal.business.Profes...
package bwyap.familyfeud.gui.control; import java.awt.Color; import java.awt.Dimension; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; import javax...
package ch.unizh.ini.caviar.ballshooter; import ch.unizh.ini.caviar.chip.*; import java.awt.geom.*; import ch.unizh.ini.caviar.event.*; import ch.unizh.ini.caviar.eventprocessing.EventFilter; import ch.unizh.ini.caviar.eventprocessing.EventFilter2D; import ch.unizh.ini.caviar.eventprocessing.FilterChain; import ch.uniz...
package com.intellij.codeInsight; import com.intellij.codeInsight.editorActions.*; import com.intellij.openapi.actionSystem.IdeActions; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.PathManager; import com.intellij.openapi.components.ExportableApplicationComponent; ...
package com.wanke.activity; import java.lang.ref.WeakReference; import master.flame.danmaku.DanmakuManager; import master.flame.danmaku.ui.widget.DanmakuSurfaceView; import org.videolan.libvlc.EventHandler; import org.videolan.libvlc.IVideoPlayer; import org.videolan.libvlc.LibVLC; import org.videolan.libvlc.Media; imp...
package org.esupportail.smsuapi.business; import java.security.cert.X509Certificate; import java.util.Iterator; import java.util.List; import javax.security.cert.CertificateException; import javax.servlet.http.HttpServletRequest; import org.apache.oro.text.regex.MalformedPatternException; import org.apache.oro.text.reg...
package com.axelby.podax; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.util.List; import org.xml.sax.SAXException; import android.accounts.Account; import android.accounts.AccountManager; import android.accounts.AccountManagerCallback; import android.accounts.AccountManagerFut...
package org.myrobotlab.service.interfaces; import org.myrobotlab.framework.interfaces.Attachable; import org.myrobotlab.framework.interfaces.MessageSubscriber; import org.myrobotlab.framework.interfaces.NameProvider; public interface ServoControl extends AbsolutePositionControl, Attachable, MessageSubscriber { // FIX...
package org.objectweb.proactive.core.ssh; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.InetAddress; import java.util.Hashtable; import org.apache.log4j.Logger; import org.objectweb.proactive.core.config.ProActiveConfiguration; import org.ob...
package com.dmdirc.ui.swing.textpane; import com.dmdirc.ui.messages.IRCTextAttribute; import java.awt.Cursor; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Rectangle; import java.awt.Shape; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; impo...
package org.objectweb.proactive.scheduler; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Date; import java.util.Iterator; import java.util.Vector; import org.apache.log...
package com.lekebilen.quasseldroid.gui; import java.util.ArrayList; import java.util.List; import java.util.Observable; import java.util.Observer; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.ComponentName; import android.content.Context; import android....
package org.opencms.ade.configuration; import org.opencms.ade.detailpage.CmsDetailPageInfo; import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.file.types.CmsResourceTypeFolder; import org.opencms.file.types.I_CmsResourceType; import org.opencms.loader.CmsLoaderException; import o...
package com.smartnsoft.droid4me.app; import android.app.Activity; public abstract class ProgressHandler { /** * A structure which encapsulates extra completion and textual message information related to a progression event. */ public static class ProgressExtra { public final int completionLevel; pub...
package org.pentaho.di.job.entries.unzip; import static org.pentaho.di.job.entry.validator.AbstractFileValidator.putVariableSpace; import static org.pentaho.di.job.entry.validator.AndValidator.putValidators; import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.andValidator; import static org.pentaho....
package com.tilioteo.hypothesis.ui; import java.util.List; import org.dom4j.Element; import com.tilioteo.hypothesis.common.Strings; import com.tilioteo.hypothesis.core.SlideFactory; import com.tilioteo.hypothesis.core.SlideManager; import com.tilioteo.hypothesis.core.SlideUtility; import com.tilioteo.hypothesis.dom.Sli...
package com.topsradiance.anonymeyes.backend; import java.awt.image.BufferedImage; import java.awt.image.WritableRaster; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import com.xuggle.mediatool.IMediaWriter; import com.xuggle.med...
package com.flytxt.utils.processor; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileLock; import java.nio.channels.OverlappingFileLockException; import java.nio.file.DirectoryStream; import java.nio.file.Files; i...
package org.lenskit.data.ratings; import com.google.common.collect.ImmutableSet; import org.apache.commons.lang3.builder.EqualsBuilder; import org.lenskit.data.entities.*; import org.lenskit.data.events.Event; import javax.annotation.Nullable; import java.io.Serializable; import java.util.Set; /** * A user rating an i...
package com.linchaolong.apktoolplus.utils; import org.apache.commons.io.FileUtils; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class FileHelper { public static final String TAG = FileHelper.class.getSimpleName(); public static final int KB = 1024; ...
package org.pentaho.ui.xul.swt.tags; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUti...
package com.intellij.ide; import com.intellij.diagnostic.LoadingState; import com.intellij.diagnostic.PerformanceWatcher; import com.intellij.ide.actions.MaximizeActiveDialogAction; import com.intellij.ide.dnd.DnDManager; import com.intellij.ide.dnd.DnDManagerImpl; import com.intellij.ide.plugins.StartupAbortedExceptio...
package com.intellij.ide; import com.intellij.ide.actions.MaximizeActiveDialogAction; import com.intellij.ide.dnd.DnDManager; import com.intellij.ide.dnd.DnDManagerImpl; import com.intellij.ide.plugins.PluginManager; import com.intellij.ide.ui.UISettings; import com.intellij.idea.IdeaApplication; import com.intellij.op...
package testVerktyg; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; /** * The persistent class...
package dataforms.devtool.page.db; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import dataforms.app.dao.user.UserDao; import dataforms.app.dao.user.UserInfoTable; import dataforms.app.field.user.PasswordField; import dataforms.contro...
package de.lmu.ifi.dbs.varianceanalysis.ica; import de.lmu.ifi.dbs.data.RealVector; import de.lmu.ifi.dbs.database.Database; import de.lmu.ifi.dbs.logging.LogLevel; import de.lmu.ifi.dbs.logging.ProgressLogRecord; import de.lmu.ifi.dbs.math.linearalgebra.EigenvalueDecomposition; import de.lmu.ifi.dbs.math.linearalgebra...
package de.ptb.epics.eve.data.scandescription; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import org.csstudio.swt.xygraph.figures.Trace.PointStyle; import org.csstudio.swt.xygraph.figures.Trace.TraceType; import org.eclipse.swt.graphic...
package de.sebhn.algorithm.excercise1; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import java.util.Stack; import java.util.stream.Collectors; import de.sebhn.algorithm.excercise1.helper.Grid; import de.sebhn.algorithm.excercise1.helper.PositionToIntConverter; public class OutputCoun...
package dr.evomodel.coalescent; import dr.evolution.coalescent.DemographicFunction; import dr.evolution.coalescent.IntervalList; import dr.evolution.coalescent.IntervalType; import dr.evolution.util.Units; import dr.evomodel.coalescent.demographicmodel.DemographicModel; import dr.evomodelxml.coalescent.CoalescentLikeli...
package edu.jhu.thrax.extraction; import java.util.Collection; import java.util.Arrays; import java.util.Set; import java.util.HashSet; import java.util.ArrayList; import java.util.Queue; import java.util.LinkedList; import edu.jhu.thrax.datatypes.*; import edu.jhu.thrax.util.Vocabulary; import edu.jhu.thrax.features.F...
package sk.freemap.gpxAnimator.ui; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.io.Fi...
package bookmarks; import com.virtusa.spring.demo.Application; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.SpringApplicationConfiguration; import org.springfr...
package com.amihaiemil.camel; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; import com.amihaiemil.camel.YamlObjectDumpTest.StudentSimplePojo; /** * Unit tests for {@link YamlMapD...
package com.axibase.tsd.client; import com.axibase.tsd.util.AtsdUtil; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; import org.powermock.api.moc...
package com.github.arteam.jgcompare; import com.google.common.collect.*; import org.assertj.core.api.Assertions; import org.junit.Test; import java.util.*; import java.util.function.BinaryOperator; import java.util.function.Function; import java.util.stream.Collectors; import static org.assertj.core.api.Assertions.asse...
package com.intellij.util.xml; import com.intellij.util.ArrayUtil; import com.intellij.util.xml.ui.DomUIFactory; import junit.framework.TestCase; import net.sf.cglib.proxy.AdvancedProxy; import net.sf.cglib.proxy.InvocationHandler; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; im...
package org.voltdb.export; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.lang.management.ManagementFactory; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Iterator; import java....
package imagej.ops.tests; import static org.junit.Assert.assertTrue; import imagej.module.Module; import imagej.ops.Op; import imagej.ops.map.DefaultFunctionalMapper; import imagej.ops.map.IterableIntervalMapper; import imagej.ops.map.parallel.DefaultInplaceMapperP; import imagej.ops.map.parallel.DefaultMapperP; import...
package org.voltdb.export; import static com.google_voltpatches.common.base.Preconditions.checkNotNull; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.lang.management.ManagementFactory; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Iterator; impo...
package org.owasp.esapi.crypto; import static org.junit.Assert.*; import java.io.UnsupportedEncodingException; import java.util.Arrays; import junit.framework.JUnit4TestAdapter; import org.junit.Test; import org.owasp.esapi.crypto.PlainText; public class PlainTextTest { private String unicodeStr = "A\u00ea\u00f1\u0...
package org.yaml.snakeyaml; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import junit.framework.TestCase; public class DumperOptionsTest extends TestCase { public void testDefaultStyle() { DumperOptions options = new DumperOptions(); Yaml ...
package seedu.taskman.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.taskman.commons.core.EventsCenter; import seedu.taskman.logic.commands.*; import seedu.taskman.com...
package com.simonbuckle.ant.tasks; import java.io.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.DirectoryScanner; import org.apache.tools.ant.Project; import org.apache.tools.ant.Task; import org.apache.tools.ant....
// Nenya library - tools for developing networked games // 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, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
// $Id: PuzzleCodes.java,v 1.5 2004/10/21 19:49:22 eric Exp $ // Narya library - tools for developing networked games // 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, // MERCHANTABILITY or...
package org.apache.log4j.chainsaw; import org.apache.log4j.chainsaw.rule.AbstractRule; import org.apache.log4j.chainsaw.rule.Rule; import org.apache.log4j.spi.LoggingEvent; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; /** * A mediator class that implements the Rule interface, by com...
package org.apache.lucene.index; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.util.Hashtable; import java.util.Enumeration; import java.util.Arrays; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.analysis.Analy...
package org.jdesktop.swingx; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.util.ArrayList; import java.util.Comparator; ...
//FILE: MicroscopeModel.java //PROJECT: Micro-Manager //SUBSYSTEM: mmstudio // This file is distributed in the hope that it will be useful, // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, // ...
package storm.trident.state; import java.util.List; import storm.trident.operation.ReducerAggregator; import storm.trident.tuple.TridentTuple; public class ReducerValueUpdater implements ValueUpdater<Object> { List<TridentTuple> tuples; ReducerAggregator agg; public ReducerValueUpdater(ReducerAggregator agg...
package application.factories; import application.controllers.MainController; import application.fxobjects.graphCells.CollectionCell; import application.fxobjects.graphCells.RectangleCell; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import javafx.event.ActionEvent; import javafx.event.EventHandler; impor...
package beneficialblocks; import org.apache.logging.log4j.Logger; import beneficialblocks.crafting.Recipies; import beneficialblocks.handler.EntityEventHandler; import beneficialblocks.integration.MFRItems; import beneficialblocks.setup.ModItems; import beneficialblocks.setup.Reference; import cpw.mods.fml.common.Mod; ...
package beneficialblocks; import beneficialblocks.crafting.Recipies; import beneficialblocks.handler.EntityEventHandler; import beneficialblocks.integration.MFRItems; import beneficialblocks.setup.ModItems; import beneficialblocks.setup.Reference; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHand...