answer stringlengths 17 10.2M |
|---|
package org.neo4j.server.logging;
import org.apache.log4j.Level;
import org.apache.log4j.Priority;
public class Logger
{
public static Logger log = Logger.getLogger(Logger.class);
org.apache.log4j.Logger logger;
public static Logger getLogger(Class<?> clazz) {
return new Logger(clazz);
}
pub... |
package com.github.ambry.rest;
import io.netty.handler.codec.http.Cookie;
import io.netty.handler.codec.http.DefaultCookie;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
import junit.framework.Assert;
import org.junit.Test;
public class NettyUtilsTest {
@Test
pub... |
package com.tavultesoft.kmea;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.ArrayList;
imp... |
package com.taobao.weex.dom;
import android.graphics.Canvas;
import android.graphics.Typeface;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.Layout;
import android.text.Spannable;
import android.text.SpannableString;
import android.te... |
package com.mapswithme.maps.downloader;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
import com.mapswithme.maps.R;
import com.mapswithme.maps... |
package com.mapswithme.maps.downloader;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.View;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;... |
package me.fraserxu.rncouchbaselite;
import android.net.Uri;
import android.os.AsyncTask;
import com.couchbase.lite.CouchbaseLiteException;
import com.couchbase.lite.Database;
import com.couchbase.lite.Manager;
import com.couchbase.lite.View;
import com.couchbase.lite.android.AndroidContext;
import com.couchbase.lite.a... |
package wang.relish.colorpicker.sample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.SwitchCompat;
import android.view.View;
import android.widget.CompoundButton;
import wang.relish.colorpicker.ColorPickerDialog;
/**
* @author Relish Wang
* @since 2017/7/... |
package me.lucko.luckperms.bukkit;
import me.lucko.luckperms.bukkit.inject.Injector;
import me.lucko.luckperms.bukkit.model.LPPermissible;
import me.lucko.luckperms.common.config.ConfigKeys;
import me.lucko.luckperms.common.constants.Message;
import me.lucko.luckperms.common.core.model.User;
import me.lucko.luckperms.c... |
package ru.ematveev.arraysquare;
public class ArraySquare{
public int [][] arraySquare(int [][] array){
int [][] arr2 = new int[array.length][array.length];
for (int i = 0; i < array.length;){
for (int j = 0; j < array.length; j++){
arr2[j][array.length - (i+1)] = array[... |
package cane.brothers.circus.domain;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "CIRCUS_LAYOUTS")
public class CircusLayout extends Bas... |
package com.netflix.metacat.connector.hive.iceberg;
import org.apache.iceberg.TableMetadata;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
/**
* Proxy class to get the metadata from cache if exists.
*/
@CacheConfig(cacheNames = "metacat")
public class ... |
package org.terasology.codecity.world.generator;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.terasology.codecity.world.facet.CodeCityFacet;
import org.terasology.codecity.world.map.CodeMap;
import org.terasology.codecity.world.map.CodeMapFactory;
import org.terasology.codecity.wo... |
package it.unibz.krdb.obda.reformulation.tests;
import it.unibz.krdb.obda.io.DataManager;
import it.unibz.krdb.obda.io.QueryStorageManager;
import it.unibz.krdb.obda.model.OBDADataFactory;
import it.unibz.krdb.obda.model.OBDAModel;
import it.unibz.krdb.obda.model.OBDAResultSet;
import it.unibz.krdb.obda.model.OBDAState... |
package org.gbif.occurrence.ws.client.mock;
import org.gbif.api.model.common.paging.Pageable;
import org.gbif.api.model.common.paging.PagingResponse;
import org.gbif.api.model.occurrence.Download;
import org.gbif.api.model.registry.DatasetOccurrenceDownloadUsage;
import org.gbif.api.service.registry.OccurrenceDownloadS... |
package pl.openrest.filters.repository;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.Map.Entry;
import javax.persistence.EntityManager;
import javax.persistence.LockModeType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImp... |
package org.eclipse.emf.emfstore.client.model.controller;
import java.util.Date;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.emfstore.client.common.UnknownEMFStoreWorkloadCommand;
import org.eclipse.emf.emfstore.client.model.Configuration;
import org.eclipse.emf.emfstore.client.model.Userse... |
package org.eclipse.mylyn.internal.team.ui.actions;
import java.util.Collection;
import java.util.Collections;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.... |
package org.tigris.subversion.subclipse.ui.comments;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Observable;
import java.util.Observer;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgress... |
package com.redhat.ceylon.eclipse.core.builder;
import static com.redhat.ceylon.eclipse.core.builder.CeylonBuilder.PROBLEM_MARKER_ID;
import static com.redhat.ceylon.eclipse.ui.CeylonPlugin.PLUGIN_ID;
import static org.eclipse.core.resources.IResource.DEPTH_ZERO;
import static org.eclipse.core.resources.ResourcesPlugin... |
package com.redhat.ceylon.eclipse.imp.editor;
import static java.lang.Character.isWhitespace;
import static org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH;
import static org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SPACES_FOR_TABS;
import org... |
package com.redhat.ceylon.eclipse.imp.editor;
import static com.redhat.ceylon.eclipse.imp.parser.CeylonSourcePositionLocator.getTokenIndexAtCharacter;
import static java.lang.Character.isWhitespace;
import static org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SPACES_FOR_TABS;
import sta... |
package org.jkiss.dbeaver.model.impl.data.formatters;
import org.jkiss.code.Nullable;
import org.jkiss.dbeaver.model.data.DBDDataFormatter;
import org.jkiss.utils.CommonUtils;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.FieldP... |
package de.factoryfx.factory.datastorage.postgres;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import ... |
package org.springframework.roo.process.manager.internal;
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Ser... |
package com.opengamma.integration.viewer.status.impl;
import java.util.Map;
import org.joda.beans.BeanBuilder;
import org.joda.beans.BeanDefinition;
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.MetaProperty;
import org.joda.beans.Property;
import org.joda.beans.PropertyDefinition;
import org.joda.beans.im... |
package com.ctrip.xpipe.redis.meta.server.keeper.manager;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import org.springframework.beans.f... |
package info.nightscout.androidaps.plugins.pump.common.hw.rileylink.ble;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluet... |
package fr.obeo.dsl.debug.ide;
import fr.obeo.dsl.debug.ide.event.IDSLDebugEvent;
import fr.obeo.dsl.debug.ide.event.IDSLDebugEventProcessor;
import fr.obeo.dsl.debug.ide.event.debugger.BreakpointReply;
import fr.obeo.dsl.debug.ide.event.debugger.DeleteVariableReply;
import fr.obeo.dsl.debug.ide.event.debugger.PopStack... |
package com.linkedin.thirdeye.dashboard.resources;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.linkedin.thirdeye.anomalydetection.alertFilterAutotune.BaseAlertFilterAutoTune;
import com.linkedin.thirdeye.detector.email.filter.BaseAlertFilter;... |
package edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyHelper;
import edu.cornell.mannlib.vitro.webapp.auth.r... |
package won.protocol.agreement;
import java.net.URI;
import java.util.Collections;
import java.util.HashSet;
import java.util.Optional;
import java.util.OptionalInt;
import java.util.Set;
import org.apache.thrift.Option;
import won.protocol.agreement.effect.MessageEffect;
import won.protocol.message.WonMessageDirection... |
package com.xpn.xwiki.objects.classes;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.ecs.xhtml.input;
import org.apache.velocity.VelocityContext;
import org.dom4j.Element;
import org.dom4j.dom.DOMElement;
import org.hibernate.mapping.Property;
import or... |
package org.opendaylight.yangtools.yang.parser.stmt.reactor;
import static java.util.Objects.requireNonNull;
import static org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase.EFFECTIVE_MODEL;
import static org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase.FULL_DECLARATION;
import com... |
package com.google.sampling.experiential.server.stats.participation;
import java.util.ConcurrentModificationException;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.joda.time.DateMidnight;
import org.joda.time.DateTime;
import org.joda.time.Dat... |
package gov.hhs.fha.nhinc.async;
import com.sun.xml.ws.api.message.Header;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.stream.XMLStreamException;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import ... |
package org.csstudio.swt.widgets.figures;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import org.csstudio.platform.ui.util.CustomMediaFactory;
import org.csstudio.swt.widgets.introspection.Introspectable;
import org.csstudio.swt.widgets.introspection.ShapeWidgetIntrospector;
import org.eclipse... |
package com.jarvis.cache.script;
import com.jarvis.cache.CacheUtil;
import javax.script.Bindings;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.SimpleBindings;
import java.lang.reflect.Method;
import jav... |
package org.axonframework.axonserver.connector.heartbeat;
import org.axonframework.axonserver.connector.AxonServerConnectionManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Verifies if the connection is still alive, and react if it is not.
*
* @author Sara Pellegrini
* @since 4.2.1
*/
public... |
package org.ovirt.engine.core.searchbackend;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.ovirt.engine.core.common.config.Config;
import org.ovirt.engine.core... |
package gov.nih.nci.caadapter.hl7.validation;
import gov.nih.nci.caadapter.common.Message;
import gov.nih.nci.caadapter.common.MessageResources;
import gov.nih.nci.caadapter.common.validation.ValidatorResult;
import gov.nih.nci.caadapter.common.validation.ValidatorResults;
import java.io.ByteArrayInputStream;
import ja... |
package com.powsybl.cgmes.extensions;
import com.google.auto.service.AutoService;
import com.powsybl.commons.extensions.ExtensionAdderProvider;
import com.powsybl.iidm.network.Network;
/**
* @author Miora Vedelago <miora.ralambotiana at rte-france.com>
*/
@AutoService(ExtensionAdderProvider.class)
public class BaseVo... |
package com.orientechnologies.orient.core.command.script.transformer.result;
import com.orientechnologies.orient.core.command.script.transformer.OScriptTransformer;
import com.orientechnologies.orient.core.sql.executor.OResult;
import com.orientechnologies.orient.core.sql.executor.OResultInternal;
import java.util.Map;... |
package img;
import java.io.InputStream;
import javafx.scene.image.Image;
import javafx.scene.image.WritableImage;
public class SafeImage {
Image image;
/**
* Constructs a SafeImage of the image file at the given path.
* This constructor skips giving a width and height.
* Therefore, if the image ... |
package daq.pubber;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import com.google.common.base.Preconditions;
import com.google.daq.mqtt.util.CloudIotConfig;
import java.util.HashMap;
import udmi.sc... |
package org.apache.maven.lifecycle.goal.phase;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.maven.lifecycle.goal.AbstractMavenGoalPhase;
import org.apache.maven.lifecycle.goal.GoalExecutionException;
import org.apache.maven.lifecycle.goal.MavenGoalE... |
package org.ocelotds;
/**
* Constants Class
*
* @author hhfrancois
*/
public interface Constants {
String QUOTE = "\"";
String ALGORITHM = "MD5";
String UTF_8 = "UTF-8";
String JS = ".js";
String HTML = ".htm";
String SLASH = "/";
String BACKSLASH_N = "\n";
String LOCALE = "LOCALE";
... |
package com.github.dreamhead.moco.parser.model;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.github.dreamhead.moco.HttpResponseSetting;
import com.github.dreamhead.moco.HttpServer;
import com.github.dreamhead.moco.HttpsCertificate;
impo... |
import java.util.*;
public class MovementLogic
{
public static final int ROUTINE_A = 0;
public static final int ROUTINE_B = 1;
public static final int ROUTINE_C = 2;
public static final int ROUTINE_D = 3;
private static final int MOVED_OK = 0;
private static final int MOVE_FINISHED = 1;
priv... |
package com.haulmont.cuba.desktop.exception;
import com.haulmont.cuba.core.global.AppBeans;
import com.haulmont.cuba.core.global.Messages;
import com.haulmont.cuba.desktop.App;
import com.haulmont.cuba.gui.components.IFrame;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.springframework.remoting.Re... |
package no.kantega.publishing.rating.dao;
import no.kantega.publishing.api.rating.Rating;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.Sp... |
package dk.statsbiblioteket.doms.ecm.repository;
import dk.statsbiblioteket.doms.ecm.repository.exceptions.*;
import dk.statsbiblioteket.doms.ecm.repository.utils.FedoraUtil;
import dk.statsbiblioteket.doms.webservices.ConfigCollection;
import dk.statsbiblioteket.util.caching.TimeSensitiveCache;
import org.w3c.dom.Docu... |
package name.abuchen.portfolio.ui.util;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separato... |
package uk.gov.nationalarchives.droid.command.action;
import java.io.File;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
/**
* @author rbrennan
*
*/
public class NoProfileRunCommandTest {
private NoProfil... |
package uk.ac.ebi.quickgo.ontology.controller;
import uk.ac.ebi.quickgo.common.SearchableField;
import uk.ac.ebi.quickgo.graphics.model.GraphImageLayout;
import uk.ac.ebi.quickgo.ontology.model.GraphRequest;
import uk.ac.ebi.quickgo.graphics.ontology.GraphPresentation;
import uk.ac.ebi.quickgo.graphics.ontology.Renderi... |
package org.opennms.netmgt.dao.hibernate;
import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.opennms.netmgt.dao.OnmsDao;
import org.opennms.netmgt.m... |
package org.eclipse.mylar.tasklist.ui.views;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.security.auth.login.LoginException;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.ActionContributionItem;
import org.eclipse.jface.a... |
package org.jcryptool.core.actions;
import java.io.IOException;
import java.net.URL;
import java.util.Collections;
import java.util.Comparator;
import java.util.Set;
import java.util.TreeSet;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.co... |
package fr.unice.polytech.al.trafficlight.electriccar.provider;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.a... |
package org.geomajas.gwt.client.command.event;
import org.geomajas.annotation.Api;
import com.google.gwt.event.shared.HandlerRegistration;
import org.geomajas.annotation.UserImplemented;
/**
* Classes triggering the {@link DispatchStartedEvent} should implement this interface, thereby allowing handlers to be
* regist... |
package org.eclipse.persistence.testing.framework.ui;
import org.eclipse.persistence.Version;
public class TestingBrowserFrame extends javax.swing.JFrame implements java.awt.event.ActionListener {
private javax.swing.JPanel ivjJFrameContentPane = null;
private TestingBrowserPanel ivjTestingBrowserPanel1 = null;... |
package com.intellij.codeInsight.completion;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementPresentation;
import com.intellij.lang.Language;
import com.intellij.lang.LanguageExtension;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.... |
package com.oracle.graal.truffle.nodes.typesystem;
import com.oracle.graal.api.meta.*;
import com.oracle.graal.graph.*;
import com.oracle.graal.graph.spi.*;
import com.oracle.graal.nodes.*;
import com.oracle.graal.nodes.extended.*;
import com.oracle.graal.nodes.spi.*;
public final class CustomizedUnsafeLoadNode extends... |
package com.intellij.openapi.projectRoots.impl;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.WriteAction;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProcessCanceledException;
import co... |
package com.intellij.ide.ui.laf.darcula.ui;
import com.intellij.ide.ui.laf.darcula.DarculaUIUtil;
import com.intellij.openapi.ui.ComboBoxWithWidePopup;
import com.intellij.openapi.ui.ErrorBorderCapable;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.ui.EditorTextField;
import com.intellij.ui.JB... |
package org.chromium.debug.ui.actions;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.chromium.debug.core.model.ConnectedTargetData;
import org.chromium.debug.core.util.ScriptTargetMapping;
import org.chromium.debug.ui.TableUt... |
package org.jboss.reddeer.swt.handler;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.jboss.re... |
package p;
abstract class B {
void f(A a) {
<error descr="Cannot access java.util.stream.Stream">a</error>.foo();
}
void f(java.util.List<? extends A> a) {
<error descr="Cannot access java.util.stream.Stream">a.get(0)</error>.foo();
}
} |
package fr.lteconsulting.pomexplorer.commands;
import fr.lteconsulting.pomexplorer.ApplicationSession;
import fr.lteconsulting.pomexplorer.Client;
import fr.lteconsulting.pomexplorer.DefaultPomFileLoader;
import fr.lteconsulting.pomexplorer.Log;
import fr.lteconsulting.pomexplorer.PomAnalysis;
import fr.lteconsulting.p... |
package org.jboss.resteasy.plugins.server.servlet;
/**
* Constant list of bootstrap classes. This is used by JBoss AS to determine whether or not it should scan or not
*
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
public interface ResteasyBootstrapClasses
{
publ... |
package net.ontopia.presto.spi.impl.couchdb;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import net.ontopia.presto.spi.PrestoChangeSet;
import net.ontopia.pre... |
package org.jboss.resteasy.test.security.smime;
import java.io.InputStream;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.MediaType;
impor... |
package org.eclipse.persistence.testing.tests.jpa.delimited;
import java.sql.Date;
import java.util.List;
import javax.persistence.EntityManager;
import junit.framework.Assert;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.persistence.testing.framework.junit.JUnitTestCase;
import org... |
package torrent;
import org.johnnei.utils.ThreadUtils;
import torrent.download.MagnetLink;
import torrent.frame.TorrentFrame;
public class JavaTorrent extends Thread {
public static final String BUILD = "JavaTorrent 0.01.0 Dev";
private TorrentFrame frame;
public static void main(String[] args) {
Sy... |
package org.eclipse.persistence.testing.tests.wdf.jpa1.query;
import static javax.persistence.FlushModeType.AUTO;
import static javax.persistence.FlushModeType.COMMIT;
import static org.junit.Assert.assertEquals;
import java.sql.SQLException;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
i... |
// THIS LIBRARY IS UNTESTED???
public class TreeSet<E> implements Set{
E[] set;
int capacity;
int size;
static int INITIAL_CAPACITY = 16;
static int RESIZE_FACTOR = 2;
public TreeSet() {
set = new E[INITIAL_CAPACITY];
size = 0;
capacity = INITIAL_CAPACITY;
}
private void resi... |
package org.languagetool.tokenizers.de;
import com.google.common.base.Suppliers;
import de.danielnaber.jwordsplitter.EmbeddedGermanDictionary;
import de.danielnaber.jwordsplitter.GermanWordSplitter;
import de.danielnaber.jwordsplitter.InputTooLongException;
import gnu.trove.THashSet;
import org.languagetool.tokenizers.... |
package org.broadinstitute.sting.gatk.walkers.genotyper;
import org.broadinstitute.sting.utils.BaseUtils;
public enum DiploidGenotype {
AA ('A', 'A'),
AC ('A', 'C'),
AG ('A', 'G'),
AT ('A', 'T'),
CC ('C', 'C'),
CG ('C', 'G'),
CT ('C', 'T'),
GG ('G', 'G'),
GT ('G', 'T'),
TT ('T', ... |
package mmsort;
import java.util.Comparator;
public class Simple_ManyPivotSort implements ISortAlgorithm {
protected static final int PIVOTS_SIZE = 127; // 2 - 1
protected static final int SWITCH_SIZE = 3000; // Quick Sort (Median of 3)
/**
* ... |
package model;
public class TransposedMatrixValue extends MatrixValue{
private Value<?> m;
public TransposedMatrixValue(Value<?> m, int line) {
super(line);
this.m = m;
}
@Override
public Matrix value() {
Value<?> v = (m instanceof Variable ? ((Variable) m).value() : m);
... |
package io.spine.server.storage.jdbc.record;
import com.google.common.base.Optional;
import com.google.protobuf.FieldMask;
import com.google.protobuf.Message;
import io.spine.client.ColumnFilter;
import io.spine.client.CompositeColumnFilter;
import io.spine.client.EntityFilters;
import io.spine.server.entity.Entity;
im... |
package net.sandius.rembulan.compiler.gen;
import net.sandius.rembulan.lbc.Prototype;
import net.sandius.rembulan.util.Check;
import net.sandius.rembulan.util.IntVector;
public class PrototypePath {
private final IntVector indices;
private PrototypePath(IntVector indices) {
this.indices = Check.notNull(... |
package com.alibaba.rocketmq.example.concurrent;
import com.alibaba.rocketmq.client.log.ClientLogger;
import com.alibaba.rocketmq.client.producer.concurrent.MultiThreadMQProducer;
import com.alibaba.rocketmq.common.ThreadFactoryImpl;
import com.alibaba.rocketmq.common.message.Message;
import org.slf4j.Logger;
import ja... |
package net.runelite.client.plugins.agility;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Provides;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import javax.inject.Inject;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import net.r... |
package com.quickblox.sample.chat.ui.activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.content.LocalBroadca... |
package bt.net;
import bt.event.EventSource;
import bt.metainfo.TorrentId;
import bt.module.PeerConnectionSelector;
import bt.protocol.Message;
import bt.runtime.Config;
import bt.service.IRuntimeLifecycleBinder;
import bt.torrent.TorrentDescriptor;
import bt.torrent.TorrentRegistry;
import com.google.inject.Inject;
im... |
package org.myLazyClock.travelApi;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
im... |
package org.zanata.webtrans.client.history;
import org.zanata.webtrans.client.presenter.AppPresenter;
import org.zanata.webtrans.shared.model.DocumentId;
import com.allen_sauer.gwt.log.client.Log;
/**
* Encapsulates a string token of key-value pairs for GWT history operations.
*
* @author David Mason, damason@redhat... |
package org.osgi.framework;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;
/**
* Version identifier for bundles and packages.
*
* <p>
* Version identifiers have four components.
* <ol>
* <li>Major version. A non-negative integer.</li>
* <li>Minor version. A non-negative integer.</li>
... |
package io.skysail.server.app.metrics;
import java.util.List;
import org.osgi.service.cm.ConfigurationException;
import org.osgi.service.component.ComponentContext;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import io.skysail.api.metrics.MetricsImple... |
package gov.nih.nci.caarray.magetab2;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* A Protocol is a parameterizable description of a method.
*/
public final class Protocol implements Serializable, TermSourceable {
private static final long serialVersionUID = 313005795290861... |
package org.spoofax;
import org.spoofax.interpreter.Context;
import org.spoofax.interpreter.stratego.CallT;
import org.spoofax.interpreter.stratego.Let;
import org.spoofax.interpreter.stratego.Scope;
import org.spoofax.interpreter.stratego.Strategy;
public class DebugUtil {
public static boolean debugging = false;
... |
package edu.nettester.task;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
//import java.lang.Float;
import java.lang.String;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import edu.nettester.db.MeasureContract.MeasureLog;
import edu.netteste... |
package com.srch2.android.http.service;
import org.json.JSONArray;
import org.json.JSONObject;
/**
* Represents an index in the SRCH2 search server. For every index to be searched on, users of the
* SRCH2 Android SDK should implement a separate subclass instance of this class.
* <br><br>
* For each implementation o... |
package stsc.algorithms.indices.adi.stock;
import java.util.Optional;
import stsc.common.BadSignalException;
import stsc.common.Day;
import stsc.common.algorithms.BadAlgorithmException;
import stsc.common.algorithms.StockAlgorithm;
import stsc.common.algorithms.StockAlgorithmInit;
import stsc.common.signals.SignalsSeri... |
package pal;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.ref.SoftReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.StringTokenizer;
public class Main
{
pr... |
package com.exedio.copernica;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import com.exedio... |
package gov.nara.nwts.ftapp.filetest;
import gov.nara.nwts.ftapp.FTDriver;
import gov.nara.nwts.ftapp.filetest.DefaultFileTest;
import gov.nara.nwts.ftapp.filter.DefaultFileTestFilter;
import gov.nara.nwts.ftapp.ftprop.FTPropString;
import gov.nara.nwts.ftapp.stats.Stats;
import gov.nara.nwts.ftapp.stats.StatsGenerator... |
package io.bisq.core.payment.payload;
import io.bisq.common.locale.Res;
import io.bisq.common.proto.persistable.PersistablePayload;
import io.bisq.core.app.BisqEnvironment;
import io.bisq.generated.protobuffer.PB;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import lombok.extern.slf4j.... |
package org.jeo.geojson.simple.encoder;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayDeque;
import org.jeo.geojson.simple.JSONValue;
public class JSONEncoder {
/**
* output
*/
final Writer out;
/**
* object stack
*/
final ArrayDeque<Thing> stack = new Arra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.