answer stringlengths 17 10.2M |
|---|
package info.limpet.data2;
import static javax.measure.unit.NonSI.BAR;
import static javax.measure.unit.SI.CELSIUS;
import static javax.measure.unit.SI.CENTI;
import static javax.measure.unit.SI.GRAM;
import static javax.measure.unit.SI.METER;
import static javax.measure.unit.SI.METRE;
import static javax.measure.unit.... |
package info.limpet.ui.xy_plot;
import info.limpet.IDocument;
import info.limpet.IStoreItem;
import info.limpet.impl.LocationDocument;
import info.limpet.impl.NumberDocument;
import info.limpet.operations.CollectionComplianceTests;
import info.limpet.operations.CollectionComplianceTests.TimePeriod;
import info.limpet.u... |
package org.flymine.codegen;
// Most of this code originated in the ArgoUML project, which carries
// software and its documentation without fee, and without a written
// and this paragraph appear in all copies. This software program and
// California. The software program and documentation are supplied "AS
// IS", wi... |
package org.flymine.codegen;
// Most of this code originated in the ArgoUML project, which carries
// software and its documentation without fee, and without a written
// and this paragraph appear in all copies. This software program and
// California. The software program and documentation are supplied "AS
// IS", wi... |
package org.intermine.web;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.... |
package com.wegas.core.persistence.game;
import com.wegas.core.jcr.page.Page;
import com.wegas.core.jcr.page.Pages;
import com.wegas.core.persistence.AbstractEntity;
import com.wegas.core.persistence.NamedEntity;
import com.wegas.core.persistence.variable.DescriptorListI;
import com.wegas.core.persistence.variable.Vari... |
package com.wegas.core.security.ejb;
import com.wegas.core.Helper;
import com.wegas.core.ejb.BaseFacade;
import com.wegas.core.ejb.PlayerFacade;
import com.wegas.core.exception.client.WegasErrorMessage;
import com.wegas.core.exception.internal.WegasNoResultException;
import com.wegas.core.persistence.game.Player;
impor... |
package cn.vimer.kpush;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.util.Log;
import org.json.JSONObject;
import java.security.MessageDigest;
public class Utils {
public static String genMD5(String val) {
try{
... |
package org.gem.engine.hazard.parsers;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.StringTokenizer;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import org.opensha.commons.d... |
package com.mapswithme.maps;
import java.util.Locale;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.... |
package nordpol.android;
import android.nfc.Tag;
import android.nfc.NfcAdapter;
import android.nfc.tech.IsoDep;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.... |
package me.ramswaroop.jbot.core.slack;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.socket.CloseStatus;
import org.sp... |
package me.ramswaroop.jbot.core.slack;
import com.fasterxml.jackson.databind.ObjectMapper;
import me.ramswaroop.jbot.core.common.BaseBot;
import me.ramswaroop.jbot.core.common.BotWebSocketHandler;
import me.ramswaroop.jbot.core.common.Controller;
import me.ramswaroop.jbot.core.common.EventType;
import me.ramswaroop.jbo... |
package javax.jmdns.impl;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumer... |
package by.vshkl.bashq.ui.acticity;
import android.Manifest;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.... |
package com.bkp.minerva.fragments;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.view.men... |
package com.eleith.calchoochoo;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.util.Pair;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.eleith.calchoochoo.dagger.ChooChooComponent;
impo... |
package com.example.android.pets.data;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import com.example.android.pe... |
package com.example.bottombar.sample;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import com.roughike.bottombar.BottomBar;
import com.roughike.bottombar.BottomBarTab;
impor... |
package com.example.bottombar.sample;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import android.widget.Toast;
import com.roughike.bottombar.BottomBar;
import com.roug... |
package com.fallenritemonk.numbers.game;
import android.content.DialogInterface;
import android.graphics.Color;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AlertDialog;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widge... |
package corp.mahisan.medicinastore;
import android.content.Context;
import android.content.Intent
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widg... |
package fredboat.commandmeta;
import fredboat.Config;
import fredboat.commandmeta.abs.Command;
import fredboat.commandmeta.abs.ICommandRestricted;
import fredboat.commandmeta.abs.IMusicBackupCommand;
import fredboat.commandmeta.abs.IMusicCommand;
import fredboat.feature.I18n;
import fredboat.feature.PatronageChecker;
i... |
package io.mokshjn.cosmo.provider;
import android.content.ContentResolver;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.support.v4.media.MediaBrowserCompat;
import android.support.v4.media.MediaDescriptionCompat;
import android.support.v4.media.MediaMetadataCompat;
import java.util.ArrayL... |
package nl.waywayway.broodkruimels;
import android.app.*;
import android.content.*;
import android.support.annotation.*;
import android.util.*;
import android.view.*;
// Singleton voor bepalen breedte van de app: 'narrow' of 'wide'
// en andere meetwaarden
// grenswaarde staat in xml bestand resources / values / intege... |
package org.openlmis.core.view.widget;
import android.content.Context;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.LinearLa... |
package snowdog.pl.countrylist;
import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.location.Address;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
imp... |
package viveksrivastava.github.io.paint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BlurMaskFilter;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.EmbossMaskFilter;
import android.graphics.MaskFilter;
import android.graphics.Paint;
imp... |
package <%=packageName%>.domain;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;<% if (hibernateCache != 'no' && databaseType == 'sql') { %>
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;<% } %><% if (databaseTyp... |
package proxycontrol;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.google.gson.Gson;
import proxy.Proxy;
@Path("control")
public class ProxyControl {
public static Proxy proxy;
@GE... |
/*
* $Log: JdbcQuerySenderBase.java,v $
* Revision 1.45 2009-09-07 13:16:39 L190409
* replaced a '&' by '&&'
*
* Revision 1.44 2009/08/14 13:21:20 Peter Leeuwenburgh <peter.leeuwenburgh@ibissource.org>
* fixed bug in useNamedParams
*
* Revision 1.43 2009/08/14 07:19:02 Peter Leeuwenburgh <peter.leeuwenbur... |
/*
* $Log: MessageSendingPipe.java,v $
* Revision 1.45 2008-08-13 13:40:34 europe\L190409
* modified eventnames
*
* Revision 1.44 2008/07/14 17:25:52 Gerrit van Brakel <gerrit.van.brakel@ibissource.org>
* use flexible monitoring
*
* Revision 1.43 2008/06/18 12:29:09 Gerrit van Brakel <gerrit.van.brakel@ib... |
package alma.acs.logging;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Filter;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import alma.acs.logging.adapte... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// LIABLE FOR ... |
package io.jooby.internal;
import io.jooby.Context;
import io.jooby.HeadHandler;
import io.jooby.RegistryException;
import io.jooby.ServiceKey;
import io.jooby.StatusCodeException;
import io.jooby.ErrorHandler;
import io.jooby.ExecutionMode;
import io.jooby.Jooby;
import io.jooby.MediaType;
import io.jooby.MessageDecod... |
package natlab;
import java.util.*;
public class SymbolTableFunctionEntry implements SymbolTableInterface
{
private String name;
private SymbolTableScope localSymbols;
private SymbolTableFunctionEntry parent;
private HashMap< String, SymbolTableFunctionEntry > nestedFunctions;
//TODO-JD: Add some in... |
package Cache;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import Util.CmdLineParser;
import Database.DatabaseManager;
public class Simulator {
static final int BLKDEFAULT = 3;
static final int PFDEFAULT = 3;... |
package jade.core.faultRecovery;
//#MIDP_EXCLUDE_FILE
import jade.core.Profile;
import jade.util.Logger;
import java.util.Map;
import java.util.HashMap;
import java.io.*;
import java.nio.ByteBuffer;
//#DOTNET_EXCLUDE_BEGIN
import java.nio.channels.FileChannel;
//#DOTNET_EXCLUDE_END
/**
Default implementation of the ... |
package script_editor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOExc... |
package Client;
import java.util.ArrayList;
import Boutons.Bouton;
import Boutons.BoutonBas;
import Boutons.BoutonExterne;
import Boutons.BoutonHaut;
import Controleurs.ControleurExterne;
import Controleurs.ControleurInterne;
import Requetes.Requete;
/**Contient les principales informations: les {@link ControleurIntern... |
package org.xbill.DNS;
import java.util.*;
import java.io.*;
import org.xbill.DNS.utils.*;
/**
* A DNS master file parser. This incrementally parses the file, returning
* one record at a time. When directives are seen, they are added to the
* state and used when parsing future records.
*
* @author Brian Wellingt... |
package org.geomajas.service;
import org.geomajas.annotation.Api;
/**
* Service to register objects in a cache store. Objects are stored in different caches identified by a cache id.
* The main purpose of this cache is to provide in-memory cache for java objects that need storage for a short time,
* for example to s... |
package org.perfmon4j;
import java.io.StringReader;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.perfmon4j.Appender.AppenderID;
import org.perfmon4j.PerfMonConfiguration.Append... |
package com.m2stice.controller;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import javax.swing.JTable;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.event.TreeSelectionE... |
package org.exist.management;
import org.apache.avalon.excalibur.cli.CLArgsParser;
import org.apache.avalon.excalibur.cli.CLOption;
import org.apache.avalon.excalibur.cli.CLOptionDescriptor;
import org.apache.avalon.excalibur.cli.CLUtil;
import javax.management.*;
import javax.management.openmbean.CompositeData;
import... |
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
package processing.app.windows;
import cc.arduino.os.windows.Win32KnownFolders;
import processing.app.PreferencesData;
import processing.app.legacy.PApplet;
import processing.app.legacy.PConstants;
import java.io.File;
import java.io.IOException;
import... |
package de.rennschnitzel.net;
import java.io.File;
import java.io.IOException;
import java.util.UUID;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.google.common.... |
package com.tlongdev.bktf;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.preference.PreferenceManager;
import andr... |
package wb.control;
import android.os.Build;
import android.os.Environment;
import android.util.Xml;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
public c... |
package com.exedio.cope.lib;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.sql.SQLException;
/**
* Signals, that an attempt to write an attribute has been failed,
* and the value to be set violated a unique constraint.
*
* This exception will be thrown by {@link Item#setAttribute Item.setAttri... |
package com.jfeinstein.jazzyviewpager;
import java.util.HashMap;
import java.util.LinkedHashMap;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Camera;
import android.graphics.Color;
import android.graphics.Matrix;
import android.os.Bu... |
package org.builditbreakit.seada.logappend;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class BatchProcessor {
BufferedReader reader;
public BatchProcessor(String path) throws IOException {
reader = new BufferedReader(new FileR... |
package org.postgresql.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import java.sql.SQLException;
import java.util.List;
/**
* Test cases for the Parser.
* @author Jeremy Whiting jwhiting@redhat.c... |
package org.webrtc;
import android.graphics.SurfaceTexture;
import android.opengl.GLES20;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.view.Surface;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
/**
* Implements org.webrtc.Vide... |
package co.aikar.commands;
import co.aikar.commands.apachecommonslang.ApacheCommonsExceptionUtil;
import co.aikar.timings.lib.MCTiming;
import co.aikar.timings.lib.TimingManager;
import com.google.common.collect.Maps;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Server;
import org.bukkit.com... |
package co.aikar.commands;
import co.aikar.commands.apachecommonslang.ApacheCommonsExceptionUtil;
import co.aikar.timings.lib.MCTiming;
import co.aikar.timings.lib.TimingManager;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Server;
import org.bukkit.command.Command;
import org.bukkit.command... |
// Observatory Control System, Gemini Telescopes Project.
// $Id: Resources.java 24803 2010-03-28 03:13:18Z swalker $
package jsky.app.ot.util;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Properties;
import javax.swing.ImageIcon;
import edu.gemini.shared.util.Lr... |
package drones.models.scheduler;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.dispatch.OnComplete;
import akka.japi.pf.ReceiveBuilder;
import akka.japi.pf.UnitPFBuilder;
import akka.util.Timeout;
import api.DroneCommander;
import com.avaje.ebean.Ebean;
import drones.models.Fleet;
import drones.model... |
package edu.wustl.catissuecore.actionForm;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import ... |
package edu.wustl.catissuecore.reportloader;
import java.io.File;
import java.io.IOException;
import edu.wustl.catissuecore.caties.util.CSVLogger;
import edu.wustl.catissuecore.caties.util.CaCoreAPIService;
import edu.wustl.catissuecore.caties.util.CaTIESConstants;
import edu.wustl.catissuecore.caties.util.CaTIESProper... |
package com.h6ah4i.android.app;
import android.app.Activity;
import android.os.Bundle;
import android.widget.SeekBar;
import java.io.UnsupportedEncodingException;
public class LedControlActivity extends Activity implements SeekBar.OnSeekBarChangeListener {
private static final String TAG = LedControlActivity.class... |
package org.a11y.brltty.android;
import java.lang.reflect.*;
import java.util.Set;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.util.UUID;
import android.util.Log;
import android.bluetooth.BluetoothAdapter;
import ... |
package VASSAL.build.module.map;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.awt.e... |
package com.emistoolbox.lib.pdf;
import java.io.IOException;
import info.joriki.io.Util;
import info.joriki.pdf.PDFArray;
import info.joriki.pdf.PDFDictionary;
import info.joriki.pdf.PDFObject;
public class ResourceRenamer {
String prefix;
int index;
PDFDictionary allResources = new PDFDictionary ();
pu... |
package org.neo4j.io.fs;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.channels.FileChannel;
import java.nio.channels.OverlappingFileLockException;
import java.nio.file.Files;
public abstract class FileLock
{
// This should not be here, see note in getOsSpecificFi... |
package com.example.dp;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.ArrayA... |
package com.x1unix.avi;
import android.app.SearchManager;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PorterDuff.Mode;
import android.net.ConnectivityManager;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.support... |
package xyz.gsora.toot;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
public class UserTimeline extends AppCompatActivity {
privat... |
package be.ibridge.kettle.core;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
import java.text.ParseExc... |
package be.ibridge.kettle.core;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.List;
import java.util.Properties;
import org.eclipse.swt.SWT;
import o... |
package gov.nih.nci.cagwas.web.action;
import gov.nih.nci.cagwas.application.zip.ZipFindingsHelper;
import gov.nih.nci.cagwas.web.action.RemoteContentHelper;
import java.io.FileInputStream;
import java.util.Properties;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import o... |
package com.arjuna.ats.internal.jdbc;
import java.sql.Array;
import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.NClob;
import java.sql.PreparedStatement;
import java.sql.SQLClientInfoException;
import java.sql.SQLE... |
package edu.oswego.tiltandtumble.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Button;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.ui.Window;
import com.badlogic.gdx.scenes.scene2d.utils.Chan... |
package com.braintreepayments.cardform.view;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.os.Build.VERSION_CODES;
import android.os.Bundle;
import android.text.Editable;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.vie... |
package ru.apetrov.storege;
import org.junit.Before;
import org.junit.Test;
import ru.apetrov.ConnectionDB;
import ru.apetrov.model.User;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
public class UserStoreTest {
private int count;
@Before
pu... |
package be.ibridge.kettle.job.entry.job;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import org.eclipse.swt.widgets.Shell;
import org.w3c.dom.Node;
import be.ibridge.kettle.core.Const;
import be.ibridge.kettle.core.LocalVariables;
import be.ibridge.ke... |
package blackdoor.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.BitSet;
import javax.xml.bind.DatatypeConverter;
public class Misc {
public static final char NULL = '\u0000';
/... |
package cn.updev.Users.Static.FuctionClass;
import cn.updev.Users.Static.EnumeRule.UserRule;
import cn.updev.Users.Static.UserOrGroupInterface.IUser;
import cn.updev.Users.User.UserFactory;
public class Register {
private UserFactory userFactory = null;
public Register(String userName, String nickName, String e... |
package com.chinomars.bccAndroidViewerCommon;
public class Common {
// Commnunications Prtocol
public static final int MESSAGE_STATE_CHANGE = 1;
public static final int MESSAGE_READ = 2;
public static final int MESSAGE_WRITE = 3;
public static final int MESSAGE_DEVICE_NAME = 4;
public static fin... |
package com.coderevisited.utils;
/**
* Implementation of Sieve Of Eratosthenes.. Generating prime numbers up to 1 billion
* using wheel_2357
*/
public class SieveOfEratosthenes {
private static final int MAX = 1000000000;
private static final int MEMORY_SIZE = MAX >> 1;
public static void main(String[] a... |
package com.googlecode.objectify.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Ent... |
package com.jme.scene.state.lwjgl;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java.util.logging.Level;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.*;
import org.lwjgl.opengl.glu.GLU;
import com.jme.image.Image;
import com.jme.image.Texture;
import com.jme.scene.st... |
package com.openerp.addons.note;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONArray;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
i... |
package com.ra4king.circuitsimulator.gui;
import java.io.File;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;
import java.util.... |
package com.valkryst.VTerminal.builder;
import com.valkryst.VTerminal.Panel;
import com.valkryst.VTerminal.component.Screen;
import com.valkryst.VTerminal.font.Font;
import lombok.Getter;
import javax.swing.*;
public class PanelBuilder {
/** The width of the panel, in characters. */
@Getter private int widthInC... |
package nallar.tickthreading.patcher;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.common.... |
package com.facebook.litho;
import java.util.ArrayList;
import java.util.List;
/**
* A lightweight representation of a layout node, used to cache measurements between two Layout tree
* calculations.
*/
class DiffNode implements Cloneable {
static final int UNSPECIFIED = -1;
private LayoutOutput mContent;
priva... |
package ucar.unidata.io.http;
import org.apache.http.Header;
import ucar.httpservices.HTTPFactory;
import ucar.httpservices.HTTPMethod;
import ucar.httpservices.HTTPSession;
import ucar.unidata.util.Urlencoded;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.nio... |
package com.kotcrab.vis.editor.module.scene;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.kotcrab.vis.editor.module.BaseModuleContainer;
import com.kotcrab.vis.editor.module.EditorModuleContainer;
import com.kotcr... |
package com.codingchili.core.storage;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.json.JsonObject;
/**
* @author Robin Duda
* <p>
* Reuses the AsyncMap interface from hazelcast.
* <p>
* Storages implementing this class are recommended to crea... |
package bisq.core.api;
import bisq.core.api.model.AddressBalanceInfo;
import bisq.core.api.model.BalancesInfo;
import bisq.core.api.model.BsqBalanceInfo;
import bisq.core.api.model.BtcBalanceInfo;
import bisq.core.api.model.TxFeeRateInfo;
import bisq.core.app.AppStartupState;
import bisq.core.btc.Balances;
import bisq.... |
package brooklyn.entity.basic;
import brooklyn.entity.ConfigKey;
import brooklyn.event.basic.BasicConfigKey;
/**
* Dictionary of {@link ConfigKey} entries.
*/
public class ConfigKeys {
// FIXME Rename to VERSION, instead of SUGGESTED_VERSION? And declare as BasicAttributeSensorAndConfigKey?
public static fina... |
package hudson.node_monitors;
import hudson.ExtensionPoint;
import hudson.Functions;
import hudson.model.ComputerSet;
import hudson.model.Describable;
import hudson.model.Descriptor;
import hudson.model.Node;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import java.util.logging.Le... |
package hudson.security;
import hudson.model.Descriptor;
import hudson.model.Hudson;
import hudson.Util;
import hudson.Extension;
import hudson.os.PosixAPI;
import hudson.util.FormValidation;
import org.acegisecurity.Authentication;
import org.acegisecurity.AuthenticationException;
import org.acegisecurity.Authenticati... |
package org.waterforpeople.mapping.app.web;
import static com.gallatinsystems.common.util.MemCacheUtils.containsKey;
import static com.gallatinsystems.common.util.MemCacheUtils.initCache;
import static com.gallatinsystems.common.util.MemCacheUtils.putObject;
import java.util.ArrayList;
import java.util.Date;
import jav... |
package jenkins;
import hudson.Extension;
import hudson.FilePath;
import hudson.remoting.ChannelProperty;
import java.io.File;
import java.util.Collections;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* Maintains a bundle of {@link FilePathFilter} and implement a hook that broadcasts to all the filters.
*
... |
package jenkins.tasks;
import hudson.AbortException;
import hudson.EnvVars;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.BuildListener;
import hudson.model.Computer;
import hudson.model.Run;
import... |
package org.bouncycastle.math.ec;
import java.math.BigInteger;
import org.bouncycastle.asn1.x9.X9IntegerConverter;
import org.bouncycastle.util.Arrays;
/**
* base class for points on elliptic curves.
*/
public abstract class ECPoint
{
protected static ECFieldElement[] EMPTY_ZS = new ECFieldElement[0];
protect... |
package org.javarosa.core.io;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class StreamsUtil {
public static byte[] getStreamAsBytes(InputStream is) throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStrea... |
package org.jaexcel.framework.JAEX.engine;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
import org.apache.poi.hssf.usermodel.HSSFPatriarch;
import org.apache.poi.hss... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.