answer stringlengths 17 10.2M |
|---|
// BUI - a user interface library for the JME 3D engine
// 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 datafu.pig.util;
import java.io.IOException;
import org.apache.pig.EvalFunc;
import org.apache.pig.data.DataType;
import org.apache.pig.data.Tuple;
import org.apache.pig.impl.logicalLayer.schema.Schema;
import org.apache.pig.impl.logicalLayer.schema.Schema.FieldSchema;
public class COALESCE extends EvalFunc<Obj... |
package org.jsimpledb.core;
import java.security.SecureRandom;
import java.util.regex.Pattern;
import org.jsimpledb.kv.KeyRange;
import org.jsimpledb.util.ByteReader;
import org.jsimpledb.util.ByteUtil;
import org.jsimpledb.util.ByteWriter;
import org.jsimpledb.util.UnsignedIntEncoder;
/**
* Object IDs. Instances iden... |
package org.goochjs.glicko2;
import java.util.List;
import org.joda.time.DateTime;
import org.joda.time.Duration;
public class RatingCalculator {
private final static double DEFAULT_RATING = 1500.0;
private final static double DEFAULT_DEVIATION = 350;
private final static double DEFAULT_VOLATILITY = 0.06;
pr... |
package jtermios.windows;
import java.io.File;
import java.nio.ByteBuffer;
import java.util.*;
import java.util.regex.Pattern;
import com.sun.jna.*;
import com.sun.jna.ptr.IntByReference;
import static jtermios.JTermios.*;
import static jtermios.JTermios.JTermiosLogging.*;
import jtermios.*;
import jtermios.windows.Win... |
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileInputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Hasht... |
package Music;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager;
import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager;
import com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers;
import net.dv8tion.jda.core.audio.hooks.ConnectionStatus;
import net.dv8tion.jda.core.entities.C... |
package client;
import static client.Client.PADDING_WIDTH;
import static client.Client.STAGE_WIDTH;
import java.util.function.Consumer;
import javafx.geometry.Insets;
import javafx.scene.control.TextField;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.Corne... |
package com.box.sdk;
import java.net.URL;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.eclipsesource.json.JsonArray;
import com.eclipsesource.json.JsonObject;
import com.eclipsesource.json.JsonValue;
/**
* Represents a task on Box. Tasks can have... |
package com.dc.core;
import loci.common.services.DependencyException;
import loci.common.services.ServiceException;
import loci.common.services.ServiceFactory;
import loci.formats.FormatException;
import loci.formats.FormatTools;
import loci.formats.MetadataTools;
import loci.formats.meta.IMetadata;
import loci.formats... |
package frames;
import java.awt.Color;
import java.awt.Font;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.ImageIcon;
/*import com.jgoodies.forms.layout.F... |
package javax.time;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.concurrent.TimeUnit;
import javax.time.calendar.format.CalendricalParseException;
/**
* A duration between two instants on the time-line.
* <p>
* The Time Framework for Java models time as a se... |
package leetcode;
public class Problem258 {
public int addDigits(int num) {
int n = num;
String s = Integer.toString(n);
while (s.length() != 1) {
n = 0;
for (char c : s.toCharArray()) {
int i = Integer.parseInt(Character.toString(c));
... |
package leetcode;
public class Problem316 {
public String removeDuplicateLetters(String s) {
StringBuilder sb = new StringBuilder();
return sb.toString();
}
public static void main(String[] args) {
Problem316 prob = new Problem316();
// System.out.println(prob.removeDuplicateL... |
package leetcode;
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 Problem690 {
private static class Employee {
// It's the unique id of each node;
// unique id of this employee
pri... |
package leetcode;
public class Problem832 {
public int[][] flipAndInvertImage(int[][] A) {
int nRow = A.length;
int nCol = 0;
if (nRow > 0) {
nCol = A[0].length;
}
int[][] result = new int[nRow][nCol];
for (int i = 0; i < A.length; i++) {
for (... |
package leetcode;
import java.util.Arrays;
public class Problem868 {
public int[][] transpose(int[][] A) {
int nRow = A.length;
int nCol = 0;
if (A.length > 0) {
nCol = A[0].length;
}
int[][] result = new int[nCol][nRow];
for (int row = 0; row < nRow; row+... |
package leetcode;
public class Problem904 {
public int totalFruit(int[] tree) {
int answer = 0;
TypeCount[] tc = new TypeCount[2];
for (int i = 0; i < tree.length; i++) {
if (tc[0] == null) {
tc[0] = new TypeCount(tree[i]);
tc[0].count++;
... |
package leetcode;
public class Problem974 {
public int subarraysDivByK(int[] A, int K) {
int total = 0;
int[] count = new int[K];
count[0] = 1;
int answer = 0;
for (int i = 0; i < A.length; i++) {
total += A[i];
int mod = total % K;
// Make... |
package me.rkfg.pfe;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.HashMap;
import... |
package org.oakgp;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Represents the type signature of a {@code Function}.
* <p>
* A signature includes the return type, the number of arguments and the type of each argument.
*/
public final class Signature { // TODO move to org.oakgp... |
package org.swingeasy;
import java.awt.event.ActionEvent;
import java.util.Locale;
import javax.swing.JComponent;
import javax.swing.JTree;
import javax.swing.ToolTipManager;
import javax.swing.tree.TreePath;
import org.swingeasy.EComponentPopupMenu.ReadableComponent;
import ca.odell.glazedlists.matchers.Matcher;
/**
... |
package smims.networking.messages;
import java.lang.reflect.*;
import java.util.Collection;
import com.google.gson.*;
import com.google.gson.reflect.TypeToken;
import smims.networking.model.Board;
import smims.networking.model.BoardDescriptor;
public class BoardDeserializer implements JsonDeserializer<Board>{
@Over... |
package org.ektorp.util;
import java.util.regex.*;
/**
*
* @author henrik
* @deprecated don't use as this encoder is too simplistic.
*/
@Deprecated
public class JSONEncoding {
private final static String QUOTE = "\"";
private final static Pattern isJSONPattern = Pattern
.compile("^[\\[{\"].+[\\]... |
package com.icaynia.dmxario.View;
import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import com.icaynia.dmxario.R;
public class CardView extends LinearLayout {
priva... |
import http.helpers.EnvironmentHelper;
import net.itarray.automotion.validation.ResponsiveUIValidator;
import net.itarray.automotion.validation.properties.Padding;
import org.assertj.core.api.SoftAssertions;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.openqa.selenium.By;
import or... |
package ruke.vrj;
public enum SymbolFlag {
LIBRARY,
SCOPE,
STRUCT,
FUNCTION,
TYPE,
LOCAL,
GLOBAL,
PROPERTY,
ARRAY,
VARIABLE,
STATIC,
PRIVATE,
PUBLIC,
READONLY,
CONSTANT
} |
package rx.broadcast;
import org.jetbrains.annotations.NotNull;
import java.io.Serializable;
import java.net.InetAddress;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Base64;
public final class Sender implements Serializable, Comparable<Sender> {
private static final long serialVersionUID =... |
package servers;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.Properties;
import java.util.SortedSet;
import util.FileOps;
public class WriteToDisk implements Runnable {
private NodeServerProperties1 properties;
private static final Logger LOG = LogManager... |
package summer.util;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @author li
* @version 1 (20151010 1:01:4... |
package com.permutassep.ui;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.... |
package com.youcruit.onfido.api;
import static java.util.Arrays.asList;
import java.io.IOException;
import java.net.URI;
import java.util.Calendar;
import java.util.Collections;
import java.util.TimeZone;
import java.util.UUID;
import org.junit.Test;
import com.neovisionaries.i18n.CountryCode;
import com.youcruit.onfid... |
package de.bmoth.ltl;
import de.bmoth.TestParser;
import de.bmoth.backend.ltl.LTLTransformations;
import de.bmoth.parser.ast.nodes.ltl.*;
import org.junit.Test;
import static de.bmoth.parser.ast.nodes.ltl.LTLPrefixOperatorNode.Kind.NEXT;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assert... |
package jp.rikinet.util.dto;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static org.junit.Assert.*;
public class SimpleDtoTest {
private static class SimpleDto extends Root {
private static final String C... |
package linenux.command;
import static linenux.helpers.Assert.assertChangeBy;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.time.LocalDateTime;
import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
im... |
package net.finmath.stochastic;
import org.junit.Assert;
import org.junit.Test;
public class ScalarTest {
@Test
public void testAbs(){
Assert.assertEquals(0.0, (new Scalar(0.0)).abs().doubleValue(), 0.0);
Assert.assertEquals(5.6, (new Scalar(5.6)).abs().doubleValue(), 0.0);
Assert.assert... |
package org.aikodi.rejuse.graph;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.aikodi.rejuse.data.graph.BidiEdgeFactory;
import org.aikodi.rejuse.data.graph.DefaultNodeFactory;
import org.aikodi.rejuse.data.graph.Edge;
import org.aikodi.rejuse.... |
package org.jenkinsci.plugins.p4;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
im... |
package tk.wurst_client.gui.options;
import java.util.Arrays;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import tk.wurst_client.WurstClient;
import tk.wurst_client.gui.options.keybinds.GuiKeybindManager;
import tk.wurst_client.gui.options... |
package org.javacint.demo;
import java.util.TimerTask;
import javax.microedition.io.HttpConnection;
import org.javacint.apnauto.APNAutodetection;
import org.javacint.at.ATExecution;
import org.javacint.console.AddNetworkConsoleCommand;
import org.javacint.console.ConsiderUpdateCommand;
import org.javacint.console.Conso... |
package oap.testng.cases;
public class XCases extends TestCaseTest {
@TestCaseProvider
@SuppressWarnings( "unused" )
public Object[][] cases() {
return new Object[][] {
thecase( "X1" )
};
}
} |
package oasis.graphics.jogl3;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import com.jogamp.opengl.GL;
import com.jogamp.opengl.GL2;
import com.jogamp.opengl.GL3;
import com.jogamp.opengl.GLAutoDrawable;
import com.jogamp.opengl.GLCapabilities;
import com.jogamp.opengl... |
package org.greip.decorator;
import java.io.InputStream;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.ImageLoader;
import org.eclipse.swt.graphics.P... |
package org.jenetics;
import static org.jenetics.util.object.Verify;
import static org.jenetics.util.object.eq;
import static org.jenetics.util.object.hashCodeOf;
import static org.jenetics.util.object.nonNull;
import java.util.Iterator;
import javolution.lang.Immutable;
import javolution.lang.Realtime;
import javoluti... |
package org.osgi.framework;
import java.util.Dictionary;
public interface Filter {
/**
* Filter using a service's properties.
* <p>
* The filter is executed using the keys and values of the referenced service's
* properties. The keys are case insensitively matched with the filter.
*
*... |
package progen.experimenter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import progen.ProGenException;
import progen.context.ProGenContext;
import progen.... |
package org.pentaho.agilebi.test;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.pentaho.agilebi.pdi.modeler.AvailableField;
import org.pentaho.agilebi.pdi.modeler.DimensionMetaDataCollection;
import org.pentaho.agilebi.pdi.modeler.ModelerController;
import org.pentaho.agilebi... |
package ifc.loader;
import lib.MultiMethodTest;
import lib.StatusException;
import util.RegistryTools;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.loader.CannotActivateFactoryException;
import com.sun.star.loader.XImplementationLoader;
import com.sun.star.re... |
package raptor.swt.chess.movelist;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyleRange;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.KeyAdap... |
package org.subethamail.smtp.test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Date;
import java.util.Iterator;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingExcepti... |
package net.runelite.api;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public enum VarPlayer
{
ATTACK_STYLE(43),
BANK_TAB(115),
SPECIAL_ATTACK_PERCENT(300),
SPECIAL_ATTACK_ENABLED(301),
IN_RAID_PARTY(1427),
/**
* Experience tracker goal start
*/
... |
package ru.stqa.pft.sandbox;
import org.testng.Assert;
import org.testng.annotations.Test;
public class SquareTests {
@Test
public void testArea(){
Square s = new Square(5);
Assert.assertEquals(s.area(), 25.0);
}
} |
// This file is part of Serleena.
// Nicola Mometto, Filippo Sestini, Tobia Tesan, Sebastiano Valle.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom t... |
package io.spine.server.model;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSetMultimap;
import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps;
import c... |
package org.opencps.pki;
import java.security.GeneralSecurityException;
import com.itextpdf.text.pdf.security.PdfPKCS7;
/**
* Signature information of pdf document
*
* @author Nguyen Van Nguyen <nguyennv@iwayvietnam.com>
*/
public class PdfSignatureInfo extends SignatureInfo {
private PdfPKCS7 pkcs7;
/**
... |
package net.gotev.sipservice;
import android.media.AudioManager;
import android.media.ToneGenerator;
import org.pjsip.pjsua2.AudDevManager;
import org.pjsip.pjsua2.AudioMedia;
import org.pjsip.pjsua2.Call;
import org.pjsip.pjsua2.CallInfo;
import org.pjsip.pjsua2.CallMediaInfo;
import org.pjsip.pjsua2.CallOpParam;
impo... |
package com.pump.showcase;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.In... |
package org.rabix.engine.model;
import java.util.ArrayList;
import java.util.List;
import org.rabix.bindings.model.LinkMerge;
import org.rabix.bindings.model.dag.DAGLinkPort;
import org.rabix.bindings.model.dag.DAGLinkPort.LinkPortType;
import org.rabix.bindings.model.dag.DAGNode;
import org.rabix.engine.model.scatter.... |
package railo.runtime.net.ldap;
import java.io.IOException;
import java.security.Security;
import java.util.Enumeration;
import java.util.Hashtable;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Attribute;
import javax.naming.directory.Attributes;
import javax... |
package hudson.remoting;
import junit.framework.TestCase;
/**
* @author Kohsuke Kawaguchi
*/
public class DummyClassLoaderTest extends TestCase {
public void testLoad() throws Throwable {
DummyClassLoader cl = new DummyClassLoader(this.getClass().getClassLoader());
Callable c = (Callable) cl.loadC... |
package org.wiztools.restclient.ui;
import java.awt.Font;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.logging.Logger;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import org.wiztools.restclient.ServiceLocator;
/**
*
* @author Subhash
*/
public class Main {
priva... |
package net.i2p.router.peermanager;
import java.io.IOException;
import java.io.OutputStream;
import java.io.Writer;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.Collections;
import j... |
package com.s3auth.hosts;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.GetObjectRequest;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.amazonaws.services.s3.model.S3Object;
import com.jcabi.aspects.Loggable;
import java.io.IOException;
import java.io.InputStream;... |
package rl.java.course.sandbox;
public class MyFirstProgram {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
} |
package ru.stqa.course.sandbox;
public class MyFirstProgram {
public static void main(String[] args) {
hello("world");
hello("user");
hello("Alexei");
double l = 5;
System.out.println("Площадь квадрата со стороной " + l + "= " + area(l));
double a = 4;
double ... |
package org.spine3.server.command;
import com.google.common.annotations.VisibleForTesting;
import com.google.protobuf.Message;
import org.spine3.base.Command;
import org.spine3.base.CommandId;
import org.spine3.base.CommandStatus;
import org.spine3.base.Error;
import org.spine3.base.Errors;
import org.spine3.base.Failu... |
package com.garpr.android;
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.crashlytics.android.Crashlytics;
... |
package org.demyo.model;
import java.math.BigDecimal;
import java.util.List;
import java.util.SortedSet;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
im... |
package org.umlg.sqlg.structure;
import com.google.common.base.Preconditions;
import org.apache.tinkerpop.gremlin.structure.io.graphson.AbstractObjectDeserializer;
import org.apache.tinkerpop.shaded.jackson.core.JsonGenerationException;
import org.apache.tinkerpop.shaded.jackson.core.JsonGenerator;
import org.apache.ti... |
package org.intermine.web;
import java.util.Map;
import java.util.Properties;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logge... |
package org.objectweb.proactive.examples.flowshop;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import org.apache.log4j.Logger;
import org.objectweb.proactive.ActiveObjectCreationException;
import org.objectweb.proactive.ProActive;
impo... |
package io.cattle.platform.iaas.api.auth.github;
import io.cattle.platform.archaius.util.ArchaiusUtil;
import io.cattle.platform.core.model.Account;
import io.cattle.platform.iaas.api.auth.dao.AuthDao;
import io.cattle.platform.token.TokenService;
import io.cattle.platform.util.type.CollectionUtils;
import io.github.ib... |
package com.pg85.otg.customobject.bofunctions;
import java.util.List;
import java.util.Random;
import com.pg85.otg.customobject.config.CustomObjectConfigFile;
import com.pg85.otg.customobject.config.CustomObjectConfigFunction;
import com.pg85.otg.util.nbt.NBTHelper;
import com.pg85.otg.exceptions.InvalidConfigException... |
package com.rultor.repo;
import com.rultor.spi.Variable;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;
/**
* Test case for {@link BigText}.
* @author Yegor Bugayenko (yegor@tpc2.com)
* @version $Id$
*/
public final class BigTextTest {
/**
* BigText can make an inst... |
package net.runelite.api;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* An enumeration of local player variables.
*/
@AllArgsConstructor
@Getter
public enum VarPlayer
{
ATTACK_STYLE(43),
QUEST_POINTS(101),
IS_POISONED(102),
/**
* Seems to start at 50(10 splash) and goes down by 1 ... |
package ru.stqa.pft.sandbox;
import org.testng.Assert;
import org.testng.annotations.Test;
public class SquareTests {
@Test
public void testArea() {
Square s5 = new Square(5);
Assert.assertEquals(s5.area(), 20.0);
Square s12 = new Square(12);
Assert.assertEquals(s12.area(), 144.0);
Square s0 = n... |
package integratedtoolkit.worker.invokers;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.ProcessBuilder.Redirect;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import int... |
package org.continuity.session.logs.converter;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.ut... |
package cc.topicexplorer.actions.bestdocs;
import java.io.PrintWriter;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import cc.topicexplorer.database.Database;
import cc.topicexplorer.data... |
package io.openshift.appdev.missioncontrol.core.impl;
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.URI;
import java.net.URL;
import java.nio.file.Files;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
impo... |
package org.csstudio.utility.batik;
import java.awt.Dimension;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.... |
package com.orientechnologies.orient.core.metadata.security;
import org.junit.Assert;
import org.junit.Test;
public class OSecurityResourceTest {
@Test
public void testParse(){
Assert.assertEquals(OSecurityResourceClass.ALL_CLASSES, OSecurityResource.parseResource("database.class.*"));
Assert.assertEquals(O... |
package org.hisp.dhis.dxf2.common;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hisp.dhis.common.IdSchemes;
import org.hisp.dhis.co... |
package org.cytoscape.ding.impl;
import static java.awt.event.KeyEvent.*;
import static org.cytoscape.ding.internal.util.ViewUtil.*;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.FlowLayout;... |
package ifc.ui.dialogs;
import lib.MultiMethodTest;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.ui.dialogs.XFolderPicker;
/**
* Testing <code>com.sun.star.ui.XFolderPicker</code>
* interface methods :
* <ul>
* <li><code> setDisplayDirectory()</code></li>
* <li><code> getDisplayDirectory()</code... |
package org.eclipse.birt.report.engine.api.impl;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
i... |
package org.camunda.bpm.engine.impl.core.operation;
import java.util.List;
import org.camunda.bpm.engine.delegate.BaseDelegateExecution;
import org.camunda.bpm.engine.delegate.DelegateListener;
import org.camunda.bpm.engine.impl.core.instance.CoreExecution;
import org.camunda.bpm.engine.impl.core.model.CoreModelElement... |
package com.menny.android.anysoftkeyboard.keyboards;
import java.util.HashMap;
import org.xmlpull.v1.XmlPullParser;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.Drawable;
import android.inputmethodservice.Keyboard;
i... |
package com.vaadin.terminal.gwt.client;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler;
import com.google.gwt.cor... |
package org.geomajas.puregwt.example.client;
import org.geomajas.puregwt.client.GeomajasGinjector;
import org.geomajas.puregwt.example.base.client.ExampleBase;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.user.client.ui.RootLayoutPanel;
/**
* Entry point an... |
package org.apache.jmeter.visualizers;
import java.util.ArrayList;
import java.util.List;
import javax.swing.event.TableModelListener;
import javax.swing.table.TableModel;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jmeter.util.JMeterUtils;
import org.apache.jorphan.logging.LoggingManager;
import ... |
package fi.iot.iiframework.restapi;
import fi.iot.iiframework.domain.InformationSource;
import fi.iot.iiframework.errors.ErrorLogger;
import fi.iot.iiframework.errors.ErrorSeverity;
import fi.iot.iiframework.errors.ErrorType;
import fi.iot.iiframework.restapi.exceptions.InvalidObjectException;
import fi.iot.iiframework... |
package fi.iot.iiframework.restapi;
import fi.iot.iiframework.domain.InformationSource;
import fi.iot.iiframework.errors.ErrorLogger;
import fi.iot.iiframework.errors.ErrorSeverity;
import fi.iot.iiframework.errors.ErrorType;
import fi.iot.iiframework.restapi.exceptions.InvalidObjectException;
import fi.iot.iiframework... |
package org.qfox.jestful.commons.conversion;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
*
*
... |
package com.danielstone.materialaboutlibrary.adapters;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;... |
package ca.eandb.sortable.json;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import ca.eandb.sortable.Product;
import ca.eandb.sortable.ProductReader;
import ca... |
package org.libreplan.web.orders;
import static org.libreplan.web.I18nHelper._;
import java.math.BigDecimal;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
impo... |
package it.uniroma1.lcl.dietrolequinte.loader.query;
import java.io.File;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.AbstractList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import it.uniroma1.lcl.dietrolequinte.Utente;
import it.uniroma1.lcl.di... |
package org.xins.client;
import java.io.IOException;
import java.net.ConnectException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Collections;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpConnection;
import org.apache.commons.htt... |
package org.xins.server;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.Iterator;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.xins.common.MandatoryArgumentChecker;
import org.xins... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.