answer stringlengths 17 10.2M |
|---|
package ru.job4j.array;
/**
* Search.
*
* @author Sergey Indyukov (onl.ont@mail.ru)
* @version $Id$
* @since 0.1
*/
public class Search {
public boolean contains(String origin, String sub) {
char[] orig = origin.toCharArray();
char[] s = sub.toCharArray();
int k = 1;
boolean c = false;
for (int i = 0, j = 0; i < orig.l... |
package dk.aau.sw402F15.tests.typechecker;
import dk.aau.sw402F15.ScopeChecker.ScopeChecker;
import dk.aau.sw402F15.TypeChecker.Exceptions.*;
import dk.aau.sw402F15.TypeChecker.Exceptions.IllegalAssignmentException;
import dk.aau.sw402F15.TypeChecker.Exceptions.IllegalComparisonException;
import dk.aau.sw402F15.TypeChe... |
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nullable;
@DoNotStrip
public abstract class YogaNodeJNIBase extends YogaNode implements Cloneable {
/* Those flags needs be in sync with YGJNI.cpp */
private sta... |
package water;
import water.util.Log;
import java.util.Arrays;
/** Lockable Keys - Keys locked during long running {@link Job}s, to prevent
* overwriting in-use keys. E.g. model-building: expected to read-lock input
* {@link water.fvec.Frame}s, and write-lock the output {@link hex.Model}.
* Parser should write-l... |
package org.jfree.chart.plot;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Arc2D;
import java.awt.geom.GeneralPath;
import java.awt.geom.Line2D;
import java.awt.geom.Rectan... |
package com.worth.ifs.application;
import com.worth.ifs.application.constant.ApplicationStatusConstants;
import com.worth.ifs.application.domain.Question;
import com.worth.ifs.application.domain.Section;
import com.worth.ifs.application.form.ApplicationForm;
import com.worth.ifs.application.resource.ApplicationResource... |
package com.alexaut.kroniax.game;
import com.alexaut.kroniax.Application;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class GameHUD {
private float mTime;
private int mTries;
private BitmapFont... |
package hudson.tasks;
import hudson.Launcher;
import hudson.model.Action;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.Descriptor;
import hudson.model.Project;
import hudson.tasks.junit.JUnitResultArchiver;
import java.util.List;
import java.util.ArrayList;
import java.util.Collecti... |
// Triple Play - utilities for use in PlayN-based games
package tripleplay.ui;
import playn.core.Pointer;
import playn.core.Pointer.Event;
import playn.core.Sound;
import pythagoras.f.IDimension;
import pythagoras.f.Point;
import react.Signal;
import react.Slot;
import react.Value;
/**
* Controls the behavior of a wid... |
package com.exedio.cope;
import com.exedio.cope.testmodel.AttributeItem;
import com.exedio.cope.testmodel.PlusItem;
import com.exedio.dsmf.CheckConstraint;
import com.exedio.dsmf.Column;
import com.exedio.dsmf.Constraint;
import com.exedio.dsmf.ForeignKeyConstraint;
import com.exedio.dsmf.PrimaryKeyConstraint;
import c... |
package oop.project.timestamper;
import processing.core.PApplet;
public class Sketch extends PApplet {
float dayWidth;
float dayHeight;
Year year;
public void settings() {
fullScreen();
}
public void setup() {
dayHeight = height;
dayWidth = width / 5;
year = new Y... |
package natlab.toolkits.DependenceAnalysis;
import java.io.File;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.... |
package natlab.toolkits.rewrite.simplification;
import java.util.*;
import ast.*;
import natlab.toolkits.rewrite.*;
import natlab.toolkits.analysis.varorfun.*;
/**
* Simplifies for statements. Reduces them so that there are only
* simple range for loops.
*
* @author Jesse Doherty
*/
public class ForSimplification ... |
package opjj.hw5;
public final class EncodedMessages {
public static final String MESSAGE_1 = "'Purjudpplqj lv olnh vha: rqh plvwdnh dqg brx duh surylglqj vxssruw iru d olihwlph.' -- Mlfkdho Slqc";
public static final String MESSAGE_2 = "'Aalpnh rdst ph xu iwt vjn lwd tcsh je bpxcipxcxcv ndjg rdst xh kxdatci eh... |
interface A {
int X = 1; // implicitly public static final
default void f() {} // implicitly public
}
interface B {
int X = 2; // implicitly public static final
default void f() {} // implicitly public
}
// class C implements A, B { // WILL NOT COMPILE DUE TO f()
// public ... |
package Lev17.Task1714;
public class Beach implements Comparable<Beach>{
private String name;
private float distance;
private int quality;
public Beach(String name, float distance, int quality) {
this.name = name;
this.distance = distance;
this.quality = quality;
}
public synchronized String ge... |
/* -*- mode: Java; c-basic-offset: 2; -*- */
/**
* LZX Attributes
*/
package org.openlaszlo.compiler;
import org.openlaszlo.xml.internal.Schema.Type;
import org.openlaszlo.xml.internal.XMLUtils;
import org.jdom.Element;
/** Contains information about an attribute of a laszlo viewsystem class.
*/
public class Attribu... |
package io.appium.android.bootstrap.handler;
import com.android.uiautomator.core.UiDevice;
import com.android.uiautomator.core.UiObjectNotFoundException;
import io.appium.android.bootstrap.*;
import org.json.JSONException;
import java.util.Hashtable;
/**
* This handler is used to set text in elements that support it.
... |
package net.yadaframework.web;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.annotation.Resource;
import javax... |
package com.jaychang.srv.decoration;
import android.annotation.SuppressLint;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.jaychang.srv.SimpleRecyclerView;
import sta... |
package com.mattunderscore.trees.linked.tree;
import com.mattunderscore.trees.construction.BottomUpTreeBuilder;
import com.mattunderscore.trees.mutable.MutableNode;
import com.mattunderscore.trees.spi.EmptyTreeConstructor;
import com.mattunderscore.trees.spi.TreeConstructor;
import com.mattunderscore.trees.tree.Node;
i... |
package me.id.webverifylib;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.text.Html;
import android.webkit.CookieManager;
import android.webkit.WebView;
public class WebViewActivity extends ActionBarActi... |
package org.modeshape.repository;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import net.jcip.annotations.ThreadSafe;
import org.modeshape.common.collection.Problems;
im... |
package net.zomis.spring.games.generic;
import net.zomis.spring.games.messages.GameMoveResult;
import java.util.function.Function;
public class GroovyGameHelper implements GameHelper<Object, Object> {
public Function<Object, Object> constructor;
@Override
public Object constructGame(Object configuration) {
... |
package org.motechproject.ivr.kookoo;
import org.apache.commons.lang.StringUtils;
import org.motechproject.server.service.ivr.CallDirection;
import org.motechproject.util.Cookies;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;... |
import java.util.Random;
import org.junit.Test;
import static org.junit.Assert.*;
public class ProgramChecker {
public boolean Blum(Graph G1, Graph G2, BitMatrix A1, BitMatrix A2, int k){
int n= G1.V.length;
Map map= Graph.areIsomorphic(G1,G2);
if (map != null && map.length == n){
... |
package org.innovateuk.ifs.config.cache;
import io.lettuce.core.ClientOptions;
import io.lettuce.core.ClientOptions.DisconnectedBehavior;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoco... |
package org.ow2.chameleon.fuchsia.bluetooth.importer;
import org.apache.felix.ipojo.*;
import org.apache.felix.ipojo.annotations.*;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.ow2.chameleon.fuchsia.core.component.AbstractImporterComponent;
import org.ow2.chameleon.fuc... |
package org.caleydo.view.pathway;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import javax.media.opengl.GL2;
import org.caleydo.core.data.collection.dimension.DataRepresentation;
import org.caleydo.core.data.container.Average;
import org.caleydo.core.data.container... |
package org.eclipse.jetty.spdy.client;
import java.io.IOException;
import java.nio.channels.SocketChannel;
import java.util.List;
import java.util.concurrent.Executor;
import javax.net.ssl.SSLEngine;
import org.eclipse.jetty.io.AbstractConnection;
import org.eclipse.jetty.io.Connection;
import org.eclipse.jetty.io.EndP... |
package org.jlib.container.sequence.index;
import org.jlib.container.sequence.ReplaceSequenceIteratorState;
import org.jlib.container.sequence.Sequence;
/**
* {@link IndexSequenceIteratorState} of a {@link ReplaceIndexSequence}.
*
* @param <Element>
* type of elements held in the {@link Sequence}
*
* @auth... |
import java.lang.reflect.*;
import java.io.*;
import java.net.*;
import java.util.*;
import org.xbill.DNS.*;
import org.xbill.DNS.utils.*;
/** @author Brian Wellington <bwelling@xbill.org> */
public class jnamed {
Hashtable caches;
Hashtable znames;
Hashtable TSIGs;
public
jnamed(String conffile) throws IOExcepti... |
package org.webdsl.tools;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.dialect.Dialect;
import org.hibernate.tool.hbm2ddl.DatabaseMe... |
package org.languagetool.rules.spelling.morfologik;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import or... |
package com.wirelust.personalapi.api.helpers;
import java.util.Date;
import com.wirelust.personalapi.api.v1.representations.AccountType;
import com.wirelust.personalapi.data.model.Account;
public class AccountHelper {
private AccountHelper() {
// class is static only
}
public static AccountType toRe... |
package jkind.util;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
import jkind.JKindException;
/**
* An arbitrary sized fractional value
*
* Stored as <code>numerator</code> / <code>denominator</code> where the
* fraction is in reduced form and <code>denominator</code> is a... |
package org.languagetool.rules.spelling.morfologik;
import org.languagetool.AnalyzedSentence;
import org.languagetool.AnalyzedTokenReadings;
import org.languagetool.JLanguageTool;
import org.languagetool.Language;
import org.languagetool.rules.Category;
import org.languagetool.rules.RuleMatch;
import org.languagetool.r... |
package jkind.analysis;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import jkind.ExitCodes;
import jkind.Output;
import jkind.SolverOption;
import jkind.analysis.evaluation.DivisionChecker;
import jkind.lustre.Constan... |
package com.exedio.cope;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class DataTest extends AbstractLibTest
{
public DataTest()
{
super(Main.dataModel);
}
private DataItem item;
// TODO... |
package org.cytoscape.prefuse.layouts.internal;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.cytoscape.model.CyNode;
import org.cytoscape.view.layout.AbstractParallelPartitionLayoutTask;
import org.cytoscape.view.layout.LayoutEdge;... |
package org.libreplan.web.planner.allocation;
import static org.libreplan.web.I18nHelper._;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.ListIterator;
import java.u... |
package uk.ac.ebi.biosamples.utils;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
import java.util... |
package com.intellij.ide.plugins;
import com.intellij.execution.process.ProcessIOExecutorService;
import com.intellij.featureStatistics.FeatureUsageTracker;
import com.intellij.icons.AllIcons;
import com.intellij.ide.CopyProvider;
import com.intellij.ide.DataManager;
import com.intellij.ide.IdeBundle;
import com.intell... |
package it.unibz.inf.ontop.spec.mapping.parser.impl;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import it.unibz.inf.ontop.exception.MinorOntopInternalBugException;
import it.unibz.inf.ontop.injection.OntopMappingSettings;
import it.unibz.inf.ontop.spec.mapping.TargetAtom... |
package org.jenkins.tools.test;
import hudson.Functions;
import hudson.maven.MavenEmbedderException;
import hudson.model.UpdateSite;
import hudson.model.UpdateSite.Plugin;
import hudson.util.VersionNumber;
import java.io.BufferedReader;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.comm... |
package org.codehaus.modello.plugin.xdoc;
import org.codehaus.modello.ModelloException;
import org.codehaus.modello.ModelloRuntimeException;
import org.codehaus.modello.model.Model;
import org.codehaus.modello.model.ModelAssociation;
import org.codehaus.modello.model.ModelClass;
import org.codehaus.modello.model.ModelF... |
package com.phonegap;
import android.provider.Contacts.ContactMethods;
import android.provider.Contacts.People;
import android.util.Log;
import android.webkit.WebView;
import android.app.Activity;
import android.content.ContentResolver;
import android.net.Uri;
import android.database.Cursor;
import android.database.sql... |
package org.codehaus.modello.plugin.xdoc;
import org.codehaus.modello.ModelloException;
import org.codehaus.modello.ModelloRuntimeException;
import org.codehaus.modello.model.Model;
import org.codehaus.modello.model.ModelAssociation;
import org.codehaus.modello.model.ModelClass;
import org.codehaus.modello.model.ModelF... |
package com.sometrik.framework;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import com.android.trivialdrivesample.util.IabHelper;
import com.android.trivialdrivesample.util.IabHelper.IabAsyncInProgressExce... |
package org.codehaus.modello.plugin.xdoc;
import java.io.File;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import org.codehaus.modello.ModelloException;
impor... |
package org.gem.calc;
import java.io.File;
import java.rmi.RemoteException;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.apache.commons.collections.Closure;
import org.opensha.commons.data.Site;
import org.opensha.commons.data.function.ArbitrarilyDiscretizedFun... |
package com.aerospike.client;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import com.aerospike.client.Info.NameValueParser;
import com.aerospike.client.cluster.Cluster;
import com.aerospike.client.cluster.Node;
import com.aerospike.client.c... |
package com.ibm.streamsx.topology;
import java.lang.reflect.Type;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import com.ibm.streamsx.topology.builder.BInputPort;
import com.ibm.streamsx.topology.builder.BOperatorInvocation;
import com.ibm.streamsx.topology.builder.BOutput;
import... |
package fi.aalto.tripchain;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.UUID;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.H... |
package ui;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import jav... |
package ti.modules.titanium.bump;
import org.appcelerator.titanium.TiContext;
import org.appcelerator.titanium.TiDict;
import org.appcelerator.titanium.TiModule;
import org.appcelerator.titanium.util.Log;
import org.appcelerator.titanium.util.TiActivityResultHandler;
import org.appcelerator.titanium.util.TiActivitySupp... |
package org.jetel.graph;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.net.URL;
import java.util.Arrays;
import java.util.Collection;
import java.util.concurrent.Future;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.io.filefilter.A... |
package net.fortuna.ical4j.model;
import java.text.ParseException;
import java.util.Arrays;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Iterator;
import java.util.TimeZone;
import junit.framework.TestCase;
import net.fortuna.ical4j.model.parameter.Value;
import net.fortuna.ical4j.mod... |
package co.vandenham.telegram.botapi.types;
import com.google.gson.annotations.SerializedName;
public class Contact {
@SerializedName("phone_number")
private String phoneNumber;
@SerializedName("first_name")
private String firstName;
@SerializedName("last_name")
private String lastName;
@Ser... |
package net.kyori.adventure.audience;
/* package */ final class EmptyAudience implements Audience {
/* package */ static final EmptyAudience INSTANCE = new EmptyAudience();
@Override
public boolean equals(Object obj) {
return this == obj;
}
@Override
public int hashCode() {
return 0;
}
@Override... |
package org.asynchttpclient.providers;
import static org.asynchttpclient.util.MiscUtil.isNonEmpty;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.nio.ByteBuffer;
import java.util.Collections;
import java.util.List;
import org.asynchttpclient.Cookie;
import org.asynchttpclient.F... |
package org.geotools.data.ingres;
import java.io.IOException;
import org.geotools.data.jdbc.FilterToSQL;
import org.geotools.filter.FilterCapabilities;
import org.geotools.jdbc.JDBCDataStore;
import org.geotools.jdbc.PreparedFilterToSQL;
import org.geotools.jdbc.SQLDialect;
import org.opengis.filter.expression.Literal;... |
package org.nuxeo.drive.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import or... |
package Frontend;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import Utils.Printer;
import V... |
package org.eclipse.mylar.internal.tasklist.ui.views;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separat... |
package org.eclipse.mylar.tasks.ui.wizards;
import java.nio.charset.Charset;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylar... |
package org.osgi.test.cases.http.whiteboard.junit;
import java.io.IOException;
import java.util.Arrays;
import java.util.Dictionary;
import java.util.Hashtable;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.At... |
package net.sf.taverna.biocatalogue.ui;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swin... |
package org.opendaylight.nic.pipeline_manager;
import com.google.common.base.Optional;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ExecutionException;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md... |
package com.intellij.codeInsight.quickfix;
import com.intellij.codeInsight.daemon.QuickFixActionRegistrar;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.project.DumbService;
import com.intellij.psi.PsiReference;
import com.intellij.util.ReflectionUtil;
import org.jetbrains.annot... |
package org.jkiss.dbeaver.ui.controls.resultset;
import org.eclipse.swt.widgets.Control;
import org.jkiss.dbeaver.Log;
import org.jkiss.dbeaver.model.DBUtils;
import org.jkiss.dbeaver.model.data.DBDAttributeBindingMeta;
import org.jkiss.dbeaver.model.data.DBDDataReceiver;
import org.jkiss.dbeaver.model.exec.*;
import j... |
package org.jkiss.dbeaver.ext.postgresql.model;
import org.jkiss.code.NotNull;
import org.jkiss.code.Nullable;
import org.jkiss.dbeaver.DBException;
import org.jkiss.dbeaver.ext.postgresql.PostgreUtils;
import org.jkiss.dbeaver.model.DBPHiddenObject;
import org.jkiss.dbeaver.model.DBUtils;
import org.jkiss.dbeaver.mode... |
import java.net.URLClassLoader;
import java.net.URL;
import java.lang.reflect.Method;
import java.io.IOException;
import java.io.InputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.util.Arrays;
public class Main implements Runnable {
public static final String MAIN = "/" + Main.class.getN... |
package com.campmongoose.serversaturday.spigot.menu.anvil;
import com.campmongoose.serversaturday.common.Reference.MenuText;
import com.campmongoose.serversaturday.spigot.SpigotServerSaturday;
import com.campmongoose.serversaturday.spigot.menu.AbstractSpigotChestMenu;
import java.util.function.BiFunction;
import javax.... |
package org.sagebionetworks.schema.worker;
import org.apache.commons.io.IOUtils;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.jupiter.api.AfterEach;
import org.j... |
package som.vm;
import static som.vm.Symbols.symbolFor;
import static som.vm.constants.Classes.arrayClass;
import static som.vm.constants.Classes.booleanClass;
import static som.vm.constants.Classes.classClass;
import static som.vm.constants.Classes.doubleClass;
import static som.vm.constants.Classes.integerClass;
impo... |
package com.opengamma.livedata.server;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concur... |
package uk.ac.ox.zoo.seeg.abraid.mp.dataacquisition.qc;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import uk.ac.ox.zoo.seeg.abraid.mp.common.domain.Location;
import uk.ac.ox.zoo.seeg.abraid.mp.common.domain.LocationPrecision;
import uk.ac.ox.zoo.seeg.abraid.mp.dataacquisition.... |
// NIOFileHandle.java
package loci.common;
import java.io.EOFException;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.FileChannel;
public class NIOFileHandle exte... |
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.Interval;
import java.util.*;
switch (_input.LA(1) /* next symbol */) { //*** https://www.antlr.org/api/Java/org/antlr/v4/runtime/IntStream.html#LA(int) |
package io.quantumdb.core.planner;
import java.util.LinkedHashMap;
import lombok.Data;
@Data
public class MigratorFunction {
public enum Stage {
INITIAL, CONSECUTIVE
}
private final String name;
private final LinkedHashMap<String, String> parameters;
private final String createStatement;
... |
package net.runelite.client.plugins.specialcounter;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
@AllArgsConstructor
@Getter
@ToString
enum Boss
{
ABYSSAL_SIRE("Abyssal sire", 1.25d),
CALLISTO("Callisto", 1.225d),
CERBERUS("Cerberus", 1.15d),
CHAOS_ELEMENTAL("Chaos ele... |
package net.runelite.client.plugins.twitch;
import com.google.common.base.Strings;
import com.google.inject.Provides;
import java.time.temporal.ChronoUnit;
import java.util.Map;
import javax.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.ChatMessageType;
import net.runelite.api.Client;
import ... |
package com.sg.java8.training.optional;
import java.util.Optional;
/**
* A few {@link java.util.Optional} usage samples
*/
public class OptionalMain {
public static void main(String[] args) {
final String nullable = "8"; // in a real use-case, it would be a value obtained from some other processing
... |
package org.jboss.forge.addon.scaffold;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jbo... |
/*
* $Id: LockssTestCase.java,v 1.19 2003-01-15 18:16:57 tal Exp $
*/
package org.lockss.test;
import java.util.*;
import java.io.*;
import java.net.*;
import org.lockss.util.*;
import junit.framework.TestCase;
import junit.framework.TestResult;
public class LockssTestCase extends TestCase {
/** Timeout duration fo... |
/*
* $Id: LockssTestCase.java,v 1.60 2004-12-14 22:02:50 troberts Exp $
*/
package org.lockss.test;
import java.util.*;
import java.io.*;
import java.net.*;
import org.lockss.util.*;
import org.lockss.config.ConfigManager;
import org.lockss.daemon.*;
import junit.framework.TestCase;
import junit.framework.TestResult;... |
// This file is part of Serleena.
// Nicola Mometto, Filippo Sestini, Tobia Tesan, Sebastiano Valle.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom t... |
package de.qaware.chronix.shared.ServerConfig;
import com.fasterxml.jackson.annotation.JsonIgnore;
import de.qaware.chronix.shared.dockerUtil.DockerBuildOptions;
import de.qaware.chronix.shared.dockerUtil.DockerRunOptions;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.HashMap;
import java.util.Linke... |
package org.semagrow.connector.sparql.selector;
import org.semagrow.art.Loggable;
import org.semagrow.selector.Site;
import org.semagrow.selector.SourceMetadata;
import org.semagrow.selector.SourceSelector;
import org.semagrow.selector.SourceSelectorWrapper;
import org.semagrow.connector.sparql.SPARQLSite;
import org.e... |
package com.yahoo.squidb.sample.modules;
import android.content.Context;
import android.net.Uri;
import com.yahoo.squidb.data.AbstractModel;
import com.yahoo.squidb.data.SquidDatabase;
import com.yahoo.squidb.data.UriNotifier;
import com.yahoo.squidb.sample.HelloSquiDBApplication;
import com.yahoo.squidb.sample.TaskLis... |
package com.insightfullogic.honest_profiler.delivery.javafx.profile;
import com.insightfullogic.honest_profiler.core.ProfileListener;
import com.insightfullogic.honest_profiler.core.collector.Profile;
import com.insightfullogic.honest_profiler.core.filters.ProfileFilter;
import javafx.application.Platform;
import org.s... |
package de.fernunihagen.dna.scalephant.distribution.membership;
import java.net.InetSocketAddress;
import java.util.ArrayList;
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 org.slf4j.Logger;
import org.slf4j.Lo... |
package org.objectweb.proactive.core.component.controller;
import org.objectweb.proactive.annotation.PublicAPI;
/**
* The priority controller interface. This controller manage the priority for methods exposed by the
* component interfaces. It's an optional controller. If it is added in the definition of the
* membra... |
package ca.corefacility.bioinformatics.irida.ria.integration.projects;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.After;
import... |
package com.grayben.riskExtractor.htmlScorer.nodeVisitor.setup.annotation;
import com.grayben.riskExtractor.htmlScorer.partScorers.Scorer;
import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
import java.util.*;
public class AnnotatedElement extends Element {
private Map<S... |
// $Id: whichjava.java,v 1.3 2000-07-25 19:50:51 d3j191 Exp $
public class whichjava implements Runnable {
public static void main(String[] args){
System.out.println("The Java Version in your path is " + System.getProperty("java.version"));
if (System.getProperty("java.version").indexOf("1.2")>=0){System.exit... |
package com.systematic.trading.strategy;
import com.systematic.trading.model.EquityClass;
import com.systematic.trading.strategy.Strategy;
import com.systematic.trading.strategy.StrategyFactory;
import com.systematic.trading.strategy.confirmation.Confirmation;
import com.systematic.trading.strategy.entry.Entry;
import ... |
Kpackage org.sagebionetworks.bridge.stormpath;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.apache.commons.httpclient.auth.AuthScope.ANY;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import java.io.... |
package org.vaadin.addons.tuningdatefield.demo;
import static org.joda.time.DateTimeConstants.JULY;
import static org.joda.time.DateTimeConstants.JUNE;
import static org.joda.time.DateTimeConstants.MAY;
import static org.vaadin.addons.tuningdatefield.demo.Absence.AbsenceDuration.AFTERNOON;
import static org.vaadin.addo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.