answer stringlengths 17 10.2M |
|---|
package org.eclipse.birt.report.designer.internal.ui.views.property.widgets;
import org.eclipse.birt.report.designer.util.NumberUtil;
import org.eclipse.birt.report.model.api.metadata.DimensionValue;
import org.eclipse.birt.report.model.api.metadata.PropertyValueException;
import org.eclipse.birt.report.model.api.util.... |
package dr.evomodel.coalescent;
import dr.evolution.coalescent.IntervalList;
import dr.evolution.coalescent.Intervals;
import dr.evolution.tree.NodeRef;
import dr.evolution.tree.Tree;
import dr.evolution.util.TaxonList;
import dr.evolution.util.Units;
import dr.evomodel.tree.TreeModel;
import dr.inference.model.*;
impo... |
package edu.ucla.cens.awserver.service;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org... |
package edu.washington.escience.myria.parallel;
import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.ConcurrentHashMap;
import javax.annotation.Nonnull;
import javax.an... |
package nl.mpi.kinnate.svg;
import java.awt.Point;
import nl.mpi.kinnate.kindata.EntityData;
import java.util.ArrayList;
import nl.mpi.arbil.ui.ArbilWindowManager;
import nl.mpi.kinnate.kindata.DataTypes;
import nl.mpi.kinnate.kindata.EntityRelation;
import nl.mpi.kinnate.uniqueidentifiers.IdentifierException;
import n... |
package org.hisp.dhis.android.testapp.organisationunit;
import org.hisp.dhis.android.core.common.BaseIdentifiableObject;
import org.hisp.dhis.android.core.data.database.SyncedDatabaseMockIntegrationShould;
import org.hisp.dhis.android.core.organisationunit.OrganisationUnit;
import org.junit.Test;
import org.junit.runne... |
package eu.neclab.iotplatform.iotbroker.restcontroller;
import java.io.BufferedReader;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.l... |
package org.to2mbn.jmccc.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
public final class FileUtils {
public static void mkdirs(File dir) throws IOException {
if (!dir.mkdirs()) {
thro... |
package fi.mikuz.boarder.util;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.util.DisplayMetrics;
import android.util.Log;
/**
*
* @author Jan Mikael Lindlf
*/
public class IconUtils {
public static Bitmap resizeIcon(Context context, Bitmap bitmap,... |
package io.github.dead_i.bungeerelay.listeners;
import io.github.dead_i.bungeerelay.IRC;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.event.ChatEvent;
import net.md_5.bungee.api.plugin.Listener;
impor... |
// $Id: EntryUpdatedEvent.java,v 1.12 2003/05/01 02:11:22 ray Exp $
package com.threerings.presents.dobj;
import com.samskivert.util.StringUtil;
import com.threerings.presents.Log;
/**
* An entry updated event is dispatched when an entry of a {@link DSet} is
* updated. It can also be constructed to request the update... |
package com.twitter.mesos.scheduler;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.google.common.base.Function;
import com.google.common.base.Pre... |
package floobits.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import floobits.common.Constants;
import floobits.common.PersistentJson;
import floobits.common.Settings;
import floobits.common.Utils;
import... |
public class BinaryOperator extends Expression {
static enum Kind {
OP_FUNCTION_CALL,
OP_FUNCTION_ARGS_SEPARATOR,
OP_ARRAY,
OP_MUL,
OP_DIV,
OP_MOD,
OP_ADD,
OP_SUB,
OP_LEFT_SHIFT,
OP_RIGHT_SHIFT_ARITIMETIC,
OP_RIGHT_SHIFT_LOGICAL... |
package org.orbeon.oxf.processor.test;
import org.orbeon.errorified.Exceptions;
import org.orbeon.oxf.pipeline.api.PipelineContext;
import org.orbeon.oxf.pipeline.api.XMLReceiver;
import org.orbeon.oxf.processor.*;
import org.orbeon.oxf.processor.generator.ExceptionGenerator;
import org.orbeon.oxf.xml.ContentHandlerHel... |
package bisq.desktop.main.dao.wallet.tx;
import bisq.desktop.common.view.ActivatableView;
import bisq.desktop.common.view.FxmlView;
import bisq.desktop.components.AddressWithIconAndDirection;
import bisq.desktop.components.AutoTooltipLabel;
import bisq.desktop.components.AutoTooltipTableColumn;
import bisq.desktop.comp... |
package ca.blarg.gdx.graphics;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badl... |
package ch.sbb.iib.plugin.mojos;
import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
import sta... |
// -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; -*-
// vim: et ts=4 sts=4 sw=4 syntax=java
package com.aragaer.jtt.resources;
import java.text.DateFormat;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import com.aragaer.jtt.Settings;
import com.aragaer.jtt.R;
import android.content.Br... |
package com.carlosefonseca.common.utils;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageMan... |
package com.evolvedbinary.jni.consbench;
/**
* A small JNI Benchmark to show the difference
* in cost between various models of Object Construction
* for a Java API that wraps a C++ API using JNI
*
* @author <a href="mailto:adam@evolvedbinary.com">Adam Retter</a>
*/
public class Benchmark {
private final stat... |
package com.github.davidcanboni.jenkins;
import com.github.davidcanboni.jenkins.xml.Xml;
import com.github.davidcarboni.ResourceUtils;
import com.github.onsdigital.http.Endpoint;
import com.github.onsdigital.http.Http;
import com.github.onsdigital.http.Response;
import org.apache.commons.lang3.StringUtils;
import org.a... |
package be.ibridge.kettle.core.values;
import java.math.BigDecimal;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;
import junit.framework.TestCase;
import be.ibridge.kettle.core.Const;
import be.ibridge.kettle.core.exception.KettleValueException;
import be.ibridge.kettle.core.... |
package com.github.daytron.twaattin.ui;
import javax.servlet.annotation.WebServlet;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package kg.apc.jmeter.config;
import kg.apc.emulators.TestJMeterUtils;
import org.apache.jmeter.testelement.TestElement;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Befo... |
package com.github.nkzawa.socketio.client;
import com.github.nkzawa.backo.Backoff;
import com.github.nkzawa.emitter.Emitter;
import com.github.nkzawa.socketio.parser.Packet;
import com.github.nkzawa.socketio.parser.Parser;
import com.github.nkzawa.thread.EventThread;
import javax.net.ssl.HostnameVerifier;
import javax.... |
package com.gmail.nossr50.util.skills;
import org.bukkit.Material;
import org.bukkit.entity.AnimalTamer;
import org.bukkit.entity.Animals;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.IronGolem;
import org.bukkit.entity.LivingEntity;
impo... |
package com.kasije.main;
import java.util.*;
/**
* CLI.
*/
public class KasijeCli
{
private List<KasijeCliUtility> utilities = new LinkedList<>();
private void addUtility(KasijeCliUtility utility)
{
utilities.add(utility);
}
public void parseInput(String input)
{
String[] split... |
package org.peerbox;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
public class RegisterValidation {
public static void checkUsername(TextField username){
//TODO
}
public static void checkPassword(PasswordField pwd_1, PasswordField pwd_2){
if (pwd_1.getLen... |
package com.inari.firefly.libgdx;
import com.inari.commons.event.EventDispatcher;
import com.inari.firefly.animation.AnimationSystem;
import com.inari.firefly.asset.AssetSystem;
import com.inari.firefly.control.ComponentControllerSystem;
import com.inari.firefly.entity.EntityPrefabSystem;
import com.inari.firefly.entit... |
package algorithms.imageProcessing.matching;
import algorithms.compGeometry.LinesAndAngles;
import algorithms.util.PairInt;
import algorithms.util.PairIntArray;
import gnu.trove.list.TDoubleList;
import gnu.trove.list.array.TDoubleArrayList;
import gnu.trove.list.array.TIntArrayList;
import gnu.trove.map.TIntDoubleMap;... |
package org.bouncycastle.cms.test;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.bouncycastle.asn1.ASN1InputStream;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.cms.Attribute;
import org.bouncycastle.asn1.cms.AttributeTable;
impo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.broad.igv.sam;
import net.sf.samtools.SAMFileHeader;
import net.sf.samtools.util.CloseableIterator;
import org.broad.igv.Globals;
import org.broad.igv.PreferenceManager;
import org.broad.igv.sam.reader.Alignm... |
package com.lambdaworks.redis;
import static com.google.common.base.Preconditions.checkArgument;
import java.io.Closeable;
import java.net.SocketAddress;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import java.ut... |
/*
* $Id: TestStatusTable.java,v 1.17 2013-01-02 21:01:23 tlipkis Exp $
*/
package org.lockss.daemon.status;
import java.util.*;
import org.lockss.test.*;
import org.lockss.util.*;
import org.lockss.protocol.*;
import org.lockss.servlet.*;
public class TestStatusTable extends LockssTestCase {
StatusTable table;
s... |
/**
* (TMS)
*/
package com.lhjz.portal.controller;
import com.google.common.collect.Lists;
import com.lhjz.portal.base.BaseController;
import com.lhjz.portal.component.MailSender;
import com.lhjz.portal.constant.SysConstant;
import com.lhjz.portal.entity.security.Authority;
import com.lhjz.portal.entity.security.Aut... |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substanti... |
package com.rationaleemotions.server;
import com.google.common.base.Preconditions;
import com.rationaleemotions.config.ConfigReader;
import com.rationaleemotions.config.MappingInfo;
import com.rationaleemotions.server.docker.DeviceInfo;
import com.spotify.docker.client.DefaultDockerClient;
import com.spotify.docker.cli... |
package com.redv.jdigg.web.openid;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openid4java.consumer.ConsumerException;
import org.o... |
package org.twuni.common.crypto.rsa;
import static java.math.BigInteger.ONE;
import java.math.BigInteger;
import java.util.Random;
import org.twuni.common.crypto.Transformer;
public class RSAPrivateKey implements Transformer<BigInteger, BigInteger> {
private final RSAPublicKey publicKey;
private final BigIntege... |
package com.andreabaccega.widget;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.KeyEve... |
package seedu.taskitty.logic.parser;
import seedu.taskitty.commons.exceptions.IllegalValueException;
import seedu.taskitty.commons.util.StringUtil;
import seedu.taskitty.logic.commands.*;
import seedu.taskitty.model.tag.Tag;
import seedu.taskitty.model.task.TaskDate;
import seedu.taskitty.model.task.TaskTime;
import st... |
package techreborn.tiles.tier1;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Ingredient;
import net.minecraf... |
package totemic_commons.pokefenn.item;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
import net.minecraft.util.StringUtils;
import totemic_commons.pokefenn.Totemic;
import totemic_commons.pokefenn... |
package uk.ac.ox.oucs.oxpoints.gaboto;
import java.io.File;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import net.sf.gaboto.Gaboto;
import net.sf.gaboto.GabotoFactory;
import net.sf.gaboto.GabotoRuntimeException;
import net.sf.gaboto.node... |
package com.google.refine.importers;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PushbackInputStream;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.refine.ProjectMetadata;
import com.google.refine.i... |
package com.airhacks;
import com.wordnik.swagger.config.ConfigFactory;
import com.wordnik.swagger.config.ScannerFactory;
import com.wordnik.swagger.config.SwaggerConfig;
import com.wordnik.swagger.jaxrs.config.DefaultJaxrsScanner;
import com.wordnik.swagger.jaxrs.reader.DefaultJaxrsApiReader;
import com.wordnik.swagger... |
/**
* When a Bucket is created Simperium creates a Channel to sync changes between
* a Bucket and simperium.com.
*
* A Channel is provided with a Simperium App ID, a Bucket to operate on, a User
* who owns the bucket and a Channel.Listener that receives messages from the
* Channel.
*
* To get messages into a Ch... |
package test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
import TestaInte.EmptyDirectory;
import TestaInte.SmallDirectory;
public class EkvivalensklassTest {
private LsOutputTemp outputTest;
private ArrayList<String> test;
@Before
public... |
package com.ecyrd.jspwiki;
import java.util.Properties;
import java.io.*;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import com.ecyrd.jspwiki.attachment.Attachment;
import com.ecyrd.jspwiki.auth.Users;
import com.ecyrd.jspwiki.providers.*;
/**
* Simple test engine that always assumes pages... |
package com.cloud.vm;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import javax.ejb.Local;
import javax.naming.C... |
package com.ecyrd.jspwiki;
import java.util.Properties;
public class TestEngine extends WikiEngine
{
public TestEngine( Properties props )
{
super( props );
}
public boolean pageExists( String page )
{
return true;
}
} |
package org._2585robophiles.frc2015.systems;
import org._2585robophiles.frc2015.Environment;
import edu.wpi.first.wpilibj.networktables.NetworkTable;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.tables.ITable;
import edu.wpi.first.wpilibj.tables.ITableListener;
/*
* The robo... |
package org.eclipse.hono;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.eclipse.hono.authorization.AuthorizationService;
import org.eclipse.hono.re... |
package org.ohmage.request.survey;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
imp... |
package edu.wustl.common.query.impl;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
impor... |
package ca.mjdsystems.jmatio.test;
import ca.mjdsystems.jmatio.io.MatFileFilter;
import ca.mjdsystems.jmatio.io.MatFileReader;
import ca.mjdsystems.jmatio.io.MatFileType;
import ca.mjdsystems.jmatio.io.SimulinkDecoder;
import ca.mjdsystems.jmatio.types.*;
import org.junit.Rule;
import org.junit.Test;
import org.junit.r... |
package no.stelar7.api.l4j8.tests.cache;
import no.stelar7.api.l4j8.basic.cache.*;
import no.stelar7.api.l4j8.basic.calling.DataCall;
import no.stelar7.api.l4j8.basic.constants.api.*;
import no.stelar7.api.l4j8.basic.constants.flags.ChampDataFlags;
import no.stelar7.api.l4j8.impl.L4J8;
import no.stelar7.api.l4j8.impl.b... |
package camp.pixels.signage.receivers;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.SystemClock;
import android.support.v4.content.WakefulBroadcastReceiver;
import static android.support.v4.con... |
package com.afollestad.silk.fragments;
import android.os.Bundle;
import android.view.View;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.afollestad.silk.R;
import com.afollestad.silk.adapters.SilkAdapter;
import com.af... |
package com.cesidiodibenedetto.filechooser;
import java.util.HashMap;
import java.util.Map;
import org.apache.cordova.CordovaActivity;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Intent;
import android.net.Uri;
import android.text.Html;
import org.apache.... |
package org.jvnet.hudson.test;
import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;
import com.gargoylesoftware.htmlunit.Page;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import hudson.model.FreeStyleProject;
import hudson.model.Hudson;
import ... |
package com.ecyrd.jspwiki.attachment;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
import org.apache.log4j.Logger;
import com.ecyrd.jspwiki.*;
import com.ecyrd.jspwiki.parser.MarkupParser;
import com.ecyrd.jspwiki.providers.ProviderExce... |
package com.example.basiccameraapp;
import android.graphics.Bitmap;
import android.util.Log;
public class BlurArtifactInducer extends ArtifactInducer {
private static String TAG = BlurArtifactInducer.class.getName();
@Override
public Bitmap induceArtifacts(Bitmap image, float artifactIntensity) {
//... |
package com.github.pkunk.progressquest.ui;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log... |
package se.sics.cooja.plugins;
import java.awt.*;
import java.awt.event.*;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.text.NumberFormat;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import org.apache.log4j.Logger;
import se.sics.cooja.*;
/**
* ... |
package com.fsck.k9;
import java.io.File;
import android.app.Application;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageManager;
import android.util.Config;
import android.util.Log;
import com.fsck.k9.activity.MessageCompose;
import com.fsck.k9.mail.internet.Bina... |
package org.epics.graphene;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.geom.Line2D;
import java.util.Arrays;
import java.util.List;
import org.epics.util.array.ArrayDouble;
import org.epics.... |
import java.util.ArrayList;
import java.util.Arrays;
public class MancalaAI {
int ply = 3;
Tuple bad = new Tuple(Integer.MIN_VALUE, "i");
Tuple max = new Tuple(Integer.MAX_VALUE, "a");
int[] weights = { 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1 };
public MancalaAI(int[] gaValues) {
weights =... |
package com.netzarchitekten.tools;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Configuration;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.LocaleList;
import android.util.DisplayMetri... |
package org.epics.graphene;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.geom.Line2D;
import java.util.Arrays;
import java.util.List;
import org.epics.util.array.ArrayDouble;
import org.epics.... |
package com.markehme.factionsalias.support;
import java.util.List;
/**
* Just our Support Base. Nothing fancy.
*
* @author MarkehMe<mark@markeh.me>
*
*/
public interface SupportBase {
public void add(List<String> aliases,
Boolean requiresFactionsEnabled,
Boolean requiresIsPlayer,
... |
package org.epics.graphene;
import java.awt.Color;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* A utility class that provides implementations of {@link NumberColorMap},
* a set standard utilities and a directory for color maps.
*
* @author carcassi
*/
pub... |
// $RCSfile: PlainShape.java,v $
// @version $Revision: 1.5 $
// $Log: PlainShape.java,v $
// Revision 1.5 2006/05/02 13:21:38 Ian.Mayo
// Make things draggable
// Revision 1.4 2006/04/21 07:48:37 Ian.Mayo
// Make things draggable
// Revision 1.3 2006/03/31 14:29:21 Ian.Mayo
// Switch default color to off-white, ... |
package com.ra4king.circuitsim.gui.peers.wiring;
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 com.ra4king.circuitsim.gui.ComponentManager.ComponentManagerInterface;
import com.ra4king.circuitsim.gui.ComponentPee... |
package io.warp10.script.functions;
import io.warp10.script.WarpScriptException;
import io.warp10.script.WarpScriptStack;
import io.warp10.script.formatted.FormattedWarpScriptFunction;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class PERMUTE extends FormattedWarpScriptFunction {
p... |
package com.temporaryteam.noticeditor.model;
import org.json.JSONException;
import org.json.JSONObject;
public class NoticeTree {
private final NoticeTreeItem root;
public NoticeTree(NoticeTreeItem root) {
this.root = root;
}
public NoticeTree(JSONObject jsobj) throws JSONException {
roo... |
package com.valkryst.generator;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
public final class ConsonantVowelGenerator extends NameGenerator {
/** The consonants. */
private final String[] consonants;
/** The vowels. */
private final String[] vowels;
public ConsonantVowelGe... |
package net.galvin.hadoop.web;
import net.galvin.hadoop.comm.hdfs.HdfsService;
import net.galvin.hadoop.comm.utils.Logging;
import org.apache.hadoop.fs.FileStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotat... |
package org.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.List;
import org.common.Utils;
public class SupServer {
private int port;
public SupServer(int port)... |
package com.yidejia.app.mall.fragment;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.... |
package ro.isdc.wro.http;
import javax.servlet.FilterChain;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.Test;
import org.mockito.Mockito;
public class TestWroFilter {
@Test
public void testGzipParam() throws Exception {
final HttpServletRequest r... |
package org.mapdb;
import java.util.List;
import java.util.concurrent.*;
public class Exec {
public static void execNTimes(int n, final Callable r){
ExecutorService s = Executors.newFixedThreadPool(n);
final CountDownLatch wait = new CountDownLatch(n);
List<Future> f = new CopyOnWriteArrayLi... |
package com.explore.git.options;
public class GitHelloWorld {
public static void main(String[] args) {
System.out.println("Hello, welcome to git..........!!!");
System.out.println("Committing code from user2");
}
} |
package de.mrapp.android.adapter;
import de.mrapp.android.adapter.util.Group;
/**
* Defines the interface, an adapter, whose underlying data is managed as a
* two-dimensional list of items, which are categorized by groups, must
* implement. Such an adapter is meant to provide the underlying data for
* visualization... |
package de.unipaderborn.visuflow.builder;
import java.io.File;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import o... |
// samskivert library - useful routines for java programs
// 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 shoul... |
package org.apache.fop.apps;
// FOP
import org.apache.fop.area.AreaTree;
import org.apache.fop.area.RenderPagesModel;
import org.apache.fop.fo.ElementMapping;
import org.apache.fop.fo.FOTreeBuilder;
import org.apache.fop.fo.FOInputHandler;
import org.apache.fop.fo.FOTreeHandler;
import org.apache.fop.render.Renderer;
i... |
package edu.caravane.guitare.gitobejct;
import java.util.HashMap;
//18h19 -> 18h26
public class GitObjectsIndex {
protected HashMap<String, GitObject> hashMap;
public GitObjectsIndex() {
hashMap = new HashMap<String, GitObject>();
}
/**
* This function retrieve a git object (already indexed... |
package jmetest.renderer;
import java.nio.FloatBuffer;
import com.jme.app.SimpleGame;
import com.jme.bounding.BoundingSphere;
import com.jme.image.Texture;
import com.jme.input.InputSystem;
import com.jme.input.KeyBindingManager;
import com.jme.input.KeyInput;
import com.jme.input.NodeHandler;
import com.jme.light.Dire... |
package edu.chl.dat255.sofiase.readyforapet;
import Model.Dog;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class S... |
package joshua.decoder.ff;
import java.util.List;
import joshua.corpus.Vocabulary;
import joshua.decoder.chart_parser.SourcePath;
import joshua.decoder.ff.state_maintenance.DPState;
import joshua.decoder.ff.tm.Rule;
import joshua.decoder.hypergraph.HGNode;
/**
* This feature handles the list of features that are found... |
package edu.mit.streamjit.api;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* A WeightedRoundrobinJoiner joins its input by taking data items from its
* children according to specified weights. A WeightedRoundrobinJoiner with
* weights [1, 2, 1] will take one item from its fi... |
package emergencylanding.k.library.lwjgl.tex;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
import java.awt.image.Raster;
import java.awt.image.SinglePixelPackedSampleModel;
import java.awt.image.WritableRaster;
import java.nio.ByteBuffer;
impor... |
package am.app.mappingEngine;
import java.util.EnumSet;
import java.util.Enumeration;
import java.util.Iterator;
import am.app.feedback.FeedbackLoop;
import am.app.feedback.InitialMatchers;
import am.app.mapEngine.instance.BaseInstanceMatcher;
import am.app.mappingEngine.Combination.CombinationMatcher;
import am.app.ma... |
package org.elasticsearch.xpack.transform.integration.continuous;
import org.apache.lucene.util.LuceneTestCase;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.client.transform.t... |
package eu.bcvsolutions.idm.core.model.event.processor.role;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Description;
import org.springframework.stereotype.Component;
import eu.bcvsolutions.idm.core.api.domain.OperationState;
import... |
package org.apereo.cas.configuration.model.core.authentication;
import org.apereo.cas.configuration.model.support.cassandra.authentication.CassandraAuthenticationProperties;
import org.apereo.cas.configuration.model.support.clouddirectory.CloudDirectoryProperties;
import org.apereo.cas.configuration.model.support.couch... |
package org.intermine.web.results;
import java.util.List;
import java.util.Map;
import java.util.Iterator;
import java.util.ArrayList;
import org.intermine.objectstore.ObjectStoreException;
import org.intermine.objectstore.query.Results;
import org.intermine.objectstore.query.ResultsInfo;
import org.intermine.objectsto... |
// Ship.java
package de.htwg.battleship.objects;
/**
* Ship for Battleship.
* @author Moritz Sauter (SauterMoritz@gmx.de)
* @version 1.00
* @since 2014-10-29
*/
public class Ship {
/**
* Correct size.
*/
private static final int CORRECT_FIELD_SIZE = 2;
/**
* Size of the ship.
*/
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.