answer stringlengths 17 10.2M |
|---|
package net.imagej.ops.statistics;
import net.imagej.ops.AbstractFunction;
import net.imagej.ops.Op;
import net.imagej.ops.OpService;
import net.imagej.ops.misc.Size;
import net.imglib2.type.numeric.RealType;
import net.imglib2.type.numeric.integer.LongType;
import net.imglib2.type.numeric.real.DoubleType;
import org.s... |
package com.fishercoder.solutions;
public class _680 {
public static class Solution1 {
public boolean validPalindrome(String s) {
int left = 0;
int right = s.length() - 1;
int diff = 0;
while (left < right) {
if (s.charAt(left) != s.charAt(righ... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
/**
* 687. Longest Univalue Path
*
* Given a binary tree, find the length of the longest path where each node in the path has the same value.
* This path may or may not pass through the root.
Note: The length of path between two nod... |
package net.ltgt.gwt.maven;
import java.io.File;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import o... |
package com.fishercoder.solutions;
import java.util.TreeMap;
public class _740 {
public static class Solution1 {
public int deleteAndEarn(int[] nums) {
int n = 10001;
int[] values = new int[n];
for (int num : nums) {
values[num] += num;
}
... |
package net.malisis.core.client.gui;
import net.malisis.core.client.gui.component.UIComponent;
import net.malisis.core.client.gui.component.UISlot;
import net.malisis.core.client.gui.component.container.UIContainer;
import net.malisis.core.client.gui.event.GuiEvent;
import net.malisis.core.client.gui.event.KeyboardEven... |
package com.github.underscore;
import java.util.Objects;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
public final class Optional<T> {
private static final Optional<?> EMPTY = new Optional();
private final T arg;
private final boolean absent;
... |
package com.googlecode.charts4j;
import java.util.Map;
/**
* Top level interface for all charts. Herein is functionality common to all
* charts.
*
* @author Julien Chastang (julien.c.chastang at gmail dot com)
*/
public interface GChart {
void setSize(final int width, final int height);
Map<String, String>... |
package com.jaamsim.BasicObjects;
import java.util.ArrayList;
import com.jaamsim.Graphics.DisplayEntity;
import com.jaamsim.Samples.SampleConstant;
import com.jaamsim.Samples.SampleExpListInput;
import com.jaamsim.Samples.SampleProvider;
import com.jaamsim.input.EntityListInput;
import com.jaamsim.input.Keyword;
public... |
package net.sf.jabref.gui.preftabs;
import java.awt.BorderLayout;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import javax.swing.BorderFactory;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPan... |
package net.sourceforge.cilib.container;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Vector;
import net.sourceforge.cilib.util.Cloneable;
/**
* Representation of a <code>Matrix</code>, with the rows and the columns represented
* as a 2D array. The 2D array has been implemented as a Objec... |
package net.tridentsdk.player;
import net.tridentsdk.server.netty.client.ClientConnection;
import net.tridentsdk.server.netty.protocol.Protocol;
import java.util.concurrent.atomic.AtomicReference;
public class PlayerConnection extends ClientConnection {
private volatile int keepAliveId;
private volatile long ke... |
package com.ociweb.gl.impl;
import com.ociweb.gl.api.*;
import com.ociweb.gl.api.transducer.HTTPResponseListenerTransducer;
import com.ociweb.gl.api.transducer.PubSubListenerTransducer;
import com.ociweb.gl.api.transducer.RestListenerTransducer;
import com.ociweb.gl.api.transducer.StateChangeListenerTransducer;
import ... |
package net.ucanaccess.converters;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.ucanaccess.jdbc.UcanaccessConnection;
import com.healthmarke... |
package net.ucanaccess.converters;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.ucanaccess.jdbc.UcanaccessConnection;
import com.healthmarke... |
package com.simplicite.tomcat;
import java.io.File;
import java.io.FileOutputStream;
import org.apache.catalina.startup.Tomcat;
public class Launcher
{
public static void main(String[] args) {
try {
Tomcat tomcat = new Tomcat();
File f = new File("").getAbsoluteFile();
to... |
package com.thed.utils;
public class ZephyrConstants {
public static final String PACKAGE_TRUE_DESCRIPTION = "Created by Jenkins";
public static final String PACKAGE_FALSE_DESCRIPTION = "Created via Jenkins";
public static final String TOP_PARENT_PHASE_NAME = "Automation";
public static final String TCR... |
package com.todoist.markup;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
class EmojiParser {
... |
package com.todoist.markup;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
class EmojiParser {
... |
package com.ups;
import static spark.Spark.*;
public class DemoApplicationexample {
public static void main(String[] args) {
//get("/hello", (req, res) -> "Hello World");
System.out.println("Hello World");
}
} |
package org.cobbzilla.util.daemon;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomUtils;
impor... |
package com.venky.core.io;
import java.io.IOException;
import com.venky.core.string.StringUtil;
public class StringReader extends java.io.StringReader{
public StringReader(){
this("");
}
private int length = 0;
public StringReader(String s) {
super(s);
length = s.length();
}
... |
package org.codemucker.jmutate.ast;
public class SearchDepth {
public final int max;
public static final SearchDepth DIRECT = new SearchDepth(0);
public static final SearchDepth DIRECT_CHILDREN = new SearchDepth(1);
public static final SearchDepth ANY = new SearchDepth(-1);
private SearchDepth(int ... |
package org.ctoolkit.restapi.client;
/**
* The resource identifier with possibility to express parent child relation.
*
* @author <a href="mailto:aurel.medvegy@ctoolkit.org">Aurel Medvegy</a>
*/
public class Identifier
{
private Identifier child;
private Object value;
/**
* for debugging purpose on... |
package com.wrapper.spotify;
import com.google.gson.JsonArray;
import com.neovisionaries.i18n.CountryCode;
import com.wrapper.spotify.enums.ModelObjectType;
import com.wrapper.spotify.requests.authorization.authorization_code.AuthorizationCodeRefreshRequest;
import com.wrapper.spotify.requests.authorization.authorizati... |
package cronapi.rest;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import cronapi.AppConfig;
import cronapi.QueryManager;
import cronapi.odata.server.ODataConfiguration;
import org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor;
import org.eclipse.persistence.internal.jpa... |
package org.drizzle.jdbc.internal.common;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.LinkedList;
import java.util.List;
public class Utils {
private static final int START_BIT_MILLISECONDS = 17;
private static final int START_BIT_SECONDS = 11;
private... |
package de.dfki.asr.atlas.model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
... |
package entite;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
*
* @author moi
*/
@Entity
public class unobjet implements Serializable {
private static final long serialVersionUID = 1... |
package de.domisum.exziff;
import de.domisum.exziff.map.BooleanMap;
import de.domisum.exziff.map.exporter.bool.BooleanMapImageExporter;
import de.domisum.exziff.shape.BooleanMapContinentsGenerator;
import de.domisum.lib.auxilium.util.ImageUtil;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.... |
package go.graphics.swing.opengl;
import go.graphics.GLDrawContext;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import javax.media.opengl.GL;
import javax.media.opengl.GL2;
public class JOGLDrawContext implements GLDrawContext {
private final GL2 ... |
package de.idrinth.waraddonclient;
import de.idrinth.waraddonclient.gui.FrameRestorer;
import de.idrinth.waraddonclient.gui.ThemeManager;
import de.idrinth.waraddonclient.gui.Window;
import de.idrinth.waraddonclient.model.AddonList;
import de.idrinth.waraddonclient.model.TrustManager;
import de.idrinth.waraddonclient.s... |
package org.grobid.core.engines;
import com.google.common.collect.Iterables;
import nu.xom.Attribute;
import nu.xom.Element;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import org.grobid.core.GrobidModels;
import org.grobid.core.analyz... |
package org.jenkinsci.plugins.koji;
import hudson.Extension;
import hudson.Launcher;
import hudson.model.*;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Builder;
import hudson.util.FormValidation;
import hudson.util.ListBoxModel;
import net.sf.json.JSONObject;
import org.apache.xmlrpc.XmlRpcException;
i... |
package edu.spcollege.ecox.image;
import edu.spcollege.ecox.shared.Location;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.sql.Timestamp;
import javax.persisten... |
package org.jonnyzzz.stack.impl;
import org.jetbrains.annotations.NotNull;
import org.jonnyzzz.stack.NamedStackFrame;
import org.jonnyzzz.stack.impl.gen.NamedExecutorsGenerator;
import org.jonnyzzz.stack.impl.gen.jcl.JavaClassLoaderGenerator;
import org.jonnyzzz.stack.impl.gen.stub.EmptyExecutorsGenerator;
import org.j... |
package edu.ucsd.library.floadr;
import static org.slf4j.LoggerFactory.getLogger;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import javax.activation.MimetypesF... |
package org.komamitsu.fluency.sender;
import org.komamitsu.fluency.sender.failuredetect.FailureDetectStrategy;
import org.komamitsu.fluency.sender.failuredetect.FailureDetector;
import org.komamitsu.fluency.sender.failuredetect.PhiAccrualFailureDetectStrategy;
import org.komamitsu.fluency.sender.heartbeat.Heartbeater;
... |
package fr.novia.zaproxyplugin;
import fr.novia.zaproxyplugin.report.ZAPreport;
import fr.novia.zaproxyplugin.report.ZAPreportCollection;
import hudson.EnvVars;
import hudson.Extension;
import hudson.FilePath;
import hudson.FilePath.FileCallable;
import hudson.Launcher;
import hudson.model.AbstractDescribableImpl;
impo... |
package gui.controllers;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.ResourceBundle;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.concurrent.Task;
import javafx.event.Ac... |
package gov.nih.nci.camod.webapp.form;
import gov.nih.nci.camod.Constants;
import gov.nih.nci.camod.util.NameValue;
import gov.nih.nci.camod.util.NameValueList;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.Globals;... |
package hackerrank;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
public class PrimsSpecialSubtree {
private static int mst(Map<Integer, List<Edge>> adjList, int start) {
// TODO
return 0;
}
private static class E... |
package org.lightmare.ejb.handlers;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java... |
package hypertalk;
import hypertalk.ast.common.*;
import hypertalk.ast.constructs.*;
import hypertalk.ast.containers.*;
import hypertalk.ast.expressions.*;
import hypertalk.ast.functions.*;
import hypertalk.ast.statements.*;
import hypertalk.exception.HtParseError;
import hypertalk.parser.HyperTalkBaseVisitor;
import h... |
package org.lightmare.jpa.jta;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import javax.ejb.EJBException;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagementType;
import javax.p... |
package gov.nih.nci.camod.webapp.form;
import gov.nih.nci.camod.Constants;
import gov.nih.nci.camod.util.NameValue;
import gov.nih.nci.camod.util.NameValueList;
import gov.nih.nci.camod.util.SafeHTMLUtil;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServl... |
package org.magellan.faleiro;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import com.netflix.fenzo.*;
import com.netflix.fenzo.functions.Action1;
import com.netflix.fenzo.plugins.VMLeaseObject;
import org.apache.mesos.MesosSchedulerDriver;
import org.apache.mesos.Pr... |
package htsquirrel.gui.pages.matchfilter;
import static htsquirrel.HTSquirrel.getLanguage;
import htsquirrel.translations.Translations;
import java.io.IOException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Tactics extends javax.swing.JPanel {
/**
... |
package io.github.classgraph;
import java.io.File;
import java.lang.annotation.Inherited;
import java.lang.reflect.Modifier;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java... |
package org.maptalks.javasdk.db;
import org.maptalks.gis.core.geojson.CRS;
import org.maptalks.gis.core.geojson.GeoJSON;
import java.util.HashMap;
public enum CoordinateType {
wgs84("wgs84"), gcj02("gcj02"), cgcs2000("cgcs2000"), bd09ll("bd09ll"), pixel("pixel"),DEFAULT("gcj02");
private final String type;
... |
/**
* @author Dermot Cochran, 2010-2011, IT University of Copenhagen
*
* This class generates ballot boxes that create an electoral scenario,
* for example, one winner by tie breaker and two losers, or one winner
* by
* quota, one winner as the highest continuing candidate on the l... |
package jkanvas.examples;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.File;
import java.io.IOException;
import java.util.HashSet;
imp... |
package org.mybatis.jpetstore.domain;
import java.io.Serializable;
import java.math.BigDecimal;
public class ItemCalculate implements Serializable {
private String itemId;
private String productId;
private BigDecimal listPrice;
private BigDecimal unitCost;
private int supplierId;
private String status;
pr... |
package de.otto.edison.jobs.domain;
/**
* @author Guido Steinacker
* @since 23.02.15
*/
public enum Level {
INFO("info"),
WARNING("warning"),
ERROR("error");
private final String key;
Level(final String key) {
this.key = key;
}
public static Level ofKey(final String s) {
f... |
package jswf.framework;
import java.util.HashMap;
/**
* Interface to define a runner type of object to be passed to the framework
*/
public interface RunnerInterface {
/**
* Method to run the pipeline flow by invoking the components
*
* @param component First component in the pipeline.
* ... |
package org.openbaton.vnfm.generic;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import org.apache.commons.codec.binary.Base64;
import org.openbaton.catalogue.mano.common.Event;
import org.openbaton.catalogue.mano.common.Ip;
import org.openbaton.catalogue.mano.comm... |
package kodkod.instance;
import static java.util.Collections.unmodifiableList;
import static java.util.Collections.unmodifiableMap;
import static kodkod.util.ints.Ints.unmodifiableSequence;
import java.util.AbstractSet;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.... |
package com.haulmont.cuba.web;
import com.haulmont.chile.core.model.MetaClass;
import com.haulmont.chile.core.model.utils.InstanceUtils;
import com.haulmont.cuba.core.app.DataService;
import com.haulmont.cuba.core.entity.Entity;
import com.haulmont.cuba.core.global.*;
import com.haulmont.cuba.core.sys.AppContext;
impor... |
package de.dakror.spamwars.net.packet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import de.dakror.gamesetup.util.Vector;
import de.dakror.spamwars.game.entity.Player;
/**
* @author Dakror
*/
public class Packet5PlayerData extends Packet
{
Vector velocity, position;
boolean left;
int style, fram... |
package main.java.latexee.utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import main.java.latexee.declareast.DeclareNode;
import main.java.latexee.declareast.MacroDeclaration;
import main.java.latexee.declareast.OperatorDeclaration;
import main.java.l... |
package it.feio.android.omninotes;
import it.feio.android.checklistview.utils.AlphaManager;
import it.feio.android.omninotes.models.SketchView;
import it.feio.android.omninotes.utils.Constants;
import java.io.File;
import java.io.FileOutputStream;
import com.larswerkman.holocolorpicker.ColorPicker;
import com.larswerkm... |
package org.sdsai.math;
import java.util.function.Function;
import java.lang.Math;
/**
* A generalization of interpolation.
*
* The startPoints and stopPoints arrays must be the same length. Each index
* in the arrays denotes the starting and stopping value in a single dimension.
* For example, startPoints(0) coul... |
package dr.evomodel.antigenic;
import dr.inference.model.MatrixParameter;
import dr.inference.model.Parameter;
import dr.inference.model.Variable;
import dr.inference.operators.MCMCOperator;
import dr.inference.operators.SimpleMCMCOperator;
import dr.math.MathUtils;
import dr.math.distributions.NormalDistribution;
impo... |
import drafts.com.sun.star.accessibility.XAccessible;
import drafts.com.sun.star.accessibility.XAccessibleContext;
import drafts.com.sun.star.accessibility.XAccessibleStateSet;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.container.XIndexAccess;
import java.util.HashMap;
class AccessibleContextHandler
ex... |
package linenux.command;
import java.util.ArrayList;
import linenux.command.result.CommandResult;
import linenux.util.StringsSimilarity;
/**
* Act as a fail-safe for invalid or unrecognized commands.
*/
public class InvalidCommand implements Command {
private ArrayList<Command> commands;
public InvalidCommand... |
package jade.proto;
import java.util.Date;
import jade.core.*;
import jade.core.behaviours.*;
import jade.lang.acl.ACLMessage;
import jade.lang.acl.MessageTemplate;
/**
Behaviour class for <code>fipa-request</code><em> Initiator</em> role.This abstract
behaviour implements the <code>fipa-request</code> interaction ... |
package lombok.eclipse.agent;
import static lombok.eclipse.Eclipse.*;
import static lombok.eclipse.handlers.EclipseHandlerUtil.*;
import static lombok.eclipse.EclipseAugments.Annotation_applied;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import ja... |
package mkremins.fanciful;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.server.v1_7_R1.ChatSerializer;
import net.minecraft.server.v1_7_R1.PacketPlayOutChat;
import org.bukkit.ChatColor;
import org.bukkit.craftbukkit.v1_7_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.json... |
// $Id: SafeScrollPane.java,v 1.7 2003/03/22 01:56:09 mdb Exp $
package com.threerings.media;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Point;
import javax.swing.JComponent;
import javax.swing.JScrollPane;
import javax.swing.JViewport;
/**
* A scroll pane that is safe to use in frame manage... |
package com.esotericsoftware.kryonet;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.SocketException;
import java.nio.BufferOverflowException;
import java.nio.channels.SocketChannel;
import com.esotericsoftware.kryo.Context;
import c... |
package org.vaadin.appbase.places;
import java.util.Collections;
import java.util.List;
import java.util.Stack;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Configurable;
import org.vaadin.appbase.event.impl.places.PlaceRequestEvent;
import org.vaadin.appbase.service.AbstractUse... |
package edu.mit.streamjit.impl.compiler2;
import com.google.common.base.Function;
import static com.google.common.base.Preconditions.*;
import com.google.common.base.Predicates;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableLis... |
package mltk.predictor.gam;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import mltk.cmdline.Argument;
import mltk.cmdline.CmdLineParser;
import mltk.cmdline.options.HoldoutValidatedLearnerWithTaskOptions;
import mltk.core.Attribute;
import mltk.core.Binne... |
package io.compgen.ngsutils.cli.bam;
import htsjdk.samtools.SAMFileHeader;
import htsjdk.samtools.SAMFileHeader.SortOrder;
import htsjdk.samtools.SAMFileWriter;
import htsjdk.samtools.SAMFileWriterFactory;
import htsjdk.samtools.SAMProgramRecord;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.SamInputResource... |
package edu.ucsf.lava.core.audit;
import java.beans.PropertyDescriptor;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.Currency;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.beanutils.PropertyUtils;
... |
package org.voovan.vestful.entity;
import org.voovan.tools.ObjectPool;
import org.voovan.tools.TFile;
import org.voovan.tools.TObject;
import org.voovan.tools.TString;
import org.voovan.tools.json.JSON;
import org.voovan.tools.log.Logger;
import org.voovan.tools.reflect.TReflect;
import org.voovan.vestful.VestfulGlobal... |
package edu.stanford.prpl.junction.impl;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.cometd.Bayeux;
import org... |
package mooklabs.nausicaamod;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
//TODO should move this class somewhere else
public class FuelBlock extends Block{
public FuelBlock() {
super(Material.iron);
this.se... |
package nl.b3p.kar.stripes;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.geom.Polygon;
import com.vividsolutions.jts.geom.PrecisionModel;
import com.vividsolutions.jts.io.WKTReader;
import java.io.StringReader;
import java.sql.Connection;
im... |
package org.wahlzeit.model;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.google.appengine.api.utils.SystemProperty;
import org.wahlzeit.handlers.PartUtil;
import org.wahlzeit.main.ServiceMain;
import org.wahlzeit.services.AbstractConfig;
import ... |
package edu.wpi.first.wpilibj.team2903.subsystems;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.team2903.RobotMap;
public class Drive extends Subsystem {
public Jaguar leftFrontMotor1 = new Jaguar(RobotMap.leftFrontMotor1);
public Jaguar leftF... |
package msp_exercise.exercise;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import mappers.WordsByteMapper;
import reducers.WordsByteReducer;
import mappers.WordsSortMapper;
import reducers.WordsSortReducer;
import reducers.WordsCountReducer;
im... |
package net.apnic.whowas;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import net.apnic.whowas.history.*;
import net.apnic.whowas.intervaltree.IntervalTree;
import net.apnic.whowas.rdap.*;
import net.apnic.whowas.types.IP;
import net.apnic.whowas.types.... |
package div;
import classpackage.DBConnector;
import java.io.*;
import java.sql.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class ZipImporter {
public static void main(String[] args) {
Importer i = new Importer();
}
}
class Importer extends DBConnector {
... |
package org.jasig.portal.channels;
import org.jasig.portal.ChannelRuntimeData;
import org.jasig.portal.ChannelStaticData;
import org.jasig.portal.PortalException;
import org.jasig.portal.GeneralRenderingException;
import org.jasig.portal.ResourceMissingException;
import org.jasig.portal.ChannelRegistryManager;
import o... |
package com.sabik.assistantenabler;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.BaseBundle;
import android.os.BatteryManager;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import de.robv.android.xposed.IXposedHo... |
package permafrost.tundra.data;
import com.wm.data.IData;
import com.wm.data.IDataCursor;
import com.wm.data.IDataPortable;
import com.wm.data.IDataUtil;
import com.wm.util.Table;
import com.wm.util.coder.IDataCodable;
import com.wm.util.coder.ValuesCodable;
import permafrost.tundra.io.StreamHelper;
import permafrost.t... |
package experimentalcode.hettab.outlier;
import de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.AbstractNeighborhoodOutlier;
import de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.neighborhood.NeighborSetPredicate;
import de.lmu.ifi.dbs.elki.data.NumberVector;
import de.lmu.ifi.dbs.elki.data.type.TypeInformation;
import de... |
package net.imagej.axis;
import java.util.Arrays;
import java.util.List;
/**
* A {@link CalibratedAxis} whose coordinate values are explicitly enumerated by
* a list. Out-of-bounds calibrated values are linearly extrapolated from the
* two nearest known coordinates. Non-integer calibrated values are linearly
* inte... |
package org.jfree.chart.renderer;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.O... |
package org.apache.commons.lang;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang.math.NumberUtils;
public class StringUtils {
// Performance testing notes (JDK 1.4, Jul03, scolebourne)
// Whitespace:
// Character.isWhitespace() is faster than WHIT... |
package permafrost.tundra.server;
import com.wm.app.b2b.server.*;
import com.wm.app.b2b.server.Package;
import com.wm.data.IData;
import permafrost.tundra.data.IDataMap;
import permafrost.tundra.io.FileHelper;
import permafrost.tundra.lang.BooleanHelper;
import permafrost.tundra.lang.IterableEnumeration;
import java.ut... |
package net.md_5.bungee;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import net.md_5.bungee... |
package fi_81.cwp_morse_mangle;
import java.util.concurrent.atomic.AtomicLong;
import android.os.Debug;
import android.util.Log;
/* Log wrapper with on/off switch and formatting input */
public class EventLog {
private static final boolean logging = true;
private static final boolean tracing = false;
privat... |
package org.voltdb.sysprocs;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import org.voltdb.VoltNTSystemProcedure;
import org.voltdb.Volt... |
package permafrost.tundra.server;
import com.wm.app.b2b.server.BaseService;
import com.wm.app.b2b.server.InvokeState;
import com.wm.app.b2b.server.ServerAPI;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
import com.wm.app.b2b.server.ServiceSetupException;
import com.wm.app.b2b.ser... |
package org.voltdb.utils;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ato... |
package foam.nanos.http;
import foam.box.*;
import foam.core.*;
import foam.core.FObject;
import foam.lib.json.ExprParser;
import foam.lib.json.JSONParser;
import foam.lib.parse.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Reader;
import java.nio.CharBuffer;
import javax.servlet.http.HttpSe... |
package quilt.config.subscription.service;
import com.openshift.restclient.ClientBuilder;
import com.openshift.restclient.IClient;
import com.openshift.restclient.authorization.TokenAuthorizationStrategy;
import io.vertx.core.impl.FileResolver;
import quilt.config.subscription.service.amqp.AMQPServer;
import quilt.conf... |
package org.apache.batik.swing.svg;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.geom.AffineTransform;
import java.awt.geom.Dimension2D;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;
import java.util.LinkedLi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.