answer stringlengths 17 10.2M |
|---|
package hudson.plugins.git;
import com.cloudbees.plugins.credentials.CredentialsMatchers;
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.common.StandardCredentials;
import com.cloudbees.plugins.credentials.common.StandardListBoxModel;
import hudson.EnvVars;
import... |
package io.github.bonigarcia.wdm;
import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.Collectio... |
package io.github.classgraph;
import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.lang.annotation.IncompleteAnnotationException;
import java.lang.annotation.Inherited;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.ut... |
package io.github.classgraph;
import java.io.File;
import java.lang.management.ManagementFactory;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import nonapi.io.github.classgraph.utils.JarUtils;
import nonapi.io.github.classgraph.utils.Join;
/**
* Information on ... |
package io.vertx.ext.bridge;
import io.vertx.codegen.annotations.CacheReturn;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.core.Promise;
import io.vertx.core.json.JsonObject;
@VertxGen
public interface BaseBridgeEvent extends Promise<Boolean> {
/**
* @re... |
package javax.time.calendar;
import static javax.time.calendar.ISOPeriodUnit.DAYS;
import static javax.time.calendar.ISOPeriodUnit.HOURS;
import static javax.time.calendar.ISOPeriodUnit.MILLIS;
import static javax.time.calendar.ISOPeriodUnit.MINUTES;
import static javax.time.calendar.ISOPeriodUnit.MONTHS;
import static... |
package net.darkhax.darkutils;
import net.darkhax.bookshelf.client.model.FullbrightBakedModel;
import net.darkhax.bookshelf.registry.RegistryHelper;
import net.darkhax.bookshelf.registry.RegistryHelperClient;
import net.darkhax.darkutils.features.slimecrucible.RenderSlimeCrucible;
import net.darkhax.darkutils.features.... |
package net.malisis.core.util;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import net.malisis.core.block.BoundingBoxType;
import net.malisis.core.block.IBlockDirectional;
import net.malisis.core.block.IBoundingBox;
import net.minecraft.block.Block;
import net.minecraft.util.Ax... |
package net.onrc.onos.core.intent;
import java.util.Collection;
import java.util.EventListener;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map.Entry;
import net.onrc.onos.core.intent.Intent.IntentState;
import net.onrc.onos.core.intent.runtime.IntentStateList;
impo... |
package net.sf.mzmine.desktop.impl;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.io.File;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.LinkedList;
import java.util.Map;
import java.util.logging.Logger;
import javax.swing... |
package net.sf.xenqtt.client;
import java.nio.charset.Charset;
import net.sf.xenqtt.message.ChannelManager;
import net.sf.xenqtt.message.MqttChannelRef;
import net.sf.xenqtt.message.MqttMessage;
import net.sf.xenqtt.message.PubAckMessage;
import net.sf.xenqtt.message.PubMessage;
import net.sf.xenqtt.message.QoS;
/**
*... |
package net.thauvin.erik.httpstatus;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.concurrent.ConcurrentHashMap;
/**
* Populates the {@link #REASON_PHRASES reason phrases} map from {@link #BUNDLE_BASENAME bundle properties}, and
* impleme... |
package nl.dykam.dev.spector;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.b... |
package nl.mpi.kinnate.ui;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.net.URI;
import java.util.ArrayList;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
impor... |
package no.cantara.cs.health;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.net.InetAddress;
import java.net.N... |
package org.encog.ml.bayesian;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.encog.Encog;
import org.encog.app.analyst.script.AnalystClassItem;
import org.encog.ml.bayesian.table.BayesianTable;
import org.encog.util.csv.CSVFormat;
public class BayesianEvent implements Serial... |
package org.jabref.gui.actions;
import java.nio.file.Path;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import javafx.beans.binding.Binding;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.BooleanExpression;
import javafx.collections.ObservableList;
import org.jabref... |
package org.lantern.state;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.Map;
import jav... |
package org.lightmare.utils;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import ja... |
package org.lightmare.utils;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import ja... |
package org.metacsp.utility.UI;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseE... |
package org.minimalj.security;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public abstract class Authorization {
private static Authorization instance;
private static ThreadLocal<Serializable> securityToken = new ThreadLocal<>();
... |
package org.mmog2048.verticles;
import io.vertx.core.*;
import io.vertx.core.json.JsonObject;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import org.mmog2048.utils.MultipleFutures;
import java.util.ArrayList;
import java.util.List;
public class MainVerticle extends AbstractVerticle ... |
package org.processmining.xestools;
import com.google.common.collect.*;
import lombok.Getter;
import lombok.NonNull;
import org.apache.commons.math.stat.descriptive.DescriptiveStatistics;
import org.deckfour.xes.extension.std.XConceptExtension;
import org.deckfour.xes.extension.std.XLifecycleExtension;
import org.deckf... |
package logbook.dto;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.json.JsonArray;
import javax.json.JsonNumber;
import javax.json.JsonObject;
import javax.json.Json... |
package org.usfirst.frc.team4828;
import com.ctre.CANTalon;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.wpilibj.SPI;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.wpilibj.SPI;
import org.usfirst.frc.team4828.Vision.PixyThread;
import org.usfirst.frc.team4828.Vision.Vision;
public class DriveTrai... |
package prm4j.spec;
import static prm4j.Util.intersection;
import static prm4j.Util.isSubset;
import static prm4j.Util.isSuperset;
import static prm4j.Util.isSubsetEq;
import static prm4j.Util.tuple;
import static java.util.Collections.unmodifiableSet;
import java.util.ArrayList;
import java.util.Collections;
import ja... |
package ru.org.linux.topic;
import org.springframework.web.util.UriComponentsBuilder;
import ru.org.linux.comment.CommentFilter;
public class TopicLinkBuilder {
private final Topic topic;
private final int page;
private final boolean showDeleted;
private final boolean lastmod;
private final Integer comment;
... |
package ru.r2cloud.jradio.gomx1;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import ru.r2cloud.jradio.Beacon;
import ru.r2cloud.jradio.csp.Header;
import ru.r2cloud.jradio.fec.ccsds.UncorrectableException;
public class Gomx1Beacon extends Beacon {
private Header ... |
package scrum.client.test;
import ilarkesto.core.scope.Scope;
import ilarkesto.gwt.client.ButtonWidget;
import ilarkesto.gwt.client.DateAndTime;
import ilarkesto.gwt.client.Gwt;
import ilarkesto.gwt.client.TableBuilder;
import java.util.Map;
import scrum.client.ApplicationInfo;
import scrum.client.Dao;
import scrum.cli... |
package seedu.ggist.model.task;
import java.util.Date;
import seedu.ggist.commons.exceptions.IllegalValueException;
/**
* A read-only immutable (except for setting task done) interface for a Task in the task manager.
* Implementations should guarantee: details are present and not null, field values are validated.
*/... |
package seedu.scheduler.logic.parser;
import seedu.scheduler.logic.commands.*;
import seedu.scheduler.commons.util.StringUtil;
import seedu.scheduler.commons.exceptions.IllegalValueException;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static seedu.scheduler.commons.core.M... |
package sizebay.catalog.client.model;
import java.io.Serializable;
import java.util.List;
import lombok.*;
import lombok.experimental.Accessors;
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class Tenant implements Serializable {
private static final long serialVersionUID = 670923421533753589L;
@Non... |
package sizebay.catalog.client.model;
import java.io.Serializable;
import lombok.*;
import lombok.experimental.Accessors;
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class Tenant implements Serializable {
private static final long serialVersionUID = 670923421533753589L;
@NonNull
Long id;
@... |
package sizebay.catalog.client.model;
import java.io.Serializable;
import java.util.List;
import lombok.*;
import lombok.experimental.Accessors;
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class Tenant implements Serializable {
private static final long serialVersionUID = 670923421533753589L;
@Non... |
package think.rpgitems.power.impl;
import org.bukkit.*;
import org.bukkit.block.Block;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.En... |
package wasdev.sample.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import wasdev.sample.functions.*;
/**
* Servl... |
package mars.tools;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import mars.tools.*;
import mars.mips.hardware.*;
/**
* Bitmapp display simulator. It can be run either as a stand-alone Jav... |
package me.ryanhamshire.GriefPrevention;
import java.util.ArrayList;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
//represents a visualization sent to a player
//FEATURE: to show player... |
package ljdp.minechem.api.core;
import static ljdp.minechem.api.core.EnumElement.*;
import java.util.ArrayList;
import java.util.Random;
// Na2OLi2O(SiO2)2(B2O3)3H2O
// MOLECULE IDS MUST BE CONTINIOUS OTHERWISE THE ARRAY WILL BE MISALIGNED.
public enum EnumMolecule {
cellulose(0, "Cellulose", new Element(C, 6), new... |
package net.sourceforge.cilib.problem.dataset;
import java.io.InputStream;
/**
* This interface provides an abstraction for accessing data sets. The underlying data
* set can be accessed using either an <code>InputStream</code> or a <code>byte[]</code>
*
* @author Edwin Peer
*
*/
public abstract class DataSet {
... |
package net.tetrisconcept.poochy.nullpomino.ai;
import mu.nu.nullpo.game.component.Controller;
import mu.nu.nullpo.game.component.Field;
import mu.nu.nullpo.game.component.Piece;
import mu.nu.nullpo.game.play.GameEngine;
import mu.nu.nullpo.game.play.GameManager;
import mu.nu.nullpo.game.subsystem.ai.DummyAI;
import or... |
package nl.sense_os.commonsense.server;
import java.io.IOException;
import java.util.List;
import java.util.logging.Logger;
import javax.jdo.JDOFatalUserException;
import javax.jdo.PersistenceManager;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... |
package org.bouncycastle.crypto.engines;
import org.bouncycastle.crypto.AsymmetricBlockCipher;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.DataLengthException;
import org.bouncycastle.crypto.params.ElGamalKeyParameters;
import org.bouncycastle.crypto.params.ElGamalPrivateKeyParameter... |
package org.ensembl.healthcheck;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang.StringUtils;
import org.... |
package org.ensembl.healthcheck.testcase.generic;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.ensembl.healthcheck.AssemblyNameInfo;
import org.ensembl.healthcheck.DatabaseRegistryEntry;
import org.ensembl.he... |
package controllers;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import models.MavenDependency;
import models.Upload;
import m... |
package micromod.tracker;
/* A simple command-line "tracker" for Protracker MOD files. */
public class Tracker {
public static void main( String[] args ) throws java.io.IOException {
if( args.length > 0 ) {
java.io.File inputFile = new java.io.File( args[ 0 ] );
if( args.length > 1 )... |
package org.kwstudios.play.ragemode.scores;
import java.util.HashMap;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.kwstudios.play.ragemode.gameLogic.PlayerList;
import org.kwstudios.play.ragemode.scoreboard.ScoreBoard;
import org.kwstudios.pla... |
package org.mockito.runners;
import java.lang.reflect.InvocationTargetException;
import org.junit.runner.Description;
import org.junit.runner.Runner;
import org.junit.runner.manipulation.Filter;
import org.junit.runner.manipulation.Filterable;
import org.junit.runner.manipulation.NoTestsRemainException;
import org.juni... |
package models;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class DataciteRecord {
public String doi = null;
public String identifier = null;
public Set<Pair<String, String>> creators = new HashSet<Pair<String, String>>();
public List<Pair<St... |
/*
*
* Adafruit16CServoDriver
*
*/
package org.myrobotlab.service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import org.myrobotlab.framework.Service;
import o... |
package org.nschmidt.ldparteditor.data;
import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.ProgressMonito... |
package org.usfirst.frc.team1699.robot.commands;
import org.usfirst.frc.team1699.utils.command.Command;
import org.usfirst.frc.team1699.utils.drive.TimeControlledMotor;
import org.usfirst.frc.team1699.utils.drive.XboxController;
import edu.wpi.first.wpilibj.SpeedController;
public class Auger extends Command {
priv... |
package com.Ryan.Calculator;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import java.math.BigInteger;
public class Ma... |
package com.samourai.wallet;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bund... |
package de.htwdd.htwdresden;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import androidx.annotation.IdRes;
import androidx.annotation.Nullable;
import com.google.android.material.navigation.NavigationView;
import androidx.fragment.ap... |
package lt.vilnius.tvarkau;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.Toolbar;
import android.text.method.LinkMovementMethod;
import android.text.util.Link... |
package net.erabbit.bluetooth;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import android.os.Handler;
import java.io.Serializable;
import java.util.UUID;
public abstract class BaseDevice implements Serializable {
public static int msgReady = 0;
public static int msgConnectFailed = ... |
package net.privacylayer.app;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.util.Base64;
import android.util.Log;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.GeneralSecurityException;
import java.security.InvalidAlg... |
package swift.test.microbenchmark;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
import java.util.concurrent.Semaphore;
import java.util.logging.Logger;
import swift.client.SwiftImpl;
... |
package com.autonomy.abc.config;
import com.autonomy.abc.framework.TestState;
import com.autonomy.abc.framework.rules.StateHelperRule;
import com.autonomy.abc.framework.rules.TestArtifactRule;
import com.autonomy.abc.framework.statements.StatementArtifactHandler;
import com.autonomy.abc.framework.statements.StatementLo... |
package com.seifernet.wissen;
import static org.assertj.core.api.Assertions.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
... |
package com.turn.ttorrent.client;
import com.turn.ttorrent.TempFiles;
import com.turn.ttorrent.WaitFor;
import com.turn.ttorrent.client.peer.SharingPeer;
import com.turn.ttorrent.common.Torrent;
import com.turn.ttorrent.tracker.TrackedPeer;
import com.turn.ttorrent.tracker.TrackedTorrent;
import com.turn.ttorrent.track... |
package com.vrg;
import org.junit.Test;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* Tests for a MembershipView backed by a WatermarkBuffer.
*/
public class M... |
import com.saucelabs.common.SauceOnDemandAuthentication;
import com.saucelabs.common.SauceOnDemandSessionIdProvider;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
... |
package mho.qbar.objects;
import mho.wheels.iterables.ExhaustiveProvider;
import mho.wheels.iterables.RandomProvider;
import mho.wheels.math.Combinatorics;
import mho.wheels.math.MathUtils;
import mho.wheels.misc.BigDecimalUtils;
import mho.wheels.misc.FloatUtils;
import mho.wheels.misc.Readers;
import mho.wheels.order... |
package moe.tristan.easyfxml.util;
import org.junit.Test;
import org.testfx.framework.junit.ApplicationTest;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import java... |
package net.jodah.failsafe;
import static net.jodah.failsafe.Asserts.assertThrows;
import static net.jodah.failsafe.Testing.failures;
import static net.jodah.failsafe.Testing.ignoreExceptions;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
imp... |
package org.redisson;
import org.junit.Assert;
import org.junit.Test;
import org.redisson.core.RAtomicLong;
public class RedissonAtomicLongTest extends BaseTest {
@Test
public void testCompareAndSetZero() {
RAtomicLong al = redisson.getAtomicLong("test");
Assert.assertTrue(al.compareAndSet(0, 2)... |
package net.sf.samtools;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.io.File;
import static org.testng.Assert.*;
/**
* Test BAM file index creation
*/
public class BAMIndexWriterTest
{
// Two input files
private final String BAM_FILE_LOCATION = "testdata/net/sf/samtools/BAMFileIn... |
package de.fhws.tutorium.ss17.tut11;
public class YYThread {
public void execute()
{
Thread t = new Thread(new Runnable() {
@Override
public void run() {
PrintLoop("Yang");
}
});
t.start();
PrintLoop("Yin");
}
public void... |
package cn.cerc.mis.ado;
import java.lang.reflect.Field;
import javax.persistence.Column;
import cn.cerc.core.DataRow;
import cn.cerc.core.DataRowState;
import cn.cerc.core.DataSet;
import cn.cerc.core.FieldMeta;
import cn.cerc.core.FieldMeta.FieldKind;
import cn.cerc.core.Utils;
import cn.cerc.db.core.IHandle;
import ... |
package utils;
import models.Attachment;
import models.enumeration.ResourceType;
import models.resource.Resource;
import play.cache.Cache;
import java.util.List;
/**
* Utility for caching attachments in a container {@link models.resource.Resource}.
*
* The key is made by the name of the type of the Resource and Reso... |
package org.treetank.sessionlayer;
import java.io.File;
import junit.framework.TestCase;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.treetank.api.IReadTransaction;
import org.treetank.api.ISession;
import org.treetank.api.IWriteTransaction;
import org.treetank.utils.TestDocument;... |
package hudson.tasks;
import hudson.matrix.Axis;
import hudson.matrix.AxisList;
import hudson.matrix.MatrixProject;
import hudson.model.AbstractProject;
import hudson.model.Fingerprint;
import hudson.model.FreeStyleBuild;
import hudson.model.FreeStyleProject;
import hudson.model.Hudson;
import hudson.model.Result;
impo... |
package com.sapienter.jbilling.server.user;
import com.sapienter.jbilling.common.SessionInternalError;
import com.sapienter.jbilling.common.Util;
import com.sapienter.jbilling.server.entity.AchDTO;
import com.sapienter.jbilling.server.entity.CreditCardDTO;
import com.sapienter.jbilling.server.entity.PaymentInfoChequeDT... |
package org.ossnipes.snipes.bot;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.ossnipes.snipes.lib.events.Event;
import org.ossnipes.snipes.lib.events.EventArgs;
import org.ossnipes.snipes.lib.events.IRCBase;
/**
* ... |
import java.util.*;
public static void main(String[] a)
{
System.out.println("hi my name is pratik");
} |
package com.intellij.openapi.util.text;
import com.intellij.openapi.util.NlsSafe;
import com.intellij.util.containers.UnmodifiableHashMap;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import java.util.... |
package net.java.html.charts;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.glass.ui.Window;
import java.io.Closeable;
import java.util.ArrayList;
import java.util.Date;
import java.uti... |
package se.ericthelin.fractions;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
public class FractionTest {
@Test(expected = NullPointerException.class)
public void rejectsNullText() {
Fraction.of(null);
}
@Test
public void rejectsTextWit... |
/*
* $Id: TestMetadataManager.java,v 1.8 2014-09-17 22:46:11 pgust Exp $
*/
package org.lockss.metadata;
import static org.lockss.db.SqlConstants.*;
import static org.lockss.metadata.MetadataManager.*;
import java.io.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import j... |
package net.ontopia.presto.jaxrs;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import net.on... |
package arez.processor;
import com.squareup.javapoet.AnnotationSpec;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.ParameterSpec;
import com.squareup.javapoet.ParameterizedType... |
package arez.processor;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.TypeSpec;
import java.util.List;
import java.util.Objects;
import j... |
package org.jscsi.core.util;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.log4j.Logger;
public class NamedThreadFactory implements ThreadFactory
{
private static Logger _logger = Logger.getLogger(NamedThreadFactory.class);
protected String name;
... |
// $Id: ArrayUtil.java,v 1.21 2002/12/05 22:11:03 shaper Exp $
// samskivert library - useful routines for java programs
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY... |
package com.nordnetab.chcp;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;
import com.github.nkzawa.emitter.Emitter;
import com.github.nkzawa.socketio.client... |
package de.newsarea.homecockpit.fsuipc.example.net;
import com.esotericsoftware.kryonet.Client;
import com.esotericsoftware.kryonet.Connection;
import com.esotericsoftware.kryonet.Listener;
import de.newsarea.homecockpit.fsuipc.FSUIPCInterface;
import de.newsarea.homecockpit.fsuipc.domain.ByteArray;
import de.newsarea.... |
package org.fao.fenix.commons.msd.dto.full;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.fao.fenix.commons.annotations.Description;
import org.fao.fenix.commons.annotations.Label;
import org.fao.fenix.commons.msd.dto.JSONEntity;
import org.fao.fenix.commons.msd.dto.type.ConfidentialityStatus;
import... |
package org.opendaylight.netvirt.fibmanager.shell;
import java.io.PrintStream;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;
import java.util.Locale;
import org.apache.karaf.shell.commands.Argument;
import org.apache... |
package org.asciidoctor.diagram.ditaa;
import org.asciidoctor.diagram.*;
import org.stathissideris.ascii2image.core.ConversionOptions;
import org.stathissideris.ascii2image.graphics.BitmapRenderer;
import org.stathissideris.ascii2image.text.TextGrid;
import javax.imageio.ImageIO;
import javax.imageio.stream.MemoryCache... |
package org.fedorahosted.flies.rest.service;
import java.io.InputStream;
import java.net.URI;
import java.util.Set;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs... |
package gobblin.compaction.mapreduce.avro;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.avro.Schema;
import org.apache.commons.codec.binary.Base64;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.lib.input.Combi... |
package uk.ac.ebi.spot.goci.model;
/**
* Javadocs go here!
*
* @author Tony Burdett
* @date 20/02/15
*/
public enum CatalogHeaderBinding {
ID("ID", false, false, false),
CATALOG_ADDED_DATE("CATALOG_ADDED_DATE", "DATE ADDED TO CATALOG", "DATE ADDED TO CATALOG", false, true),
PUBMED_ID("PUBMED_ID", "PUBM... |
package com.peterphi.std.guice.thymeleaf;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.name.Named;
import com.peterphi.std.threading.Timeout;
import org.thymeleaf.templateresolver.ITemplateResolver;
import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
imp... |
package org.innovateuk.ifs.security;
import org.innovateuk.ifs.security.CsrfTokenService.CsrfUidToken;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.security.web.csrf.CsrfException;
import java.time.Instant;
import java.util.stream.Collectors;
import ... |
package net.honeybadgerlabs.adventurequest;
import android.app.AlarmManager;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.CountDownTimer;
import ... |
package openblocks.common.tileentity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.Set;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import openblocks.common.entity.Entit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.