answer stringlengths 17 10.2M |
|---|
package nom.bdezonia.zorbage.misc;
/**
*
* @author Barry DeZonia
*
*/
public class RealUtils {
private RealUtils() { }
public static boolean near(float f1, float f2, float tol) {
if (tol < 0) throw new IllegalArgumentException("negative tolerance given");
return Math.abs(f1-f2) <= tol;
}... |
package org.aksw.sparqlify.qa.sinks;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import javax.annotation.PostConstruct;
imp... |
package WriterImplementation;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import Exception.DBManagerException;
import Exception.VariableManagerException;
import Model.DatabaseConfig;
import Model.Var... |
package org.apdplat.word.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author
*/
public class WordConfTools {
private ... |
package org.apdplat.word.vector;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import ... |
package org.davidmoten.hilbert;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.BitSet;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.guavamini.annotations.VisibleForTesting;
public final class HilbertCurve {
private final int bits;
private final int d... |
package org.davidmoten.rx.pool;
import java.io.Closeable;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import org.reactivestreams.Subscription;
import com.github.davidmoten.guavamini.Preconditions;
import io.reactivex.Scheduler;
import... |
package org.g_node.micro.commons;
import com.hp.hpl.jena.query.ResultSet;
import com.hp.hpl.jena.query.ResultSetFormatter;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.sparql.util.Context;
import java.io.File;
import java.io.FileNotFoundException;
import ... |
package org.iskycode.jeesky.sys.dao;
import org.hibernate.FlushMode;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.orm.hibernate5.HibernateTemplate;
import or... |
package org.jboss.modules;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.SecureClassLoader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import j... |
package org.jpmml.xgboost;
import java.util.LinkedHashMap;
import java.util.Map;
import org.jpmml.converter.HasOptions;
public interface HasXGBoostOptions extends HasOptions {
String OPTION_BYTE_ORDER = "byte_order";
String OPTION_CHARSET = "charset";
String OPTION_COMPACT = "compact";
String OPTION_NTR... |
package org.lantern.util;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.params.ClientPNames;
import org.apache.http.client.params.CookiePolicy;
import org.apache.http.params.Cor... |
package org.lightmare.utils;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
/**
* Utility class to work with {@link Collecti... |
package org.neo4j.server.osgi;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.felix.framework.Felix;
import org.apache.felix.framework.util.FelixConstants;
import org.apache.felix.main.AutoProcessor;
import org.neo4j.server.loggi... |
package org.osiam.client.query;
import org.osiam.client.exception.InvalidAttributeException;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
/**
* The QueryBuilder provides a fluent api to help building queries against the OSIAM Service.
*/
public class QueryBuilder {
static final private int D... |
package org.pilgrim.hiredintech;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
public class GravityTree
{
static Map<Long, TreeNode> map = new HashMap<>();
public static TreeNode b... |
package org.smoothbuild.vm.compute;
import static com.google.common.base.Preconditions.checkArgument;
import static java.util.Objects.requireNonNull;
import org.smoothbuild.vm.job.algorithm.Output;
public record Computed(Output output, Exception exception, ResSource resSource) {
public Computed(Output output, ResSour... |
package org.spongepowered.api.plugin;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.regex.Pattern;
/**
* An annotation used to describe and mark a Sponge plugin.
*/
@Retention(RetentionP... |
package org.spongepowered.mod;
import net.minecraft.launchwrapper.Launch;
import net.minecraftforge.common.ForgeVersion;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.relauncher.FMLInjectionData;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
import org.spongepowered.asm.mixin.... |
package org.vaadin.maddon.form;
import com.vaadin.ui.AbstractComponentContainer;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.AbstractTextField;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI;
... |
package org.vngx.jsch.userauth;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import org.vngx.jsch.Buffer;
import org.vngx.jsch.Util;
import org.vngx.jsch.algorithm.AlgorithmManager;
import org.vngx.jsc... |
package org.wmaop.bdd.jbehave;
import static org.junit.Assume.assumeThat;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.hamcrest.core.IsNull;
import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.configuration.MostUsefulConfiguration;
... |
package permafrost.tundra.lang;
import com.wm.data.IData;
import com.wm.data.IDataPortable;
import com.wm.data.IDataUtil;
import com.wm.lang.ns.NSNode;
import com.wm.util.Table;
import com.wm.util.coder.IDataCodable;
import com.wm.util.coder.ValuesCodable;
import org.apache.log4j.Level;
import permafrost.tundra.collect... |
package permafrost.tundra.net.uri;
import com.wm.data.IData;
import com.wm.data.IDataCursor;
import com.wm.data.IDataFactory;
import com.wm.data.IDataUtil;
import permafrost.tundra.data.IDataHelper;
import permafrost.tundra.data.transform.Transformer;
import permafrost.tundra.data.transform.net.uri.Decoder;
import perm... |
package permafrost.tundra.tn.route;
import com.wm.app.b2b.server.InvokeState;
import com.wm.app.b2b.server.ServiceException;
import com.wm.app.tn.db.Datastore;
import com.wm.app.tn.db.SQLStatements;
import com.wm.app.tn.db.SQLWrappers;
import com.wm.data.IData;
import permafrost.tundra.lang.Startable;
import permafrost... |
package pitt.search.semanticvectors;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.PostingsEnum;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.Terms;
import org.apache.lucene.index.TermsEnum;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.IO... |
package pl.grzeslowski.jsupla;
import java.util.Collection;
import static java.lang.String.format;
public final class Preconditions {
public static int min(int value, int min) {
if (value < min) {
throw new IllegalArgumentException(format("Given value %s is smaller than minimal value %s!", value... |
package rinde.logistics.pdptw.mas;
import static com.google.common.collect.Lists.newArrayList;
import static com.google.common.collect.Maps.newLinkedHashMap;
import static rinde.sim.util.StochasticSuppliers.constant;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import ja... |
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 us.mcthemeparks.voiceplus;
import co.aikar.commands.ACF;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.IOException;
@SuppressWarnings({"unused", "deprecated"})
public class VoicePlus extends JavaPlugin {
public static VoicePlus instance;
@Override
public void onEnable() {
instance... |
package valandur.webapi.servlet;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.spongepowered.api.Platform;
import org.spongepowered.api.Server;
import org.spongepowered.api.Sponge;
import ... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import com.yahoo.vespa.flags.custom.PreprovisionCapacity;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import static com.yahoo.vespa.flags.FetchVector.Dimension.APPLICATION_ID;
import... |
package org.smoothbuild.lang.type;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.quackery.Case.newCase;
import static org.quackery.Suite.suite;
import static org.smoothbuild.util.Lists.list;
import static org.testory... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import java.... |
package org.smoothbuild.lang.type;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;
import static org.smoothbuild.lang.type.Conversions.canConvert;
import static org.smoothbuild.lang.type... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import stati... |
package edu.mit.csail.uid;
import edu.mit.csail.uid.sikuli_test.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.util.*;
import java.text.MessageFormat;
import javax.swing.*;
import javax.swing.text.*... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import stati... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import stati... |
package org.objectweb.proactive.core.util;
import java.security.SecureRandom;
/**
* Provides an easy to get a random values for a SecureRandom PRNG
*
* A single PRNG is shared for the whole ProActive Runtime.
*
* @see SecureRandom
*/
public class ProActiveRandom {
static private SecureRandom prng = new Secure... |
package client.controllers;
import common.data.Budget;
import common.data.Payment;
import common.data.Settlement;
import common.data.User;
import client.BudgetExporter;
import client.view.Alerts;
import client.windows.AddParticipantsWindow;
import client.windows.AddPaymentWindow;
import client.windows.ParticipantDetail... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import com.yahoo.vespa.flags.custom.PreprovisionCapacity;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import static com.yahoo.vespa.flags.FetchVector.Dimension.APPLICATION_ID;
import... |
package ch.unizh.ini.jaer.projects.npp;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.tensorflow.DataType;
import org.tensorflow.Graph;
import org.tensorflow.Output;
import org.tensorflow.SavedModelBundle;
import org.tensorflow.Session;
import org.tensorflow.Tensor... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import com.yahoo.vespa.flags.custom.PreprovisionCapacity;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import static com.yahoo.vespa.flags.FetchVector.Dimension.APPLICATION_ID;
import... |
package org.mwc.debrief.core;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.dynamichelpers.IExtensionChangeHandler;
import org.eclipse.jface.action.IAction;
import org.e... |
package com.yahoo.vespa.flags;
import com.yahoo.component.Vtag;
import com.yahoo.vespa.defaults.Defaults;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Optional;
import java.util.TreeMap;
import java.... |
package org.intermine.web;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
/**
* A template query, which consists of a PathQuery, description, category,
* short name.
*
* @author Mark Woodbridge
* @author Thomas Riley
*/
public class Te... |
package org.spoofax.jsglr;
import java.io.IOException;
import java.util.ArrayList;
public class ParserHistory {
private final static int MAX_SIZE_NEW_LINE_POINTS = 150;
private final static int MIN_SIZE_NEW_LINE_POINTS = 50;
private IndentationHandler indentHandler;
private ArrayList<IndentInfo> newLine... |
package org.intermine.web;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import org.intermine.metadata.Model;
import org.intermine.objectstore.query.ResultsInfo;
import org.intermine.objectstore.query.BagConstraint;
import org.intermi... |
// OMETiffReader.java
package loci.formats.in;
import java.io.File;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
import loci.common.Location;
import loci.common.RandomAccessInputStream;
import loci.for... |
package gov.nih.nci.gss.api;
import gov.nih.nci.gss.domain.DataService;
import gov.nih.nci.gss.domain.DataServiceGroup;
import gov.nih.nci.gss.domain.DomainClass;
import gov.nih.nci.gss.domain.DomainModel;
import gov.nih.nci.gss.domain.GridService;
import gov.nih.nci.gss.domain.HostingCenter;
import gov.nih.nci.gss.dom... |
package jadx.core.utils;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Collection;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List... |
package org.karmaexchange.util;
import java.io.UnsupportedEncodingException;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMe... |
package org.wyona.yanel.servlet;
import java.io.File;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.URL;
import java.util.Enumeration;
import javax.s... |
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.jgroups.blocks;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.ChannelException;
import org.jgroups.MembershipListener;
import org.jgroups.View;
import org.jgroups.Address;
import org.jgroups.blocks.VotingAdapter.FailureVoteResult;
import org.jgroups.... |
package org.ccnx.ccn.impl.repo;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import org.ccnx.ccn.CCNHandle;
import org.ccnx.ccn.config.ConfigurationException;
import org.ccnx.ccn.profiles.nameenum.NameEnumerationResponse;
import org.ccnx.ccn.protocol.ContentName;
import org.ccnx.ccn.prot... |
package com.bot.babyfoodplanner.model;
import android.content.Context;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
imp... |
package com.chariotsolutions.nfc.plugin;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentFilter.MalformedMimeTypeException;
import android.nfc.*;
import android.nfc.tech.Ndef;
import android.nfc.tech.NdefForm... |
package com.digi.xbee.api.packet;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import com.digi.xbee.api.exceptions.InvalidPacketException;
import com.digi.xbee.api.models.ATCommandStatus;
import com.digi.xbee.api.models.SpecialByte;
import com.digi.xbee.api.models.XBee16BitAddress;
imp... |
package com.ecyrd.jspwiki.ui.admin.beans;
import java.util.Date;
import javax.management.NotCompliantMBeanException;
import javax.servlet.http.HttpServletRequest;
import com.ecyrd.jspwiki.WikiContext;
import com.ecyrd.jspwiki.WikiEngine;
import com.ecyrd.jspwiki.WikiSession;
import com.ecyrd.jspwiki.auth.NoSuchPrincipa... |
package com.example.basiccameraapp;
import java.util.HashMap;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.graphics.Bitmap;
... |
package info.u_team.u_team_core.api.gui;
import com.mojang.blaze3d.matrix.MatrixStack;
import info.u_team.u_team_core.util.RGBA;
import net.minecraft.util.text.ITextComponent;
public interface ITextProvider {
ITextComponent getCurrentText();
RGBA getCurrentTextColor(MatrixStack matrixStack, int mouseX, int mous... |
package davenkin.wanghushengri.about;
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.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework... |
/*
* LocationLogger.java
*
* Simple class to record obtained locations in external
* storage (usually SD card) for debugging/testing purposes
*
*/
package com.incidentlocator.client;
import android.content.Context;
import android.util.Log;
import android.os.Environment;
import java.io.File;
import java.io.FileWri... |
package com.itboye.banma.welcome;
import org.json.JSONException;
import org.json.JSONObject;
import com.android.volley.VolleyError;
import com.itboye.banma.R;
import com.itboye.banma.activities.HomePageActivity;
import com.itboye.banma.api.StrUIDataListener;
import com.itboye.banma.api.StrVolleyInterface;
import com.it... |
package com.robrua.orianna.api.core;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.robrua.orianna.api.Utils;
import com.robrua.orianna.api.dto.BaseRiotAP... |
package de.unipaderborn.visuflow.ui.graph;
import static de.unipaderborn.visuflow.model.DataModel.EA_TOPIC_DATA_FILTER_GRAPH;
import static de.unipaderborn.visuflow.model.DataModel.EA_TOPIC_DATA_MODEL_CHANGED;
import static de.unipaderborn.visuflow.model.DataModel.EA_TOPIC_DATA_SELECTION;
import static de.unipaderborn.... |
package com.vav.CTCI.Common.LinkedList;
public class LinkedList<T> {
private Link head;
public LinkedList(){
head=null;
}
public void insertAtEnd(T data){
Link<T> node = new Link(data);
node.setNext(null);
if(head==null){
head = node;
return;
... |
package me.nallar.patched.world;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import com.google.common.collect.ImmutableSetMultimap;
import javassist.is.faulty.ThreadLocals;
import me.nallar.tickthreading.Log;
import me.nallar.tickthreadi... |
package org.ow2.proactive.scripting;
import java.io.*;
import java.net.URL;
import java.util.Map;
import java.util.Map.Entry;
import javax.script.Bindings;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import org.ap... |
package hudson.tools;
import hudson.DescriptorExtensionList;
import hudson.Extension;
import hudson.model.Descriptor;
import hudson.model.Hudson;
import hudson.model.Node;
import hudson.slaves.NodeProperty;
import hudson.slaves.NodePropertyDescriptor;
import org.kohsuke.stapler.DataBoundConstructor;
import java.util.Ar... |
package com.intuit.karate.ui;
import com.intuit.karate.ScriptValue;
/**
*
* @author pthomas3
*/
public class Var {
private final String name;
private final ScriptValue value;
public Var(String name, ScriptValue value) {
this.name = name;
this.value = value == null ? ScriptValue.NULL : val... |
package redradishes.decoder.parser;
import java.nio.ByteBuffer;
import java.nio.charset.CharsetDecoder;
import java.util.function.Function;
import java.util.function.LongFunction;
public abstract class LongParser {
static final LongParser PARSER = new LongParser() {
@Override
<T> T parse(ByteBuffer buffer, Lo... |
package net.sourceforge.texlipse.viewer;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Map;
import java.util.Properties;
import net.sourceforge.texlipse.DDEClient;
import net.sourceforge.texlipse.PathUtils;
import net.sourceforge.texlipse.Selec... |
package io.undertow.test;
import java.io.IOException;
import java.io.InputStream;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.channels.Channel;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import io.undertow.server.HttpCompletionHandler;
import io.undertow.se... |
package com.exedio.cope.pattern;
import java.io.IOException;
import java.util.Date;
import com.exedio.cope.DataAttribute;
import com.exedio.cope.StringAttribute;
import com.exedio.cope.TestmodelTest;
import com.exedio.cope.testmodel.HttpEntityItem;
public class HttpEntityTest extends TestmodelTest
{
// TODO test va... |
package imagej.updater.ui;
import imagej.updater.core.Conflicts;
import imagej.updater.core.Conflicts.Conflict;
import imagej.updater.core.Dependency;
import imagej.updater.core.FileObject;
import imagej.updater.core.FileObject.Action;
import imagej.updater.core.FileObject.Status;
import imagej.updater.core.FilesCollec... |
package jp.co.nohana.albums;
import android.database.Cursor;
import android.os.Environment;
import android.os.Parcel;
import android.os.Parcelable;
import android.provider.MediaStore;
/**
* Wrapper object of the bucket id that represents device album folder as identifiable.
* @author KeithYokoma
* @since 1.0.0
* @v... |
package com.thindeck.dynamo;
import com.jcabi.dynamo.Attributes;
import com.jcabi.dynamo.Region;
import com.jcabi.dynamo.Table;
import com.jcabi.dynamo.mock.H2Data;
import com.jcabi.dynamo.mock.MkRegion;
import com.thindeck.api.Repo;
import com.thindeck.api.Task;
import com.thindeck.api.mock.MkRepo;
import java.io.IOEx... |
package gpio.example;
import gpio.BeagleboneGPio;
import gpio.BeagleboneGpioFactory;
import gpio.Gpio;
import gpio.PwmOutputPin;
import java.io.IOException;
/**
* Test program that fades the P9_14 output ten times.
* @author Koert Zeilstra
*/
public class FadeRgb {
private Gpio gpio = new Gpio(new BeagleboneGpio... |
package integrationTests.loops;
import org.junit.*;
import integrationTests.*;
public final class WhileStatementsTest extends CoverageTest
{
WhileStatements tested;
@Test
public void whileBlockInSeparateLines()
{
tested.whileBlockInSeparateLines();
assertLines(7, 12, 4);
assertLine(7, 1, 1... |
package edu.kit.informatik.list;
/**
* Implements a sorted double connected list
*
* @author JoseNote
*
* @param <T> A class that implements the interface {@linkplain Comparable}
* @version 1.00
*/
public class LinkedSortedAppendList<T extends Comparable<T>> implements SortedAppendList<T> {
/**
* Repres... |
package edu.rutgers.css.Rutgers.auxiliary;
import java.util.List;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import edu.rutgers.css.Rutgers2.R;
/... |
package org.jasig.portal.tools.checks;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jasig.portal.spring.PortalApplicationContextFacade;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanNotOfRequiredTypeException;
import org.... |
package edu.ucsb.cs56.w14.drawings.dcoffill;
import javax.swing.*;
/** SimpleGui1 comes from Head First Java 2nd Edition p. 355.
It illustrates a simple GUI with a Button that doesn't do anything yet.
@author Head First Java, 2nd Edition p. 355
@author P. Conrad (who only typed it in and added the Javad... |
package org.jfree.chart.renderer.xy;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import org.jfree.chart.axis.ValueAxis;
im... |
package edu.wustl.xipHost.hostControl;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;... |
package org.altbeacon.bluetooth;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.TaskStackBuilder;
import android.app.job.JobScheduler;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothManager;
import androi... |
package com.kennyc.bottomsheet;
import android.app.Dialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Resources;
import android.content.res.TypedArray;
im... |
package com.oasisfeng.condom;
import android.app.Application;
import android.content.ComponentCallbacks;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.content.ServiceConne... |
package net.jjc1138.android.scrobbler;
import java.net.URLEncoder;
import java.text.ChoiceFormat;
import java.text.MessageFormat;
import android.app.Activity;
import android.app.NotificationManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.conte... |
package net.mcft.copy.betterstorage.item;
import java.util.List;
import net.mcft.copy.betterstorage.Config;
import net.mcft.copy.betterstorage.block.tileentity.TileEntityBackpack;
import net.mcft.copy.betterstorage.client.model.ModelBackpackArmor;
import net.mcft.copy.betterstorage.container.ContainerBetterStorage;
imp... |
package nu.validator.checker;
import com.cybozu.labs.langdetect.Detector;
import com.cybozu.labs.langdetect.DetectorFactory;
import com.cybozu.labs.langdetect.LangDetectException;
import com.cybozu.labs.langdetect.Language;
import com.ibm.icu.util.ULocale;
import io.mola.galimatias.GalimatiasParseException;
import io.m... |
package org.app.material;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
import android.graphics.BitmapFactory;
import android.graphics.PorterDuff;
import android.graphics.Typeface;
imp... |
package de.eightbitboy.ecorealms.map;
public class Map {
private int sizeX;
private int sizeY;
private MapEntity[] entities;
public Map(int sizeX, int sizeY) {
this.sizeX = sizeX;
this.sizeY = sizeY;
initialize();
}
public int getSizeX() {
return this.sizeX;
}... |
package org.ensembl.healthcheck.eg_gui;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.HashMap;
import javax.swing.Action;
import javax.swing.JComponent;
import javax.swing.JPopupMenu;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.text.DefaultEdi... |
package org.ensembl.healthcheck.testcase.generic;
import java.sql.Connection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.ensembl.healthcheck.AssemblyNameInfo;
import org.ensembl.healthcheck.DatabaseRegistryEntry;
import org.ensembl.healthcheck.ReportManager;
import org.ensembl.healthchec... |
package org.griphyn.cPlanner.common;
import org.griphyn.cPlanner.classes.NameValue;
import org.griphyn.common.catalog.transformation.TCMode;
import org.griphyn.common.util.VDSProperties;
import org.griphyn.common.util.Boolean;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.... |
package org.griphyn.cPlanner.transfer.refiner;
import org.griphyn.cPlanner.classes.ADag;
import org.griphyn.cPlanner.classes.SubInfo;
import org.griphyn.cPlanner.classes.FileTransfer;
import org.griphyn.cPlanner.classes.PlannerOptions;
import org.griphyn.cPlanner.common.PegasusProperties;
import org.griphyn.cPlanner.co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.