answer stringlengths 17 10.2M |
|---|
package org.voltdb;
import static com.google_voltpatches.common.base.Preconditions.checkNotNull;
import java.io.File;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Callable;... |
package edu.kit.iti.formal.pse.worthwhile.prover;
import java.util.Map;
import edu.kit.iti.formal.pse.worthwhile.interpreter.Value;
import edu.kit.iti.formal.pse.worthwhile.model.ast.Expression;
import edu.kit.iti.formal.pse.worthwhile.model.ast.Program;
/**
* Facade class for the {@link prover} package.
*/
public cl... |
package net.somethingdreadful.MAL;
import android.content.res.Configuration;
import org.holoeverywhere.ThemeManager;
import org.holoeverywhere.app.Application;
import java.util.Locale;
public class Theme extends Application {
Locale locale;
@Override
public void onCreate() {
super.onCreate();
... |
package gov.nih.nci.calab.domain;
import java.util.Collection;
import java.util.HashSet;
/**
* @author zengje
*
*/
public class DerivedDataFile extends LabFile {
private Collection<Keyword> keywordCollection = new HashSet<Keyword>();
public DerivedDataFile() {
super();
// TODO Auto-generated ... |
package io.core9.proxy;
import io.core9.firewall.rules.FirewallRequestRulesEngine;
import io.core9.rules.RuleException;
import io.core9.rules.Status;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.DefaultFullHttpResponse;
import io.netty.handler.codec.http.HttpObject;
import io.netty.... |
package Scrayble;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
} |
package io.tetrapod.core;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.*;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.ssl.SslHandler;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import javax... |
package graphics.nim.volterra;
import java.util.HashMap;
import graphics.nim.volterra.util.Matrix4f;
import static org.lwjgl.opengl.GL20.*;
public class Shader {
private int handle;
private HashMap<String, Integer> locationMap = new HashMap<String, Integer>();
public Shader(int handle) {
this.handle... |
package jolie.net;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
im... |
package org.jboss.as.protocol.mgmt;
import static org.jboss.as.protocol.old.ProtocolUtils.expectHeader;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import ja... |
package com.relayrides.pushy.apns;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.relayrides.pushy.apns.auth.ApnsVerificationKey;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandlerContext;
import io.... |
package com.jetbrains.python.actions;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
import com.jetbrains.python.PyBundle;
import com.jetbrains.python.psi.*;
import com.jetbrains.pyt... |
package com.podio.sdk.volley;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import com.android.volley.AuthFailureError;
import com.android.vo... |
package org.codehaus.modello.plugin.java;
import org.codehaus.modello.ModelloException;
import org.codehaus.modello.ModelloRuntimeException;
import org.codehaus.modello.model.CodeSegment;
import org.codehaus.modello.model.Model;
import org.codehaus.modello.model.ModelAssociation;
import org.codehaus.modello.model.Model... |
package jade.core.sam;
/**
* A default ready-made implementation of the AverageMeasureProvider interface that offers
* methods to add measure samples and automatically computes an <code>AverageMeasure</code>
* when the <code>getValue()</code> method is called.
*/
public class AverageMeasureProviderImpl implements ... |
package org.activiti.cycle.impl.connector.signavio.provider;
import org.activiti.cycle.Content;
import org.activiti.cycle.RepositoryArtifact;
import org.activiti.cycle.impl.connector.signavio.SignavioConnector;
import org.activiti.cycle.impl.connector.signavio.util.SignavioSvgApiBuilder;
public class SvgApiProvider ext... |
package org.xins.types.standard;
import org.xins.types.Type;
import org.xins.types.TypeValueException;
import org.xins.util.MandatoryArgumentChecker;
import org.xins.util.text.FastStringBuffer;
/**
* Standard type <em>_date</em>.
*
* @version $Revision$ $Date$
* @author Ernst de Haan (<a href="mailto:znerd@FreeBSD.... |
package org.xins.util.io;
import java.io.File;
import org.xins.util.MandatoryArgumentChecker;
/**
* File watcher thread. This thread checks if a file changed and if it has, it
* notifies the listener. The check is performed every <em>n</em> seconds,
* where <em>n</em> can be configured.
*
* @version $Revision$ $Da... |
package com.sun.facelets;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Writer;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.FacesExce... |
package nginx.clojure.logger;
import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* This tiny log service is mainly for debug use
*/
public class TinyLogService implements LoggerService {
public static final String NGINX_CLOJURE... |
package org.eclipse.mylyn.internal.tasks.ui.views;
import java.util.Arrays;
import org.eclipse.mylyn.context.core.ContextCorePlugin;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiImages;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPreferenceConstants;
import org.eclipse.mylyn.tasks.core.AbstractTask;
import o... |
package jycessing.mode.run;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.RMIClientSocketFactory;
i... |
package org.jdesktop.swingx;
import java.awt.Container;
import java.awt.Rectangle;
import javax.swing.JComponent;
import javax.swing.RepaintManager;
/**
* <p>An implementation of {@link RepaintManager} which adds support for transparency
* in {@link JXPanel}s. <code>JXPanel</code> (which supports translucency) will
... |
package org.mwg.experiments.smartgridprofiling.gmm;
//import org.graphstream.graph.implementations.SingleGraph;
//import org.graphstream.ui.swingViewer.View;
//import org.graphstream.ui.swingViewer.Viewer;
import org.math.plot.Plot3DPanel;
import org.mwg.Callback;
import org.mwg.Graph;
import org.mwg.GraphBuilder;
impo... |
package edu.umd.cs.findbugs;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.... |
package ua.com.fielden.platform.sample.domain;
import ua.com.fielden.platform.dao.CommonEntityDao;
import ua.com.fielden.platform.dao.annotations.SessionRequired;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.entity.fetch.IFetchProvider;
import ua.com.fielden.platform.entity.query... |
package eu.cloudscaleproject.env.example.common;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringWriter;
import java.net.URL;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Logger;
import java.util.zip.ZipFile;
import org.ec... |
package services.languageProcessor;
import com.fasterxml.jackson.databind.JsonNode;
import play.Configuration;
import play.api.Play;
import play.libs.Json;
import play.libs.ws.WSClient;
import play.libs.ws.WSRequest;
import play.libs.ws.WSResponse;
import services.IntentEntity;
import java.util.concurrent.CompletionSta... |
package org.voovan.tools;
import java.lang.ref.PhantomReference;
import java.lang.ref.Reference;
import java.lang.ref.ReferenceQueue;
import java.util.Timer;
import java.util.TimerTask;
public class Cleaner extends PhantomReference<Object> {
private static final ReferenceQueue<Object> dummyQueue = new ReferenceQueu... |
package com.evolveum.midpoint.task.quartzimpl;
import static com.evolveum.midpoint.test.IntegrationTestTools.display;
import static org.testng.AssertJUnit.assertEquals;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import ... |
package org.eclipse.che.selenium.miscellaneous;
import static java.lang.String.valueOf;
import static org.testng.Assert.fail;
import com.google.inject.Inject;
import java.net.URL;
import java.nio.file.Paths;
import org.eclipse.che.commons.lang.NameGenerator;
import org.eclipse.che.selenium.core.client.TestProjectServic... |
package magpie.models.regression;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import magpie.data.Dataset;
import magpie.user.CommandHandler;
import magpie.utility.MathUtils;
import org.apache.commons.math3.stat.StatUtils;
import org.apache.commons.math3.stat.correlation.PearsonsCorrelat... |
package org.collectionspace.services.client.test;
import java.util.List;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.collectionspace.services.client.VocabularyClient;
import org.collectionspace.services.vocabulary.VocabulariesCommon;
import org.collectionspace.services.vocabulary.Voc... |
package magpie.utility.tools;
import java.util.*;
import magpie.data.BaseEntry;
import magpie.data.materials.CompositionDataset;
import magpie.data.materials.CompositionEntry;
import magpie.data.utilities.generators.PhaseDiagramCompositionEntryGenerator;
import magpie.utility.interfaces.Commandable;
import org.apache.c... |
package de.qaware.oss.cloud.nativ.wjax2016;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.social.TwitterAutoConfiguration;
import... |
package bdv.export;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.CountDownLatch;
import bdv.export.WriteSequenceToHdf5.AfterEachPlane;
import bdv.export.Writ... |
package boilerplate.common;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.... |
package br.uff.ic.utility.graph;
import br.uff.ic.provviewer.VariableNames;
import br.uff.ic.utility.GraphAttribute;
import br.uff.ic.utility.Utils;
import static br.uff.ic.utility.Utils.isItTime;
import java.awt.BasicStroke;
import java.awt.Paint;
import java.awt.Stroke;
import java.util.HashMap;
import java.util.Map;... |
package ciir.umass.edu.learning;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import ciir.umass.edu.learning.RankList;
import ciir.umass.edu.metric.MetricScorer;
import ciir.umass.edu.utilities.FileUtils;
import ciir.umass.edu.... |
package com.akiban.server.types;
public enum AkType {
LONG {
@Override
void notNullDispatch(ConversionSource source, ConversionTarget target) {
target.setLong(source.getLong());
}
},
DATE {
@Override
void notNullDispatch(ConversionSource source, Conversion... |
package com.altamiracorp.miniweb;
import com.altamiracorp.miniweb.utils.UrlUtils;
import javax.servlet.http.HttpServletRequest;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Route {
public static enum Method {GET, POST, PUT, DELETE}
;
private Method method;
private String ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.areen.jlib.gui.weber;
import javax.swing.event.*;
import javax.swing.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.text.Document;
/**
A simple Web Web... |
package com.axelby.podax;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.con... |
package com.ct.ks.bsc.qte.db;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org... |
package com.cx.plugin;
import com.cx.client.*;
import com.cx.client.dto.*;
import com.cx.client.exception.CxClientException;
import com.cx.client.rest.dto.CreateOSAScanResponse;
import com.cx.client.rest.dto.OSASummaryResults;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apac... |
package com.dev9.mvnwatcher;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
class MvnMonitor implements Runnable {
private List<ProcessBuilder> config;
private Process watchedProcess;
public boolean dirty = true;
public boolea... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
public class _250 {
public static class Solution1 {
public int countUnivalSubtrees(TreeNode root) {
int[] count = new int[1];
helper(root, count);
return count[0];
}
private... |
package com.fishercoder.solutions;
public class _351 {
public static class Solution1 {
private int[][] jumps;
private boolean[] visited;
public int numberOfPatterns(int m, int n) {
jumps = new int[10][10];
jumps[1][3] = jumps[3][1] = 2;
jumps[4][6] = jumps... |
package com.fishercoder.solutions;
public class _488 {
public static class Solution1 {
int maxcount = 6; // the max balls you need will not exceed 6 since "The number of balls in your hand won't exceed 5"
public int findMinStep(String board, String hand) {
int[] handCount = new int[26]... |
package com.fishercoder.solutions;
public class _498 {
public static class Solutoin1 {
public int[] findDiagonalOrder(int[][] matrix) {
if (matrix == null || matrix.length == 0) {
return new int[0];
}
int m = matrix.length;
int n = matrix[0].le... |
package com.fishercoder.solutions;
public class _556 {
public static class Solution1 {
public int nextGreaterElement(int n) {
char[] digits = String.valueOf(n).toCharArray();
int i = digits.length - 2;
while (i >= 0 && digits[i + 1] <= digits[i]) {
i
... |
package com.fishercoder.solutions;
public class _673 {
public static class Solution1 {
public int findNumberOfLIS(int[] nums) {
int n = nums.length;
int[] cnt = new int[n];
int[] len = new int[n];
int max = 0;
int count = 0;
for (int i ... |
package com.jaamsim.input;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import com.jaamsim.basicsim.ErrorException;
import com.jaamsim.units.Unit;
import com.sandwell.... |
package com.johnnywey.flipside.box;
public interface Box<T> {
T get();
T getOrElse(T alternateIn);
Boolean isEmpty();
/**
* If the box is full, invoke the specified consumer with the value of {@link #get()}, otherwise do nothing.
* Works similarly to {@code Optional#ifPresent} in JDK 8+.
... |
package com.lsnare.film.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.lsnare.film.dao.FilmDAO;
import com.lsnare.film.model.Actor;
import com.lsnare.film.model.Director;
import com.lsnare.film.model.Film;
import com.lsnare.film.service.HTTPService;
import org.apache.commons.logging.L... |
package com.matt.forgehax.mods;
import com.google.common.collect.Sets;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.google.gson.JsonPrimitive;
import com.matt.forgehax.events.ChatMessageEvent;
import com.matt.forgehax.events.LocalPlayerUpdateEvent;
... |
package com.matt.forgehax.mods;
import com.matt.forgehax.events.Render2DEvent;
import com.matt.forgehax.util.color.Color;
import com.matt.forgehax.util.color.Colors;
import com.matt.forgehax.util.command.Setting;
import com.matt.forgehax.util.draw.SurfaceBuilder;
import com.matt.forgehax.util.draw.SurfaceHelper;
import... |
package com.nerodesk.takes.doc;
import com.jcabi.log.Logger;
import com.nerodesk.om.Base;
import com.nerodesk.om.Doc;
import com.nerodesk.takes.RqDisposition;
import com.nerodesk.takes.RqUser;
import java.io.IOException;
import java.io.InputStream;
import org.takes.Request;
import org.takes.Response;
import org.takes.T... |
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
// in all copies or ... |
package com.sdl.selenium.web.table;
import com.sdl.selenium.web.SearchType;
import com.sdl.selenium.web.WebLocator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Row extends Abs... |
package com.sendgrid;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.faster... |
package com.shawn.dev;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class SmoothExpression {
public SmoothExpression(final Pattern pattern) {
this.pattern = pattern;
}
public String getRegularExpression() {
return t... |
package com.sjl.dsl4xml;
import org.xmlpull.v1.*;
import com.sjl.dsl4xml.support.*;
public interface ReadingContext {
public abstract void registerConverters(Converter<?>... aConverters);
public abstract <T> T peek();
public abstract void push(Object aContext);
public abstract <T> T pop();
public ab... |
package com.slickqa.client;
import com.slickqa.client.apiparts.ProjectApi;
import com.slickqa.client.apiparts.QueryApi;
import com.slickqa.client.model.Project;
import java.util.Map;
public interface SlickClient
{
/**
* No filtering, retrieve all projects.
*/
public QueryApi<Project> projects();
/... |
package com.stuonline;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Base64;
import android.view.View;
import android.widget.Toast;
import com.alibaba.fastjson.TypeReference;
import com.l... |
package com.wizzardo.jrt;
import com.wizzardo.http.framework.Controller;
import com.wizzardo.http.framework.ControllerUrlMapping;
import com.wizzardo.http.framework.di.DependencyFactory;
import com.wizzardo.http.framework.template.Renderer;
import com.wizzardo.tools.collections.CollectionTools;
import com.wizzardo.tool... |
package crazypants.enderio;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Random;
import crazypants.enderio.capacitor.LootSelector;
import crazypants.enderio.config.Config;
import crazypants.enderio.item.darksteel.DarkSteelItems;
import crazypants.enderio.material.Allo... |
package de.jeha.s3pt;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.Protocol;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
import de.jeha.s3pt.operations.*;
import org... |
package de.tilosp.chess.lib;
public final class ChessPiece {
public final ChessPieceType chessPieceType;
public final PlayerColor playerColor;
private final int movements;
private final int movedInTurn;
private final boolean enPassant;
ChessPiece(ChessPieceType chessPieceType, PlayerColor player... |
package dk.itu.kelvin.util;
// General utilities
import java.util.Arrays;
import java.util.Comparator;
/**
* Collections class.
*/
public final class Collections {
private Collections() {
super();
}
/**
* Sort a list of comparable elements.
*
* <p>
* The list will be sorted in-place.
*
* @... |
package dmillerw.bling;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import dmillerw.bling.client.render.Potio... |
package edu.rice.seclab.dso;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.RandomAccessFile;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Coll... |
package emufog.container;
import static emufog.util.StringUtils.nullOrEmpty;
/**
* Abstract object of a container image placeable in the graph.
* Container images can be specified with a memory and CPU limit.
*/
public abstract class ContainerType {
/* name of the container image */
public final String name;... |
package http.execution;
import lombok.NonNull;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import http.data.*;
import org.apache.http.client.fluent.Request;
import org.apache.http.client.fluent.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... |
package i5.las2peer.p2p;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Serializable;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.UnknownHostException;
import java.sec... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.InputEvent;
import java.beans.PropertyChangeEvent;
import javax.swing.*;
import javax.swing.plaf.LayerUI;
public final class MainPanel extends JPanel {
private final JTextArea lo... |
package me.exz.wailanbt.util;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import org.apache.commons.lang3.StringUtils;
public class NBTHelper {
public static String NBTTypeToString(NBTTagCompound n, String id) {
if (n.hasKey(id)) {
NBTBase tag = n.getTag(id);
... |
package mytown.handlers;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.relauncher.Side;
import mytown.MyTown;
import myessentials.utils.WorldUtils;
import mytown.api.container.TownBlocksContainer;
import mytown.entities.Plot;
import mytown.en... |
package net.darkhax.orestages;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.logging.log4j.Logger;
import net.darkhax.bookshelf.util.RenderUtils;
import net.darkhax.orestages.api.OreTiersAPI;
import net.darkhax.orestages.client.renderer.block.model.BakedModelTiered;
import net.minecraft.block.stat... |
package net.fortuna.ical4j.vcard;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import net.fortuna.ical4j.util.Strings;
import net.fortuna.ical4j.vcard.Property.Name;
/**
* @author Ben
*
*/
public final class VCard implements Serializable {
private static final long serialVersio... |
package net.jforum.search;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import net.jforum.entities.Post;
import net.jforum.exceptions.SearchException;
import n... |
package net.openhft.chronicle.core;
import java.lang.reflect.Field;
import static java.lang.management.ManagementFactory.getRuntimeMXBean;
public enum Jvm {
;
public static final boolean IS_DEBUG = getRuntimeMXBean().getInputArguments().toString().contains("jdwp");
@SuppressWarnings("unchecked")
public ... |
package net.simpvp.Events;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.util.Base64;
import java.util.Collection;
import java.util.UUID;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.command.Command;
i... |
package no.finn.unleash;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import no.finn.unleash.metric.UnleashMetricService;
import no.finn.unleash.metric.UnleashMetricServiceImpl;
import no.finn.unleash.repository.FeatureToggleRepository;
import no.finn.unleash.repositor... |
package no.uis.ux.cipsi.plot;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
import com.panayotis.gnuplot.dataset.Point;
import com.panayotis.gnuplot.dataset.Point... |
package operias.diff;
import java.io.File;
import java.io.IOException;
import java.security.InvalidParameterException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class FileDiffDirectory {
/**
* Directory name
*/
private String directoryName;
/**
* List ... |
package org.animotron.graph;
import javolution.util.FastMap;
import org.animotron.Executor;
import org.animotron.exception.AnimoException;
import org.animotron.statement.operator.THE;
import org.neo4j.graphdb.*;
import org.neo4j.graphdb.index.IndexHits;
import org.neo4j.graphdb.index.IndexManager;
import org.neo4j.grap... |
package org.gitlab4j.api;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
import javax.ws.rs.core.Form;
import j... |
package org.jtrfp.trcl;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math3.geometry.euclidean.threed.Vector3D;
import org.jtrfp.trcl.core.TR;
import org.jtrfp.trcl.core.TextureDescription;
import org.jtrfp.trcl.file.LVLFile;
import org.jtrfp.trcl.file.TDFFile;
impo... |
package org.jtrfp.trcl.obj;
import java.lang.ref.WeakReference;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import org.apache.commons.math3.exception.MathArithmeticException;
import org.apache.... |
package org.lantern;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.Timer;
import... |
package org.narwhal.query;
public abstract class QueryCreator {
/**
* Makes prepared INSERT SQL statement by using the table name.
*
* @param tableName String representation of the table name that maps to the particular entity.
* @return String representation of the INSERT SQL statement.
* ... |
package org.nustaq.offheap;
import org.nustaq.offheap.bytez.ByteSink;
import org.nustaq.offheap.bytez.ByteSource;
import org.nustaq.offheap.bytez.Bytez;
import org.nustaq.offheap.bytez.onheap.HeapBytez;
/**
* an automatically growing byte queue organized as a ringbuffer.
*
* poll* methods don't throw excpetions but ... |
package org.pfaa.chemica.model;
import java.awt.Color;
import org.pfaa.chemica.model.ChemicalStateProperties.Gas;
import org.pfaa.chemica.model.ChemicalStateProperties.Liquid;
import org.pfaa.chemica.model.ChemicalStateProperties.Liquid.Yaws;
import org.pfaa.chemica.model.ChemicalStateProperties.Solid;
import org.pfaa.... |
package org.scm4j.releaser;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import org.scm4j.commons.Version;
import org.scm4j.releaser.actions.ActionKind;
import org.scm4j.releaser.actions.ActionNone;
import org.scm4j.releaser.actions.IAction;
import org.scm4j.rel... |
package org.threadly.load;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.threadly.concurrent.future.ListenableFuture;
import org.threadly.util.Clock;
import org.threadly.util.ExceptionHandler... |
package rmblworx.tools.timey.gui;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProper... |
//@@author A0147996E-reused
package seedu.address.ui;
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.control.SplitPane;
import javafx.s... |
package edu.northwestern.bioinformatics.studycalendar.utils.accesscontrol;
import edu.northwestern.bioinformatics.studycalendar.StudyCalendarError;
import edu.northwestern.bioinformatics.studycalendar.StudyCalendarSystemException;
import edu.northwestern.bioinformatics.studycalendar.domain.Study;
import edu.northwester... |
package tigase.server.bosh;
import tigase.server.Command;
import tigase.server.Packet;
import tigase.util.TigaseStringprepException;
import tigase.xml.Element;
import tigase.xmpp.Authorization;
import tigase.xmpp.JID;
import tigase.xmpp.PacketErrorTypeException;
import tigase.xmpp.StanzaType;
import static tigase.serve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.