answer stringlengths 17 10.2M |
|---|
package com.gmail.zahusek.packets;
import org.bukkit.entity.Player;
import com.gmail.zahusek.protocols.TinyProtocol;
public abstract class AbstractPacket {
protected Object packet;
protected TinyProtocol tinyprotocol;
protected AbstractPacket(TinyProtocol tinyprotocol) {
this.tinyprotocol = tinyprot... |
package com.icecondor.nest.service;
import java.util.Date;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.icecondor.nest.Condor;
import com.icecondor.nest.Constants;
import com.icecondor.nest.db.activity.HeartBeat;
public clas... |
package com.jetbrains.edu.utils;
import com.intellij.codeInsight.daemon.impl.quickfix.OrderEntryFix;
import com.intellij.execution.junit.JUnitExternalLibraryDescriptor;
import com.intellij.ide.IdeView;
import com.intellij.ide.fileTemplates.FileTemplate;
import com.intellij.ide.fileTemplates.FileTemplateManager;
import ... |
package Listeners;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import javax.vecmath.Matrix4f;
import javax.vecmath.Vector3f;
import jrtr.RenderPanel;
import SceneGraph.GraphSceneManager;
public class ShooterMouseMotionListener implements MouseMotionListener{
private int width, heigh... |
package com.kovaciny.linemonitorbot;
import java.util.Locale;
import android.app.ActionBar;
import android.app.FragmentTransaction;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.support.v4.app.Fragment;
import android.support.v4.app.Fragm... |
package com.lonkal.convexhullapp.main;
import java.awt.Point;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
/**
* Graham Scan algorithm 1. Sorts the points based on angle 2. Push point if
* Left turn 3. Pop point if Right turn
*
* @author Kal
*
... |
package com.maddyhome.idea.vim.group;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.DataCon... |
package com.mebigfatguy.fbcontrib.utils;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* an automatic toString() builder using reflection
*/
public class ToString {
private static class VisitedInfo {
Set<Integer> visited = new HashSet<Integer>... |
package com.microsoft.adal;
import java.net.URL;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.UUID;
import org.json.JSONObject;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundExce... |
package com.uwflow.flow_android;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.widget.DrawerLayout;
import android.view.MenuItem;
im... |
package com.winterwell.es.client.agg;
import java.util.Map;
import com.winterwell.utils.Utils;
import com.winterwell.utils.containers.ArrayMap;
import com.winterwell.utils.containers.Containers;
import com.winterwell.utils.web.IHasJson;
/**
* Made via Aggregations
* @author daniel
*
*/
public class Aggregation impl... |
package de.kasoki.jfeedly.helper;
import de.kasoki.jfeedly.JFeedly;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class HTTPConnections {
private JFeedly jfeedlyHandler;
... |
package de.lmu.ifi.dbs.logging;
import java.util.logging.Level;
import java.util.logging.LogRecord;
/**
* Additionally to the functionality of a LogRecord,
* a ProgressLogRecord provides information concerning
* the progress as the name of the progressing task
* and the percentage of the progress.
*
* @author Art... |
package de.mrapp.android.preference.view;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
/**
* A custom view, which is extended from the view {@link android.widget.SeekBar}
* in order to provide... |
package dr.app.tracer.analysis;
import dr.inference.trace.MarginalLikelihoodAnalysis;
import jam.framework.AuxilaryFrame;
import jam.framework.DocumentFrame;
import javax.swing.*;
import javax.swing.plaf.BorderUIResource;
import javax.swing.table.AbstractTableModel;
import java.awt.*;
import java.text.DecimalFormat;
im... |
package dr.evolution.tree;
import dr.evolution.io.Importer;
import dr.evolution.io.NewickImporter;
import java.io.IOException;
import java.util.ArrayList;
/**
* @author Guy Baele
* Path difference metric according to Kendall & Colijn (2015)
*/
public class KCPathDifferenceMetric {
private Tree focalTree;
pri... |
package dr.evomodel.continuous;
import dr.inference.model.*;
import dr.math.matrixAlgebra.IllegalDimension;
import dr.math.matrixAlgebra.Matrix;
import dr.util.Citable;
import dr.util.Citation;
import java.util.List;
/**
* @author Max Tolkoff
* @author Marc Suchard
*/
public class LatentFactorModel extends AbstractM... |
package edu.mit.commensalejml.impl;
import com.google.common.base.Throwables;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;
import com.google.common.collect.SetMultimap;
import edu... |
package edu.mit.streamjit.apps.test;
import com.google.common.collect.ImmutableList;
import edu.mit.streamjit.api.CompiledStream;
import edu.mit.streamjit.api.Filter;
import edu.mit.streamjit.api.Identity;
import edu.mit.streamjit.api.Joiner;
import edu.mit.streamjit.api.OneToOneElement;
import edu.mit.streamjit.api.Pi... |
package edu.wheaton.simulator.gui;
import edu.wheaton.simulator.entity.Prototype;
import edu.wheaton.simulator.simulation.GUIToAgentFacade;
public class SpawnCondition {
public final Prototype prototype;
public final int x;
public final int y;
public final String pattern;
public final int number;
... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpil... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.DriverStationLCD.Line;
import edu.wpi.first.wpilibj.smar... |
package edu.wustl.xipHost.dicom;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.util.ArrayLi... |
package edu.ycp.cs.netcoder.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.rpc.Async... |
package eu.amidst.models.staticmodels;
import eu.amidst.core.Potential.ConstantPotential;
import eu.amidst.core.Potential.Potential;
import eu.amidst.core.Potential.PotentialTable;
import eu.amidst.core.StaticBayesianNetwork.BNFactory;
import eu.amidst.core.StaticBayesianNetwork.BayesianNetwork;
import eu.amidst.core.S... |
package org.voltdb.types;
import java.io.IOException;
import java.io.StreamTokenizer;
import java.io.StringReader;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/**
* The Java class used to represent data with the SQL type GEOGRA... |
package gov.nih.nci.calab.dto.function;
import java.util.ArrayList;
import java.util.List;
/**
* @author zengje
*
*/
public class AgentBean {
private String id;
private String type="Peptide";
private String name;
private String description;
// otherValue can be "compoundName" for SamllMolecule; "... |
package io.miti.beetle.exporters;
import io.miti.beetle.util.FakeNode;
import io.miti.beetle.util.FakeSpecParser;
import io.miti.beetle.util.Logger;
import io.miti.beetle.util.NodeInfo;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.text.DateFormat;
import java.util.List;
public class SQLDBFi... |
package com.github.ptest.element;
import com.github.ptest.PTestUtil;
import com.github.ptest.runConfiguration.PTestRunConfiguration;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.PsiElement;
import com.intellij.psi.util.PsiTreeUtil;
import com.jetbrains.python.PyNames;
import com.jetbrains.py... |
package io.compgen.ngsutils.fastq;
import java.io.IOException;
import java.io.OutputStream;
public class FastqRead {
private String name;
private String comment;
private String seq;
private String qual;
public FastqRead(String name, String seq, String qual) {
this(name, seq, qual, null);
... |
package nl.b3p.kar.stripes;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.List;
import javax.persistence.EntityManager;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
... |
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// You should have received a copy of the GNU Lesser General ... |
package org.apache.lucene.document;
import java.util.Enumeration;
import java.util.List;
import java.util.ArrayList;
import org.apache.lucene.index.IndexReader; // for javadoc
/** Documents are the unit of indexing and search.
*
* A Document is a set of fields. Each field has a name and a textual value.
* A f... |
package org.jivesoftware.admin;
import org.jivesoftware.util.*;
import org.jivesoftware.wildfire.XMPPServer;
import org.jivesoftware.wildfire.container.PluginManager;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.DocumentFactory;
import org.dom4j.io.SAXReader;
import java.util.*;
import java.io.... |
package org.neo4j.util.shell;
import java.io.Serializable;
import java.rmi.RemoteException;
/**
* A common implementation of a {@link ShellClient}.
*/
public abstract class AbstractClient implements ShellClient
{
/**
* The session key for the prompt key, just like in Bash.
*/
public static final Str... |
package jsaf.intf.windows.system;
import jsaf.intf.system.IComputerSystem;
import jsaf.intf.windows.identity.IDirectory;
import jsaf.intf.windows.io.IWindowsFilesystem;
import jsaf.intf.windows.powershell.IRunspacePool;
import jsaf.intf.windows.registry.IRegistry;
import jsaf.intf.windows.wmi.IWmiProvider;
/**
* A rep... |
package org.videolan;
import java.io.File;
import java.io.IOException;
class CacheDir {
private static synchronized File getCacheRoot() throws IOException {
if (cacheRoot != null) {
return cacheRoot;
}
String base = System.getProperty("java.io.tmpdir") + File.separator +
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package magpie.data.materials;
import java.io.BufferedReader;
import java.io.LineNumberReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.*;
import java.u... |
package com.iappsam.search;
import com.iappsam.Supplier;
public class SupplierSearcher extends AbstractSearcher<Supplier> {
public SupplierSearcher() {
super(Supplier.class, "name", "address", "contactPerson.person.name");
}
} |
package network;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class ConectorDB {
static String userName;
static String password;
static String db;
static int port;
static String url = "jdbc:mysql... |
package neural;
import java.util.Random;
import java.util.function.BiFunction;
import java.util.function.DoubleFunction;
public class Matrix {
/** Matrix dimensions */
private final int height, width;
/** Matrix elements */
private final double[][] matrix;
/**
* Constructs a new copy of an existing matrix
... |
package org.sqlite;
import java.sql.*;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.util.Calendar;
import java.util.Map;
/**
* Implements a JDBC ResultSet.
*/
final class RS extends Unused implements ResultSet, ResultSetMetaData, Codes
{
private ... |
package es.prometheus.dds;
import com.rti.dds.dynamicdata.DynamicData;
import com.rti.dds.dynamicdata.DynamicDataReader;
import com.rti.dds.dynamicdata.DynamicDataSeq;
import com.rti.dds.infrastructure.ConditionSeq;
import com.rti.dds.infrastructure.Duration_t;
import com.rti.dds.infrastructure.RETCODE_NO_DATA;
import ... |
package cz.muni.fi.pa165.methanolmanager.service;
import cz.muni.fi.pa165.methanolmanager.dal.domain.Bottle;
import cz.muni.fi.pa165.methanolmanager.dal.repository.BottleRepository;
import cz.muni.fi.pa165.methanolmanager.service.dto.BottleDto;
import cz.muni.fi.pa165.methanolmanager.service.exception.EntityNotFoundExc... |
package org.wanna.jabbot.binding.spark;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wanna.jabbot.binding.AbstractRoom;
import org.wanna.jabbot.binding.BindingListener;
import org.wanna.jabbot.binding.config.RoomConfiguration;
import org.wanna.jabbot.binding.event.MessageEvent;
import org.wanna.j... |
package org.biojava.nbio.protmod.phosphosite;
import org.biojava.nbio.phosphosite.Dataset;
import org.biojava.nbio.phosphosite.Site;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import static org.junit.Assert.assertTrue;
imp... |
package com.sinnerschrader.smaller.uglifyjs;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import com.sinnerschrader.smaller.javascript.JavaScriptExecutor;
import com.sinnerschrader.smaller.resource.Processor;
import com.sinnerschrader.smaller.resource.Resource;
import com.sinner... |
package lt.baraksoft.summersystem.portal.controller;
import lt.baraksoft.summersystem.dao.PaymentDao;
import lt.baraksoft.summersystem.dao.UserDao;
import lt.baraksoft.summersystem.model.Payment;
import lt.baraksoft.summersystem.model.User;
import lt.baraksoft.summersystem.portal.view.UserView;
import javax.annotation.... |
package org.eclipse.birt.report.item.crosstab.core.de;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import org.eclipse.birt.report.item.crosstab.core.IAggregationCellConstants;
import org.eclipse.birt.re... |
package view;
import controller.MapEditorController;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.ArrayList;
public class MapEditorPanel extends JPanel{
private JT... |
package org.opendaylight.yangtools.yang.parser.stmt.reactor;
import static com.google.common.base.Verify.verify;
import static java.util.Objects.requireNonNull;
import com.google.common.base.VerifyException;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Streams;
import java.util.Array... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package org.eclipse.birt.report.debug.internal.ui.script.launcher;
import java.io.File;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;... |
package org.springframework.roo.addon.web.mvc.controller.scaffold;
import static org.springframework.roo.classpath.customdata.CustomDataKeys.COUNT_ALL_METHOD;
import static org.springframework.roo.classpath.customdata.CustomDataKeys.FIND_ALL_METHOD;
import static org.springframework.roo.classpath.customdata.CustomDataK... |
package org.dellroad.stuff.pobj;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.Comparator;
import javax.xml.transform.stream.StreamSource;
import org.dellroad.stuff.schema.SchemaUpdate;
import org.dellroad.stuff.spring.BeanNameC... |
package stroom.lmdb;
import stroom.util.io.FileUtil;
import stroom.util.logging.LambdaLogger;
import stroom.util.logging.LambdaLoggerFactory;
import stroom.util.logging.LogUtil;
import stroom.util.shared.ModelStringUtil;
import com.google.common.collect.ImmutableMap;
import org.lmdbjava.Dbi;
import org.lmdbjava.DbiFlag... |
package org.csstudio.trends.databrowser2.waveformview;
import org.csstudio.archive.vtype.TimestampHelper;
import org.csstudio.archive.vtype.VTypeHelper;
import org.csstudio.swt.xygraph.figures.ToolbarArmedXYGraph;
import org.csstudio.swt.xygraph.figures.Trace;
import org.csstudio.swt.xygraph.figures.Trace.PointStyle;
i... |
package peergos.shared.user.fs;
import java.nio.file.*;
import java.util.logging.*;
import jsinterop.annotations.*;
import peergos.shared.*;
import peergos.shared.crypto.*;
import peergos.shared.crypto.hash.*;
import peergos.shared.crypto.random.*;
import peergos.shared.crypto.symmetric.*;
import peergos.shared.inode.*... |
package org.helioviewer.jhv.renderable.components;
import java.awt.Color;
import java.awt.Component;
import java.nio.FloatBuffer;
import java.text.DecimalFormat;
import java.util.ArrayList;
import org.helioviewer.jhv.base.astronomy.Position;
import org.helioviewer.jhv.base.astronomy.Sun;
import org.helioviewer.jhv.base... |
package be.bagofwords.db;
import be.bagofwords.db.combinator.Combinator;
import be.bagofwords.db.methods.KeyFilter;
import be.bagofwords.db.methods.ObjectSerializer;
import be.bagofwords.iterator.CloseableIterator;
import be.bagofwords.iterator.DataIterable;
import be.bagofwords.iterator.IterableUtils;
import be.bagofw... |
package dnss.model;
import dnss.enums.Advancement;
public class Job {
private String name;
private String identifier;
private Advancement advancement;
private float[] spRatio;
private Job parent;
private int[][] skillTree;
private int maxSP;
public String getName() {
return name;... |
package com.mararok.epicwar.control.point.internal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import com.mararok.epiccore.math.Position3D;
import com.mararok.epiccore.misc.StringUtils;
import com.mararok.epicwar.War;
import com.mararok.epicwar.control.ControlAreaPower;
import com... |
package com.auth0;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
i... |
package me.johnnywoof;
import java.security.SecureRandom;
import java.util.Arrays;
import java.util.Timer;
public class GameEngine {
public int moveLeftCount = 0;
public int moveRightCount = 0;
public final boolean[] tiles = new boolean[200];
public final Tetris tetris;
public final SecureRandom ran... |
package ch.uzh.ddis.katts.bolts;
import java.util.Date;
import backtype.storm.tuple.Tuple;
import ch.uzh.ddis.katts.query.stream.StreamConsumer;
import ch.uzh.ddis.katts.query.stream.Variable;
import ch.uzh.ddis.katts.query.stream.VariableList;
public class StreamSynchronizedEventWrapper extends Event {
private Eve... |
package com.etsy.statsd.profiler;
import com.etsy.statsd.profiler.profilers.CPUProfiler;
import com.etsy.statsd.profiler.profilers.MemoryProfiler;
import com.etsy.statsd.profiler.worker.ProfilerShutdownHookWorker;
import com.etsy.statsd.profiler.worker.ProfilerThreadFactory;
import com.etsy.statsd.profiler.worker.Profi... |
package it.unibz.inf.ontop.model.term.functionsymbol.db.impl;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import it.unibz.inf.ontop.exception.MinorOntopInternalBugException;
import it.unibz.inf.ontop.iq.node.VariableNullability;
import it.unibz.inf.ontop.model.template... |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.List;
public class _118 {
public static class Solution1 {
/**
* fill out values from left to right
*/
public List<List<Integer>> generate(int numRows) {
List<List<Integer>> result = new Arra... |
package com.orientechnologies.orient.core.exception;
import com.orientechnologies.common.exception.OHighLevelException;
/**
* This exception is thrown if access to the manager of tree-based RidBags will be prohibited.
*/
public class OAccessToSBtreeCollectionManagerIsProhibitedException extends OCoreException impleme... |
package com.fishercoder.solutions;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**136. Single Number
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without u... |
package org.deviceconnect.android.deviceplugin.hue;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import com.philips.lighting.h... |
package com.awesometickets.web.controller.response;
import javax.persistence.criteria.CriteriaBuilder;
import java.util.HashMap;
import java.util.Map;
/**
* Store custom error codes and their status code and information.
*/
public class ErrorStatus {
public static final int BAD_REQUEST = 0;
public static fina... |
package model.dao.diary;
// #00011 : import change required
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.ut... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.ListNode;
import java.util.HashSet;
import java.util.Set;
public class _160 {
public static class Solution1 {
/**
* Time: O(max(m, n))
* Space: O(1)
*/
public ListNode getIntersectionNode(ListNode hea... |
package com.fishercoder.solutions;
import java.util.Arrays;
public class _259 {
public static class Solution1 {
/**
* Basically, very similar to 3Sum, but the key is that you'll have to add result by (right-left), not just increment result by 1!
*/
public int threeSumSmaller(int[] ... |
package org.eclipse.birt.report.engine.emitter.html;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URL;
imp... |
package com.elmakers.mine.bukkit.action.builtin;
import com.elmakers.mine.bukkit.action.BaseTeleportAction;
import com.elmakers.mine.bukkit.api.action.CastContext;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
import org.bukkit.Location;
import org.bukkit.World;
... |
package com.fishercoder.solutions;
public class _313 {
public static class Solution1 {
public int nthSuperUglyNumber(int n, int[] primes) {
int[] ret = new int[n];
ret[0] = 1;
int[] indexes = new int[primes.length];
for (int i = 1; i < n; i++) {
... |
package org.eclipse.birt.report.engine.emitter.html;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URL;
imp... |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* 472. Concatenated Words
*
* Given a list of words, please write a program that returns all concatenated words in the given list of words.
A concatenate... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* 637. Average of Levels in Binary Tree
*
Given a non-empty binary tree, return the average value of the nodes on each level i... |
package com.fionapet.business.service;
import com.fionapet.business.entity.ItemCate;
import com.fionapet.business.entity.ItemType;
import com.fionapet.business.repository.ItemCateDao;
import com.fionapet.business.repository.ItemTypeDao;
import com.google.common.collect.ImmutableMap;
import org.dubbo.x.repository.DaoBas... |
package com.fishercoder.solutions;
import java.util.LinkedList;
import java.util.Queue;
public class _649 {
public static class Solution1 {
public String predictPartyVictory(String senate) {
Queue<Integer> radiantQ = new LinkedList<>();
Queue<Integer> direQ = new LinkedList<>();
... |
package javaUtilities;
import java.io.*;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.*;
/**
* A reentrant read-write lock allowing at most one designated upgradable thread
* that can switch between reading and writing. Other readers can acquire the
* lock while the thread with the upgrada... |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class _890 {
public static class Solution1 {
public List<String> findAndReplacePattern(String[] words, String pattern) ... |
package com.github.enanomapper;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FilenameFilter;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.ut... |
package com.imcode.imcms.domain.service.api;
import com.imcode.imcms.api.SourceFile;
import com.imcode.imcms.api.exception.FileAccessDeniedException;
import com.imcode.imcms.domain.dto.DocumentDTO;
import com.imcode.imcms.domain.dto.TemplateDTO;
import com.imcode.imcms.domain.exception.EmptyFileNameException;
import co... |
package org.eclipse.persistence.testing.tests.jpa21.advanced;
import static javax.persistence.ParameterMode.INOUT;
import static javax.persistence.ParameterMode.OUT;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.ParameterMode;
import javax.persistence.Query;
import javax.persis... |
package com.github.underscore.lodash;
import com.github.underscore.BinaryOperator;
import com.github.underscore.BiFunction;
import com.github.underscore.Consumer;
import com.github.underscore.Function;
import com.github.underscore.Function3;
import com.github.underscore.Predicate;
import com.github.underscore.Predicate... |
package com.insidecoding.opium.rest.api;
import java.io.IOException;
import javax.validation.constraints.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEn... |
package org.safehaus.subutai.plugin.cassandra.impl;
import java.util.HashSet;
import java.util.Set;
import org.safehaus.subutai.common.enums.OutputRedirection;
import org.safehaus.subutai.common.protocol.Agent;
import org.safehaus.subutai.common.settings.Common;
import org.safehaus.subutai.common.util.AgentUtil;
import... |
package com.lassekoskela.maven.buildevents;
import static java.lang.String.format;
import java.util.ArrayList;
import java.util.List;
import org.codehaus.plexus.logging.Logger;
import com.lassekoskela.time.Duration;
class BuildEventLogReport {
private final Logger logger;
private final List<BuildStep> steps;
... |
package com.jaamsim.BasicObjects;
import java.util.ArrayList;
import com.jaamsim.Graphics.DisplayEntity;
import com.jaamsim.Samples.SampleConstant;
import com.jaamsim.Samples.SampleExpInput;
import com.jaamsim.basicsim.Entity;
import com.jaamsim.datatypes.DoubleVector;
import com.jaamsim.events.EventHandle;
import com.... |
package com.nhn.pinpoint.testweb.controller;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import net.spy.memcached.AddrUtil;
import net.spy.memcached.Arcus... |
package polyglot.types;
import java.io.File;
import polyglot.frontend.*;
import polyglot.frontend.Compiler;
import polyglot.frontend.goals.Goal;
import polyglot.main.Report;
import polyglot.types.reflect.*;
import polyglot.util.InternalCompilerError;
/**
* Loads class information from source files, class files, or ser... |
package com.bbn.bue.common.collections;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Maps;
import com.google.common.collect.Ordering;
import java.util.Comparator;
import java.util.Map;
import javax.annotation.Nullable;
import static com.g... |
package com.jcabi.log;
import com.jcabi.aspects.Immutable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.log4j.Level;
import org.apache.l... |
package com.samovich.cop2800.chapter7.assignment;
import javax.swing.JOptionPane;
public class PasswordInput {
/**
* Main method
* @param args
*/
public static void main(String[] args) {
// declare fields
String password;
// prompt a user to type password
password ... |
package net.katsuster.semu;
import java.util.*;
/**
* ARMv5TE CPU
*
* : ARM Second Edition
* ARM DDI0100DJ
*
* ARM DDI0100HJ, ARM DDI0100I
*
* T Thumb
* E DSP
*
*
* @author katsuhiro
*/
public class ARMv5 extends CPU {
private int[] regs;
private int[] regs_svc;
private int[] regs_abt;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.