answer stringlengths 17 10.2M |
|---|
package com.skelril.aurora;
import com.sk89q.commandbook.CommandBook;
import com.sk89q.commandbook.session.PersistentSession;
import com.sk89q.commandbook.session.SessionComponent;
import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.minecraft.util.commands.CommandContext;
import com.sk89q.minecraft.util.... |
package com.sudicode.fb2gh.github;
import com.sudicode.fb2gh.FB2GHException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.json.Json;
import javax.json.JsonReader;
import java.io.StringReader;
/**
* Utility methods for the GitHub API.
*/
final class... |
package com.yubico.client.v2;
import org.apache.commons.codec.binary.Base64;
import com.yubico.client.v2.impl.YubicoClientImpl;
public abstract class YubicoClient {
protected Integer clientId;
protected byte[] key;
protected String sync;
protected String wsapi_urls[] = {
"https://api.yubico.... |
package org.eclipse.persistence.testing.tests.wdf.jpa1.entitymanager;
import java.sql.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import javax.persistence.TransactionRequiredException;
import org.junit.Test;
import ... |
package com.silverpeas.notification.delayed.repository;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import javax.inject.Inject;
import javax.persistence.EntityManagerFactory;
import javax.persistence.TemporalType;
import javax.persistence.TypedQuery;
import org.apache.commons.lang.StringUti... |
package de.blackcraze.grb.util;
import de.blackcraze.grb.i18n.Resource;
import de.blackcraze.grb.model.PrintableTable;
import de.blackcraze.grb.model.entity.Mate;
import de.blackcraze.grb.model.entity.Stock;
import de.blackcraze.grb.model.entity.StockType;
import de.blackcraze.grb.util.wagu.Block;
import de.blackcraze.... |
package com.linkedin.metadata.search.elasticsearch.query.request;
import com.linkedin.common.UrnArray;
import com.linkedin.common.urn.Urn;
import com.linkedin.data.template.LongMap;
import com.linkedin.metadata.dao.utils.ESUtils;
import com.linkedin.metadata.models.EntitySpec;
import com.linkedin.metadata.models.Search... |
package de.prob2.ui.internal;
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Formatter;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import ja... |
package com.github.longkerdandy.mithril.mqtt.broker.handler;
import com.github.longkerdandy.mithril.mqtt.api.Authenticator;
import com.github.longkerdandy.mithril.mqtt.api.AuthorizeResult;
import com.github.longkerdandy.mithril.mqtt.api.Communicator;
import com.github.longkerdandy.mithril.mqtt.broker.session.SessionReg... |
package de.svenkubiak.jpushover;
import java.io.IOException;
import java.util.List;
import java.util.Objects;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.Consts;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.Nam... |
package org.eclipse.birt.report.model.core;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.eclipse.birt.report.model.api.AbstractThemeHandle;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.activity.SemanticException;
im... |
package de.tototec.utils.functional;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public ab... |
package edu.ucsd.sbrg.bigg;
import static edu.ucsd.sbrg.bigg.ModelPolisher.mpMessageBundle;
import static java.text.MessageFormat.format;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import j... |
// $RCSfile: PlainCreate.java,v $
// @version $Revision: 1.6 $
// $Log: PlainCreate.java,v $
// Revision 1.6 2006/06/12 09:18:47 Ian.Mayo
// Better layer extended messaging
// Revision 1.5 2006/05/16 14:14:16 Ian.Mayo
// When we're adding a raster painter (like ETOPO) only add it once
// Revision 1.4 2005/09/30 09... |
package org.motechproject.scheduletracking.api.it;
import org.joda.time.DateTime;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.motechproject.model.Time;
import org.motechproject.scheduletracking.api.domain.Enrollment;
import org.motechproject.scheduletracking.api.domain.Enr... |
package dyvil.tools.gensrc;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.file.Files;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Map;
import java.util.Properties;
public ... |
package gov.nih.nci.camod.webapp.form;
import gov.nih.nci.camod.Constants;
import gov.nih.nci.camod.util.NameValue;
import gov.nih.nci.camod.util.NameValueList;
import gov.nih.nci.camod.util.SafeHTMLUtil;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServl... |
package gov.nih.nci.ncicb.cadsr.loader;
import gov.nih.nci.ncicb.cadsr.loader.parser.*;
import gov.nih.nci.ncicb.cadsr.loader.util.*;
import gov.nih.nci.ncicb.cadsr.loader.defaults.UMLDefaults;
import gov.nih.nci.ncicb.cadsr.loader.event.*;
import gov.nih.nci.ncicb.cadsr.domain.*;
import gov.nih.nci.ncicb.cadsr.loader.... |
package net.sf.packtag.util;
/**
* Logs Events to the available Logger, Log4j, elswise System.err.
*
* @author Daniel Galn y Martins
* @version $Revision: 1.2 $
*/
public class SafeLogger {
private static Boolean log4jAvailable = null;
private static Boolean commonsLoggingAvailable = null;
/** Returns... |
package org.eclipse.titan.designer.AST.TTCN3.types;
import java.text.MessageFormat;
import java.util.List;
import java.util.Set;
import org.eclipse.titan.designer.AST.ASTVisitor;
import org.eclipse.titan.designer.AST.ArraySubReference;
import org.eclipse.titan.designer.AST.FieldSubReference;
import org.eclipse.titan.de... |
package hochberger.utilities.gui.font;
import hochberger.utilities.files.Closer;
import java.awt.Font;
import java.awt.FontFormatException;
import java.io.IOException;
import java.io.InputStream;
public class FontLoader {
private FontLoader() {
super();
}
public static Font loadFrom(final String fil... |
package org.jcryptool.visual.crtverification.views;
import org.eclipse.jface.fieldassist.ControlDecoration;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener;
import org.... |
package info.iconmaster.shuv.gui;
import info.iconmaster.shuv.Shuv;
import info.iconmaster.shuv.ShuvConsts;
import info.iconmaster.shuv.ShuvDecoder;
import info.iconmaster.shuv.ShuvDecoder.ShuvData;
import info.iconmaster.shuv.ShuvEncoder;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
imp... |
package ua.com.fielden.platform.domaintree.impl;
import static ua.com.fielden.platform.reflection.PropertyTypeDeterminator.stripIfNeeded;
import static ua.com.fielden.platform.reflection.asm.impl.DynamicEntityClassLoader.getOriginalType;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.nio... |
package io.coinswap.swap;
public class AtomicSwapMethod {
public static String
VERSION = "version",
KEYS_REQUEST = "keys.request",
BAILIN_HASH_REQUEST = "bail_in_hash.request",
EXCHANGE_SIGNATURES = "exchange.signatures",
EXCHANGE_BAIL_IN = "exchange.bail.in",
CANCEL_... |
package com.sun.facelets;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.FacesE... |
package com.intellij.codeInsight.daemon.impl;
import com.intellij.codeHighlighting.*;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.extensions.ExtensionPointListener;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.open... |
package monitoring.impl;
import monitoring.intf.Monitor;
import structure.impl.Verdict;
import structure.intf.QEA;
/**
* All incremental monitors implement the trace method using the step method.
*
* TODO: Consider using "incremental" instead of "smallstep"
*
* @author Giles Reger
* @author Helena Cuenca
*/
publ... |
// $Id: CharacterSprite.java,v 1.23 2002/03/08 22:35:55 mdb Exp $
package com.threerings.cast;
import com.threerings.media.sprite.MultiFrameImage;
import com.threerings.media.sprite.Path;
import com.threerings.media.sprite.Sprite;
/**
* A character sprite is a sprite that animates itself while walking
* about in a sc... |
package java8_in_action.chapter7;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
public class Chapter7 {
public static void main(String .... |
package com.intellij.history.core;
import com.intellij.history.Clock;
import com.intellij.history.FileRevisionTimestampComparator;
import com.intellij.history.core.changes.*;
import com.intellij.history.core.revisions.RecentChange;
import com.intellij.history.core.revisions.Revision;
import com.intellij.history.core.re... |
// Narya library - tools for developing networked games
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should ... |
package org.zstack.network.service.portforwarding;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.Platform;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.cloudbus.MessageSafe;
import org.zstack.cor... |
package mrriegel.flexibletools;
import java.util.stream.Collectors;
import mrriegel.flexibletools.item.ITool;
import mrriegel.limelib.helper.RecipeHelper;
import mrriegel.limelib.recipe.ShapelessRecipeExt;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.inventory.InventoryCraftin... |
package org.quenlen.magic;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.provider.Settings;
import android.support.annotation.NonNull;
import android.util.Log;
/**
* Provider image process method
*/
public class MagicImage {... |
package org.zstack.network.l2.vxlan.vxlanNetworkPool;
import org.springframework.beans.factory.annotation.Autowired;
import org.zstack.core.asyncbatch.While;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.cloudbus.CloudBusCallBack;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.core.db.Q;... |
package net.imagej.launcher;
import java.awt.GraphicsEnvironment;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URLClassLoader;
import java.util.Arrays;
/**
* This class is the central entry point into Java from the ImageJ launcher.
* <p>
* ... |
package roart.config;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.NoSuchElementException;
import java.util.Set;
im... |
package nl.b3p.kar.stripes;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.geom.Polygon;
import com.vividsolutions.jts.geom.PrecisionModel;
import com.vividsolutions.jts.io.WKTReader;
import java.io.StringReader;
import java.text.SimpleDateFor... |
package com.redhat.ceylon.eclipse.code.editor;
import static com.redhat.ceylon.eclipse.code.parse.CeylonSourcePositionLocator.getTokenIndexAtCharacter;
import static java.lang.Math.min;
import java.util.List;
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.Token;
import org.eclipse.core.runtime.NullProgr... |
package net.imagej.ops.math;
import java.util.Random;
import net.imagej.ops.AbstractNamespace;
import net.imagej.ops.MathOps;
import net.imagej.ops.OpMethod;
import net.imglib2.IterableInterval;
import net.imglib2.IterableRealInterval;
import net.imglib2.RandomAccessibleInterval;
import net.imglib2.img.array.ArrayImg;
... |
package org.apache.commons.lang;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class StringUtils {
// Performance testing notes (JDK 1.4, Jul03, scolebourne)
// Whitespace:
// Character.isWhitespace() is faster than WHITESPACE.indexOf()
// where WHITESPACE is a str... |
package com.redhat.ceylon.eclipse.code.resolve;
import static com.redhat.ceylon.eclipse.code.editor.Navigation.gotoNode;
import static com.redhat.ceylon.eclipse.util.Nodes.findNode;
import static com.redhat.ceylon.eclipse.util.Nodes.getIdentifyingNode;
import static com.redhat.ceylon.eclipse.util.Nodes.getReferencedMod... |
package net.mybluemix.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class PushServle... |
package org.lucubrate.mirrortracker;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.util.Log;
import android.view.View;
import android.widget.Switch;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.fir... |
package com.joelapenna.foursquared;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.types.Badge;
import com.joelapenna.foursquare.types.Checkin;
import com.joelapenna.foursquare.types.User;
import com.joelapenna.foursquare.types.Venue;
import com.joelapenna.foursquared.util.NotificationsUt... |
package org.ops4j.pax.web.itest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.ops4j.pax.exam.CoreOptions.cleanCaches;
import static org.ops4j.pax.exam.CoreOptions.frameworkProperty;
import static org.ops4j.pax.exam.CoreOptions.junitBundles;
import static org.... |
package org.animotron.statement.query;
import javolution.util.FastList;
import javolution.util.FastMap;
import javolution.util.FastSet;
import org.animotron.Executor;
import org.animotron.graph.AnimoGraph;
import org.animotron.graph.GraphOperation;
import org.animotron.graph.index.Order;
import org.animotron.io.PipedIn... |
package org.apache.lucene.index;
import java.io.IOException;
import java.io.File;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.Lock;
import org.apache.lucene.document.Document;
/** IndexReader is an abstract class, providing an interface for access... |
package se.z_app.stb.api.zenterio;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.ht... |
package org.animotron.statement.query;
import javolution.util.FastList;
import javolution.util.FastMap;
import javolution.util.FastSet;
import javolution.util.FastTable;
import org.animotron.graph.index.Order;
import org.animotron.io.Pipe;
import org.animotron.manipulator.Evaluator;
import org.animotron.manipulator.OnC... |
package org.apache.velocity.runtime;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.Hashtable;
import java.u... |
package fi.nls.paikkatietoikkuna.terrainprofile;
import static org.junit.Assert.assertEquals;
import fi.nls.oskari.control.ActionException;
import fi.nls.oskari.service.ServiceException;
import java.io.IOException;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.junit.Ignore;
im... |
package org.cejug.yougi.util;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
public class TextUtilsTest {
Date date;
SimpleDateFormat sdf, sdft;
@Before
public void setUp(){
date ... |
package io.confluent.examples.streams.microservices;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.apache.kafka.clients.producer.Callback;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kaf... |
package org.b3log.symphony.util;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.profiles.pegdown.Extensions;
import com.vladsch.flexmark.profiles.pegdown.PegdownOptionsAdapter;
import com.vladsch.flexmark.util.options.DataHolder;
import org.apache.commons.codec.digest.DigestUtils;
import org... |
package PHRED2014;
import edu.wpi.first.wpilibj.*;
/**
*
* @author PHRED
*/
public class ObjM implements RobotMap{
//Instance variables: Motors, Sensors, etc
private Relay omMotors1; //Could be a Victor, or a spike. Same with the other victors below.
private Relay omMotors2;
private Relay omMotors3;
... |
package org.javasimon.jdbc4;
import org.javasimon.utils.Replacer;
import java.util.List;
/**
* SqlNormalizer takes SQL statement and replaces parameters with question marks. It is
* important to realize, that normalizer IS NOT SQL analyzer. It makes as simple replacement
* as possible (with my coding skill ;-)) to s... |
package org.cejug.yougi.util;
import org.cejug.yougi.business.UserAccountBean;
import org.cejug.yougi.entity.UserAccount;
import org.cejug.yougi.qualifier.UserName;
import javax.enterprise.inject.Produces;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;
import javax.servl... |
package de.javagl.jgltf.model;
import de.javagl.jgltf.impl.Node;
/**
* Utility methods related to {@link Node}s.
*/
class Nodes
{
/**
* Compute the local transform of the given {@link Node}. The transform
* is either taken from the {@link Node#getMatrix()} (if it is not
* <code>null</code>), or com... |
package matt.lyoko.entities.projectile;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.util.List;
import matt.lyoko.CodeLyoko;
import matt.lyoko.lib.PlayerInformation;
import net.minecraft.block.Block;
import net.minecraft.enchantment.EnchantmentThorns;
import net.minecraft.entity.En... |
package org.cojen.tupl.core;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
imp... |
package org.jpos.apps.qsp.config;
import java.util.Properties;
import org.jpos.util.Logger;
import org.jpos.util.LogEvent;
import org.jpos.util.LogSource;
import org.jpos.util.Loggeable;
import org.jpos.util.NameRegistrar;
import org.jpos.core.SimpleConfiguration;
import org.jpos.core.Configurable;
import org.jpos.core... |
package org.springframework.data.simpledb.core;
import com.amazonaws.services.simpledb.AmazonSimpleDB;
import com.amazonaws.services.simpledb.model.CreateDomainRequest;
import com.amazonaws.services.simpledb.model.DeleteDomainRequest;
import com.amazonaws.services.simpledb.model.ListDomainsRequest;
import java.util.Lis... |
package de.fe1k.game9.events;
import de.nerogar.noise.render.GLWindow;
public class EventAfterRender implements Event {
public GLWindow window;
public float deltaTime;
public double runTime;
public EventAfterRender(GLWindow window, float deltaTime, double runTime) {
this.window = window;
... |
import java.util.Arrays;
public class PlayerSkeleton {
public static boolean DEBUG = false;
public static boolean PRINT_UTILITY = true;
public static boolean PRINT_LINES_CLEARED = false;
// Make copies of static variables
public static final int ORIENT = State.ORIENT;
public static final int SLO... |
package org.dynmap.utils;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import org.bukkit.World;
import org.bukkit.Chunk;
import org.bukkit.World.Environment;
import o... |
package io.bitsquare.app;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Version {
private static final Logger log = LoggerFactory.getLogger(Version.class);
// The application versions
public static final String VERSION = "0.4.9.3";
// The version nr. for the objects sent over the... |
package com.wilutions.joa.fx;
import javafx.application.Platform;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.event.EventType;
import javafx.scene.Scene;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.Window;
import com.wilutions.com.AsyncResult;
import com.w... |
// This code is developed as part of the Java CoG Kit project
// This message may not be removed or altered.
package org.globus.cog.abstraction.impl.execution.gt2;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;
import org.apache.log4j... |
package org.filteredpush.qc.sciname;
/** A utility class containing the dwc:Taxon terms.
*
* @author mole
*
*/
public class Taxon {
private String taxonID;
private String kingdom;
private String phylum;
private String taxonomic_class;
private String order;
private String family;
private ... |
package com.intellij.ui.stripe;
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzerSettings;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.actionSystem.ShortcutSet;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.ui.components.JBScrollBar;
import com.intellij.util.ui.... |
package com.fsck.k9.activity;
import java.util.Collection;
import java.util.List;
import android.annotation.SuppressLint;
import android.app.FragmentManager;
import android.app.FragmentManager.OnBackStackChangedListener;
import android.app.FragmentTransaction;
import android.app.SearchManager;
import android.content.Co... |
package com.sandwell.JavaSimulation3D;
import com.sandwell.JavaSimulation.ObjectType;
import com.sandwell.JavaSimulation.Package;
import java.awt.Cursor;
import java.awt.dnd.DnDConstants;
import java.awt.dnd.DragGestureEvent;
import java.awt.dnd.DragGestureListener;
import java.awt.dnd.DragSource;
import javax.swing.JF... |
package com.sunny.grokkingalgorithms.fasttrack.dynamicprogrammingandrecursion;
public class MaximumContigousSum {
/*
Maximum contigous sub array
*/
/**
*
* @param input
* @return
*/
public static int maximumContigousSubArrayUsingKadanes(int[] input){
int maxEndingSoFar = 0;
int maxSumSoFa... |
package javax.jmdns.impl;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InterfaceAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMa... |
package org.jfree.chart;
import java.awt.Graphics2D;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.io.IO... |
package com.sun.jna;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import java.nio.ShortBuffer;
/** Exercise a range of native methods.
*
* @author twall@users.sf.net
*/
public class RawArgumentsMarshalTest extends ArgumentsMarshalTest {
public static class RawTestLibrary imp... |
package org.jfree.chart.plot;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Line2D;
imp... |
package joliex.db;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import jolie.net.CommMessage;
import jolie.runtime.CanUseJars;
import jolie.runtime.FaultException;
i... |
package org.apache.jorphan.test;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Iterator;
import java.util.Properties;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
import org.apache.jorphan.logging.... |
package joliex.db;
import java.math.BigDecimal;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import jolie.runtime.CanUseJars;
import jolie.runtime.FaultException;
im... |
package com.marklogic.client.datamovement.functionaltests;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
impor... |
package dk.statsbiblioteket.doms.updatetracker.improved.worklog;
import dk.statsbiblioteket.doms.updatetracker.improved.fedora.FedoraFailedException;
import dk.statsbiblioteket.doms.updatetracker.improved.database.UpdateTrackerPersistentStore;
import dk.statsbiblioteket.doms.updatetracker.improved.database.UpdateTracke... |
package progen.output.outputers;
import java.util.Map;
import progen.context.ProGenContext;
import progen.kernel.population.Individual;
import progen.output.HistoricalData;
import progen.output.datacollectors.DataCollector;
import progen.output.plugins.Mean;
import progen.output.plugins.Plugin;
public class StandardFil... |
package org.scijava.plugin;
import org.scijava.AbstractContextual;
import org.scijava.Contextual;
import org.scijava.Prioritized;
import org.scijava.Priority;
import org.scijava.util.ClassUtils;
/**
* Abstract base class for {@link Contextual}, {@link Prioritized} plugins that
* retain access to their associated {@li... |
package com.xpn.xwiki.plugin.activitystream.impl;
import java.util.List;
import java.util.ArrayList;
import java.io.StringWriter;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
import org.apache.commons.lang.RandomStringUtils;
import org.hibernate.Query;
import org.hibernate.Ses... |
package org.scijava.service;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.scijava.AbstractContextual;
import org.scijava.Context;
import org.scijava.Optional;
import org.scijava.event.EventServi... |
package org.xwiki.url;
import org.xwiki.component.annotation.Role;
import org.xwiki.stability.Unstable;
/**
* Normalize a relative URL. Various implementations can exist, for example one implementation may normalize the passed
* relative URL into a full absolute {@link java.net.URL} object. Another implementation may... |
package org.opendaylight.yangtools.yang.data.impl.schema.tree;
import static com.google.common.base.Preconditions.checkState;
import static com.google.common.base.Verify.verify;
import static java.util.Objects.requireNonNull;
import com.google.common.base.MoreObjects;
import com.google.common.collect.Collections2;
impo... |
package org.voovan.tools.reflect;
import org.voovan.tools.TDateTime;
import org.voovan.tools.TObject;
import org.voovan.tools.TString;
import org.voovan.tools.json.JSON;
import org.voovan.tools.json.annotation.NotJSON;
import org.voovan.tools.reflect.annotation.NotSerialization;
import java.lang.reflect.*;
import java.... |
package co.smartreceipts.android.fragments.preferences;
import java.util.ArrayList;
import java.util.List;
import co.smartreceipts.android.model.Category;
import co.smartreceipts.android.model.factory.CategoryBuilderFactory;
import co.smartreceipts.android.persistence.database.controllers.TableEventsListener;
import co... |
package org.xtx.ut4converter;
import org.xtx.ut4converter.ui.MainSceneController;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.HashMap;
import java.util.Map;
import java.util.... |
package org.openhab.binding.rfxcom.handler;
import static org.openhab.binding.rfxcom.RFXComBindingConstants.*;
import java.util.List;
import org.eclipse.smarthome.core.library.types.DecimalType;
import org.eclipse.smarthome.core.library.types.OnOffType;
import org.eclipse.smarthome.core.thing.ChannelUID;
import org.ecl... |
package org.xtx.ut4converter.t3d;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.vecmath.Vector3d;
import org.xtx.ut4converter.MapConverter;
import org.xtx.... |
package cpw.mods.fml.common;
/**
* Copied from ConsoleLogFormatter for shared use on the client
*
*/
import java.io.PrintWriter;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.logging.Formatter;
import java.util.logging.Level;
import java.util.logging.LogRecord;
final class FMLLogFo... |
package edu.cmu.pocketsphinx;
import static java.lang.String.format;
import java.io.File;
import java.util.Collection;
import java.util.HashSet;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder.AudioSource;
import android.os.*;
import android.util.Log;
import edu.cm... |
package com.jfixby.r3.fokker.api.render;
public enum RENDER_MACHINE_STATE {
NEW, READY, FRAME, SHAPES, RASTER, SHADER;
} |
package edu.utdallas.robotchess.gui;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.ButtonGroup;
import javax.swing.Icon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.... |
package py.una.med.base.model;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Anotacion que define la internacionalizacion para un field, con el
* {@link DisplayName#path()} se setea la ubicacion de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.