answer
stringlengths
17
10.2M
package ee.ria.DigiDoc.android.signature.update; import android.app.Application; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.support.v4.content.LocalBroadcastManager; import com.google.common.collect.Immutab...
package eu.focusnet.app.model.internal; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import eu.focusnet.app.exception.BadTypeException; import eu.focusnet.app.manager.DataManager; import eu.focusnet.app.model.focus.AppContentTemplate; import eu.focusnet.app.model.focus.ProjectTe...
package org.openlmis.core.view.holder; import android.app.DialogFragment; import android.text.TextUtils; import android.view.View; import android.view.ViewStub; import android.widget.TextView; import org.openlmis.core.LMISApp; import org.openlmis.core.R; import org.openlmis.core.googleAnalytics.TrackerActions; import o...
package com.ardverk.dht.routing; import java.net.SocketAddress; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map.Entry; import org.ardverk.collection.Cursor; import org.ardverk.collection.KeyAnalyzer; import org.ardverk.collection.SortedPatriciaTrie; import org.ardver...
package io; import java.awt.Image; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.security.InvalidParameterException; import java.sql.Blob; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import j...
package org.opencb.bionetdb.lib.utils; import org.opencb.bionetdb.core.config.DownloadProperties; import org.opencb.commons.utils.FileUtils; import org.opencb.commons.utils.URLUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.IOException; import java.net.URL; import jav...
package som.tests; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import org.junit.Test; import som.VMOptions; import som.VmSettings; public c...
package net.i2p.data; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import net.i2p.util.Log; public class Base64 { private final static Log _log = new Log(Base64.class); ...
import io.vavr.collection.List; import io.vavr.collection.Stream; import io.vavr.collection.Vector; import io.vavr.control.Try; import java.util.Iterator; import java.util.function.Predicate; public class DataRowCollection implements Iterable<DataRow> { private final DataTable table; private final Vector<DataRo...
package abra; import static abra.Logger.log; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Queue; import htsjdk.samtools.CigarOperator; import htsjdk.samtools.DefaultSAMReco...
package auckland.cs; /** * Simple popup window * @author mkha153 */ import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.TextArea; import javafx.scene.input.MouseEvent; import javafx.scene.layout.BorderPane; import j...
package org.voltdb; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyB...
package com.shippo; public abstract class Shippo { public static final String LIVE_API_BASE = "https://api.goshippo.com"; public static final String VERSION = "1.0"; public static boolean DEBUG = false; public static int RATES_REQ_TIMEOUT = 25000; // milliseconds public static int TRANSACTION_REQ_T...
/* * $Id: MockLogTarget.java,v 1.2 2002-08-31 07:00:20 tal Exp $ */ package org.lockss.test; import java.util.*; import org.lockss.util.*; /** * Mock implementation of LogTarget */ public class MockLogTarget implements LogTarget{ Vector messages; public MockLogTarget(){ messages = new Vector(); } /** ...
package com.tterrag.k9; import java.io.File; import java.io.FilePermission; import java.io.IOException; import java.net.URL; import java.nio.file.Paths; import java.security.AccessControlException; import java.security.AccessController; import java.security.Policy; import java.util.Collections; import java.util.List; i...
package fasttext; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStre...
package fr.romainf; import com.google.zxing.BarcodeFormat; import com.google.zxing.EncodeHintType; import com.google.zxing.WriterException; import com.google.zxing.common.BitMatrix; import com.google.zxing.qrcode.QRCodeWriter; import org.apache.commons.cli.*; import javax.imageio.ImageIO; import java.awt.image.Buffered...
package models; import exceptions.NoAvailableParkingSpace; import exceptions.NoSuchCarInParkingLot; import java.util.List; import java.util.UUID; public class ParkingBoy { private final List<ParkingLot> parkingLots; public ParkingBoy(List<ParkingLot> parkingLots) { this.parkingLots = parkingLots; } ...
package net.augeas; import java.util.ArrayList; import java.util.List; import net.augeas.jna.Aug; import net.augeas.jna.AugPointer; import com.sun.jna.Native; import com.sun.jna.Pointer; import com.sun.jna.StringArray; import com.sun.jna.ptr.IntByReference; import com.sun.jna.ptr.PointerByReference; /** * Public Augea...
package org.testng; import org.testng.collections.Lists; import java.lang.reflect.Array; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; /** * Assertion tool class. Presents assertion methods with a more natural paramet...
// G l y p h P a n e // // This software is released under the terms of the GNU General Public // // to report bugs & suggestions. // package omr.glyph.ui; import omr.ProcessingException; import omr.Step; import omr.glyph.Glyp...
// S c o r e B u i l d e r // // This software is released under the terms of the GNU General Public // // to report bugs & suggestions. // package omr.score; import omr.glyph.Glyph; import omr.glyph.Shape; import sta...
package com.planet_ink.coffee_mud.web; import java.io.*; import java.net.*; import java.util.*; import com.planet_ink.coffee_mud.utils.*; import com.planet_ink.coffee_mud.common.*; import com.planet_ink.coffee_mud.interfaces.*; import com.planet_ink.coffee_mud.exceptions.*; // quick & dirty web server for CoffeeMUD // ...
package arez.promise; import arez.Arez; import arez.annotations.Action; import arez.annotations.ArezComponent; import arez.annotations.Observable; import elemental2.promise.IThenable; import elemental2.promise.Promise; import java.util.Objects; import javax.annotation.Nonnull; import jsinterop.base.Js; import static or...
// Updater.java package loci.plugins; import ij.IJ; import ij.gui.GenericDialog; import ij.plugin.PlugIn; import java.io.BufferedInputStream; import java.io.DataInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingEx...
package org.jgroups.tests.perf; import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.jgroups.Version; import org.jgroups.util.Util; import java.io.BufferedReader; import java.io.FileReader; import java.util.*; im...
package main.java.bschecker.bluesheets; import java.util.ArrayList; import main.java.bschecker.util.ErrorList; import main.java.bschecker.util.Tools; import main.java.bschecker.util.UtilityMethods; /** * Defines abstract class for types of grammatical errors * @author tedpyne * @author JeremiahDeGreeff */ public ab...
package cateam.teastory.block; import java.util.List; import java.util.Random; import javax.annotation.Nullable; import cateam.teastory.achievement.AchievementLoader; import cateam.teastory.block.Teapan.EnumType; import cateam.teastory.item.ItemLoader; import net.minecraft.block.Block; import net.minecraft.block.BlockC...
package com.auth0.json.mgmt; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** * Class that repres...
package com.boxymoron.ha; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; imp...
package concurrency.concurrentcollections; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.TreeSet; import java.util.concurrent.ConcurrentHashMap; /** * - Concurrent maps * Changes in data during iteration are immediately reflects to original data * * ConcurrentHashMap : imple...
package app; public class Gameboard { private int columns; private int rows; private int nrships; private int nrofshipparts; private static char[][] board; public final Ship[] myShips = new Ship[10]; public Gameboard(int width, int height, int numberofships) { this.columns = width; ...
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.It...
package com.example; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class GreetingController { @RequestMapping("/hello") public String hello(Model model) { model.addAttribute("name",...
import java.io.PrintWriter; import java.io.FileWriter; import java.util.List; import java.util.Arrays; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; public class webGenerator { static ArrayList<String []> randomize(ArrayList<String []> questions) { return questions; } ...
package us.corenetwork.tradecraft; import java.util.List; import java.util.Map; import java.util.Set; import net.minecraft.server.v1_9_R1.BiomeBase; import net.minecraft.server.v1_9_R1.EntityTypes; import net.minecraft.server.v1_9_R1.EntityVillager; import net.minecraft.server.v1_9_R1.NBTReadLimiter; import net.minecra...
package com.fishercoder.solutions; import java.util.HashMap; import java.util.Map; public class _340 { public static class Solution1 { public int lengthOfLongestSubstringKDistinct(String s, int k) { int[] count = new int[256]; int left = 0; int result = 0; int...
package com.fishercoder.solutions; import java.util.Arrays; import java.util.HashSet; import java.util.List; public class _527 { public static class Solution1 { public List<String> wordsAbbreviation(List<String> dict) { int len = dict.size(); String[] ans = new String[len]; ...
package com.fishercoder.solutions; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; /** * 688. Knight Probability in Chessboard * * On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. * The rows and columns are 0 indexed, so the ...
package com.fishercoder.solutions; /** * 693. Binary Number with Alternating Bits * * Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: Input: 5 Output: True Explanation: The binary representation of 5 is: 101 Example 2: ...
package com.github.nthportal.uhc; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import java....
package com.gocardless.resources; import java.util.Map; import com.google.gson.annotations.SerializedName; /** * Represents a event resource returned from the API. * * Events are stored for all webhooks. An event refers to a resource which has been updated, for * example a payment which has been collected, or a man...
package com.google.sps.data; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; import java.net.URLEncoder; import java.net.URL; import java.net.HttpURLConnection; import java.util.Map; impor...
package data; /** * * @author OnePoker UN Estudiante */ public class Hand extends Deck { private String rank; private int rankLevel; public Hand(String name) { super(name); } /** * @return the rank */ public String getRank() { return rank; } /** * @param...
package com.ikueb.collatz; import java.util.stream.LongStream; import java.util.stream.Stream; /** * Utilities class for deriving number of steps using the Collatz conjecture. * <p> * Given a number <code>n</code>: * <ul> * <li>If <code>n</code> is even, repeat for value <code>n / 2</code>.</li> * <li>If <code>n<...
package com.kodcu.component; import com.kodcu.controller.ApplicationController; import com.kodcu.other.IOHelper; import com.kodcu.service.DirectoryService; import com.kodcu.service.ParserService; import com.kodcu.service.ThreadService; import com.kodcu.service.convert.markdown.MarkdownService; import com.kodcu.service....
package com.lagodiuk.decisiontree; public class Rule { private final String attribute; private final Predicate predicate; private final Object sampleValue; public Rule(String attribute, Predicate predicate, Object sampleValue) { this.attribute = attribute; this.predicate = predicate; ...
package com.lhjz.portal.util; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Toolkit; import java.awt.color.ColorSpace; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp...
package com.mapr.examples; import java.util.List; import java.util.Map; import org.apache.commons.collections.CollectionUtils; import com.google.common.collect.Maps; public class TransferTool<K, V> { private Producer<K, V> producer; private Consumer<K, V> consumer; private String fromTopic; private Stri...
package com.msbmsb.genealoj; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.Map; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.ArrayList; /** * Generic node for holding and traversing through a GEDCOM line */ public...
package com.nyeggen.lash; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentLinkedQueue; import com.nyeggen.lash.bucket.RecordPtr; import com.nyeggen...
package com.ociweb.gl.impl; import java.util.ArrayList; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.ReentrantLock; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.ociweb.gl.api.Behavior; import com.ociweb.gl.api.Builder; import com.ociweb.gl.api.GreenCommandChannel; impor...
package com.problems; public class DutchNationalFlag { public void solution1(Integer[] arr){ int start=0; int end=arr.length-1; int mid=start+1; while(start<=end&& mid<end){ if(arr[start]==2){ if(arr[end]==2) { end } ...
//?? TODO: REVIEW: How much flexibility should we support right now? // - Mainly, do/will we need to provide the option to, instead of using just the // default shapefile (classpath resource files in the Jar file), use another // shapefile(s) at the same time (in the same run and without classloader // trickine...
package com.squareup.pollexor; import java.util.ArrayList; import java.util.List; import static com.squareup.pollexor.Utilities.aes128Encrypt; import static com.squareup.pollexor.Utilities.base64Encode; import static com.squareup.pollexor.Utilities.hmacSha1; import static com.squareup.pollexor.Utilities.md5; /** * Flu...
package com.tree_bit.rcdl.blocks; import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.base.Objects; import com.google.common.collect.HashBasedTable; import com.google.common.collect.Iterables; import com.google.common.collect.Table; import org.eclipse.jdt.annotation.NonNull; import...
package com.xpn.xwiki.web; import com.xpn.xwiki.XWiki; import com.xpn.xwiki.XWikiContext; import com.xpn.xwiki.XWikiException; import com.xpn.xwiki.doc.XWikiDocument; public class DeleteAction extends XWikiAction { public boolean action(XWikiContext context) throws XWikiException { XWiki xwiki = context...
package common.base.dialogs; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.Mess...
package learning; import learning.ninputs.RhythmInput; import org.deeplearning4j.nn.api.OptimizationAlgorithm; import org.deeplearning4j.nn.conf.MultiLayerConfiguration; import org.deeplearning4j.nn.conf.NeuralNetConfiguration; import org.deeplearning4j.nn.conf.Updater; import org.deeplearning4j.nn.conf.layers.GravesLS...
package cronapi.database; import java.util.HashMap; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; public class JPQLConverter { private static Map<String, String> operators =...
package cz.xtf.openshift; import io.fabric8.kubernetes.api.model.*; import io.fabric8.kubernetes.api.model.Service; import io.fabric8.kubernetes.client.KubernetesClientException; import io.fabric8.kubernetes.client.dsl.LogWatch; import io.fabric8.openshift.api.model.*; import io.fabric8.openshift.client.*; import lombo...
package de.berlin.hu.chemspot; import de.berlin.hu.types.PubmedDocument; import de.berlin.hu.uima.cc.eval.ComparableAnnotation; import de.berlin.hu.wbi.common.research.Evaluator; import org.apache.uima.UIMAException; import org.apache.uima.UIMAFramework; import org.apache.uima.analysis_engine.AnalysisEngine; import org...
package de.dk.util.channel; import static de.dk.util.CollectionUtils.toArray; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Iterator; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.concurrent...
package de.lebk.jwebpoll.data; import com.j256.ormlite.dao.ForeignCollection; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.field.ForeignCollectionField; import com.j256.ormlite.table.DatabaseTable; import de.lebk.jwebpoll.Database; import java.sql.SQLException; @DatabaseTable(tableName = "questi...
package edu.emory.cci.aiw.umls; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Represents an Atom Unique Identifier (AUI) in a UMLS query. AUIs must match * the regular expression <code>A\d{7,8}</code> (the letter 'A' followed by 7 or * 8 digits). Implements several marker interfaces that allo...
package elegit; import com.jcraft.jsch.UserInfo; import de.jensd.fx.glyphs.GlyphsDude; import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon; import javafx.application.Platform; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.event.EventHandler; import jav...
package hpcrusher.services; import hpcrusher.model.Game; import org.springframework.stereotype.Service; /** * @author liebl */ @Service public class GameService { public boolean isMoveValid(Game game, int bigField, int smallField) { if (checkWin(game.getBoard()[bigField]) != 0) { return false;...
package iubar.iva.export; import java.util.Calendar; //import java.time.Year; public class FormatChecker { private static final String cfPattern = "[a-zA-Z]{6}[0-9]{2}[a-zA-Z]{1}[0-9]{2}[a-zA-Z]{1}[0-9]{3}[a-zA-Z]{1}"; private static final String cnPattern = "[0-9]{11}"; private static final String pnPatter...
package jcifs.util.transport; import java.io.IOException; import java.io.InputStream; import java.net.SocketTimeoutException; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicLong; i...
package lombok.core; /** * This class just holds lombok's current version. */ public class Version { // ** CAREFUL ** - this class must always compile with 0 dependencies (it must not refer to any other sources or libraries). private static final String VERSION = "0.9.1-HEAD"; private Version() { ...
package joshie.harvest.town; import joshie.harvest.api.town.ITownHelper; import joshie.harvest.api.town.Town; import joshie.harvest.core.util.annotations.HFApiImplementation; import joshie.harvest.mining.HFMining; import joshie.harvest.mining.MiningHelper; import joshie.harvest.town.data.TownData; import net.minecraft....
package kr.co.vcnc.haeinsa; import java.io.IOException; import java.util.Map; import java.util.NavigableSet; import java.util.TreeMap; import java.util.TreeSet; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.h...
package mnm.mods.util; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** * Class to help with reflection. */ public final class ReflectionHelper { @SuppressWarnings("unchecked") public static <C, T> T getFieldValue(Class<C> cl, C obj, Stri...
package nl.mpi.kinnate.ui; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import ja...
package zorbage.type.data.int128; import zorbage.algorithm.Gcd; import zorbage.algorithm.Lcm; import zorbage.type.algebra.BitOperations; import zorbage.type.algebra.Bounded; import zorbage.type.algebra.Integer; import zorbage.type.algebra.Random; /** * * @author Barry DeZonia * */ public class UnsignedInt128Group ...
package org.amanga.managecore; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Node; import org.w3c.dom...
package org.cboard.services; import com.alibaba.fastjson.JSONObject; import org.cboard.dao.JobDao; import org.cboard.pojo.DashboardJob; import org.cboard.services.job.MailJobExecutor; import org.quartz.*; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Auto...
package org.drpowell.xlifyvcf; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.Reader; import java.ne...
package auth; import java.io.IOException; import java.net.InetAddress; import java.net.SocketAddress; import java.security.SecureRandom; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Arrays; import java.uti...
package org.inventivetalent.nbt; import com.google.gson.JsonElement; import org.inventivetalent.nbt.stream.NBTInputStream; import org.inventivetalent.nbt.stream.NBTOutputStream; import org.inventivetalent.reflection.resolver.minecraft.NMSClassResolver; import java.io.DataInputStream; import java.io.DataOutputStream; im...
package org.jboss.modules; import java.util.EnumSet; import java.util.HashSet; import java.util.concurrent.ConcurrentMap; import static org.jboss.modules.ConcurrentReferenceHashMap.ReferenceType.STRONG; import static org.jboss.modules.ConcurrentReferenceHashMap.ReferenceType.WEAK; /** * * @author <a href="mailto:davi...
module org.apache.isis.applib { exports org.apache.isis.applib; exports org.apache.isis.applib.annotation; exports org.apache.isis.applib.client; exports org.apache.isis.applib.clock; exports org.apache.isis.applib.domain; exports org.apache.isis.applib.events.domain; exports org.apache.isis...
package Game; import java.util.*; public class Game { private ArrayList<Team> teams; private ArrayList<Player> players; private ArrayList<Instruction> instructions; private ArrayList<Panel> panels; private ArrayList<String> playerScores; Team team1; Team team2; private int timeRound; ...
package org.kylin.task; import lombok.extern.slf4j.Slf4j; import org.kylin.bean.sd.SdDrawNoticeResult; import org.kylin.util.OkHttpUtils; import org.kylin.wrapper.GuavaCacheWrapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.spri...
package uucki; import uucki.game.reversi.Board; import uucki.algorithm.Algorithm; import uucki.algorithm.MonteCarloTreeSearch; import uucki.algorithm.Minimax; import uucki.type.FieldValue; import uucki.modes.VersusAI; import uucki.modes.AIvsAI; import uucki.modes.CustomBoard; import java.io.*; public class App { pu...
package org.libj.xquery.xml; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class XPathUtils { public static Node evalSimpleXPathOnDom(String xpath, Node node) { if (xpath.charAt(0) != '/') { throw new RuntimeException("Not Implemented!"); } ...
package org.yecht; /** * * @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a> */ public class Node { long id; KindTag kind; String type_id; String anchor; Data data; Object shortcut; // syck_alloc_map public static Node allocMap() { Data.Map m = new Data.Map(); m...
package com.openxc; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import java.util.Set; import com.google.common.base.Objects; import com.goog...
package org.myrobotlab.service; import java.io.File; import java.io.IOException; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; import org.apache.commons.io.FilenameUtils; import org.myrobotlab.framework.Platform; im...
package com.snatik.storage; import android.content.Context; import android.graphics.Bitmap; import android.os.Build; import android.os.Environment; import android.os.StatFs; import android.util.Log; import com.snatik.storage.helpers.ImmutablePair; import com.snatik.storage.helpers.SizeUnit; import com.snatik.storage.se...
package org.ojalgo.matrix.store; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import org.ojalgo.TestUtils; import org.ojalgo.function.aggregator.Aggregator; import org.ojalgo.random.Uniform; import org.ojalgo.scalar.ComplexNumber; import org.ojalgo.scalar.RationalNumber; import org.ojalgo....
package org.neo4j.util; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.RelationshipType; import org.neo4j.graphdb.Transaction; /** * Migration unit with a simple default implementation using reflection to * find the migrators and a normal sub reference node as t...
package org.skife.memcake; import java.nio.ByteBuffer; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; class FlushCommand extends Command { private final CompletableFuture<Void> result; private final int expires; FlushCommand(CompletableFuture<Void> result, int expires, ...
package se.ejp.traci.lang.parser; import static org.junit.Assert.assertEquals; import java.io.IOException; import org.antlr.runtime.EarlyExitException; import org.antlr.runtime.NoViableAltException; import org.antlr.runtime.Token; import org.junit.Test; public class TraciLexerTest extends TraciLexerBase { @Test ...
package org.sqldroid; import android.database.Cursor; import java.io.InputStream; import java.io.Reader; import java.math.BigDecimal; import java.net.URL; import java.sql.*; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Calendar; import java.util.Map; public class SQLDroidResultSet implem...
package org.starmod.api.world; import com.flowpowered.math.vector.Vector3f; /** * Represents a 3-dimensional position in a sector */ public class Location { private final Sector sector; private final Vector3f position; /** * Constructs a location with given coordinates. * * @param sector th...
package prg2.connectfour.ui; import java.util.ArrayList; import javax.swing.JButton; import javax.swing.JPanel; public class HomeScreen extends JPanel { private ArrayList<PlayHandler> playListeners = new ArrayList<>(); private JButton networkButton; private JButton singleButton; private JButton loadGame...
package storm.cookbook.log; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.contrib.cassandra.bolt.CassandraBolt; import backtype.storm.contrib.cassandra.bolt.CassandraCounterBatchingBolt; import backtype.storm.topology.TopologyBuilder; /** * User: domenicosolazzo */ public cla...
package studentcapture.mail; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import java.util.Properties; public class MailClient { private Properties properti...
package org.exist.storage.lock; import org.exist.TestDataGenerator; import org.exist.collections.Collection; import org.exist.collections.IndexInfo; import org.exist.storage.BrokerPool; import org.exist.storage.DBBroker; import org.exist.storage.txn.TransactionManager; import org.exist.storage.txn.Txn; import org.exist...