answer
stringlengths
17
10.2M
package com.mesosphere.dcos.cassandra.executor.backup; import static com.mesosphere.dcos.cassandra.executor.backup.azure.PageBlobOutputStream.ORIGINAL_SIZE_KEY; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStr...
package org.smof.collection; import java.util.LinkedHashSet; import java.util.Set; import java.util.stream.Stream; import java.util.stream.StreamSupport; import org.bson.Document; import org.bson.conversions.Bson; import org.bson.types.ObjectId; import org.smof.element.Element; import org.smof.element.InvalidIdExceptio...
package org.sosy_lab.java_smt.example; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.logging.Level; import org.sosy_lab.common.ShutdownNotifier; import org.sosy_la...
package org.opencb.cellbase.lib.mongodb.db; import com.mongodb.BasicDBList; import com.mongodb.BasicDBObject; import com.mongodb.DB; import com.mongodb.QueryBuilder; import org.broad.tribble.readers.TabixReader; import org.opencb.biodata.models.variant.annotation.ConsequenceType; import org.opencb.biodata.models.variat...
package io.cloudslang.lang.compiler.modeller.transformers; import io.cloudslang.lang.entities.bindings.Argument; import org.apache.commons.collections4.MapUtils; import org.springframework.stereotype.Component; import java.io.Serializable; import java.util.*; @Component public class DoTransformer implements Transformer...
package io.cattle.platform.api.resource.jooq; import io.cattle.platform.api.auth.Policy; import io.cattle.platform.api.resource.AbstractObjectResourceManager; import io.cattle.platform.api.utils.ApiUtils; import io.cattle.platform.engine.process.ExitReason; import io.cattle.platform.engine.process.ProcessInstanceExcept...
package edu.duke.cabig.c3pr.aspects.springaop; import java.util.List; import org.apache.log4j.Logger; import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.springframework.beans.factory.annotation.Required; import org.springfr...
package com.codenvy.mbstorage.sql; import org.flywaydb.core.Flyway; import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.sql.DataSource; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.SQLException; /** * Initialize database structures. * * @author Sergii Kaba...
package org.openforis.collect.remoting.service; import java.util.ArrayList; import java.util.Collection; 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 java.util.Stack; import java.util.regex.Matcher; import java.util....
package com.yahoo.vespa.model.builder.xml.dom.chains.search; import com.yahoo.binaryprefix.BinaryPrefix; import com.yahoo.component.chain.dependencies.Dependencies; import com.yahoo.component.chain.model.ChainedComponentModel; import com.yahoo.component.ComponentId; import com.yahoo.component.chain.model.ChainSpecifica...
package cliente; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.net.SocketException; import java.net.UnknownHostException; import javax.swing.*; import javax.swing.event.MenuListener; import partida.Partida; public class ClienteFlotaSo...
package fi.nls.oskari.control.statistics.user; import fi.nls.oskari.annotation.OskariActionRoute; import fi.nls.oskari.control.*; import fi.nls.oskari.control.statistics.GetIndicatorMetadataHandler; import fi.nls.oskari.control.statistics.data.StatisticalIndicator; import fi.nls.oskari.log.LogFactory; import fi.nls.osk...
import java.io.*; import java.util.*; /** * Write a description of class SecretWord here. * * @author (your name) * @version (a version number or a date) */ public class SecretWord { ArrayList<String> letters = new ArrayList<String>(); List<Boolean> m; /** * Constructor for objects of class Secret...
package cc.topicexplorer.database.tables.documenttopic; /** MIT-JOOQ-START import static jooq.generated.Tables.DOCUMENT_TERM_TOPIC; import static jooq.generated.Tables.DOCUMENT_TOPIC; import static jooq.generated.Tables.DOCUMENT; import static jooq.generated.Tables.TOPIC; MIT-JOOQ-ENDE */ import java.sql.SQLExcept...
package org.eclipse.birt.core.script.functionservice.impl; import java.util.logging.Level; import java.util.logging.Logger; import org.eclipse.birt.core.exception.BirtException; import org.eclipse.birt.core.script.functionservice.IScriptFunction; import org.eclipse.birt.core.script.functionservice.IScriptFunctionCatego...
package org.hisp.dhis.android.core.category; import android.support.test.runner.AndroidJUnit4; import org.hisp.dhis.android.core.common.UidsHelper; import org.hisp.dhis.android.core.data.database.MockIntegrationShould; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import java.uti...
package org.datasyslab.geospark.formatMapper.shapefileParser.shapes; import org.apache.commons.io.FilenameUtils; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.InputSplit; import org.apache.hadoop.mapreduce.Reco...
package es.tid.cosmos.mobility.itineraries; import java.io.IOException; import com.twitter.elephantbird.mapreduce.io.ProtobufWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.mapreduce.Reducer; import es.tid.cosmos.mobility.data.ItinMovementUtil; import es.tid.cosmos.mobility.data.MobDataUtil...
package org.bimserver.servlets; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Reader; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.GregorianCalendar; import org.bimserver.BimServer; import org.bimserver.endpoints.EndPoint; ...
package de.peeeq.wurstscript.translation.lua.translation; import de.peeeq.datastructures.UnionFind; import de.peeeq.wurstio.TimeTaker; import de.peeeq.wurstscript.jassIm.*; import de.peeeq.wurstscript.luaAst.*; import de.peeeq.wurstscript.translation.imoptimizer.ImOptimizer; import de.peeeq.wurstscript.translation.imtr...
package com.parc.ccn.security.access; import java.security.InvalidKeyException; import java.security.Key; import java.sql.Timestamp; import javax.crypto.spec.SecretKeySpec; import javax.xml.stream.XMLStreamException; import com.parc.ccn.Library; import com.parc.ccn.data.ContentName; import com.parc.ccn.library.profiles...
package hu.elte.txtuml.export.cpp.wizardz; import java.util.Arrays; import java.util.List; public enum DemoExpectedLines { MACHINE(Arrays.asList("Machine and users are starting.", "Machine::Initialize", "Machine: initializing...", "Machine enters state: 'off'", "User:...
package io.branch.referral; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.view.Gravity; import android.view.KeyEvent; import android.view.ViewGroup; import android.view.Wind...
package net.automatalib.words; import java.io.IOException; import java.util.AbstractList; import java.util.Collections; import java.util.List; import java.util.Objects; import net.automatalib.commons.util.array.ArrayWritable; import net.automatalib.commons.util.strings.AbstractPrintable; import net.automatalib.commons....
package edu.mines.alterego; import android.content.Context; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.Cursor; import android.util.Log; import android.util.Pair; import android.widget.ListView; import java...
package org.jfree.data.general.junit; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.jfree.data.KeyToGroupMap; import org.jfree.data.Range; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree....
package uk.gov.nationalarchives.droid.command.action; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.IOException; import java.net.URI; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.ResourceBundle; import org.apache.commons....
package org.eclipse.birt.report.engine.executor.buffermgr; public class Table { /** * should we increase the columns size dynamically. */ protected boolean dynamicColumns = true; /** * should we omit the empty cells when the cell conflict with drop areas. */ protected boolean omitEmp...
package it.unibz.inf.ontop.answering.logging.impl; import com.google.common.collect.ImmutableSet; import com.google.inject.Inject; import it.unibz.inf.ontop.answering.logging.QueryLogger; import it.unibz.inf.ontop.answering.logging.impl.ClassAndPropertyExtractor.ClassesAndProperties; import it.unibz.inf.ontop.exception...
package edu.emory.cci.aiw.cvrg.eureka.services.config; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.inject.Singleton; /** * Looks up the application properties file (eureka-services.properties) and * pre...
package edu.emory.cci.aiw.cvrg.eureka.services.resource; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; imp...
package org.eclipse.hawkbit.ddi.client; import java.io.IOException; import java.io.InputStream; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.ArrayList; import java.util.List; import java.util.regex.Pattern; import org.eclipse.hawkbit.ddi.client.resource.RootControllerResourceClient; impo...
import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.*; import java.util.*; import java.text.DateFormat; import java.text.SimpleDateFormat; public class SqlHandler { private Connection con = null; public SqlHandler () throws SQLException { //Class....
import java.applet.Applet; import java.awt.AlphaComposite; import java.awt.Checkbox; import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.Event; import java.awt.FileDialog; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Frame; import java.awt.Graphics; import jav...
package mondrian.rolap; import java.util.List; import java.util.ArrayList; import mondrian.olap.Connection; import mondrian.olap.Query; import mondrian.olap.Result; import mondrian.olap.Util; import mondrian.rolap.cache.CachePool; import mondrian.rolap.cache.HardSmartCache; import mondrian.test.FoodMartTestCase; import...
package sample.ble.sensortag; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattService; import android.content.Context; import android.content.Intent; import android.location.Criteria; import ...
package de.sormuras.bach; import de.sormuras.bach.util.Paths; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.function.BiConsumer; import java.util.function.Consumer; /** Tool call builder. */ public class Call { /*package-private*/ final Strin...
import java.util.*; import java.io.*; public class Map { public Map (String fileToLoad, boolean debug) { _theMap = new Vector<MapElement>(); _debug = debug; if (!loadData(fileToLoad)) System.out.println("Error in loading data file: "+fileToLoad); } public Map (Map the...
package mondrian.test.loader; import mondrian.olap.MondrianResource; import mondrian.olap.Util; import mondrian.rolap.RolapUtil; import mondrian.rolap.sql.SqlQuery; import java.io.*; import java.math.BigDecimal; import java.sql.*; import java.text.DecimalFormat; import java.util.Date; import java.util.HashMap; import j...
package scal.io.liger.model; import com.google.gson.annotations.Expose; public class AudioClip { @Expose private String position_clip_id; // can be null. card id we are linked to either this or the next must have a value, but only one @Expose private int position_index; // can null @Expose private float vo...
package mondrian.test.loader; import mondrian.olap.MondrianResource; import mondrian.rolap.RolapUtil; import mondrian.rolap.sql.SqlQuery; import java.io.*; import java.math.BigDecimal; //import java.math.BigDecimal; import java.sql.*; import java.text.DateFormat; import java.text.DecimalFormat; import java.text.SimpleD...
package org.jpmml.xjc; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.function.Predicate; import javax.xml.bind.annotation.XmlValue; im...
// package package org.mskcc.cbio.importer.converter.internal; // imports import org.mskcc.cbio.importer.Config; import org.mskcc.cbio.importer.CaseIDs; import org.mskcc.cbio.importer.IDMapper; import org.mskcc.cbio.importer.Converter; import org.mskcc.cbio.importer.FileUtils; import org.mskcc.cbio.importer.util.Mapper...
package de.lmu.ifi.dbs.algorithm.result; import de.lmu.ifi.dbs.normalization.Normalization; import de.lmu.ifi.dbs.utilities.UnableToComplyException; import java.io.File; import java.util.Map; import java.util.Iterator; /** * A result for a partitioning algorithm providing a single result for a single * partition. * ...
package de.mrunde.bachelorthesis.activities; import java.io.IOException; import java.util.List; import java.util.Locale; import org.json.JSONException; import org.json.JSONObject; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.DialogInte...
package org.intermine.webservice.server.idresolution; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.apache.log4j.Logger; ...
package soot.jimple.toolkits.typing.fast; import java.util.Iterator; import soot.ArrayType; import soot.BooleanType; import soot.IntType; import soot.IntegerType; import soot.Local; import soot.RefType; import soot.SootMethodRef; import soot.Type; import soot.Unit; import soot.Value; import soot.jimple.AbstractStmtSwit...
package to.etc.domui.component.input; import java.util.*; import to.etc.domui.component.meta.*; import to.etc.domui.dom.html.*; import to.etc.webapp.nls.*; public class RadioGroup<T> extends Div implements IControl<T> { private to.etc.domui.dom.html.RadioGroup<T> m_radioGroup; private Class<T> m_clz; privat...
package fr.lip6.jkernelmachines.kernel; import java.util.List; import fr.lip6.jkernelmachines.type.TrainingSample; /** * Very simple caching method for any kernel. Caches only the Gram matrix of a * specified list of training samples. * * @author picard * * @param <T> */ public final class SimpleCacheKernel<T> e...
package org.jlib.container.sequence.index; import org.jlib.container.sequence.AbstractSequenceIteratorState; import org.jlib.container.sequence.NoSuchSequenceElementException; import org.jlib.container.sequence.Sequence; import org.jlib.container.sequence.SequenceIteratorState; /** * {@link SequenceIteratorState} of a...
package gate.plugin.evaluation.resources; import gate.plugin.evaluation.api.ContainmentType; import gate.plugin.evaluation.api.NilTreatment; import gate.Annotation; import gate.AnnotationSet; import gate.Controller; import gate.Factory; import gate.FeatureMap; import gate.Resource; import gate.Utils; import gate.annota...
package org.xins.server; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; import java.lang.reflect.Field; import java.util.Properties; import javax.servlet.Servlet; import javax.servlet.ServletConfig; import javax.servlet....
package com.astoev.cave.survey.activity.map; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.DashPathEffect; import android.graphics.Paint; import android.graphics.Point; import android.graphics.drawable.Drawable; imp...
// Narya library - tools for developing networked games // This library is free software; you can redistribute it and/or modify it // (at your option) any later version. // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should ...
//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 received a copy of the GNU Lesser General Publi...
/* * $Id: TestV3Poller.java,v 1.46 2012-03-20 17:15:28 barry409 Exp $ */ package org.lockss.poller.v3; import java.io.*; import java.util.*; import java.security.*; import org.lockss.app.*; import org.lockss.config.ConfigManager; import org.lockss.daemon.*; import org.lockss.plugin.*; import org.lockss.protocol.*; im...
package org.concord.otrunk.net; import java.io.IOException; public class HTTPRequestException extends IOException { private static final long serialVersionUID = 1L; private int responseCode; public HTTPRequestException(String msg, int responseCode) { super(msg); this.responseCode = responseC...
import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketAddress; import java.io.*; import java.util.*; import protocol.Tool.AcceptByteArry; import protocol.Tool.SendData; pub...
package biweekly.util; import static biweekly.util.TestUtils.date; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import java.util.Arrays; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.TimeZone; import org.junit.Test; import biweekly....
package com.dubravsky.arcache; import org.junit.Before; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; public class ArcacheTest { private static final String ANY_STRING = "LoremIpsum"; private static final byte[] NULL_BYTE_ARRAY = null; pri...
package com.github.apsk.hax; import com.github.apsk.hax.parser.HAXEventReader; import com.github.apsk.hax.parser.Parser; import org.junit.Test; import javax.xml.stream.XMLStreamException; import java.util.function.Function; import static com.github.apsk.hax.HAX.*; import static junit.framework.Assert.assertEquals; publ...
package com.stripe.functional; import com.stripe.BaseStripeTest; import com.stripe.Stripe; import com.stripe.exception.APIConnectionException; import com.stripe.exception.StripeException; import com.stripe.model.Balance; import com.stripe.net.RequestOptions; import java.io.IOException; import java.net.Inet4Address; imp...
package net.alloyggp.tournament; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Random; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.IntStream; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists;...
package org.jboss.sasl.test; import java.io.File; import java.util.Collections; import org.jboss.sasl.util.Charsets; import org.junit.Test; import javax.security.auth.callback.CallbackHandler; import javax.security.sasl.Sasl; import javax.security.sasl.SaslClient; import javax.security.sasl.SaslException; import javax....
package org.redmine.ta; import org.junit.*; import org.redmine.ta.RedmineManager.INCLUDE; import org.redmine.ta.beans.*; import org.redmine.ta.internal.logging.Logger; import org.redmine.ta.internal.logging.LoggerFactory; import java.io.IOException; import java.net.URISyntaxException; import java.util.*; import static ...
package org.redmine.ta; import org.junit.*; import org.redmine.ta.RedmineManager.INCLUDE; import org.redmine.ta.beans.*; import org.redmine.ta.internal.logging.Logger; import org.redmine.ta.internal.logging.LoggerFactory; import java.io.IOException; import java.net.URISyntaxException; import java.util.*; import static ...
package seedu.address.testutil; import seedu.address.model.tag.UniqueTagList; import seedu.utask.model.task.Deadline; import seedu.utask.model.task.Frequency; import seedu.utask.model.task.Name; import seedu.utask.model.task.ReadOnlyTask; import seedu.utask.model.task.Timestamp; /** * A mutable person object. For test...
package toadmess.explosives; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Random; import org.bukkit.util.config.Configuration; import org.junit.Be...
package mondrian.rolap; import java.io.PrintWriter; import java.io.StringWriter; import java.util.List; import java.util.ArrayList; import junit.framework.Assert; import mondrian.olap.Axis; import mondrian.olap.Cell; import mondrian.olap.Connection; import mondrian.olap.Evaluator; import mondrian.olap.Level; import mon...
package application.controllers; import application.fxobjects.cell.Cell; import application.fxobjects.cell.Edge; import application.fxobjects.cell.layout.CellLayout; import application.fxobjects.cell.layout.TreeLayout; import application.fxobjects.cell.tree.LeafCell; import core.MetaParser; import core.graph.Phylogenet...
package at.jku.pervasive.ecg; import java.io.IOException; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.concurrent.Semaphore; import javax.bluetooth.BluetoothConnectionException; import javax.bluetooth.BluetoothStateException; import javax.bluetooth...
package cgeo.geocaching.files; import cgeo.geocaching.R; import cgeo.geocaching.activity.ActivityMixin; import org.apache.commons.lang3.StringUtils; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Environment; import android.vie...
package at.ngmpps.fjsstt.factory; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Properties; import java.util...
package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquared.app.FoursquaredService; import com.joelapenn...
package br.edu.utfpr.recipes.dao; import br.edu.utfpr.recipes.entidade.Receita; import br.edu.utfpr.recipes.entidade.TagReceita; import java.util.List; /** * * @author mairieliw */ public class DaoTagReceita extends DaoGenerics<TagReceita> { public DaoTagReceita() { super.clazz = TagReceita.class; } ...
package br.gov.servicos.editor.servicos; import lombok.SneakyThrows; import lombok.experimental.FieldDefaults; import lombok.extern.slf4j.Slf4j; import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.LogCommand; import org.eclipse.jgit.api.errors.JGitInternalException; import org.eclipse.jgit.internal.JGitText; i...
package br.ufpe.nti.controller; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.time.LocalTime; import java.time.format.DateTimeFormatter; import org.json.JSONException; import org.json.JSONObject; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; impor...
package ca.concordia.cssanalyser.io; import java.util.ArrayList; import java.util.List; public class CSVColumns { private String separator = "|"; private final List<String> columns; public CSVColumns(String... columns) { this.columns = new ArrayList<>(); for (String column : columns) { ...
package org.pentaho.di.blackbox; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import java.util.Locale; import org.pentaho.di.core.CheckResultIn...
package ch.fhnw.jobannotations.utils; import org.apache.log4j.Logger; import java.io.*; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Properties; /** * This class covers recurring file handling tasks. * * @author ...
package ch.uzh.csg.reimbursement.model; import static ch.uzh.csg.reimbursement.model.ExpenseState.ASSIGNED_TO_FINANCE_ADMIN; import static ch.uzh.csg.reimbursement.model.ExpenseState.ASSIGNED_TO_MANAGER; import static ch.uzh.csg.reimbursement.model.ExpenseState.DRAFT; import static ch.uzh.csg.reimbursement.model.Expens...
package chanjarster.weixin.api; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import chanjarster.weixin.bean.WxXmlMessage; /** * <pre> * handler * * * 1. * 2. {@link Rule#next()} * 3. {@link Rule#end()}{@link Rule#next()} * * * WxMessageRouter router = new...
package com.akiban.ais.protobuf; import com.akiban.ais.model.AkibanInformationSchema; import com.akiban.ais.model.CharsetAndCollation; import com.akiban.ais.model.Column; import com.akiban.ais.model.DefaultNameGenerator; import com.akiban.ais.model.Group; import com.akiban.ais.model.GroupIndex; import com.akiban.ais.mo...
package com.altran.iot.observation; import com.jayway.jsonpath.Configuration; import com.jayway.jsonpath.JsonPath; import org.json.simple.JSONObject; import org.json.simple.JSONValue; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import org.slf4j.Logger; import org.slf4j.Logger...
package com.avairebot.orion.audio; import com.avairebot.orion.factories.MessageFactory; import com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler; import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager; import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager; import com.sedmelluq...
package com.binatechnologies.varsim; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.log4j.Logger; import org.kohsuke.args4j.CmdLineException; import org.kohsuke.args4j.CmdLineParser; import org.kohsuke.args4j.Option; import java.io.File; import jav...
package com.codeborne.selenide; import org.apache.commons.io.IOUtils; import org.junit.Assert; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import ...
package org.exist.xquery; import junit.framework.TestCase; import junit.textui.TestRunner; import org.exist.EXistException; import org.exist.collections.Collection; import org.exist.collections.IndexInfo; import org.exist.collections.triggers.TriggerException; import org.exist.dom.DocumentImpl; import org.exist.securit...
package com.codeborne.selenide; import org.apache.commons.io.IOUtils; import org.junit.Assert; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import ...
/* * $Id: TestPollManager.java,v 1.61 2004-01-31 22:56:09 tlipkis Exp $ */ package org.lockss.poller; import java.io.*; import java.net.*; import java.security.*; import java.util.*; import org.lockss.daemon.*; import org.lockss.plugin.*; import org.lockss.protocol.*; import org.lockss.util.*; import org.lockss.test....
package org.lockss.test; import java.io.IOException; import java.util.*; import org.lockss.config.*; import org.lockss.util.*; /** Utilities for Configuration and ConfigManager */ public class ConfigurationUtil { public static Logger log = Logger.getLogger("ConfigUtil"); private static ConfigManager mgr() { re...
package com.ecwid.consul.v1; import com.ecwid.consul.ConsulException; import com.ecwid.consul.transport.RawResponse; /** * @author Vasily Vasilkov (vgv@ecwid.com) */ public final class OperationException extends ConsulException { private final int statusCode; private final String statusMessage; public Ope...
package com.enderio.core.common; import java.awt.Point; import java.util.Map; import javax.annotation.Nullable; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.i...
package com.github.anba.es6draft.parser; import static com.github.anba.es6draft.semantics.StaticSemantics.*; import static java.util.Collections.emptyList; import static java.util.Collections.singletonList; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.EnumSet; ...
package com.john; /** * Gene Class for the Genetic Algorithm used for Learning */ public class Gene { float [][] gene; Gene(int rows, int cols){ gene = new float[rows][cols]; for( int i = 0; i < rows; i++){ for ( int j = 0; j < cols; j++) { gene[i][j] = 0.0f; ...
package com.github.davidmoten.rx.jdbc; import static com.github.davidmoten.rx.RxUtil.constant; import static com.github.davidmoten.rx.RxUtil.greaterThanZero; import java.io.InputStream; import java.io.InputStreamReader; import java.sql.Connection; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import rx.Obser...
package com.github.davidmoten.rx.jdbc; import static com.github.davidmoten.rx.RxUtil.greaterThanZero; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.Types; import org.slf4j.Logger; import org.s...
package com.github.skjolberg.packing; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import static java.lang.Math.max; public class Container extends Box { private int stackWeight = 0; private int stackHeight = 0; private ArrayList<Leve...
package com.google.sps.servlets; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.lang.Process; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStream...
package com.growthbeat.analytics.model; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import org.codehaus.jackson.type.TypeReference; import com.growthbeat.Context; import com.growthbeat.http.JsonUtils; public class Segment { private String id; private String orig...