answer stringlengths 17 10.2M |
|---|
package net.bytebuddy.description.type;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import net.bytebuddy.ClassFileVersion;
import net.bytebuddy.build.HashCodeAndEqualsPlugin;
import net.bytebuddy.description.ByteCodeElement;
import net.bytebuddy.description.ModifierReviewable;
import net.bytebuddy.descri... |
package soot.jimple.infoflow;
import heros.solver.CountingThreadPoolExecutor;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
i... |
package ifc.container;
import lib.MultiMethodTest;
import com.sun.star.container.NoSuchElementException;
import com.sun.star.container.XEnumeration;
import com.sun.star.container.XEnumerationAccess;
import com.sun.star.lang.WrappedTargetException;
/**
* Testing <code>com.sun.star.container.XEnumeration</code>
* interfa... |
package mod._toolkit;
import com.sun.star.accessibility.AccessibleRole;
import com.sun.star.accessibility.XAccessible;
import com.sun.star.accessibility.XAccessibleAction;
import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleText;
import com.sun.star.awt.XExtendedToolkit;
i... |
package com.microsoft.tang;
import javax.inject.Inject;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import com.microsoft.tang.ThreeConstructors.TCFloat;
import com.microsoft.tang.ThreeConstructors.TCInt;
import com.micro... |
package org.jnosql.diana.cassandra.column;
import com.datastax.driver.core.CodecRegistry;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.TypeCodec;
import com.datastax.driver.core.UDTValue;
import com.datastax.driver.core.UserType;
import com.datastax.driver.core.exceptions.CodecNotFoundExcept... |
package classpackage;
import javafx.beans.binding.DoubleBinding;
import javafx.beans.property.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
/**
* An object for saving all the contents of a Purchase order.
* ... |
import java.util.Objects;
/*
* Represents a <x, y, z> coordinate for Moon.
*/
public class Coordinate
{
public Coordinate (int x, int y, int z)
{
_x = x;
_y = y;
_z = z;
}
public final int getX ()
{
return _x;
}
public final int getY ()
{
return ... |
/*
* A cell in the image taken by the Camera.
*/
public class Cell
{
public Cell (Coordinate coord, String contents, boolean debug)
{
_coord = coord;
_contents = contents;
_debug = debug;
}
public Cell (Coordinate coord)
{
this(coord, CellId.OPEN_SPACE, false); // s... |
import java.util.*;
public class Game
{
// Brute force approach won't work. Use circular linked list at scale.
private static final char REMOVED_CUP = ' ';
private static final int MAX_CUP_LABEL = 1000000;
public Game (boolean debug)
{
_debug = debug;
}
/**
* Each move, the crab... |
package com.example.conami.dokimemo;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.MotionEvent;
import android.view.inputme... |
import java.util.ArrayList;
import java.util.List;
class Solution {
public List<Integer> findDisappearedNumbers(int[] nums) {
List<Integer> result = new ArrayList<>(nums.length);
for (int i = 0; i < nums.length; i++) {
int position = Math.abs(nums[i]) - 1;
if (nums[position] > 0) {
... |
package yuku.alkitab.base.ac;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
... |
package org.bobba.tools.commons.hibernate;
import org.hibernate.HibernateException;
import org.hibernate.type.NullableType;
import org.hibernate.type.TypeFactory;
import org.hibernate.usertype.ParameterizedType;
import org.hibernate.usertype.UserType;
import java.io.Serializable;
import java.lang.reflect.Method;
import... |
package org.jgroups.tests;
import org.jgroups.JChannel;
import org.jgroups.View;
import org.jgroups.protocols.DISCARD;
import org.jgroups.protocols.FD;
import org.jgroups.protocols.MERGE2;
import org.jgroups.protocols.MPING;
import org.jgroups.stack.Protocol;
import org.jgroups.stack.ProtocolStack;
import org.jgroups.u... |
package cgeo.geocaching;
import cgeo.geocaching.cgData.StorageLocation;
import cgeo.geocaching.activity.IAbstractActivity;
import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.connector.IConnector;
import cgeo.geocaching.connector.gc.GCBase;
import cgeo.geocaching.connector.gc.GCConnector;
import c... |
package dotty.tools.xsbt;
import dotty.tools.dotc.util.SourceFile;
import dotty.tools.dotc.util.SourcePosition;
import dotty.tools.io.AbstractFile;
import xsbti.Position;
import java.io.File;
import java.util.Optional;
public class PositionBridge implements Position {
private final SourcePosition pos;
private final... |
package ch.rgw.compress;
/**
* Huffmann tree with several creation and persistency options.
* @author Gerry
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
im... |
package com.yahoo.container.jdisc;
import com.yahoo.jdisc.http.HttpRequest;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import static com.yahoo.jdisc.http.HttpRequest.Method.CONNECT;
import static com.yahoo.jdisc.http.HttpRequest.Method.DELETE;
import static ... |
package org.opens.tanaguru.contentloader;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.net.ssl.SSLPeerUnverifiedException;
import org.a... |
package org.carrot2.util.simplexml;
import java.io.*;
import java.util.Map;
import org.carrot2.util.CloseableUtils;
import org.carrot2.util.resource.IResource;
import org.carrot2.util.resource.ResourceLookup;
import org.simpleframework.xml.convert.AnnotationStrategy;
import org.simpleframework.xml.core.Persister;
impor... |
package com.capitalone.dashboard.request;
import javax.validation.constraints.NotNull;
public class DeployDataCreateRequest {
@NotNull
private String executionId;
@NotNull
private String jobUrl;
@NotNull
private String appName;
@NotNull
private String envName;
@NotNull
private St... |
package ru.job4j.gcdemo;
public class Demo {
public static class User {
private String name;
public User(String name) {
this.name = name;
}
@Override
protected void finalize() throws Throwable {
super.finalize();
System.out.println("User fi... |
package org.togglz.core.repository.file;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util... |
public class Game
{
public Game (boolean debug)
{
_debug = debug;
}
/**
* Each move, the crab does the following actions:
*
* -The crab picks up the three cups that are immediately clockwise of the current cup. They are removed from the circle; cup spacing is adjusted as necessary... |
public class Game
{
public Game (boolean debug)
{
_debug = debug;
}
/**
* Each move, the crab does the following actions:
*
* -The crab picks up the three cups that are immediately clockwise of the current cup. They are removed from the circle; cup spacing is adjusted as necessary... |
package org.opencds.cqf.cql.execution;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
impor... |
package org.gbif.crawler.pipelines.path;
import org.gbif.crawler.pipelines.ConverterConfiguration;
import java.util.Arrays;
import java.util.StringJoiner;
import java.util.UUID;
import org.apache.hadoop.fs.Path;
/**
* Contains derived paths for input and output
*/
public abstract class ArchiveToAvroPath {
private P... |
package org.tweetwallfx.tweet.api;
import java.util.Arrays;
import java.util.Comparator;
import org.tweetwallfx.tweet.api.entry.BasicEntry;
import java.util.Date;
import java.util.Set;
import java.util.TreeSet;
import static java.util.stream.Collectors.toSet;
import java.util.stream.IntStream;
import org.tweetwallfx.tw... |
package core.graph;
import core.annotation.Annotation;
import org.junit.Before;
import org.junit.Test;
import java.util.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* Test suite for the Node class.
*
*/
public class NodeTest {
Node n;
/**
* SetUp used to... |
package guitests;
import org.junit.Before;
import org.junit.Test;
import prefs.Preferences;
import ui.TestController;
import ui.UI;
import ui.issuepanel.PanelControl;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.loadui.testfx.Assertions.assertNodeExists;
import static org.loadui... |
package unit;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMet... |
package brooklyn.cli;
import static org.testng.Assert.assertTrue;
import java.io.InputStream;
import java.util.NoSuchElementException;
import java.util.Scanner;
import org.testng.annotations.Test;
import brooklyn.entity.basic.AbstractApplication;
// TODO finish up the tests and enable them
public class CliIntegrationTe... |
package org.folio.rest.persist;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Level;
import org.apache.log4j.LogManager;
import org.folio.rest.tools.utils.VertxUtils;
import org.junit.After;
import org.junit.AfterClass;
impor... |
package org.zstack.kvm;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.client.RestClientException;
im... |
package com.ibm.bi.dml.parser;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Set;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoo... |
package com.yydcdut.sdlv;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.Log;
import android.view.View;
class Compat {
public static void setBackgroundDrawable(View view, Drawable drawable) {
Log.i("yuyidong", "1111");
if (Build.VERSION.SDK_INT >= Build.VERSI... |
package com.fsck.k9;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.Uri;
import android.util.Log;
import com.fsck.k9.crypto.Apg;
import com.fsck.k9.crypto.CryptoProvider;
import com.fsck.k9.helper.Utility;
import com.fsck.k9.mail.Addr... |
/**
* The context of the solve method. The fields in this class are cloned
* for every recursion of the solve() method.
*/
public final class SATContext implements java.io.Serializable {
/**
* A symbolic name for the `unassigned' value in
* the `assignment' array.
*/
private static final int U... |
package me.zombieranke.Schatttenwanderer;
import java.util.ArrayList;
import me.zombieranke.utils.Ressources;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import org.newdawn.slick.Music;
import org.newdawn.slick.SlickException... |
package exome;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.It... |
package me.com.patterns;
import me.com.patterns.abstructfactory.CarFactory;
import me.com.patterns.abstructfactory.Q3Factory;
import me.com.patterns.abstructfactory.Q7Factory;
import me.com.patterns.builder.NutritionFacts;
import me.com.patterns.factory.*;
public class Test {
public static void main(String[] args) ... |
package com.esotericsoftware.kryo;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Random;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
/** @author Nathan Sweet <misc@n4te.com> */
public class InputOutputTe... |
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.remote.Desired... |
package cz.muni.fi.pa165.dao;
import java.util.List;
import cz.muni.fi.pa165.entity.Loan;
/**
* Data manipulation operations for Loan entity.
*
* @author Michael Simacek
*
*/
public interface LoanDao {
/**
* Creates persistent representation of Loan in the database. Sets the ID.
*
* @param loan ... |
package hello;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
import java.util.List;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
@RestControl... |
package br.univel.view;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JMenuBar;
import javax.swing.JTabbedPane;
import java.awt.GridBagLayou... |
package com.simsilica.lemur.props;
import com.simsilica.lemur.Axis;
import com.simsilica.lemur.Checkbox;
import com.simsilica.lemur.CheckboxModel;
import com.simsilica.lemur.Container;
import com.simsilica.lemur.DefaultCheckboxModel;
import com.simsilica.lemur.DefaultRangedValueModel;
import com.simsilica.lemur.FillMod... |
package ws.tagit;
import org.apache.catalina.filters.CorsFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.embedded.FilterRegistrationBea... |
package io.spine.string;
import com.google.common.annotations.VisibleForTesting;
import static java.lang.String.format;
/**
* A stringifier for {@code enum} values.
*
* @param <E>
* the type of the {@code enum}
*/
public final class EnumStringifier<E extends Enum<E>> extends SerializableStringifier<E> {
... |
package io.happie.naturalforms;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.ActivityNotFoundException;
import android.content.pm.ResolveInfo;
import android.os.Environment;
import android.net.Uri;
import android.util.Log;
import org.apache.cordova.CallbackContext;
imp... |
package io.spine.protobuf;
import com.google.common.base.Optional;
import com.google.protobuf.Any;
import com.google.protobuf.Timestamp;
import io.spine.base.Time;
import io.spine.test.protobuf.Associations;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.... |
package com.jamiestarke.webviewdebug;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CordovaPlugin;
import android.os.Build;
import android.webkit.WebView;
import android.util.Log;
/**
* CordovaDebug is a PhoneGap plugin that enables debugging on the Web... |
package org.flymine.postprocess;
import junit.framework.TestCase;
import java.util.Map;
import java.util.Iterator;
import java.util.HashMap;
import java.util.Collections;
import java.util.Arrays;
import java.util.Set;
import java.util.HashSet;
import java.util.List;
import java.io.InputStream;
import org.intermine.obje... |
package org.flymine.postprocess;
import junit.framework.TestCase;
import java.util.Map;
import java.util.Iterator;
import java.util.HashMap;
import java.util.Collections;
import java.util.Arrays;
import java.util.Set;
import java.util.HashSet;
import java.util.List;
import java.io.InputStream;
import org.intermine.obje... |
package com.ilscipio.cato.ce.webapp.ftl.context;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.ofbiz.base.util.Debug;
import org.ofbi... |
package com.oracle.graal.hotspot;
import static com.oracle.graal.hotspot.CompileTheWorld.Options.*;
import static com.oracle.graal.hotspot.HotSpotGraalRuntime.*;
import static com.oracle.graal.nodes.StructuredGraph.*;
import static com.oracle.graal.phases.GraalOptions.*;
import java.io.*;
import java.lang.reflect.*;
im... |
package com.oracle.graal.test;
import org.junit.runner.*;
import org.junit.runner.notification.*;
import static com.oracle.graal.debug.AnsiColor.*;
/**
* Color support for JUnit test output using ANSI escapes codes.
*/
public class AnsiTerminalDecorator extends GraalJUnitRunListenerDecorator {
public AnsiTerminal... |
package water.parser;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Test;
import water.TestUtil;
import water.fvec.Frame;
import static org.junit.Assert.assertTrue;
/**
* Test suite for orc parser.
*
* This test will attempt to perform multi-file parsing of a csv and orc file and compare
*... |
package com.linkedin.helix.manager.zk;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.con... |
package com.rultor.aws;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
import com.jcabi.aspects.Cacheable;
import com.jcabi.aspects.Immutable;
import com.jcabi.aspects.Loggable;
import com.jcabi.dynamo.Attributes;
import com.jcabi.dynamo.Conditions;
import com.jcabi.dynamo.Item;
import com.jcabi.dynamo.... |
package com.exedio.cope.pattern;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import com.exedio.cope.Condition;
import com.exedio.cope.FinalViolationException;
import com.exedio.cope.Function;
import com.exedio.cope.Item;
import com.exedio.cope.Join;
import com.... |
package com.exedio.cope.dtype;
import com.exedio.cope.AbstractLibTest;
import com.exedio.cope.Main;
public class DTypeTest extends AbstractLibTest
{
public DTypeTest()
{
super(Main.dtypeModel);
}
DTypeItem item, item2;
public void setUp() throws Exception
{
super.setUp();
... |
package com.orbekk.same;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.concurrent.CountDownLatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.protobuf.RpcCallback;
import com.orbekk.protobuf.NewRpcChannel;
import com.orbekk.protobuf.Rpc;
import com.orb... |
package net.garrapeta.jumplings.actor;
import java.util.ArrayList;
import net.garrapeta.jumplings.JumplingsGameWorld;
import net.garrapeta.jumplings.PermData;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
impor... |
package net.karlmartens.ui.widget;
import net.karlmartens.platform.util.NullSafe;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
f... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.sf.jaer.graphics;
/**
* Using the idea of Jenny Olsson employed in the UioCameraRenderer.java
* and making a more general renderer suitable for Octopus type sensors:
* Her idea was to define gray as the a... |
package com.googlecode.jmkvpropedit;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.filechooser.*;
import javax.swing.filechooser.FileFilter;
import javax.swing.bor... |
package imagej.script;
import imagej.command.Command;
import imagej.module.AbstractModuleInfo;
import imagej.module.DefaultMutableModuleItem;
import imagej.module.ModuleException;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import jav... |
package Polynomial;
import java.math.BigInteger;
import java.util.Random;
public class Polynomial {
private BigInteger[] coefficients;
private int degree;
public Polynomial(BigInteger[] coefficients){
this.coefficients = coefficients;
this.degree = this.coefficients.length - 1;
}
//T... |
package org.cytoscape.io.internal.read.xgmml;
import java.util.Stack;
import org.cytoscape.io.internal.read.xgmml.handler.ReadDataManager;
import org.xml.sax.Attributes;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.DefaultHandler;
public c... |
package liquibase.change;
import liquibase.database.Database;
import liquibase.database.sql.*;
import liquibase.database.structure.Column;
import liquibase.database.structure.DatabaseObject;
import liquibase.database.structure.Table;
import liquibase.exception.UnsupportedChangeException;
import liquibase.util.StringUti... |
package org.spine3.server.storage.datastore;
import com.google.api.services.datastore.DatastoreV1.*;
import com.google.api.services.datastore.DatastoreV1.PropertyOrder.Direction;
import com.google.api.services.datastore.client.Datastore;
import com.google.api.services.datastore.client.DatastoreException;
import com.goo... |
package com.scg.domain;
import static org.junit.Assert.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Formatter;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.scg.util.PersonalName;
/**
* Unit tests for TimeCard class
* @author Brian Stamm
*/
public cl... |
package io.spine.core;
import com.google.protobuf.Message;
import io.spine.type.TypeName;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* The holder of a {@code Command}, which provides convenient access to its properties.
*
* @author Alexander Yevsyukov
*/
public final class CommandEnvelope
... |
package net.time4j.engine;
/**
* <p>Represents the rule of a chronological element how to calculate or
* to manipulate its context-dependent temporal value. </p>
*
* <p>Element rules will be searched by Time4J according to following
* criteria: </p>
*
* <ol><li>An element rule will be registered in the {@code Ch... |
package org.bouncycastle.math.raw;
import java.util.Random;
import org.bouncycastle.util.Integers;
/*
* Modular inversion as implemented in this class is based on the paper "Fast constant-time gcd
* computation and modular inversion" by Daniel J. Bernstein and Bo-Yin Yang.
*/
public abstract class Mod
{
private ... |
package org.kohsuke.stapler;
import net.sf.json.JSONArray;
import org.apache.commons.io.IOUtils;
import org.kohsuke.stapler.bind.JavaScriptMethod;
import org.kohsuke.stapler.lang.FieldRef;
import org.kohsuke.stapler.lang.Klass;
import org.kohsuke.stapler.lang.MethodRef;
import javax.annotation.PostConstruct;
import jav... |
package org.clapper.util.classutil;
import org.clapper.util.logging.Logger;
public class SubclassClassFilter
extends ClassLoadingClassFilter
{
private Class baseClass;
/**
* Construct a new <tt>SubclassClassFilter</tt> that will accept
* only classes that extend the specified class or implement th... |
package com.java110.utils.constant;
/**
* @author wux
* @create 2019-02-05 11:28
* @desc
*
* 1001
* 2001
* 3001
* 4001
* 5001
* 6001
* 7001
* 3 4 5
*
**/
public class BusinessTypeConstant {
public final static String BUSINESS_TYPE_SAVE_USER_INFO = "100100030001";
public static final String BUSIN... |
package org.dc.jdbc.core.sqlhandler;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.dc.jdbc.entity.SqlEntity;
import com.alibaba.druid.sql.parser.Lexer;
import com.alibaba.druid.sql.parser.Token;
public class PrintSqlLogHandler extends SQLHandler{
private static fina... |
package org.immopoly.android.fragments;
import org.immopoly.android.R;
import org.immopoly.android.app.UserDataListener;
import org.immopoly.android.app.UserDataManager;
import org.immopoly.android.helper.ImageListDownloader;
import org.immopoly.android.helper.Settings;
import org.immopoly.android.model.ImmopolyBadge;
... |
package org.nutz.dao.impl.jdbc.sqlite;
import java.util.List;
import org.nutz.dao.DB;
import org.nutz.dao.Dao;
import org.nutz.dao.Sqls;
import org.nutz.dao.entity.Entity;
import org.nutz.dao.entity.MappingField;
import org.nutz.dao.entity.PkType;
import org.nutz.dao.impl.entity.macro.SqlFieldMacro;
import org.nutz.dao... |
package org.opencms.jsp.util;
import org.opencms.ade.configuration.CmsADEConfigData;
import org.opencms.ade.configuration.CmsADEManager;
import org.opencms.ade.configuration.CmsFunctionReference;
import org.opencms.ade.detailpage.CmsDetailPageInfo;
import org.opencms.ade.detailpage.CmsDetailPageResourceHandler;
import ... |
package org.owasp.esapi.reference;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.RequestDispatcher;
import javax.s... |
package org.teachingkidsprogramming.section03ifs;
import org.teachingextensions.logo.Sound;
import org.teachingextensions.logo.utils.EventUtils.MessageBox;
public class HiLow
{
public static void main(String[] args)
{
// Choose a random number between 1 and 100 --#4.1 (fake!) & --#13
// Do the followi... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package org.usfirst.frc4946.closedLoop;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.SpeedController;
import org.usfirst.frc4946.RateCounter;
/**
*
* @author bart
*/
public class BangBangControl extends VelocityControl {
private final DriverStation m_driverStation = DriverStation.getI... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package org.pygmalion.udf;
import org.apache.pig.EvalFunc;
import org.apache.pig.backend.executionengine.ExecException;
import org.apache.pig.data.BagFactory;
import org.apache.pig.data.DataBag;
import org.apache.pig.data.Tuple;
import org.apache.pig.data.TupleFactory;
import org.apache.pig.impl.logicalLayer.schema.Sch... |
package tresc.benchmark;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.StringTokenizer;
import org.kohsuke.args4j.Option;
import org.vagabond.util.CollectionUtils;
import org.vagabond.util.PropertyWrapper... |
package uk.ac.ebi.phenotype.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
@Service
public class SearchConfig {
private Map<String, String> la... |
package com.github.niqdev.openwebnet.message;
import com.github.niqdev.openwebnet.OpenSession;
import com.google.common.collect.Lists;
import org.junit.Test;
import rx.Observable;
import rx.functions.Action0;
import rx.functions.Action1;
import java.util.List;
import static com.github.niqdev.openwebnet.ThrowableCaptor.... |
package com.malhartech.lib.codec;
import com.malhartech.api.StreamCodec;
import java.io.*;
import malhar.netlet.Client.Fragment;
import org.slf4j.LoggerFactory;
/**
* This codec is used for serializing the objects of class which implements java.io.Serializable.
* It's not optimized for speed and should be used as the... |
package applications.fibonacci;
import api.ReturnValue;
import api.TaskCompose;
/**
*
* @author Peter Cappello
*/
public class SumIntegers extends TaskCompose<Integer>
{
/**
* Sums a List of Integer objects.
* @return the sum of its Integer inputs.
*/
@Override
public ReturnValue call()
... |
package org.libreplan.web.planner.tabs;
import java.util.Collection;
import java.util.EnumMap;
import org.apache.commons.lang.Validate;
import org.libreplan.web.planner.tabs.Mode.ModeTypeChangedListener;
import org.zkoss.ganttz.extensions.ITab;
import org.zkoss.zk.ui.Component;
public class TabOnModeType implements ITa... |
package org.aksw.limes.core.evaluation.evaluator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import org.aksw.limes.core.datastrutures.EvaluationRun;
import org.aksw... |
package txtuml.importer;
import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.common.util.WrappedException;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetIm... |
package com.precious.calccedo.handlers;
import com.precious.calccedo.Calccedo;
import com.precious.calccedo.configuration.Configuration;
import java.util.ArrayList;
/**
*
* @author Ibrahim Abdsaid Hanna
* ibrahim.seniore@gmail.com
*/
public class CalccedoHandler extends Calccedo implements Handler {
pri... |
package org.spine3.testdata;
import com.google.common.base.Enums;
import com.google.common.base.Optional;
import com.google.protobuf.Any;
import com.google.protobuf.ByteString;
import com.google.protobuf.Descriptors;
import com.google.protobuf.Descriptors.Descriptor;
import com.google.protobuf.Descriptors.FieldDescript... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.