answer stringlengths 17 10.2M |
|---|
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
/**101. Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree [1,2,2,3,4,4,3] is symmetric:
1
/ \
2 2
/ \ / \
3 4 4 3
But the following [... |
package ccm.pay2spawn.util;
import ccm.pay2spawn.Pay2Spawn;
import ccm.pay2spawn.hud.CountDownHudEntry;
import ccm.pay2spawn.hud.Hud;
import ccm.pay2spawn.misc.Donation;
import ccm.pay2spawn.misc.Reward;
import ccm.pay2spawn.network.RewardMessage;
import com.google.common.base.Strings;
import cpw.mods.fml.common.FMLCom... |
package com.fishercoder.solutions;
/**
* 238. Product of Array Except Self
*
* Given an array of n integers where n > 1, nums,
* return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].
* Solve it without division and in O(n).
* For example, given [1,2,3,4], r... |
package ch.furthermore.demo.st;
import java.util.Properties;
import com.amazonaws.regions.Regions;
public class Configuration {
private Properties props = new Properties();
private static Configuration singleton = null;
public static interface Keys {
public static final String DYNAMO_REGION = "dynam... |
package com.fishercoder.solutions;
public class _278 {
public static class Solution1 {
public int firstBadVersion(int n) {
int left = 1;
int right = n;
while (left < right) {
int mid = left + (right - left) / 2;
if (isBadVersion(mid)) {
... |
package com.akiban.server;
import com.akiban.server.error.PersistitAdapterException;
import com.akiban.server.service.tree.TreeService;
import com.persistit.Accumulator;
import com.persistit.Exchange;
import com.persistit.Transaction;
import com.persistit.Tree;
import com.persistit.exception.PersistitException;
import ... |
package com.fishercoder.solutions;
public class _302 {
public static class Solution1 {
private char[][] image;
public int minArea(char[][] iImage, int x, int y) {
image = iImage;
int m = image.length;
int n = image[0].length;
int left = searchColumns(0... |
package com.akiban.sql.compiler;
import com.akiban.sql.parser.*;
import com.akiban.sql.StandardException;
import com.akiban.sql.types.DataTypeDescriptor;
import com.akiban.sql.types.TypeId;
import java.util.*;
/** Calculate types from schema information. */
public class TypeComputer implements Visitor
{
public Type... |
package com.fishercoder.solutions;
public class _414 {
public static class Solution1 {
public int thirdMax(int[] nums) {
long max1 = Long.MIN_VALUE;
long max2 = Long.MIN_VALUE;
long max3 = Long.MIN_VALUE;
for (int i : nums) {
max1 = Math.max(ma... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.Node;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class _429 {
public static class Solution1 {
public List<List<Integer>> levelOrder(Node root) {
List<List<... |
package com.fishercoder.solutions;
public class _521 {
public static class Solution1 {
/**
* The gotcha point of this question is:
* 1. if a and b are identical, then there will be no common subsequence, return -1
* 2. else if a and b are of equal length, then any one of them will... |
package com.carpentersblocks.data;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Set;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.world.Worl... |
package components.data;
import com.sun.istack.internal.NotNull;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumnModel;
import java.awt.*;
import java.awt.event.MouseEvent;
public class TitanTable extends JTable {
priv... |
package com.conveyal.r5.analyst;
import com.amazonaws.services.sqs.AmazonSQS;
import com.amazonaws.services.sqs.AmazonSQSClient;
import com.amazonaws.services.sqs.model.MessageAttributeValue;
import com.amazonaws.services.sqs.model.SendMessageRequest;
import com.conveyal.r5.analyst.cluster.GridRequest;
import com.conve... |
/**
* Created Jan 8, 2008
*/
package com.crawljax.browser;
import java.io.File;
import javax.transaction.NotSupportedException;
import org.openqa.selenium.WebElement;
import com.crawljax.core.CrawljaxException;
import com.crawljax.core.state.Eventable;
import com.crawljax.core.state.Identification;
import com.crawlja... |
package com.filestack.util;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
/**
* Intercepts requests to add Filestack-specific headers.
*/
public class HeaderInterceptor implements Interceptor {
public static String HEADER_USER_AGENT = "User-Agent";
pu... |
package com.github.nkzawa.socketio.client;
import com.github.nkzawa.socketio.parser.Parser;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Logger;
public class IO {
private s... |
package com.gliwka.hyperscan.wrapper;
import com.sun.jna.*;
import com.gliwka.hyperscan.jna.*;
import com.sun.jna.ptr.PointerByReference;
import java.nio.charset.StandardCharsets;
import java.util.LinkedList;
import java.util.List;
/**
* Scanner, can be used with databases to scan for expressions in input string
* In... |
package com.kodcu.component;
import com.kodcu.controller.ApplicationController;
import javafx.application.Platform;
import javafx.beans.value.ChangeListener;
import javafx.collections.ObservableList;
import javafx.concurrent.Worker;
import javafx.event.EventHandler;
import javafx.scene.input.DragEvent;
import javafx.sc... |
package com.google.sps.servlets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.google.gson.Gson;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http... |
package com.ociweb.iot.grove;
import com.ociweb.iot.hardware.I2CConnection;
import com.ociweb.iot.hardware.IODevice;
import com.ociweb.iot.maker.Hardware;
/**
* Holds information for all standard Analog and Digital I/O twigs in the Grove starter kit.
*
* Methods are necessary for interpreting new connections declare... |
package com.ociweb.iot.grove;
import com.ociweb.iot.hardware.I2CConnection;
import com.ociweb.iot.hardware.IODevice;
import com.ociweb.iot.maker.Hardware;
/**
* Holds information for all standard Analog and Digital I/O twigs in the Grove starter kit.
*
* Methods are necessary for interpreting new connections declare... |
package com.googlecode.yqltwitter;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URLEncoder;
import java.util.List;
import twitter4j.RateLimitStatus;
import twitter4j.Status;
import ... |
package com.perimeterx.utils;
public final class Constants {
// This token is replaced by maven on validation stage to the pom version
public final static String SDK_VERSION = "@moduleVersion@";
public final static String ACTIVITY_BLOCKED = "block";
public final static String ACTIVITY_PAGE_REQUESTED = "... |
package com.grunka.random.fortuna.tests;
import com.grunka.random.fortuna.Fortuna;
import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.r... |
package com.sematext.in;
import com.sun.mail.imap.IMAPMessage;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options... |
package com.herocc.bukkit.core.api;
import com.herocc.bukkit.core.Core;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class FreezeAPI {
pri... |
package com.wacai.sdk.jtr;
import com.google.common.io.Files;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.handler.HandlerWrapper;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import j... |
package crazypants.enderio;
import java.io.IOException;
import java.util.List;
import javax.annotation.Nonnull;
import javax.xml.stream.XMLStreamException;
import com.enderio.core.common.vecmath.Vector4f;
import crazypants.enderio.config.Config;
import crazypants.enderio.config.recipes.InvalidRecipeConfigException;
imp... |
package de.ddb.pdc.metadata;
import org.springframework.xml.xpath.XPathOperations;
import org.w3c.dom.Node;
import javax.xml.transform.dom.DOMSource;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
/**
* Class to operate with xpath the DDB XML AIP request.
*... |
package de.sjanusch.date;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.Calendar;
import java.util.TimeZone;
import javax.inject.Inject;
public class DateFormatter {
@Inject
public DateFormatter() {
}
public String formatDate(final String input) {
final Calendar calendar = getCalenda... |
package main.java.engine.objects.monster;
import java.awt.geom.Point2D;
import java.util.HashSet;
import java.util.List;
import jgame.JGPoint;
import main.java.engine.objects.Exit;
import main.java.engine.objects.TDObject;
import main.java.engine.objects.monster.jgpathfinder.*;
public abstract class Monster extends TDO... |
package com.matthewhatcher.vpnguard;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerPreLoginEvent;
import org.bukkit.plugin.java.JavaPlugin;
import com.matthewhatcher.vpnguard.Listeners.LoginListener;
public class VPNGuard extends JavaPlugin
{
private VPNGuard instance;
public Login... |
package es.tid.graphlib.sgd;
import org.apache.giraph.Algorithm;
import org.apache.giraph.aggregators.DoubleSumAggregator;
import org.apache.giraph.graph.DefaultEdge;
import org.apache.giraph.graph.Edge;
import org.apache.giraph.master.DefaultMasterCompute;
import org.apache.giraph.vertex.EdgeListVertex;
import org.apa... |
package com.msgilligan.bitcoin.rpc;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.PasswordAuthentication;
import java.net.URL;
import java.util.Arr... |
package io.jbrodriguez.react;
import javax.annotation.Nullable;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import com.facebook.common.logging.FLog;
import com.facebook.infer.annotation.Assertions;
import com.facebook.react.bridge.Argume... |
package com.ociweb.iot.hardware;
import static com.ociweb.pronghorn.pipe.PipeWriter.publishWrites;
import static com.ociweb.pronghorn.pipe.PipeWriter.tryWriteFragment;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ociweb.iot.hardware.HardConnection.ConnectionType;
impor... |
package io.praesid.livestats;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableList.Builder;
import com.google.common.collect.ImmutableMap;
import com.google.common.util.concurrent.AtomicDouble;
import javax.annotation.concurrent.ThreadSafe;
import java.util.Arrays;
import java.... |
package com.plivo.api.models.call;
import com.plivo.api.models.base.ListResponse;
import com.plivo.api.models.base.Lister;
import com.plivo.api.util.PropertyFilter;
public class CallLister extends Lister<Call> {
private String subaccount;
private CallDirection callDirection;
private String fromNumber;
private S... |
package io.sigpipe.sing.stat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class Reservoir<T> {
private int count;
private int size;
private List<Entry> reservoir;
private Random random = new Random();
private class Entry implements... |
package com.rapportive.storm.spout;
import java.io.IOException;
import java.util.Map;
import org.apache.log4j.Logger;
import com.rabbitmq.client.AMQP.Queue;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.QueueingConsume... |
package io.tus.java.client;
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
/**
* This class is used for doing the actual upload of the files. Instances are returned by
* {@link TusClient#createUpload(TusUpload)}, {@link T... |
package com.rollbar.http;
/**
* Represents expected response codes from POSTing an item to Rollbar
*
*/
public enum RollbarResponseCode {
/**
* A successful POST to the API
*/
Success(200),
/**
* Invalid, or missing, JSON POST body.
*/
BadRequest(400),
/**
* Missing Acces... |
package istc.bigdawg.query;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.ServletExc... |
package com.rultor.agents.daemons;
import com.google.common.base.Function;
import com.google.common.base.Joiner;
import com.google.common.base.Predicate;
import com.google.common.base.Splitter;
import com.google.common.collect.Iterables;
import com.jcabi.aspects.Immutable;
import com.jcabi.log.Logger;
import com.jcabi.... |
package me.pagar.util;
import com.google.common.base.Strings;
import com.google.gson.*;
import org.joda.time.LocalDate;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.ISODateTimeFormat;
import java.lang.reflect.Type;
public class LocalDateAdapter i... |
package com.stratio.tests.utils;
import java.net.UnknownHostException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
im... |
package com.twu.biblioteca.model;
import com.twu.biblioteca.exceptions.BookNotBorrowable;
import com.twu.biblioteca.exceptions.BookNotReturnable;
import com.twu.biblioteca.exceptions.MovieNotBorrowable;
import java.util.*;
/**
* Library implementation.
* Library is responsible for holding the available and borrowed b... |
package nablarch.etl;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import javax.batch.api.AbstractBatchlet;
import javax.batch.runtime.context.JobContext;
import javax.batch.runtime.context.StepContext;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
import javax.i... |
package net.amigocraft.mglib.api;
import com.google.common.collect.Lists;
import net.amigocraft.mglib.MGUtil;
import net.amigocraft.mglib.Main;
import net.amigocraft.mglib.RollbackManager;
import net.amigocraft.mglib.UUIDFetcher;
import net.amigocraft.mglib.event.player.PlayerHitArenaBorderEvent;
import net.amigocraft.... |
package net.amigocraft.mglib.api;
import static net.amigocraft.mglib.MGUtil.*;
import static net.amigocraft.mglib.Main.locale;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.R... |
package net.databinder;
import java.net.URL;
import java.util.Locale;
import javax.servlet.http.HttpServletResponse;
import net.databinder.components.PageExpiredCookieless;
import net.databinder.util.URLConverter;
import org.hibernate.cfg.AnnotationConfiguration;
import wicket.ISessionFactory;
import wicket.Session;
im... |
package com.zhan_dui.animetaste;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.graphics.Bitmap... |
package net.simpvp.Jail;
import org.bukkit.OfflinePlayer;
import org.bukkit.Statistic;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
impo... |
package de.alpharogroup.lang;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.ut... |
package net.simpvp.Portals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.UUID;
import org.bukkit.Location;
import org.bukkit.Statistic;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
i... |
package de.diesner.ehzlogger;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
import com.sun.jersey.api.client.filter... |
package de.iani.cubequest.sql;
import de.iani.cubequest.CubeQuest;
import de.iani.cubequest.Reward;
import de.iani.cubequest.questStates.QuestState;
import de.iani.cubequest.questStates.QuestState.Status;
import de.iani.cubequest.sql.util.SQLConnection;
import de.iani.cubequest.util.Pair;
import java.sql.PreparedStatem... |
package org.basex.server;
import static org.basex.core.Text.*;
import static org.basex.util.Token.*;
import java.io.IOException;
import java.net.Socket;
import org.basex.BaseXServer;
import org.basex.core.CommandParser;
import org.basex.core.Context;
import org.basex.core.Main;
import org.basex.core.Proc;
import org.ba... |
package de.quaddy_services.proxy;
import java.awt.AWTException;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Frame;
import java.awt.Image;
import java.awt.SystemTray;
import java.awt.TrayIcon;
import java.awt.TrayIcon.MessageType;
import java.awt.event.ActionEvent;
import java.awt.event.Action... |
package org.codelibs.riverweb;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concu... |
package org.ddd4j.value.collection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Objects;
import ... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 1
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person1 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* name
* ... |
package org.jtrfp.trcl.gui;
import java.beans.PropertyEditor;
import java.beans.PropertyEditorManager;
import java.beans.PropertyEditorSupport;
import org.jtrfp.trcl.gpu.GLFrameBuffer;
public class TRBeanUtils {
public static PropertyEditor getDefaultPropertyEditor(Object o){
try{final PropertyEditorSupport pe ... |
package gg.uhc.uhc.command;
import com.google.common.base.Joiner;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.bukkit.ChatColor;
import org.bukkit.command.*;
import org.bukkit.util.S... |
package org.junit.runners;
import static org.junit.internal.runners.rules.RuleFieldValidator.CLASS_RULE_METHOD_VALIDATOR;
import static org.junit.internal.runners.rules.RuleFieldValidator.CLASS_RULE_VALIDATOR;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.ArrayList;
import ja... |
package invtweaks;
import org.jetbrains.annotations.NotNull;
import java.awt.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Stores a sorting rule, as a target plus a keyword. The target is provided as an array of preferred slots (ex: target
* "1", i.e. first column, is stored as [0, 9, 18, 2... |
package org.lantern;
import java.io.IOException;
import java.lang.management.ManagementFactory;
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.Iterator;
... |
package org.lantern.http;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.se... |
package io.cfp.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.cfp.dto.FullCalendar;
import io.cfp.dto.TalkUser;
import io.cfp.dto.user.Schedule;
import io.cfp.dto.user.UserProfil;
import io.cfp.entity.Event;
import io.cfp.entity.Role;
import io.cfp.entity.Room;
import io.cfp.entity.Talk;
impo... |
package io.featureflow.client;
import org.apache.commons.codec.digest.DigestUtils;
import java.util.ArrayList;
import java.util.List;
public class FeatureControl {
String id;
String key; //the key which is unique per project and used as the human-readable unique key
String environmentId; //the environmentId... |
package org.myrobotlab.service;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.... |
package org.myrobotlab.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import org.myrobotlab.framework.Service;
import org.myrobotlab.framework.ServiceType;
import org.myrobotlab.framework.repo.Category;
import org.myrobotlab.framework.repo.ServiceData;
im... |
package it.near.sdk.Geopolis;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.loopj.android.http.JsonHttpResponseHandler;
import or... |
package org.ndexbio.rest;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Prop... |
package jenkins.plugins.git;
import com.cloudbees.plugins.credentials.CredentialsMatchers;
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.common.StandardCredentials;
import com.cloudbees.plugins.credentials.common.StandardUsernameCredentials;
import com.cloudbees.... |
package org.oakgp.mutate;
import org.oakgp.NodeEvolver;
import org.oakgp.PrimitiveSet;
import org.oakgp.function.Function;
import org.oakgp.node.FunctionNode;
import org.oakgp.node.Node;
import org.oakgp.selector.NodeSelector;
import org.oakgp.util.Random;
/** Performs mutation (also known as node replacement mutation)... |
package me.unrealization.jeeves.modules;
import java.io.IOException;
import java.text.DecimalFormat;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import org.xml.sax.SAXException;
import me.unrealization.jeeves.bot.Jeeves;
import me.unrealization.jeeves.bot.Mess... |
package org.openforis.users.web;
import static spark.Spark.get;
import static spark.Spark.post;
import static spark.Spark.staticFileLocation;
import org.openforis.users.manager.EntityManagerFactory;
import org.openforis.users.model.User;
import spark.Request;
import spark.Response;
import spark.Route;
import spark.serv... |
package mil.dds.anet.resources;
import com.codahale.metrics.annotation.Timed;
import io.leangen.graphql.annotations.GraphQLArgument;
import io.leangen.graphql.annotations.GraphQLMutation;
import io.leangen.graphql.annotations.GraphQLQuery;
import io.leangen.graphql.annotations.GraphQLRootContext;
import java.io.IOExcep... |
package minigamemanager.api.items;
import java.util.Random;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
/**
* Helper class to parse Strings into {@link ItemStack ItemStacks}
*
* @author DonkeyCore
*/
public class ItemParser {
public static ItemS... |
package net.fortytwo.twitlogic;
import net.fortytwo.twitlogic.flow.Handler;
import net.fortytwo.twitlogic.model.Tweet;
import net.fortytwo.twitlogic.model.User;
import net.fortytwo.twitlogic.persistence.TweetPersister;
import net.fortytwo.twitlogic.persistence.TweetStore;
import net.fortytwo.twitlogic.persistence.Tweet... |
package net.jselby.escapists;
import net.jselby.escapists.editor.elements.RenderView;
import net.jselby.escapists.mapping.Map;
import net.jselby.escapists.mapping.MapRenderer;
import net.jselby.escapists.objects.ObjectRegistry;
import net.jselby.escapists.utils.BlowfishCompatEncryption;
import net.jselby.escapists.util... |
package org.qommons.collect;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Spliterator;
import java.util.concurrent.atomic.AtomicInt... |
package net.sf.mzmine.main;
import net.sf.mzmine.modules.batchmode.BatchModeModule;
import net.sf.mzmine.modules.masslistmethods.ADAPchromatogrambuilder.ADAPChromatogramBuilderModule;
import net.sf.mzmine.modules.masslistmethods.chromatogrambuilder.ChromatogramBuilderModule;
import net.sf.mzmine.modules.masslistmethods... |
package net.simpvp.Misc;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityPotionEffectEvent;
import org.bukkit.potion.PotionEffectType;
//This file disables elder guardians from giving mining fatigue within 100 blocks of spawn
public class PotionEffectListener... |
package net.snowflake.client.log;
import net.snowflake.client.util.SecretDetector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.helpers.FormattingTuple;
import org.slf4j.helpers.MessageFormatter;
import org.slf4j.spi.LocationAwareLogger;
public class SLF4JLogger implements SFLogger {
priv... |
package ru.kpecmuk.snakegame.game;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.kpecmuk.snakegame.apple.Apples;
import ru.kpecmuk.snakegame.graphics.Display;
import ru.kpecmuk.snakegame.graphics.GameField;
import ru.kpecmuk.snakegame.snake.Snake;
import ru.kpecmuk.snakegame.utils.Time;
import java... |
package vizceral.hystrix;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.base64.Base64;
import io.netty.handler.codec.http.HttpMethod;
import io.reactivex.netty.RxNetty;
im... |
package nom.bdezonia.zorbage.misc;
import java.util.ArrayList;
import java.util.List;
import nom.bdezonia.zorbage.algebra.Algebra;
import nom.bdezonia.zorbage.algebra.G;
import nom.bdezonia.zorbage.data.DimensionedDataSource;
import nom.bdezonia.zorbage.tuple.Tuple2;
import nom.bdezonia.zorbage.type.bool.BooleanMember;... |
package nuclibook.server;
import com.j256.ormlite.jdbc.JdbcConnectionSource;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import nuclibook.constants.C;
import nuclibook.models.*;
import java.sql.SQLException;
public class SqlServerConnection {
/* singleton pattern */
... |
package org.ajabshahar.platform.daos;
import io.dropwizard.hibernate.AbstractDAO;
import org.ajabshahar.platform.models.Song;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Restrictions;
import or... |
package cs201.structures.bank;
import java.util.HashMap;
import java.util.List;
import cs201.agents.PersonAgent.Intention;
import cs201.roles.Role;
import cs201.roles.bankRoles.BankGuardRole;
import cs201.roles.bankRoles.BankTellerRole;
import cs201.structures.Structure;
public class Bank extends Structure {
// Mem... |
package database;
import java.io.InputStream;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.DriverManager;
im... |
package net.dtkanov.blocks.tests;
import static org.junit.Assert.*;
import net.dtkanov.blocks.circuit.high_level.derived.ControlUnit;
import net.dtkanov.blocks.logic.ConstantNode;
import org.junit.Before;
import org.junit.Test;
public class ControlUnitTest {
private ControlUnit cu;
private ConstantNode in_op[];... |
package echowand.sample;
import echowand.common.Data;
import echowand.common.EOJ;
import echowand.common.EPC;
import echowand.common.ESV;
import echowand.net.*;
import echowand.util.LoggerConfig;
import java.net.Inet4Address;
import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.logging.Conso... |
package org.commonmark.internal;
import org.commonmark.internal.util.Escaping;
import org.commonmark.internal.util.Html5Entities;
import org.commonmark.node.*;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class InlineParser {
// Constants for... |
package org.concord.energy3d.gui;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt... |
//Title: TASSELMainFrame
//Company: NCSU
package net.maizegenetics.tassel;
import net.maizegenetics.pal.alignment.Alignment;
import net.maizegenetics.pal.alignment.PhenotypeUtils;
import net.maizegenetics.pal.report.TableReportUtils;
import net.maizegenetics.plugindef.DataSet;
import net.maizegenetics.plugindef... |
package org.cryptable.asn1.runtime.ber;
import org.cryptable.asn1.runtime.exception.ASN1Exception;
import java.math.BigInteger;
public class Utils {
/**
* get the TAG from the byteArray
*
* @param value bytae array containing the TAG Length Value
* @return return Integer value of the TAG
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.