answer stringlengths 17 10.2M |
|---|
package org.lightmare.ejb.meta;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagementType;
import javax.persistence.PersistenceCon... |
package org.lightmare.utils;
import java.io.Closeable;
import java.io.IOException;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.lightmare.utils.reflect.MetaUtils;
/**
* Utility class to help with general object checks
*
* @author levan
*
*/
public class Object... |
package objektwerks;
import java.time.*;
import java.time.format.DateTimeFormatter;
import org.junit.jupiter.api.Test;
class DateTimeTest {
@Test void dateTimeTest() {
var datetime = LocalDateTime.now();
assert(LocalDateTime.parse(datetime.toString()).equals(datetime));
}
@Test void instantT... |
package org.lightmare.utils;
import java.io.Closeable;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.lightmare.utils.reflect.MetaUtils;
/**
* Utility class to help with general object checks
*
* @a... |
package org.takes.tk;
import java.io.File;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import org.apache.commons.io.FileUtils;
import org.hamcrest.MatcherAssert;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.llorl... |
package org.mariadb.jdbc;
import org.mariadb.jdbc.internal.SQLExceptionMapper;
import org.mariadb.jdbc.internal.common.Protocol;
import org.mariadb.jdbc.internal.common.QueryException;
import org.mariadb.jdbc.internal.common.Utils;
import org.mariadb.jdbc.internal.common.query.Query;
import org.mariadb.jdbc.internal.co... |
package specs;
import static com.greghaskins.spectrum.Spectrum.describe;
import static com.greghaskins.spectrum.Spectrum.it;
import static com.greghaskins.spectrum.Spectrum.value;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
... |
package org.mcupdater.settings;
import org.mcupdater.model.JSON;
import java.util.ArrayList;
import java.util.List;
@JSON
public class Settings {
public enum TextField {
minMemory,
maxMemory,
permGen,
resWidth,
resHeight,
jrePath,
jvmOpts,
instanceRoot... |
package org.apache.velocity.runtime;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
import java.util.Hashtable;
import java.util.Properties;
import java.util.Stack;
import org.apache.log.LogKit;
imp... |
package org.orbeon.oxf.xml.dom4j;
import org.dom4j.Element;
import org.dom4j.InvalidXPathException;
import org.dom4j.Namespace;
import org.dom4j.QName;
import org.dom4j.XPath;
import org.dom4j.io.DocumentSource;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.XMLWriter;
import org.o... |
package org.spongepowered.api.data;
import org.spongepowered.api.block.BlockState;
import org.spongepowered.api.block.BlockType;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.block.entity.Banner;
import org.spongepowered.api.block.entity.BlockEntity;
import org.spongepowered.api.block.enti... |
package org.takes.misc;
import java.util.Locale;
/**
* English lower case string representation.
* @author Dali Freire (dalifreire@gmail.com)
* @version $Id$
* @since 0.33
*/
public final class EnglishLowerCase {
/**
* String value.
*/
private final transient String value;
/**
* Ctor.
... |
package pl.mjasion.springdata;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.jdbc.dataso... |
package rsc.publisher;
import java.util.ArrayDeque;
import java.util.concurrent.atomic.AtomicLongFieldUpdater;
import java.util.function.BooleanSupplier;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import rsc.flow.Producer;
import rsc.flow.Receiv... |
package joshua.decoder.hypergraph;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Stack;
import ... |
package scrum.mda;
import ilarkesto.base.time.Date;
import ilarkesto.di.app.ApplicationStarter;
import ilarkesto.mda.AGeneratorApplication;
import ilarkesto.mda.gen.GwtApplicationGenerator;
import ilarkesto.mda.gen.GwtDaoGenerator;
import ilarkesto.mda.gen.GwtEntityGenerator;
import ilarkesto.mda.gen.GwtServiceAsyncInt... |
package ui.components;
import java.util.Optional;
import java.util.function.IntConsumer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javafx.scene.input.KeyCode;
/**
* A very specialized ListView subclass that:
*
* - can be navigated with the arrow keys and Enter
* - su... |
package ui.components;
import java.util.Optional;
import java.util.function.IntConsumer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javafx.scene.input.KeyCode;
/**
* A very specialized ListView subclass that:
*
* - can be navigated with the arrow keys and Enter
* - su... |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.File;
import java.io.FileInputStream;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
public class Initiator {
Subscriber onnet;
Subscriber offnet;
... |
package controllers.impl;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Hash... |
package rhogenwizard;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.IProcess;
import ... |
package kg.apc.jmeter.vizualizers;
import kg.apc.jmeter.charting.AbstractGraphRow;
import java.awt.Color;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.table.TableCellRenderer;
import org.apache.jorphan.gui.ObjectTableModel;
import org.apache.jorphan.reflect.Functor;
/**
*
* @au... |
package org.usfirst.frc.team5806.robot;
import edu.wpi.first.wpilibj.AnalogInput;
import edu.wpi.first.wpilibj.Counter;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.DigitalOutput;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.J... |
package ikube;
import ikube.action.IAction;
import ikube.listener.Event;
import ikube.listener.IListener;
import ikube.model.IndexContext;
import ikube.service.IMonitorService;
import ikube.toolkit.SerializationUtilities;
import ikube.toolkit.ThreadUtilities;
import java.util.ArrayList;
import java.util.Collection;
imp... |
package exm.stc.ic.refcount;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Deque;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import... |
package com.poco.PoCoRuntime;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Root policy that defers all decisions to its single child Policy. Created so that we can
* test the code generated by the compiler before its able to parse/codegen tree-defining policies.
*/
public class DummyRootPoli... |
package com.poco;
import java.util.Stack;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Root policy that defers all decisions to its single child Polipocy. Created
* so that we can test the code generated by the compiler before its able to
* parse/codegen tree-defining policies.
*/
public cl... |
package benchmarking;
import datamodel.CpuUsageResults;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
publi... |
package Model;
import javax.swing.*;
public class Jeu {
public Chrono time;
private Grille grille;
public Jeu() {
grille = new Grille();
time = new Chrono(grille);
}
public Jeu(int hauteur, int larg, int difficulte) {
grille = new Grille(hauteur, larg, difficulte);
ti... |
package jobs;
import lagoon.LintRobot;
import models.Context;
import models.User;
import models.UserLagoon;
import play.Logger;
import play.Play;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
@OnApplicationStart
public class Bootstrap extends... |
package markehme.factionsplus.extras;
import markehme.factionsplus.FactionsPlus;
import markehme.factionsplus.FactionsPlusPlugin;
import markehme.factionsplus.Utilities;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.Material;
import org.buk... |
package datamanagement;
import java.util.List;
import org.jdom.Element;
/**
* Creates and manages the collection of units.
* Allows units to be created and added to the collection
* and retrieves a specified unit or entire collection.
*/
public class UnitManager
{
// Variables
private static UnitManager unitMan... |
package de.eternity.demo;
import java.util.Random;
import de.eternity.IGameState;
import de.eternity.gfx.IRenderQueue;
import de.eternity.gfx.Texture;
/**
* Draws a default background with a red and a green rectangle. One rectangle is moving sideways.
* @author Julian Sven Baehr
*
*/
public class DemoState implemen... |
package OpenRate.cache;
import OpenRate.CommonConfig;
import OpenRate.OpenRate;
import OpenRate.configurationmanager.ClientManager;
import OpenRate.db.DBUtil;
import OpenRate.exception.InitializationException;
import OpenRate.lang.ProductList;
import OpenRate.logging.LogUtil;
import OpenRate.utils.ConversionUtils;
impo... |
package SW9.controllers;
import SW9.abstractions.*;
import SW9.code_analysis.CodeAnalysis;
import SW9.model_canvas.arrow_heads.SimpleArrowHead;
import SW9.presentations.CanvasPresentation;
import SW9.presentations.DropDownMenu;
import SW9.presentations.Link;
import SW9.presentations.NailPresentation;
import SW9.utility... |
package broadwick.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Iterator;
import lombok.extern.slf4j.Slf4j;
/**
* Iterator object for a FileInput object.
*/
@Slf4j
public class FileInputIterator implements Iterator<String> {
/**
* Create a iterator over the contents of a fil... |
package net.maizegenetics.pipeline;
import java.awt.Frame;
import java.io.BufferedReader;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import ja... |
package io.hawt.git;
import io.hawt.config.ConfigFacade;
import io.hawt.util.Objects;
import io.hawt.util.Strings;
import org.eclipse.jgit.api.CheckoutCommand;
import org.eclipse.jgit.api.CloneCommand;
import org.eclipse.jgit.api.CreateBranchCommand;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.InitComm... |
package net.domesdaybook.reader;
import net.domesdaybook.reader.cache.WindowCache;
import net.domesdaybook.reader.cache.AllWindowsCache;
import java.io.IOException;
import java.io.InputStream;
/**
*
* @author matt
*/
public class InputStreamReader extends AbstractReader {
private final InputStream stream;
pr... |
package net.lightstone.world;
import java.util.Random;
import net.lightstone.model.Chunk;
import net.lightstone.model.Blocks;
/**
* A {@link WorldGenerator} that generates chunks with trees randomly placed.
* @author Zhuowei Zhang
*/
public final class ForestWorldGenerator extends FlatGrassWorldGenerator {
priva... |
package com.anysoftkeyboard.keyboards;
import java.io.IOException;
import java.util.HashSet;
import java.util.List;
import org.xmlpull.v1.XmlPullParserException;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
imp... |
package omnikryptec.test.saving;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;
import omnikryptec.logger.Logger;
import omnikryptec.util.ArrayUtil;
/**
* DataMapSerializer
*
* @author Panzer1119
*/
p... |
package net.tootallnate.websocket.drafts;
import java.nio.ByteBuffer;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import net.tootallnate.websocket.Charsetfunctions;
import net.tootallnate.websocket.Draft;
import net.tootallnate.websocket.FrameBuilder;
impor... |
package com.dom_distiller.client;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Logger;
import com.google.gwt.dom.client.AnchorElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Node;
... |
package org.apache.fop.tools.xslt;
import org.apache.xalan.xslt.*;
import java.io.FileInputStream;
import java.util.Hashtable;
import org.w3c.dom.Document;
/**
* Handles xslt tranformations via Xalan1 (non-trax)
*/
public class Xalan1Transform
{
/** Cache of compiled stylesheets (filename, StylesheetRoot) */
... |
package com.ecyrd.jspwiki.plugin;
import org.apache.log4j.Logger;
import com.ecyrd.jspwiki.*;
import java.util.*;
import java.io.*;
import java.text.SimpleDateFormat;
/**
* Provides a handler for bug reports. Still under construction.
*
* <ul>
* <li>"title" = title of the bug. This is required. If it is empt... |
package com.ecyrd.jspwiki.plugin;
import org.apache.log4j.Logger;
import com.ecyrd.jspwiki.*;
import com.ecyrd.jspwiki.auth.UserProfile;
import java.util.*;
import java.io.*;
import java.text.SimpleDateFormat;
/**
* Provides a handler for bug reports. Still under construction.
*
* <ul>
* <li>"title" = title of... |
package opendap.threddsHandler;
import opendap.namespaces.THREDDS;
import opendap.namespaces.XLINK;
import org.apache.commons.cli.Options;
import org.apache.http.HttpEntity;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.meth... |
package com.bina.varsim.types;
import java.util.Arrays;
import java.util.StringTokenizer;
/**
* Stores a sequence of bases as bytes, does no conversion
*
* @author johnmu
*/
public class Sequence {
public static final byte a = 'a', c = 'c', g = 'g', t = 't', n = 'n',
A = 'A', C = 'C', G = 'G', T = '... |
package org.barbon.mangaget.fragments;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.vi... |
package com.ecyrd.jspwiki.render;
import java.io.IOException;
import java.io.StringReader;
import java.util.Properties;
import org.apache.log4j.Logger;
import com.ecyrd.jspwiki.WikiContext;
import com.ecyrd.jspwiki.WikiEngine;
import com.ecyrd.jspwiki.filters.FilterException;
import com.ecyrd.jspwiki.filters.PageFilter... |
package com.bina.varsim.util;
import com.bina.varsim.types.ChrString;
import com.bina.varsim.types.FlexSeq;
import com.bina.varsim.types.VCFInfo;
import com.bina.varsim.types.variant.Variant;
import com.bina.varsim.types.variant.alt.Alt;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.File... |
package org.beanmaker;
import org.jcodegen.java.ExceptionThrow;
import org.jcodegen.java.FunctionCall;
import org.jcodegen.java.FunctionDeclaration;
import org.jcodegen.java.ObjectCreation;
import org.jcodegen.java.ReturnStatement;
import org.jcodegen.java.VarDeclaration;
import org.jcodegen.java.Visibility;
import sta... |
package com.example.ime5_tp2_absences;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import model.User;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apa... |
package com.collective.celos;
/**
* The execution status of a slot.
*/
public class SlotState extends ValueObject {
/** Never null. */
protected final SlotID slotID;
/** Never null. */
protected final Status status;
/** Only set in RUNNING, SUCCESS, FAILURE states; null otherwise. */
private S... |
package org.appwork.storage.jackson;
import java.io.IOException;
import java.lang.reflect.Type;
import org.appwork.storage.JSONMapper;
import org.appwork.storage.JSonMapperException;
import org.appwork.storage.TypeRef;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.JsonParseException;
... |
package org.bouncycastle.asn1;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import org.bouncycastle.util.Arrays;
public class DERObjectIdentifier
extends ASN1Primitive
{
String identifier;
private byte[] body;
public static ASN1ObjectIdentifier ... |
package com.ids1024.whitakerswords;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.File;
import java.io.IOException;
import android.app.Activity;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem... |
package com.fig.domain;
import java.lang.management.ManagementFactory;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Date;
import java.util.UUID;
public class SuccessResponse {
private String hostName;
private String processId;
private String requestId;
private fina... |
package org.bouncycastle.cms;
import org.bouncycastle.asn1.ASN1Null;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.DEREncodable;
import org.bouncycastle.asn1.DERNull;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import ja... |
package org.bouncycastle.asn1.test;
import org.bouncycastle.util.test.SimpleTestResult;
import org.bouncycastle.util.test.Test;
import org.bouncycastle.util.test.TestResult;
public class RegressionTest
{
public static Test[] tests = {
new EqualsAndHashCodeTest(),
new SetTest(),
new Certif... |
package com.io7m.jaux.tests.functional;
import org.junit.Assert;
import org.junit.Test;
import com.io7m.jaux.functional.Option;
import com.io7m.jaux.functional.Option.None;
import com.io7m.jaux.functional.Option.Some;
import com.io7m.jaux.functional.Option.Type;
public class OptionTest
{
@Test public void testNone()
... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class _103 {
public static class Solution1 {
public List<List<Integer>> zigzagLevelO... |
package org.exist.xquery.functions.util;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.Properties;
import javax.xml.transform.OutputKeys;
import org.exist.dom.QName;
import org.exist.storage.serializers.Serial... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
public class _114 {
public static class Solution1 {
public void flatten(TreeNode root) {
while (root != null) {
if (root.left != null) {
TreeNode previousNode = root.left;
... |
package org.drupal.project.computing;
import org.apache.commons.lang3.StringUtils;
import org.drupal.project.computing.exception.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import java.util.logging.Logger;
/**
* <p>Th... |
package org.jetbrains.plugins.scala;
import com.intellij.lang.Language;
import com.intellij.lang.PairedBraceMatcher;
import com.intellij.lang.Commenter;
import com.intellij.lang.ParserDefinition;
import com.intellij.openapi.fileTypes.SyntaxHighlighter;
import com.intellij.openapi.project.Project;
import com.intellij.op... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.ListNode;
import java.util.ArrayList;
import java.util.List;
public class _147 {
public static class Solution1 {
public ListNode insertionSortList(ListNode head) {
ListNode temp = head;
List<Integer> list = new ... |
package org.encog.solve.genetic.genes;
/**
* A gene that contains an integer value.
*/
public class IntegerGene extends BasicGene {
/**
* The value of this gene.
*/
private int value;
/**
* Copy another gene to this one.
* @param gene The other gene to copy.
*/
public void cop... |
package com.jwetherell.algorithms.sorts;
public class MergeSort<T extends Comparable<T>> {
public static enum SPACE_TYPE { IN_PLACE, NOT_IN_PLACE }
private MergeSort() { }
public static <T extends Comparable<T>> T[] sort(SPACE_TYPE type, T[] unsorted) {
sort(type, 0, unsorted.length, unsorted);
... |
package com.fishercoder.solutions;
public class _440 {
public static class Solution1 {
public int findKthNumber(int n, int k) {
int curr = 1;
k = k - 1;
while (k > 0) {
int steps = calSteps(n, curr, curr + 1);
if (steps <= k) {
... |
package org.openid4java.message.pape;
import org.openid4java.message.ParameterList;
import org.openid4java.message.MessageException;
import org.openid4java.message.Parameter;
import java.util.*;
import org.apache.log4j.Logger;
/**
* Implements the extension for OpenID Provider Authentication Policy responses.
*
* @a... |
package com.karateca.ddescriber.model;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.treeStructure.Tree;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import javax.swing.tree.DefaultTreeModel;
/**
* @author andresdom@google.com (Andres Dominguez)
*/
public clas... |
package com.fishercoder.solutions;
public class _724 {
public static class Solution1 {
/**
* Space: O(n)
* Time: O(n)
*/
public int pivotIndex(int[] nums) {
if (nums == null || nums.length == 0) {
return -1;
}
int[] sums ... |
package com.fishercoder.solutions;
public class _941 {
public static class Solution1 {
public boolean validMountainArray(int[] A) {
int i = 0;
for (; i < A.length - 1; i++) {
if (A[i] < A[i + 1]) {
continue;
} else if (A[i] == A[i +... |
package com.miviclin.droidengine2d.graphics;
/**
* Color.
*
* @author Miguel Vicente Linares
*
*/
public class Color {
private float r;
private float g;
private float b;
private float a;
private float h;
private float s;
private float v;
/**
* Creates a new Color with the speci... |
package be.objectify.as;
import play.db.jpa.JPA;
import play.libs.F;
import play.mvc.Http;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
/**
* This is pretty much a copy of {@link play.db.jpa.JPA} with some tweaks to close entity managers on the completion of
* promises instead o... |
package org.pentaho.di.compatibility;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.pentaho.di.core.Const;
/**
* This class contains a Value of type Integer and the length by which it is described.
*
* @author Matt
* @since 15-10-2004
*
*/
public class ValueInteger im... |
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.border.LineBorder;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.xy.XYI... |
package org.nutz.lang.util;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Class,
* @author wendal(wendal1985@gmail.com)
*
*/
publi... |
package org.pentaho.ui.xul.impl;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.MissingResourceException;
import java.util.... |
package dr.app.tools;
import dr.app.beast.BeastVersion;
import dr.app.util.Arguments;
import dr.evolution.io.Importer;
import dr.evolution.io.NexusImporter;
import dr.evolution.io.TreeImporter;
import dr.evolution.tree.FlexibleTree;
import dr.evolution.tree.MutableTree;
import dr.evolution.tree.NodeRef;
import dr.evolu... |
package com.xtuple.packworkflow.main;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.google.android.glass.app.Card;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
//import android.v... |
package org.nutz.mvc.upload.injector;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.nutz.mvc.adaptor.ParamInjector;
import org.nutz.mvc.upload.TempFile;
public class FileInjector implements... |
package org.javarosa.chsreferral.activity;
import java.io.IOException;
import java.util.Date;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import o... |
package dr.app.tools;
import dr.app.beast.BeastVersion;
import dr.app.util.Arguments;
import dr.evolution.io.Importer;
import dr.evolution.io.NexusImporter;
import dr.evolution.io.TreeImporter;
import dr.evolution.tree.FlexibleTree;
import dr.evolution.tree.MutableTree;
import dr.evolution.tree.NodeRef;
import dr.evolu... |
package org.anyline.entity;
import com.fasterxml.jackson.databind.JsonNode;
import org.anyline.util.*;
import org.anyline.util.regular.Regular;
import org.anyline.util.regular.RegularUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util... |
package com.hsj.base;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Toast;
public abstract class AppBaseActivity extends AppCompa... |
package jsettlers;
import go.graphics.swing.sound.SwingSoundPlayer;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import jsettlers.common.map.IGraphicsGrid;
import jsettlers... |
package gov.nih.nci.security.dao;
import gov.nih.nci.security.authorization.domainobjects.*;
import gov.nih.nci.security.util.*;
import java.util.Collection;
import java.util.Iterator;
import gov.nih.nci.security.authorization.jaas.*;
import gov.nih.nci.security.dao.hibernate.HibernateSessionFactory;
import gov.nih.nci... |
package org.opencms.search.solr;
import org.opencms.file.CmsResource;
import org.opencms.main.CmsLog;
import org.opencms.main.OpenCms;
import org.opencms.search.CmsSearchResource;
import org.opencms.search.I_CmsSearchDocument;
import org.opencms.search.fields.I_CmsSearchField;
import org.opencms.search.solr.CmsSolrQuer... |
package com.jaamsim.BasicObjects;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.TreeSet;
import com.jaamsim.Graphics.DisplayEntity;
import com.jaamsim.Samples.SampleConstant;
import com.jaamsim.Samples.SampleExpInput;
import com.jaamsim.basicsim.Entity;
import com.jaa... |
// ZAP: 2012/04/23 Added @Override annotation to all appropriate methods.
// ZAP: 2013/01/23 Clean up of exception handling/logging.
// ZAP: 2013/01/25 Issue 462: SSLSocketFactory with TLS enabled and default Cipher options
// ZAP: 2013/06/01 Issue 669: Certificate algorithm constraints in Java 1.7
// ZAP: 2014/03/23 T... |
package com.atlassian.jira.plugins.dvcs.service;
import com.atlassian.jira.plugins.dvcs.model.Message;
import com.atlassian.jira.plugins.dvcs.model.Progress;
import com.atlassian.jira.plugins.dvcs.model.Repository;
import com.atlassian.jira.plugins.dvcs.service.message.AbstractMessagePayloadSerializer;
import com.atlas... |
package com.matt.forgehax.mods;
import com.matt.forgehax.asm.ForgeHaxHooks;
import com.matt.forgehax.asm.events.ComputeVisibilityEvent;
import com.matt.forgehax.asm.events.RenderBlockInLayerEvent;
import com.matt.forgehax.asm.events.RenderBlockLayerEvent;
import com.matt.forgehax.asm.events.SetupTerrainEvent;
import ne... |
package com.minelittlepony;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.gson.Gson;
import com.google.gson.JsonParseException;
import com.minelittlepony.ducks.IPlayerInfo;
import com.minelittlepony.model.PMAPI;
import com.minelittlepony.pony.data.Pony;
import com.mine... |
package com.ociweb.gl.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ociweb.gl.api.Behavior;
import com.ociweb.gl.api.Builder... |
package com.paymax.config;
public class PaymaxConfig {
//Paymax
public static final String API_BASE_URL = "https:
//method
public static final String CREATE_CHARGE = "v1/charges";
//method
public static final String STATEMENT_DOWNLOAD = "v1/statement/download";
public static final String CHA... |
package com.sematext.in;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.sun.mail.imap.IMAPMessage;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFo... |
// OOO GWT Utils - utilities for creating GWT applications
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You shou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.