answer stringlengths 17 10.2M |
|---|
package com.genymobile.scrcpy;
import android.util.Log;
/**
* Log both to Android logger (so that logs are visible in "adb logcat") and standard output/error (so that they are visible in the terminal
* directly).
*/
public final class Ln {
private static final String TAG = "scrcpy";
enum Level {
DEBU... |
package com.redhat.ceylon.compiler.typechecker.analyzer;
import static com.redhat.ceylon.compiler.typechecker.analyzer.Util.checkAssignable;
import static com.redhat.ceylon.compiler.typechecker.analyzer.Util.checkIsExactly;
import static com.redhat.ceylon.compiler.typechecker.analyzer.Util.checkTypeBelongsToContainingS... |
package com.redhat.ceylon.compiler.typechecker.analyzer;
import static com.redhat.ceylon.compiler.typechecker.analyzer.Util.checkAssignable;
import static com.redhat.ceylon.compiler.typechecker.analyzer.Util.checkAssignableWithWarning;
import static com.redhat.ceylon.compiler.typechecker.analyzer.Util.checkCallable;
im... |
package smallworld;
import edu.princeton.cs.In;
import edu.princeton.cs.StdOut;
import java.util.ArrayList;
import java.util.Stack;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Graph {
// symbol table: key = string vertex, value = set of neighboring vertices
private ST<String, S... |
package org.jboss.dna.jcr;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNull.notNullValue;
import static org.junit.Assert.assertThat;
import java.io.InputStream;
import java.util.Calendar;
import java.util.Date;
import java.util.UUID;
import javax.jcr.PropertyType;
import javax.jcr.ValueForm... |
package com.redhat.ceylon.compiler.typechecker.analyzer;
import java.util.List;
import com.redhat.ceylon.compiler.typechecker.model.ClassOrInterface;
import com.redhat.ceylon.compiler.typechecker.model.Declaration;
import com.redhat.ceylon.compiler.typechecker.model.Setter;
import com.redhat.ceylon.compiler.typechecker... |
package dr.evomodel.branchratemodel;
import dr.evolution.tree.NodeRef;
import dr.evolution.tree.Tree;
import dr.evomodel.tree.TreeModel;
import dr.inference.distribution.ParametricMultivariateDistributionModel;
import dr.inference.hmc.GradientWrtParameterProvider;
import dr.inference.model.*;
import dr.util.Author;
imp... |
package org.apache.commons.collections.comparators;
import java.io.Serializable;
import java.util.Comparator;
public final class BooleanComparator implements Comparator, Serializable {
/**
* Creates a <code>BooleanComparator</code>
* that sorts <code>false</code> values before
* <code>true</code> val... |
package org.helioviewer.jhv.data.container;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.helioviewer.jhv.data.container.cache.JHVEventCache;
import org.helioviewer.jhv.data.container.cache.JHVEventHandlerCache;
import org.helioviewer.jhv.data.datatype.JHVEvent;
import org.heliovi... |
package br.com.caelum.brutal.newsletter;
import org.hibernate.ScrollableResults;
import br.com.caelum.brutal.dao.UserDAO;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.environment.Environment;
import br.com.caelum.vraptor.quartzjob.CronTask;
@Resource
public cl... |
package ca.corefacility.bioinformatics.irida.model;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Collecti... |
package com.alecgorge.minecraft.jsonapi.packets;
import java.lang.reflect.Method;
import java.util.logging.Logger;
import net.minecraft.server.v1_4_R1.Packet;
public class PacketRegistrar {
static Method registrationMethod = null;
public static void register(int packetID, boolean isClientPacket, boolean isServe... |
package com.celements.web.plugin.cmd;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.xwiki.model.internal.reference.DefaultStringEntityReferenceSerializer;
import com.celements.web.service.IWebUtilsService;
import com.xp... |
package com.dstsystems.hackathon.autotempo.tempo;
import com.dstsystems.hackathon.autotempo.models.TempoUserProfileModel;
import com.dstsystems.hackathon.autotempo.models.WorklogModel;
import com.dstsystems.hackathon.autotempo.tempo.models.TempoAuthor;
import com.dstsystems.hackathon.autotempo.tempo.models.TempoIssue;
... |
package com.eaw1805.www.controllers.cache.helper;
import com.eaw1805.data.cache.Cachable;
import com.eaw1805.data.HibernateUtil;
import com.eaw1805.data.constants.GameConstants;
import com.eaw1805.data.constants.ProfileConstants;
import com.eaw1805.data.constants.ReportConstants;
import com.eaw1805.data.dto.web.HofDTO;... |
package com.edugility.substantia.id;
public class AtomicLongTableScopedIdType extends IdType<Long> {
private static final long serialVersionUID = 1L;
protected AtomicLongTableScopedIdType() {
super("AtomicLongTableScopedIdType", Long.class);
}
} |
package com.epam.ta.reportportal.ws.model.dashboard;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Pavel Bortnik
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AddWidgetRq {
@JsonProperty(value = "add_widget")
private Dashb... |
package com.github.dozedoff.commonj.settings;
public interface ISettingsValidator {
/**
* Validate the passed {@link AbstractSettings} object.
*
* @param settings
* to validate
* @return true if the settings object passes all tests
*/
public boolean validate(AbstractSett... |
package com.github.horrorho.liquiddonkey.cloud;
import com.github.horrorho.liquiddonkey.cloud.data.Snapshot;
import com.github.horrorho.liquiddonkey.cloud.file.CloudFileWriter;
import com.github.horrorho.liquiddonkey.iofunction.IOFunction;
import com.github.horrorho.liquiddonkey.cloud.protobuf.ICloud;
import com.github... |
package com.github.lunatrius.core.exceptions;
import net.minecraft.util.StatCollector;
public class LocalizedException extends Exception {
public LocalizedException(final String format) {
super(StatCollector.translateToLocal(format));
}
public LocalizedException(final String format, final Object... ... |
package com.github.sbugat.samplerest.web.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation... |
package com.github.webdriverextensions.internal;
import com.github.webdriverextensions.ThreadDriver;
import org.apache.commons.lang3.StringUtils;
import org.openqa.selenium.HasCapabilities;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Platform;
import org.openqa.selenium.remote.BrowserType;... |
package com.google.android.mobly.snippet.bundled.utils;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.le.AdvertiseSettings;
import android.bluetooth.le.ScanCallback;
import android.bluetooth.le.ScanSettings;
import android.os.Build;
/** Mobly Bundled Snippets (MBS)'s {@link RpcEnum} objects represe... |
package com.kiran.controller.intercept;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... |
package com.net2plan.gui.utils.focusPane;
import com.net2plan.gui.utils.IVisualizationCallback;
import com.net2plan.interfaces.networkDesign.Link;
import com.net2plan.interfaces.networkDesign.NetworkLayer;
import com.net2plan.interfaces.networkDesign.Node;
import com.net2plan.interfaces.networkDesign.SharedRiskGroup;
i... |
package com.sdl.selenium.web.utils.browsers;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.slf4j.Logger;... |
package com.witchworks.common.block.magic.plants;
import com.witchworks.common.block.BlockMod;
import com.witchworks.common.block.ModBlocks;
import com.witchworks.common.core.WitchWorksCreativeTabs;
import com.witchworks.common.lib.LibBlockName;
import net.minecraft.block.Block;
import net.minecraft.block.IGrowable;
im... |
package de.fraunhofer.fokus.fuzzing.fuzzino.util;
public class UnicodeDecoder {
public static String decode(String value) {
value = replaceUTF(value, "\\x", 2);
value = replaceUTF(value, "\\u", 4);
value = replaceUTF(value, "\\U", 8);
return value;
}
private static String rep... |
package de.fred4jupiter.fredbet.service.admin;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.util.Arrays;
import java.util.Map;
import java.uti... |
package gov.nasa.jpl.mgss.mbee.docgen.model.ui;
import gov.nasa.jpl.mgss.mbee.docgen.model.LibraryMapping;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.AbstractActi... |
package info.u_team.u_team_core.gui.render;
import com.mojang.blaze3d.systems.RenderSystem;
import info.u_team.u_team_core.util.RGBA;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.*;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.verte... |
package io.github.mzmine.datamodel.featuredata;
import com.google.common.collect.Range;
import io.github.mzmine.datamodel.MassSpectrum;
import io.github.mzmine.datamodel.Scan;
import io.github.mzmine.datamodel.featuredata.impl.SummedIntensityMobilitySeries;
import io.github.mzmine.datamodel.features.ModularFeature;
imp... |
package net.identio.server.mvc.common;
import net.identio.server.boot.GlobalConfiguration;
import net.identio.server.service.orchestration.exceptions.ServerException;
import net.identio.server.service.orchestration.exceptions.WebSecurityException;
import net.identio.server.service.authentication.model.X509Authenticatio... |
package net.openhft.chronicle.hash.impl.util.jna;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import net.openhft.chronicle.core.Jvm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.FileDescriptor;
import java.lang.reflect.Field;
public final class PosixFallocate {
private static ... |
package next.operator.linebot.executor.impl;
import com.google.common.collect.Lists;
import com.google.common.primitives.Ints;
import next.operator.linebot.executor.FunctionExecutable;
import next.operator.rolldice.model.DiceModel;
import next.operator.rolldice.service.DiceService;
import next.operator.user.dao.UserDao... |
package org.asciidoc.intellij.editor.javafx;
import com.intellij.ide.browsers.OpenInBrowserRequest;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.util.io.FileUtilRt;
import com.intellij.openapi.... |
package org.cboard.elasticsearch.aggregation;
import org.cboard.dataprovider.DataProvider;
import org.cboard.util.json.JSONBuilder;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import static org.cboard.util.json.JSONBuilder.*;
public class AggregationBu... |
package org.gbif.ws.server.mapper;
import org.gbif.ws.NotFoundException;
import org.gbif.ws.WebApplicationException;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.... |
package org.jboss.remoting3.remote;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.BufferOverflowException;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.security.AccessControlContext;
import java.security.AccessController;
import java.security.Princip... |
package org.minimalj.frontend.form.element;
import java.util.List;
import org.minimalj.backend.Backend;
import org.minimalj.frontend.Frontend;
import org.minimalj.frontend.Frontend.IComponent;
import org.minimalj.frontend.Frontend.Input;
import org.minimalj.frontend.Frontend.Search;
import org.minimalj.model.Keys;
impo... |
package org.ndexbio.common.persistence;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Calendar;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;... |
package org.neptunepowered.vanilla.factory;
import com.google.common.collect.Lists;
import net.canarymod.api.DataWatcher;
import net.canarymod.api.chat.ChatComponent;
import net.canarymod.api.entity.Entity;
import net.canarymod.api.entity.XPOrb;
import net.canarymod.api.entity.hanging.Painting;
import net.canarymod.api... |
package org.realityforge.gwt.eventsource.example.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.... |
package uk.ac.ox.krr.logmap2.partitioning;
import java.util.HashSet;
import java.util.Set;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
import uk.ac.ox.krr.logmap2.Parameters;
import uk.ac.ox.krr.logmap2.lexicon.LexicalUtilities;
import uk.ac.ox.krr.... |
package org.openspaces.admin.internal.discovery;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import net.jini.core.discovery.LookupLocator;
import net.jini.core.entry.Entry;
import net.jini.core.lookup.ServiceID;
import net.jini.core.lookup.Servic... |
package org.openspaces.admin.internal.discovery;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import net.jini.core.discovery.LookupLocator;
import net.jini.core.lookup.ServiceID;
import net.jini.core.lookup.ServiceRegistrar;
import net.jini.core.lookup.ServiceTemplate;
import net... |
package mil.nga.giat.mage.map.marker;
import java.util.Comparator;
import java.util.Date;
import java.util.Set;
import mil.nga.giat.mage.sdk.datastore.location.Location;
import mil.nga.giat.mage.sdk.datastore.location.LocationGeometry;
import mil.nga.giat.mage.sdk.datastore.location.LocationHelper;
import mil.nga.giat.... |
package org.deziras.collection;
import org.deziras.function.Function1;
/**
* The base trait of all builders.
* A builder lets one construct a collection incrementally, by adding
* elements to the builder with {@link #append(Object)} and then converting
* to the required collection type with {@link #result()}.
* <p... |
package gov.nih.nci.calab.ui.security;
import org.apache.log4j.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action... |
package gov.nih.nci.cananolab.dto.common;
import gov.nih.nci.cananolab.domain.common.File;
import gov.nih.nci.cananolab.domain.common.Keyword;
import gov.nih.nci.cananolab.util.Constants;
import gov.nih.nci.cananolab.util.DateUtils;
import gov.nih.nci.cananolab.util.StringUtils;
import java.util.Date;
import java.util.... |
package gov.nih.nci.ncicb.cadsr.loader.ui;
import gov.nih.nci.ncicb.cadsr.domain.DataElement;
import gov.nih.nci.ncicb.cadsr.domain.DomainObjectFactory;
import gov.nih.nci.ncicb.cadsr.domain.ValueDomain;
import gov.nih.nci.ncicb.cadsr.loader.ElementsLists;
import gov.nih.nci.ncicb.cadsr.loader.ui.tree.UMLNode;
import g... |
package kernitus.plugin.OldCombatMechanics;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;
import java.io.IOException;
import java.util.logging.Logger;
public class OCMMain ex... |
package org.rstudio.studio.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.RunAsyncCallback;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.StyleInjector;
import com.google.... |
package ibis.connect.gossipproxy;
import ibis.connect.direct.SocketAddressSet;
import ibis.connect.gossipproxy.connections.ProxyConnection;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.TreeMap;
public class ProxyDescription {
// Note: order is important here, we always want the highest po... |
package org.voltdb.exportclient.kafka;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.TimeZone;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.Ti... |
package afc.ant.modular;
import java.io.File;
import java.net.URL;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.IdentityHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.tools.ant.BuildException;
import org.ap... |
/**
*
* @author pandyas
*
* $Id: HistopathologyManagerImpl.java,v 1.39 2009-06-09 15:25:05 pandyas Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.38 2009/06/08 19:25:29 pandyas
* modified for gforge #TBD
* Disease not populating in Histopathology for models in edit mode when diagnosis is entered man... |
// Depot library - a Java relational persistence library
// 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 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should... |
package gov.nih.nci.ncicb.cadsr.loader.ext;
import java.util.*;
import java.lang.reflect.Method;
import gov.nih.nci.ncicb.cadsr.dao.*;
import gov.nih.nci.ncicb.cadsr.domain.*;
import gov.nih.nci.ncicb.cadsr.loader.util.*;
import org.apache.log4j.Logger;
public class CadsrPrivateApiModule implements CadsrModule
{
priv... |
package org.subethamail.smtp.server;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import org.apache.commons.logging... |
// $Id: DObject.java,v 1.38 2002/02/06 22:47:28 mdb Exp $
package com.threerings.presents.dobj;
import java.lang.reflect.Field;
import java.util.ArrayList;
import com.samskivert.util.ListUtil;
import com.samskivert.util.StringUtil;
import com.threerings.presents.Log;
/**
* The distributed object forms the foundation o... |
package org.rstudio.studio.client;
import java.util.LinkedList;
import java.util.Queue;
import org.rstudio.core.client.widget.MiniPopupPanel;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.... |
package org.apache.velocity.convert;
import java.io.File;
import java.io.FileWriter;
import org.apache.oro.text.perl.Perl5Util;
import org.apache.velocity.util.StringUtils;
import org.apache.tools.ant.DirectoryScanner;
/**
* This class will convert a WebMacro template to
* a Velocity template. Uses the ORO Regexp pac... |
package picard.analysis;
import htsjdk.samtools.SAMFileHeader;
import htsjdk.samtools.SAMReadGroupRecord;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.metrics.MetricsFile;
import htsjdk.samtools.reference.ReferenceSequence;
import htsjdk.samtools.util.CollectionUtil;
import htsjdk.samtools.util.Histogram;
i... |
package com.amee.domain.auth;
import org.apache.xerces.dom.DocumentImpl;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Test;
import org.w3c.dom.*;
import java.util.LinkedHashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
i... |
package com.contentful.java.cda;
import com.contentful.java.cda.lib.Enqueue;
import com.contentful.java.cda.lib.TestCallback;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import org.junit.Test;
import rx.functions.Action1;
import static com.google.common.truth.Truth.assertThat;
public class EntryT... |
package com.devesion.obd.link;
import com.devesion.obd.TestSupport;
import com.devesion.obd.shared.ObdCommunicationException;
import org.mockito.InOrder;
import org.mockito.Mock;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.io.IOException;
import java.io.InputStream;
impor... |
package com.jcabi.github;
import com.jcabi.aspects.Tv;
import javax.json.Json;
import javax.json.JsonObject;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.RandomStringUtils;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Assume;
import org.junit.Test;
... |
package chord;
import basic.FileNames;
import basic.SHA1;
import basic.SHAhash;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.lang.management.ManagementFactory;
import java.rmi.NoSuchObjectException;
import java.rmi.NotBoundException;
import java.security.NoSu... |
package org.TexasTorque.TexasTorque2013.subsystem.manipulator;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.TexasTorque.TexasTorque2013.TorqueSubsystem;
import org.TexasTorque.TexasTorque2013.constants.Constants;
import org.TexasTorque.TexasTorque2013.subsystem.drivebase.Drivebase;
public clas... |
package org.mapfish.print;
import org.apache.commons.io.IOUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Test;
import org.mapfish.print.servlet.MapPrinterServlet;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import... |
package junitparams;
import org.junit.AfterClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.EnumSet;
import junitparams.internal.TestMethod;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertTrue;
/**
* Tests for {@link TestMethod#fillResultWi... |
package org.apache.cocoon.transformation.alternative;
import java.io.File;
import java.io.IOException;
import java.util.Map;
import org.apache.commons.io.FileUtils;
import org.apache.avalon.framework.parameters.Parameters;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.environment.SourceResolver... |
package net.emaze.dysfunctional;
import net.emaze.dysfunctional.dispatching.actions.Action;
import net.emaze.dysfunctional.dispatching.actions.BinaryAction;
import net.emaze.dysfunctional.dispatching.actions.BinaryNoop;
import net.emaze.dysfunctional.dispatching.actions.Noop;
import net.emaze.dysfunctional.dispatching.... |
package org.jetbrains.plugins.scala.compiler;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.projectRoots.JavaSdk;
import com.intellij.openapi.projectRoots.ProjectJdkTable;
import com.intellij.openapi.projectRoots.Sdk;
import com... |
package org.cojen.tupl;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.util.Arrays;
import java.util.Map;
import java.util.Random;
import java.util.TreeMap;
import org.cojen.tupl.repl.ReplicatorConfig;
import org.junit.*;
import static org.junit.Assert.*;
import static org.cojen.tupl.TestUtils.*... |
package org.jivesoftware.sparkplugin;
import org.jivesoftware.Spark;
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.util.StringUtils;
import org.jivesoftware.smackx.ServiceDiscoveryManager;
import org.jivesoftware.smackx.jingle.IncomingJingleSession... |
package org.myrobotlab.service;
import java.io.IOException;
import org.apache.http.client.ClientProtocolException;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import... |
package foam.dao;
import foam.core.ClassInfo;
import foam.lib.json.Outputter;
import foam.lib.json.OutputterMode;
public class JDAO
extends AbstractJDAO
{
protected Outputter outputter_ = new Outputter(OutputterMode.STORAGE);
public JDAO(foam.core.X x, ClassInfo classInfo, String filename) {
this(x, new Map... |
package org.voovan.test.netty;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.ByteBuf;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import org.voovan.tools.TByteBuffer... |
package picocli;
import org.junit.Ignore;
import org.junit.Test;
import picocli.CommandLine.Command;
import picocli.CommandLine.Model.CommandSpec;
import picocli.CommandLine.Model.OptionSpec;
import picocli.CommandLine.Model.PositionalParamSpec;
import picocli.CommandLine.Model.UsageMessageSpec;
import java.io.Unsuppor... |
package seedu.address.testutil;
import seedu.address.model.person.Name;
import seedu.address.model.person.ReadOnlyPerson;
import seedu.address.model.person.TaskDate;
import seedu.address.model.tag.UniqueTagList;
/**
* A mutable person object. For testing only.
*/
public class TestPerson implements ReadOnlyPerson {
... |
package com.sometrik.framework;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import com.android.trivialdrivesample.util.IabHelper;
import com.android.trivialdrivesample.util.IabHelper.IabAsyncInProgressEx... |
package seedu.gtd.testutil;
import seedu.gtd.commons.exceptions.IllegalValueException;
import seedu.gtd.logic.parser.DateNaturalLanguageProcessor;
import seedu.gtd.logic.parser.NaturalLanguageProcessor;
import seedu.gtd.model.task.Address;
import seedu.gtd.model.task.DueDate;
import seedu.gtd.model.task.Name;
import se... |
package org.apache.commons.collections;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class TestAll extends TestCase {
public TestAll(String testName) {
super(testName);
}
public static Test suite() {
TestSuite suite = new TestSuite();... |
package pt.fccn.mobile.arquivo.tests.menu;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import pt.fccn.arquivo.selenium.Retry;
import pt.fccn.mobile.arquiv... |
package backtype.storm.nimbus;
import backtype.storm.Config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Map;
public class NimbusInfo implements Serializable {
private static final Logger LO... |
package edu.umd.cs.findbugs.ba;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
impo... |
package edu.umd.cs.daveho.ba;
import java.util.*;
import java.io.*;
/**
* Class to open input streams on source files.
* It maintains a "source path", which is like a classpath,
* but for finding source files instead of class files.
*/
public class SourceFinder {
private static final int CACHE_SIZE = 50;
pr... |
package org.apache.velocity.util.introspection;
import java.util.Hashtable;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import org.apache.velocity.util.StringUtils;
/**
* This basic function of this class is to return a Method
* object for a particular class given the name of a method
* and t... |
package edu.umd.cs.findbugs.gui;
import java.util.*;
import javax.swing.tree.DefaultTreeModel;
import edu.umd.cs.findbugs.*;
/**
* Representation of a run of the FindBugs analysis on a Project.
* This class has convenient methods which can be used to extract
* bug reports in various interesting ways.
*
* @author D... |
package org.dellroad.stuff.vaadin;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.ApplicationEventMulticaster;
import org.springframework.context.event.SmartApplicationListener;
/**
* A Spring {@link org.springframework.context.ApplicationListener} support superclass cust... |
package org.tigris.subversion.javahl;
import java.io.OutputStream;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Date;
/**
* This is the main interface class. All subversion commandline client
* svn and svnversion operation are implemented in thi... |
package org.joda.time.chrono;
import org.joda.time.DateTimeConstants;
import org.joda.time.DurationField;
import org.joda.time.field.PreciseDurationDateTimeField;
/**
*
*
* @author Brian S O'Neill
*/
final class CopticMonthOfYearDateTimeField extends PreciseDurationDateTimeField {
static final long serialVersio... |
package ru.yandex.market.graphouse.cacher;
import org.apache.http.util.ByteArrayBuffer;
import ru.yandex.market.graphouse.Metric;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Li... |
package org.helioviewer.gl3d.gui;
import java.util.ArrayList;
import java.util.List;
import javax.swing.AbstractListModel;
import javax.swing.ComboBoxModel;
import javax.swing.ListModel;
import org.helioviewer.base.logging.Log;
import org.helioviewer.gl3d.camera.GL3DCamera;
import org.helioviewer.gl3d.camera.GL3DFixedT... |
package org.joml;
public class Math {
private static final boolean fastMath = Options.hasOption("joml.fastmath");
private static final boolean sinlookup = Options.hasOption("joml.sinLookup");
public static final double PI = java.lang.Math.PI;
private static final double PI2 = PI * 2.0;
private stati... |
package com.nio.select;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import java.util... |
package org.cloudname.testtools.network;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.logging.Level;
import java.util.logging.Logg... |
package org.bouncycastle.jsse.provider;
import java.io.IOException;
import java.security.AlgorithmParameters;
import java.security.GeneralSecurityException;
import java.security.PublicKey;
import java.security.cert.CertPathValidatorException;
import java.security.cert.Certificate;
import java.security.cert.CertificateP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.