answer stringlengths 17 10.2M |
|---|
package org.jfree.chart.plot;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Polygon;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.Stroke;
import ... |
package org.sagebionetworks.bridge.dynamodb;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.sagebionetworks.bridge.BridgeConstants.API_MAXIMUM_PAGE_SIZE;
import static org.sagebionetworks.bridge.dynamodb.DynamoExternal... |
package net.java.sip.communicator.impl.gui.main.chat;
import java.awt.*;
import java.awt.Container;
import java.awt.event.*;
import java.beans.*;
import java.io.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import net.java.sip.communicator.imp... |
package org.jivesoftware.smack;
import org.jivesoftware.smack.packet.RosterPacket;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.util.StringUtils;
import java.util.*;
/**
* A group of roster entries.
*
* @see Roster#getGroup(String)
* @author Matt Tucker
*/
public class RosterGroup {
p... |
package com.freak.dashboard;
import com.freak.dashboard.DashboardService.LocalBinder;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;... |
package org.helioviewer.jhv.renderable.gui;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import javax.swing.table... |
package com.osho.ernesto.animate;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.animatio... |
package org.leyfer.thesis.TouchLogger.helper;
import org.leyfer.thesis.TouchLogger.config.Code;
import org.leyfer.thesis.TouchLogger.config.Range;
import org.leyfer.thesis.TouchLogger.config.TouchConfig;
import org.leyfer.thesis.TouchLogger.config.Type;
import java.util.HashMap;
import java.util.Map;
public class Devic... |
package com.pr0gramm.app.services;
import android.content.SharedPreferences;
import android.graphics.PointF;
import com.google.common.base.Optional;
import com.google.common.base.Stopwatch;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableList;
import com.google.gson.Gson;
impo... |
package org.objectweb.proactive.core.process.lsf;
import org.objectweb.proactive.core.process.SimpleExternalProcess;
import org.objectweb.proactive.core.process.AbstractExternalProcessDecorator;
import org.objectweb.proactive.core.process.ExternalProcess;
/**
* <p>
* The RloginProcess class is able to start any class... |
package diaspora.forager;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.crash.FirebaseCrash;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.ValueEve... |
package org.owasp.esapi.reference;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properti... |
package lic.swifter.box.activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.sup... |
package org.pentaho.di.trans.steps.detectlastrow;
import org.pentaho.di.core.Const;
import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.core.row.RowDataUtil;
import org.pentaho.di.i18n.BaseMessages;
import org.pentaho.di.trans.Trans;
import org.pentaho.di.trans.TransMeta;
import org.pentaho.di.t... |
package com.afollestad.silk.http;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
/**
* @author Aidan Follestad (afollestad)
*/
public class SilkHttpException extends Exception {
SilkHttpException(String msg) {
super(msg);
}
SilkHttpException(Exception e) {
super(e)... |
package org.schemeway.plugins.schemescript.action;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITypedRegion;
import org.eclipse.jface.text.Region;
import org.schemeway.plugins.schemescript.editor.Scheme... |
package me.devsaki.hentoid.util;
import static me.devsaki.hentoid.util.network.HttpHelper.HEADER_CONTENT_TYPE;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.Pair;
import androi... |
/*
* While not entirely a direct port, this file is heavily based on
*/
package net.justdave.mcstatus;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.URI;
import java.net.URISyntaxException;
import java... |
package org.usfirst.frc.team910.robot.Auton;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class AutonDriveStraight extends AutonStep {
private static final double V_MAX = 10.0;
private static final double ACCEL = 3.0;
private static final double PCON... |
package org.openalpr.app;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
imp... |
package org.unhack.chemistryeasy;
import android.graphics.Point;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Display;
import android.view.View;
import android.widget.GridLayout;
import android.widget.See... |
package org.wikipedia.views;
import android.content.Context;
import android.graphics.Canvas;
import android.os.SystemClock;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import android.webkit.WebView;
import org.wikipedia.Wikipedi... |
package ru.furry.furview2;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.KeyEvent;
import android.vi... |
package com.macro.mall.dao;
import com.macro.mall.model.UmsMenu;
import com.macro.mall.model.UmsResource;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UmsRoleDao {
List<UmsMenu> getMenuList(@Param("adminId") Long adminId);
List<UmsMenu> getMenuListByRoleId(@Param("roleId")... |
package com.flytxt.tp.marker;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public class MarkerSerDer {
public Marker[] fromBytes(byte[] data) throws IOException {
ByteArrayInputStream b... |
package net.time4j.tz.other;
import net.time4j.Iso8601Format;
import net.time4j.Moment;
import net.time4j.PatternType;
import net.time4j.SystemClock;
import net.time4j.format.ChronoFormatter;
import net.time4j.tz.NameStyle;
import net.time4j.tz.TZID;
import net.time4j.tz.Timezone;
import net.time4j.tz.ZonalOffset;
impo... |
//FILE: AcquisitionData.java
//PROJECT: Micro-Manager
//SUBSYSTEM: mmstudio and 3rd party applications
// This file is distributed in the hope that it will be useful,
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// CONTRIBUTORS BE LIABLE F... |
package tester;
import java.io.*;
import java.util.*;
import java.lang.*;
import java.lang.reflect.*;
import java.lang.annotation.*;
import org.junit.*;
import org.junit.rules.*;
import org.junit.runner.*;
import org.junit.runners.model.*;
import tools.sep.*;
public class ReadReplace{
public static String getSig(Me... |
package com.illposed.osc;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import com.illposed.osc.utility.OSCJavaToByteArrayConverter;
/**
* An simple (non-bundle) OSC message.
*
* An OSC message is made up of an address (the recei... |
package com.alexrnl.commons.utils.object;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
/**
* Test suite for the object package.
* @author Alex
*/
@RunWith(Suite.class)
@SuiteClasses({ AttributeComparatorTest.class, AutoCompareTest.class, ComparisonErro... |
package com.auth0.utils.tokens;
import com.auth0.exception.IdTokenValidationException;
import com.auth0.exception.PublicKeyProviderException;
import com.auth0.jwt.exceptions.AlgorithmMismatchException;
import com.auth0.jwt.interfaces.DecodedJWT;
import org.bouncycastle.util.io.pem.PemReader;
import org.junit.Rule;
impo... |
package com.nobullet.interview;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Longest palindrome test.
*/
public class LongestPalindromeTest {
@Test
public void test() {
assertEquals("123321",
LongestPalindrome.getLongestPalindromeON3("0912332189"));
... |
package org.ambraproject.rhino.service;
import com.google.common.base.Function;
import com.google.common.base.Objects;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableListMultimap;
import com.g... |
package org.jmeterplugins.repository;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.awt.KeyboardFocusManager;
import java.awt.event.KeyEvent;
import java.io.File;
import java.util.HashSet;
import java.util.Set;
import javax.swing.JComboBox;
import javax.swing.JList... |
package org.recap.model.etl;
import org.apache.camel.ProducerTemplate;
import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.recap.BaseTestCase;
import org.re... |
package us.kbase.narrativejobservice;
import java.io.File;
import java.util.List;
import java.util.Map;
import us.kbase.auth.AuthToken;
import us.kbase.common.service.JsonServerMethod;
import us.kbase.common.service.JsonServerServlet;
import us.kbase.common.service.JsonServerSyslog;
import us.kbase.common.service.RpcCo... |
// This program is free software; you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// along with this program; if not, write to the Free Software
// Foundation,... |
package org.zstack.storage.volume;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.cascad... |
package org.zstack.storage.volume;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.cascad... |
package org.bouncycastle.cms.test;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.cert.X509Certificate;
import java.security.... |
package hudson.model;
import static org.junit.Assert.*;
import java.io.IOException;
import java.net.URL;
import javax.annotation.Nonnull;
import com.gargoylesoftware.htmlunit.WebRequest;
import org.hamcrest.Matchers;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvne... |
import java.util.*;
/**
* Given a binary tree, return the level order traversal of its nodes' values.
* (ie, from left to right, level by level).
*
* For example:
* Given binary tree {3,9,20,#,#,15,7},
* 3
* / \
* 9 20
* / \
* 15 7
*
* return its level order traversal as:
* [
* [3],
... |
package org.mozilla.javascript.tests.es5;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.EcmaError;
import org.mozilla.javascript.ScriptableObject;
import static org.junit.Ass... |
package to.etc.domui.component.buttons;
import javax.annotation.*;
import to.etc.domui.component.menu.*;
import to.etc.domui.dom.html.*;
import to.etc.domui.server.*;
import to.etc.domui.util.*;
public class LinkButton extends ATag implements IActionControl {
@Nullable
private String m_text;
@Nullable
p... |
import java.io.*;
import java.util.*;
import org.json.simple.*;
import org.json.simple.parser.*;
public class JUnitPointsMerger {
private static final class SingleReport {
boolean success;
String description;
String message;
}
private static final class SingleReportComparator impleme... |
package VASSAL.launch;
import VASSAL.configure.StringConfigurer;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt... |
package pzhao.com;
import java.util.Iterator;
public class Stack<Item>implements Iterable<Item> {
private Item[] items;
private int N;
private int top;
public Stack(){
this(10);
}
@SuppressWarnings("unchecked")
public Stack(int n){
this.N=n;
items=(Item[])new Object[N... |
package com.backendless;
import com.backendless.async.callback.AsyncCallback;
import com.backendless.core.responder.AdaptingResponder;
import com.backendless.core.responder.policy.PoJoAdaptingPolicy;
import com.backendless.exceptions.BackendlessException;
import com.backendless.exceptions.BackendlessFault;
import com.b... |
package com.backendless;
import com.backendless.async.callback.AsyncCallback;
import com.backendless.core.responder.AdaptingResponder;
import com.backendless.core.responder.policy.BackendlessUserAdaptingPolicy;
import com.backendless.exceptions.BackendlessException;
import com.backendless.exceptions.BackendlessFault;
i... |
package com.blackmoonit.net;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.lang.ref.WeakReference;
import java.lang.reflect.Type;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;... |
package com.example.timestamp;
import com.example.timestamp.model.TimePost;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;... |
package com.qq;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.net.URLDecoder;
import java.io.UnsupportedEncodingException;
public class GetRequest {
public static void main(String[] args) {
// ... |
package com.justjournal.ctl;
import com.justjournal.db.UserLinkDao;
import com.justjournal.db.UserLinkTo;
import org.apache.log4j.Category;
public class AddLink extends Protected {
private static Category log = Category.getInstance(AddLink.class.getName());
protected String title;
protected String uri;
... |
package com.shade.entities;
import org.newdawn.slick.Animation;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.SpriteSheet;
import org.newdawn.slick.geom.Circle;
import org.newdawn.slick.geom.RoundedRectangle;
import org.newdawn.slick.geom.Shape;
import org.newdawn.... |
package com.techjar.ledcm.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.hackoeur.jglm.Mat3;
import com.hackoeur.jglm.Mat4;
import com.techjar.ledcm.LEDCubeManager;
import com.techjar.ledcm.util.json.ShapeInfo;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.... |
package com.sometrik.framework;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import com.android.trivialdrivesample.util.IabHelper... |
package com.tradle.react;
import android.content.Context;
import android.net.wifi.WifiManager;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.util.SparseArray;
import com.facebook.common.logging.FLog;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.C... |
package net.client.im;
import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import net.client.im.core.... |
package org.spine3.base;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableMap;
import com.google.protobuf.Any;
import com.google.protobuf.Message;
import com.google.protobuf.MessageOrBuilder;
import com.google.protobuf.StringValue;
import com.google.protobuf.Timestamp;
import com.google... |
package fm.libre.droid;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URI... |
import managed_dll.*;
import managed_dll.properties.*;
import managed_dll.first.*;
import managed_dll.first.second.*;
import managed_dll.exceptions.*;
import managed_dll.constructors.*;
import managed_dll.enums.*;
import managed_dll.methods.*;
import managed_dll.structs.*;
import mono.embeddinator.*;
import static org.... |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
public class run_tagger {
private static Model model;
private static File modelFi... |
package agersant.polaris;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.app.TaskStackBuilder;
import android.content.BroadcastReceiver;
import android.content.Context;
import a... |
package ca.knoblauch.dialog;
import android.util.Log;
import java.util.ArrayList;
import java.lang.String;
import java.util.HashMap;
import java.util.Map;
public class speechModel {
ArrayList<String> watchWords = new ArrayList<String>();
private int targetTime;
private int actualTime;
private String act... |
package com.example.idk.myuber;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androi... |
package com.samourai.wallet.JSONRPC;
import org.bitcoinj.core.Sha256Hash;
import org.bitcoinj.core.Utils;
import org.bitcoinj.params.MainNetParams;
import org.json.JSONException;
import org.json.JSONObject;
import org.bouncycastle.util.encoders.Hex;
import java.math.BigInteger;
import static org.bouncycastle.util.Array... |
package org.ieeeguc.ieeeguc.models;
import org.ieeeguc.ieeeguc.HTTPResponse;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import... |
package org.luaj.vm2;
import java.io.ByteArrayInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import org.luaj.vm2.lib.MathLib;
/**
* Subclass of {@link LuaValue} for representing lua strings.
* <p>
* Because lua string values are more ... |
package org.wikipedia.page;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.SearchManager;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Inten... |
package org.wikipedia.page;
import android.app.SearchManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.ActionMode;
import android.view.KeyEvent;
import andro... |
package smida.haroun.listview;
public class DataModel {
String name;
String type;
String version_number;
String test;
String feature;
public DataModel() {
}
public DataModel(String name, String type, String version_number, String feature ) {
this.name=name;
this.type=type... |
package org.commcare.network;
import android.content.SharedPreferences;
import android.net.Uri;
import android.net.http.AndroidHttpClient;
import android.util.Log;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.Credentials;
import... |
package com.thoughtworks.xstream.core.util;
import java.lang.reflect.Field;
import com.thoughtworks.xstream.converters.reflection.ObjectAccessException;
/**
* Slightly nicer way to find, get and set fields in classes. Wraps standard java.lang.reflect.Field calls but wraps
* wraps exception in XStreamExceptions.
*
*... |
package com.thoughtworks.acceptance;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter;
import com.thoughtworks.xstream.testutil.TimeZoneChanger;
/**
* @author Pau... |
package org.zanata.async;
import java.security.Principal;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import javax.annotation.Nonnull;
import javax.security.auth.Subject;
import lombok.extern.slf4j.Slf4j;
import org.jboss.seam.ScopeType;
import... |
// Math.java
//
// Copyright (c) 2012,
// 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... |
package de.phip1611.matrices;
import javax.naming.OperationNotSupportedException;
import java.util.Arrays;
/**
* A matrix as we know it from mathematics.
*/
public class Matrix implements BasicMatrixArithmetic, Comparable<Matrix> {
protected MatrixDimension dim;
protected int[] [] matrix;
public Matrix(St... |
package helper;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.comm... |
package fr.xtof54.jsgo;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import jav... |
package gamepack.data.drawable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.geom.Rectangle;
public class Grid implements DrawableObject
{
private int sizeX;
private int sizeY;
priv... |
/**
*
* $Id: Constants.java,v 1.69 2005-11-08 17:46:20 pandyas Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.68 2005/11/08 16:46:33 georgeda
* Changes for images
*
* Revision 1.67 2005/11/07 21:55:10 georgeda
* Changes for images
*
* Revision 1.66 2005/11/03 13:57:58 georgeda
* Delete functi... |
package implementation;
import java.util.Stack;
/**
* @author by Group4 on 2017-01-27.
*/
public class PhaseOneImpl implements PhaseOne {
private int POSITION = 0;
private int IS_EMPTY_COUNTER = 0;
public int[] carStatus = {POSITION, IS_EMPTY_COUNTER};
private Stack<Integer> parkingPlaces = new Stack<... |
package infn.bed.view.plot;
import java.awt.Color;
import java.util.Collection;
import cnuphys.bCNU.view.PlotView;
import cnuphys.splot.fit.FitType;
import cnuphys.splot.pdata.DataColumn;
import cnuphys.splot.pdata.DataColumnType;
import cnuphys.splot.pdata.DataSet;
import cnuphys.splot.plot.HorizontalLine;
import cnup... |
package io.socket;
/**
* The Class SocketIOException.
*/
public class SocketIOException extends Exception {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 4965561569568761814L;
/**
* Instantiates a new SocketIOException.
*
* @param message
* ... |
package jade.gui;
//#J2ME_EXCLUDE_FILE
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.BoxLayout;
import javax.swing.BorderFactory;
import java.awt.Dimension;
import java.util.Iterator;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import jade... |
// BUI - a user interface library for the JME 3D engine
// 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 should ... |
// BUI - a user interface library for the JME 3D engine
// 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 should ... |
package org.sqsh.commands;
import java.util.Arrays;
import org.sqsh.ColumnDescription;
import org.sqsh.Command;
import org.sqsh.HelpTopic;
import org.sqsh.Renderer;
import org.sqsh.Session;
import org.sqsh.SqshOptions;
import org.sqsh.Variable;
/**
* Implements the 'help' command.
*/
public class Help
extends Com... |
package jmetest.sound;
import java.net.URL;
import jmetest.effects.RenParticleEditor;
import com.jme.app.SimpleGame;
import com.jme.bounding.BoundingBox;
import com.jme.effects.ParticleManager;
import com.jme.image.Texture;
import com.jme.input.KeyBindingManager;
import com.jme.input.KeyInput;
import com.jme.input.acti... |
package joshua.decoder;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import joshua.decoder.chart_parser.Chart;
import joshua.decoder.ff.FeatureFunction;
import joshua.decoder.ff.state_maintenance.S... |
package jtermios.linux;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util... |
package lbms.plugins.mldht.kad;
import static java.lang.Math.max;
import static java.lang.Math.min;
import static lbms.plugins.mldht.kad.Node.InsertOptions.ALWAYS_SPLIT_IF_FULL;
import static lbms.plugins.mldht.kad.Node.InsertOptions.FORCE_INTO_MAIN_BUCKET;
import static lbms.plugins.mldht.kad.Node.InsertOptions.NEVER_... |
package ch.fhnw.main;
public class Main {
public static void main(String[] args) {
System.out.println("Start App");
}
private int getOptimalNumberOfHashfunctions(int inFilterSize, int inNumberOfInsertedElements){
int m = inFilterSize;
int n = inNumberOfInsertedElements;
retur... |
package channels;
import core.AgentEngine;
import com.researchworx.cresco.library.messaging.MsgEvent;
public class MsgRoute implements Runnable {
private MsgEvent rm;
public MsgRoute(MsgEvent rm) {
this.rm = rm;
}
public void run() {
try {
if (!getTTL()) {
ret... |
package com.tterrag.k9;
import java.io.File;
import java.io.FilePermission;
import java.io.IOException;
import java.nio.file.Paths;
import java.security.AccessControlException;
import java.security.AccessController;
import java.util.Scanner;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;... |
package com.workerbee;
import org.apache.hadoop.io.Text;
import java.util.HashMap;
import java.util.Map;
public class Row<T extends Table> {
private Map<Column, Object> map;
private Table table;
public Row(Table<T> table, String record){
this.table = table;
this.map = parseRecordUsing(table, record);
}
... |
package dominio;
import java.io.Serializable;
import java.util.HashMap;
/**
* establece el personaje usado por el jugador, con su nombre, alianza,
* habilidades y atributos
*/
public abstract class Personaje extends Character implements Peleable, Serializable {
private static final long serialVersionUID = 1L;
... |
package eloquent;
import eloquent.adapters.AdapterInterface;
import eloquent.exceptions.EloquentException;
import eloquent.models.Directory;
import eloquent.models.File;
import eloquent.models.Metadata;
public class Eloquent {
protected AdapterInterface adapter;
/**
* Create a new Eloquent Instance
*
... |
package entidades;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Map;
import javax.swing.JOptionPane;
i... |
package net.querz.nbt;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public abstract class Tag<T> impleme... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.