answer stringlengths 17 10.2M |
|---|
package org.jaulp.wicket.base.util.application;
import java.io.IOException;
import org.apache.wicket.Application;
import org.apache.wicket.RuntimeConfigurationType;
import org.apache.wicket.core.util.file.WebApplicationPath;
import org.apache.wicket.javascript.DefaultJavaScriptCompressor;
import org.apache.wicket.marku... |
package org.apache.xerces.validators.common;
import org.apache.xerces.framework.XMLAttrList;
import org.apache.xerces.framework.XMLContentSpec;
import org.apache.xerces.framework.XMLDocumentHandler;
import org.apache.xerces.framework.XMLDocumentScanner;
import org.apache.xerces.framework.XMLErrorReporter;
import org.ap... |
package org.biojavax.bio.phylo.io.nexus;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.biojava.bio.seq.io.ParseException;
/**
* Builds a Nexus file by listening to events.
*
* @author Richard Holland
* @author Tobias Thier... |
package ch.unizh.ini.jaer.projects.minliu;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.beans.PropertyChangeEvent;
import java.util.Arrays;
import java.util.O... |
package org.bouncycastle.asn1.x509;
import org.bouncycastle.asn1.DERObjectIdentifier;
public interface X509ObjectIdentifiers
{
// base id
static final String id = "2.5.4";
static final DERObjectIdentifier commonName = new DERObjectIdentifier(id + ".3");
... |
package org.nasdanika.cdo;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EcoreUtil;
/**
* Object which handles its own deletion from the repository.
* This interface is used by CDOViewRoute to process <code>$delete</code> invocation.
* For instances of <code>Deletable</code> their <code>del... |
package org.broadinstitute.sting.gatk.datasources.simpleDataSources;
import org.apache.log4j.Logger;
import org.broadinstitute.sting.gatk.Reads;
import org.broadinstitute.sting.gatk.iterators.StingSAMIterator;
import org.broadinstitute.sting.utils.StingException;
import net.sf.samtools.SAMFileHeader;
import net.sf.samt... |
package org.myrobotlab.opencv;
import org.apache.commons.lang3.StringUtils;
import org.bytedeco.javacpp.opencv_core.CvScalar;
import org.bytedeco.javacpp.opencv_core.IplImage;
import org.bytedeco.javacpp.opencv_core.Mat;
import org.bytedeco.javacpp.opencv_core.MatVector;
import org.bytedeco.javacpp.opencv_core.Point2f;... |
package codeOrchestra.colt.as.compiler.fcsh.make;
import codeOrchestra.colt.as.compiler.fcsh.*;
import codeOrchestra.colt.as.compiler.fcsh.console.command.impl.LivecodingStartCommand;
import codeOrchestra.colt.as.compiler.fcsh.console.command.impl.LivecodingStopCommand;
import codeOrchestra.colt.as.flex.config.FlexConf... |
package org.nschmidt.ldparteditor.composites;
import java.io.File;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.atomic.Atomic... |
package com.akjava.gwt.androidhtml5.client;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.akjava.gwt.androidhtml5.client.data.ImageElementData;
import com.akjava.gwt.html5.client.download.HTML5Download;
import com.akjava.gwt.html5.client.file.Blob;
import com.akjava.gwt.html5... |
package org.opencms.ade.publish;
import org.opencms.file.CmsObject;
import org.opencms.file.CmsResource;
import org.opencms.file.CmsResourceFilter;
import org.opencms.file.types.CmsResourceTypeBinary;
import org.opencms.file.types.CmsResourceTypeImage;
import org.opencms.file.types.CmsResourceTypePlain;
import org.open... |
package com.konkerlabs.platform.registry.web.forms;
import com.konkerlabs.platform.registry.business.model.EventRoute;
import com.konkerlabs.platform.registry.business.model.EventRoute.RouteActor;
import com.konkerlabs.platform.registry.business.model.Transformation;
import com.konkerlabs.platform.registry.business.mod... |
package dr.app.beagle.tools;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import beagle.Beagle;
import beagle.BeagleFactory;
import dr.app.beagle.evomodel.sitemodel.BranchSubstitutionModel;
import dr.app.beagle.evomodel.sitemodel.EpochBranchSubstitutionModel;
import dr.app.beagle.evomodel... |
package com.dmdirc.config;
import com.dmdirc.interfaces.config.ConfigChangeListener;
import com.dmdirc.interfaces.config.ConfigProvider;
import com.dmdirc.logger.ErrorLevel;
import com.dmdirc.logger.Logger;
import com.dmdirc.util.collections.WeakList;
import com.dmdirc.util.io.ConfigFile;
import com.dmdirc.util.io.Inva... |
package org.pentaho.di.job.entries.getpop;
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 dr.app.beagle.tools;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import beagle.Beagle;
import beagle.BeagleFactory;
import dr.app.beagle.evomodel.branchmodel.BranchModel;
import dr.app.beagle.evomodel.... |
// This file is part of JavaSMT,
// an API wrapper for a collection of SMT solvers:
package org.sosy_lab.java_smt.solvers.z3;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.microsoft.z3.Native;
import com.microsoft.z... |
package org.languagetool.dev.eval;
import com.google.common.io.CharStreams;
import org.languagetool.DetectedLanguage;
import org.languagetool.Language;
import org.languagetool.Languages;
import org.languagetool.language.LanguageIdentifier;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
imp... |
import org.apache.log4j.Category;
import org.apache.lucene.document.Document;
import org.apache.lucene.search.Hits;
import search.SearchResultFactory;
import java.io.IOException;
/**
* <p>
* Encapsulates the results of a search. After a SearchResults has
* been constructed from a Hits object, the IndexSearcher can b... |
package dr.app.beagle.tools;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import beagle.Beagle;
import beagle.BeagleFactory;
import dr.app.beagle.evomodel.sitemodel.BranchSubstitutionModel;
import dr.app.beagle.evomodel.sitemodel.EpochBranchSubstitutionModel;
import dr.app.beagle.evomodel... |
package com.github.miachm.SODS.com.github.miachm.SODS.spreadsheet;
interface RangeIterator{
void call(Cell cell);
} |
package org.languagetool.rules.pt;
import org.junit.Test;
import org.languagetool.LanguageSpecificTest;
import org.languagetool.language.PortugalPortuguese;
import java.io.IOException;
import java.util.Arrays;
public class PortugueseTest extends LanguageSpecificTest {
@Test
public void testLanguage() throws IOExcep... |
package dr.math.distributions;
import dr.math.ErrorFunction;
import dr.math.UnivariateFunction;
/**
* @author Andrew Rambaut
*/
public class TruncatedDistribution implements Distribution {
public double getLower() {
return lower;
}
public double getUpper() {
return upper;
}
public ... |
package edu.grinnell.CSC207.moorehea1.hw6;
import java.io.PrintWriter;
public class dutchFlag {
public static void swap(String[] array, int first, int second) {
String holder = array[first];
array[first] = array[second];
array[second] = holder;
} // swap(String[], int, int)
public static void ma... |
package edu.kit.informatik.literatur_system;
import static java.util.regex.Pattern.compile;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* FIXME add doc
* @author JoseNote
* @version %I%, %G%
*/
public enum Command implements ICommand<ILiteraturSystemService> {
//FIXME implement direct pr... |
package org.voltdb.dtxn;
import static org.junit.Assert.*;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Test;
import org.voltdb.BackendTarget;
import org.v... |
package edu.washington.escience.myria.column;
import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import com.almworks.sqlite4java.SQLiteException;
import com.almworks.sqlite4java.SQLiteStatement;
import com.google.common.hash.Hasher;
import edu.washington.escience.myria.Type;
i... |
package com.lamfire.chimaera.store.filestore;
import com.lamfire.chimaera.store.FireSet;
import com.lamfire.code.MD5;
import com.lamfire.code.MurmurHash;
import org.apache.jdbm.Serialization;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.... |
package org.voltdb.iv2;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verif... |
package com.swabunga.spell.engine;
import java.io.*;
import java.util.*;
public class GenericSpellDictionary extends SpellDictionaryASpell {
/**
* This replace list is used if no phonetic file is supplied or it doesn't
* contain the alphabet.
*/
protected static final char[] englishAlphabet =
... |
package com.turbo.whack;
import java.util.Timer;
import java.util.TimerTask;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widge... |
package com.vmware.vim25.mo.samples;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import com.vmware.vim.cf.CacheInstance;
import com.vmware.vim25.Description;
import com.vmware.vim25.Extension;
import com.vmware.vim25.ExtensionClientInfo;
import com.vmware.vi... |
package io.freefair.gradle.plugins.maven.war;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.file.FileCollection;
import org.gradle.api.plugins.WarPlugin;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.TaskProvider;
import org.gradle.api.tasks.bundling.Jar;
impo... |
package org.multibit.hd.ui.views.components;
import org.multibit.hd.ui.MultiBitUI;
import org.multibit.hd.ui.views.fonts.AwesomeDecorator;
import org.multibit.hd.ui.views.fonts.AwesomeIcon;
import org.multibit.hd.ui.views.themes.Themes;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.tree.Def... |
package org.apache.ignite.spi.communication;
import org.apache.ignite.cache.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.internal.*;
import org.apache.ignite.internal.managers.communication.*;
import org.apache.ignite.internal.processors.cache.*;
import org.apache.ignite.internal.util.typedef.*... |
import java.util.concurrent.Executors;
import com.embeddedunveiled.serial.SerialComManager;
import com.embeddedunveiled.serial.nullmodem.SerialComNullModem;
/*
* LOAD module to support large number of devices.
*
* $ insmod ./tty2comKm.ko max_num_vtty_dev=5000
*/
public final class NullModemTest {
public static ... |
package puj.co.authentication.control;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.Mode... |
package org.geotools.feature.simple;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
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.util.Set;
import java.util.logging.Logger;
... |
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.openlmis.report.service;
import lombok.NoArgsConstructor;
import org.apache.ibatis.session.RowBounds;
import org.openlmis.core.service.ConfigurationSettingService;
import org.openlmis.report.mapper.OrderSummaryReportMapper;
import org.openlmis.report.model.ReportData;
import org.openlmis.report.model.filter... |
package org.voltdb.export;
import static com.google.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;
import java.util... |
package at.jku.pervasive.ecg.wfdb;
import java.io.File;
import org.joda.time.LocalTime;
public class HrvTest extends PhysioToolkitTestCase {
public static void main(String[] args) throws Exception {
new HrvTest().testHrv();
}
public void testHrv() throws Exception {
File testFile = getWFDBFile("/test.dat"... |
package gov.nih.nci.calab.ui.core;
/**
* This class initializes session data to prepopulate the drop-down lists required
* in different view pages.
*
* @author pansu
*/
/* CVS $Id: InitSessionAction.java,v 1.26 2006-04-26 11:48:14 zengje Exp $ */
import gov.nih.nci.calab.dto.administration.AliquotBean;
import gov.... |
package edu.berkeley.compbio.ncbitaxonomy.jpa;
import com.davidsoergel.dsutils.collections.DSCollectionUtils;
import com.davidsoergel.springjpautils.SpringJpaObject;
import com.davidsoergel.trees.DepthFirstTreeIterator;
import com.davidsoergel.trees.HierarchyNode;
import com.davidsoergel.trees.NoSuchNodeException;
impo... |
package biweekly.util;
import static biweekly.util.TestUtils.buildTimezone;
import java.util.TimeZone;
import org.junit.rules.ExternalResource;
/**
* Changes the JVM's default timezone temporarily for all of the tests in a test
* class.
* @author Michael Angstadt
*/
public class DefaultTimezoneRule extends External... |
/**
*
* $Id: LoginAction.java,v 1.10 2006-04-28 19:26:17 schroedn Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.9 2005/12/06 19:51:39 georgeda
* Defect #255 - add SSL
*
* Revision 1.8 2005/12/06 14:50:45 georgeda
* Defect #253, change the lowecase to the login action so that roles match
*
* Rev... |
package com.crawljax.browser;
import org.junit.Assume;
import org.junit.Before;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.io.IOException;
/**
* This is the base class for WebDri... |
package com.foundationdb.tuple;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;
import org.junit.Test;
import static org.junit.Assert.*;
public class TuplesTest {
@Test
public void tuplesTest() {
Tuple2 t = new Tuple2();
t = t.add(Long.MAX_VALUE);
t = t.a... |
package gui.editionView;
import entity.Model;
import gui.AbstractComponentPanel;
import gui.Lang;
import gui.MainFrame;
import gui.State;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ListIterator;
import java.util.Map;
import javax.swing.JFileChooser;
import javax.swing.J... |
package gov.nih.nci.ncicb.cadsr.evs;
import gov.nih.nci.evs.domain.*;
import gov.nih.nci.evs.query.*;
import gov.nih.nci.ncicb.cadsr.evs.EVSConcept;
import gov.nih.nci.system.applicationservice.*;
import gov.nih.nci.system.applicationservice.ApplicationService;
import java.io.IOException;
import java.util.*;
public cla... |
package com.j256.ormlite.dao;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import com.j256.ormlite.BaseCoreTest;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionFie... |
package com.muzima.service;
import android.content.SharedPreferences;
import com.muzima.MuzimaApplication;
import com.muzima.api.context.Context;
import com.muzima.api.model.*;
import com.muzima.controller.*;
import com.muzima.testSupport.CustomTestRunner;
import com.muzima.utils.Constants;
import org.apache.lucene.que... |
// RemoteDataCache.java
// Open XAL
package xal.tools.services;
import java.util.concurrent.Callable;
import java.util.Date;
import xal.tools.UpdateListener;
import xal.tools.dispatch.DispatchQueue;
/** RemoteDataCache is a utility for managing calls to remote services to avoid deadlock if a service is down. */
public ... |
package gov.nih.nci.ncicb.cadsr.loader.ui;
import gov.nih.nci.ncicb.cadsr.domain.Concept;
import gov.nih.nci.ncicb.cadsr.loader.ext.EvsModule;
import gov.nih.nci.ncicb.cadsr.loader.ext.EvsResult;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapt... |
package com.x.organization.core.entity;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
i... |
package com.github.jsdossier;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
import static com.google.common.base.Strings.isNullOrEmpty;
import static com.google.common.truth.Truth.assertWithMessage;
import static java.nio.charset.Standard... |
package com.ociweb.iot.maker;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.io.Serializable;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Ignore;
import org.junit.Test;
import com.ociweb.gl.api.MessageReader;
import com.ociweb.gl.api.PubSubListener;
... |
package com.queen.acceptance;
import com.airhacks.afterburner.injection.Injector;
import com.google.code.tempusfugit.temporal.WaitFor;
import com.queen.counter.clock.ClockView;
import com.queen.counter.domain.ColumnType;
import com.queen.di.SpringApplicationConfiguration;
import com.tngtech.java.junit.dataprovider.Data... |
package de.dhbw.humbuch.guice;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.junit... |
package info.histei.commons;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public abstract class AbstractUniqueAttribute<C> implements UniqueAttribute<C> {
protected final String attributeName;
protected final String elementName... |
package de.is24.deadcode4j.analyzer;
import de.is24.deadcode4j.CodeContext;
import de.is24.deadcode4j.Module;
import de.is24.deadcode4j.Repository;
import de.is24.deadcode4j.junit.FileLoader;
import de.is24.deadcode4j.junit.LoggingRule;
import org.junit.Before;
import org.junit.Rule;
import java.io.File;
import java.ut... |
package uk.ac.ebi.quickgo.ontology.traversal;
import uk.ac.ebi.quickgo.ontology.model.OntologyRelationType;
import uk.ac.ebi.quickgo.ontology.model.OntologyRelationship;
import java.util.List;
import java.util.Set;
/**
* This class defines a contract for typical ontology graph traversal operations.
*
* Created 20/05... |
package io.vertx.ext.asyncsql;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.sql.ResultSet;
import io.vertx.ext.sql.SQLConnection;
import io.vertx.ext.sql.SQLRowStream;
import io.vertx.ext.sql.UpdateResult;
... |
package guitests;
import static org.junit.Assert.assertEquals;
import static seedu.taskmanager.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
//import org.junit.Before;
//import org.junit.Rule;
import org.junit.Test;
//import org.junit.rules.TemporaryFolder;
import seedu.taskmanager.commons.core.Messages;
import... |
// $Id: VirtualMediaPanel.java,v 1.5 2002/06/20 00:58:36 mdb Exp $
package com.threerings.media;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.event.MouseEvent;
import javax.swing.SwingUtilities;
import com.samskivert.util... |
// 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 jfdi.test.storage;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
impor... |
package org.jaxen.function;
import org.jaxen.Context;
import org.jaxen.Function;
import org.jaxen.FunctionCallException;
import org.jaxen.Navigator;
import org.jaxen.UnsupportedAxisException;
import org.jaxen.JaxenRuntimeException;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.DecimalF... |
package org.mwc.debrief.core.ContextOperations;
import java.awt.Color;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.Date;
import java.util.... |
package net.openhft.chronicle.core;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
import java.io.RandomAccessFile;
import java.nio.channels.FileChannel;
import static org.junit.Assert.assertEquals;
public class OSTest {
@Test
public void testIs64Bit() {
System.out.println("is64 = ... |
//package net.kyivstar.leonchyk;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class ApplicationTests {
// @Test
// ... |
package org.opentosca.container.api.dto;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.x... |
package org.binwang.bard.core;
import junit.framework.Assert;
import org.binwang.bard.core.defines.FalseAdapter1;
import org.binwang.bard.core.defines.FalseAdapter2;
import org.binwang.bard.core.defines.TrueAdapter1;
import org.binwang.bard.core.defines.TrueAdapter2;
import org.junit.Before;
import org.junit.Test;
impo... |
package org.amc.myservlet.test;
import static org.junit.Assert.*;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.PersistenceUnitUtil;
import... |
package THE_PACKAGE;
import java.io.IOException;
import org.ruboto.Script;
import android.app.ProgressDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
public class THE_RU... |
package org.flippers.agent;
import org.flippers.messages.DataMessage;
import org.flippers.messages.MessageProtos;
import org.flippers.messages.MessageType;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
... |
package org.cactoos.collection;
import org.cactoos.iterable.IterableOf;
import org.cactoos.list.ListOf;
import org.hamcrest.collection.IsCollectionWithSize;
import org.hamcrest.collection.IsEmptyCollection;
import org.hamcrest.core.IsEqual;
import org.hamcrest.core.IsNot;
import org.junit.Test;
import org.llorllale.cac... |
package org.owasp.esapi.reference;
import java.io.File;
import java.net.URI;
import java.net.URLDecoder;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.owasp.esapi.SafeFile;
import org.owasp.esapi.errors.ValidationException;
/**
* @author Jeff Williams (jeff.... |
package org.apache.james.core;
import org.apache.avalon.framework.activity.Initializable;
import org.apache.avalon.framework.component.Component;
import org.apache.avalon.framework.component.ComponentException;
import org.apache.avalon.framework.component.ComponentManager;
import org.apache.avalon.framework.component.C... |
package org.pharmgkb.common.util;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import net.trajano.commons.testing.UtilityClassTestUtil;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* JUnit test for {@link PathUtils}.
*
* @author Mark Woon
*/
public class PathUti... |
package ua.com.fielden.platform.entity.query.metadata;
import static java.lang.String.format;
import static java.util.Collections.unmodifiableCollection;
import static org.apache.commons.lang.StringUtils.isEmpty;
import static org.apache.commons.lang.StringUtils.isNotEmpty;
import static ua.com.fielden.platform.entity.... |
package org.scijava.script;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
... |
package org.jivesoftware.messenger.net;
import org.jivesoftware.util.Log;
import javax.naming.directory.Attributes;
import javax.naming.directory.InitialDirContext;
import javax.naming.directory.DirContext;
import java.util.Hashtable;
/**
* Utilty class to perform DNS lookups for XMPP services.
*
* @author Matt Tuck... |
package com.intellij.execution.impl;
import com.intellij.configurationStore.Scheme_implKt;
import com.intellij.execution.*;
import com.intellij.execution.configurations.*;
import com.intellij.execution.runners.ProgramRunner;
import com.intellij.execution.target.LanguageRuntimeType;
import com.intellij.execution.target.... |
package pt.fccn.arquivo.tests.util;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
/**
*
* @author Ivo Branco <ivo.branco@fccn.pt>
*
*/
public class ReplayUtils {
/**
* Check... |
package org.joda.time.format;
import java.util.HashMap;
import java.util.Map;
import org.joda.time.Chronology;
import org.joda.time.DateTimeZone;
import org.joda.time.chrono.iso.ISOChronology;
/**
* ISODateTimeFormat provides factory methods for the ISO8601 standard.
* <p>
* ISO8601 is the international standard for... |
package vaeke.restcountries.rest;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import vaeke.restcountries.domain.Country;
import com.eclipsesou... |
package org.seedstack.jpa;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.seedstack.business.domain.Repository;
import org.seedstack.business.specification.dsl.SpecificationBuilder;
import org.seedstack.jpa.fixtures.business.domain.product.Product;
im... |
package com.intellij.openapi.editor.textarea;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.editor.*;
import com.intellij.openapi.editor.event.CaretListener;
import com.intellij.openapi.editor.markup.TextAttributes;
import com.intellij.util.EventDispatcher;
import org.jetbrains.annotations.NotNull... |
package beaform.gui.main;
import javax.swing.JMenuBar;
@FunctionalInterface
public interface SubMenu {
void attachToMenuBar(final JMenuBar menuBar);
} |
package koopa.tokenizers.cobol;
import java.io.IOException;
import koopa.tokenizers.Tokenizer;
import koopa.tokenizers.cobol.tags.AreaTag;
import koopa.tokenizers.util.ThreadedTokenizerBase;
import koopa.tokens.BasicToken;
import koopa.tokens.Position;
import koopa.tokens.Token;
public class ProgramAreaTokenizer extend... |
package com.puppycrawl.tools.checkstyle;
import com.puppycrawl.tools.checkstyle.checks.AbstractOption;
import com.puppycrawl.tools.checkstyle.checks.BlockOption;
import com.puppycrawl.tools.checkstyle.checks.LeftCurlyOption;
import com.puppycrawl.tools.checkstyle.checks.OperatorWrapOption;
import com.puppycrawl.tools.c... |
import java.util.*;
import java.time.*;
import net.quasardb.qdb.*;
import org.junit.*;
import org.hamcrest.Matcher;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
public class QdbTimeSeriesTableTest {
@Test
public void canGetTable() throws Exception {
String alias = Helpers... |
package net.hyperic.sigar.test;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarNotImplementedException;
import net.hyperic.sigar.NetInterfaceConfig;
import net.hyperic.sigar.NetInterfaceStat;
import net.hyperic.sigar.NetFlags;
public class TestNetIf extends SigarT... |
// TODO developer [ Kevin ], test [ Sydney ]
package view.commands.gameplayInput;
import java.util.List;
import gamecontrollers.Facade;
import models.board.Direction;
import view.ViewController;
public class MoveTileInputCommand extends GameplayInputCommand {
private Direction direction;
public MoveTileInputCom... |
package io.bootique.env;
import java.util.Map;
/**
* Provides access to system properties and environment variables for the app.
* Allows to filter properties by prefix to separate Bootique-specific values.
*/
public interface Environment {
String FRAMEWORK_PROPERTIES_PREFIX = "bq";
/**
* @since 0.17
... |
package uk.me.steev.java.heating.controller;
import java.io.File;
import java.io.IOException;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
impor... |
package io.bootique;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.google.inject.Module;
import io.bootique.annotation.BQConfig;
import io.bootique.annotation.BQConfigProperty;
import io.bootique.cli.Cli;
import io.bootique.config.ConfigurationFactory;
import io.bootique.help.HelpCommand;
imp... |
package java.awt;
import java.lang.reflect.Field;
import java.text.AttributedCharacterIterator;
import java.util.Arrays;
import java.awt.image.AreaAveragingScaleFilter;
import java.awt.image.BufferedImage;
import java.awt.image.ImageConsumer;
import java.awt.image.ImageObserver;
import java.awt.font.*;
import java.awt.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.