answer
stringlengths
17
10.2M
package foam.nanos.ruler; import foam.core.*; import foam.dao.DAO; import foam.nanos.auth.LastModifiedAware; import foam.nanos.auth.LastModifiedByAware; import foam.nanos.logger.Logger; import foam.nanos.pm.PM; import foam.util.SafetyUtil; import java.lang.Exception; import java.time.Duration; import java.time.Instant;...
import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.Graphics.*; import java.awt.Color; //All Yogin's work HAHAHAHAHAHAHHAHAHAHHAHAHAHAHHHAHAHAH public class FoodDrawings { private JFrame frame; private JPanel panel; private int nP,nB,nSand,nSoda,nW,nJ; private Graphics x; ...
package com.minelittlepony.pony.data; import com.minelittlepony.MineLittlePony; import com.minelittlepony.transform.PonyTransformation; public enum PonySize implements ITriggerPixelMapped<PonySize> { TALL(0x534b76, 0.45f, 1.1F, PonyTransformation.TALL), LARGE(0xce3254, 0.5f, 1, PonyTransformation.LARGE), NO...
package com.monitorjbl.xlsx.impl; import com.monitorjbl.xlsx.exceptions.NotSupportedException; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import java...
package com.relayrides.pushy; import io.netty.bootstrap.Bootstrap; import io.netty.channel.Channel; import io.netty.channel.ChannelOption; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.nio.NioSocketChannel; public class ApnsClientThread<T extends ApnsPushNotification> extends Thread { ...
package com.sdl.selenium.extjs6.form; import com.sdl.selenium.web.SearchType; import com.sdl.selenium.web.WebLocator; import com.sdl.selenium.web.form.ICombo; import com.sdl.selenium.web.utils.Utils; import org.apache.log4j.Logger; import java.util.Arrays; import java.util.List; import static org.hamcrest.MatcherAssert...
package com.toomasr.sgf4j.properties; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.toomasr.sgf4j.SGF4JApp; import co...
package com.zenred.service; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.zenred.cosmos.Atmosphere; import com.zenred.cosmos.StarAtributesIF; import org.slf4j.Logger; impo...
package committools.data; import java.io.File; import java.io.IOException; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Logger; import org.apache.commons.lang.exception.ExceptionUtils; import org.eclipse.jgit.api.ResetCommand.ResetType; import org.ecl...
package de.braintags.vertx.util.json; import java.util.LinkedHashMap; public class ArrayMap<K, V> extends LinkedHashMap<K, V> { }
package de.prob2.ui.operations; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.ResourceBundle; import java.util.Set; import java.util.concurr...
package edu.brandeis.cs.steele.wn; import java.util.*; import java.util.logging.*; import java.nio.*; import java.nio.charset.*; import java.nio.channels.*; import java.io.*; import edu.brandeis.cs.steele.util.Utils; /** An implementation of <code>FileManagerInterface</code> that reads files * from the local file syst...
package edu.jhu.data.conll; import org.apache.commons.cli.ParseException; import java.io.File; import java.io.IOException; import edu.jhu.data.BrownClusterTagger; import edu.jhu.data.Label; import edu.jhu.util.Alphabet; import edu.jhu.util.cli.ArgParser; import edu.jhu.util.cli.Opt; import org.apache.log4j.Logger; publ...
package edu.ucdenver.ccp.common.file; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import ...
package edu.ucsf.mousedatabase; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; import java.util.Enumeration; import java.util.Properties; import java.util.Vector; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.google.gson.Gson; import edu...
package fgis.server.services; import fgis.server.entity.fgis.Resource; import fgis.server.entity.fgis.ResourceTrack; import fgis.server.entity.fgis.dao.ResourceRepository; import fgis.server.entity.fgis.dao.ResourceTrackRepository; import java.util.Date; import java.util.Random; import javax.ejb.EJB; import javax.ejb.S...
package innovimax.mixthem.arguments; import innovimax.mixthem.io.InputResource; import java.io.File; import java.io.InputStream; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; import java.util.Enumeration; import java.util.EnumMap; import java.util.It...
package innovimax.mixthem.arguments; import innovimax.mixthem.io.InputResource; import java.io.File; import java.io.InputStream; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; import java.util.Enumeration; import java.util.EnumMap; import java.util.It...
package intellimate.izou.output; import intellimate.izou.events.Event; import intellimate.izou.resource.Resource; import intellimate.izou.system.Identifiable; import intellimate.izou.system.Identification; import intellimate.izou.system.IdentificationManager; import org.apache.logging.log4j.LogManager; import org.apach...
package intellimate.izou.output; import intellimate.izou.events.Event; import intellimate.izou.main.Main; import intellimate.izou.resource.Resource; import intellimate.izou.system.Identifiable; import intellimate.izou.system.Identification; import intellimate.izou.system.IdentificationManager; import org.apache.logging...
package io.jenkins.plugins; import io.jenkins.plugins.commons.JsonObjectMapper; import io.jenkins.plugins.models.*; import io.jenkins.plugins.utils.VersionUtils; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.validator.routines.UrlValidator; import org.apa...
package io.sigpipe.sing.query; import java.io.IOException; import java.util.HashSet; import java.util.List; import java.util.Set; import io.sigpipe.sing.dataset.feature.FeatureType; import io.sigpipe.sing.graph.Vertex; import io.sigpipe.sing.serialization.SerializationInputStream; import io.sigpipe.sing.serialization.S...
package janala.logger; import janala.config.Config; import janala.interpreters.ConcolicInterpreter; import janala.logger.inst.*; import janala.utils.MyLogger; public class DirectConcolicExecution extends AbstractLogger { private Instruction inst, next; java.util.logging.Logger tester = MyLogger.getTestLogger(Conf...
package javafixes.collection; import java.util.*; import static java.lang.Math.min; // todo: mtymes - put into README.md // todo: mtymes - test this // todo: mtymes - add javadoc public class LinkedArrayQueue<T> extends AbstractQueue<T> { private transient Node first; private transient Node last; private tr...
package javax.time.calendrical; import static javax.time.calendrical.LocalDateTimeField.EPOCH_DAY; import static javax.time.calendrical.LocalPeriodUnit.DAYS; import static javax.time.calendrical.LocalPeriodUnit.FOREVER; import javax.time.DateTimeException; import javax.time.DateTimes; import javax.time.LocalDate; /** ...
package lan.dk.podcastserver.utils; import lan.dk.podcastserver.entity.Cover; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.imageio.ImageIO; import javax.imageio.ImageReader; import javax.imageio.stream.ImageInputStream; import java.io.IOException; im...
package mingzuozhibi.service; import mingzuozhibi.persist.disc.Disc; import mingzuozhibi.persist.disc.Sakura; import mingzuozhibi.support.Dao; import org.json.JSONArray; import org.json.JSONObject; import org.jsoup.Connection.Method; import org.jsoup.Jsoup; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impor...
package net.hamnaberg.json.extension; import org.codehaus.jackson.node.JsonNodeFactory; import org.codehaus.jackson.node.ObjectNode; public abstract class Extended<T> { protected final ObjectNode delegate; protected Extended(ObjectNode delegate) { this.delegate = delegate; } protected abstract T...
package net.kerupani129.sjgl.map.object; import java.util.Properties; import org.newdawn.slick.SlickException; import org.newdawn.slick.tiled.TileSet; import org.newdawn.slick.util.Log; import net.kerupani129.sjgl.SContainer; import net.kerupani129.sjgl.SGame; import net.kerupani129.sjgl.gl.SAnimation; import net.kerup...
package net.new_liberty.pvpranker; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; import net.milkbowl.vault.chat.Chat; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit....
package no.ntnu.okse.protocol.mqtt; import io.moquette.BrokerConstants; import io.moquette.interception.AbstractInterceptHandler; import io.moquette.interception.InterceptHandler; import io.moquette.interception.messages.InterceptConnectMessage; import io.moquette.interception.messages.InterceptPublishMessage; import i...
package org.adridadou.ethereum; import static java.lang.reflect.Proxy.newProxyInstance; import java.io.IOException; import java.math.BigInteger; import java.nio.charset.Charset; import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; import com.goo...
package org.alienlabs.amazon; import java.io.UnsupportedEncodingException; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormSubmitBehavior; import org.apach...
package org.apache.mesos.hdfs.state; import com.google.common.base.Predicate; import com.google.common.collect.Sets; import com.google.inject.Singleton; import org.apache.mesos.Protos; import org.apache.mesos.hdfs.util.HDFSConstants; import java.util.*; @Singleton public class LiveState { private Set<Protos.TaskInfo>...
package org.bricolages.streaming; import org.bricolages.streaming.filter.*; import org.bricolages.streaming.event.*; import org.bricolages.streaming.stream.*; import org.bricolages.streaming.locator.*; import org.bricolages.streaming.exception.*; import org.springframework.beans.factory.annotation.Autowired; import jav...
package org.dynmap.regions; import java.io.File; import java.io.FileInputStream; import java.io.FilenameFilter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Propertie...
package org.forgeide.producer; import java.io.File; import java.util.List; import java.util.ServiceLoader; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Produces; import org.jboss.forge.furnace.Furnace; import org.jboss.forge.furnace.repositories.AddonRepository; import org.jboss.for...
package org.jpmml.sparkml.model; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.apache.spark.ml.Model; import org.apache.spark.ml.classification.DecisionTreeClassificationModel; import org.apache.spark.ml.regression.DecisionTreeRegressionModel; impor...
package org.jtrfp.trcl.beh; import java.util.Collection; import org.jtrfp.trcl.AbstractSubmitter; import org.jtrfp.trcl.Submitter; import org.jtrfp.trcl.obj.Player; public class DamageableBehavior extends Behavior { private int maxHealth=65535; private int health=maxHealth; private boolean acceptsProjec...
package org.jtrfp.trcl.beh; import org.jtrfp.trcl.beh.phy.MovesByVelocity; import org.jtrfp.trcl.obj.DEFObject; import org.jtrfp.trcl.obj.Explosion.ExplosionType; import org.jtrfp.trcl.obj.Player; import org.jtrfp.trcl.obj.Projectile; import org.jtrfp.trcl.obj.WorldObject; public class ProjectileBehavior extends Behavi...
package org.mcphoton.impl.command; import org.mcphoton.command.Command; import org.mcphoton.impl.server.Main; import org.mcphoton.messaging.Messageable; public class ListCommand implements Command { @Override public void execute(Messageable source, String[] args) { switch(Main.serverInstance.getOnlinePl...
package org.robolectric; import android.app.Application; import android.os.Build; import java.io.IOException; import java.io.InputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.net.URL; import java.security.SecureRandom; import java.util.Arra...
package org.sistemafinanciero.entity; import java.io.Serializable; import java.math.BigDecimal; import java.math.BigInteger; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; i...
package org.smoothbuild.cli; import static com.google.common.collect.ImmutableList.toImmutableList; import static org.smoothbuild.lang.base.Name.isLegalName; import static org.smoothbuild.util.Maybe.maybe; import static org.smoothbuild.util.Maybe.value; import java.util.List; import java.util.Set; import org.smoothbuil...
package seedu.ezdo.logic.commands; import java.util.List; import java.util.Optional; import seedu.ezdo.commons.core.EventsCenter; import seedu.ezdo.commons.core.Messages; import seedu.ezdo.commons.events.ui.JumpToListRequestEvent; import seedu.ezdo.commons.exceptions.DateException; import seedu.ezdo.commons.util.Collec...
package seedu.ezdo.logic.commands; import seedu.ezdo.commons.core.EventsCenter; import seedu.ezdo.commons.events.ui.JumpToListRequestEvent; import seedu.ezdo.logic.commands.exceptions.CommandException; import seedu.ezdo.model.todo.UniqueTaskList.SortCriteria; /** * Sorts all tasks in ezDo by their name, start date, du...
package seedu.unburden.storage; import javax.xml.bind.annotation.XmlElement; import seedu.unburden.commons.exceptions.IllegalValueException; import seedu.unburden.model.tag.Tag; import seedu.unburden.model.tag.UniqueTagList; import seedu.unburden.model.task.*; import java.util.ArrayList; import java.util.List; /** * J...
package think.rpgitems.power.impl; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import org.bukkit.Sound; import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent.DamageCause; import org.bukkit.inventory.Item...
package uk.ac.edukapp.service; import javax.persistence.EntityManagerFactory; import javax.servlet.ServletContext; public abstract class AbstractService { protected EntityManagerFactory emf; protected ServletContext servletContext; public AbstractService(){ } public AbstractService(ServletContext ct...
package viewer.render; import java.awt.image.BufferedImage; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import net.imglib2.RandomAccessible; import net.imglib2.RealRandomAccessible; import net.imglib2.Volatile; import net.imglib2.dis...
package mobi.hsz.idea.gitignore.settings; import com.intellij.ide.projectView.ProjectView; import com.intellij.openapi.components.PersistentStateComponent; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.components.State; import com.intellij.openapi.components.Storage; import com.inte...
package nl.b3p.geotools.data.arcgis; import com.vividsolutions.jts.geom.Geometry; import com.vividsolutions.jts.geom.GeometryFactory; import java.io.IOException; import java.util.*; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.geotools.data.DataUtilities; import org.ge...
package nu.validator.servlet; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.SocketTimeoutException; import java.util.Arrays; import java.util.Deque; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHash...
package org._2585robophiles.frc2015.systems; import org._2585robophiles.frc2015.Environment; import org._2585robophiles.frc2015.RobotMap; import org._2585robophiles.frc2015.input.InputMethod; import org._2585robophiles.lib2585.MultiMotor; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.SensorBase;...
package org.cleartk.classifier.opennlp; import java.io.DataInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.jar.JarFile; import java.util.zip.GZIPInputStream; import java.util.zip.ZipEntry; import opennlp.maxent.MaxentModel; impor...
package org.cocolab.inpro.features; import weka.core.Attribute; import weka.core.FastVector; import weka.core.Instance; import weka.core.Instances; import edu.cmu.sphinx.util.props.Resetable; public class EOTFeatureAggregator implements Resetable { private final static int NUMBER_OF_ATTRIBUTES = 14; private Att...
/* * @author <a href="wehrens@aei.mpg.de">Oliver Wehrens</a> * @versiob $Id$ */ package org.gridlab.gridsphere.portlets.core; import org.gridlab.gridsphere.event.ActionEvent; import org.gridlab.gridsphere.tags.event.FormEvent; import org.gridlab.gridsphere.tags.event.impl.FormEventImpl; import org.gridlab.gridsphere...
/** * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @version $Id: TableTag.java 5032 2006-08-17 18:15:06Z novotny $ */ package org.gridsphere.provider.portletui.tags; import org.gridsphere.provider.portletui.beans.TableBean; import org.gridsphere.provider.portletui.model.DefaultTableModel; impo...
package org.idlesoft.android.hubroid; import java.io.File; import org.idlesoft.libraries.ghapi.User; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundl...
package org.jgroups.auth.sasl; import java.io.IOException; import javax.security.auth.callback.Callback; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.NameCallback; import javax.security.auth.callback.PasswordCallback; import javax.security.auth.callback.UnsupportedCallbackExc...
package org.texastorque.texastorque2015.constants; public class Ports { public final static int LEFT_A_DRIVE_PORT = 0; public final static int LEFT_B_DRIVE_PORT = 1; public final static int RIGHT_A_DRIVE_PORT = 4; public final static int RIGHT_B_DRIVE_PORT = 3; public final static int FRONT_STRAFE_P...
package com.dampcake.gson.immutable; import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSortedMap; import com.google.common.collect.I...
package com.github.nsnjson; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.*; import java.util.*; import static com.github.nsnjson.format.Format.*; public class AbstractFormatTest { protected static NullNode getNull() { return NullNode.getInstance(); } ...
package com.moandjiezana.toml; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.*; import java.text.SimpleDateFormat; import java.util.*; import static org.junit.Assert.assertEquals; public class ValueWriterTest { @Rule public TemporaryFolder testDirectory = new T...
package com.xjeffrose.xio.guice; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.ListeningExecutorService; import com.google.common.util.concurrent.MoreExecutors; import com.google.inject.Guice; import com.google.inject.Stage; import com.xjeffrose.xio.core.XioCodecFac...
package de.bmoth.typechecker; import static org.junit.Assert.assertEquals; import java.util.List; import org.junit.Test; import de.bmoth.parser.Parser; import de.bmoth.parser.ast.nodes.DeclarationNode; import de.bmoth.parser.ast.nodes.MachineNode; public class MachineFilesTest { @Test public void testReadSimple...
package i5.las2peer.webConnector; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import i5.las2peer.api.Service; import i5.las2peer.restMapper.RESTMapper; import i5.las2peer.restMapper.annotations.ContentParam; import i5.las2peer.restMapper.annotations.Version; i...
package net.kaczmarzyk.kata; import static org.junit.Assert.assertEquals; import org.junit.Test; public class RomanNumeralsTest { RomanNumeralConverter converter = new RomanNumeralConverter(); @Test public void convertsToSingleI() { assertEquals("I", converter.convert(1)); } @Test public...
package org.animotron.games.whouse; import org.animotron.ATest; import org.animotron.expression.AnimoExpression; import org.animotron.expression.Expression; import org.animotron.expression.JExpression; import org.animotron.statement.compare.WITH; import org.animotron.statement.operator.AN; import org.animotron.statemen...
package programminglife.gui; import javafx.application.Platform; import javafx.scene.input.KeyCode; import javafx.stage.Stage; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.testfx.api.FxRobot; import org.testfx.api.FxToolkit; import org.testfx.util.Wait...
package org.jdesktop.swingx; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.MouseEvent; import java.util.EventObject; import java.util.logging.Logger; import java.util.regex.Pattern; import javax.swing.AbstractAction; import javax.sw...
package gov.nih.nci.camod; /** * Constant values used throughout the application. * * <p> * <a href="Constants.java.html"><i>View Source</i></a> * </p> */ public class Constants { /** The name of the ResourceBundle used in this application */ public static final String BUNDLE_KEY = "ApplicationResources";...
/** * The GUI for an inventory. * * @author Julia McClellan, Luke Giacalone, Hyun Choi * @version 05/20/2016 */ import java.awt.Color; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.a...
/* $Log$ Revision 1.21 1998/11/15 23:03:33 rimassa Removed old printed messages about system agents, since now the Remote Agent Management GUI shows all agents present on the platform. Added a new AMSKillContainer method to be used from AMS agent to terminate Agent Containers. Revision 1.20 1998/11/09 ...
package afc.ant.modular; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; public final class Module { private final String path; private final HashSet<Module> dependencies = new HashSet<Module>(); priva...
// BUI - a user interface library for the JME 3D engine // 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 ...
package hep.lcio.util; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * Miscellaneous java file utilities. * @author jeremym * @version $Id: FileUtil.java,v 1.3 2007-03-16 00:36:20 jeremy Exp $ */ publ...
package org.jaxen; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** Wrapper around implementation-specific objects used * as the context of an expression evaluation. * * <p> * <strong>NOTE:</strong> This class is not typically used directly, * bu...
package org.jivesoftware; import java.awt.Color; import java.awt.Font; import java.io.File; import java.io.IOException; import java.util.Locale; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.SwingUtilities; import javax.swing.UIManager; import org.jiveso...
package lbms.plugins.mldht.kad; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.net.InetAddress; import java.net.InetSocketAddress; import java.nio.file.Files; import java.nio.f...
/** * The GUI for an inventory. * * @author Julia McClellan, Luke Giacalone, Hyun Choi * @version 05/17/2016 */ import java.awt.Color; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.a...
import com.google.gson.Gson; import java.util.HashMap; import java.util.Map; import java.util.UUID; import javax.swing.JOptionPane; import javax.swing.JPanel; import static spark.Spark.post; /** * * @author Sarah's Laptop */ public class AddUserController { public AddUserController(){ try{ post("/new...
package bot; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import java...
package com.bugsnag; import java.io.FileWriter; import java.util.List; import java.util.Arrays; import org.json.JSONObject; import org.json.JSONArray; import com.bugsnag.utils.JSONUtils; public class Error { private static final List<String> ALLOWED_SEVERITIES = Arrays.asList("error", "warning", "info"); privat...
package javax.time; import static javax.time.calendrical.LocalDateTimeField.DAY_OF_MONTH; import static javax.time.calendrical.LocalDateTimeField.EPOCH_MONTH; import static javax.time.calendrical.LocalDateTimeField.MONTH_OF_YEAR; import static javax.time.calendrical.LocalDateTimeField.NANO_OF_DAY; import static javax.t...
package jsonfeed4j; import java.util.Collections; import java.util.Map; import validation.ValidAuthor; @ValidAuthor public class Author { private String name; private String url; private String avatar; private Map<String, Object> extensions = Collections.emptyMap(); public String getName() { return name; ...
package org.amc; /** * Holds the global constants for the Application * @author Adrian Mclaughlin * @version 1 * */ public class Constants { private Constants() { //Utility Class } public static enum Roles { QC, MANAGER, GUEST; public String toString() ...
package org.basex.gui; import static org.basex.core.Text.*; import static org.basex.gui.GUIConstants.*; import java.awt.*; import java.awt.event.*; import java.util.regex.*; import javax.swing.*; import javax.swing.border.*; import org.basex.core.*; import org.basex.core.cmd.*; import org.basex.core.parse.*; import org...
package org.batgen; import java.io.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; /** * A reusable parser class. You can instantiate once and run parse() on multiple * files. */ public class Parser { private static HashMap<String, Table> tableMap = new HashMap<String, Table...
package org.dainst; import static org.dainst.C.*; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.log4j.Logger; import java.io.IOException; import static spark.Spark.get; import static spark.Spark.post; import static spark.Spark.put; /** * @author D...
package org.jdbdt; import java.sql.PreparedStatement; import java.util.Iterator; import java.util.LinkedList; import java.util.List; /** * Utility class with methods for database setup. * * @since 0.1 * */ final class DBSetup { /** * Insert a data set onto the database. * @param callInfo Call information. ...
package sklearn; import java.util.List; import java.util.Map; import org.dmg.pmml.DataType; import org.dmg.pmml.MiningFunction; import org.dmg.pmml.Model; import org.dmg.pmml.OpType; import org.jpmml.converter.Feature; import org.jpmml.converter.ModelEncoder; import org.jpmml.converter.Schema; import org.jpmml.python.C...
package water; import water.api.DocGen; import water.util.Utils; import java.util.Random; public class NetworkTest extends Func { static final int API_WEAVER=1; // This file has auto-gen'd doc & json fields static public DocGen.FieldDoc[] DOC_FIELDS; // Initialized from Auto-Gen code. @API(help = "Message sizes",...
package whelk.importer; import se.kb.libris.util.marc.Datafield; import se.kb.libris.util.marc.Field; import se.kb.libris.util.marc.MarcRecord; import whelk.Document; import whelk.IdGenerator; import whelk.component.ElasticSearch; import whelk.component.PostgreSQLComponent; import whelk.converter.MarcJSONConverter; imp...
package x.java; import x.java.snippets.*; import java.util.Arrays; import java.util.List; import java.util.Optional; import static x.ctrl.MiserableLogger.logDebug; public class JavaConfig { public static final String EOL = "\n"; private static final IndentService indentService = new IndentService(" "); p...
package mms.Pluginsystem; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; import java.util.stream.Stream; import javafx.beans.property.ObjectProperty; import javafx.beans.value.ChangeListener; import javafx.collections.Observ...
package model.dao.concrete; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import model.dao.interfaces.GiocoDaoInterface; import model.database.DB; import model.*; public class GiocoDao implements...
package org.aschyiel.rpg; import android.content.res.AssetManager; import java.util.HashMap; import java.util.Map; import org.andengine.entity.scene.background.IBackground; import org.andengine.entity.scene.background.RepeatingSpriteBackground; import org.andengine.opengl.texture.TextureManager; import org.andengine.op...
/* Open Source Software - may be modified and shared by FRC teams. The code */ /* the project. */ package org.foximus.prime; import com.sun.squawk.util.MathUtils; import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.Jaguar; import edu....
package org.objectweb.asm; /** * Defines the JVM opcodes, access flags and array type codes. This interface * does not define all the JVM opcodes because some opcodes are automatically * handled. For example, the xLOAD and xSTORE opcodes are automatically replaced * by xLOAD_n and xSTORE_n opcodes when possible. Th...