answer stringlengths 17 10.2M |
|---|
package org.nasdanika.cdo.web.routes.app;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.jxpath.JXPathCont... |
package nl.mpi.arbil;
import nl.mpi.arbil.data.ImdiTreeObject;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.net.HttpURLConnection;
import java.util.Vector;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.UIManager;
public class ImdiIcons {
public ImageIcon l... |
package org.appwork.utils.swing.dialog;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;... |
package org.jdesktop.swingx;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.util.logging.Logger;
import org.jun... |
/**
* <p>AbstractULAlignment is an abstract base class for alignments
* where the constituent sequences have unequal lengths.</p>
*
* @author David Waring
* @author Mark Schreiber (docs and some minor changes)
*/
package org.biojava.bio.alignment;
import java.io.Serializable;
import java.util.AbstractList;
import... |
package org.biojava.spice.config;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.Mou... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.capocaccia.cne.jaer.cne2012.vor;
import com.phidgets.Phidget;
import com.phidgets.PhidgetException;
import com.phidgets.SpatialEventData;
import com.phidgets.SpatialPhidget;
import com.phidgets.event.*;
impor... |
package org.ensembl.healthcheck;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;http:
import java.sql.Statement;
import java.util.List;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang.StringUtils;
import... |
package org.ensembl.healthcheck;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang.StringUtils;
import org.... |
package org.muckebox.android.services;
import java.nio.ByteBuffer;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
import org.muckebox.android.Muckebox;
import org.muckebox.android.R;
import org.muckebox.android.db.DownloadEntryCursor;
impo... |
package org.objectweb.proactive.ic2d.gui.data;
import java.awt.Color;
import org.objectweb.proactive.ic2d.data.AbstractDataObject;
import org.objectweb.proactive.ic2d.data.NodeObject;
import org.objectweb.proactive.ic2d.data.SpyListenerImpl;
import org.objectweb.proactive.ic2d.data.VMObject;
import org.objectweb.proact... |
package org.opencms.workplace.explorer;
import org.opencms.file.CmsObject;
import org.opencms.file.CmsProperty;
import org.opencms.file.CmsPropertyDefinition;
import org.opencms.file.CmsResource;
import org.opencms.file.types.I_CmsResourceType;
import org.opencms.i18n.CmsEncoder;
import org.opencms.jsp.CmsJspActionElem... |
package org.pentaho.di.trans.steps.mergerows;
import org.pentaho.di.i18n.BaseMessages;
public class Messages
{
public static final String packageName = Messages.class.getPackage().getName();
public static String getString(String key)
{
return BaseMessages.getString(packageName, key);
}
publi... |
package org.springframework.beans.factory;
import org.springframework.beans.BeansException;
import org.springframework.beans.PropertyValues;
/**
* Interface to be implemented by objects used within a BeanFactory
* that are themselves factories. If a bean implements this interface,
* it is used as a factory, not dire... |
package org.usfirst.frc.team2854.robot.commands;
import org.usfirst.frc.team2854.robot.oi.Axis;
import org.usfirst.frc.team2854.robot.subsystems.DriveTrain;
import edu.wpi.first.wpilibj.command.Command;
/**
* @author Richard Huang
*/
public class Drive extends Command{
private DriveTrain driveTrain;
private A... |
package gcm.gui.schematic;
import gcm.gui.GridPanel;
import gcm.gui.DropComponentPanel;
import gcm.gui.GCM2SBMLEditor;
import gcm.gui.Grid;
import gcm.gui.InfluencePanel;
import gcm.gui.modelview.movie.ComponentSchemeChooser;
import gcm.gui.modelview.movie.MovieAppearance;
import gcm.gui.modelview.movie.MovieContainer;... |
package org.gawst.asyncdb;
import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabaseCorruptException;
import android.net.Uri;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Message;
import android.support.annotation.NonNull... |
package de.loskutov.gitignore;
import java.util.*;
public class PathMatcher extends AbstractMatcher {
private final List<NameMatcher> matchers;
PathMatcher(String pattern){
this.pattern = pattern;
matchers = createMatchers(split(pattern));
}
static private List<NameMatcher> createMatcher... |
package lpn.parser;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Random;
public class LpnComponentList extends LhpnFile{
private Integer maxNumVarsInOneComp;
private HashMap<Integer, Component> compMap; // <ComponentId, Component>
private HashMap<Variabl... |
package com.facebook.litho.processor.integration.resources;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import androidx.annotation.AttrRes;
import androidx.annotation.StringRes;
import androidx.annotation.VisibleForTesting;
im... |
package org.unitime.timetable.model;
import java.util.TreeSet;
import org.hibernate.criterion.Restrictions;
import org.unitime.timetable.model.base.BaseRoomType;
import org.unitime.timetable.model.dao.RoomTypeDAO;
import org.unitime.timetable.model.dao.RoomTypeOptionDAO;
public class RoomType extends BaseRoomType imple... |
package tankattack;
import Sprites.*;
import java.util.*;
import javafx.animation.*;
import javafx.event.*;
import javafx.geometry.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.image.*;
import javafx.scene.input.*;
import javafx.scene.layout.*;
import javafx.scene.paint.*;
import javafx.s... |
package mockit;
import org.junit.*;
import static org.junit.Assert.*;
public final class ReusableNestedExpectationsTest
{
static class Collaborator { int doSomething(String s) { return s.length(); } }
@Mocked Collaborator mock;
static class Nested1Expectations extends Expectations
{
Nested1Expectation... |
package framework;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject... |
package hex.svd;
import Jama.CholeskyDecomposition;
import Jama.Matrix;
import Jama.QRDecomposition;
import Jama.SingularValueDecomposition;
import hex.*;
import hex.gram.Gram;
import hex.gram.Gram.GramTask;
import hex.schemas.ModelBuilderSchema;
import hex.schemas.SVDV99;
import hex.svd.SVDModel.SVDParameters;
import ... |
package se.ejp.traci.lang.interpreter.node;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.antlr.runtime.Token;
import se.ejp.traci.lang.interpreter.Context;
import se.ejp.traci.lang.interpreter.Entities;
import se.ejp.traci... |
// 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 som.interpreter.objectstorage;
import java.lang.reflect.Field;
import som.compiler.MixinDefinition.SlotDefinition;
import som.interpreter.TruffleCompiler;
import som.interpreter.objectstorage.FieldAccess.AbstractFieldRead;
import som.interpreter.objectstorage.FieldAccess.AbstractWriteFieldNode;
import som.inter... |
package com.bandwidth.sdk.model;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.junit.Before;
import org.junit.Test;
import com.bandwidth.sdk.BandwidthConstants;
import com.bandwidth.sdk.MockClient;
import co... |
package com.questionanswer;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import org.junit.Test;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.sp... |
package drive.services;
import com.google.api.client.util.DateTime;
import com.google.api.services.drive.model.Change;
import com.google.api.services.drive.model.File;
import com.google.api.services.drive.model.ParentReference;
import com.google.api.services.drive.model.User;
import database.repository.ChangeRepository... |
package org.cactoos.list;
import java.util.Collections;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;
/**
* Test case for {@link IterableAsList}.
*
* @author Kirill (g4s8.public@gmail.com)
* @version $Id$
* @since 0.1
*/
public final class IterableAsListTest {
/**
... |
package org.narwhal.pool;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.narwhal.core.DatabaseInformation;
import java.sql.SQLException;
/**
* @author Miron Aseev
*/
@RunWith(JUnit4.class)
public class ConnectionPoolTest {
private stati... |
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class DwarfTest
{
@Test
public void inicioVida(){
Dwarf anao = new Dwarf();
assertEquals(110,anao.getVida());
}
@Test
public void perderVida(){
Dwarf anao = new Dw... |
package net.bolbat.utils.beanmapper;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import j... |
package florian_haas.lucas.web;
import java.io.Serializable;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.spi.*;
import javax.faces.convert.Converter;
import javax.inject.Named;
import florian_haas.lucas.util.Utils;
import florian_haas.lucas.web.converter.EnumConverter;
import flori... |
package net.devrieze.chatterbox.client;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.atmosphere.gwt.client.AtmosphereClient;
import org.atmosphere.gwt.client.AtmosphereGWTSerializer;
import org.atmosphere.gwt.client.AtmosphereListener;
import org.atmosphere.gwt.client.Seria... |
package com.backendless.geo;
import com.backendless.commons.geo.BaseGeoPoint;
import java.io.Serializable;
import java.util.*;
public class GeoPoint extends BaseGeoPoint implements Serializable
{
private static final long serialVersionUID = -4982310969493523406L;
private final static int multiplier = 1000000;
pub... |
package net.java.otr4j.context.auth;
import java.math.BigInteger;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.KeyPair;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import javax.crypto.BadPaddingEx... |
package net.jjc1138.android.scrobbler;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.io.StreamCorruptedException;
import java.io.UnsupportedEn... |
package nu.validator.client;
import java.io.File;
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import nu.validator.htmlparser.sax.XmlSerializer;
import nu.validator.messages.GnuMessageEmitter;
import nu.valid... |
package org.apdplat.evaluation.impl;
import edu.fudan.nlp.cn.tag.CWSTagger;
import java.util.*;
import org.apdplat.evaluation.Evaluation;
import org.apdplat.evaluation.EvaluationResult;
import org.apdplat.evaluation.Segmenter;
import org.apdplat.evaluation.WordSegmenter;
/**
* FudanNLP
* @author
*/
public class Fuda... |
package hdfs;
import java.io.IOException;
import java.lang.IllegalArgumentException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
public class command {
public static void put(String ifile, String ofile)
throws IllegalArgumentException, IOEx... |
package org.exist.storage.serializers;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.exist.dom.AttrImpl;
import org.exist.dom.CommentImpl;
import org.exist.dom.Docum... |
package com.opencms.file;
import java.io.*;
import java.util.*;
import java.util.zip.*;
import java.text.*;
import java.security.*;
import java.lang.reflect.*;
import org.w3c.dom.*;
import com.opencms.template.*;
import com.opencms.core.*;
import com.opencms.report.*;
import com.opencms.workplace.*;
public class CmsReg... |
package org.nschmidt.ldparteditor.data;
import java.lang.reflect.InvocationTargetException;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.atomic.AtomicBoolean;
import org.eclipse.core.runtime.IProgressM... |
package eu.theunitry.fabula.levels;
import eu.theunitry.fabula.UNGameEngine.graphics.UNGameScreen;
import eu.theunitry.fabula.UNGameEngine.graphics.UNColor;
import eu.theunitry.fabula.UNGameEngine.graphics.UNGraphicsObject;
import eu.theunitry.fabula.UNGameEngine.graphics.UNLevel;
import eu.theunitry.fabula.UNGameEngin... |
package org.nutz.ioc.loader.cached;
import java.util.HashMap;
import java.util.Map;
import org.nutz.ioc.IocLoader;
import org.nutz.ioc.ObjectLoadException;
import org.nutz.ioc.meta.IocObject;
/**
* IocLoader <b/>singleton == trueIocObject,
*
* @author wendal(wendal1985@gmail.com)
*
*/
public class CachedIocLoaderI... |
package eu.theunitry.fabula.levels;
import eu.theunitry.fabula.UNGameEngine.graphics.UNColor;
import eu.theunitry.fabula.UNGameEngine.graphics.UNGameScreen;
import eu.theunitry.fabula.UNGameEngine.graphics.UNGraphicsLevel;
import eu.theunitry.fabula.UNGameEngine.graphics.UNGraphicsObject;
import eu.theunitry.fabula.UNG... |
package org.pentaho.di.job.entries.shell;
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.puzzblocks;
import java.awt.event.KeyEvent;
public class GameConstants {
public static final boolean DEBUG_MODE = true;
public static final String ART_DIRECTORY = "art";
public static final String LEVELS_DIRECTORY = "data/levels";
public static final int CHARACTER_WIDTH = 64;
public stat... |
package org.pentaho.di.trans.steps.xmloutput;
import java.io.File;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import org.apache.commons.vfs.FileObject;
import org.pentaho.di.core.Const;... |
package trclib;
/**
* This class implements a platform independent drive base. The drive base class implements a drive train that may
* consist of 2 to 6 motors. It supports tank drive, arcade drive and mecanum drive with motor stalled detection and
* inverted drive mode. It also supports gyro assisted drive to keep... |
package com.cloud.network;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import javax.ejb.Local;
import javax.nami... |
package com.simple.injector;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Simple dependency injection framework.
*
* Create using {@link #createInjector(IConfig)}. Configure bindings using
* ... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package introduction.whitespace;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Solution {
public static void main(String[] args) {
Regex_Test tester = new Regex_Test();
/*
* pattern XXxXXxXX
* x denotes whitespace characters,... |
package org.opencms.i18n;
import org.opencms.util.CmsFileUtil;
import org.opencms.util.CmsStringUtil;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
imp... |
package fredboat.command.music;
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
import fredboat.audio.GuildPlayer;
import fredboat.audio.PlayerRegistry;
import fredboat.commandmeta.abs.Command;
import fredboat.commandmeta.abs.IMusicCommand;
import fredboat.util.TextUtils;
import net.dv8tion.jda.core.MessageBu... |
package testing;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.junit.Be... |
package com.cloud.upgrade.dao;
import java.io.File;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import com.cloud.utils.PropertiesUtil;... |
package com.xruby;
import java.util.*;
import com.xruby.runtime.lang.*;
import com.xruby.runtime.value.*;
/*
* A simple console program that test XRuby runtime's performance
*/
public class TestingPerformance {
private static final int LOOP = 30000000;
private static long test_createFixnum() {
long st... |
package org.opencms.search.solr;
import org.opencms.file.CmsFile;
import org.opencms.file.CmsObject;
import org.opencms.file.CmsProperty;
import org.opencms.file.CmsResource;
import org.opencms.file.types.CmsResourceTypeBinary;
import org.opencms.file.types.CmsResourceTypeFolder;
import org.opencms.file.types.CmsResour... |
// Bytes.java
package ed.db;
import java.nio.*;
import java.nio.charset.*;
import ed.js.*;
/**
* <type><name>0<data>
* <NUMBER><name>0<double>
* <STRING><name>0<len><string>0
*/
public class Bytes {
static final boolean D = Boolean.getBoolean( "DEBUG.DB" );
public static final ByteOrder ORDER = ByteOrde... |
package org.springframework.mail;
import junit.framework.TestCase;
import org.easymock.MockControl;
/**
* @author Dmitriy Kopylenko
* @version $Id: MailTestSuite.java,v 1.4 2003-09-22 19:26:09 dkopylenko Exp $
*/
public class MailTestSuite extends TestCase {
public void testBeanProperties() throws Exception {
... |
import com.clarifai.api.ClarifaiClient;
import com.clarifai.api.RecognitionRequest;
import com.clarifai.api.RecognitionResult;
import com.icafe4j.image.jpeg.JPEGTweaker;
import com.icafe4j.image.meta.iptc.IPTCDataSet;
import javax.imageio.ImageIO;
import java.io.*;
import java.util.Collection;
import java.util.HashSet;... |
import Misc.Constants;
import org.json.JSONException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.text.WordUtils;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import ... |
package registers;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicInteger;
import net.dougqh.jak.disassembler.JvmMethod;
import net.dougqh.jak.jvm.Category;
import net.dougqh.jak.jvm.JvmLocals;
import net.dougqh.jak.jvm.JvmLocalsHelper;
impor... |
package com.intellij.openapi.util.text;
import com.intellij.util.ArrayUtilRt;
import com.intellij.util.text.CharArrayCharSequence;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Locale;
import java.util.Objects;
public fin... |
package org.jboss.as.jpa;
import org.jboss.as.server.deployment.DeploymentUnit;
import org.jboss.as.server.deployment.DeploymentUnitProcessingException;
import org.jboss.invocation.InterceptorContext;
import org.jboss.jandex.MethodInfo;
import org.jboss.logging.Cause;
import org.jboss.logging.Message;
import org.jboss.... |
package pt.fccn.sobre.arquivo.pages;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import jav... |
package imj3.draft.processing;
import static imj3.tools.AwtImage2D.awtRead;
import static imj3.tools.CommonSwingTools.limitHeight;
import static imj3.tools.CommonSwingTools.setModel;
import static java.lang.Math.max;
import static java.lang.Math.min;
import static java.lang.String.format;
import static net.sourceforge.... |
package org.jetbrains.idea.svn;
import com.intellij.openapi.command.CommandProcessor;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.FileStatus;
import com.intellij.openapi.vcs.VcsConfiguration;
import com.intellij.openapi.vcs.VcsException;
import com.intellij.openapi.vcs.changes.Chan... |
package pt.fccn.sobre.arquivo.tests;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.IOException;
import org.junit.Test;
import pt.fccn.saw.selenium.Retry;
import pt.fccn.saw.selenium.WebDriverTestBaseParalell;
import pt.fccn.sobre.arquivo.pages.ExamplesPage;
import pt.fcc... |
package com.java.a35.newsapp;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import org.json.JSONObject;
import java.util.*;
public class Categories {
public static final String PREFERENCES_CATEGORY = "categories";
public enum CategoryType {
REC... |
package picoded.JStruct.module.site;
/// Java imports
import java.util.*;
/// Picoded imports
import picoded.conv.*;
import picoded.struct.*;
import picoded.servlet.*;
import picoded.JStruct.*;
import picoded.struct.query.*;
/// A simple shopping cart system, which is built ontop of MetaTable, and AtomicLongMap
public ... |
package ru.matevosyan.start;
import ru.matevosyan.models.Comments;
import ru.matevosyan.models.Item;
import java.util.ArrayList;
import java.util.Iterator;
class MenuTracker {
/**
* Input instance variable input.
*/
private Input input;
/**
* Input instance variable tracker.
*/
priva... |
package transaction;
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.joda.time.DateTime;
import transaction.Lock.Token.LockType;
import com.rits.cloning.Cloner;
/**
* An object used to lock a r... |
package arez.processor;
import com.google.common.collect.ImmutableList;
import com.google.testing.compile.Compiler;
import com.google.testing.compile.JavaFileObjects;
import com.google.testing.compile.JavaSourceSubjectFactory;
import com.google.testing.compile.JavaSourcesSubjectFactory;
import java.io.File;
import java... |
package vg.civcraft.mc.citadel.listener;
import static vg.civcraft.mc.citadel.Utility.canPlace;
import static vg.civcraft.mc.citadel.Utility.createNaturalReinforcement;
import static vg.civcraft.mc.citadel.Utility.createPlayerReinforcement;
import static vg.civcraft.mc.citadel.Utility.isAuthorizedPlayerNear;
import sta... |
package org.joda.time;
import java.io.Serializable;
import org.joda.time.chrono.MillisDurationField;
import org.joda.time.chrono.PreciseDurationField;
import org.joda.time.chrono.ScaledDurationField;
import org.joda.time.chrono.UnsupportedDurationField;
import org.joda.time.chrono.iso.ISOChronology;
/**
* Controls a d... |
package pt.up.fe.aiad.gui.controllers;
import jade.core.*;
import jade.wrapper.AgentController;
import jade.wrapper.StaleProxyException;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Lis... |
package test.jycessing;
import static junit.framework.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.JUnitCore;
import jycessing.Runner;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
public class JycessingTests {
private static String run(final String testResource) throws Exce... |
package tumbleweed;
import java.io.IOException;
import java.nio.file.DirectoryStream;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
public cl... |
package liquid;
import java.awt.geom.Rectangle2D;
import java.lang.InterruptedException;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import javax.swing.JFrame;
import lombok.extern.java.Log;
import lombok.val... |
package org.batfish.main;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collections;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import javax.annotatio... |
package okapi.bean;
/**
* ModuleInterface describes an interface a module can provide, or depend on.
* Basically just a name, and a version number.
* Version numbers are in the form X.Y.Z where X is the major version of
* the interface, Y is the minor version of the interface, and Z is the
* software version of th... |
package cx2x.translator.language;
import cx2x.translator.language.helper.accelerator.AcceleratorDirective;
import cx2x.translator.language.helper.accelerator.AcceleratorGenerator;
import cx2x.translator.language.helper.target.Target;
import cx2x.xcodeml.exception.IllegalDirectiveException;
import cx2x.xcodeml.language.... |
package au.gov.amsa.streams;
import static rx.Observable.just;
import static rx.Observable.range;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.Socket;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import jav... |
package cn.cerc.ui.parts;
import java.util.ArrayList;
import java.util.List;
import cn.cerc.core.ClassConfig;
import cn.cerc.core.ClassResource;
import cn.cerc.core.IHandle;
import cn.cerc.core.IUserLanguage;
import cn.cerc.core.Utils;
import cn.cerc.mis.cdn.CDN;
import cn.cerc.mis.config.ApplicationConfig;
import cn.c... |
package com.github.ansell.csvsum;
import static org.junit.Assert.*;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedExceptio... |
package de.bmoth.typechecker;
import de.bmoth.parser.Parser;
import de.bmoth.parser.ast.nodes.DeclarationNode;
import de.bmoth.parser.ast.nodes.FormulaNode;
import de.bmoth.parser.ast.nodes.MachineNode;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class TestTypechecker {
private fin... |
package guitests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import seedu.task.logic.commands.ListCommand;
import seedu.task.testutil.TestTask;
import seedu.task.testutil.TestUtil;
public class ListByDoneUndoneCommandTest extends TaskManagerGuiTest {
@Test
public void listbydoneundone_non... |
package io.nats.client;
import static org.mockito.Mockito.*;
import static org.junit.Assert.*;
import java.io.IOException;
import java.net.URI;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.TimeoutException;
imp... |
package nl.martijndwars.webpush;
import com.google.common.base.Predicate;
import io.github.bonigarcia.wdm.ChromeDriverManager;
import io.github.bonigarcia.wdm.MarionetteDriverManager;
import org.apache.http.HttpResponse;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.json.JSONObject;
import org.j... |
package no.stelar7.api.l4j8.tests;
import no.stelar7.api.l4j8.basic.*;
public class SecretFile
{
public static final String API_KEY = "FAKE KEY";
public static final String TOURNAMENT_API_KEY = "FAKE KEY";
public static final APICredentials CREDS = new APICredentials(SecretFile.API_KEY, Secr... |
package org.plivo.bridge.tests;
import java.util.HashMap;
import java.util.Map;
import org.glassfish.grizzly.http.server.HttpHandler;
import org.glassfish.grizzly.http.server.Request;
import org.glassfish.grizzly.http.server.Response;
import org.plivo.bridge.base.BasePlivoTest;
import org.plivo.bridge.server.GrizzlySer... |
package seedu.address.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_PERSON_DISP... |
package seedu.todo.commons.util;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.time.format.TextStyle;
import java.time.temporal.ChronoUnit;
import java.util.Date;
import java.util.Locale;
import org.junit.Test;
import seedu.todo... |
//@@author A0141021H
package seedu.whatnow.logic;
import com.google.common.eventbus.Subscribe;
import seedu.whatnow.commons.core.EventsCenter;
import seedu.whatnow.commons.events.model.WhatNowChangedEvent;
import seedu.whatnow.commons.events.ui.JumpToListRequestEvent;
import seedu.whatnow.commons.events.ui.ShowHelpRequ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.