answer stringlengths 17 10.2M |
|---|
package com.swabunga.spell.event;
import java.util.*;
import com.swabunga.spell.engine.*;
/** This is the main class for spell checking (using the new event based spell
* checking).
*
* @author Jason Height (jheight@chariot.net.au)
*/
public class SpellChecker {
private List eventListeners = new ArrayList();
... |
package com.virtualfactory.app;
import com.virtualfactory.utils.ScreenSettings;
import com.jme3.app.SimpleApplication;
/**
* Virtual Factory 2.0
*/
public final class VirtualFactory extends SimpleApplication {
public static void main(String[] args) {
VirtualFactory app = new VirtualFactory();
app.... |
package com.wakatime.intellij.plugin;
import com.intellij.AppTopics;
import com.intellij.compiler.server.BuildManagerListener;
import com.intellij.ide.BrowserUtil;
import com.intellij.ide.plugins.PluginManager;
import com.intellij.ide.plugins.PluginManagerCore;
import com.intellij.openapi.Disposable;
import com.intelli... |
package com.wikidreams.imageselection;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.HeadlessException;
import java.awt.Image;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
import java.awt.event.MouseList... |
package bisq.core.util;
import bisq.core.app.BisqEnvironment;
import bisq.core.locale.CurrencyUtil;
import bisq.core.locale.GlobalSettings;
import bisq.core.locale.LanguageUtil;
import bisq.core.locale.Res;
import bisq.core.monetary.Altcoin;
import bisq.core.monetary.Price;
import bisq.core.monetary.Volume;
import bisq... |
package com.questdb.std.time;
import com.questdb.ex.NumericException;
import com.questdb.misc.Chars;
import com.questdb.misc.Numbers;
import com.questdb.std.str.StringSink;
final public class Dates {
public static final long DAY_MILLIS = 86400000L;
public static final long HOUR_MILLIS = 3600000L;
public sta... |
package hudson.util;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* Hex-binary encoding stream.
*
* TODO: use base64binary.
*
* @author Kohsuke Kawaguchi
* @see DecodingStream
*/
public class EncodingStream extends FilterOutputStream {
public EncodingStream(... |
package org.cache2k.impl;
import org.cache2k.BulkCacheSource;
import org.cache2k.CacheEntry;
import org.cache2k.CacheEntryProcessingException;
import org.cache2k.CacheEntryProcessor;
import org.cache2k.CacheException;
import org.cache2k.CacheManager;
import org.cache2k.CacheMisconfigurationException;
import org.cache2k... |
package cucumber.runner;
import cucumber.api.Scenario;
import cucumber.runtime.Argument;
import cucumber.runtime.Backend;
import cucumber.runtime.HookDefinition;
import cucumber.runtime.Runtime;
import cucumber.runtime.RuntimeOptions;
import cucumber.runtime.StepDefinition;
import cucumber.runtime.io.ClasspathResourceL... |
package com.couchbase.cblite.phonegap;
import android.content.Context;
import android.text.TextUtils;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.PluginResult;
import o... |
package org.intermine.dwr;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Constructor;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Has... |
package org.intermine.dwr;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Constructor;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Has... |
package com.exedio.cope;
import com.exedio.cope.util.CacheInfo;
public class HierarchyTest extends AbstractLibTest
{
public HierarchyTest()
{
super(Main.hierarchyModel);
}
public void testHierarchy()
throws IntegrityViolationException, UniqueViolationException
{
// model ... |
package io.digdag.cli;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.ArrayList;
import java.util.HashMap;
import java.time.Instant;
import java.time.ZoneId;
import java.time.LocalDate;
import java.time.DateTimeException;
import java.time.format.DateTimeFormatter;
import java.time.f... |
package se.raddo.raddose3D;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* This class def... |
package com.parc.ccn.security.access;
import java.security.Key;
import java.security.PrivateKey;
import java.util.HashMap;
import com.parc.ccn.data.ContentName;
import com.parc.ccn.security.crypto.CCNDigestHelper;
import com.parc.ccn.security.keys.KeyManager;
/**
* A cache for decrypted symmetric keys for access contr... |
package CodeMonkey.project;
import java.util.ArrayList;
import java.util.Random;
import CodeMonkey.genetic.Evaluator;
import CodeMonkey.genetic.Gene;
import CodeMonkey.genetic.GeneFactory;
import CodeMonkey.genetic.Genome;
import CodeMonkey.genetic.Population;
import CodeMonkey.genetic.breed.Breeder;
import CodeMonkey.... |
package net.silentchaos512.gems.block;
import java.util.List;
import net.minecraft.block.SoundType;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.EnumRarity;
import net.minecr... |
package dwriter;
import dwriter.core.WorkFile;
import dwriter.core.WorkFileV1;
import dwriter.ctrl.WorkFileFactory;
import dwriter.ui.FileChooser;
import dwriter.ui.Frame;
import java.awt.List;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
im... |
package net.bull.javamelody;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.util.Locale;... |
package com.mfk.web.maker.client;
import java.util.Vector;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.d... |
package cn.jzvd;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.media.AudioManager;
imp... |
package com.podio.sdk.parser;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.podio.sdk.Parser;
public class ItemToJsonParser implements Parser<Object> {
@Override
public List<?> parse(Object source, Class<?> classOfTarget) {
... |
package io.spine.testdata;
import com.google.common.base.Charsets;
import com.google.protobuf.Any;
import com.google.protobuf.ByteString;
import com.google.protobuf.Descriptors;
import com.google.protobuf.Descriptors.Descriptor;
import com.google.protobuf.Descriptors.FieldDescriptor;
import com.google.protobuf.Descript... |
package com.asafge.newsblurplus;
import android.content.Context;
import com.noinnion.android.reader.api.ExtensionPrefs;
public class Prefs extends ExtensionPrefs {
public static final String KEY_LOGGED_IN = "logged_in";
public static final String KEY_SESSION_ID_NAME = "session_id_name";
public static final ... |
package st.alr.mqttitude.services;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException... |
/**
* @Company Riot Games
*
* Given a list of kill events where a kill event is defined as [ timestamp, killerId, victimId ].
* Return a list of the users who have the largest killstreak. A killstreak is defined as a sequence
* of kills where each kill is no more than 15 units of time from the next kill.
*
* If ... |
package limelight.ui;
import java.awt.*;
public class InputLayout implements LayoutManager
{
public void addLayoutComponent(String string, Component component)
{
}
public void removeLayoutComponent(Component component)
{
}
public Dimension preferredLayoutSize(Container container)
{
... |
package jj.http.server;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.NANOSECONDS;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http... |
package pl.edu.icm.cermine.structure;
import com.google.common.collect.Lists;
import java.util.*;
import pl.edu.icm.cermine.exception.AnalysisException;
import pl.edu.icm.cermine.structure.model.*;
import pl.edu.icm.cermine.structure.tools.BxBoundsBuilder;
import pl.edu.icm.cermine.structure.tools.BxModelUtils;
import ... |
package edu.kit.iks.Cryptographics.Caesar;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import edu.kit.iks.Cryptographics.Caesar.Experiment.CryptoModel;
/**
* JUnit testcase class for testing the functionality of the model in the visualization of Caesar.
*
* @author Wasilij Besko... |
package ru.job4j.carstorage.servlets;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import ru.job4j.carstorage.Image;
import ru.job4j.... |
package com.sapienter.jbilling.server.payment.tasks;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Field;
import java.net.URL;
import java.net.URLConnection;
import java.util.Calendar;
import org.apache.log4j.Logger;
import com.sapienter.jbilling.server.entity.PaymentAuthorizationDTO... |
package com.intellij.codeInsight.template.impl;
import com.intellij.codeInsight.CodeInsightBundle;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
import com.intellij.o... |
package edu.duke.cabig.c3pr.dao;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import org.hibernate.Criteria;
import org.hibernate.criterion.CriteriaSpecification;
import org.hibernate.criterion.Order;
import edu.duke.cabig.c3pr.domain.HealthcareSite;
import edu.duke.cabig.c3pr.domain.Su... |
package io.github.kafka101.newsfeed.consumer;
import kafka.consumer.ConsumerConfig;
import kafka.consumer.KafkaStream;
import kafka.javaapi.consumer.ConsumerConnector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Propert... |
// OverlayProperties.java
package imagej.core.plugins.roi;
import imagej.ImageJ;
import imagej.data.DataObject;
import imagej.data.roi.Overlay;
import imagej.display.Display;
import imagej.display.DisplayManager;
import imagej.display.DisplayView;
import imagej.plugin.ImageJPlugin;
import imagej.plugin.Menu;
import ima... |
package org.eclipse.birt.core.script;
import java.util.Collection;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.exception.CoreException;
import org.eclipse.birt.core.i18n.ResourceCo... |
package com.github.mizool.core.validation;
import java.util.function.Predicate;
import lombok.experimental.UtilityClass;
import com.github.mizool.core.Streams;
@UtilityClass
public class ConstraintValidators
{
public static <T> boolean isValid(T validationObject, boolean mandatory, Predicate<T> isValidValue)
{
... |
package net.mabako.steamgifts.fragments;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.util.Log;
import net.mabako.steamgifts.ada... |
package org.semagrow.evaluation.reactor;
import org.semagrow.evaluation.BindingSetOps;
import org.semagrow.evaluation.IterationPublisher;
import org.semagrow.evaluation.util.BindingSetUtil;
import org.semagrow.evaluation.util.QueryEvaluationUtil;
import org.semagrow.evaluation.util.SimpleBindingSetOps;
import org.semag... |
package com.graphhopper.routing.ch;
import com.graphhopper.Repeat;
import com.graphhopper.RepeatRule;
import com.graphhopper.routing.util.*;
import com.graphhopper.routing.weighting.ShortestWeighting;
import com.graphhopper.routing.weighting.TurnWeighting;
import com.graphhopper.routing.weighting.Weighting;
import com.... |
package com.jme3.input;
import com.jme3.collision.MotionAllowedListener;
import com.jme3.input.controls.*;
import com.jme3.math.FastMath;
import com.jme3.math.Matrix3f;
import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;
import com.jme3.renderer.Camera;
/**
* A first person view camera controller.
* After... |
package com.continuuity.data;
import com.continuuity.common.conf.CConfiguration;
import com.continuuity.data2.dataset.api.DataSetManager;
import com.google.common.collect.Maps;
import javax.annotation.Nullable;
import java.util.Collections;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
/**
*... |
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.border.LineBorder;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.xy.XYI... |
package replicant;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import static org.realityforge.braincheck.Guards.*;
/**
* A record of a request sent to the server that we need to keep track of.
*/
public final class RequestEntry
{
//TODO: Make this package access afte... |
package fi.laverca;
import java.io.UnsupportedEncodingException;
import org.apache.axis.encoding.Base64;
import org.etsi.uri.TS102204.v1_1_2.DataToBeSigned;
/**
* Dual-mode mapper class for "DataToBeSigned"
* This thing would benefit from a near-total rewrite.
*
* @author Asko Saura (asko@methics.fi)
* @author Mi... |
package com.bugsnag;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.Test;
import java.lang.Exception;
import java.util.List;
public class ThreadStateTest {
private List<ThreadState> threadStates;... |
package com.jcabi.aether;
import com.jcabi.log.VerboseRunnable;
import com.jcabi.log.VerboseThreads;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concur... |
package guitests;
import javafx.application.Platform;
import org.junit.Test;
import util.DialogMessage;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
import static org.junit.Assert.assertEquals;
import static org.loadui.testfx.Assertions.assertNodeExists;
import static org.load... |
package innovimax.mixthem;
import innovimax.mixthem.arguments.Arguments;
import innovimax.mixthem.exceptions.ArgumentException;
import org.junit.Assert;
import org.junit.Test;
public class BasicTest {
@Test
public final void failedPrintUsage() {
boolean check = false;
try {
f... |
package innovimax.mixthem;
import innovimax.mixthem.MixThem;
import org.junit.Assert;
import org.junit.Test;
public class BasicTest {
@Test
public final void failedPrintUsage() {
final String args1[] = {};
Assert.assertNull(MixThem.checkArguments(args1));
final String args2[] = { "ghos... |
/*
Author : Michael Aldridge
Class : CS2336
Section: 001
Assignment: 5
Instructions: Compile with javac inToPost.java; run as java inToPost; This implementation will make an attempt to calculate all expressions that are calculable.
Expressions containing variable components will not be calculated.
... |
package eu.sajato.logw;
import eu.sajato.logw.javaLogging.JavaLoggingWrapper;
import java.util.Iterator;
import java.util.ServiceLoader;
import java.util.function.Supplier;
/**
* This is the main class of the logging wrapper.
* You can use any of the static logging methods to directly log messages
* to the wrapped l... |
package org.spin.mhive;
import org.fmod.FMODAudioDevice;
import org.spin.mhive.replay.HapticNote;
import org.spin.mhive.replay.HapticNoteRecord;
import org.spin.mhive.replay.HapticNoteRecordADSR;
import org.spin.mhive.replay.HapticNoteRecordEnableADSR;
import org.spin.mhive.replay.HapticNoteRecordPlay;
import org.spin.... |
/*
Implement the postorder method in BST using a stack instead of recursion.
Write a test program that prompts the user to enter 10 integers, stores them
in a BST, and invokes the postorder method to display the elements.
*/
import java.util.Scanner;
public class E25_05 {
public static void main(String[] args) ... |
package org.freedesktop.dbus.spi;
import java.io.EOFException;
import java.io.IOException;
import java.net.SocketTimeoutException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import org.freedesktop.dbus.exceptions.DBusException;
import org.freedesktop.dbus.exceptions.MessageProtocolVersionExcept... |
package com.backtype.cascading.tap;
import java.io.IOException;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.BytesWritable;
import or... |
package androidemu.app;
import androidemu.Res;
import androidemu.content.Context;
import androidemu.content.Intent;
import androidemu.os.Bundle;
import androidemu.view.Menu;
import androidemu.view.MenuItem;
import androidemu.view.View;
import androidemu.view.ViewFactory;
import com.google.gwt.core.client.EntryPoint;
im... |
package androidemu.widget;
import androidemu.Res;
import androidemu.content.Context;
import androidemu.view.Gravity;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.PopupPanel;
public class Toast {
pub... |
//-*-Mode:java;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
// ex: set ft=java fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
// modification, are permitted provided that the following conditions are met:
// the documentation and/or other materials provided with the
// distribution.
// * All a... |
// A zorbage example: Calculating the FFT planes of an image.
// Instructions: Use the file chooser to pick an image and see the real and imaginary planes of the FFT.
// This code is in the public domain. Use however you wish.
package fft;
import java.awt.FlowLayout;
import java.awt.image.BufferedImage;
import java... |
package sc.yhy.data.nosql.mongo;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.cglib.beans.BeanMap;
import org.bson.Document;
import org.bson.conversions.Bson;
import sc.yhy.annotation.annot.Column;
import sc.yhy.util.ReflectUtil;
import com.mongodb... |
package app;
import core.framework.module.App;
import core.framework.module.SystemModule;
/**
* @author neo
*/
public class DemoServiceApp extends App {
@Override
protected void initialize() {
http().httpsPort(8443);
load(new SystemModule("sys.properties"));
load(new ProductModule());
... |
package se.bth.libsla.db;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.lang.annotation.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.sql.Prep... |
package de.dakror.spamwars.game.entity;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.geom.AffineTransform;
import java.io.IOException;
import de.dakror.gamesetu... |
package de.epiceric.shopchest.utils;
import java.util.Map;
import org.apache.commons.lang.WordUtils;
import org.bukkit.DyeColor;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.BookMeta;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.Leath... |
/** This class is parent class for RunDebugger and CompileDebugger which
produces info object what was done.
*/
// HYVIN kesken edelleen
public class Debugger extends Translatable{
// define methods like 'ALU happened, parameters x, y, z' and
// a 'command cycle complete', which returns the delta object for... |
package example;
//-*- mode:java; encoding:utf8n; coding:utf-8 -*-
// vim:set fileencoding=utf-8:
//@homepage@
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
public class MainPanel extends JPanel {
private static final Color evenColor = new Color(250, 250, 250);
pr... |
package com.lion.rmtsndcli;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context... |
package edu.rpi.phil.legup.newgui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FileDialog;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.GroupLayout;
import java.awt.Insets;
import java.io.File;
import java.io.FilenameFilter;
import java.awt.event.Act... |
package edacc.experiment;
import edacc.EDACCApp;
import edacc.EDACCExperimentMode;
import edacc.EDACCSolverConfigEntry;
import edacc.EDACCSolverConfigPanel;
import edacc.model.DatabaseConnector;
import edacc.model.Experiment;
import edacc.model.ExperimentDAO;
import edacc.model.ExperimentHasGridQueue;
import edacc.mode... |
package edu.cmu.pocketsphinx;
import static java.lang.String.format;
import java.io.File;
import java.util.Collection;
import java.util.HashSet;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder.AudioSource;
import android.os.*;
import android.util.Log;
import edu.cm... |
package eigthqueentest;
import java.util.ArrayList;
import algorithm.GeneticAlgorithm;
import algorithm.Genotype;
import algorithm.Population;
import genotypes.PermutationGenotype;
import selection.RandomSelection;
public class GAFrameworkApplication {
public static void main(String[] args) {
int population... |
package se.llbit.tinytemplate;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.LinkedList;
import se.llbit.io.LookaheadReader;
public class TemplateParser {
/**
* Thrown when there is a syntax error a parsed template file
*/
@SuppressWarnings("seri... |
package acceptance.td;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.treasuredata.client.TDClient;
import io.digdag.client.DigdagClient;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.code... |
package org.easybatch.tutorials.quartz;
import org.easybatch.core.impl.EasyBatchEngine;
import org.easybatch.core.impl.EasyBatchEngineBuilder;
import org.easybatch.flatfile.FlatFileRecordReader;
import org.easybatch.flatfile.dsv.DelimitedRecordMapper;
import org.easybatch.integration.quartz.EasyBatchScheduler;
import o... |
package io.github.benas.easybatch.xml;
import io.github.benas.easybatch.core.api.Record;
import io.github.benas.easybatch.core.api.RecordReader;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.events.EndDocument;
import... |
package org.elasticsearch.xpack.prelert;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.cluster.metadata.MetaData;
import org.elasticsearch.cluster.service.Cl... |
package smartsockets.direct;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import smartsockets.util.NetworkUtils;
/**
* This class implements a multi-SocketAddress (any number of IP addresses
* and port num... |
package smp.clipboard;
import javafx.event.EventHandler;
import javafx.scene.control.Slider;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Pane;
import smp.components.Values;
import smp.components.staff.Staff;
import smp.components.staff.sequences.StaffNoteLine;
im... |
package com.spaceproject.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;
import com.badlogic.gdx.math.... |
package hudson.scm;
import hudson.model.AbstractBuild;
import hudson.model.User;
import hudson.scm.CVSChangeLogSet.CVSChangeLog;
import hudson.util.IOException2;
import org.apache.commons.digester.Digester;
import org.xml.sax.SAXException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collect... |
package org.javarosa.core.util;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Stack;
import java.util.Vector;
/**
* Directed A-cyclic (NOT ENFORCED) graph datatype.
*
* Genericized with three types: An unique index value (representing the node), a generic
* set of data to associate with... |
package android.view;
import io.leocad.webcachedimageview.BitmapWorkerTask;
import io.leocad.webcachedimageview.CacheManager;
import io.leocad.webcachedimageview.R;
import java.lang.ref.WeakReference;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import a... |
package com.androidessence.lib;
import android.content.Context;
import android.content.Intent;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.net.Uri;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;... |
package eu.project.rapid.common;
/**
* Control Messages for client-server communication Message IDs up to 255 - one byte only, as they
* are sent over sockets using write()/read() - only one byte read/written.
*/
public class RapidMessages {
// Generic Messages
public static final int OK = 1;
public stat... |
package com.afollestad.silk.caching;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Environment;
import android.os.Handler;
import java.io.*;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
class SilkCacheBase<Item extends SilkComparable<Item>> ... |
package com.ironz.binaryprefs.util;
import java.util.HashSet;
import java.util.Set;
/**
* Converts bytes to primitives and backwards. For type detecting uses prefix flag which stores at start of byte arrays.
*/
public final class Bits {
/**
* Uses for detecting byte array type of {@link Set} of {@link String... |
package tools.debugger.message;
import som.interpreter.actors.Actor;
import som.primitives.processes.ChannelPrimitives.ProcessThread;
import som.primitives.threading.ThreadPrimitives.SomThread;
import som.vm.NotYetImplementedException;
import tools.debugger.frontend.Suspension;
import tools.debugger.message.Message.Out... |
package hotchemi.android.rate;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import java.util.List;
final class UriHelper {
private static final String GOOGLE_PLAY = "https://play.google.com/store/apps/details?id=";
p... |
package minesweeper;
import java.util.Random;
/**
*
* @author veeti "walther" haapsamo
*/
class Board {
private final Square[][] board;
private final int mines;
Random rn = new Random();
private final int width;
private final int height;
public Board(int width, int height, int mines) {
... |
package edu.umich.eac;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import ja... |
package mods.railcraft.api.tracks;
import mcp.MethodsReturnNonnullByDefault;
import mods.railcraft.api.core.INetworkedObject;
import net.minecraft.block.Block;
import net.minecraft.block.BlockRailBase;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entit... |
package jcdc.pluginfactory.betterexamples;
import org.bukkit.Effect;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.EntityType;
import org.bukkit.entit... |
package org.fakekoji.jobmanager;
import org.fakekoji.Utils;
import org.fakekoji.model.BuildProvider;
import org.fakekoji.model.Platform;
import org.fakekoji.model.Product;
import org.fakekoji.model.Task;
import org.fakekoji.model.TaskVariant;
import org.fakekoji.model.TaskVariantValue;
import org.w3c.dom.Document;
impo... |
package org.flymine.dataconversion;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;
import java.util.HashSet;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.StringTokenizer;
import java.io.Fi... |
package benchmark.web;
import benchmark.model.Fortune;
import benchmark.model.World;
import benchmark.repository.DbRepository;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.f... |
package org.voltdb.utils;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayLis... |
package tcking.github.com.giraffeplayer;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.media.AudioManager;
import android.os.Handler;
import android.os.Looper;
import and... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.