answer stringlengths 17 10.2M |
|---|
package com.netflix.governator.lifecycle;
/**
* Callback for injected instances
*/
public interface LifecycleListener
{
/**
* When Guice injects an object, this callback will be notified
*
* @param obj object being injected
*/
public void objectInjected(Object obj);
/**
* Call... |
// This file is part of the OpenNMS(R) Application.
// OpenNMS(R) is a derivative work, containing both original code, included code and modified
// and included code are below.
// OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
// Modifications:
// 2003 Jan 31: Cleaned up some unused imports.
// This p... |
package som.interpreter.nodes.specialized;
import som.interpreter.Method;
import som.interpreter.nodes.ExpressionNode;
import som.interpreter.nodes.MessageNode;
import som.vm.Universe;
import som.vmobjects.SClass;
import som.vmobjects.SInvokable;
import som.vmobjects.SObject;
import som.vmobjects.SSymbol;
import com.or... |
/*
* $Log: ReceiverBaseClassic.java,v $
* Revision 1.2 2007-10-23 12:53:20 europe\M00035F
* Fix NPE when no error-storage and no inprocess-storage have been defined, but only an error-sender
*
* Revision 1.1 2007/10/16 12:40:36 Gerrit van Brakel <gerrit.van.brakel@ibissource.org>
* moved code to ReceiverBaseC... |
package com.celements.validation;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.eq;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.same;
import static org.easymock.EasyMock.verify;
import static org.junit.... |
package com.safecharge.request.builder;
import com.safecharge.model.CardData;
import com.safecharge.model.ExternalMpi;
import com.safecharge.model.ExternalTokenProvider;
import com.safecharge.model.UserPaymentOption;
import com.safecharge.request.SafechargeCCRequest;
import com.safecharge.util.CardUtils;
import com.saf... |
package com.bitplan.mediawiki.japi;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.Test;
import com.bitplan.mediawiki.japi.api.Api;
import com.bitplan.mediawiki.japi.api.Module;
import com.bitplan.mediawiki.japi.api.Paraminfo;
import com.bitplan.mediawiki.japi.api.Warnings;
/**
* test Api de... |
package org.cytoscape.kegg.webservice;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import cytoscape.CyNetwork;
import cytoscape.CyNode;
import cytoscape.Cytoscape;
import cytoscape.data.CyAttributes;
p... |
package com.rgi.geopackage.core;
import java.io.File;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
impo... |
package org.deri.any23.writer;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.deri.any23.extractor.ExtractionContext;
import com.hp.hpl.jena.graph.Node;
public class BenchmarkTripleHandler implements TripleHandler {
private TripleHandler _underlyingHandler;
private cla... |
package com.github.millij.eom;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.millij.eom.bea... |
package com.lucythemoocher.controls;
import com.lucythemoocher.game.Game;
import android.util.Log;
import android.view.MotionEvent;
public class PlayerController {
private static final int LEFT = -1;
private static final int RIGHT = 1;
private static final int DOWN = -1;
private static final int UP = 1;... |
package com.tikal.jenkins.plugins.multijob;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.Util;
import hudson.console.HyperlinkNote;
import hudson.model.Action;
import hudson.model.BallColor;
import hudson.model.BuildListener;
import hudson.model.DependecyDeclarer;
import hudson... |
package com.github.mnicky.bible4j.data;
import static org.testng.Assert.assertEquals;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.github.mnicky.bible4j.data.BibleBook;
import com.github.mnicky.bible4j.data.Bookmark;
import com.github.mnicky.bible4... |
package org.glassfish.jms2lab;
import javax.annotation.Resource;
import javax.inject.Inject;
import javax.jms.ConnectionFactory;
import javax.jms.JMSContext;
import javax.jms.JMSException;
import javax.jms.Queue;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
im... |
package com.zeljic.imgoptimizer.controllers;
import java.io.File;
import java.io.FilenameFilter;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
i... |
package com.evolveum.polygon.connector.csv;
import com.evolveum.polygon.connector.csv.util.CsvTestUtil;
import com.evolveum.polygon.connector.csv.util.Util;
import org.apache.commons.io.FileUtils;
import org.identityconnectors.common.logging.Log;
import org.identityconnectors.common.security.GuardedString;
import org.i... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package com.github.wz2cool.dynamic;
import com.github.wz2cool.dynamic.mybatis.db.mapper.UserDao;
import com.github.wz2cool.dynamic.mybatis.db.model.entity.table.User;
import com.sun.javafx.tk.TKPulseListener;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Aut... |
package crazypants.enderio.machine.monitor;
import static crazypants.enderio.machine.power.PowerDisplayUtil.*;
import java.awt.Color;
import java.awt.Rectangle;
import java.text.NumberFormat;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiTextFiel... |
package com.elmakers.mine.bukkit.action;
import org.bukkit.configuration.ConfigurationSection;
import com.elmakers.mine.bukkit.api.action.ActionHandler;
import com.elmakers.mine.bukkit.api.action.CastContext;
import com.elmakers.mine.bukkit.api.spell.Spell;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
public ... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package com.macro.mall.dao;
import com.macro.mall.dto.SmsCouponParam;
import org.apache.ibatis.annotations.Param;
public interface SmsCouponDao {
SmsCouponParam getItem(@Param("id") Long id);
} |
package com.github.dozedoff.commonj.file;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
impo... |
package com.romainpiel.lib.helper;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.YuvImage;
import android.hardware.Camera;
import android.os.Handler;
import com.romainpiel.Constants;
import com.romainpiel.lib.... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package com.github.dozedoff.commonj.net;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net... |
package hex.tree;
import water.MemoryManager;
import water.util.ArrayUtils;
import water.util.AtomicUtils;
import water.util.IcedBitSet;
import water.util.MathUtils;
/** A Histogram, computed in parallel over a Vec.
*
* <p>Sums and sums-of-squares of floats
*
* @author Cliff Click
*/
public class DRealHistogram ... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
/*
* Constants.java
*
*/
package de.uni_stuttgart.vis.vowl.owl2vowl.model;
/**
* @author Vincent Link, Eduard Marbach
*/
public class Constants {
/* NODE TYPES */
public static final String TYPE_CLASS = "owl:Class";
public static final String TYPE_RDFSCLASS = "rdfs:Class";
public static final Strin... |
package hex;
import hex.genmodel.GenModel;
import water.MRTask;
import water.Scope;
import water.exceptions.H2OIllegalArgumentException;
import water.fvec.Chunk;
import water.fvec.Frame;
import water.fvec.Vec;
import water.util.ArrayUtils;
import water.util.Log;
import water.util.MathUtils;
import java.util.Arrays;
pub... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package com.spatial4j.core.shape;
import com.carrotsearch.randomizedtesting.RandomizedTest;
import com.spatial4j.core.context.SpatialContext;
import com.spatial4j.core.distance.DistanceUtils;
import com.spatial4j.core.shape.impl.Range;
import static com.spatial4j.core.shape.SpatialRelation.CONTAINS;
import static com.s... |
package edu.umich.umms.worldofworkcraft.domain;
import lombok.Data;
import org.neo4j.graphdb.Direction;
import org.springframework.data.neo4j.annotation.Fetch;
import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.NodeEntity;
import org.springframework.data.neo4j.ann... |
package com.treasure_data.jdbc;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import org.... |
package water.rapids;
// Since we have a single key field in H2O (different to data.table), bmerge() becomes a lot simpler (no
// need for recursion through join columns) with a downside of transfer-cost should we not need all the key.
import water.*;
import water.fvec.Chunk;
import water.fvec.Frame;
import water.fvec.... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package com.wizzardo.tools.collections.flow;
import com.wizzardo.tools.collections.flow.flows.FlowProcessOnEnd;
import org.junit.Assert;
import org.junit.Test;
import java.util.*;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;
public class FlowTest {
@Test
public void t... |
package mho.wheels.iterables;
import mho.wheels.math.BinaryFraction;
import mho.wheels.numberUtils.BigDecimalUtils;
import mho.wheels.numberUtils.FloatingPointUtils;
import mho.wheels.ordering.Ordering;
import mho.wheels.ordering.comparators.ListBasedComparator;
import mho.wheels.ordering.comparators.WithNullComparator... |
package io.autoscaling.ingestion.verticles;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
import com.amazonaws.auth.EnvironmentVariableCredentialsProvider;
import com.amazonaws.regions.Region;
import com.amazonaw... |
package org.pwsafe.lib.file;
import junit.framework.TestCase;
import org.pwsafe.util.FileConverter;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
public class PwsFileV1Test extends TestCase {
private static final String PASSPHRASE = "passphrase";
/**
* Tests that the library c... |
package de.quaddy_services.ptc.edit;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.... |
package org.auslides.security.rest;
import org.auslides.security.config.RepositoryConfig;
import org.auslides.security.config.ShiroConfig;
import org.auslides.security.model.Permission;
import org.auslides.security.model.Role;
import org.auslides.security.model.User;
import com.fasterxml.jackson.core.JsonProcessingExce... |
package gov.usgs.cida.wqp.exception;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import org.junit.jupiter.api.Test;
public class ... |
package it.sauronsoftware.ftp4j.listparsers;
import it.sauronsoftware.ftp4j.FTPFile;
import it.sauronsoftware.ftp4j.FTPListParseException;
import it.sauronsoftware.ftp4j.FTPListParser;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import jav... |
package harmony.mastermind.testutil;
import java.util.List;
import harmony.mastermind.commons.exceptions.IllegalValueException;
import harmony.mastermind.model.TaskManager;
import harmony.mastermind.model.task.*;
import harmony.mastermind.model.task.UniqueTaskList.TaskNotFoundException;
public class TypicalTestTasks {
... |
package io.ebean.docker.commands;
import io.ebean.docker.container.Container;
import io.ebean.docker.container.ContainerConfig;
import io.ebean.docker.container.ContainerFactory;
import org.junit.Ignore;
import org.junit.Test;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
... |
package modtweaker2.mods.factorization;
import static modtweaker2.helpers.ReflectionHelper.getStaticObject;
import java.util.List;
import modtweaker2.helpers.ReflectionHelper;
import net.minecraft.item.ItemStack;
public class FactorizationHelper {
@SuppressWarnings("rawtypes")
public static List lacerator = nul... |
package org.fluentd.logger.sender;
import org.fluentd.logger.util.MockFluentd;
import org.fluentd.logger.util.MockFluentd.MockProcess;
import org.junit.Test;
import org.msgpack.MessagePack;
import org.msgpack.unpacker.Unpacker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedInputStream;... |
package jenkins.plugins.coverity.ws;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.io.IOException;
i... |
package net.acesinc.data.json.generator.types;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
/**
*
* @author andrewserff
*/
public abstract class BaseDateType extends TypeHandler {
private Date min;
private Date max;
public ... |
package jenkins.plugins.git;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.Action;
import hudson.model.Actionable;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.plugins.git.UserRemoteConfig;
import hudson.plugins.git.extensions.impl.IgnoreNotifyCommit;
import hudson.scm.... |
package net.arcation.allegiance.listeners;
import net.arcation.allegiance.Allegiance;
import net.arcation.allegiance.data.PlayerData;
import net.arcation.allegiance.targets.PlaytimeTarget;
import net.arcation.allegiance.util.Hash;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
im... |
package org.kohsuke.github;
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer;
import com.github.tomakehurst.wiremock.extension.responsetemplating.helpers.HandlebarsCurrentDateHelper;
import org.apache.commo... |
package jenkins.plugins.git;
import hudson.model.TaskListener;
import hudson.util.StreamTaskListener;
import jenkins.plugins.git.traits.BranchDiscoveryTrait;
import jenkins.scm.api.trait.SCMSourceTrait;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.... |
package net.floodlightcontroller.pktinhistory;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import net.floodlightcontroller.core.IFloodlightProviderService;
import net.floodlightcontroller.core.types.SwitchMessagePair;
import org.openflow.protocol.OFMessage;
i... |
package jenkins.plugins.git;
import hudson.model.TaskListener;
import hudson.util.StreamTaskListener;
import jenkins.plugins.git.traits.BranchDiscoveryTrait;
import jenkins.scm.api.trait.SCMSourceTrait;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import java.util.Collections;... |
package net.interfax.rest.client.impl;
import net.interfax.rest.client.InterFAXClient;
import net.interfax.rest.client.config.ClientConfig;
import net.interfax.rest.client.config.ClientCredentials;
import net.interfax.rest.client.config.ConfigLoader;
import net.interfax.rest.client.domain.APIResponse;
import net.interf... |
package net.onrc.onos.intent.runtime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.floodlightcontroller.core.mo... |
package tech.greenfield.vertx.irked;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.RunTestOnContext;
import io.v... |
package net.openhft.chronicle.wire;
import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.bytes.BytesUtil;
import org.junit.Ignore;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
public class YamlTokeniserTest {
public static String doTest(String res... |
package net.sourceforge.cilib.problem;
import net.sourceforge.cilib.type.types.Type;
/**
* This class represents a solution to an {@link net.sourceforge.cilib.problem.OptimisationProblem}.
* It is responsible for keeping track of the optimisation problem and position of the solution within the search
* space.
*
* ... |
package uk.co.epsilontechnologies.watcher;
import org.apache.commons.io.IOUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.HttpMethod;
import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client.ClientHttpResponse;
import... |
package net.sf.jabref.exporter;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import java.io.File;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
im... |
package net.spy.memcached.protocol.binary;
import java.util.Collection;
import java.util.Collections;
import net.spy.memcached.ops.GetAndTouchOperation;
import net.spy.memcached.ops.GetOperation;
import net.spy.memcached.ops.GetlOperation;
import net.spy.memcached.ops.GetsOperation;
import net.spy.memcached.ops.Operati... |
package com.bomberman.client;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
import org.json.JSONArray;
import org.json.JSONObject;
public class Client {
private MessageQu... |
package retrofit;
import java.io.IOException;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import retrofit.client.Reque... |
package ogiba.styleablesharedialog.ShareDialog;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Configuration;
import android.graphics.Point;
import android.os.Bundle;
import android.support.... |
package org.dynalang.dynalink.beans;
import static org.dynalang.dynalink.beans.TestBeansLinker.createCallSiteDescriptor;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodType;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.... |
package net.wasdev.gameon.room;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Scanne... |
package org.fujaba.graphengine.unitTests;
import org.junit.Test;
import java.util.ArrayList;
import org.fujaba.graphengine.GraphEngine;
import org.fujaba.graphengine.Match;
import org.fujaba.graphengine.PatternEngine;
import org.fujaba.graphengine.graph.Graph;
import org.fujaba.graphengine.graph.Node;
import org.fujaba... |
package org.littleshoot.proxy;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import org.jboss.netty.handler.codec.http.HttpRequest;
import org.junit.Test;
/**
* Test for HTTP request URI rules.
*/
public class HttpRequestUriRuleTest {
@Test publi... |
package org.mythtv.services.api.test.v027;
import org.junit.Ignore;
import org.junit.Test;
import org.mythtv.services.api.Bool;
import org.mythtv.services.api.ETagInfo;
import org.mythtv.services.api.v027.DvrOperations;
import org.mythtv.services.api.v027.beans.ProgramList;
import org.mythtv.services.api.v027.beans.Rec... |
package org.asteriskjava.manager;
import org.asteriskjava.manager.event.ManagerEvent;
import org.asteriskjava.util.DaemonThreadFactory;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
impor... |
package teetime.framework.pipe;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import teetime.util.classpath.ClassForNameResolver;
import com.google.common.base.Charsets;
import com.google.common.io... |
package org.b3log.symphony.processor.channel;
import org.b3log.latke.Keys;
import org.b3log.latke.ioc.LatkeBeanManager;
import org.b3log.latke.ioc.Lifecycle;
import org.b3log.latke.logging.Logger;
import org.b3log.latke.model.User;
import org.b3log.latke.service.ServiceException;
import org.b3log.symphony.model.Pointtr... |
package org.apache.commons.io.testtools;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Writer;
import java.util.Arrays;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org... |
package org.buddycloud.channelserver.channel;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.apache.log4j.Logger;
import org.dom4j.Element;
import org.dom4j.dom.DOMElement;
public class ValidateEntry {
public static final String MISSING_CONTENT_ELEMENT = "co... |
package org.ditacommunity.i18n.collation;
import java.text.CollationKey;
import java.text.Collator;
import java.util.HashMap;
import java.util.Locale;
import com.ibm.icu.text.RuleBasedCollator;
import net.sf.saxon.expr.sort.AtomicMatchKey;
import net.sf.saxon.lib.StringCollator;
/**
* Rules-based collator that uses th... |
package org.lightmare.jpa.datasource;
import java.io.IOException;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
import javax.naming.Context;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
import org.lightmare.config.... |
package dk.aau.sw402F15.CodeGenerator;
import dk.aau.sw402F15.Symboltable.Scope;
import dk.aau.sw402F15.Symboltable.ScopeDepthFirstAdapter;
import dk.aau.sw402F15.Symboltable.Symbol;
import dk.aau.sw402F15.Symboltable.SymbolArray;
import dk.aau.sw402F15.Symboltable.SymbolFunction;
import dk.aau.sw402F15.Symboltable.Typ... |
package org.parboiled.transform.process;
import com.github.parboiled1.grappa.annotations.WillBeFinal;
import com.github.parboiled1.grappa.transform.CodeBlock;
import com.github.parboiled1.grappa.transform.asm.LoadingOpcode;
import com.google.common.base.Preconditions;
import me.qmx.jitescript.util.CodegenUtils;
import ... |
package start;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
public class Main extends Application {
@Override
public void start(Stage stage) throws Exception {
Pare... |
package us.kbase.workspace.test.kbase;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import static us.kbase.common.test.TestCommon.set;
import static us.kbase.common.test.controllers.ControllerCommon.makeTempDirs;
import java.io.BufferedWrite... |
package org.petapico.npop.fingerprint;
import java.util.ArrayList;
import java.util.List;
import net.trustyuri.TrustyUriUtils;
import net.trustyuri.rdf.RdfHasher;
import net.trustyuri.rdf.RdfPreprocessor;
import org.nanopub.Nanopub;
import org.nanopub.NanopubUtils;
import org.openrdf.model.Resource;
import org.openrdf.... |
package bisq.monitor.metric;
import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.core.env.PropertySource;
import bisq.common.Clock;
import bisq.common.app.Version;
import bisq.commo... |
package org.pfaa.geologica.registration;
import java.util.List;
import org.pfaa.chemica.item.IndustrialMaterialItem;
import org.pfaa.chemica.model.Strength;
import org.pfaa.chemica.processing.TemperatureLevel;
import org.pfaa.chemica.registration.RecipeRegistry;
import org.pfaa.chemica.registration.RecipeUtils;
import ... |
package org.pfaa.geologica.registration;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Craft... |
package org.sagebionetworks.web.client.view;
import org.gwtbootstrap3.client.ui.Heading;
import org.sagebionetworks.web.client.DisplayUtils;
import org.sagebionetworks.web.client.presenter.EntityPresenter;
import org.sagebionetworks.web.client.widget.LoadingSpinner;
import com.google.gwt.core.client.GWT;
import com.goo... |
package org.spongepowered.api.block.tile.carrier;
import org.spongepowered.api.entity.projectile.source.BlockProjectileSource;
/**
* Represents a Dispenser.
*/
public interface Dispenser extends TileEntityCarrier, BlockProjectileSource {
/**
* Checks if this is a flowerpot.
*
* @return Whether this... |
package org.spongepowered.api.event.world;
import org.spongepowered.api.Game;
import org.spongepowered.api.world.World;
/**
* Called when a {@link Game} unloads a {@link World} level.
*/
public interface WorldUnloadEvent extends WorldEvent {
/**
* Checks if this is a flowerpot.
*
* @return Whether ... |
package nakadi;
import com.google.gson.GsonBuilder;
import io.reactivex.Flowable;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import okhttp3.OkHttpClient;
/**
* Essentially a dummy main class to keep the Shadow plugin happy, but also lets us check the
... |
package org.spongepowered.common.block;
import net.minecraft.core.BlockPos;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.entity.BlockEntity;
import org.apache.logging.log4j.Level;
import org.che... |
package org.unitedinternet.cosmo.dav.impl;
import carldav.jackrabbit.webdav.property.CustomDavPropertySet;
import carldav.jackrabbit.webdav.version.report.CustomReportType;
import org.apache.commons.lang.StringEscapeUtils;
import org.unitedinternet.cosmo.dav.CosmoDavException;
import org.unitedinternet.cosmo.dav.DavRes... |
package org.vetmeduni.tools.implemented;
import htsjdk.samtools.*;
import htsjdk.samtools.fastq.FastqWriter;
import htsjdk.samtools.fastq.FastqWriterFactory;
import htsjdk.samtools.util.ProgressLogger;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options... |
package refinedstorage.tile.data;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializer;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import... |
package ru.VirtaMarketAnalyzer.data;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public final class ProductionAboveAverage {
@SerializedName("mi")
final private String manufactureID;
@SerializedName("s")
final private String specialization;
@SerializedName("pi")
fin... |
package us.guihouse.projector.projection;
import java.awt.*;
import com.sun.javafx.embed.EmbeddedSceneInterface;
import javafx.embed.swing.JFXPanel;
import javafx.embed.swing.SwingNode;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.web.WebView;
import javax.sw... |
package works.chatterbox.chatterbox.channels;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import ninja.leaping.configurate.ConfigurationNode;
import org.jetbrains.annotations.NotNull;
import org... |
/*
* @author wangzhongqiu
* (0)Javanative
* JVMJDKUnsafe
* CAS
* unsafe.compareAndSwapInt(this, stateOffset, expect, update)
* CASCPU
* CAS
* ABA
* (0)LockSupport
* park():Waiting,
* unpark(thread):thread
* (1)ReentrantLockstateCASFIFO
* ReentrantLockAQSjava
* synchronizedA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.