answer
stringlengths
17
10.2M
package org.apache.lucene.store; import java.io.IOException; import java.io.File; import java.util.Vector; import java.util.Hashtable; import java.util.Enumeration; import org.apache.lucene.store.Directory; import org.apache.lucene.store.InputStream; import org.apache.lucene.store.OutputStream; /** * A memory-resident...
package org.jboss.pnc.mavenrepositorymanager; import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.commonjava.aprox.boot.BootStatus; import org.commonjava.aprox.model.core.Group; import org.commonjava.aprox.model.core.StoreKey; import org.commonjava.aprox.test.fixture.c...
package org.apache.velocity.util; import java.io.*; import java.net.MalformedURLException; import java.util.Hashtable; import java.util.StringTokenizer; import java.util.Vector; /** * This class provides some methods for dynamically * invoking methods in objects, and some string * manipulation methods used by torque...
package org.jivesoftware.wildfire; import org.dom4j.Document; import org.dom4j.io.SAXReader; import org.jivesoftware.database.DbConnectionManager; import org.jivesoftware.util.*; import org.jivesoftware.wildfire.audit.AuditManager; import org.jivesoftware.wildfire.audit.spi.AuditManagerImpl; import org.jivesoftware.wil...
package edu.umd.cs.findbugs.annotations; 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; /** * Mark a constructor or method as creating a resource * which requires c...
package org.nuxeo.drive.listener; import java.security.Principal; import java.util.Calendar; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.TimeZone; import org.nuxeo.drive.adapter.FileSystemItem; import org.nuxeo.drive.adapter.RootlessItemException; import org.nuxeo.driv...
package jsettlers.algorithms; import jsettlers.common.material.ESearchType; import jsettlers.common.position.ISPosition2D; import jsettlers.common.position.ShortPoint2D; import jsettlers.logic.algorithms.path.IPathCalculateable; import jsettlers.logic.algorithms.path.Path; import jsettlers.logic.algorithms.path.astar.H...
package org.nuxeo.ecm.platform.ec.notification; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import javax.mail.MessagingException; import org.apache.commons.logging.L...
package justaway.signinwithtwitter; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Locale; import twitter4j.DirectMessage; import twitter4j.MediaEntity; import twitter4j.S...
package org.carewebframework.help; import org.carewebframework.ui.command.CommandUtil; import org.zkoss.zk.ui.Component; import org.zkoss.zul.impl.XulElement; /** * Utility methods supporting context sensitive help. */ public class HelpCSH { private static final String HELP_PREFIX = HelpCSH.class.getPackage().get...
package org.wyona.yanel.impl.resources; import org.wyona.yanel.core.Resource; import org.wyona.yanel.core.api.attributes.ViewableV2; import org.wyona.yanel.core.attributes.viewable.View; import org.wyona.yanel.core.attributes.viewable.ViewDescriptor; import org.wyona.yanel.core.navigation.Node; import org.wyona.yanel.c...
package com.demonwav.mcdev.platform.forge.inspections.sideonly; import com.demonwav.mcdev.util.McPsiUtil; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiClassType; import com.intellij.psi.PsiLocalVariable; import com.intellij.psi.PsiModifierListOwner; import com.intellij.psi.PsiType; import com.siyeh.ig.B...
package test; import static org.fest.assertions.Assertions.assertThat; import static play.test.Helpers.contentAsString; import static play.test.Helpers.contentType; import java.util.List; import models.Contact; import org.junit.Test; import play.mvc.Content; /** * * Simple (JUnit) tests that can call all parts of a p...
import java.util.Scanner; public class Frustum { public static void main(String[] args) { Scanner userInput = new Scanner(System.in); System.out.print("Enter R1: "); int userR1 = userInput.nextInt(); System.out.print("Enter R2: "); int userR2 = userInput.nextInt(); Sy...
package soot; import java.io.ByteArrayOutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import soot.jimple.Caught...
package Hardware; import edu.wpi.first.wpilibj.PIDOutput; import edu.wpi.first.wpilibj.SerialPort; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.visa.VisaException; /** * * @author Aidan */ public class SabertoothSpeedController implements SpeedController { private static SerialPort ...
package cgeo.geocaching; import cgeo.geocaching.apps.cache.navi.NavigationAppFactory; import cgeo.geocaching.geopoint.Geopoint; import cgeo.geocaching.geopoint.Units; import cgeo.geocaching.ui.CacheDetailsCreator; import cgeo.geocaching.utils.Log; import org.apache.commons.lang3.StringUtils; import android.content.Cont...
package cgeo.geocaching.ui; import cgeo.geocaching.Intents; import cgeo.geocaching.R; import cgeo.geocaching.apps.navi.NavigationAppFactory; import cgeo.geocaching.enumerations.WaypointType; import cgeo.geocaching.location.Geopoint; import cgeo.geocaching.models.Geocache; import cgeo.geocaching.models.Image; import cge...
package de.fzi.cjunit.jpf.outside; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import gov.nasa.jpf.Config; import gov.nasa.jpf.JPF; import gov.nasa.jpf.report.Publisher; import de.fzi.cjunit.jpf.inside.TestWrapper; import de.fzi.cjunit.jpf.outside.TestObserver; import de.fzi.cjun...
package cn.imaq.cerdns.core; import cn.imaq.cerdns.util.CIDR; import cn.imaq.cerdns.util.Config; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.xbill.DNS.Message; import org.xbill.DNS.Record; import org.xbill.DNS.Section; import org.xbill.DNS.Type; import java.io.IOException; import java...
package customer; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.Scanner; public class Search_Customer { public void search_Customer(){ Class.forName("oracle.jdbc.driver.OracleDriver"); String url = "jdbc:oracle:thin:...
package com.bio4j.exporter; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import org.codehaus.groovy.tools.shell.Groovysh; import org.codehaus.groovy.tools.shell.IO; import com.tinkerpop.gremlin.process.Traversal; import com.tinkerpop.gremlin.structure.Edge; import com.tinkerpop.grem...
package com.cx.client.rest; import com.cx.client.CxPluginHelper; import com.cx.client.dto.LoginRequest; import com.cx.client.dto.OSAFile; import com.cx.client.exception.CxClientException; import com.cx.client.rest.dto.*; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper;...
package com.fishercoder.solutions; import java.util.ArrayList; import java.util.List; /** * 1002. Find Common Characters * * Given an array A of strings made only from lowercase letters, * return a list of all characters that show up in all strings within the list (including duplicates). * For example, if a charac...
package com.fishercoder.solutions; import java.util.Arrays; public class _1196 { public static class Solution1 { public int maxNumberOfApples(int[] arr) { Arrays.sort(arr); int sum = 0; int i = 0; for (; i < arr.length; i++) { sum += arr[i]; ...
package com.github.fjdbc.op; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Statement; import com.github.fjdbc.FjdbcException; import com.github.fjdbc.PreparedStatementBinder; import com.github.fjdbc.util.FjdbcUtil; import com.github.fjdbc.util.PreparedState...
package com.google.sps.data; /** Class representing a MapLocation as a coordinate **/ public class MapLocation { public double lat; public double lng; /** Creates a new MapLocation * @param lat latitude value * @param lng longitude value * @return MapLocation object **/ public MapLocation (double lat, d...
package com.kurento.kmf.media; import com.kurento.kms.api.MediaObject; import com.kurento.kms.api.MixerType; public class MainMixer extends Mixer { private static final long serialVersionUID = 1L; static final MixerType mixerType = MixerType.MAIN_MIXER; MainMixer(MediaObject mainMixer) { super(mainM...
package com.logsentinel.api; import com.logsentinel.ApiException; import com.logsentinel.ApiClient; import com.logsentinel.ApiResponse; import com.logsentinel.Configuration; import com.logsentinel.Pair; import javax.ws.rs.core.GenericType; import com.logsentinel.model.APICredentialsOrganization; import com.logsentinel....
package com.lovi.puppy.message; import com.lovi.puppy.exceptions.UICallerException; public interface UICaller { /** * listener address format -> {appName}.{address}. * @param address * @param message * @throws ServiceCallerException */ void call(String listenerAddress,Object message) th...
package com.maestrano.net; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.ProtocolException; import java.net.URL; import java.util.HashMap; import java.uti...
package com.metaweb.gridworks.model; import java.io.Writer; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Map.Entry; import org.codehaus.jackson.JsonFactory; import org.codehaus.jackson.JsonParser; import org.codehaus.jackson.JsonToken; import org...
package com.pardot.rhombus; import com.datastax.driver.core.ResultSet; import com.datastax.driver.core.Row; import com.datastax.driver.core.Session; import com.datastax.driver.core.utils.UUIDs; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.pardot.rhombus.cobject.*; import org...
package com.perimeterx.models; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.perimeterx.api.additionalContext.AdditionalContext; import com.perimeterx.api.providers.CustomParametersProvider; import com.perimeterx.api.providers.HostnameProvider; import com...
package com.s24.redjob.lock; import java.util.concurrent.TimeUnit; import org.springframework.data.redis.connection.RedisConnection; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.util.Assert; import com.s24.redjob.AbstractDao; /** * Default implementation of {@link LockDao}. */ ...
package de.fe1k.game9; import de.fe1k.game9.commands.Console; import de.fe1k.game9.components.ComponentPlayer; import de.fe1k.game9.entities.Entity; import de.fe1k.game9.events.Event; import de.fe1k.game9.events.EventBeforeRender; import de.fe1k.game9.events.EventUpdate; import de.fe1k.game9.map.MapLoader; import de.fe...
package com.socrata.datasync.job; import com.google.common.collect.ImmutableMap; import com.socrata.api.SodaImporter; import com.socrata.datasync.PublishMethod; import com.socrata.datasync.SMTPMailer; import com.socrata.datasync.SocrataConnectionInfo; import com.socrata.datasync.Utils; import com.socrata.datasync.Versi...
package com.sybit.airtable; import com.google.gson.internal.LinkedTreeMap; import com.sybit.airtable.vo.Thumbnail; import java.util.HashMap; import java.util.Map; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.converters.AbstractConverter; /** * * org.apache.commons.beanutils.Conve...
package com.tinkerrocks.storage; import com.google.common.base.Preconditions; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.tinkerrocks.structure.RocksGraph; import com.tinkerrocks.structure.Utils; import org.apache.tinkerpop.gremlin.structure.Element; import org.rocksdb....
package com.unitvectory.shak.jarvis; import java.io.File; import java.util.Scanner; import org.apache.commons.cli.BasicParser; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.Option; import org.apache.commons.cli.OptionBuilder; import org.apache.commons.cli.Options; import org.apache.commons.cl...
package com.zenplanner.sql; import com.google.common.base.Charsets; import com.google.common.io.Resources; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.*; public class DbComparator { private static final String filterCol = "par...
package de.lalo5.simplecoins; import org.jetbrains.annotations.Nullable; import java.sql.*; import static de.lalo5.simplecoins.SimpleCoins.*; import static de.lalo5.simplecoins.SimpleCoins.LOGGER; /** * Helper-class to interact with the MySQL Database. */ class SqlManager { /** The database host. */ private S...
package editor.views; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import xml.Element; publ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.mayo.ve.VCFParser; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.mongodb.*; import com.mongodb.util.JSON; import com.tinkerpop.pipes.Pipe; impo...
package ezvcard.util; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; import java.util.TimeZone; /** * Helper class that formats and parses vCard dates. vCard dates adhere to the * ISO8601 date format standard. * @author Michael Angstadt */ public class VCardDateFormatter { ...
package gov.nrel.bacnet.consumer; import gov.nrel.bacnet.Config; import gov.nrel.bacnet.consumer.beans.JsonAllFilters; import gov.nrel.bacnet.consumer.beans.JsonObjectData; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader;...
package hudson.plugins.git; import hudson.EnvVars; import hudson.Extension; import hudson.FilePath; import hudson.FilePath.FileCallable; import hudson.Launcher; import hudson.Util; import hudson.matrix.MatrixAggregatable; import hudson.matrix.MatrixAggregator; import hudson.matrix.MatrixBuild; import hudson.matrix.Matr...
package i5.las2peer.testing; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.Hashtable; import i5.las2peer.api.Service; import i5.las2peer.persistency.DecodingFailedException; import i5.las2peer.persistency.EncodingFailedException; import i5.las2peer.persistency.Envelope; impor...
package io.github.ssoloff.secret; import java.lang.reflect.Method; import java.security.GeneralSecurityException; import java.util.Arrays; import java.util.function.Consumer; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.security.auth.DestroyFailedException; i...
package io.herrmann.generator; import java.util.Iterator; import java.util.NoSuchElementException; /** * This class allows specifying Python generator-like sequences. For examples, * see the JUnit test case. * * The implementation uses a separate Thread to produce the sequence items. This * is certainly not as fas...
package io.nats.client; import java.io.IOException; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static io.nats.client.Constants.*; abstract class SubscriptionImpl i...
package kr.ac.ajou.dsd.kda.model; import javax.persistence.Embeddable; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @Embeddable public class Rating { private int numUsersRated = 0; private int rating = 0; public Rating () { } @JsonCreator ...
package ljfa.tntutils.proxy; import ljfa.tntutils.Config; import ljfa.tntutils.TNTUtils; import ljfa.tntutils.blocks.BlockReplacedTNT; import ljfa.tntutils.handlers.EntityJoinHandler; import ljfa.tntutils.handlers.ExplosionHandler; import ljfa.tntutils.util.LogHelper; import ljfa.tntutils.util.ReflectionHelper; import ...
package mcjty.rftools.items; import mcjty.lib.varia.Logging; import mcjty.rftools.GeneralConfiguration; import mcjty.rftools.RFTools; import mcjty.rftools.varia.EntityTools; import net.minecraft.client.renderer.ItemMeshDefinition; import net.minecraft.client.renderer.block.model.ModelBakery; import net.minecraft.client...
package net.ilexiconn.magister; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import net.ilexiconn.magister.adapter.*; import net.ilexiconn.magister.container.*; import net.ilexiconn.magister.container.sub.Privilege; import net.ilexiconn.magister.exeption.PrivilegeException; import net.ilexiconn.magi...
package net.jforum.search; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.IOException; import java.util.*; import net.jforum.dao.AttachmentDAO; import net.jforum.dao.DataAccessDriver; import net.jforum.entities.Attachment; import net.jforum.entities.AttachmentInfo; impor...
package net.sf.webdav; import java.io.IOException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.Principal; import java.util.Enumeration; import java.util.HashMap; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet...
package net.wizardsoflua.block; import javax.annotation.Nullable; import net.minecraft.block.state.IBlockState; import net.minecraft.inventory.IInventory; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; publi...
package no.hyper.imagecrop; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics....
package org.basex.gui.editor; import static org.basex.util.Token.*; import org.basex.gui.editor.Editor.SearchDir; import org.basex.util.*; import org.basex.util.list.*; public final class EditorText { /** Tab width. */ static final int TAB = 2; /** Search context. */ private SearchContext search; /** Start an...
package org.dita.dost.module; import net.sf.saxon.lib.ExtensionFunctionDefinition; import org.apache.tools.ant.types.XMLCatalog; import org.apache.tools.ant.util.FileNameMapper; import org.apache.tools.ant.util.FileUtils; import org.dita.dost.exception.DITAOTException; import org.dita.dost.pipeline.AbstractPipelineInpu...
package org.junit.rules; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import org.junit.Rule; /** * The TemporaryFolder Rule allows creation of files and folders that should * be deleted when the test method finishes (whether it passes or * fails). * By default no exception w...
package org.libj.xquery.parser; import org.libj.xquery.lexer.TokenType; import org.libj.xquery.lisp.Cons; public class Unparser { private int indent = 0; private StringBuilder builder = new StringBuilder(); private void output(Object x) { output((Cons) x); } private void output(Cons ast) { ...
package org.lightmare.utils; import java.io.Closeable; import java.io.IOException; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import org.lightmare.utils.reflect.MetaUtils; /** * Utility class to help with general object checks * * @a...
package org.made.neohabitat.mods; import java.util.Hashtable; import org.elkoserver.foundation.json.JSONMethod; import org.elkoserver.foundation.json.OptBoolean; import org.elkoserver.foundation.json.OptInteger; import org.elkoserver.foundation.json.OptString; import org.elkoserver.json.EncodeControl; import org.elkose...
package org.minperf.generator; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.concurrent.RecursiveAction; import org.minperf.BitBuffer; import org.minperf.Settings; import org.minperf.bdz.BDZ; import org.minperf.monotoneList.MonotoneList; import org.minperf.universal....
import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.util.ArrayList; public class RadioMenuItemGroup { ArrayList<RadioMenuItem> radios; // Default methods from java.awt.CheckboxGroup public RadioMenuItemGroup() { radios = new ArrayList<>(); } // Gets the curre...
package org.spongepowered.api.data; import io.leangen.geantyref.TypeToken; import net.kyori.adventure.bossbar.BossBar; import net.kyori.adventure.text.Component; import org.spongepowered.api.ResourceKey; import org.spongepowered.api.block.BlockState; import org.spongepowered.api.block.BlockType; import org.spongepowere...
package org.wahlzeit.model; import com.google.appengine.api.images.Image; import com.googlecode.objectify.ObjectifyService; import com.googlecode.objectify.Work; import org.wahlzeit.model.persistance.ImageStorage; import org.wahlzeit.services.LogBuilder; import org.wahlzeit.services.ObjectManager; import org.wahlzeit.s...
package permafrost.tundra.data; import com.wm.data.*; import com.wm.util.coder.IDataCodable; import com.wm.util.coder.ValuesCodable; import permafrost.tundra.lang.ObjectHelper; import java.util.*; /** * Wraps an IData document in an implementation of the Iterable, Comparable, * and Map interfaces. */ public class ID...
package seedu.jobs.commons.util; import java.io.File; import java.io.FileNotFoundException; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Marshaller; import javax.xml.bind.Unmarshaller; /** * Helps with reading from and writing to XML files. */ public class XmlUtil { ...
package sunlib.turtle.api; import fi.iki.elonen.NanoHTTPD; import static sunlib.turtle.models.ApiRequest.Type.*; public class SunApiMatcher extends ApiRequestTypeMatcher { static SunApiMatcher matcher = new SunApiMatcher(); private SunApiMatcher() { add(GET, NanoHTTPD.Method.GET, "/exercise/v1/root\\?(?...
package tigase.server; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.channels.SocketChannel; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; import javax.script.Bindings; import tigase.annotations.TODO; ...
package ui.components; import javafx.application.Platform; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyCodeCombination; import javafx.scene.input.KeyCombination; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import prefs.Preferences; import util.DialogMessage; i...
package uk.ac.eeci; import io.improbable.scienceos.Conductor; import io.improbable.scienceos.Reference; import io.improbable.scienceos.WorkerPool; import org.apache.commons.cli.*; public class CommandLineInterface { private String inputFilePath; private String outputFilePath; public static void main(String ...
package utask.staging.ui; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import org.ocpsoft.prettytime.PrettyTime; import com.google.common.eventbus.Subscribe; import javafx.fxml.FXML; import javafx.geometry.Insets; import...
package model.ability_management; /** * A collection of all possible abilities * Enumerated with a string for parsing and view purposes */ public enum AbilityEnum { MOVE_NORTH ("Move North"), MOVE_NORTHLEFT ("Move North Left"), MOVE_NORTHRIGHT ("Move North Right"), MOVE_SOUTH ...
package me.yokeyword.fragmentation; import android.app.Activity; import android.content.Intent; import android.content.res.TypedArray; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support...
package edu.uci.python.nodes.expression; import static edu.uci.python.nodes.truffle.PythonTypesUtil.*; import java.math.BigInteger; import org.python.core.*; import com.oracle.truffle.api.*; import com.oracle.truffle.api.CompilerDirectives.SlowPath; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.tr...
package com.tinkerpop.gremlin.structure.io.graphml; import com.tinkerpop.gremlin.structure.Direction; import com.tinkerpop.gremlin.structure.Edge; import com.tinkerpop.gremlin.structure.Element; import com.tinkerpop.gremlin.structure.Graph; import com.tinkerpop.gremlin.structure.Vertex; import com.tinkerpop.gremlin.str...
package org.eclipse.hawkbit.amqp; import java.util.Map; import javax.validation.constraints.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.amqp.AmqpRejectAndDontRequeueException; import org.springframework.amqp.core.Message; import org.springframework.amqp.core.MessagePrope...
package com.servinglynk.hmis.warehouse.dao; import java.util.List; import java.util.Map; import java.util.UUID; import org.hibernate.criterion.DetachedCriteria; import org.hibernate.criterion.Restrictions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.servinglynk.hmis.warehouse.base.util.ErrorType...
package eu.amidst.huginlink.inference; import eu.amidst.core.distribution.UnivariateDistribution; import eu.amidst.core.inference.ImportanceSampling; import eu.amidst.core.inference.messagepassing.VMP; import eu.amidst.core.io.BayesianNetworkLoader; import eu.amidst.core.models.BayesianNetwork; import eu.amidst.core.ut...
package org.innovateuk.ifs.finance.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import org.innovateuk.ifs.application.domain.Application; import org.innovateuk.ifs.category.domain.ApplicationFinanceResearchCategoryLink; import org.innovateuk.ifs.category.domain.ResearchCategory; import org.innovateuk.ifs...
package com.almasb.fxgl.physics.box2d.common; import com.almasb.fxgl.core.math.Vec2; import java.io.Serializable; /** * A 2-by-2 matrix. Stored in column-major order. */ public final class Mat22 implements Serializable { private static final long serialVersionUID = 2L; // [ ex.x ey.x ] // [ ex.y ey.y ...
package org.sagebionetworks; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.ArrayList; import java.util.List; import org.junit.BeforeClass; import org.junit.Ignore; import ...
package org.intermine.webservice.client.lists; import java.util.AbstractSet; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import jav...
package com.akh.algorithms.stringAlgorithms.slidingWindow; import static org.junit.Assert.assertEquals; import java.util.HashMap; import java.util.Map; import org.junit.Test; public class Minimum_Window_Substring_76 { public String minWindow_Using_1_Map_Best(String s, String t) { if( s==null || t==null || ...
package org.spine3.server.storage.datastore; import com.google.cloud.datastore.Entity; import com.google.cloud.datastore.Key; import com.google.cloud.datastore.Query; import com.google.common.base.Function; import com.google.common.base.Optional; import com.google.common.base.Predicate; import com.google.common.base.St...
package com.github.kingargyle.plexappclient.ui.video.player; import com.bugsense.trace.BugSenseHandler; import com.github.kingargyle.plexapp.PlexappFactory; import com.github.kingargyle.plexappclient.R; import com.github.kingargyle.plexappclient.SerenityApplication; import com.github.kingargyle.plexappclient.ui.video.p...
package io.georocket.storage; import java.util.List; import java.util.stream.Collectors; import io.georocket.util.XMLStartElement; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; /** * Metadata for an XML chunk * @since 1.0.0 * @author Michel Kraemer */ public class XMLChunkMeta extends C...
/* * Derived from com.android.mms.ui.ComposeMessageActivity * (tag android-4.4.4_r2.0.1) */ package ca.bmaupin.merge.sms.ui; import static com.android.mms.ui.MessageListAdapter.COLUMN_ID; import java.util.ArrayList; import com.android.mms.LogTag; import com.android.mms.data.Contact; import com.android.mms.data.Conta...
package de.factoryfx.javafx.widget.table; import java.text.DecimalFormat; import de.factoryfx.data.util.TextSearchSupport; import de.factoryfx.javafx.util.UniformDesign; import de.factoryfx.javafx.widget.Widget; import javafx.animation.FadeTransition; import javafx.beans.InvalidationListener; import javafx.beans.proper...
package io.bisq.gui.main.offer.createoffer; import de.jensd.fx.fontawesome.AwesomeDude; import de.jensd.fx.fontawesome.AwesomeIcon; import io.bisq.common.UserThread; import io.bisq.common.app.DevEnv; import io.bisq.common.locale.Res; import io.bisq.common.locale.TradeCurrency; import io.bisq.common.util.Tuple2; import ...
package com.google.gwt.query.vm; // import org.apache.http.impl.client.HttpClientBuilder; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import com.google.gwt.http.client.RequestException; import com.google.gwt.ht...
package dr.app.beast; import org.virion.jam.components.WholeNumberField; import org.virion.jam.html.SimpleLinkListener; import org.virion.jam.panels.OptionsPanel; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; import javax.swing.event.ChangeEvent; import javax.swing...
package editor; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.util.ArrayList; import javax.swing.JFrame; import javax.swing.SwingUtilities; import abstracts.Tile; import editor.EditorConstants.Metadata; public class LevelEdit...
package org.intermine.web.logic.results; import java.io.Serializable; import org.intermine.model.InterMineObject; import org.intermine.objectstore.ObjectStore; import org.intermine.objectstore.ObjectStoreException; import org.intermine.pathquery.Path; import org.intermine.util.TypeUtil; import org.intermine.util.Util; ...
package org.intermine.web.logic.widget; import org.apache.log4j.Logger; /** * Calculates p-values for go terms using the hypergeometric distribution. * See online documentation for detailed information about what this class is and what it does. */ public class Hypergeometric { static double[] factorials; pri...
package org.csstudio.archive.channelarchiver; import java.util.Hashtable; import java.util.Vector; import org.apache.xmlrpc.XmlRpcClient; import org.apache.xmlrpc.XmlRpcException; import org.csstudio.archive.ArchiveValues; import org.csstudio.platform.data.IEnumeratedMetaData; import org.csstudio.platform.data.IMetaDat...