answer stringlengths 17 10.2M |
|---|
package org.azavea.otm;
import java.text.NumberFormat;
import java.util.Locale;
import org.azavea.otm.data.Model;
import org.azavea.otm.data.Plot;
import org.json.JSONException;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
public class Eco... |
package org.apache.gora.pig;
import java.io.IOException;
import java.nio.ByteBuffer;
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.Map.Entry;
import java.util.Properties;
import org.apache.avro.Sche... |
package squeek.applecore.asm;
import net.minecraft.block.Block;
import net.minecraft.block.BlockCake;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.EnumAction;
import... |
package ohtu.beddit.web;
import android.content.Context;
import android.util.Log;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.stream.JsonReader;
import javax.net.ssl.HttpsURLConnection;
import java.io.... |
package VASSAL.counters;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Point... |
package bitronix.tm.mock;
import bitronix.tm.TransactionManagerServices;
import bitronix.tm.mock.resource.jms.MockXAConnectionFactory;
import bitronix.tm.recovery.RecoveryException;
import bitronix.tm.resource.common.XAPool;
import bitronix.tm.resource.jms.PoolingConnectionFactory;
import junit.framework.TestCase;
impo... |
package it.polimi.ingsw.client.cli;
import it.polimi.ingsw.client.GameController;
import it.polimi.ingsw.client.View;
import it.polimi.ingsw.exception.CommandNotValidException;
import it.polimi.ingsw.game.GameMap;
import it.polimi.ingsw.game.card.object.ObjectCardBuilder;
import it.polimi.ingsw.game.common.GameInfo;
im... |
package org.intermine.web;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletContext;
import java.util.Properties;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import java.util.List;
import java.util.ArrayList;
import java.u... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.HierarchyEvent;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphMetrics;
import java.awt.... |
package de.velcommuta.libvicbf;
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Test;
public class VICBFTest {
@Test
public void test_slot_calculation() {
VICBF test = new VICBF(10000, 3);
int v = test.calculateSlot("123".getBytes(), 0);
assertEquals(v, (sh... |
package cmcc.iot.onenet.javasdk;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONObject;
import org.junit.Test;
import cmcc.iot.onenet.javasdk.api.bindata.AddBindataApi... |
package org.unitime.timetable.solver.ui;
import java.io.Serializable;
import java.util.BitSet;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.unitime.timetable.model.PreferenceLevel;
import org.unitime.timetable.util.Constants;
import net.sf.cpsolver.c... |
package com.intellij.psi.util;
import com.intellij.aspects.psi.PsiIdPattern;
import com.intellij.aspects.psi.PsiTypeNamePattern;
import com.intellij.aspects.psi.PsiTypeNamePatternElement;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.fileTypes.StdFileTypes;
import com.intellij.openapi.util.... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package com.plattysoft.leonids;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import com.plattysoft.leonids.initializers.AccelerationInitializer;
import com.plattysoft.leonids.initializers.ParticleInitializer;
import com.plattysoft.leonid... |
package ctci.chapter2LinkedLists;
import java.util.Random;
public class q4 {
/*
* Partition
*
* Write code to partition a linked list around a value x, such that all nodes less than x come
* before all nodes greater or equal to x. If x is contained within the list, the values of x only need to be
... |
package net.somethingdreadful.MAL;
import java.util.ArrayList;
import java.util.Calendar;
import net.somethingdreadful.MAL.NavigationItems.NavItem;
import net.somethingdreadful.MAL.api.MALApi;
import net.somethingdreadful.MAL.api.MALApi.ListType;
import net.somethingdreadful.MAL.api.response.Anime;
import net.something... |
package example;
//-*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
//@homepage@
import java.awt.*;
import java.awt.event.*;
import java.util.List;
import java.util.ArrayList;
import javax.swing.*;
// import javax.swing.event.*;
import javax.swing.table.*;
// import javax.swing.text.*;
public class Main... |
package example;
//-*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
//@homepage@
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
public final class MainPanel extends JPanel {
private MainPanel() {
super(new BorderLayout());
... |
package com.sunzn.utils.library;
import android.content.Context;
import android.content.res.AssetManager;
import org.apache.commons.io.FileUtils;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.... |
package com.purdue.CampusFeed.API;
import android.content.Context;
import android.net.http.HttpResponseCache;
import android.util.Log;
import com.google.gson.*;
import com.google.gson.reflect.TypeToken;
import java.io.*;
import java.lang.reflect.Type;
import java.net.HttpURLConnection;
import java.net.URL;
import java.... |
package sample.javafx;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.stage.FileChooser;
import javafx.stage.FileChooser.ExtensionFilter;
import javafx.stage.Stage;
import java.io.File;
public class MainController {
private Stage stage;
@FXML
public void openFileDialog() {
... |
package jkind.xtext.typing;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jkind.xtext.jkind.AbbreviationType;
import jkind.xtext.jkind.Assertion;
imp... |
package cn.jzvd;
import android.graphics.Point;
import android.graphics.SurfaceTexture;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import android.view.Surfa... |
package com.jme3.bullet;
import com.jme3.app.AppTask;
import com.jme3.asset.AssetManager;
import com.jme3.bullet.collision.*;
import com.jme3.bullet.collision.shapes.CollisionShape;
import com.jme3.bullet.control.PhysicsControl;
import com.jme3.bullet.control.RigidBodyControl;
import com.jme3.bullet.joints.PhysicsJoint... |
package edu.isi.karma.util;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.JSONException;
import org.apache.commons.cli.BasicParser;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Opt... |
package com.lucythemoocher.graphics;
import com.lucythemoocher.Globals.Globals;
import com.lucythemoocher.actors.PlayerCharacter;
import com.lucythemoocher.controls.GlobalController;
import com.lucythemoocher.physics.Box;
import com.lucythemoocher.util.Direction;
import com.lucythemoocher.util.Resources;
import android... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 3
* returns their name and a
* reversed string
*
* @author Bob
* @version 1.1
*/
public class Person3 {
/**
* Holds the persons real name
*/
private String name;
/**
* The constructor, takes in the persons
... |
package moinoue.mentalmath;
import java.util.ArrayList;
import java.util.regex.Pattern;
public class Lexer implements TokenType {
private ArrayList<Token> tokens;
private String input;
private int position;
public Lexer(String input){
this.input = input.toLowerCase() + " EOL" ;
this.posi... |
package com.exedio.copernica;
import java.io.PrintStream;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.exedio.cope.Feature;
import com.exedio.cope.Function;
import com.exedio.cope.Query;
import com.exedio.cope.QueryInfo;
import com.exedio.cope.Transaction;
import com.exedio.cope.Type;... |
package ru.job4j;
/**
*Class Calculate - " , !"
*@author YuZuzia (mailto: zuziayv@ya.ru)
*@version %i%, %G%
*@since 15.03.2017
*/
public class Calculate{
/**
* main " "
* @param args -
*/
public static void main(String[] args){
System.out.println("Hello snowboard!");
}
} |
package aQute.lib.json;
import java.io.*;
import java.lang.reflect.*;
import java.util.*;
import aQute.lib.hex.*;
public class ByteArrayHandler extends Handler {
@Override
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHe... |
package cocoonClient.Panels;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.swing.JTree;
import javax.swing.event.TreeSel... |
package com.m12y.ld28.core;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
imp... |
package hudson.model;
import hudson.RelativePath;
import hudson.XmlFile;
import hudson.BulkChange;
import hudson.Util;
import static hudson.Util.singleQuote;
import hudson.diagnosis.OldDataMonitor;
import hudson.model.listeners.SaveableListener;
import hudson.util.ReflectionUtils;
import hudson.util.ReflectionUtils.Par... |
package hudson.model;
import hudson.DescriptorExtensionList;
import hudson.PluginWrapper;
import hudson.RelativePath;
import hudson.XmlFile;
import hudson.BulkChange;
import hudson.Util;
import hudson.model.listeners.SaveableListener;
import hudson.util.FormApply;
import hudson.util.ReflectionUtils;
import hudson.util.... |
import org.json.JSONObject;
import java.util.HashMap;
public class Pages {
private ApiConnection apiConnection;
private ApiQuery apiQuery;
/**
* Used to create a new page
* @param queryMap
* @return
*/
public JSONObject createPage(HashMap<String, Object> queryMap) {
this.api... |
package sx.lambda.voxel.world.chunk;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Mesh;
import com.badlogic.gdx.graphics.g3d.Material;
import com.badlogic.gdx.graphics.g3d.Model;
import com.badlogic.gdx.graphics.g3d.ModelBatch;
import com.badlogic.gdx.graphics.g3d.ModelInstance;
import com.ba... |
package com.DroneSimulator;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
import java.awt.event.WindowEvent;
import javax.swing.*;
public class Screen extends JPanel{
private JFrame frame;
private Dimension dim = null;
pr... |
package eu.theunitry.fabula.levels;
import eu.theunitry.fabula.UNGameEngine.graphics.UNGameScreen;
import eu.theunitry.fabula.UNGameEngine.graphics.UNColor;
import eu.theunitry.fabula.UNGameEngine.graphics.UNGraphicsObject;
import eu.theunitry.fabula.UNGameEngine.graphics.UNLevel;
import eu.theunitry.fabula.UNGameEngin... |
package de.htwg.gobang.entities;
public class GameField{
private static final int TokenToWin = 5;
private static final int FieldSize = 19;
private static GameToken[][] matrix;
public GameField(){
matrix = new GameToken[FieldSize][FieldSize];
}
public int getFieldSize(){
return Fi... |
package imj3.draft.processing;
import static imj3.tools.AwtImage2D.awtRead;
import static imj3.tools.CommonSwingTools.limitHeight;
import static imj3.tools.CommonSwingTools.setModel;
import static java.lang.Math.max;
import static java.lang.Math.min;
import static net.sourceforge.aprog.swing.SwingTools.horizontalBox;
i... |
package javafe.reader;
import java.io.*;
import java.util.*;
//import decsrc.util.*;
import javafe.decsrc.ClassFileParser;
import javafe.ast.*;
import javafe.util.*;
import javafe.genericfile.GenericFile;
/**
* Parses the contents of a class file into an AST for the purpose of
* type checking. Ignores components of ... |
// simulate occasional problematic (long blocking) requests for disk IO
import java.net.*;
import java.io.*;
import java.util.*;
class ReadResponse {
public int rc;
public int bytes_read;
public long elapsed_time_ms;
public String file_path;
public ReadResponse(int rc,
int by... |
package com.artifex.mupdf;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.RectF;
import android.net.Uri;
import android.os.AsyncTask;
imp... |
package com.mapswithme.maps;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Rect;
import android.location.Location;
import android.... |
package me.yokeyword.sample;
import android.app.Application;
import me.yokeyword.fragmentation.Fragmentation;
import me.yokeyword.fragmentation.helper.ExceptionHandler;
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
Fragmentation.builder()
... |
package com.mapswithme.maps;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Location;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.NonNull;
im... |
package info.tregmine.lookup;
import java.io.IOException;
import java.net.InetSocketAddress;
//import org.bukkit.ChatColor;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
//import org.bukkit.event.player.PlayerEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerLis... |
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 net.katsuster.ememu.generic;
/**
* SD Card
*
* : SD Specifications Part 1 Physical Layer
* Simplified Specification Version 6.00
* August 29, 2018
*/
public class SDCard extends AbstractParentCore {
public static final int REG_IO = 0x00;
private SDCardState st;
private int blockAddr;
priv... |
package net.argius.stew.ui.window;
import static java.awt.EventQueue.invokeLater;
import static java.awt.event.InputEvent.ALT_DOWN_MASK;
import static java.awt.event.InputEvent.SHIFT_DOWN_MASK;
import static java.awt.event.KeyEvent.VK_C;
import static java.util.Collections.emptyList;
import static java.util.Collections... |
package net.localizethat.tasks;
import java.io.File;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.swing.JButton;
import javax.swing.JTex... |
package VASSAL.build.module.noteswindow;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.beans.PropertyChangeListener;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateForma... |
package net.lucenews.controller;
import java.io.*;
import net.lucenews.*;
import net.lucenews.model.*;
import net.lucenews.model.exception.*;
import net.lucenews.view.*;
import net.lucenews.atom.*;
import java.util.*;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import org.apache.log4j.*;
import org.apache... |
package net.ripe.db.whois.api.whois;
import com.sun.jersey.api.client.UniformInterfaceException;
import com.sun.jersey.api.client.WebResource;
import net.ripe.db.whois.api.AbstractRestClientTest;
import net.ripe.db.whois.api.httpserver.Audience;
import net.ripe.db.whois.common.IntegrationTest;
import net.ripe.db.whois.... |
package ru.ydn.wicket.wicketorientdb.utils;
import org.apache.wicket.util.lang.Objects;
import ru.ydn.wicket.wicketorientdb.OrientDbWebSession;
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
import com.orientechnologies.orient.core.index.OIndex;
import com.orientechnologies.orient.core.metadata... |
package org.apache.xerces.jaxp;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.DOMImplementation;
import org.w3c.dom.DocumentType;
import org.xml... |
package org.exist.xquery.functions.text;
import org.exist.dom.DocumentSet;
import org.exist.dom.NodeSet;
import org.exist.dom.QName;
import org.exist.security.PermissionDeniedException;
import org.exist.util.Occurrences;
import org.exist.xquery.BasicFunction;
import org.exist.xquery.Cardinality;
import org.exist.xquery... |
package imcode.server.parser ;
import java.util.Properties ;
import java.text.SimpleDateFormat ;
import org.apache.oro.text.regex.* ;
import org.apache.log4j.Category;
/** Stores all info about a menuitem **/
public class MenuItem extends Document implements imcode.server.IMCConstants {
private final static String ... |
package org.jaudiotagger.audio.mp4.atom;
import org.jaudiotagger.audio.generic.Utils;
import java.nio.ByteBuffer;
/**
* StsdBox ( sample (frame encoding) description box), holds the Stereo/No of Channels
*
* <p>4 bytes version/flags = byte hex version + 24-bit hex flags
(current = 0)
*
-> 6 bytes reserved = 48-... |
package massim;
import massim.config.TeamConfig;
import massim.protocol.Message;
import massim.protocol.MessageContent;
import massim.protocol.messagecontent.*;
import massim.util.Log;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml... |
// $Id: ClientGmsImpl.java,v 1.14 2004/09/14 13:00:33 belaban Exp $
package org.jgroups.protocols.pbcast;
import org.jgroups.*;
import org.jgroups.protocols.PingRsp;
import org.jgroups.util.Promise;
import org.jgroups.util.Util;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
/**
* C... |
package test.dr.distibutions;
import dr.math.distributions.GammaDistribution;
import dr.math.functionEval.GammaFunction;
import junit.framework.TestCase;
public class GammaDistributionTest extends TestCase{
GammaDistribution gamma;
public void setUp(){
gamma = new GammaDistribution(1.0,1.0);
}
p... |
package org.jmist.framework.measurement;
import org.jmist.framework.Material;
import org.jmist.framework.Medium;
import org.jmist.framework.ScatterRecord;
import org.jmist.framework.SurfacePoint;
import org.jmist.framework.reporting.DummyProgressMonitor;
import org.jmist.framework.reporting.ProgressMonitor;
import org.... |
package org.mtransit.android.commons;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.ListIterator;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import org.mtransit.and... |
package com.jme3.input;
import com.jme3.export.InputCapsule;
import com.jme3.export.JmeExporter;
import com.jme3.export.JmeImporter;
import com.jme3.export.OutputCapsule;
import com.jme3.input.controls.ActionListener;
import com.jme3.input.controls.AnalogListener;
import com.jme3.input.controls.MouseAxisTrigger;
import... |
package org.myrobotlab.service;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Stack;
import org.apache.commons.codec.digest.DigestUtils;
import org.ap... |
package com.jcabi.github.mock;
import com.google.common.collect.Lists;
import com.jcabi.github.Coordinates;
import com.jcabi.github.Language;
import com.jcabi.github.Milestones;
import com.jcabi.github.Repo;
import com.jcabi.github.Repos;
import java.io.IOException;
import javax.json.Json;
import org.hamcrest.MatcherAs... |
package org.objectweb.proactive.ic2d.gui;
import org.objectweb.proactive.ic2d.IC2D;
import org.objectweb.proactive.ic2d.util.IC2DMessageLogger;
import org.objectweb.proactive.ic2d.util.ActiveObjectFilter;
import org.objectweb.proactive.ic2d.gui.ActiveObjectCommunicationRecorder;
import org.objectweb.proactive.ic2d.gui.... |
package com.tagmycode.sdk;
import org.junit.Test;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import static org.junit.Assert.assertEquals;
public class DateParserTest {
@Test
public void parseDate() throws ParseExceptio... |
package org.pentaho.di.job.entries.ftp;
import static org.pentaho.di.job.entry.validator.AndValidator.putValidators;
import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.andValidator;
import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.fileExistsValidator;
import static org.pentah... |
package dk.itu.kelvin.util;
// General utilities
import dk.itu.kelvin.model.Node;
import java.util.Iterator;
// JUnit annotations
import org.junit.Before;
import org.junit.Test;
// JUnit assertions
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.asse... |
package org.pentaho.di.job.entries.job;
import static org.pentaho.di.job.entry.validator.AndValidator.putValidators;
import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.andValidator;
import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.notBlankValidator;
import static org.pentaho.... |
package me.coley.recaf;
import me.coley.recaf.common.JavaFxTest;
import me.coley.recaf.config.impl.ConfDisplay;
import me.coley.recaf.ui.FormatFactory;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.objectweb.asm.tree.*;
import java.util.ArrayList;
import static java.util.Arrays.a... |
package app.musicplayer.model;
import java.io.File;
import java.io.FileInputStream;
import java.nio.file.Paths;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.stream.Collectors;
import javax.x... |
package org.owasp.esapi.codecs;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class CodecTest extends TestCase {
private static final char[] EMPTY_CHAR_ARRAY = new char[0];
private static final Character LESS_THAN = Character.valueOf('<');
private sta... |
package replicant;
import arez.ArezContext;
import arez.Disposable;
import arez.annotations.Action;
import arez.annotations.ContextRef;
import arez.annotations.Observable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.... |
package org.scribe.utils;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
import static org.junit.Assert.*;
public class StreamUtilsTest
{
@Test
public void shouldCorrectlyDecodeAStream()
{
String value = "expected";
InputStream is = new ... |
package replicant;
import arez.Disposable;
import arez.annotations.ArezComponent;
import arez.annotations.Autorun;
import arez.annotations.Observable;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.inject.Singleto... |
package org.zkoss.gridster;
import org.zkoss.bind.annotation.AfterCompose;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.ContextParam;
import org.zkoss.bind.annotation.ContextType;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListen... |
package org.jdesktop.swingx;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.BoxLayout;
import javax.swing.Icon;
import javax.swing.ImageIc... |
package org.jdesktop.swingx;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.InvocationTargetException;
import java.util.Vector;
import java.util.logging.Logger;
import javax.swing.AbstractAction;
import javax.swing.Acti... |
package com.rehivetech.beeeon.gui.activity;
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.animation.AnimatorListenerAdapter;
import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator;
import android.content.SharedPreferences;
import android.os.Bundle;... |
package com.ibm.bi.dml.parser;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import com.ibm.bi.dml.hops.Hops;
import com.ibm.bi.dml.lops.Lops;
import com.ibm.bi.dml.parser.Expression.DataType;
import com.ibm.bi.dml.parser.Express... |
package io.tetrapod.core.registry;
import io.tetrapod.protocol.core.Subscriber;
import java.util.*;
/**
* A data structure to manage a Topic for pub/sub. Topics have an owner, a reference ID, and a list of subscribers. If the same client
* subscribes to the topic multiple times, we increment a reference counter. A su... |
package com.msjBand.kraftscangradle.kraftscan;
import android.content.res.Configuration;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.widget.Drawer... |
package nl.fontys.sofa.limo.view.custom;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.