answer stringlengths 17 10.2M |
|---|
package org.mockito;
import org.mockito.internal.MockitoCore;
import org.mockito.internal.progress.DeprecatedOngoingStubbing;
import org.mockito.internal.progress.NewOngoingStubbing;
import org.mockito.internal.returnvalues.EmptyReturnValues;
import org.mockito.internal.returnvalues.GloballyConfiguredReturnValues;
impo... |
package org.mockito;
import java.util.Arrays;
import org.mockito.exceptions.Reporter;
import org.mockito.internal.MockHandler;
import org.mockito.internal.MockUtil;
import org.mockito.internal.progress.MockingProgress;
import org.mockito.internal.progress.OngoingStubbing;
import org.mockito.internal.progress.ThreadSafe... |
package org.mockito;
import java.util.Arrays;
import org.mockito.exceptions.Reporter;
import org.mockito.internal.MockHandler;
import org.mockito.internal.MockUtil;
import org.mockito.internal.progress.MockingProgress;
import org.mockito.internal.progress.OngoingStubbing;
import org.mockito.internal.progress.ThreadSafe... |
package org.tinylog.impl.policies;
import java.nio.file.Path;
import org.tinylog.impl.writers.file.FileWriter;
/**
* Policy interface for triggering rollover events for {@link FileWriter}.
*/
public interface Policy {
/**
* Checks if an already existing log file can be continued before opening it.
*
... |
package info.tregmine.listeners;
import info.tregmine.Tregmine;
import info.tregmine.api.TregminePlayer;
import info.tregmine.database.ConnectionPool;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.ut... |
package com.chiorichan.scheduler;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.PriorityQueue;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.... |
/** This package handles all db cruds
First note that all the stateless beans were made as granular as possible so that,
in the event of a large system taking up a lot of memory, services can be fine tuned.
This approach was taken against one huge service class to do this optimization later.
How ever, fine grained ... |
package br.com.dbsoft.ui.component;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.faces.application.ResourceHandler;
import javax.faces.component.UIComponent;
import ... |
package spms.controls;
import javax.servlet.ServletContext;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spri... |
package com.binatechnologies.varsim;
import com.binatechnologies.varsim.intervalTree.SimpleInterval1D;
import com.binatechnologies.varsim.intervalTree.ValueInterval1D;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.io.FileUtils;
import org.... |
package net.i2p.client;
import net.i2p.util.Log;
import net.i2p.util.Clock;
import net.i2p.data.i2cp.I2CPMessage;
import net.i2p.data.i2cp.I2CPMessageReader;
import net.i2p.data.i2cp.I2CPMessageException;
import net.i2p.data.i2cp.SessionStatusMessage;
import net.i2p.data.i2cp.SendMessageMessage;
import net.i2p.data.i2c... |
package de.boxxit.statis.spring;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Serializer;
imp... |
package de.jungblut.math.dense;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import de.jungblut.math.BooleanMatrix;
import de.jungblut.math.DoubleMatrix;
import de.jungblut.math.DoubleVector;
import de.jungblut.math.tuple.Tuple;
/**
* Dense double matrix implementa... |
package com.blankstyle.vertx.php.net;
import org.vertx.java.core.AsyncResult;
import org.vertx.java.core.AsyncResultHandler;
import org.vertx.java.core.Handler;
import org.vertx.java.core.net.NetSocket;
import com.caucho.quercus.annotation.Optional;
import com.caucho.quercus.env.Callback;
import com.caucho.quercus.env.... |
package com.galvarez.ttw.model.map;
import static java.lang.Math.max;
import java.util.Iterator;
import com.artemis.Entity;
import com.artemis.World;
import com.badlogic.gdx.utils.IntIntMap;
import com.badlogic.gdx.utils.IntIntMap.Entry;
public final class Influence implements Iterable<IntIntMap.Entry> {
public final... |
package de.mycrobase.ssim.ed.weather;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
* Encloses an {@link Iterable} set of properties (stored as {@link Entry})
* each comprised of an identifying name, a value and a {@link Class}
* representing the value's type.
*
* @author cn
*/
pu... |
package com.celements.store;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicInteger;
import org.python.google.common.base.Strings;
import org.slf4j.Logger;
import or... |
package bisq.core.user;
import bisq.core.app.AppOptionKeys;
import bisq.core.app.BisqEnvironment;
import bisq.core.btc.BaseCurrencyNetwork;
import bisq.core.btc.BtcOptionKeys;
import bisq.core.btc.nodes.BtcNodes;
import bisq.core.btc.wallet.Restrictions;
import bisq.core.dao.DaoOptionKeys;
import bisq.core.locale.Count... |
package algorithms.imageProcessing.matching;
import algorithms.MultiArrayMergeSort;
import algorithms.QuickSort;
import algorithms.imageProcessing.FixedSizeSortedVector;
import algorithms.imageProcessing.GreyscaleImage;
import algorithms.imageProcessing.Image;
import algorithms.imageProcessing.features.CorrespondenceLi... |
package com.commafeed.backend.dao;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.JoinType;
import javax.persistence.criteria.Root;
import javax.persistence.criteria.SetJoin;
import org.apache.com... |
package hudson.lifecycle;
import hudson.ExtensionPoint;
import hudson.Util;
import hudson.model.Hudson;
import java.io.File;
import java.io.IOException;
import java.util.logging.Logger;
import java.util.logging.Level;
import org.apache.commons.io.FileUtils;
/**
* Provides the capability for starting/stopping/restartin... |
package com.crawljax.core.state;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import net.jcip.annotations.GuardedBy;
import org.apache.commons.math.stat.descriptive.moment.Mean;
import org.apache.log4j.Logger;
import... |
package io.spine.server;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Objects;
import io.spine.annotation.SPI;
import io.spine.core.BoundedContextName;
import static com.google.common.base.Preconditions.checkNotNull;
import static io.spine.core.BoundedContextNames.newName;
/**
... |
package com.digistratum.microhost;
import com.digistratum.microhost.Process.MHRunnable;
/**
* @TODO Add support for receiving, starting, and monitoring multiple MHRunnable's
*/
abstract public class MicroHostApp {
/**
* Constructor
*
* This should be called from the application main() with an insta... |
package com.elmakers.mine.bukkit.api.wand;
import java.util.Collection;
import java.util.Map;
import com.elmakers.mine.bukkit.api.magic.MageController;
import com.elmakers.mine.bukkit.api.spell.Spell;
import com.elmakers.mine.bukkit.api.spell.SpellTemplate;
import org.bukkit.Location;
import org.bukkit.command.CommandS... |
package com.elmakers.mine.bukkit.api.wand;
import java.util.Collection;
import java.util.Map;
import com.elmakers.mine.bukkit.api.magic.MageController;
import com.elmakers.mine.bukkit.api.spell.Spell;
import com.elmakers.mine.bukkit.api.spell.SpellTemplate;
import org.bukkit.Location;
import org.bukkit.command.CommandS... |
package com.enderio.core.common;
import java.awt.Point;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory... |
package com.fredhopper.environment;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Formatter;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.UUID;
import java.util.... |
package com.fundynamic.d2tm.game.map;
import com.fundynamic.d2tm.game.terrain.Terrain;
import com.fundynamic.d2tm.game.terrain.TerrainFactory;
import com.fundynamic.d2tm.game.terrain.impl.DuneTerrain;
import com.fundynamic.d2tm.graphics.Shroud;
import com.fundynamic.d2tm.math.Coordinate;
import com.fundynamic.d2tm.math... |
package com.github.anba.es6draft.parser;
import static com.github.anba.es6draft.semantics.StaticSemantics.*;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import java.util.*;
import com.github.anba.es6draft.ast.AbruptNode.Abrupt;
import com.github.anba.es6draft.ast.*;... |
package lombok.javac.apt;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.IdentityHashMap;
import java... |
package dr.app.beauti.options;
import dr.app.beauti.types.*;
import dr.evomodel.coalescent.VariableDemographicModel;
import dr.evomodel.speciation.CalibrationPoints;
import dr.evomodelxml.speciation.BirthDeathEpidemiologyModelParser;
import dr.evomodelxml.speciation.BirthDeathModelParser;
import dr.evomodelxml.speciati... |
package algorithms.imageProcessing.matching;
import algorithms.imageProcessing.ColorHistogram;
import algorithms.imageProcessing.Image;
import algorithms.imageProcessing.ImageProcessor;
import algorithms.imageProcessing.MiscellaneousCurveHelper;
import algorithms.imageProcessing.SIGMA;
import algorithms.imageProcessing... |
package com.github.mangstadt.vinnie.io;
/**
* Lists the non-fatal problems that can occur when parsing a vobject data
* stream.
* @see VObjectDataListener#onWarning
* @author Michael Angstadt
*/
public enum Warning {
/**
* When a line cannot be parsed.
*/
MALFORMED_LINE("Skipping malformed line (... |
package dr.evomodel.continuous;
import dr.inference.model.*;
import dr.math.matrixAlgebra.IllegalDimension;
import dr.math.matrixAlgebra.Matrix;
import dr.util.Citable;
import dr.util.Citation;
import java.util.List;
/**
* @author Max Tolkoff
* @author Marc Suchard
*/
public class LatentFactorModel extends AbstractM... |
// RMG - Reaction Mechanism Generator
// RMG Team (rmg_dev@mit.edu)
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// and/or sell copies of the Software, and to permit persons to whom the
// Sof... |
package com.github.peterpaul.cli;
import com.github.peterpaul.cli.parser.ValueParser;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
p... |
package com.github.rconner.util;
import com.google.common.annotations.Beta;
import com.google.common.base.Joiner;
import com.google.common.collect.Iterators;
import com.google.common.collect.UnmodifiableIterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* A minimal persistent list implem... |
package xal.model.elem;
import java.io.PrintWriter;
import xal.tools.beam.PhaseMap;
import xal.tools.beam.PhaseMatrix;
import xal.tools.beam.optics.BendingMagnet;
import xal.tools.beam.optics.QuadrupoleLens;
import xal.tools.math.ElementaryFunction;
import xal.model.IProbe;
import xal.model.ModelException;
/**
* <p>Re... |
package com.google.sps.servlets;
import com.google.gson.Gson;
import com.google.sps.data.ChromeOSDevice;
import com.google.sps.data.ListDeviceResponse;
import com.google.sps.gson.Json;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import... |
package com.coffeeandcookies.cursoandroidutn;
import java.io.ByteArrayOutputStream;
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.OutputStream;
import java.util.Random;
im... |
package com.jcabi.mysql.maven.plugin;
import com.jcabi.aspects.Loggable;
import com.jcabi.log.Logger;
import com.jcabi.log.VerboseProcess;
import com.jcabi.log.VerboseRunnable;
import java.io.File;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import ... |
package com.devinhartzell.chess.gui;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JTextArea;
public class PawnPromotionWindow extends JFrame {
private static final long serialVersionUID = -1686304609750241736L;
public PawnPromotionWindow() {
super("Pawn Promotion");
... |
package com.kodcu.service.ui;
import com.kodcu.controller.ApplicationController;
import com.kodcu.other.Item;
import com.kodcu.service.PathOrderService;
import com.kodcu.service.PathResolverService;
import com.kodcu.service.ThreadService;
import javafx.collections.FXCollections;
import javafx.scene.control.TreeItem;
im... |
package com.mkyong.web.service;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.List;
@Service
public class WaterFillerImpl implements WaterFiller {
// array of bricks heights
private Integer[] wall;
// array of water heights
private Integer[] waterArr;
/**
... |
package com.ragstorooks.blacktomove.chess;
import com.ragstorooks.blacktomove.chess.blocks.Colour;
import com.ragstorooks.blacktomove.chess.moves.BasicMove;
import com.ragstorooks.blacktomove.chess.moves.KingsideCastle;
import com.ragstorooks.blacktomove.chess.pieces.Pawn;
import com.ragstorooks.blacktomove.chess.piece... |
package com.mixpanel.android.surveys;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
/**
* Simple, single-purpose layout for juggling question cards.
* Much less general than it appears.
*/
... |
package net.iaeste.iws.api.dtos;
import net.iaeste.iws.api.constants.IWSConstants;
import net.iaeste.iws.api.enums.Currency;
import net.iaeste.iws.api.enums.FieldOfStudy;
import net.iaeste.iws.api.enums.Gender;
import net.iaeste.iws.api.enums.Language;
import net.iaeste.iws.api.enums.LanguageLevel;
import net.iaeste.iw... |
package com.shc.silenceengine.graphics;
import com.shc.silenceengine.graphics.opengl.BufferObject;
import com.shc.silenceengine.graphics.opengl.GL3Context;
import com.shc.silenceengine.graphics.opengl.Primitive;
import com.shc.silenceengine.graphics.opengl.Program;
import com.shc.silenceengine.graphics.opengl.Texture;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dae.prefabs.standard;
import com.jme3.asset.AssetManager;
import com.jme3.asset.AssetNotFoundException;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com... |
package com.sudicode.fb2gh.fogbugz;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.XmlElement;
import javax.xm... |
package eu.seebetter.ini.chips.davis;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.Arrays;
... |
package com.redhat.ceylon.model.typechecker.model;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
public class Class extends ClassOrInterface implements Functiona... |
package com.texastoc.controller;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberU... |
package com.simplegeo.client.urlconn;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.logging.Logger;
import oauth.signpost.basic.DefaultOAuthConsumer;
public class OAuthURLConnection {
private static Logger logger = Logger.getLogger(OAuthURLConnection.class.getN... |
package de.st_ddt.crazylogin;
import java.io.File;
import java.security.NoSuchAlgorithmException;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.CommandSender;
import org.bukkit.co... |
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package MTR.client;
import MTR.MathTools;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelUrbanTrai... |
package com.tkhoon.framework;
import com.tkhoon.framework.bean.Page;
import com.tkhoon.framework.bean.Result;
import com.tkhoon.framework.exception.AccessException;
import com.tkhoon.framework.exception.PermissionException;
import com.tkhoon.framework.exception.UploadException;
import com.tkhoon.framework.helper.Action... |
package com.dmdirc.config.prefs;
import com.dmdirc.harness.TestSettingChangeListener;
import com.dmdirc.config.IdentityManager;
import com.dmdirc.config.prefs.validator.NotEmptyValidator;
import com.dmdirc.config.prefs.validator.PermissiveValidator;
import com.dmdirc.config.prefs.validator.StringLengthValidator;
import... |
package com.rafkind.paintown.level;
import java.awt.*;
import java.io.*;
import javax.imageio.*;
import java.util.Iterator;
import java.util.List;
import com.rafkind.paintown.exception.LoadException;
import com.rafkind.paintown.TokenReader;
import com.rafkind.paintown.Token;
public class Level{
private String name;... |
package responders;
import java.util.ArrayList;
import library.Constants;
import main.Brain;
import utilities.Handler;
import sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent;
import tokens.Response;
public class LocationResponder extends Handler {
public LocationResponder() {}
publ... |
//FILE: MMStudioMainFrame.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 de.st_ddt.crazylogin;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.bukkit.Bukkit;
im... |
// MainServlet.java
// blogwt
package com.willshex.blogwt.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServ... |
package models;
import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Indexed;
import com.google.code.morphia.utils.IndexDirection;
import java.util.Calendar;
import java.util.Date;
import play.data.validation.Min;
import play.modules.morphia.Model;
@Entity
public class LogMessag... |
package org.voltdb.export;
import java.io.File;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.CopyOnWriteAr... |
package bdv.export;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.CountDownLatch;
import mpicbg.spim.data.XmlHelpers;
import mpicbg.spim.data.generic.sequence... |
package dr.evomodel.coalescent;
import dr.evolution.coalescent.TreeIntervals;
import dr.evolution.tree.Tree;
import dr.evomodel.tree.TreeModel;
import dr.inference.model.Model;
import dr.inference.model.Parameter;
import dr.inference.model.Variable;
import dr.xml.*;
import java.util.logging.Logger;
/**
* @author Josep... |
package org.broadinstitute.sting.utils;
import net.sf.samtools.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
abstract public class BasicPileup implements Pileup {
public static final char DELETION_CHAR = 'D';
protected boolean includeDeletions = false;
... |
package com.xhub.pdflego.formatter;
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.List;
import com.itextpdf.kernel.geom.Rectangle;
import com.itextpdf.kernel.pdf.PdfPage;
import com.itextpdf.kernel.pdf.canvas.PdfCanvas;
import com.itextpdf.layout.property.UnitValue;
import org.apach... |
package com.coolweather.app.activity;
import java.util.ArrayList;
import java.util.List;
import com.coolweather.app.R;
import com.coolweather.app.db.CoolWeatherDB;
import com.coolweather.app.model.City;
import com.coolweather.app.model.County;
import com.coolweather.app.model.Province;
import com.coolweather.app.util.H... |
package dr.evomodel.newtreelikelihood;
import java.util.logging.Logger;
/**
* @author Marc Suchard
* @author Andrew Rambaut
* @author Dat Hunyh
*
*/
public class GPULikelihoodCore extends NativeLikelihoodCore {
/**
* Constructor
*
* @param treeLikelihood reference back to ATL, should be able to ... |
package org.exist.mongodb.shared;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
import com.mongodb.gridfs.GridFS;
import com.mongodb.gridfs.GridFSFile;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java... |
package ch.wellernet.vlclib;
import static java.lang.Float.parseFloat;
import static java.lang.Integer.parseInt;
import static java.lang.Long.parseLong;
import static java.lang.String.format;
import static java.util.Collections.unmodifiableList;
import static java.util.regex.Pattern.DOTALL;
import static java.util.rege... |
package de.codecrafters.apaarb;
/**
* A listing that contains all item information available at Amazon.
*
* @author ISchwarz
*/
public enum ItemInformation {
ACCESSORIES("Accessories"),
ALTERNATIVE_VERSIONS("AlternativeVersions"),
ATTRIBUTES("ItemAttributes"),
BROWSE_NODES("BrowseNodes"),
EDITOR... |
package com.kevinquan.cwa.tests;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Hashtable;
import java.util.List;
import org.json.JSONArray;
import org... |
package com.amee.domain.data;
import com.amee.domain.*;
import com.amee.domain.item.BaseItemValue;
import com.amee.domain.item.HistoryValue;
import com.amee.domain.item.NumberValue;
import com.amee.domain.item.data.*;
import com.amee.domain.item.profile.BaseProfileItemValue;
import com.amee.domain.item.profile.NuProfil... |
package de.hpi.is.idd.datasets;
import info.debatty.java.stringsimilarity.JaroWinkler;
import info.debatty.java.stringsimilarity.NormalizedLevenshtein;
import org.apache.commons.codec.language.DoubleMetaphone;
import org.simmetrics.StringDistance;
import org.simmetrics.StringMetric;
import org.simmetrics.metrics.Hammin... |
package de.skuzzle.inject.conf;
import de.skuzzle.inject.conf.Resources.ChoseTargetType;
/**
* This interfaces controls how the content of a {@link TextResource} is mapped
* to a concrete instance of some object.
*
* @author Simon Taddiken
*/
public interface TextContentType {
/**
* Creates an instance of... |
package com.amihaiemil.eoyaml;
import java.util.ArrayList;
import java.util.Iterator;
/**
* These are all the comments within a YAML node.<br><br>
* For example, in the case of a mapping, they are the comments
* referring to the key:value pairs. In the case of a sequence,
* these are the comments referring to its e... |
package com.hotmail.kalebmarc.textfighter.player;
import com.hotmail.kalebmarc.textfighter.item.Armour;
import com.hotmail.kalebmarc.textfighter.main.Enemy;
import com.hotmail.kalebmarc.textfighter.main.Handle;
import com.hotmail.kalebmarc.textfighter.main.Ui;
import java.util.concurrent.ThreadLocalRandom;
import javax... |
package galaxyspace.core.events;
import java.util.ArrayList;
import java.util.List;
import asmodeuscore.api.dimension.IAdvancedSpace;
import asmodeuscore.api.dimension.IProviderFreeze;
import asmodeuscore.api.item.IItemPressurized;
import asmodeuscore.api.item.IItemSpaceFood;
import asmodeuscore.core.event.PressureEven... |
package com.appaloosastore.client;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.List;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
public class Main {
AppaloosaClient client = new AppaloosaClient();
st... |
package com.japanzai.koroshiya.settings;
import java.io.File;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.pm.ActivityInfo;
import android.os.Environment;
import ... |
package io.github.yas99en.mojo.script;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.PluginParameterExpressionEvaluator;
import org.apache.ma... |
package com.codahale.metrics;
import de.mxro.json.HasJSON;
import de.mxro.json.JSON;
import de.mxro.json.internal.JSONImpl;
public class Histogram implements Metric, Sampling, Counting, HasJSON {
private final Reservoir reservoir;
private final LongAdder count;
/**
* Creates a new {@link Histogram} wit... |
package io.loom.core.event;
import java.time.ZonedDateTime;
import java.util.UUID;
public abstract class AbstractDomainEvent implements DomainEvent {
private final UUID aggregateId;
private final long version;
private final ZonedDateTime occurrenceTime;
protected AbstractDomainEvent(UUID aggregateId, lo... |
package com.continuuity;
import com.continuuity.app.guice.BigMamaModule;
import com.continuuity.common.conf.CConfiguration;
import com.continuuity.common.conf.Constants;
import com.continuuity.common.service.ServerException;
import com.continuuity.common.utils.Copyright;
import com.continuuity.common.utils.PortDetector... |
package com.valkryst.VTerminal.builder;
import com.valkryst.VTerminal.component.Component;
import com.valkryst.VTerminal.palette.ColorPalette;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import java.awt.Dimension;
import java.awt.Point;
public class ComponentBuilder<C extends Component> {
/**... |
package japsa.tools.bio.sim;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Random;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.SAMRecordIterator;
import htsjdk.samtools.SamReader;
import htsjdk.samtools.SamReaderFactory;
import htsjdk... |
package com.wakatime.intellij.plugin;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.fileEditor.FileDocumentManagerListener;
import com.intel... |
package com.dijon.binding;
import com.dijon.dependency.Dependency;
import java.lang.annotation.Annotation;
public class BasicBinding<T> extends TerminableBinding<T> {
public static <T> BasicBinding<T> bind(Class<T> clazz) {
return new BasicBinding<>(clazz);
}
private BasicBinding(Class<T> clazz) {
super(c... |
// AdaptiveRandomNeighborhood.java
// Antonio J. Nebro <antonio@lcc.uma.es>
// This program is free software: you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.... |
package com.xemplar.libs.crypto.server.net;
import com.xemplar.libs.crypto.common.NetworkListener;
import com.xemplar.libs.crypto.server.net.domain.Request;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import java.util.ArrayList;
import java.util.List;
public class CryptoServ... |
package com.et.monotone.zk;
import java.util.concurrent.atomic.AtomicLong;
import com.et.monotone.IdGenerator;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.google.common.base.Throwables;
import com.google.common.collect.Range;
import com.netflix.curator... |
package com.xiledsystems.AlternateJavaBridgelib;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.StreamCorruptedException;
import java.util.ArrayList;
im... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
public class _145 {
public static class Solution1 {
/**
* A tricky/hacky one: Modi... |
package com.fishercoder.solutions;
/**
* 213. House Robber II
Note: This is an extension of House Robber.
After robbing those houses on that street,
the thief has found himself a new place for his thievery
so that he will not get too much attention.
This time, all houses at this place are arranged in a circle.
T... |
package com.fishercoder.solutions;
public class _280 {
public static class Solution1 {
public void wiggleSort(int[] nums) {
for (int i = 1; i < nums.length; i++) {
if ((i % 2 == 0 && nums[i] > nums[i - 1]) || (i % 2 == 1 && nums[i] < nums[i - 1])) {
swap(nums,... |
package com.fishercoder.solutions;
/**
* 573. Squirrel Simulation
*
* There's a tree, a squirrel, and several nuts.
* Positions are represented by the cells in a 2D grid.
* Your goal is to find the minimal distance for the squirrel to collect all the nuts and
* put them under the tree one by one.
* The squirrel ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.