answer stringlengths 17 10.2M |
|---|
package ch.openech.mj.edit;
import java.awt.event.ActionEvent;
import java.util.List;
import javax.swing.AbstractAction;
import javax.swing.Action;
import ch.openech.mj.edit.form.FormVisual;
import ch.openech.mj.edit.validation.Indicator;
import ch.openech.mj.edit.validation.ValidationMessage;
import ch.openech.mj.reso... |
package org.aktin.broker.request;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import javax.inject.Qualifier;
/**
* Qualifier indicating that the request has a specified status.
* Used for CDI event handling.
*
* @author R.W.Majeed
*
*/
@Qualifier
//@Target({M... |
package openfoodfacts.github.scrachx.openfood.views.product;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.image.FilteredImageSource;
import java.awt.image.ImageFilter;
import java.awt.image.ImageProducer;
import java.awt.image.RGBImageFilter;
import java.... |
package com.google.appinventor.components.runtime;
import java.util.HashSet;
import java.util.Random;
import android.R;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.... |
package org.csstudio.alarm.table.ui;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import javax.annotation.Nonnull;
import org.apache.log4j.Logger;
import org.csstudio.alarm.service.declaration.AlarmConnectionException;
import org.csstudio.alarm.table.JmsLogsPlugin;
import org.csstud... |
package org.redisson;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Assume;
import org.junit.Test;
import or... |
package org.atlasapi.system.bootstrap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
import javax.annotation.Nullable;
import org.atlasapi.content.Brand;
import org.atlasapi.content.Container;
import org.atlasapi.content.Content;
import org.atlasapi.content.ContentIndex;
imp... |
package org.springframework.autobuilds.jpetstore.dao;
import java.util.List;
import org.springframework.autobuilds.jpetstore.domain.Account;
import org.springframework.dao.DataAccessException;
public interface AccountDao {
Account getAccount(String username) throws DataAccessException;
Account getAccount(String use... |
package org.sourcepit.beef.b2.execution;
import javax.inject.Inject;
import org.eclipse.emf.common.util.EList;
import org.sourcepit.beef.b2.model.builder.B2ModelBuildingRequest;
import org.sourcepit.beef.b2.model.builder.IB2ModelBuilder;
import org.sourcepit.beef.b2.model.builder.internal.tests.harness.AbstractB2Sessio... |
package org.elasticsoftware.elasticactors.base.serialization;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
... |
package gov.nih.nci.cabig.caaers.web.admin;
import gov.nih.nci.cabig.caaers.CaaersSystemException;
import gov.nih.nci.cabig.caaers.api.impl.DefaultInvestigatorMigratorService;
import gov.nih.nci.cabig.caaers.api.impl.DefaultResearchStaffMigratorService;
import gov.nih.nci.cabig.caaers.api.impl.ParticipantServiceImpl;
i... |
package org.codingmatters.value.objects.json;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.squareup.javapoet.*;
import org.codingmatters.value.objects.generation.ValueConfiguration;
import org.codingmatters.value.objects.json.property.SimplePropertyReader;
import... |
package com.cee.news.client.content;
import com.cee.news.client.error.ErrorHandler;
import com.cee.news.client.list.ListChangedEvent;
import com.cee.news.client.list.ListChangedHandler;
import com.cee.news.model.EntityKey;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHa... |
package org.eclipse.birt.chart.device;
import org.eclipse.birt.chart.exception.RenderingException;
/**
* This interface combines the high and low level notifications provided in the primitive and block rendering
* interfaces. In addition, it provides an accessor to retrieve the underlying graphics context.
*
* Any ... |
package org.squirrelframework.cloud.utils;
import com.google.common.cache.CacheLoader;
import org.apache.commons.lang3.StringUtils;
import org.apache.curator.utils.ThreadUtils;
import org.springframework.expression.Expression;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression... |
package org.jetel.connection.jdbc.specific.impl;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.Driver;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Collection;
import java.util.List;
import java.util.P... |
package com.intellij.codeInsight.daemon.impl.quickfix;
import com.intellij.codeInsight.daemon.QuickFixBundle;
import com.intellij.codeInsight.intention.impl.BaseIntentionAction;
import com.intellij.j2ee.openapi.impl.ExternalResourceManagerImpl;
import com.intellij.openapi.application.ApplicationManager;
import com.inte... |
package org.chromium.content.browser.input;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.CheckedTextView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
/**
* Select popup item adap... |
package org.qsardb.conversion.regression;
import org.qsardb.model.*;
public class QdbDisplayFormat implements DisplayFormat {
private Qdb qdb = null;
public QdbDisplayFormat(Qdb qdb){
setQdb(qdb);
}
public String formatLeftHandSide(String identifier){
Property property = getQdb().getProp... |
package org.hibernate.ogm.options.navigation.impl;
import static net.bytebuddy.implementation.MethodDelegation.to;
import static net.bytebuddy.matcher.ElementMatchers.named;
import static net.bytebuddy.matcher.ElementMatchers.takesArguments;
import static org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState.resolve... |
package com.example.android.sunshine2;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.format.Time;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.vie... |
package org.eclipse.birt.data.engine.executor.cache;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.logging.Logger;
import org.eclipse.birt.core.data.DataTypeUtil;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.data.engine.core.DataExcepti... |
package io.debezium.connector.postgresql;
import static org.junit.Assert.assertNotNull;
import java.net.URL;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.sql.Connection;
import java.sql.SQLException;
import java.time.Duration;
import java.util.Set;
import java.uti... |
package org.owasp.dependencycheck.data.update;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.logging.Level;
import java.util.logging.Logger;
import j... |
package org.drools.brms.client.rpc.mock;
import java.util.Date;
import java.util.HashMap;
import org.drools.brms.client.common.AssetFormats;
import org.drools.brms.client.modeldriven.SuggestionCompletionEngine;
import org.drools.brms.client.modeldriven.brxml.ActionAssertFact;
import org.drools.brms.client.modeldriven.b... |
package com.salesforce.pyplyn.duct.etl.extract.argus;
import com.codahale.metrics.Timer;
import com.google.common.collect.Iterables;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.salesforce.argus.ArgusClient;
import com.salesforce.argus.model.MetricResponse;
import com.salesforce.pyply... |
package uk.ac.ebi.variation.eva.server.ws.ga4gh;
import java.io.IOException;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
... |
package org.exist.xquery.modules.sql;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.mock;
import static org.easymock.EasyMock.verify;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.ju... |
package com.foundationdb.sql.optimizer.rule;
import com.foundationdb.server.error.CorruptedPlanException;
import com.foundationdb.server.types.common.funcs.BoolLogic;
import com.foundationdb.server.types.texpressions.TValidatedScalar;
import com.foundationdb.sql.optimizer.plan.*;
import com.foundationdb.sql.optimizer.p... |
package com.metamatrix.common.util;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
public class TestWSDLServletUtil extends TestCase {
public static String HTTP = "http"; //$NON-NLS-1$
public static String HTTPS = "https"; //$NON-NLS-1$
public static String DEFAULT_APP... |
package com.filadeatras.fila_de_atras.controllers;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servle... |
package com.vladsch.flexmark.samples;
import com.vladsch.flexmark.ast.Code;
import com.vladsch.flexmark.ast.Paragraph;
import com.vladsch.flexmark.ast.Text;
import com.vladsch.flexmark.ext.toc.TocExtension;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.html.HtmlRenderer.Builder;
import com.... |
package org.fedorahosted.flies.webtrans.client;
import org.fedorahosted.flies.webtrans.model.TransUnit;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.gen2.table.client.CachedTableModel;
import com.google.gwt.gen2.table.client.DefaultRowRenderer;
import com.google.gwt.gen2.table.client.DefaultTableDef... |
package br.net.mirante.singular.form.mform.options;
import java.util.Collection;
import br.net.mirante.singular.form.mform.MTipo;
@SuppressWarnings({"rawtypes","unchecked"})
public interface MSelectionableType<BASE extends MTipo> {
public MOptionsProvider getProviderOpcoes();
public void setProviderOpcoes(MOpti... |
package com.gooddata.sdk.service.featureflag;
import com.gooddata.GoodDataException;
import com.gooddata.sdk.model.featureflag.FeatureFlag;
import com.gooddata.sdk.model.featureflag.FeatureFlags;
import com.gooddata.sdk.model.featureflag.ProjectFeatureFlag;
import com.gooddata.sdk.model.featureflag.ProjectFeatureFlags;... |
package gw.internal.gosu.ir.nodes;
import gw.lang.reflect.IType;
import gw.lang.reflect.IRelativeTypeInfo;
import gw.lang.parser.IDynamicPropertySymbol;
import gw.lang.ir.IRType;
import gw.internal.gosu.parser.DynamicPropertySymbol;
import gw.internal.gosu.parser.ParameterizedDynamicPropertySymbol;
import gw.internal.g... |
package com.servinglynk.hmis.warehouse.dao;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import javax.xml.bind.JAXBException;
import javax.xml.bind.UnmarshalException;
import org.apache.log4j.Appender;
import org.springfra... |
package com.worth.ifs.project.transactional;
import com.worth.ifs.BaseUnitTestMocksTest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.mockito.InjectMocks;
public class ProjectServiceTest extends BaseUnitTestMocksTest {
private final Log log = LogFactory.getLog(getC... |
package com.intellij.codeInsight.intention.impl.config;
import com.intellij.codeInsight.CodeInsightWorkspaceSettings;
import com.intellij.codeInsight.daemon.HighlightDisplayKey;
import com.intellij.codeInsight.daemon.QuickFixActionRegistrar;
import com.intellij.codeInsight.daemon.QuickFixBundle;
import com.intellij.cod... |
package org.jtrim.property.swing;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Level;
import org.jtrim.concurrent.Tasks;
import org.jtrim.event.EventListeners;
import org.jtrim.property.MutableProperty;
import org.jtrim.property.PropertyFactory;
import org.jtrim.prop... |
package net.fortuna.ical4j.util;
import net.fortuna.ical4j.model.PropertyList;
import net.fortuna.ical4j.model.ValidationException;
/**
* Defines methods for validating properties and property lists.
*
* @author benfortuna
*/
public final class PropertyValidator {
private static PropertyValidator instance = new... |
package org.jasig.portal.utils;
import java.util.Hashtable;
import java.util.Iterator;
import org.w3c.dom.Attr;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Comment;
import org.w3c.dom.DOMException;
import org.w3c.dom.DOMImplementation;
import org.w3c.dom.Document;
import org.w3c.dom.DocumentFragment;
import org... |
package org.jfree.chart.editor;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.util.ParamChecks;
/**
* The central point for obtaining {@link ChartEditor} instances for editing
* charts. Right now, the API is minimal - the plan is to extend this class
* to provide customisation options for chart editors ... |
package org.jfree.chart.renderer;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.O... |
package testsuite.group;
import org.apache.log4j.Logger;
import testsuite.exception.BrowsePackageException;
import testsuite.manager.AbstractManager;
import testsuite.result.ResultsCollections;
import testsuite.test.AbstractTest;
import java.io.File;
import java.io.FileFilter;
import java.lang.reflect.Constructor;
impo... |
package core.exporters;
import core.*;
import core.events.EventNotifier;
import core.events.ExportEvent;
import core.schedulers.Scheduler;
import java.util.Collection;
/**
* Basic implementation of an exporter.
*/
public class BasicExporter implements Exporter {
private final Scheduler scheduler;
/**
* C... |
package com.nhpatt.rxjava;
import org.junit.Test;
import rx.Observable;
import java.util.Arrays;
import java.util.List;
public class RxIsALibrary {
@Test
public void anObservableEmitsThings() {
Observable.just("Hi!")
.subscribe(System.out::println, thr -> System.err.println(thr.getMessag... |
public class HelloDataTypesByte {
public static void main(String... args) {
System.out.println("Hello Data Types Byte!");
System.out.printf("size: %s\n", Byte.SIZE);
// 1. Value by Assigning a Literal
byte by1 = Byte.MIN_VALUE;
byte by2 = Byte.MAX_VALUE;
byte by3 = -1... |
package com.dawidweiss.stemmers;
import java.io.IOException;
import java.net.URL;
import junit.framework.TestCase;
import junitx.framework.ArrayAssert;
/**
* Tests lametyzator.
*
* @author Dawid Weiss
*/
public class LametyzatorTest extends TestCase {
public LametyzatorTest(String s) {
super(s);
}
... |
package net.bither.bitherj.core;
import net.bither.bitherj.api.GetHDMBIdRandomApi;
import net.bither.bitherj.api.UploadHDMBidApi;
import net.bither.bitherj.crypto.ECKey;
import net.bither.bitherj.crypto.EncryptedData;
import net.bither.bitherj.crypto.SecureCharSequence;
import net.bither.bitherj.db.AbstractDb;
import o... |
/**
*
* $Id: TestUtil.java,v 1.1 2009-07-13 17:45:12 pandyas Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2009/07/07 17:46:54 pandyas
* modified according to the recommended directory layout for BDA
*
* Revision 1.8 2008/10/01 23:54:11 schroedn
* Junit test fixes for caMOD 2.5 - revision 1
*
... |
package utils.json;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
public abstract class JsonObject<T> implements Comparable<T>
{
/**
* Debugging method.
* @return A string containing all the instance variable names and their corresponding values.
*/
protected String varDumpAl... |
package dr.inferencexml;
import dr.inference.distribution.DistributionLikelihood;
import dr.inference.model.Likelihood;
import dr.inference.model.Statistic;
import dr.math.distributions.*;
import dr.xml.*;
public class PriorParsers {
public static final String UNIFORM_PRIOR = "uniformPrior";
public static final... |
package peergos.shared.user;
import jsinterop.annotations.*;
import peergos.shared.*;
import peergos.shared.cbor.*;
import peergos.shared.crypto.*;
import peergos.shared.crypto.asymmetric.*;
import peergos.shared.crypto.hash.*;
import peergos.shared.crypto.symmetric.*;
import peergos.shared.user.fs.*;
import peergos.sh... |
package simpleserver.bot;
import static simpleserver.util.Util.print;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import jav... |
package gameengine.movement;
import gamedata.gamecomponents.Grid;
import gamedata.gamecomponents.Level;
import gamedata.gamecomponents.Piece;
import java.util.ArrayList;
import java.util.List;
import javafx.geometry.Point2D;
/**
*
* @author Jesse, Anna , Rica
*
*/
public class Movement {
// possible paths f... |
package simpleserver.bot;
import static simpleserver.util.Util.print;
import java.io.*;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.concurrent.locks.ReentrantLock;
import simpleserver.Coordinate.Dimens... |
package io.socket;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.util.regex.Pattern;
import javax.net.ssl.SSLContext;
import org.java_websocket.cl... |
package io.v.vdl;
import com.intellij.lang.ASTNode;
import com.intellij.lang.ParserDefinition;
import com.intellij.lang.PsiParser;
import com.intellij.lexer.Lexer;
import com.intellij.openapi.project.Project;
import com.intellij.psi.FileViewProvider;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
... |
package embla3d.engine;
import embla3d.engine.camera.Camera;
import embla3d.engine.light.SceneLight;
import embla3d.engine.skybox.Skybox;
import org.joml.Matrix4f;
import static org.lwjgl.opengl.GL11.*;
/**
* This class allows to manage the rendering logic of our game.
* The shader is used to configure a part of the ... |
package net.sf.picard.io;
import net.sf.picard.PicardException;
import net.sf.samtools.util.IOUtil;
import net.sf.samtools.util.RuntimeIOException;
import java.io.*;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.regex.Pattern;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPO... |
package nginx.clojure;
import static nginx.clojure.MiniConstants.STRING_CHAR_ARRAY_OFFSET;
import java.lang.ref.Reference;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package service;
import SOSCalendar.Calendars;
import SOSCalendar.Dates;
import SOSCalendar.Users;
import com.sun.xml.rpc.processor.modeler.j2ee.xml.messageDestinationLinkType;
import java.text.DateFormat;
import java.te... |
package com.mmo5.server;
import com.mmo5.server.controller.WebSocketHandler;
import com.mmo5.server.manager.GameManager;
import spark.Spark;
public class Mmo5Server {
public static void main(String[] args) {
Spark.port(getHerokuAssignedPort());
Spark.staticFiles.location("/public"); //index.html is served at ... |
package ie.dit;
import processing.core.*;
import controlP5.*;
public class RemoteControl{
// Declare Variables
PApplet papplet;
ControlP5 cp5;
Slider leftMotorSlider;
Slider rightMotorSlider;
Slider turningSlider;
// Constructor
RemoteControl(PApplet papplet) {
this.papplet = pap... |
/**
* @author Dermot Cochran, 2010-2011, IT University of Copenhagen
*
* This class generates ballot boxes that create an electoral scenario,
* for example, one winner by tie breaker and two losers, or one winner
* by
* quota, one winner as the highest continuing candidate on the l... |
package org.pentaho.di.trans;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.vfs.FileName;
import org.apache.commons.vfs.File... |
package StevenDimDoors.mod_pocketDim.saving;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import net.minecraftforge.common.DimensionManager;
import StevenDimDoors.mod_pocketDim.Point3D;
import StevenDimDoors.mod_pocketDim.core.DimLink;
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.sql.Connection;
im... |
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 edu.wustl.catissuecore.query;
public class Operator
{
/**
* OR constant
*/
public static final String OR = "OR";
/**
* EXIST constant
*/
public static final String EXIST = "EXIST";
/**
* EQUAL constant
*/
public static final String EQUAL = "=";
/**
... |
package org.apache.velocity.runtime;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.util.Hashtable;
import org.apache.log.LogKit;
import org.apache.log.Logger;
import org.apache.log.LogTarget;
import org.apache.log.output.FileOutputLogTarget;
import org.apache.velocity.Template;
import o... |
package org.jdesktop.swingx;
import java.awt.Component;
import java.awt.Container;
import java.awt.Rectangle;
import javax.swing.JComponent;
import javax.swing.RepaintManager;
/**
* This repaint manager is used by Swingx for translucency. The default implementation
* of JXPanel (which supports translucency) will repl... |
package org.jdesktop.swingx.painter;
import java.awt.Graphics2D;
import javax.swing.JComponent;
/**
* <p>Simple API for delegating painting. The JXPanel supports using this class
* as a delegate for painting the background of the panel. This allows developers
* to be able to customize the background painting of a JX... |
package org.jivesoftware.util;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import java.io.*;
import java.util.*;
/**
* Provides the the ability to use simple XML property files. Each property is
* in the form X.Y.Z, which would map to an XML sn... |
package qora.block;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import ntp.NTP;
import org.json.simple.JSONArray;
import org... |
package BriscaAI2017;
import aima.core.robotics.MonteCarloLocalization;
import java.lang.reflect.Array;
import java.util.ArrayList;
import static java.lang.Math.log;
import static java.lang.Math.sqrt;
public class Agent {
private ArrayList<Card> hand = new ArrayList<>();
private ArrayList<Card> round = new Arra... |
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 com.bugsnag;
import com.bugsnag.serialization.Expose;
import com.bugsnag.util.FilterTransformer;
import com.google.common.collect.Maps;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class Report {
private static final String PAYLOAD_VERSION = "2";
private Configuration ... |
package com.rultor;
import co.stateful.Sttc;
import com.jcabi.aspects.ScheduleWithFixedDelay;
import com.jcabi.aspects.Timeable;
import com.jcabi.aspects.Tv;
import com.jcabi.github.Github;
import com.jcabi.log.Logger;
import com.rultor.agents.Agents;
import com.rultor.profiles.Profiles;
import com.rultor.spi.Profile;
... |
package drivers;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.*;
import drivers.Task1Driver;
import drivers.Task2Driver;
import drivers.Task3Driver;
import drivers.Task4Driver;
... |
package group7.anemone;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.ut... |
package gw.gosudoc;
import gw.lang.Gosu;
import gw.lang.cli.CommandLineAccess;
import gw.lang.reflect.ReflectUtil;
import java.io.IOException;
import java.util.Arrays;
public class GosuDoc
{
public static void main( String[] args ) throws IOException
{
Gosu.bootstrapGosuWhenInitiatedViaClassfile();
Object g... |
package org.javacs;
import com.google.common.reflect.ClassPath;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
impor... |
package RebornStorage.init;
import RebornStorage.blocks.BlockMultiCrafter;
import RebornStorage.items.ItemRebornStorageCell;
import RebornStorage.items.ItemRebornStorageCellFluid;
import RebornStorage.items.ItemStoragePart;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.block.model.ModelResource... |
package authzserver;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.anno... |
package boilerplate.common;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent... |
package boilerplate.common;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.f... |
package com.alexrnl.commons.io;
import java.io.BufferedReader;
import java.io.EOFException;
import java.io.IOException;
import java.util.Objects;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Utility methods for IO stuff.<br />
* @author Alex
*/
public final class IOUtils {
/** Logger */... |
package com.benbarron.react;
import java.util.Collection;
import java.util.Collections;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.atomic.AtomicLong;
... |
package com.bigbaddevil7.rustic;
import cpw.mods.fml.common.Mod;
@Mod(modid="Rustic", name = "Rustic", version = "1.7.2-0.0.1") //Tells Forge that this is a mod
public class Rustic {
@Mod.EventHandler
public void preInit(){
//TODO AGAIN
}
} |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.LinkedList;
import java.util.Queue;
/**
* 111. Minimum Depth of Binary Tree
* Given a binary tree, find its minimum depth.
* The minimum depth is the number of nodes along the shortest path from the root node down to ... |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* 140. Word Break II
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words,
add spaces in s to construct a sentence where each word is a valid dictionary word.
Retu... |
package com.fishercoder.solutions;
public class _541 {
public static class Solution1 {
public String reverseStr(String s, int k) {
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < s.length(); i = i + 2 * k) {
if (s.length() >= (i + k)) {
... |
package com.fishercoder.solutions;
public class _546 {
public static class Solution1 {
public int removeBoxes(int[] boxes) {
int[][][] dp = new int[100][100][100];
return calculatePoints(boxes, dp, 0, boxes.length - 1, 0);
}
public int calculatePoints(int[] boxes, int... |
package com.fishercoder.solutions;
import java.util.HashSet;
import java.util.Set;
/**
* 548. Split Array with Equal Sum
*
* Given an array with n integers, you need to find if there are triplets (i, j, k) which satisfies following conditions:
* 0 < i, i + 1 < j, j + 1 < k < n - 1
* Sum of subarrays (0, i - 1), (i... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.ArrayList;
import java.util.List;
public class _783 {
public static class Solution1 {
public int minDiffInBST(TreeNode root) {
List<Integer> inorder = new ArrayList<>();
inorder(root, ... |
package com.fishercoder.solutions;
public class _880 {
public static class Solution1 {
public String decodeAtIndex(String S, int K) {
//TODO: implement it
return "";
}
}
} |
package com.forrst.api;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.forrst.api.model.Auth;
import com.forrst.api.model.Comment;
import com.fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.