answer
stringlengths
17
10.2M
package org.zstack.rest; import okhttp3.*; import org.apache.commons.beanutils.PropertyUtils; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.reflectio...
package org.xbill.DNS; import java.io.*; import java.net.*; import org.xbill.DNS.utils.*; /** * A simple clone of the java.net.InetAddress class, using dnsjava routines. * * @author Brian Wellington */ public final class Address { private Address() {} /** * Convert a string containing an IP address to an array of ...
package ui; import com.codeborne.selenide.ElementsCollection; import com.codeborne.selenide.SelenideElement; import com.codeborne.selenide.WebDriverRunner; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; import org.junit.*; import org.openqa.selenium.By; import org.openqa.selenium...
import ge.edu.freeuni.sdp.iot.simulator.bath.jaxb.VentSwitchPostRequest; import ge.edu.freeuni.sdp.iot.simulator.bath.service.BathroomService; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.JerseyTest; import org.junit.Test; import javax.ws.rs.core.Application; import javax.ws.rs.co...
package risk.data; import risk.components.Map; import risk.utils.command.*; import risk.utils.listeners.PlayerChangedListener; import risk.utils.listeners.StateChangeListener; import risk.utils.states.IState; import risk.utils.states.NewState; import risk.utils.states.State; import java.awt.*; import java.util.ArrayLis...
package springs; import masses.Mass; public class Muscle extends Spring { private double mAmplitude; private double mLength; private int mCount; public static final int DEFAULT_PERIOD = 60; public static final double AMPLITUDE_INCREMENT = 0.05; public Muscle (Mass m1, Mass m2, double amplitude) ...
package stack; import java.util.Stack; public class MinStack { //TAG: Google //TAG: Uber //TAG: Stack //Difficulty: Easy /** * 155. Min Stack * Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. ...
package opendap.semantics.IRISail; import net.sf.saxon.s9api.SaxonApiException; import org.jdom.Element; import org.slf4j.Logger; import java.util.*; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; ...
package opendap.semantics.IRISail; import org.slf4j.Logger; import java.util.*; import org.openrdf.model.Resource; import org.openrdf.model.URI; import org.openrdf.model.Value; import org.openrdf.model.ValueFactory; import org.openrdf.query.BindingSet; import org.openrdf.query.MalformedQueryException; import org.openrd...
package org.apache.fop.svg; import org.apache.fop.pdf.*; import org.apache.fop.fonts.*; import org.apache.fop.render.pdf.FontSetup; import org.apache.fop.layout.*; import org.apache.fop.apps.FOPException; import java.awt.Graphics; import java.awt.Font; import java.awt.Image; import java.awt.Color; import java.io.Output...
package org.apache.xerces.impl.xpath.regex; import java.util.Vector; import java.util.Hashtable; /** * This class represents a node in parse tree. * * @version $Id$ */ class Token implements java.io.Serializable { static final boolean COUNTTOKENS = true; static int tokens = 0; static final int CHAR = 0;...
package org.bouncycastle.asn1.cms; import java.util.Enumeration; import java.util.Hashtable; import java.util.Vector; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Set; import org.bouncycastle.asn1.DEREncodableVector; import org.bouncycastle.asn1.DERObjectIdentifier; public class At...
package org.concord.datagraph.ui; import java.awt.BasicStroke; import java.awt.Color; import java.awt.GradientPaint; import java.awt.Graphics2D; import java.awt.Paint; import java.awt.Point; import java.awt.Shape; import java.awt.Stroke; import java.awt.geom.Line2D; import java.awt.geom.Point2D; import java.awt.geom.Re...
package org.dita.dost.reader; import static org.dita.dost.util.Constants.*; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.ArrayList; import java.util.HashMap...
package org.exist.storage.txn; import net.jcip.annotations.ThreadSafe; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.exist.EXistException; import org.exist.security.PermissionDeniedException; import org.exist.storage.*; import org.exist.storage.journal.JournalException; ...
package com.orm; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteStatement; import android.text.TextUtils; import android.util.Log; import com.orm.dsl.Table; import c...
package org.nusco.swimmers.creature.genetics; import java.util.Random; public class DNA { public static final int MIRROR_ORGAN = 0b00000001; public static final double MUTATION_RATE = 0.03; private int[] genes; public DNA(int... genes) { this.genes = normalize(genes); } private int[] nor...
package org.oasis.plugin.responders; import java.awt.Dimension; import java.awt.Toolkit; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.SecretKeySpec; import javax.swing.JFrame; import javax.swing.JOptionPane...
package org.objectweb.proactive.examples.mpi; import org.apache.log4j.Logger; import org.objectweb.proactive.ProActive; import org.objectweb.proactive.core.ProActiveException; import org.objectweb.proactive.core.config.ProActiveConfiguration; import org.objectweb.proactive.core.descriptor.data.ProActiveDescriptor; impo...
package org.opencms.relations; import org.opencms.file.CmsObject; import org.opencms.file.CmsProperty; import org.opencms.file.CmsPropertyDefinition; import org.opencms.file.CmsResource; import org.opencms.file.CmsResourceFilter; import org.opencms.file.CmsVfsResourceNotFoundException; import org.opencms.file.types.Cms...
package org.lp20.aikuma.model; import android.util.Log; import org.lp20.aikuma.Aikuma; import org.lp20.aikuma.util.FileIO; import org.lp20.aikuma.util.StandardDateFormat; import java.io.File; import java.io.FilenameFilter; import java.io.IOException; import java.text.ParseException; import java.util.Arrays; import java...
package org.openid4java.consumer; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.cookie.CookiePolicy; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.methods.StringRequestEntity; import ...
package de.cyberkatze.iroot; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Build; import org.apache.cordova.LOG; import java.io.File; import java.util.List; public class InternalRootDetection { public boolean isRooted(final Context...
package org.pentaho.di.trans.steps.janino; import java.math.BigDecimal; import java.util.Date; import org.codehaus.janino.ExpressionEvaluator; import org.pentaho.di.core.Const; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.exception.KettleValueException; import org.pentaho.di.core.row...
package api.web.gw2.mapping.v2.guild.id.treasury; import api.web.gw2.mapping.core.IdValue; import api.web.gw2.mapping.core.QuantityValue; import api.web.gw2.mapping.v2.APIv2; import java.util.Set; @APIv2(endpoint = "v2/guid/:id/treasury", requiresAuthentication = true, scope = "guilds") // NOI18N. public interface Trea...
package cgeo.geocaching; import cgeo.geocaching.activity.ShowcaseViewBuilder; import cgeo.geocaching.connector.ConnectorFactory; import cgeo.geocaching.connector.ILoggingManager; import cgeo.geocaching.connector.ImageResult; import cgeo.geocaching.connector.LogResult; import cgeo.geocaching.connector.trackable.Trackabl...
package cgeo.geocaching.export; import cgeo.geocaching.LogEntry; import cgeo.geocaching.R; import cgeo.geocaching.Settings; import cgeo.geocaching.cgCache; import cgeo.geocaching.cgWaypoint; import cgeo.geocaching.cgeoapplication; import cgeo.geocaching.activity.ActivityMixin; import cgeo.geocaching.activity.Progress; ...
package cn.cerc.mis.tools; import lombok.extern.slf4j.Slf4j; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; import ja...
package cec.net; import java.util.ArrayList; import java.util.logging.Logger; import cec.net.ChangeSetFields; import cec.net.ChangeSetState; import cec.net.CommunicationChangeSet; //Responsible to create a new change set and update the values on server side public class ServerMeetingMerger { static Logger logger = ...
package tdc2014.temporal; import java.time.LocalDate; import java.time.temporal.Temporal; import java.time.temporal.TemporalAdjuster; import java.util.stream.Stream; public class DiasUteisAdjuster implements TemporalAdjuster { private long quantidadeDias; private final DiaUtilQuery diaUtilQuery; public Dias...
package br.com.blackhubos.eventozero.handlers; import java.io.File; import java.util.Vector; import org.bukkit.plugin.Plugin; import br.com.blackhubos.eventozero.EventoZero; import br.com.blackhubos.eventozero.shop.Shop; import br.com.blackhubos.eventozero.util.Framework.Configuration; public class ShopHandler { pr...
package net.sf.saffron.sql2rel; import junit.framework.AssertionFailedError; import junit.framework.TestCase; import net.sf.saffron.jdbc.SaffronJdbcConnection; import net.sf.saffron.oj.OJPlannerFactory; import openjava.mop.*; import openjava.ptree.ClassDeclaration; import openjava.ptree.MemberDeclarationList; import op...
package nl.mpi.kinnate.ui; import java.awt.Color; import java.awt.Point; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.MouseEvent; import javax.swing.JTextPane; import javax.swing.text.Style; import javax.swing.text.StyleConstants; import javax.swing.text.StyledDocument; i...
package com.eclipserunner.model; import static com.eclipserunner.Messages.Message_uncategorized; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclips...
package org.reldb.rel.client; import java.io.*; import java.lang.reflect.InvocationTargetException; import java.net.MalformedURLException; import java.util.Stack; import java.util.Vector; import org.reldb.rel.client.Error; import org.reldb.rel.client.connection.CrashHandler; import org.reldb.rel.client.connection.Crash...
package nl.mpi.kinnate.ui; import java.awt.Color; import java.awt.Point; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.MouseEvent; import javax.swing.JTextPane; import javax.swing.text.Style; import javax.swing.text.StyleConstants; import javax.swing.text.StyledDocument; i...
package com.godroup.plugins.movetogroup; import java.io.File; import java.util.ArrayList; import static java.util.Arrays.asList; import java.util.Collection; import java.util.List; import java.util.prefs.BackingStoreException; import java.util.prefs.Preferences; import static java.util.stream.Collectors.toList; import ...
// Package package com.hp.hpl.jena.ontology.impl.test; // Imports import java.io.*; import java.util.*; import com.hp.hpl.jena.graph.*; import com.hp.hpl.jena.graph.impl.*; import com.hp.hpl.jena.mem.GraphMem; import com.hp.hpl.jena.ontology.*; import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.vocabulary.OWL; ...
package org.displaytag.util; import java.net.URLEncoder; import java.util.Enumeration; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.lang.StringUtils; /** * A R...
package com.jcwhatever.nucleus.utils.items; import com.jcwhatever.nucleus.Nucleus; import com.jcwhatever.nucleus.managed.items.serializer.IItemStackDeserializer; import com.jcwhatever.nucleus.managed.items.serializer.IItemStackSerializer; import com.jcwhatever.nucleus.managed.items.serializer.InvalidItemStackStringExce...
package com.jwetherell.algorithms.data_structures; public class TrieMap<C extends CharSequence> extends Trie<C> { public TrieMap() { root = new MapNode<C>(null); } public boolean add(C key, int value) { int length = (key.length()-1); Node<C> prev = root; for (int i=0; i<lengt...
package com.milkenknights.burgundyballista; import edu.wpi.first.wpilibj.Talon; /** * * @author Jake */ public class DriveSubsystem extends Subsystem { JStick xbox; Drive drive; SolenoidPair driveGear; boolean normalDriveGear; boolean slowMode; public DriveSubsystem(RobotConfig config) { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.untamedears.JukeAlert.storage; import com.untamedears.JukeAlert.JukeAlert; import com.untamedears.JukeAlert.chat.ChatFiller; import com.untamedears.JukeAlert.group.GroupMediator; import com.untamedears.JukeAl...
package me.nallar.patched.entity; import java.util.List; import net.minecraft.block.Block; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.Item; import net...
package fi.aalto.tripchain.route; import java.io.IOException; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import or...
package docs.home.persistence; import java.util.Optional; import akka.Done; //#post1 import com.lightbend.lagom.javadsl.persistence.PersistentEntity; public class Post2 extends PersistentEntity<BlogCommand, BlogEvent, BlogState> { @Override public Behavior initialBehavior(Optional<BlogState> snapshotState) { Be...
// of this software and associated documentation files(the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions : // all copies or substanti...
package com.jme3.bullet.objects; import com.jme3.math.Vector3f; import com.jme3.scene.Spatial; import com.jme3.bullet.PhysicsSpace; import com.jme3.bullet.collision.PhysicsCollisionObject; import com.jme3.bullet.collision.shapes.CollisionShape; import com.jme3.bullet.collision.shapes.MeshCollisionShape; import com.jme3...
package com.sailthru.client.params; import com.google.gson.Gson; import com.sailthru.client.SailthruUtil; import java.util.HashMap; import java.util.Map; import junit.framework.TestCase; /** * * @author ianwhite */ public class UserTest extends TestCase { public Gson gson = SailthruUtil.createGson(); public ...
package com.danpeter.postson; import org.junit.*; import java.sql.Connection; import java.sql.DriverManager; import java.time.LocalDateTime; import java.util.List; import java.util.Optional; import java.util.UUID; import static org.hamcrest.Matchers.is; import static org.junit.Assert.*; public class QueryTest { pub...
package com.pollistics.models; //import nl.jqno.equalsverifier.EqualsVerifier; import org.junit.Test; import java.util.HashMap; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertNotEquals; //import static org.junit.Assert.fail; public class PollTest { @Test public vo...
package me.jezza.oc.client.renderer; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.IIcon; import net.minecraft.ut...
package com.test.generics; import java.math.*; import java.util.Optional; import org.junit.jupiter.api.*; import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.MatcherAssert.*; @DisplayName("Test cases to demonstrate how generics work") public class GenericsTest { /** * This test illus...
package net.anyflow.menton; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; import io.netty.handler.codec.http.QueryStringDecoder; import java.util.List; import java.util.Map; import ne...
package org.apache.ibatis; import org.apache.ibatis.datasource.pooled.PooledDataSource; import org.apache.ibatis.datasource.unpooled.UnpooledDataSource; import org.apache.ibatis.io.Resources; import org.apache.ibatis.jdbc.ScriptRunner; import org.junit.Test; import javax.sql.DataSource; import java.io.IOException; impo...
package web; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.LinkedHashMap; import java.util.Map; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Before; import org.openqa.selenium.WebDriver; import org.openqa...
package web; import java.io.File; import java.io.IOException; import java.util.LinkedHashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Before; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver.Op...
package random; import org.junit.Test; import java.util.Arrays; import static org.junit.Assert.assertEquals; public abstract class AbstractSelectionTest { private static final int LARGE_EXPERIMENTS = 10_000_000; private static final int SMALL_EXPERIMENTS = 100; @Test public void testNonZeroWeights() { ...
package org.exist.storage; import org.exist.EXistException; import org.exist.storage.journal.Journal; import org.exist.util.Configuration; import org.exist.util.DatabaseConfigurationException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.IOException; import java.n...
package edu.umd.cs.findbugs; public interface BugAnnotationVisitor { public void visitClassAnnotation(ClassAnnotation classAnnotation); public void visitFieldAnnotation(FieldAnnotation fieldAnnotation); public void visitMethodAnnotation(MethodAnnotation methodAnnotation); public void visitIntAnnotation(...
package edu.umd.cs.findbugs.ba.constant; import javax.annotation.Nullable; /** * Abstract dataflow value representing a value which may or may not be a * constant. * * @see edu.umd.cs.findbugs.ba.constant.ConstantAnalysis * @author David Hovemeyer */ public class Constant { private final Object value; /**...
package edu.umd.cs.findbugs.detect; import edu.umd.cs.findbugs.*; import org.apache.bcel.classfile.*; import java.util.zip.*; import java.io.*; import edu.umd.cs.findbugs.visitclass.DismantleBytecode; import edu.umd.cs.findbugs.visitclass.Constants2; public class TestingGround extends BytecodeScanningDetector implement...
package com.foc.vaadin.gui.components; import org.xml.sax.Attributes; import com.foc.Globals; import com.foc.property.FDouble; import com.foc.property.FProperty; import com.foc.property.FTime; @SuppressWarnings({ "serial"}) public class FVTimeField extends FVTextField { public FVTimeField(FProperty property, Attrib...
package io.tetrapod.core.tasks; import io.tetrapod.core.ServiceException; import io.tetrapod.core.StructureFactory; import io.tetrapod.core.rpc.ErrorResponseException; import io.tetrapod.core.rpc.RequestContext; import io.tetrapod.core.rpc.Response; import io.tetrapod.core.utils.Util; import io.tetrapod.protocol.core.C...
package org.lockss.test; import java.io.*; import java.net.*; import java.util.*; import junit.framework.TestCase; public class TestMockDatagramSocket extends TestCase{ private MockDatagramSocket ds = null; public TestMockDatagramSocket(String msg){ super(msg); } public void setUp(){ try{ ds = new...
package game; import java.util.Scanner; import exception.InputInvalidException; public class CustomScanner { private final Scanner console; public CustomScanner() { console = new Scanner(System.in); } /** * This method takes the minimum and maximum integer values in addition to * allow...
package nars.inference; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.TreeSet; import nars.core.EventEmitter.Observer; import nars.core.Events.ConceptBeliefRemove; import nars.core.Events.Task...
package com.perm.kate.api; import org.json.JSONException; import org.json.JSONObject; public class Album { public long aid; public long thumb_id; public long owner_id; public String title; public String description; public long created; public long updated; public long size; public l...
package pact; import java.util.logging.Level; import java.util.logging.Logger; import au.com.dius.pact.consumer.dsl.DslPart; import au.com.dius.pact.consumer.dsl.PactDslJsonBody; import au.com.dius.pact.consumer.dsl.PactDslWithProvider; import au.com.dius.pact.model.PactFragment; import au.com.dius.pact.consumer.Consum...
// interfascia (at) thbbpt (dot) net // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // You should have receiv...
package com.haulmont.cuba.web; import com.haulmont.cuba.core.global.ClientType; import com.haulmont.cuba.core.global.ConfigProvider; import com.haulmont.cuba.core.global.GlobalConfig; import com.haulmont.cuba.core.global.MessageProvider; import com.haulmont.cuba.core.sys.AppContext; import com.haulmont.cuba.core.sys.Se...
package imagej.script; import imagej.command.Command; import imagej.module.AbstractModuleInfo; import imagej.module.DefaultMutableModuleItem; import imagej.module.Module; import imagej.module.ModuleException; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; impo...
package fi.kask.flyingstickman.States; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.utils.Array; import fi.kask.flyingstickman.FlyingStickman; import fi.kask.flyingstickman.sprites.SpikePole; import fi.kask.flyingstickma...
package co.aikar.commands; import co.aikar.commands.apachecommonslang.ApacheCommonsLangUtil; import com.google.common.collect.SetMultimap; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import static co.aikar.commands.BaseCommand.CATCHUNKNOWN; import static co.aikar.c...
package jlibs.core.nio; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; /** * @author Santhosh Kumar T */ public class PlainTransport extends Debuggable implements Transport{ private final ClientChannel client; public PlainTransport(ClientChannel client){ ...
package org.kohsuke.stapler; import net.sf.json.JSONArray; import org.apache.commons.io.IOUtils; import org.kohsuke.stapler.bind.JavaScriptMethod; import org.kohsuke.stapler.lang.Klass; import org.kohsuke.stapler.lang.MethodRef; import javax.annotation.PostConstruct; import javax.servlet.ServletException; import java.i...
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync; import com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsyncClientBuilder; import com.amazonaws.services.dynamodbv2.document.internal.InternalUtils; import com.amazonaws.services.dynamodbv2.model.AttributeValue; import com.amazonaws.services.dynamodbv2.model...
package abra; import static abra.Logger.log; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.net.InetAddress; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; impor...
package abra; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.net.InetAddress; import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.attribute.PosixFilePermission; import java.ni...
package cineCheck; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import javax.ws.rs.InternalServerErrorException; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import java...
package space.pxls; import com.google.gson.Gson; import com.typesafe.config.Config; import com.typesafe.config.ConfigFactory; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.xnio.XnioWorker; import space.pxls.data.DBChatMessage; impor...
package ui; import javafx.application.Platform; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.geometry.Orientation; import javafx.scene.Node; import javafx.scene.control.*; import javafx.scene.control.Alert.AlertType; import javafx.scene.control.ButtonBar.ButtonData;...
package dr.evomodelxml.continuous; import dr.evolution.tree.MultivariateTraitTree; import dr.evomodel.continuous.LatentFactorModel; import dr.evomodelxml.treelikelihood.TreeTraitParserUtilities; import dr.inference.model.CompoundParameter; import dr.inference.model.DiagonalMatrix; import dr.inference.model.MatrixParame...
package edu.mit.kacquah.deckviewer.game; import java.awt.Dimension; import java.awt.Point; import java.util.LinkedList; import java.util.logging.Logger; import javax.swing.JFrame; import javax.swing.SwingUtilities; import org.OpenNI.GeneralException; import edu.mit.kacquah.deckviewer.action.SelectionManager; import edu...
package io.agrest; import io.agrest.meta.AgAttribute; import io.agrest.meta.AgEntity; import io.agrest.meta.AgRelationship; import org.apache.cayenne.exp.Expression; import org.apache.cayenne.query.Ordering; import org.apache.cayenne.query.SelectQuery; import org.apache.cayenne.util.ToStringBuilder; import java.util.Ar...
package mondrian.olap; import mondrian.calc.Calc; import mondrian.calc.ExpCompiler; import mondrian.calc.ExpCompiler.ResultStyle; import mondrian.calc.impl.BetterExpCompiler; import mondrian.mdx.*; import mondrian.olap.fun.FunUtil; import mondrian.olap.fun.ParameterFunDef; import mondrian.olap.type.*; import mondrian.r...
package com.sometrik.framework; import java.util.HashMap; import com.android.trivialdrivesample.util.IabException; import com.android.trivialdrivesample.util.IabHelper; import com.android.trivialdrivesample.util.IabHelper.IabAsyncInProgressException; import com.android.trivialdrivesample.util.IabResult; import com.andr...
package dynamake.models; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import dynamake.commands.CommandState; impo...
package fi.iki.elonen; import java.math.BigInteger; import java.security.SecureRandom; import java.util.ArrayList; import java.util.Date; import java.util.Map; public class CrawlerTest1 extends NanoHTTPD { static ArrayList<String> alreadyAsked = new ArrayList<String>(); public CrawlerTest1() { super(818...
/* * Generate HTML from a Mardown source file. */ package flow.netbeans.markdown; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintStream; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import or...
package org.rstudio.core.client.widget; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Timer; import com.google.gwt.user.client.ui.Frame; public class ImageFrame extends Frame { public ImageFrame() { setUrl("javascript:false"); } @Ove...
package it.mobimentum.phonegapspinnerplugin; import org.apache.cordova.CallbackContext; import org.apache.cordova.CordovaPlugin; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.content.Intent; import android.os.Handler; public class Spinn...
package dbcache.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * * <br/>hibernate@Index * <br/>index:getEntity,Entityequals * <br/>getClass()(instanceof)this.id == that.id(this.id == thi...
package org.apache.commons.collections; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Set; /** * T...
package io.spine.server.tuple; import com.google.common.collect.ImmutableList; import com.google.protobuf.Empty; import com.google.protobuf.GeneratedMessageV3; import com.google.protobuf.Message; import io.spine.validate.Validate; import javax.annotation.Nonnull; import java.io.Serializable; import java.util.Iterator; ...
package org.apache.lenya.cms.ant; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.Task; import org.apache.tools.ant.types.Path; import java.io.File; import java.io.FileInputStream; import java.io.FilenameFilter; import java.io.FileOutputStream; import java.io...
package org.modeldriven.fuml.environment; import org.modeldriven.fuml.common.uuid.UUIDGenerator; import org.modeldriven.fuml.repository.Repository; import UMLPrimitiveTypes.UnlimitedNatural; import fUML.Debug; import fUML.Semantics.Classes.Kernel.BooleanValue; import fUML.Semantics.Classes.Kernel.DataValue; import fUML...
package org.rlcommunity.critter.svg; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import java.net.URI; import org.rlcommunity.critter.Vector2D; import com.kitfox.svg.SVGDiagram; import com.kitfox.svg.SVGElement; import com.kitfox.svg.SVGElementException; import com.kitfox.svg....
package algorithms.search; import algorithms.YFastTrieLong; import algorithms.util.ObjectSpaceEstimator; import algorithms.util.PairInt; import gnu.trove.iterator.TLongIterator; import gnu.trove.map.TLongLongMap; import gnu.trove.map.hash.TLongLongHashMap; import gnu.trove.set.TLongSet; import gnu.trove.set.hash.TLongH...
package at.ac.tuwien.kr.alpha.common.atoms; import java.util.List; import java.util.Set; import at.ac.tuwien.kr.alpha.common.Predicate; import at.ac.tuwien.kr.alpha.common.terms.Term; import at.ac.tuwien.kr.alpha.common.terms.VariableTerm; import at.ac.tuwien.kr.alpha.grounder.Substitution; import at.ac.tuwien.kr.alpha...