answer stringlengths 17 10.2M |
|---|
package info.nightscout.androidaps;
import info.nightscout.androidaps.utils.T;
public class Constants {
public static final String MGDL = "mg/dl"; // This is Nightscout's representation
public static final String MMOL = "mmol";
public static final double MMOLL_TO_MGDL = 18; // 18.0182;
public static fin... |
package cz.muni.fi.crocs.EduHoc;
import static cz.muni.fi.crocs.EduHoc.Main.ANSI_GREEN;
import static cz.muni.fi.crocs.EduHoc.Main.ANSI_RESET;
import cz.muni.fi.crocs.EduHoc.uploadTool.MoteList;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logg... |
package lucee.runtime.type.scope;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import lucee.runtime.PageContext;
import lucee.runtime.config.NullSupportHelper;
import lucee.runtime.dump.DumpData;
import lucee.ru... |
package models.ciphers;
public class Shift extends AbstractCipher implements CipherInterface {
private final String NAME = "Shift Cipher";
private static final String DESC = "A common example of the Shift Cipher is the CAESAR CIPHER. It works by shifting" +
" the characters <x> characters to the right to encryp... |
package org.hisp.dhis.android.core.user;
import android.support.annotation.Nullable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.google.auto.value.AutoValue;
import org.hisp.dhis.android.core.common.BaseIdentifiableObject;
import org... |
package org.honorato.diagnostics;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.databinding.Observable;
import android.databinding.ObservableArrayList;
import android.databinding.ObservableList;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import a... |
package sophena.rcp.editors.projects;
import org.eclipse.jface.action.Action;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormPage;
import ... |
package org.tigris.subversion.subclipse.core.util;
import java.io.ByteArrayInputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.ru... |
package io.github.tcdl.msb.support;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.github.tcdl.msb.api.exception.JsonConversionException;
import org.junit.Ignore;
import org.junit.Test;
import java.time.Instant;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurren... |
package org.pwsafe.lib.file;
/**
* A record in PasswordSafe consists of a number of fields. In V1.7 files all fields are
* strings but in V2.0 they can be of type String, UUID, time_t (a 32-bit integer holding
* the number of milliseconds since 00:00:00 on 1st January 1970) or integer.
* </p><p>
* This class is a... |
package org.libjpegturbo.turbojpeg;
import java.awt.image.*;
import java.nio.*;
/**
* TurboJPEG decompressor
*/
public class TJDecompressor {
private static final String NO_ASSOC_ERROR =
"No JPEG image is associated with this instance";
/**
* Create a TurboJPEG decompresssor instance.
*/
public TJDeco... |
package org.cybergarage.mediagate;
import java.util.prefs.*;
import org.cybergarage.util.*;
import org.cybergarage.upnp.std.av.server.*;
//import org.cybergarage.upnp.std.av.object.*;
import org.cybergarage.upnp.std.av.server.directory.file.*;
import org.cybergarage.upnp.std.av.server.directory.mythtv.*;
import org.cyb... |
package org.nutz.zdoc.impl.html;
import java.util.ArrayList;
import org.nutz.lang.Lang;
import org.nutz.lang.Strings;
import org.nutz.zdoc.Rendering;
import org.nutz.zdoc.ZDocEle;
import org.nutz.zdoc.ZDocEleType;
import org.nutz.zdoc.ZDocNode;
import org.nutz.zdoc.ZDocNodeType;
import org.nutz.zdoc.ZLinkInfo;
public c... |
package cruise.umple.compiler;
import java.io.File;
import java.util.*;
import org.junit.*;
import cruise.umple.parser.ErrorMessage;
import cruise.umple.parser.ErrorTypeSingleton;
import cruise.umple.parser.ParseResult;
import cruise.umple.parser.Position;
import cruise.umple.parser.analysis.RuleBasedParser;
import cru... |
package radlab.rain.workload.rubis;
import java.net.URI;
import java.util.LinkedHashSet;
import java.util.logging.Logger;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.Set;
import radlab.rain.Generator;
import radlab.rain.IScoreboard;
import radlab.rain.LoadPr... |
// checkstyle: Checks Java source code for adherence to a set of rules.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE... |
package ru.ivanp.vibro.telephony;
import java.lang.ref.WeakReference;
import ru.ivanp.vibro.App;
import ru.ivanp.vibro.MainActivity;
import ru.ivanp.vibro.R;
import ru.ivanp.vibro.vibrations.Player;
import ru.ivanp.vibro.vibrations.Vibration;
import ru.ivanp.vibro.vibrations.VibrationsManager;
import android.app.Notifi... |
package de.fau.cs.mad.gamekobold.template_generator;
import java.io.IOException;
import java.util.ArrayList;
import java.util.concurrent.CountDownLatch;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingExcep... |
package edu.wpi.first.wpilibj.templates.helpers.imageprocess;
import edu.wpi.first.wpilibj.image.BinaryImage;
import edu.wpi.first.wpilibj.image.ColorImage;
import edu.wpi.first.wpilibj.image.NIVisionException;
import edu.wpi.first.wpilibj.image.ParticleAnalysisReport;
import edu.wpi.first.wpilibj.smartdashboard.SmartD... |
package fr.adrienbrault.idea.symfony2plugin.stubs;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Key;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.psi.util.CachedValue;
import com.intellij.util.indexing.FileBasedIndexImpl;
import fr.adrienbrault.idea.symfony2plug... |
package org.rstudio.studio.client.rsconnect.ui;
import java.util.ArrayList;
import org.rstudio.core.client.CommandWithArg;
import org.rstudio.core.client.Debug;
import org.rstudio.core.client.StringUtil;
import org.rstudio.core.client.command.AppCommand;
import org.rstudio.core.client.command.EnabledChangedHandler;
imp... |
package com.couchbase.cblite.testapp.tests;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.M... |
package com.njlabs.showjava.ui;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;
import com.njlabs.showjava.BuildConfig;
import com.njlabs.showjava.R;
public class About extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreat... |
package com.csounds;
import java.io.File;
import java.util.ArrayList;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioRecord;
import android.media.AudioTrack;
import android.media.MediaRecorder;
import android.util.Log;
import android.webkit.JavascriptInterface;
import com... |
package fr.masciulli.motif;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Point;
import android.util.AttributeSet;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
... |
package blue.lapis.pore.converter.type.material;
import blue.lapis.pore.Pore;
import blue.lapis.pore.converter.type.material.MaterialConverter;
import com.google.common.base.Optional;
import com.google.common.collect.BiMap;
import com.google.common.collect.ImmutableBiMap;
import org.apache.commons.lang.NotImplementedEx... |
package im.fdx.v2ex.utils;
import android.content.Context;
import android.text.format.DateUtils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;
import im.fdx.v2ex.R;
public class TimeHelper {
public static String getRelativeTime(Context cont... |
package com.censoredsoftware.Demigods.Episodes.Demo.Structure;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukki... |
package com.censoredsoftware.demigods.episodes.demo.structure;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukki... |
package com.cjm721.ibhstd.common.block.tile;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ITickable;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.energy.IEnergyStorage;
import j... |
package com.crawljax.core.configuration;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.crawljax.browser.EmbeddedBrowser.BrowserType;
import com.crawljax.condition.eventablecondition.EventableC... |
package org.commcare.activities;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
import org.commcare.CommCareApplication;
import org.commcare.a... |
package com.creativemd.littletiles.common.structure;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import javax.annotation.Nullable;
import com.creativemd.creativecore.common.packet.PacketHandler;
import com.creativemd.creativeco... |
package jkind.analysis;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import jkind.Output;
import jkind.lustre.Node;
import jkind.lustre.NodeCallExpr;
import jkind.lustre.Program;
import jkind.lustre.visitors.AstIterVisitor;
public class NodeDepen... |
import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.os.Build;
/**
* Bitmap
*/
public class BitmapUtil
{
/**
* {@link Bitmap}
*/
@TargetApi(Build.VERSION_CODES.KITKAT)
public static int getBitmapByteSize(Bitmap bitmap) {
// The return value of getAllocation... |
package com.github.marunowskia.interfacegenerator;
import static org.apache.commons.lang3.StringUtils.*;
import static com.google.common.base.Preconditions.*;
import static java.util.Optional.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.L... |
package com.github.shyykoserhiy.gfm.settings;
import com.github.shyykoserhiy.gfm.GfmBundle;
import com.github.shyykoserhiy.gfm.editor.RenderingEngine;
import com.github.shyykoserhiy.gfm.markdown.offline.JnaMarkdownParser;
import com.github.shyykoserhiy.gfm.ui.Utils;
import com.intellij.openapi.editor.Editor;
import jav... |
package com.hea3ven.buildingbricks.compat.vanilla;
import java.util.function.Consumer;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.Bloc... |
package com.hmsonline.storm.cassandra.trident;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import storm.trident.state.JSONNonTransactionalSerializer;
... |
package com.indexdata.pz2utils4jsf.pazpar2.data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.log4j.Logger;
import com.indexdata.pz2utils4jsf.pazpar2.data.Pazpar2ResponseData;
public class Pazpar2ResponseData implements Serializable {
Logg... |
package com.ircclouds.irc.api.listeners;
import java.util.*;
import com.ircclouds.irc.api.*;
import com.ircclouds.irc.api.domain.*;
import com.ircclouds.irc.api.domain.messages.*;
import com.ircclouds.irc.api.utils.*;
public abstract class AbstractChannelJoinListener
{
private Map<String, Callback<IRCChannel>> call... |
package com.jamierf.dropwizard.logging.loggly;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.Appender;
import ch.qos.logback.core.Layout;
import ch.qos.logback.ext.loggly.LogglyAppender;
import com.fasterxml.jackson.annotation.JsonProperty;
impo... |
package com.kryptnostic.kodex.v1.crypto.keys;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.concurrent.TimeUnit;
import java.util.zip.DataFormatException;
import java.util.zip.Deflater;
import java.util.zip.Inflater;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxm... |
package com.variacode.bancointeligente.controller;
import com.google.gson.Gson;
import com.variacode.bancointeligente.apiclient.ClientLogin;
import com.variacode.bancointeligente.apiclient.Login;
import com.variacode.bancointeligente.core.rest.BancoInteligenteRESTException;
import com.variacode.bancointeligente.entity.... |
package de.craften.plugins.rpgplus.scripting.api;
import org.bukkit.event.Event;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockBurnEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.enc... |
package edu.yu.einstein.wasp.controller.validator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.springframework.validation.BindExcepti... |
package kernitus.plugin.OldCombatMechanics.module;
import kernitus.plugin.OldCombatMechanics.OCMMain;
import kernitus.plugin.OldCombatMechanics.utilities.Messenger;
import org.bukkit.*;
import org.bukkit.advancement.Advancement;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.LivingEntity... |
package net.amigocraft.pore.util.converter.entity;
import com.google.common.collect.ImmutableBiMap;
import org.bukkit.entity.Skeleton;
import org.spongepowered.api.entity.living.meta.SkeletonType;
import org.spongepowered.api.entity.living.meta.SkeletonTypes;
public class SkeletonConverter {
private static Immutabl... |
package net.sf.taverna.t2.activities.beanshell;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.List;
import net.sf.taverna.raven.repository.Artifact;
import net.sf.taverna.raven.repository.ArtifactNotFoundException;
import net.sf.taverna.raven.repository.ArtifactStateException;
import net.sf.tave... |
package nz.ac.auckland.morc.mock.builder;
import nz.ac.auckland.morc.mock.MockDefinition;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Generates an mock definition for ensuring asynchronous messages will be received at some point in the future.
*
* @author David MacDonald <d.macdonald@auckland.ac.n... |
package org.ambraproject.wombat.service;
import com.google.common.collect.ImmutableSet;
import org.ambraproject.wombat.config.site.Site;
import org.ambraproject.wombat.controller.DoiVersionArgumentResolver;
import org.ambraproject.wombat.identity.ArticlePointer;
import org.ambraproject.wombat.model.Reference;
import or... |
package org.ambraproject.wombat.service;
import com.google.common.base.Strings;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.EnumSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
import java.util.stream.Stream;
publ... |
package org.helianto.sendgrid.message.sender;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import javax.mail.internet.MimeUtility;
import org.helianto.core.domain.Identity;
i... |
package org.javamoney.moneta.function;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Objects;
import java.util.OptionalInt;
import javax.money.CurrencyUnit;
import javax.money.MonetaryAmount;
import javax.money.MonetaryOperator;
class RoudingMonetaryAmountOperator implements MonetaryOpera... |
package org.jfree.chart;
import java.awt.AWTEvent;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.Image;
import java.awt.Insets;
import java.awt.Point;
import java.awt.Transparency;
import java.awt.event.Acti... |
package org.kwstudios.play.kwbungeelobby.minigames;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.block.Sign;
import org.kwstudios.play.kwbungeelobby.database.MinecraftServerModel;
import org.kwst... |
package uk.org.sappho.jira.workflow.approvals;
import java.util.List;
import org.apache.log4j.Logger;
import com.atlassian.jira.ComponentManager;
import com.atlassian.jira.issue.MutableIssue;
import com.opensymphony.workflow.WorkflowException;
public class WorkflowConfiguration {
private int transitionActionId;
... |
package com.jbooktrader.platform.strategy;
import com.ib.client.*;
import com.jbooktrader.platform.chart.*;
import com.jbooktrader.platform.commission.*;
import com.jbooktrader.platform.indicator.*;
import com.jbooktrader.platform.marketbook.*;
import com.jbooktrader.platform.model.*;
import static com.jbooktrader.plat... |
package florian_haas.lucas.model;
import java.util.*;
public class Company extends AccountOwner {
private static final long serialVersionUID = -8593998936489707393L;
private String name;// Unique
private String description;
private String room;
private Integer section;
private EnumCompanyType co... |
package sg.edu.cs2103aug2015_w13_2j;
import java.util.Vector;
import javafx.util.Pair;
/**
* This class assigns the appropriate attributes of a Task
* corresponding to the flags in the user's input.
*
* More specifically, the task name and flags/flag-values stated
* in the user's input will be detected and assigne... |
package mil.nga.giat.mage.map;
import android.Manifest;
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import and... |
/*
* DSched.java -- disk I/O scheduler code.
* <<<INSERT YOUR NAME AND EMAIL HERE>>>
*/
/*
* FIXME: this implements a FIFO (first in, first out) request queue.
* requests are collected in the "readqueue" array, which acts as a circular
* buffer, with "readqueue_head" pointing at the next empty slot, "readque... |
package com.joelapenna.foursquared.app;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.types.Checkin;
import com.joelapenna.foursquare.types.Group;
import com.joelapenna.foursquare.types.User;
import com.joelapenna.foursquared.Foursquared;
import com.joelapenna.foursquared.FriendsActivity... |
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquare.types.Checkin;
import com.joelapenna.foursquare.types.Tip;
import com.joelapenna.foursquare.types.User;
import com.joelapenna.foursquare.types.Venue;
import java.text.ParseException;
import java.util.Comparator;
/**
* @author Joe LaPenna (joe@jo... |
import fi.evident.dalesbred.Database;
import fi.evident.dalesbred.results.RowMapper;
import java.lang.Integer;
import java.lang.String;
public class SimpleCases {
Database db;
RowMapper rowMapper;
public void rightAmountOfParameters() {
db.findAll(Integer.class, "select 42 from foo");
db.fin... |
package com.necla.am.zwutils.Servers;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import jav... |
package me.exphc.AtmosphericHeights;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.UUID;
import java.util.Iterator;
import java.util.logging.Logger;
import java.util.concurrent.ConcurrentHashMap;
import java.util.Formatt... |
package org.smoothbuild.exec.task.parallel;
import static com.google.common.base.Throwables.getStackTraceAsString;
import static com.google.common.truth.Truth.assertThat;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collectors.toList;
import static org.mockito.ArgumentMatchers.eq;
i... |
package com.shaubert.ui.phone;
import android.content.Context;
import android.support.annotation.Nullable;
import android.telephony.TelephonyManager;
import com.google.i18n.phonenumbers.NumberParseException;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber;
import jav... |
package net.domesdaybook.searcher.multisequence;
import java.io.IOException;
import java.util.List;
import net.domesdaybook.matcher.multisequence.MultiSequenceMatcher;
import net.domesdaybook.matcher.sequence.SequenceMatcher;
import net.domesdaybook.reader.Reader;
import net.domesdaybook.reader.Window;
import net.domes... |
package org.pentaho.di.ui.trans.steps.hadoopfileoutput;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.vfs.FileObject;
import org.apache.commons.vfs.FileSystemException;
import org.eclips... |
package scalac.ast.parser;
import scalac.*;
import scalac.util.Name;
import scalac.util.Position;
/** A scanner for the programming language Scala.
*
* @author Matthias Zenger, Martin Odersky
* @version 1.0
*/
public class Scanner extends TokenData {
/** layout & character constants
*/
public ... |
package org.dspace.browse;
import java.sql.SQLException;
import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Logger;
import org.dspace.content.Collection;
import org.dspace.content.Community;
import org.dspace.core.Context;
import org.dspace.core.LogManager;
/**
* This class does most of the actu... |
package eu.europa.esig.dss;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLDecoder;
/**
* TODO
*
*
*
*
*
*/
public class ResourceLoader {
protected Class<?> anyClass = ResourceLoader.class;
public ResourceLoader() {
}
/**
* It... |
package de.meggsimum.w3w;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for {@linkplain What3Words}
*
* @author Christian Mayer, meggsimum
*/
public class What3WordsTest extends TestCase {
/**
* Ensure to set your API-Key here before running... |
package org.ow2.proactive.scheduler.job;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import org.apache.log4j.Logger;
import org.objectweb.proactive.extensions.dataspaces.api.PADataSpaces;
import org.objectweb.proactive.extensions.dataspaces.core.naming.NamingService;
import org.ow2.pro... |
package ee.shy.core.diff;
import ee.shy.ResourcePaths;
import ee.shy.core.Tree;
import ee.shy.storage.DataStorage;
import ee.shy.storage.MapStorage;
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners... |
package integration;
import static io.vertx.core.http.HttpHeaders.ACCEPT;
import static io.vertx.core.http.HttpHeaders.CONTENT_TYPE;
import java.util.Arrays;
import java.util.Locale;
import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import com.github.aesteve.vertx.nubes.VertxNubes;
impor... |
package com.github.dannil.scbjavaclient.test.runner;
import java.lang.reflect.Method;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.junit.runners.BlockJUnit4ClassR... |
package io.nats.client;
import static io.nats.client.Constants.ERR_BAD_SUBSCRIPTION;
import static io.nats.client.Constants.ERR_MAX_MESSAGES;
import static io.nats.client.Constants.ERR_SLOW_CONSUMER;
import static io.nats.client.UnitTestUtilities.sleep;
import static org.junit.Assert.assertEquals;
import static org.jun... |
package metroinsight.citadel;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.ArrayList;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.json.Json;... |
package uk.ac.ic.wlgitbridge.application;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import static org.asynchttpclient.Dsl.*;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.cl... |
package nl.ensignprojects.iban;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author jurrian
*/
public class IbanTest {
/**
* Test of validate method, of class Iban.
*/
@Test
public void testValidate() throws Exception {
System.out.println("validate");
String... |
package org.basex.test.core;
import static org.junit.Assert.*;
import java.lang.reflect.Array;
import java.util.*;
import java.util.concurrent.*;
import org.basex.core.*;
import org.basex.test.*;
import org.basex.util.list.*;
import org.junit.*;
import org.junit.runner.*;
import org.junit.runners.*;
import org.junit.ru... |
package eu.modernmt.processing;
import eu.modernmt.io.TokensOutputStream;
import eu.modernmt.lang.Language;
import eu.modernmt.lang.LanguageDirection;
import eu.modernmt.model.Alignment;
import eu.modernmt.model.Sentence;
import eu.modernmt.model.Translation;
import eu.modernmt.model.Word;
import org.junit.AfterClass;
... |
package org.cojen.tupl.rows;
import org.junit.*;
import static org.junit.Assert.*;
import org.cojen.tupl.*;
/**
*
*
* @author Brian S O'Neill
*/
public class RowCrudTest {
public static void main(String[] args) throws Exception {
org.junit.runner.JUnitCore.main(RowCrudTest.class.getName());
}
@B... |
package org.gbif.dwc.terms;
import org.junit.Test;
import java.util.HashSet;
import java.util.List;
import static org.junit.Assert.*;
public class GbifTermTest extends TermBaseTest {
public GbifTermTest() {
super(GbifTerm.class);
}
@Test
public void testTerm() {
assertEquals("taxonKey", GbifTerm.taxonKe... |
package org.json.junit;
import static org.junit.Assert.*;
import java.util.*;
import org.json.*;
import org.junit.Test;
import com.jayway.jsonpath.*;
/**
* Tests for JSON-Java JSONStringer and JSONWriter.
*/
public class JSONStringerTest {
/**
* Object with a null key.
* Expects a JSONException.
*/... |
import java.nio.ByteOrder;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.nio.channels.ServerSocketChannel;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.net.Inet... |
package org.redisson;
import java.util.HashMap;
import java.util.Map;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public abstract class BaseConcurrentTest {
protec... |
package org.znerd.xmlenc;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Tests on the <code>XMLChecker</code> class.
*/
public class XMLCheckerTest extends TestCase {
/**
* Returns a test suite with all test cases defined by this class.
*
* @re... |
package rxbroadcast;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Test;
@SuppressWarnings({"checkstyle:MagicNumber"})
public final class VectorTimestampTest {
@Test
public final void equalsContract() {
EqualsVerifier.forClass(V... |
package april.bustabobble;
import java.util.Random;
public enum BobbleColor {
RED(Colors.TRANS_RED),
ORANGE(Colors.TRANS_ORANGE),
YELLOW(Colors.TRANS_YELLOW),
GREEN(Colors.TRANS_GREEN),
BLUE(Colors.TRANS_BLUE);
private int colorValue;
private static final BobbleColor[] VALUES = values();
... |
package mindpop.learnpop;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewG... |
package org.pisimo.mens;
import android.content.res.AssetManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import java.util.Date;
//import android.support.multidex.Multi... |
package me.openphoto.android.app;
import java.io.File;
import java.io.IOException;
import java.util.Date;
import me.openphoto.android.app.net.UploadMetaData;
import me.openphoto.android.app.provider.PhotoUpload;
import me.openphoto.android.app.provider.UploadsProviderAccessor;
import me.openphoto.android.app.service.Up... |
package com.thaiopensource.xml.util;
public class Naming {
private Naming() { }
private static final int CT_NAME = 1;
private static final int CT_NMSTRT = 2;
private static final String nameStartSingles =
"\u003a\u005f\u0386\u038c\u03da\u03dc\u03de\u03e0\u0559\u06d5\u093d\u09b2" +
"\u0a5e\u0a8d\u0abd\u0ae0\... |
package org.eigenbase.jmi.mem;
import java.io.*;
import java.lang.reflect.*;
import java.util.*;
import java.util.concurrent.atomic.*;
import javax.jmi.model.*;
import javax.jmi.reflect.*;
import org.eigenbase.jmi.*;
import org.eigenbase.util.*;
/**
* JmiMemFactory creates objects for use in an in-memory repository
*... |
package com.sometrik.framework;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import com.sometrik.framework.NativeCommand.Selector;
import android.app.ActionBar;
import android.graphics.Bitmap.Config;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
i... |
package com.hazelcast.stabilizer.provisioner;
import com.google.common.base.Predicate;
import com.hazelcast.logging.ILogger;
import com.hazelcast.logging.Logger;
import com.hazelcast.stabilizer.Utils;
import com.hazelcast.stabilizer.agent.AgentRemoteService;
import com.hazelcast.stabilizer.agent.workerjvm.WorkerJvmMana... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.