answer stringlengths 17 10.2M |
|---|
package de.tblsoft.solr.http;
import com.google.common.base.Strings;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.*;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpCli... |
package de.saumya.mojo.ruby;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.xml.sax.helpers.XMLReaderAdapter;
import de.saumya.mojo.gems.GemspecConverter;
import de.saumya.mojo.ruby.script... |
package fr.inra.mig_bibliome.alvisir.core;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java... |
package edu.berkeley.bid.comm;
import java.util.List;
import java.util.LinkedList;
import edu.berkeley.bid.UTILS;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class AllReduce {
public class Machine {
/* Machine Configu... |
package org.antlr.v4.runtime.atn;
import org.antlr.v4.runtime.Recognizer;
import org.antlr.v4.runtime.RuleContext;
import org.antlr.v4.runtime.misc.DoubleKeyMap;
import org.antlr.v4.runtime.misc.MurmurHash;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
i... |
package hudson.plugins.analysis.core;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.CheckForNull;
import org.apache.commons.lang.StringUtils;
import org.kohsuke.... |
package de.fau.osr.core.db;
import de.fau.osr.core.db.domain.Commit;
import de.fau.osr.core.db.domain.Requirement;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.slf4j.Logger;
import... |
package edu.uib.info310.model;
import java.util.Random;
public class MockEvent implements Event {
public String getDate() {
return "20.10.2011";
}
public String getLocation() {
return "Bergen";
}
public String getVenue() {
return "Hulen";
}
public String getLong() {
... |
package com.bkromhout.ruqus;
import android.os.Parcel;
import android.os.Parcelable;
import com.squareup.phrase.ListPhrase;
import io.realm.RealmObject;
import io.realm.RealmResults;
import io.realm.Sort;
import java.util.ArrayList;
import java.util.regex.Pattern;
/**
* Used to let end-users build Realm Queries by wra... |
package hudson.plugins.emailext;
import hudson.Extension;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.model.Hudson;
import hudson.model.ParametersAction;
import hudson.model.Result;
import hudson.model.User;
import huds... |
package eu.rekawek.coffeegb.gpu;
import eu.rekawek.coffeegb.AddressSpace;
import eu.rekawek.coffeegb.gpu.phase.OamSearch.SpritePosition;
import eu.rekawek.coffeegb.memory.MemoryRegisters;
import java.util.EnumSet;
import static eu.rekawek.coffeegb.cpu.BitUtils.toSigned;
import static eu.rekawek.coffeegb.gpu.GpuRegister... |
package com.stolets.rxdiffutil;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
public class TestAdapter<T> extends RecyclerView.Adapter<TestAdapter.TestViewHolder> implements Updatable<T> {
@Override
public TestAdapter.TestViewHolde... |
package hudson.plugins.git.extensions.impl;
import hudson.EnvVars;
import hudson.Extension;
import hudson.model.Computer;
import hudson.model.Node;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.plugins.git.GitException;
import hudson.plugins.git.GitSCM;
import hudson.plugins.git.extensions.Gi... |
package com.emekalites.react.alarm.notification;
import android.app.AlarmManager;
import android.app.Application;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.A... |
package examples.auction;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.c... |
package com.s3auth.relay;
import com.s3auth.hosts.Host;
import com.s3auth.hosts.HostMocker;
import com.s3auth.hosts.Resource;
import java.net.HttpURLConnection;
import java.net.URI;
import javax.ws.rs.core.HttpHeaders;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.... |
package innovimax.mixthem.operation;
import innovimax.mixthem.MixException;
import innovimax.mixthem.arguments.RuleParam;
import innovimax.mixthem.arguments.ParamValue;
import java.util.Arrays;
import java.util.Map;
/**
* <p>Zips two characters.</p>
* @see CharOperation
* @author Innovimax
* @version 1.0
*/
public clas... |
package fape.core.planning.states;
import fape.core.execution.model.AtomicAction;
import fape.core.inference.HReasoner;
import fape.core.inference.Term;
import fape.core.planning.Plan;
import fape.core.planning.grounding.GAction;
import fape.core.planning.grounding.TempFluents;
import fape.core.planning.planninggraph.F... |
package innovimax.mixthem.operation;
import innovimax.mixthem.MixException;
import innovimax.mixthem.arguments.ParamValue;
import innovimax.mixthem.arguments.RuleParam;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* <p>Joins tw... |
package gov.nasa.jpl.mbee.mdk;
import com.nomagic.actions.ActionsCategory;
import com.nomagic.actions.ActionsManager;
import com.nomagic.actions.NMAction;
import com.nomagic.magicdraw.actions.ActionsConfiguratorsManager;
import com.nomagic.magicdraw.core.Application;
import com.nomagic.magicdraw.core.options.Environmen... |
package innovimax.mixthem.operation;
import innovimax.mixthem.MixException;
import innovimax.mixthem.arguments.ParamValue;
import innovimax.mixthem.arguments.RuleParam;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* <p>Joins two lines on a common field.</... |
package com.taobao.zeus.socket.master;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java... |
package io.cfp.service;
import io.cfp.domain.exception.CospeakerNotFoundException;
import io.cfp.dto.EventSched;
import io.cfp.dto.TalkAdmin;
import io.cfp.dto.user.CospeakerProfil;
import io.cfp.dto.user.UserProfil;
import io.cfp.entity.Event;
import io.cfp.entity.Rate;
import io.cfp.entity.Talk;
import io.cfp.entity.... |
package me.prettyprint.cassandra.service;
import org.apache.cassandra.thrift.Column;
import org.apache.cassandra.thrift.ColumnPath;
import static me.prettyprint.cassandra.utils.StringUtils.bytes;
import static me.prettyprint.cassandra.utils.StringUtils.string;
/**
* Example client that uses the cassandra hector client... |
package mods.ocminecart.network.message;
import io.netty.buffer.ByteBuf;
import mods.ocminecart.common.ISyncEntity;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.ByteBufUtils;
impor... |
package it.unito.geosummly.io;
import it.unito.geosummly.BoundingBox;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
i... |
package net.minecraftforge.gradle.tasks;
import groovy.lang.Closure;
import java.io.File;
import java.util.Map.Entry;
import net.minecraftforge.gradle.json.version.AssetIndex;
import net.minecraftforge.gradle.json.version.AssetIndex.AssetEntry;
import net.minecraftforge.gradle.delayed.DelayedFile;
import org.gradle.api... |
package nl.mpi.kinnate.ui;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.io.File;
import java.net.URI;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
i... |
package jwebform.element;
import java.security.SecureRandom;
import java.util.Base64;
import com.coverity.security.Escape;
import jwebform.element.structure.Element;
import jwebform.element.structure.ElementResult;
import jwebform.element.structure.HTMLProducer;
import jwebform.element.structure.PrepareInfos;
import jw... |
package nl.vu.datalayer.hbase.sail;
import info.aduna.iteration.CloseableIteration;
import info.aduna.iteration.CloseableIteratorIteration;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import nl.vu.datalayer.hbase.HBaseClientSolution;
impo... |
package org.almibe.controls.skins;
import javafx.beans.binding.Bindings;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.SkinBase;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import org.almibe.controls.Draggabl... |
package org.ambraproject.rhino.view.article;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* JSON output view class for authors of an article.
*/
public cla... |
package org.ambraproject.wombat.service;
import com.google.common.base.Preconditions;
import org.ambraproject.rhombat.HttpDateUtil;
import org.ambraproject.rhombat.cache.Cache;
import org.ambraproject.wombat.config.RuntimeConfiguration;
import org.apache.http.Header;
import org.apache.http.client.methods.CloseableHttpR... |
package mcjty.xnet.multiblock;
import mcjty.xnet.api.keys.ConsumerId;
import mcjty.xnet.api.keys.NetworkId;
import mcjty.xnet.logic.VersionNumber;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minec... |
package org.animotron.serializer;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
import org.animotron.Statement;
import org.animotron.instruction.ml.ATTRIBUTE;
import org.animotron.instruction.ml.CDATA;
import org.animotron.instruction.ml.COMMENT;
import org.animotron.instruction.m... |
package vhdlConvertor;
import java.math.BigInteger;
import org.antlr.v4.runtime.tree.TerminalNode;
import convertorApp.NotImplementedLogger;
import hdlObjects.Expr;
import hdlObjects.SymbolType;
import vhdlParser.vhdlParser.Abstract_literalContext;
import vhdlParser.vhdlParser.DesignatorContext;
import vhdlParser.vhdlP... |
package mho.qbar.objects;
import mho.wheels.misc.Readers;
import mho.wheels.ordering.Ordering;
import mho.wheels.ordering.comparators.ShortlexComparator;
import mho.wheels.structures.Pair;
import org.jetbrains.annotations.NotNull;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import stat... |
package org.b3log.symphony.processor;
import com.qiniu.util.Auth;
import org.apache.commons.lang.StringUtils;
import org.b3log.latke.Keys;
import org.b3log.latke.ioc.inject.Inject;
import org.b3log.latke.logging.Level;
import org.b3log.latke.logging.Logger;
import org.b3log.latke.model.User;
import org.b3log.latke.serv... |
package org.b3log.symphony.service;
import com.vdurmont.emoji.EmojiParser;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateFormatUtils;
import org.apache.commons.lang.time.DateUtils;
import org.b3log.latke.Keys;
import org.b3log.latke.Latkes;
import org.b3log.latke.ioc.inject.Inject;... |
package myapp;
import com.google.cloud.dataflow.sdk.Pipeline;
import com.google.cloud.dataflow.sdk.io.TextIO;
import com.google.cloud.dataflow.sdk.options.DataflowPipelineOptions;
import com.google.cloud.dataflow.sdk.options.PipelineOptionsFactory;
import com.google.cloud.dataflow.sdk.runners.BlockingDataflowPipelineRu... |
package net.conan.file;
import net.conan.lambda.ExceptionWrapper;
import java.io.File;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.StandardOpenOption;
import java.util.List;
/**
* Combines text files into a single file.
*
* @author Conan Dombroski (dombroco)
*/
public clas... |
package org.cobaltians.cobalt.fragments;
import org.cobaltians.cobalt.Cobalt;
import org.cobaltians.cobalt.R;
import org.cobaltians.cobalt.activities.CobaltActivity;
import org.cobaltians.cobalt.customviews.CobaltSwipeRefreshLayout;
import org.cobaltians.cobalt.customviews.IScrollListener;
import org.cobaltians.cobalt.... |
package net.glowstone.entity;
import net.glowstone.net.message.play.player.InteractEntityMessage;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Animals;
import org.bukkit.entity.EntityType;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukki... |
package org.gluewine.gwt;
import org.apache.log4j.Logger;
import org.gluewine.gxo_client.GxoClient;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
/**
* Abstract Gluewine Service. This service provides access to Gluewine services either
* through the use of GXO (in case the service is located in a remote... |
package org.firebears.commands.auto;
import org.firebears.Robot;
import org.firebears.commands.drive.ForwardCommand;
import org.firebears.commands.drive.StrafeCommand;
import org.firebears.commands.drive.Totecenter;
import org.firebears.commands.grabber.GrabberCommand;
import org.firebears.commands.lift.SetHeightComman... |
package de.faustedition;
import static org.restlet.data.ChallengeScheme.HTTP_BASIC;
import java.util.List;
import org.restlet.Application;
import org.restlet.Request;
import org.restlet.Response;
import org.restlet.Restlet;
import org.restlet.data.CharacterSet;
import org.restlet.data.Reference;
import org.restlet.engi... |
package com.arcologydesigns.DataStructures;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.Random;
import static org.junit.Assert.*;
public class BSTTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@... |
package org.commcare.cases.entity;
import org.commcare.modern.util.Pair;
import org.javarosa.core.model.instance.TreeReference;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;
/**
* Filter entity list via all string-representable entity fields
*/
public ... |
package net.imagej.legacy;
import java.awt.GraphicsEnvironment;
import java.io.File;
import java.rmi.NoSuchObjectException;
import java.rmi.server.UnicastRemoteObject;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.Future;
import net.imagej.DatasetService;
im... |
package org.sleekwater.switchboard;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
import o... |
package org.dainst.gazetteer.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.dainst.gazetteer.dao.PlaceRepository;
import org.dainst.gazetteer.domain.Place;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;... |
package net.imagej.legacy;
import java.awt.GraphicsEnvironment;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util... |
package org.ftcTeam.opmodes.registrar1;
//BLUE
import android.util.Base64;
import com.kauailabs.navx.ftc.AHRS;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import org.firstinspires.ftc.robotcore.external.ClassFactory;
import org.firstinspires.ftc.robotcore.external.matrices.OpenGLMatrix;
import org.firsti... |
package city.animationPanels;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.Timer... |
package org.jboss.msc.service;
/**
* Base Exception class used for service registry issues.
*
* @author John Bailey
*/
public class ServiceRegistryException extends RuntimeException {
private static final long serialVersionUID = -8431095020967798064L;
/**
* Constructs a {@code ServiceRegistryException}... |
/*
* @(#) TemplateProcessor.java
*/
package net.pwall.xml;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.Reader;
import java.net.URL;
import java.net.URLConnection;
import java... |
package cl.uchile.dcc.blabel.lean;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.TreeSet;
import java.util.logging.Logger;
import org.semanticweb.yars.nx.BNode;... |
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class Tt8850ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
Tt8850ProtocolDecoder decoder = new Tt8850ProtocolDecoder(new Tt8850Protocol());
verifyPosition(de... |
package net.sf.jranges.range;
import java.util.Collection;
import net.sf.jranges.range.doublerange.DoubleRange;
import net.sf.jranges.range.integer.IntegerRange;
import net.sf.kerner.utils.math.MathUtils;
public class RangeUtils {
public interface IntegerRangeCallback {
void call(int i);
}
public in... |
package org.jboss.netty.handler.codec.frame;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
public class Delimiters {
/**
* Returns a {@code NUL (0x00)} delimiter, which could be used for
* Flash XML socket or any similar protocols.
*/
public static Cha... |
package org.jboss.netty.handler.logging;
import static org.jboss.netty.buffer.ChannelBuffers.*;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.channel.ChannelDownstreamHandler;
import org.jboss.netty.channel.ChannelEvent;
import org.jboss.netty.channel.ChannelHandler;
import org.jboss.netty.channel... |
package hudson.model;
import hudson.model.DownloadService.Downloadable;
import java.io.IOException;
import java.net.URL;
import java.util.Set;
import java.util.TreeSet;
import jenkins.model.DownloadSettings;
import net.sf.json.JSONObject;
import org.jvnet.hudson.test.Bug;
import org.jvnet.hudson.test.HudsonTestCase;
im... |
package org.jcodec.containers.mp4.boxes;
import java.nio.ByteBuffer;
import static org.jcodec.containers.mp4.TimeUtil.fromMovTime;
import static org.jcodec.containers.mp4.TimeUtil.toMovTime;
public class TrackHeaderBox extends FullBox {
private int trackId;
private long duration;
private float width;
pr... |
package org.minimalj.security;
import java.io.Serializable;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.InvalidKeySpecException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Base64;
import java.util.List;
import java.util.stream.Co... |
package org.apache.mesos.hdfs;
import com.google.inject.Inject;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.mesos.MesosSchedulerDriver;
import org.apache.mesos.Pro... |
package org.nanopub.extra.server;
import java.io.IOException;
import java.io.InputStream;
import java.util.Random;
/**
* For testing purposes.
*/
public class UnreliableInputStream extends InputStream {
private static final double errorProbability = 0.01;
private static Random random = new Random();
priva... |
package org.apache.mesos.hdfs;
import com.google.inject.Inject;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import org.apache.commons.lang.time.DateUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.mesos.Me... |
package org.arachb.owlbuilder.lib;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.log4j.Logger;
import org.arachb.arachadmin.AbstractConnection;
import org.arachb.arachadmin.ClaimBean;
import org.arachb.owlbuilder.Owlbuilder;... |
package org.openlmis.referencedata;
import static org.openlmis.referencedata.util.Pagination.DEFAULT_PAGE_NUMBER;
import static org.openlmis.referencedata.util.Pagination.DEFAULT_PAGE_SIZE;
import org.javers.core.Javers;
import org.javers.core.metamodel.object.CdoSnapshot;
import org.javers.repository.jql.QueryBuilder;... |
package JNode;
import com.ericsson.otp.erlang.OtpErlangAtom;
import com.ericsson.otp.erlang.OtpErlangBinary;
import com.ericsson.otp.erlang.OtpErlangDecodeException;
import com.ericsson.otp.erlang.OtpErlangExit;
import com.ericsson.otp.erlang.OtpErlangObject;
import com.ericsson.otp.erlang.OtpErlangPid;
import com.eric... |
package org.orecruncher.dsurround.lib.sound;
import java.io.InputStream;
import java.net.URL;
import java.util.Arrays;
import java.util.Map;
import javax.annotation.Nonnull;
import org.orecruncher.dsurround.ModInfo;
import org.orecruncher.lib.LibLog;
import com.google.common.io.ByteStreams;
import it.unimi.dsi.fastutil... |
package org.owasp.esapi.reference;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.ProgressListener;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.owasp.esapi.*;
import org.owasp.esapi.errors.... |
package org.owasp.security.logging.filter;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.AbstractMatcherFilter;
import ch.qos.logback.core.spi.FilterReply;
/**
*
* Filters all logging for a specific marker
*
*/
public clas... |
package org.geoscript.js;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import jline.Completor;
import jline.ConsoleReader;
import jline.History;
i... |
package org.grouplens.inject.graph;
import java.lang.reflect.Type;
import java.util.List;
import javax.inject.Provider;
import com.google.common.base.Function;
/**
* A concrete type. It has a set of dependencies which must be satisfied in
* order to instantiate it. It can also be viewed as an instantiable extension
... |
package org.spongepowered.api.event;
import com.flowpowered.math.vector.Vector3d;
import com.flowpowered.math.vector.Vector3f;
import com.flowpowered.math.vector.Vector3i;
import com.google.common.base.Optional;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.c... |
package org.jboss.aesh.extensions.ls;
import org.jboss.aesh.cl.Arguments;
import org.jboss.aesh.cl.CommandDefinition;
import org.jboss.aesh.cl.Option;
import org.jboss.aesh.console.Config;
import org.jboss.aesh.console.command.Command;
import org.jboss.aesh.console.command.CommandResult;
import org.jboss.aesh.console.c... |
package phase2;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
impor... |
package cl.fatman.capital.fund;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;
@Entity
@Table(name = "foment_unit")
public class FomentUnit {
@Id
private String id;
private double value;
@Column(u... |
package org.vorthmann.zome.app.impl;
import java.awt.BasicStroke;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import java.awt.geom.GeneralPath;
import java.beans.PropertyChangeEvent;... |
package railo.runtime.op;
/**
* Constant Values
*/
public final class Constants {
/**
* Field <code>INTEGER_ZERO</code> equals Integer.valueOf(0)
*/
public static final Integer INTEGER_0=Integer.valueOf(0);
/**
* Field <code>INTEGER_ONE</code> equals Integer.valueOf(1)
*/
public st... |
package org.junit.runners;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Arrays;
import j... |
package com.cloud.cluster;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.apache.http.ConnectionClosedException;
import org.apache.http.HttpException;
... |
package org.junit.runners;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Field;
import java.text.MessageFormat;
import java.util.ArrayList;
... |
package org.yatech.jedis.utils.lua.ast;
public final class LuaScriptConfig {
/**
* Default lua script configuration:
* <ul>
* <li>Use script caching: <code>true</code></li>
* <li>Use thread safe implementation: <code>false</code></li>
* </ul>
*/
public static final LuaScrip... |
package org.junit.runners;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Arrays;
import j... |
package pl.edu.pw.elka.pik.issueTracker;
import org.hibernate.criterion.Order;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaQuery;
import java.util.List;
@SuppressWarnings("... |
import javax.swing.JPanel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import net.sf.vfsjfilechooser.VFSJFileChooser;
import net.sf.vfsjfilechooser.accessories.DefaultAccessoriesPanel;
import org.apache.commons.vfs.FileObject;
import javax.swing.JLabel;
import ja... |
import java.util.Scanner;
import java.text.DateFormat;
public class Interface
{
public static void main(String [] args)
{
boolean exitProgram = false;
String userInput = "";
Scanner userInputScanner = new Scanner(System.in);
Calendar calendar;
//if user enters a comma... |
package com.sinnerschrader.smaller;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;
import java.util.Properties;
import javax.servlet.FilterConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle... |
package org.lantern;
import static org.lantern.state.Peer.Type.*;
import static org.littleshoot.util.FiveTuple.Protocol.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
... |
package policycompass.fcmmanager.controllers;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.ws.rs.*;
import javax.ws.rs.core.*;
import com.sun.jersey.api.client.*;
import java.security.SecureRandom;
import... |
package ca.etsmtl.applets.etsmobile.util;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import com.j256.ormlite.dao.Dao;
import com.octo.android.robospice.request.listener.RequestListener;
import java.lang.r... |
package org.lightmare.deploy.fs;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.StandardWatchEventKinds;
import java.nio.file.WatchEvent;
import java.nio.file.WatchEvent.Kind;
import... |
package org.lightmare.remote.rpc;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.lightmare.config.ConfigKeys;
import or... |
package sg.ncl.service.user.web;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import sg.ncl.service.user.data.jpa.UserEntity;
import sg.ncl.service.user.domain.LoginActivity;
import sg.ncl.service.user.domain.User;
import sg.ncl.service.user.domain.UserStatu... |
package ru.VirtaMarketAnalyzer.ml;
import com.google.gson.ExclusionStrategy;
import com.google.gson.GsonBuilder;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.PatternLayout;
... |
package org.lightmare.utils;
/**
* Utility class for {@link String} operations
*
* @author Levan
*
*/
public class StringUtils {
public static final String EMPTY_STRING = "";
public static final char SPACE = ' ';
public static final int NOT_EXISTING_INDEX = -1;
/**
* Appends contents of passed... |
package com.bukhmastov.cdoitmo.converters;
import com.bukhmastov.cdoitmo.utils.Log;
import com.bukhmastov.cdoitmo.utils.Static;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Collections;
import java.util.regex.Matcher;
import java.util... |
package main.java.schema.tdobjects.items;
import main.java.author.view.tabs.item.ItemViewConstants;
import main.java.engine.objects.item.Annihilator;
import main.java.engine.objects.item.AreaBomb;
import main.java.engine.objects.item.InstantFreeze;
import main.java.schema.tdobjects.ItemSchema;
import java.util.HashSet;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.