answer stringlengths 17 10.2M |
|---|
package rinde.logistics.pdptw.mas;
import static com.google.common.base.Preconditions.checkState;
import java.util.Set;
import javax.annotation.Nullable;
import rinde.logistics.pdptw.mas.comm.Communicator;
import rinde.logistics.pdptw.mas.comm.Communicator.CommunicatorEventType;
import rinde.logistics.pdptw.mas.route.R... |
package tars.commons.util;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import tars.commons.exceptions.IllegalValueException;
import tars.commons.flags.Flag;
/... |
package ui.components;
import javafx.application.Platform;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCodeCombination;
import javafx.scene.input.KeyCombination;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import prefs.Preferences;
import util.DialogMessage;
i... |
package ui.components;
import javafx.scene.input.KeyCode;
import javafx.scene.input.MouseButton;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import static ui.components.KeyboardShortcuts.FIRST_ISSUE;
import static ui.components.KeyboardShortcuts.LAST_ISSUE;
import java.util.Optio... |
package roart.controller;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedHashMap;
import ... |
package mondrian.rolap.aggmatcher;
import mondrian.olap.MondrianDef;
import mondrian.rolap.RolapAggregator;
import mondrian.rolap.RolapStar;
import mondrian.resource.MondrianResource;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.sql.*;... |
package io.rouz.task;
import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.NotSerializableException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import io.rouz.task.dsl.TaskBuilder.F0;
import stat... |
package net.nanase.nanasetter.utils;
import netscape.javascript.JSObject;
import java.util.Optional;
import java.util.function.Consumer;
/**
* JSObject
*
* @author Tomona Nanase
* @since Nanasetter 0.1
*/
public class JSOUtils {
private final JSObject jsObject;
/**
* JSObject
*
* @param jsOb... |
package org.codehaus.xfire.util;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.util.HashMap;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamC... |
package ca.sfu.server;
import java.io.IOException;
import java.util.ArrayList;
import ca.sfu.cmpt431.facility.Board;
import ca.sfu.cmpt431.facility.BoardOperation;
import ca.sfu.cmpt431.facility.Comrade;
import ca.sfu.cmpt431.facility.Outfits;
import ca.sfu.cmpt431.message.Message;
import ca.sfu.cmpt431.message.Message... |
package injection;
import java.io.*;
import java.util.*;
import java.lang.reflect.Modifier;
/**
* Implements a modifying java parser.
* This means, the input stream is continuesly written
* into an output stream, and may be modified before writing.
*
* The parser recognizes java meta information only,
* which is ... |
package org.nio4r;
import java.util.Iterator;
import java.io.IOException;
import java.nio.channels.Channel;
import java.nio.channels.SocketChannel;
import java.nio.channels.SelectableChannel;
import java.nio.channels.SelectionKey;
import org.jruby.Ruby;
import org.jruby.RubyModule;
import org.jruby.RubyClass;
import or... |
package mx.essentialab.parkingfinder;
import org.json.JSONObject;
import android.app.ProgressDialog;
import android.location.Location;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.Menu;
import android.widget.Toast;
import com.android.volley.Defa... |
package net.bolbat.utils.reflect.proxy;
import static net.bolbat.utils.lang.Validations.checkArgument;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import net.bolbat.utils.lang.CastUtils;
/**
* {@link Proxy} utilities.
... |
package net.lacolaco.smileessence.entity;
import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
@Table(name = "Templates")
public class Template extends Model
{
@Column(name = "Text", notNull = true)
public String text;
@Column(name = "Count")... |
package net.sf.jaer.eventprocessing;
import net.sf.jaer.aemonitor.AEConstants;
import net.sf.jaer.chip.*;
import net.sf.jaer.event.*;
import net.sf.jaer.event.EventPacket;
/**
* A filter that filters or otherwise processes a packet of events.
* <p>
*
* @author tobi
*/
abstract public class EventFilter2D extends Ev... |
package net.sourceforge.android.sdk;
import java.io.IOException;
import android.annotation.SuppressLint;
import android.hardware.Camera;
import android.hardware.Camera.AutoFocusCallback;
import android.hardware.Camera.CameraInfo;
import android.hardware.Camera.Parameters;
import android.hardware.Camera.PreviewCallback;... |
package org.TexasTorque.TexasTorque2013;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Watchdog;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.TexasTorque.TexasTorque2013.autonomous.AutonomousManager;
import org.TexasTorque.TexasTorque2013.io.*;
import org.TexasTorqu... |
package org.adligo.xml.parsers.template;
/**
* Title:
* Description: This class is used to hold the con-tence of a xml template
* file so that it is indexed and stored in RAM.
* For instance if you had a xml file with the following text
*
* <?xml version="1.0"?>
* ... |
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
package org.biojava.bio.seq.db.biosql;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSe... |
package org.gete.android.dorongkotak;
import android.content.Context;
import android.media.MediaPlayer;
/**
* Kelas yang digunakan untuk menangani suara
* dalam game
* @author Adnanto Ahmad Ramadhon
*
*/
public class PemutarSuara {
private static MediaPlayer mMusikSatu;
private static MediaPlayer mMusikDua... |
package org.homelinux.murray.scorekeep;
import java.util.ArrayList;
import org.homelinux.murray.scorekeep.provider.Player;
import org.homelinux.murray.scorekeep.provider.Score;
import android.app.AlertDialog;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
impor... |
package org.lockss.extractor;
import org.apache.commons.collections.MultiMap;
import org.apache.commons.collections.map.MultiValueMap;
import java.io.*;
import org.lockss.daemon.*;
import org.lockss.plugin.*;
import org.lockss.util.*;
/**
* Pulls metadata from a .ris file in the format
* TY - JOUR
* T1 - Article Til... |
package org.opencms.workplace.tools;
import org.opencms.i18n.CmsEncoder;
import org.opencms.jsp.CmsJspActionElement;
import org.opencms.main.OpenCms;
import org.opencms.security.CmsRoleViolationException;
import org.opencms.util.CmsRequestUtil;
import org.opencms.util.CmsStringUtil;
import org.opencms.workplace.CmsDial... |
package org.pentaho.di.core.logging;
import java.util.ArrayList;
import java.util.List;
import org.pentaho.di.core.Const;
import org.pentaho.di.core.Result;
import org.pentaho.di.core.RowMetaAndData;
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.core.row.ValueMetaInterface;
import org.pentaho.... |
// FILE NAME: Hardware.java (Team 339 - Kilroy)
// ABSTRACT:
// This file contains all of the global definitions for the
// hardware objects in the system
// Team 339.
package org.usfirst.frc.team339.Hardware;
import org.usfirst.frc.team339.HardwareInterfaces.IRSensor;
import org.usfirst.frc.team339.HardwareInterfaces.... |
package org.wakatime.netbeans.plugin;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.ArrayList;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
public class Dependencies {... |
package peergos.server.mutable;
import peergos.shared.cbor.*;
import peergos.shared.corenode.*;
import peergos.shared.crypto.hash.*;
import peergos.shared.merklebtree.*;
import peergos.shared.mutable.*;
import peergos.shared.storage.*;
import peergos.shared.user.*;
import java.io.*;
import java.nio.file.*;
import java.... |
package protobuf.core;
import clojure.lang.*;
import ordered_set.core.OrderedSet;
import java.util.*;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.util.concurrent.ConcurrentHashMap;
import java.lang.reflect.InvocationTargetException;
import... |
package jolie.runtime.typing;
import jolie.lang.NativeType;
import jolie.lang.parse.ast.types.BasicTypeDefinition;
import jolie.lang.parse.ast.types.refinements.BasicTypeRefinement;
import jolie.runtime.Value;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ja... |
package org.jpos.iso.channel;
import org.jpos.core.Configuration;
import org.jpos.core.ConfigurationException;
import org.jpos.iso.*;
import org.jpos.iso.header.BASE1Header;
import org.jpos.util.LogEvent;
import org.jpos.util.Logger;
import java.io.IOException;
import java.net.ServerSocket;
/**
* ISOChannel implementa... |
/*
Problem 104: Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node
down to the farthest leaf node.
*/
import java.util.Queue;
import java.util.LinkedList;
import java.util.Stack;
public class MaxDepth {
public cl... |
package ru.waldrus.assertdroid;
import android.view.View;
import android.view.ViewGroup;
public class AssertView extends AssertComponent<AssertView, View> {
private AssertView(View view) {
super(view);
}
public static AssertView assertThat(View view){
return new AssertView(view);
}
p... |
package com.jeroenmols.legofy;
import android.content.Context;
import android.graphics.Bitmap;
/**
* @author Jeroen Mols on 23/04/16.
*/
public class Legofy {
public static final int DEFAULT_AMOUNTOFBRICKS = 20;
public static final int DEFAULT_MAXOUTPUTSIZE = 1080;
public static final int DEFAULT_SCALE = ... |
package roart.ml.dao;
import java.io.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.HashSet;
import roart.common.config.ConfigConstants;
import roart.common.config.MyMyConfig;
import roart.common.ml.NeuralNetConfigs;
import r... |
package org.mongodb.morphia;
import com.mongodb.DB;
import com.mongodb.Mongo;
import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;
import org.junit.After;
import org.junit.Assume;
import org.junit.Before;
import org.mongodb.morphia.mapping.MappedClass;
public abstract class TestBase {
private final Mo... |
package oap.message;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import io.micrometer.core.instrument.Metrics;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import oap.concurrent.ThreadPoolExecutor;
import oap.io.Closeables;
import oap.io.Files;
import oap.json.Binder;
import oap.util.Byt... |
package oap.testng;
import org.testng.annotations.Test;
import static oap.testng.EnvFixture.Scope.CLASS;
import static oap.testng.EnvFixture.Scope.SUITE;
import static org.assertj.core.api.Assertions.assertThat;
public class EnvFixtureTest {
@Test
public void substitute() {
EnvFixture fixture = new EnvF... |
import static kiss.API.*;
// A State can be on or off...
enum State { off, on };
// A Light can receive State messages...
class Light {
String location;
Light(String _location) { location=_location; }
void receive(State state) {
println("light in " + location + " is " + state);
}
}
// A Remote e... |
package org.jfree.chart.renderer.xy;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Polygon;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.entity.EntityCollection;
import org... |
package org.jfree.data.category;
import java.io.Serializable;
import java.util.List;
import org.jfree.data.DefaultKeyedValues2D;
import org.jfree.data.UnknownKeyException;
import org.jfree.data.general.AbstractDataset;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.util.PublicCloneable;
/**
* A def... |
package com.dev.campus.directory;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.dev.campus.CampusUB1App;
import com.dev.campus.R;
import com.dev.campus.SettingsActivity;
import com.dev.campus.directory.Contact.ContactType;
import com.dev.campus.u... |
package com.ctrip.platform.dal.dao;
import com.ctrip.platform.dal.dao.helper.EntityManagerTest.EntityManagerTest;
import com.ctrip.platform.dal.dao.task._AllTests;
import com.mysql.jdbc.DalDefaultStatementInterceptorV2Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.... |
package net.dempsy.util;
import static net.dempsy.util.Functional.chain;
import static net.dempsy.utils.test.ConditionPoll.poll;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util... |
package fi.hu.cs.titokone;
import fi.hu.cs.ttk91.*;
import java.io.File;
import java.io.InputStream;
import java.io.IOException;
import java.text.ParseException;
import java.text.ParseException;
import java.util.ResourceBundle;
import java.util.logging.Logger;
/** Control class offers the extenal interface to titokone.... |
package org.intermine.bio.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.intermine.api.profile.InterMineBag;
import org.intermine.metadata.Model;
import org.intermine.objectstore.ObjectStore;
import org.intermine.objec... |
package aQute.lib.deployer;
import java.io.*;
import java.security.*;
import java.util.*;
import java.util.jar.*;
import java.util.regex.*;
import aQute.bnd.osgi.*;
import aQute.bnd.service.*;
import aQute.bnd.service.repository.SearchableRepository.ResourceDescriptor;
import aQute.bnd.version.*;
import aQute.lib.colle... |
package org.dashj.bls;
import com.google.common.io.BaseEncoding;
import org.junit.Test;
import java.math.BigInteger;
import static org.junit.Assert.*;
public class BlsSignatureTest extends BaseTest {
public static final BaseEncoding HEX = BaseEncoding.base16().lowerCase();
@Test
public void mainTests() {
... |
package com.photoselector.ui;
import java.util.ArrayList;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AbsListView.LayoutParams;
import android.widget.TextView;
import com.phot... |
package de.andreasgiemza.mangadownloader.sites.implementations.englishscanlationgroups;
import de.andreasgiemza.mangadownloader.sites.Site;
import de.andreasgiemza.mangadownloader.sites.extend.FoOlSlide;
import java.util.Arrays;
/**
*
* @author Andreas Giemza <andreas@giemza.net>
*/
public class YuriProject extends ... |
package fr.adrienbrault.idea.symfony2plugin.templating;
import com.intellij.codeInsight.completion.*;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementBuilder;
import com.intellij.codeInsight.lookup.LookupElementPresentation;
import com.intellij.openapi.project.P... |
package io.github.nucleuspowered.nucleus.argumentparsers.selectors;
import io.github.nucleuspowered.nucleus.Util;
import io.github.nucleuspowered.nucleus.internal.interfaces.SelectorParser;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args... |
package org.mtransit.parser.ca_west_coast_express_train;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.mtransit.parser.CleanUtils;
import org.mtransit.parser.DefaultAgencyTools;
import org.mtransit.parser.MTLog;
import org.mtransit.parser.StringUtils;
import org.mtransi... |
package org.project.openbaton.nubomedia.api.openshift.json;
import com.google.gson.JsonElement;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import java.lang.reflect.Type;
public class EnvironmentVariableSerializer implements JsonSerializer<EnviromentVariable> {
@Override
... |
package org.springframework.integration.x.rollover.file.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.x.rollover.file.FileCompressor;
import org.sp... |
package com.yahoo.documentapi;
import com.yahoo.document.Document;
import com.yahoo.document.DocumentId;
import com.yahoo.document.DocumentPut;
import com.yahoo.document.DocumentUpdate;
import com.yahoo.documentapi.messagebus.protocol.DocumentProtocol;
import static com.yahoo.documentapi.DocumentOperationParameters.par... |
package org.ow2.proactive.scheduler.ext.matsci.worker.util;
import java.io.File;
import java.io.IOException;
import java.net.JarURLConnection;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
/**
* MatSciConfigurationParser
*
* @author The ProActive Team
*/
public class MatSci... |
package hr.fer.zemris.vhdllab.applets.main.components.projectexplorer;
import hr.fer.zemris.vhdllab.applets.main.UniformAppletException;
import hr.fer.zemris.vhdllab.applets.main.interfaces.IProjectExplorer;
import hr.fer.zemris.vhdllab.applets.main.interfaces.ProjectContainer;
import hr.fer.zemris.vhdllab.constants.Fi... |
package stsc.news.feedzilla.downloader;
import graef.feedzillajava.Article;
import graef.feedzillajava.Articles;
import graef.feedzillajava.Category;
import graef.feedzillajava.FeedZilla;
import graef.feedzillajava.Subcategory;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import j... |
package io.vertx.ext.web.api.validation.impl;
import io.vertx.ext.web.api.RequestParameter;
import io.vertx.ext.web.api.validation.ValidationException;
import java.util.function.Function;
/**
* @author Francesco Guardiani @slinkydeveloper
*/
public class NumericTypeValidator extends SingleValueParameterTypeValidator<... |
package org.elasticsearch.xpack.ccr.action;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.support.ActionFilters;
import org.elasticsearch.action.support.HandledTransportAction;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.client.Client;
... |
package org.xwiki.test.integration;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
import org.a... |
package master.flame.danmaku.danmaku.model.android;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.text.Layout;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.SpannedString;
import android.text.StaticLayout;
impo... |
package org.onebeartoe.modeling.openscad.test.suite;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.Instant;
import java.... |
package org.fundacionjala.automation.scenario;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import cucumber.api.testng.AbstractTestNGCucumberTests;
@RunWith(Cucumber.class)
@CucumberOptions(features ="src/test/resources/features/admin",
forma... |
package com.hubspot.singularity.scheduler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.concurrent.CancellationExcepti... |
package mcjty.theoneprobe.api;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
/**
* You can implement IProbeInfoAccessor in your blocks or else you can use
* this and register that to the ITheOneProbe. Note that TheOneProbe already
* a... |
package nars.narclear;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import javax.swing.JButton;
import javax.swing.JPanel;
im... |
package uk.ac.ebi.quickgo.annotation.download.header;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.MediaType;
import org.springframework.web.servlet.mvc.method.annotation.Respo... |
package de.fau.amos.virtualledger.android.views.savings.add;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import jav... |
package nodomain.freeyourgadget.gadgetbridge.activities.charts;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.github.mikephil.charting.charts.BarLineChartBase;
import com.github.mikephil.charting.charts.Ch... |
package nodomain.freeyourgadget.gadgetbridge.service.devices.hplus;
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;
import android.util.Log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.Calen... |
package net.sf.mpxj.sample;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import net.sf.mpxj.Duration;
import net.sf.mpxj.ProjectFile;
import net.sf.mpxj.ProjectHeader;
import net.sf.mpxj.Relation;
import net.sf.mpxj.Resource;
import net.sf.mpxj.ResourceAssi... |
package com.aleggeup.confagrid.controller;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.Mockito... |
package com.star.aidldemo;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.os.RemoteCallbackList;
import android.os.RemoteException;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
public class MyService extends S... |
package de.factoryfx.remoteserver;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collection;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.core.... |
package edu.vu.isis.ammo.api;
import android.test.AndroidTestCase;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for AmmoValues API class
*
* Use this class as a template to create new Ammo unit tests
* for classes which use Android-specific componen... |
package sfBugs;
import edu.umd.cs.findbugs.annotations.NoWarning;
public class Bug3384369 {
@NoWarning("RCN")
public static void test1(int[] value, int dataOffset) {
assert (value != null && value.length > dataOffset)
: String.format(
"Value array length %s should be greater than... |
/**
*
* This is the view to place into a layout to implement ormma functionality.
* It can be used either via xml or programatically
*
* It is a subclass of the standard WebView which brings with it all the standard
* functionality as well as the inherent bugs on some os versions.
*
* Webviews have a tendency t... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Objects;
import java.util.stream.IntStream;
import javax... |
package org.bimserver.scenejs;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
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 org.bimserver.emf.IdEObject;
import org.bimserver.i... |
package com.triggertrap.seekarc;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import ... |
package net.hawkengine.core;
import net.hawkengine.core.materialhandler.MaterialTracker;
import net.hawkengine.core.pipelinescheduler.JobAssigner;
import net.hawkengine.core.pipelinescheduler.PipelinePreparer;
import net.hawkengine.core.utilities.DataImporter;
import net.hawkengine.db.redis.RedisManager;
import net.haw... |
package zjava.collection.primitive;
import java.util.Arrays;
import zjava.system.Const;
/**
* Resizable dynamic array of primitive boolean values.
*
* <p>The <tt>size</tt>, <tt>get</tt>, <tt>set</tt> operations run in
* constant time. The <tt>add</tt> operation runs in <i>amortized constant
* time</i>, that is, ad... |
package editor;
import java.awt.event.ActionEvent;
import java.util.ArrayList;
import java.util.List;
import javax.swing.AbstractAction;
import javax.swing.Action;
import page.PersonViewPage;
import ch.openech.client.XmlEditor;
import ch.openech.client.ewk.PersonPanel;
import ch.openech.client.ewk.PersonPanel.PersonPan... |
/**
* For storing and syncing entities with Simperium. To create a bucket you use
* the Simperium.bucket instance method:
*
* // Initialize simperium
* Simperium simperium = new Simperium(...);
* Bucket notesBucket = simperium.bucket("notes", Note.class);
*
* Simperium creates a Bucket instance that is... |
package com.jme3.audio.lwjgl;
import com.jme3.audio.ListenerParam;
import com.jme3.audio.AudioParam;
import com.jme3.audio.AudioBuffer;
import com.jme3.audio.AudioData;
import com.jme3.audio.AudioRenderer;
import com.jme3.audio.AudioNode;
import com.jme3.audio.AudioNode.Status;
import com.jme3.audio.AudioStream;
import... |
package ucar.nc2.iosp.grib;
import ucar.grib.*;
import ucar.grib.grib1.*;
import ucar.grib.grib2.*;
import ucar.unidata.io.RandomAccessFile;
import ucar.nc2.dt.fmrc.ForecastModelRunInventory;
import java.io.*;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
// Name: GribIndexer.pl
// ... |
package de.klimek.spacecurl.game;
import java.util.ArrayList;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import ... |
/**
* Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
package com.microsoft.azure.keyvault.implementation;
import com.microsoft.azure.keyvault.KeyVaultClientBase;
import com.microsoft.azure.keyvault.models.Backu... |
package ucar.nc2.iosp.mcidas;
import ucar.ma2.*;
import ucar.nc2.*;
import ucar.nc2.constants.AxisType;
import ucar.nc2.constants.CF;
import ucar.nc2.constants._Coordinate;
import ucar.nc2.iosp.AbstractIOServiceProvider;
import ucar.nc2.iosp.IOServiceProvider;
import ucar.nc2.util.CancelTask;
import ucar.unidata.io.Ran... |
package selectvoting.system.core;
import java.util.Arrays;
import java.util.Hashtable;
import de.unitrier.infsec.functionalities.digsig.Signer;
import de.unitrier.infsec.functionalities.pkenc.Decryptor;
import de.unitrier.infsec.utils.MessageTools;
import de.unitrier.infsec.utils.Utilities;
import static de.unitrier.in... |
package splash.controller;
import java.awt.event.ActionEvent;
import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.Scene;
import ... |
package com.exedio.cope.instrument;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Arra... |
package be.kuleuven.cs.distrinet.jnome.core.type;
import org.aikodi.chameleon.core.lookup.LookupException;
import org.aikodi.chameleon.oo.type.Type;
import org.aikodi.chameleon.oo.type.TypeFixer;
public interface JavaType extends Type {
/**
* Return the erasure of this type.
*/
/*@
@ public behavior
... |
package fractaldrawings.model;
import java.awt.Graphics;
import java.util.ArrayList;
import javax.swing.JPanel;
/**
*
* @author 41357205
*/
public class DrawingPanel extends JPanel {
private Fractal fractal;
public DrawingPanel(Fractal fractal) {
super();
this.fractal = fractal;
repai... |
package org.fakekoji.api.http.rest;
import io.javalin.apibuilder.EndpointGroup;
import org.fakekoji.core.AccessibleSettings;
import org.fakekoji.core.utils.OToolParser;
import org.fakekoji.functional.Result;
import org.fakekoji.jobmanager.ConfigManager;
import org.fakekoji.jobmanager.JenkinsCliWrapper;
import org.fakek... |
package org.usfirst.frc.team340.robot;
import org.usfirst.frc.team340.robot.commands.ArmStop;
import org.usfirst.frc.team340.robot.commands.ArmToPosition;
import org.usfirst.frc.team340.robot.commands.ArmToZero;
import org.usfirst.frc.team340.robot.commands.CG_Shoot;
import org.usfirst.frc.team340.robot.commands.Climb;... |
package by.vorokhobko;
public class Triangle {
public Point a;
public Point b;
public Point c;
/**
* The constructor of the Triangle with the designation points.
* @param a - a.
* @param b - b.
* @param c - c.
*/
public Triangle(Point a, Point b, Point c) {
this.a = a;
this.b = b;
... |
package com.chatbot;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.chatbot.protobuf.UseCaseOuterClass.Use... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.