answer
stringlengths
17
10.2M
package st.gaw.db; import java.util.Map; public class MapEntry<K, V> implements Map.Entry<K, V> { private final K mKey; private V mVal; public MapEntry(K key, V val) { if (null==key) throw new NullPointerException(); mKey = key; mVal = val; } @Override public K getKey() {...
// VisitechReader.java package loci.formats.in; import java.io.*; import java.util.*; import loci.formats.*; public class VisitechReader extends FormatReader { // -- Fields -- /** Files in this dataset. */ private Vector files; // -- Constructor -- public VisitechReader() { super("Visitech XYS", new Strin...
// TransformLink.java package loci.visbio.view; import java.rmi.RemoteException; import java.util.Vector; import loci.visbio.VisBioFrame; import loci.visbio.data.*; import loci.visbio.state.Dynamic; import loci.visbio.util.VisUtil; import visad.*; import visad.util.Util; /** Represents a link between a data transform a...
package scal.io.liger; import android.content.Context; import android.os.Environment; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.Log; import com.android.vending.expansion.zipfile.APKExpansionSupport; import com.android.vending.expansion.zipfile.ZipResource...
public class ConfigCellInfo { private final int DEFAULT_STATE = 0; private int myRow; private int myCol; private String myState; private int myIntState; public ConfigCellInfo(int row, int col, String state){ myRow = row; myCol = col; myState = state; myIntState = ...
package DefPackage; import java.util.ArrayList; import javafx.application.Application; import javafx.application.Platform; import javafx.event.Event; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.TextField; import javafx.scene.layout.*; import javafx.scene.paint.Color; import...
import java.util.Timer; import java.util.TimerTask; /** * Main Class for integration with Git */ public class GitIntegration { private final static Timer timer = new Timer(); public static void main(String[] arg) { // Timer runs all tasks in a single background thread, so its behaviour is similar to ....
package com.raizlabs.events; import java.util.HashSet; /** * Class which represents an Event with arguments of type T. * @author Dylan James * * @param <T> */ public class Event<T> { private HashSet<EventListener<T>> listeners; private HashSet<EventListener<T>> listenersToAdd; private HashSet<EventList...
package org.drooms.api; import org.apache.commons.lang3.tuple.ImmutablePair; /** * Represents a connection (a route) between two immediately adjacent * {@link Node}s in a {@link Playground}. Worms can move from one {@link Node} * to anoter only by using an {@link Edge}. The connection is always * bi-directional. *...
package com.exedio.cope; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.sql.Blob; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.text.SimpleDateFormat...
package org.archive.extract; import java.io.FileNotFoundException; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.URISyntaxException; import java.nio.charset.Charset; import java.util.logging.Level; import java.util.logging.Logger;...
/* Jeu * @author MARECAL Thomas * @author MARTIN Florian * @author QUENTIN Thibaut * Groupe I2 * @version 1 du 17/06/2014 */ import metier.*; import util.TexteUtil; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.regex.Pattern; import java.util.regex.Matcher; ...
package com.jianzhi_inc.dandelion.bdpush; import android.util.Log; import com.baidu.android.pushservice.PushConstants; import com.baidu.android.pushservice.PushManager; import org.apache.cordova.CallbackContext; import org.apache.cordova.CordovaInterface; import org.apache.cordova.CordovaPlugin; import org.json.JSONArr...
package avrora; /** * The <code>Version</code> class represents a version number, including the major version, the commit number, * as well as the date and time of the last commit. * * @author Ben L. Titzer */ public class Version { /** * The <code>prefix</code> field stores the string that the prefix of ...
package backend; import java.util.ArrayList; import backend.Season; public class Series { public String title; public ArrayList<Season> s; public String length; public int id; public int episodeCount; public int seasonCount; public Series(String b,String l,int i, int e,int s) { t...
package com.example.drinkingapp; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Locale; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Build; import android.os.Bundle; import android.view.View; import android.widget.FrameLay...
/** * @Company Google * * Given two string arrays, A and B, return an array of length B where each value at index i corresponds to the number of strings * in A that are less than the string in B at index i. The string comparator is defined as follows: * * String A is greater than String B if the first lexicograph...
package com.orbekk.same; import org.eclipse.jetty.server.Server; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.googlecode.jsonrpc4j.JsonRpcServer; import com.orbekk.net.HttpUtil; public class ClientApp { private Logger logger = LoggerFactory.getLogger(getClass()); private Server server; ...
package de.fhg.ids.comm.ws.protocol; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.nio.ByteBuffer; import org.asynchttpclient.ws.WebSocket; import org.eclipse.jetty.websocket.api.Session; import org.slf4j.Logger; import org.slf4j.L...
package io.jchat.android.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Typeface; import android.graphics.drawable.ColorDrawable; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.widg...
package eu.theunitry.fabula.calculate; public class UNCalculate{ private int result; public int calculate(int g1, int g2, char operator) { switch (operator) { case '+': this.sum(g1, g2); break; case '-': this.subtract(g1...
package org.gem.calc; import java.io.File; import java.rmi.RemoteException; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.UUID; import org.apache.commons.collections.Closure; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.opensha....
package com.dianping.cat.report.page.state; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import com.dianping.cat.consumer.state.model.entity.Machine; imp...
package org.chromium.chrome.browser; import org.chromium.base.CalledByNative; import org.chromium.base.ObserverList; import org.chromium.base.VisibleForTesting; import org.chromium.chrome.browser.profiles.Profile; import org.chromium.components.bookmarks.BookmarkId; import org.chromium.components.bookmarks.BookmarkType...
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.ArrayWritable; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io....
package org.chromium.chrome.browser; import org.chromium.base.CalledByNative; import org.chromium.base.ObserverList; import org.chromium.base.VisibleForTesting; import org.chromium.chrome.browser.profiles.Profile; import org.chromium.components.bookmarks.BookmarkId; import org.chromium.components.bookmarks.BookmarkType...
package spelling; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedList; import java.util.List; /** * @author UC San Diego Intermediate MOOC team * */ public class NearbyWords implements SpellingSuggest { // THRESHOLD to determine how many words to look through when looking // for...
package com.example.gridviewapp; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.GridView; public class MainActivity e...
package org.jboss.as.cli.handlers; import java.io.IOException; import java.util.Collections; import java.util.List; import java.util.NoSuchElementException; import java.util.Set; import java.util.concurrent.CancellationException; import org.jboss.as.cli.CommandArgument; import org.jboss.as.cli.CommandContext; import or...
package yuku.alkitab.yes2; import android.util.Log; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.List; import yuku.afw.D; import yuku.alkitab.base.model.Ari; import yuku.alkitab.base.model.Book; import yuku.alkitab.base.model.PericopeBlock; import yuku.alkitab.base.m...
// associated documentation files (the "Software"), to deal in the Software without restriction, // including without limitation the rights to use, copy, modify, merge, publish, distribute, // furnished to do so, subject to the following conditions: // substantial portions of the Software. // NOT LIMITED TO THE WA...
package ch.openech.mj.swing; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.lang.reflect.InvocationTargetException; import java.util.List; import java.util.prefs.Prefe...
package com.datdo.mobilib.base; import android.app.Activity; import android.content.Context; import android.content.res.Configuration; import android.os.Bundle; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.view.WindowManager; import com.datdo.mobilib.event.MblCommonEvents; import...
package com.sedmelluq.discord.lavaplayer.source.bandcamp; import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager; import com.sedmelluq.discord.lavaplayer.source.AudioSourceManager; import com.sedmelluq.discord.lavaplayer.tools.DataFormatTools; import com.sedmelluq.discord.lavaplayer.tools.ExceptionToo...
package pl.edu.icm.coansys.metaextr.textr; import pl.edu.icm.coansys.metaextr.metadata.zoneclassification.features.HeightFeature; import pl.edu.icm.coansys.metaextr.metadata.zoneclassification.features.UppercaseWordRelativeCountFeature; import pl.edu.icm.coansys.metaextr.metadata.zoneclassification.features.AtCountFeat...
package com.elasticinbox.core.cassandra.persistence; import static me.prettyprint.hector.api.factory.HFactory.createCounterColumn; import static me.prettyprint.hector.api.factory.HFactory.createCounterSliceQuery; import static com.elasticinbox.core.cassandra.CassandraDAOFactory.CF_COUNTERS; import java.util.HashMap; im...
package net.nemerosa.ontrack.migration.postgresql; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.jdbc.core.Prep...
package com.cloudant.client.api; import com.cloudant.client.api.views.Key; import com.cloudant.client.internal.util.DeserializationTypes; import com.cloudant.client.internal.util.IndexDeserializer; import com.cloudant.client.internal.util.SecurityDeserializer; import com.cloudant.client.internal.util.ShardDeserializer;...
package org.ai4fm.proofprocess.isabelle.core.parse; import isabelle.Markup; import isabelle.Pretty; import isabelle.XML.Elem; import isabelle.XML.Text; import isabelle.XML.Tree; import isabelle.scala.ScalaCollections; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Ha...
// FILE: c:/projects/jetel/org/jetel/exception/NoMoreDataException.java package org.jetel.exception; import org.jetel.graph.GraphElement; /** A class that represents general Jetel exception * * @see Exception * @author D.Pavlis */ public class ComponentNotReadyException extends Exception { // Attributes GraphEl...
package org.caleydo.view.stratomex.command.handler; import org.caleydo.view.stratomex.GLStratomex; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.commands.IHandler; import org.eclipse.ui.IWor...
package org.eclipse.ec4e.codelens; import java.io.IOException; import java.nio.charset.Charset; import java.util.List; import org.eclipse.codelens.editors.IEditorCodeLensContext; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import o...
package org.eclipse.mylar.tasks.ui.properties; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.preference.PreferencePage; import org.eclipse.jface.viewers.CheckStateChangedEvent; import org.eclipse.jface.vie...
package org.eclipse.titan.designer.AST.TTCN3.values; /** * Extracts TTCN-3 charstring * @author Arpad Lovassy */ public class CharstringExtractor { // Error messages private static final String INVALID_ESCAPE_SEQUENCE = "Invalid escape sequence: "; /** true, if TTCN-3 string contains error */ private...
package ua.com.fielden.platform.entity.validation; import static java.lang.String.format; import static ua.com.fielden.platform.entity.AbstractEntity.KEY_NOT_ASSIGNED; import static ua.com.fielden.platform.entity.ActivatableAbstractEntity.ACTIVE; import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtil...
package com.intellij.testFramework.fixtures.impl; import com.intellij.analysis.AnalysisScope; import com.intellij.codeHighlighting.RainbowHighlighter; import com.intellij.codeInsight.AutoPopupController; import com.intellij.codeInsight.TargetElementUtil; import com.intellij.codeInsight.completion.CodeCompletionHandlerB...
package br.com.redesocial.modelo.bo; import br.com.redesocial.modelo.dto.Postagem; import br.com.redesocial.modelo.dto.Album; import br.com.redesocial.modelo.dto.Cidade; import br.com.redesocial.modelo.dto.Estado; import br.com.redesocial.modelo.dto.Pais; import br.com.redesocial.modelo.dto.Usuario; import br.com.redes...
package org.cometd.client; import java.io.IOException; import java.util.Random; import java.util.concurrent.Exchanger; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.se...
package tools.devnull.boteco.plugins.norris; import tools.devnull.boteco.message.Sendable; public class ChuckNorrisFact implements Sendable { private static final long serialVersionUID = -2791001971425417273L; private String value; public ChuckNorrisFact(String value) { this.value = value; } @Override p...
package common.sunshine.model.selling.order; import common.sunshine.model.Entity; import common.sunshine.model.selling.event.Event; import common.sunshine.model.selling.event.EventApplication; import common.sunshine.model.selling.goods.Goods4Customer; import common.sunshine.model.selling.order.support.OrderItemStatus; ...
package com.redhat.ceylon.eclipse.code.editor; import java.util.Collections; import org.eclipse.jface.action.IContributionItem; import org.eclipse.jface.action.IContributionManager; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.swt.widgets.Display; import org.eclipse.ui.PlatformUI; import org.ec...
package gov.nih.nci.cabig.caaers.web.ae; import gov.nih.nci.cabig.caaers.web.ControllerTools; import gov.nih.nci.cabig.caaers.domain.Grade; import gov.nih.nci.cabig.caaers.domain.Hospitalization; import gov.nih.nci.cabig.caaers.domain.Attribution; import gov.nih.nci.cabig.caaers.dao.ParticipantDao; import gov.nih.nci.c...
package uk.ac.ebi.quickgo.solr.model.miscellaneous; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.solr.client.solrj.beans.Field; import uk.ac.ebi.quickgo.solr.model.SolrDocumentType; /** * Solr representation of miscellaneous data * * @author cbonill * */ public clas...
package net.runelite.client.plugins.cluescrolls.clues; import com.google.common.collect.ImmutableSet; import java.awt.Color; import java.awt.Graphics2D; import java.util.ArrayList; import java.util.List; import java.util.Set; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; import net.runel...
package net.runelite.client.plugins.worldmap; import lombok.AllArgsConstructor; import lombok.Getter; import net.runelite.api.coords.WorldPoint; import javax.annotation.Nullable; @Getter @AllArgsConstructor enum TransportationPointLocation { //Ships ARDOUGNE_TO_BRIMHAVEN("Ship to Brimhaven", new WorldPoint(2675...
package org.openas2.cert; 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.security.GeneralSecurityException; import java.security.Key; import java.security.KeyStore; import java.securit...
package com.example; import org.junit.Assume; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.json.AutoConfigureJsonTest...
package commons; public class ErrorCodes { public static final int INVALID_USERNAME_CODE=800; public static final int INVALID_POSITION_CODE=801; public static final String INVALID_USERNAME_DESCRIPTION="Invalid username"; }
package com.streamsets.pipeline.runner; import com.google.common.base.Preconditions; import com.streamsets.pipeline.api.Batch; import com.streamsets.pipeline.api.BatchMaker; import com.streamsets.pipeline.api.ConfigDef; import com.streamsets.pipeline.api.OnRecordError; import com.streamsets.pipeline.api.Processor; impo...
package com.dtolabs.rundeck.core.plugins; import java.util.List; import java.util.Map; /** * Matches plugin file or providers against a block list */ public interface PluginBlocklist { /** * @return true if file name is present */ public Boolean isPluginFilePresent(String fileName); /** * @...
package org.hisp.dhis.android.core.utils.services; import com.google.auto.value.AutoValue; @AutoValue public abstract class Paging { public abstract int page(); public abstract int pageSize(); public abstract int previousItemsToSkipCount(); public abstract int posteriorItemsToSkipCount(); public abs...
package org.mskcc.cbio.portal.scripts; import org.mskcc.cbio.portal.dao.*; import org.mskcc.cbio.portal.model.*; import org.mskcc.cbio.portal.util.*; import org.apache.commons.lang.ArrayUtils; import org.apache.log4j.Logger; import java.io.*; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pa...
package org.bouncycastle.crypto.tls.test; import java.io.OutputStream; import java.io.PipedInputStream; import java.io.PipedOutputStream; import java.security.SecureRandom; import junit.framework.TestCase; import org.bouncycastle.crypto.tls.TlsClientProtocol; import org.bouncycastle.crypto.tls.TlsServerProtocol; import...
package gov.nih.nci.cananolab.restful.view.edit; import gov.nih.nci.cananolab.dto.common.AccessibilityBean; import gov.nih.nci.cananolab.dto.common.ProtocolBean; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; public class SimpleSubmitProtocolBean ...
package org.hisp.dhis.android.core.program; import com.fasterxml.jackson.databind.ObjectMapper; import org.hisp.dhis.android.core.Inject; import org.hisp.dhis.android.core.common.BaseIdentifiableObject; import org.junit.Test; import java.io.IOException; import java.text.ParseException; import static org.assertj.core.ap...
package imagej.updater.core; import imagej.updater.core.FileObject.Action; import imagej.updater.core.FileObject.Status; import imagej.updater.util.DependencyAnalyzer; import imagej.updater.util.Progress; import imagej.updater.util.Util; import imagej.util.Log; import java.io.File; import java.io.FileInputStream; impor...
package imagej.updater.core; import imagej.log.LogService; import imagej.updater.core.FileObject.Action; import imagej.updater.core.FileObject.Status; import imagej.updater.util.Canceled; import imagej.updater.util.DependencyAnalyzer; import imagej.updater.util.Progress; import imagej.updater.util.StderrLogService; imp...
package com.almende.dialog.adapter; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.Map; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.DocumentB...
package org.rstudio.studio.client.workbench.views.console.shell.assist; import com.google.gwt.core.client.JsArray; import com.google.gwt.core.client.JsArrayBoolean; import com.google.gwt.core.client.JsArrayInteger; import com.google.gwt.core.client.JsArrayString; import com.google.gwt.resources.client.ImageResource; im...
package data_objects.drivers; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.math.BigDecimal; import java.net.URI; import java.net.URISyntaxException; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.Re...
package org.openlmis.referencedata.repository.custom.impl; import static org.springframework.util.CollectionUtils.isEmpty; import com.google.common.base.Joiner; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import org.apache.commons.lang3.tuple.Pair; import org.hibernate.SQLQuery; impor...
package org.openlmis.referencedata.repository.custom.impl; import org.openlmis.referencedata.domain.Program; import org.openlmis.referencedata.domain.RequisitionGroup; import org.openlmis.referencedata.domain.RequisitionGroupProgramSchedule; import org.openlmis.referencedata.domain.SupervisoryNode; import org.openlmis....
package org.spongepowered.common.mixin.core.entity.projectile; import net.minecraft.entity.item.ExperienceOrbEntity; import net.minecraft.entity.item.ItemEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.projectile.FishingBobberEntity; import net.minecraft.item.Item; import net.minecr...
package ca.corefacility.bioinformatics.irida.ria.unit.web.services; import java.util.List; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import org.springframework.context.MessageSource; import ca.corefacility.bioinformatics.irida.model.joins.impl.ProjectMetadataTe...
package com.codekidlabs.storagechooser.fragments; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.drawable.Animatable; import android.os.Build; import android.os.Bundle; import android.os.Environment; import android.os.Handler; import android.su...
package org.drools.core.common; import org.kie.internal.utils.ClassLoaderUtil; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Enumeration; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; i...
package org.torquebox.ruby.enterprise.web.rack; import org.torquebox.pool.DefaultPool; import org.torquebox.ruby.enterprise.web.rack.spi.RackApplication; import org.torquebox.ruby.enterprise.web.rack.spi.RackApplicationFactory; import org.torquebox.ruby.enterprise.web.rack.spi.RackApplicationPool; public class DefaultR...
package net.jueb.util4j.hotSwap.annationScriptFactory; import java.lang.reflect.Modifier; import java.util.HashSet; import java.util.Map; import java.util.Objects; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.locks.ReentrantReadWriteLock; import org.slf4j.Logger; impo...
/** Snorlax is an advanced sorting algorithm with extremely high efficiency. * Note that this high efficiency comes with certain accuracy drawbacks outlined in the readme. * * @author github.com/CMMCD/ * @version 1.3 */ public class snorlax { // Your Snorlax's name. private String name; /** Class construc...
package sfBugs; public class Bug3358161 { public void setAvailableItems(String s, boolean b) { } public void resetAvailableList(String s, boolean b) { String t = "foo"; setAvailableItems(s, !b); } }
package com.rgi.geopackage.tiles; import java.io.ByteArrayInputStream; import java.io.IOException; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Arrays; import java.util.Collectio...
package se.sics.contiki.collect; public class SensorDataAggregator implements SensorInfo { private final Node node; private long[] values; private int minSeqno = Integer.MAX_VALUE; private int maxSeqno = Integer.MIN_VALUE; private int seqnoDelta = 0; private int dataCount; private int duplicates = 0; pr...
package org.exist.test.runner; import org.exist.xquery.Annotation; import org.exist.xquery.ErrorCodes; import org.exist.xquery.XPathException; import org.exist.xquery.XQueryContext; import org.exist.xquery.functions.map.MapType; import org.exist.xquery.value.*; import org.junit.runner.Description; import org.junit.runn...
package org.exist.xquery.modules.lucene; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Properties; import org.apache.log4j.Logger; import org.apache.lucene.queryParser.ParseException; import org.exist.dom.DocumentSet; import org.exist.dom.NodeSet; import org.exist.dom.Q...
package org.opennms.poller.remote; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.io.File; import java.io.IOException; import java.net.InetAddress; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Arrays; import java.util...
package wraith.library.WindowUtil; import java.awt.Color; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Graphics2D; import java.util.Random; import javax.swing.JPanel; public class LineGraph extends JPanel{ private String[] rowNames = new String[0]; private String[] colNames = new Strin...
package com.ppproductions.yankenpon.logic; import java.util.Scanner; /** * * @author pki */ public class duel { Scanner Puffer = new Scanner(System.in); final Integer NUMBER_OF_WINS = 3; final Integer WIN_PLAYER = 0; final Integer WIN_OPPONENT = 1; final Integer TIE = 2; private String oppone...
package net.yuanmomo.dwz.test.mock; import net.yuanmomo.dwz.business.mybatis.TestBusiness; import net.yuanmomo.dwz.controller.mybatis.TestController; import net.yuanmomo.dwz.mybatis.mapper.TestMapper; import net.yuanmomo.dwz.test.BaseTest; import org.easymock.EasyMock; import org.easymock.IMocksControl; import org.juni...
import java.util.regex.Matcher; import java.util.regex.Pattern; public class HeaderEditor { public static int parseLength(String header){ int returnVar = 0; Pattern pattern = Pattern.compile("Content-Length:(.)*"); Matcher matcher = pattern.matcher(header); if(!matcher.find()){ ...
package lu.ing.gameofcode.services; import com.google.android.gms.maps.model.LatLng; import java.util.List; import lu.ing.gameofcode.model.BusStop; public interface BusService { List<BusStop> getBusStops(final int busLineNumber, LatLng start, LatLng stop); }
package mil.nga.geopackage.user; import android.database.Cursor; import mil.nga.geopackage.db.GeoPackageConnection; import mil.nga.geopackage.db.GeoPackageDatabase; import mil.nga.geopackage.db.SQLiteQueryBuilder; /** * GeoPackage Connection used to define common functionality within different * connection types * ...
package com.util; import java.io.IOException; import javax.microedition.lcdui.Image; /** * @author nick * */ /** * @author nick * */ /** * @author nick * */ public class Cards { private String[] name = null; private int[] expansion = null; private int[] playing = null; /* * #0 = Is Selecte...
package st.gaw.db; import java.lang.ref.WeakReference; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import android.annotation.SuppressLint; import android.content.ContentValues; import android.content.Context; impor...
package com.messenger; import com.facebook.react.ReactActivity; import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import com.rt2zz.reactnativecontacts.ReactNativeContacts; import android.os.Bundle; import android.os.Environment; import com.github.ethereum.go_ethereum.cmd.Geth; im...
package com.sometrik.framework; import android.app.Dialog; import android.graphics.Bitmap; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.GradientDrawable; import android.graphics.drawable.ShapeDrawable; import android.g...
package controllers.acentera; import models.db.User; import models.db.acentera.impl.UserImpl; import models.web.AppObj; import models.web.AppObj$; import models.web.DesktopObject; import models.web.WebSession; import net.sf.json.JSONObject; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.UnknownAcc...
package com.andela.webservice; import android.app.ListActivity; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.AsyncTask; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android....
package com.malmstein.yahnac.data; import android.content.ContentValues; import android.util.Pair; import com.firebase.client.DataSnapshot; import com.firebase.client.Firebase; import com.firebase.client.FirebaseError; import com.firebase.client.ValueEventListener; import com.malmstein.yahnac.inject.Inject; import com....
package com.nokia.mid.ui; import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; import javax.microedition.lcdui.game.Sprite; public class DirectGraphicsImp implements DirectGraphics { private Graphics graphics; private int alphaComponent; /** * @param g */ public Dir...
package com.procleus.brime; import android.app.Activity; import android.app.Dialog; import android.os.Bundle; import android.view.View; import android.view.Window; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.RadioGroup; import android.widget.Spinner; import android.widget.Toa...