answer
stringlengths
17
10.2M
// This file is part of the Whiley-to-Java Compiler (wyjc). // The Whiley-to-Java Compiler is free software; you can redistribute // it and/or modify it under the terms of the GNU General Public // The Whiley-to-Java Compiler is distributed in the hope that it // You should have received a copy of the GNU General Publi...
package org.postgresql.core; import java.util.Vector; import java.io.IOException; import java.sql.*; import org.postgresql.*; import org.postgresql.util.PSQLException; import org.postgresql.jdbc1.AbstractJdbc1Connection; import org.postgresql.jdbc1.AbstractJdbc1ResultSet; import org.postgresql.jdbc1.AbstractJdbc1Statem...
import java.awt.event.KeyListener; import java.awt.event.KeyEvent; /** * An implementation of {@link LocalClient} that is controlled by the keyboard * of the computer on which the game is being run. * @author Geoffrey Washburn &lt;<a href="mailto:geoffw@cis.upenn.edu">geoffw@cis.upenn.edu</a>&gt; * @version $Id: GU...
//package libManGUI; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class LibManGUI extends JFrame{ private JFrame mainFrame; private JLabel heade...
import java.awt.*; import java.awt.geom.Line2D; import java.awt.geom.Point2D; import java.awt.geom.Point2D.Double; import java.awt.geom.RoundRectangle2D; public class NodeShape extends TreeNode { final private static int RADIUS = 17; private int size = RADIUS; final private static int MAX_RADIUS = 30; f...
package eta.base; import java.io.IOException; import java.io.PrintStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.nio.ByteOrder; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.util.Arrays; import java.util.List; import eta.runtime.Rts; import eta.ru...
// FileStitcher.java package loci.formats; import java.awt.image.BufferedImage; import java.io.*; import java.lang.reflect.InvocationTargetException; import java.util.*; public class FileStitcher implements IFormatReader { // -- Fields -- /** FormatReader to use as a template for constituent readers. */ private I...
// EPSReader.java package loci.formats.in; import java.awt.image.BufferedImage; import java.io.*; import java.util.Hashtable; import java.util.StringTokenizer; import loci.formats.*; /** * Reader is the file format reader for Encapsulated PostScript (EPS) files. * Some regular PostScript files are also supported. * ...
// LIFReader.java package loci.formats.in; import java.awt.image.BufferedImage; import java.io.*; import java.util.*; import javax.xml.parsers.*; import loci.formats.*; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; /** * LIFReader is the file format reader f...
// MathUtil.java package loci.visbio.util; import java.math.BigInteger; /** MathUtil contains useful mathematical functions. */ public final class MathUtil { // -- Constructor -- private MathUtil() { } // -- Utility methods -- /** * Gets the distance between the points p and q, using * the given conversio...
// This file is part of OpenTSDB. // This program is free software: you can redistribute it and/or modify it // option) any later version. This program is distributed in the hope that it // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser package net.opentsdb.tools; import static org.junit.A...
package tester; import java.io.*; import java.util.*; import java.lang.*; import java.lang.reflect.*; import java.lang.annotation.*; import org.junit.*; import org.junit.rules.*; import org.junit.runner.*; import org.junit.runners.model.*; public class ReadReplace{ public static String getSig(Method m){ Str...
package org.xbill.DNS; import java.io.*; import java.text.*; import java.util.*; import org.xbill.DNS.utils.*; /** * Recource Record Signature - An RRSIG provides the digital signature of an * RRset, so that the data can be authenticated by a DNSSEC-capable resolver. * The signature is generated by a key contained i...
package at.int32.sweaty.ui.controls; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.widgets.Composite; import at.int32.sweaty.ui.Control; import at.int32.sweaty.ui.annotations.OnClick; import at.int32.sweaty.ui.annotations.OnClickEvent; import at.int32.sweaty.ui.annotations.On...
package com.akamai.authtoken; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; import java.util.Map; import static org.junit.Assert.*; import org.junit.After;...
import java.io.*; class Abuse { void dropAbuses(InputStream in, OutputStream out, String[] abuse) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in)); OutputStreamWriter ow = new OutputStreamWriter(out); String line = br.readLine(); String []words =...
package com.ericsson.ei.flowtests; import static org.junit.Assert.assertEquals; import java.io.File; import java.util.ArrayList; import java.util.Properties; import javax.annotation.PostConstruct; import org.apache.commons.io.FileUtils; import org.apache.qpid.server.Broker; import org.apache.qpid.server.BrokerOptions; ...
package org.eclipse.che.ide.editor; import static org.eclipse.che.ide.api.notification.StatusNotification.DisplayMode.NOT_EMERGE_MODE; import static org.eclipse.che.ide.api.notification.StatusNotification.Status.SUCCESS; import com.google.web.bindery.event.shared.EventBus; import java.util.List; import java.util.functi...
package chan.text; import java.util.ArrayList; import java.util.HashMap; import android.util.Pair; import chan.annotation.Extendable; import chan.annotation.Public; import chan.util.StringUtils; // TODO CHAN // Make internal builder methods private and remove dynamic safety check after updating // alphachan alterchan a...
package org.innovateuk.ifs.grant.service; import org.innovateuk.ifs.BaseServiceUnitTest; import org.innovateuk.ifs.commons.service.ServiceResult; import org.innovateuk.ifs.grant.domain.GrantProcess; import org.innovateuk.ifs.organisation.domain.Organisation; import org.innovateuk.ifs.project.core.domain.Project; import...
package gr.jchrist.gitextender; import com.intellij.ide.highlighter.ProjectFileType; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.io.FileUtil; import com.intellij.openapi.util.text.StringUt...
package io.redlink.sdk; import com.google.code.tempusfugit.concurrency.ConcurrentRule; import com.google.code.tempusfugit.concurrency.RepeatingRule; import com.google.code.tempusfugit.concurrency.annotations.Concurrent; import com.google.code.tempusfugit.concurrency.annotations.Repeating; import org.apache.commons.lang...
package jcommon.init; import jcommon.OSFamily; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import jcommon.Sys; import static org.junit.Assert.*; /** * * @author David Hoyt <dhoyt@hoytsoft.org> */ public class RegistryReferenceTest...
package ml.duncte123.skybot; import org.junit.Test; import java.util.List; import static org.junit.Assert.assertNotEquals; public class SkybotMainTest { @Test public void testSettings() { List<Long> actualValue = Settings.wbkxwkZPaG4ni5lm8laY; assertNotEquals("Checks if the settings are defined"...
package example; //-*- mode:java; encoding:utf8n; coding:utf-8 -*- // vim:set fileencoding=utf-8: //@homepage@ import java.awt.*; import java.awt.event.*; import java.beans.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.table.*; public class MainPanel extends JPanel { //<blockquote cite="Fi...
package net.imagej.legacy; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assume.assumeTrue; import java.net.URL; import net.imagej.patcher.LegacyInjector; import org.junit.Test; import org.scijava.Context; import org.scijava.script.ScriptModule; impor...
package net.imagej.patcher; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.junit.Assume.assumeTrue; import ij.IJ; import ij.ImageJ; import java.awt.GraphicsEnvironment; import org....
package org.agmip.functions; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import static org.agmip.util.MapUtil.*; import static org.junit.Assert.*; import org.agmip.ace.util.AcePathfinderUtil; import org.agmip.util.MapUtil; import org.ju...
package ualberta.g12.adventurecreator.views; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Random; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; ...
package com.twelvemonkeys.imageio.plugins.jmagick; import javax.imageio.stream.ImageInputStream; import java.io.IOException; /** * TargaImageReaderSpi * * @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a> * @version $Id: TargaImageReaderSpi.java,v 1.1 2003/12/02 16:45:00 wmhakur Exp $ */ public class ...
package com.textuality.keybase.lib; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; public class Match { private final JSONObject mComponents; public Match(JSONObject json) throws KeybaseException { try { ...
package org.basex.test.query; import static org.basex.core.Text.*; import static org.junit.Assert.*; import org.basex.core.BaseXException; import org.basex.core.Context; import org.basex.core.Prop; import org.basex.core.cmd.CreateDB; import org.basex.core.cmd.DropDB; import org.basex.core.cmd.Open; import org.basex.cor...
package com.jbooktrader.platform.startup; import com.birosoft.liquid.*; import com.jbooktrader.platform.model.*; import com.jbooktrader.platform.util.*; import javax.swing.*; import javax.swing.plaf.*; import java.io.*; import java.nio.channels.*; /** * Application starter. */ public class JBookTrader { public st...
package net.fortuna.ical4j.model.component; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.SimpleTimeZone; import java.util.TimeZone; import net.fortuna.ical4j.data.CalendarBuilder; import net.fortuna.ical4j.data.ParserException; import net.fortuna.ical4j.model.Calendar; im...
package net.fortuna.ical4j.model.property; import net.fortuna.ical4j.model.CategoryList; import net.fortuna.ical4j.model.Escapable; import net.fortuna.ical4j.model.Parameter; import net.fortuna.ical4j.model.ParameterList; import net.fortuna.ical4j.model.Property; import net.fortuna.ical4j.model.ValidationException; imp...
package com.haulmont.cuba.gui; import com.haulmont.bali.util.ReflectionHelper; import com.haulmont.cuba.core.global.MessageProvider; import com.haulmont.cuba.core.global.MetadataProvider; import com.haulmont.cuba.gui.components.*; import com.haulmont.cuba.gui.config.WindowInfo; import com.haulmont.cuba.gui.data.DataSer...
package uk.org.ngo.squeezer.dialogs; import uk.org.ngo.squeezer.NowPlayingFragment; import uk.org.ngo.squeezer.R; import android.app.Dialog; import android.app.ProgressDialog; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v4.app.Fragment; import android.support.v4.app.Fr...
package org.ihtsdo.otf.mapping.jpa.handlers; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import javax.persistence.EntityManager; import org.apache.log4j.Logger; import org.ihtsdo.otf.mapping.h...
package com.matthewtamlin.spyglass.library.default_annotations; import com.matthewtamlin.spyglass.library.core.Supplier; import com.matthewtamlin.spyglass.library.meta_annotations.Default; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import...
package org.tigris.subversion.client; import java.io.File; import java.io.OutputStream; import java.util.List; import org.tigris.subversion.SubversionException; import org.tigris.subversion.auth.AuthProvider; import org.tigris.subversion.opt.OptRevision; import org.tigris.subversion.wc.Notifier; /** * The methods of t...
package bisq.cli; import bisq.proto.grpc.TxFeeRateInfo; import com.google.common.annotations.VisibleForTesting; import java.text.DecimalFormat; import java.text.NumberFormat; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Locale; import static java.lang.String.format; @VisibleForTesting pu...
package edu.vu.isis.ammo.core; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Timer; import java.util.TimerTask; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import transapps.settings.Keys; import transapps.settings.Settings; import androi...
package digitalseraphim.tcgc.client.render; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.AxisAlignedBB; import net.min...
package com.haulmont.cuba.web; import com.haulmont.cuba.gui.components.Action; import com.haulmont.cuba.gui.components.IFrame; import com.haulmont.cuba.gui.components.Window; import com.haulmont.cuba.gui.data.DataService; import com.haulmont.cuba.gui.data.impl.GenericDataService; import com.haulmont.cuba.gui.xml.layout...
package org.opendaylight.controller.switchmanager; import java.io.Serializable; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.List; import java.util.Set; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; im...
package com.squareup.spoon; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.os.Build; import android.os.Looper; import android.util.Log; import android.view.View; import java.io.BufferedInputStream; import java.io.BufferedOutput...
package edu.washington.escience.myria.operator; import static org.junit.Assert.assertEquals; import java.nio.file.Paths; import org.junit.Test; import com.google.common.collect.ImmutableList; import edu.washington.escience.myria.DbException; import edu.washington.escience.myria.Schema; import edu.washington.escience.my...
package de.factoryfx.factory.datastorage.oracle; import de.factoryfx.factory.FactoryBase; import de.factoryfx.factory.datastorage.FactorySerialisationManager; import de.factoryfx.factory.datastorage.StoredFactoryMetadata; import java.sql.*; import java.util.ArrayList; import java.util.Collection; import java.util.funct...
package org.eclipse.mylyn.internal.tasks.ui.wizards; import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.jface.wizard.IWizardPage; import org.eclipse.jface.wizard.WizardPage; import org.eclipse.mylyn.internal.tasks.core.LocalAttachment; import org.eclipse.mylyn.internal.tasks.ui.TaskListColorsAndFonts; ...
package org.lamport.tla.toolbox.tool.prover.ui.view; import java.util.HashMap; import org.eclipse.core.resources.IMarker; import org.eclipse.core.runtime.Assert; import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.resource.JFaceResources; import org.eclipse.jface.text.Document; import org.eclipse.jf...
package org.opencms.gwt.client.ui; import org.opencms.db.CmsResourceState; import org.opencms.gwt.client.CmsCoreProvider; import org.opencms.gwt.client.Messages; import org.opencms.gwt.client.ui.I_CmsButton.ButtonStyle; import org.opencms.gwt.client.ui.I_CmsButton.Size; import org.opencms.gwt.client.ui.css.I_CmsInputLa...
package org.metaborg.spoofax.core.language; import java.io.IOException; import java.util.Collection; import java.util.Map; import java.util.Map.Entry; import javax.annotation.Nullable; import org.apache.commons.vfs2.FileName; import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.FileSelectInfo; impo...
package org.pocketcampus.plugin.freeroom.shared.utils; import java.util.Calendar; import org.pocketcampus.platform.sdk.shared.utils.Utils; import org.pocketcampus.plugin.freeroom.shared.FRPeriod; import org.pocketcampus.plugin.freeroom.shared.FreeRoomRequest; public class TimesUtils { /** * Round to the neares...
package com.redhat.ceylon.eclipse.code.refactor; import static com.redhat.ceylon.eclipse.code.editor.EditorUtil.getSelection; import static com.redhat.ceylon.eclipse.util.Indents.getDefaultIndent; import static com.redhat.ceylon.eclipse.util.Indents.getDefaultLineDelimiter; import static com.redhat.ceylon.eclipse.util....
package com.redhat.ceylon.eclipse.core.model; import java.io.File; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import org.antlr.runtime.CommonTokenStream; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.Co...
package cx2x.translator; // Cx2x import import cx2x.translator.common.Constant; import cx2x.translator.common.GroupConfiguration; import cx2x.translator.common.topology.DirectedGraph; import cx2x.translator.common.topology.TopologicalSort; import cx2x.translator.language.ClawLanguage; import cx2x.translator.language.he...
package cx2x.translator.language; import cx2x.translator.language.helper.accelerator.AcceleratorDirective; import cx2x.xcodeml.exception.IllegalDirectiveException; import cx2x.xcodeml.language.AnalyzedPragma; import cx2x.xcodeml.xelement.Xpragma; import org.antlr.v4.runtime.ANTLRInputStream; import org.antlr.v4.runtime...
package math; public class MultiplyStrings { public String multiply(String num1, String num2) { int l1 = num1.length(), l2 = num2.length(); StringBuilder tmp1 = new StringBuilder(num1).reverse(); StringBuilder tmp2 = new StringBuilder(num2).reverse(); int l = l1 + l2; int[] r...
package me.com.patterns; import me.com.patterns.abstructfactory.CarFactory; import me.com.patterns.abstructfactory.Q3Factory; import me.com.patterns.abstructfactory.Q7Factory; import me.com.patterns.builder.NutritionFacts; import me.com.patterns.command.*; import me.com.patterns.factory.*; import me.com.patterns.chaino...
package algorithms.imageProcessing.transform; import algorithms.matrix.MatrixUtil; import algorithms.util.FormatArray; import java.util.Arrays; import junit.framework.TestCase; import org.junit.Test; /** * * @author nichole */ public class TriangulationTest extends TestCase { public TriangulationTest() { } ...
package net.runelite.client.plugins.cluescrolls.clues.hotcold; import java.awt.Rectangle; import java.awt.geom.Rectangle2D; import lombok.AllArgsConstructor; import lombok.Getter; import net.runelite.api.coords.WorldPoint; import static net.runelite.client.plugins.cluescrolls.clues.hotcold.HotColdArea.ASGARNIA; import ...
package dk.statsbiblioteket.medieplatform.autonomous; import dk.statsbiblioteket.doms.central.summasearch.SearchWS; import dk.statsbiblioteket.doms.central.summasearch.SearchWSService; import dk.statsbiblioteket.util.xml.DOM; import dk.statsbiblioteket.util.xml.XPathSelector; import net.sf.json.JSONObject; import org.s...
package org.jetbrains.plugins.scala.base; import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import com.intellij.openapi.projectRoots.Sdk; import com.intellij.openapi.util.text.StringUti...
package org.voltdb.client; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concu...
package org.slc.sli.ingestion.transformation; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.beanutils.PropertyUtils; import org.slc.sli.domain.Entity; import org.slc.sli.domain.EntityMetadataKey; import org.slc.sli.domain.NeutralQuery; imp...
package edu.hu.clickwatch.actions; import java.io.File; import java.io.FileInputStream; import java.net.InetAddress; import java.util.ArrayList; import java.util.List; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.util.EcoreUtil; import org.eclipse....
package erogenousbeef.core.multiblock; import java.util.LinkedList; import java.util.List; import java.util.Queue; import cpw.mods.fml.common.network.PacketDispatcher; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import erogenousbeef.core.common.CoordTriplet; import net.minecraft.entity...
package replicant; import arez.component.RepositoryUtil; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Objects; import javax.annotation.Nonnull; import javax.annota...
import javax.swing.*; public class RandomSkyline { /** * Creates a frame "RandomSkyline"and adds RandomSkylinePanel to it. Presents a collection of buildings. * @param args A string array containing the command line * arguments * @exception Any exception * @return No return */ public stati...
package fi.nls.oskari.util; import com.github.kevinsawicki.http.HttpRequest; import fi.nls.oskari.log.LogFactory; import fi.nls.oskari.log.Logger; import org.apache.commons.codec.binary.Base64; import javax.net.ssl.*; import java.io.*; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; ...
package com.zrlog.service; import com.hibegin.common.util.IOUtil; import com.hibegin.common.util.SecurityUtils; import com.jfinal.kit.PathKit; import com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException; import com.zrlog.common.Constants; import com.zrlog.common.type.TestConnectDbResult; import com.zrlog.common.vo...
package boundary.Score; import entity.Score; import java.util.List; import javax.ejb.Stateless; import javax.persistence.CacheStoreMode; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; /** * * @author Utilisateur */ @Stateless public class ScoreResource { @PersistenceContext ...
package boundary.Score; import entity.Question; import entity.Score; import java.util.List; import javax.ejb.Stateless; import javax.persistence.CacheStoreMode; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; @Stateless public class ScoreResource { @PersistenceContext Entity...
package ge.edu.freeuni.sdp.snake.view; public interface LevelView extends View { public void showDescription(String description); }
package org.jfree.chart.annotations.junit; import java.awt.BasicStroke; import java.awt.Color; import java.awt.GradientPaint; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInput; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputS...
import org.junit.Test; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertFalse; public class NumberPersonalitiesTest { @Test public void testThatIsPrimeReturnsTrueForPrimeNumber () { assertTrue(NumberPersonalities.isPrime(2)); } @Test public void testThatIsPrimeReturnsFalseFo...
package org.exist.ant; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.xmldb.api.DatabaseManager; import org.xmldb.api.base.Collection; import org.xmldb.api.base.Resource; import org.xmldb.api.base.XMLDBException; import org.xmldb.api.modules.XMLResource; import org.exist.uti...
package de.factoryfx.factory; import java.util.*; import java.util.function.BiConsumer; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Supplier; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxm...
package org.basinmc.faucet.event; import edu.umd.cs.findbugs.annotations.NonNull; import java.util.function.Consumer; /** * Provides an event management system which will automatically post events to all registered * listeners. */ public interface EventBus { /** * Posts an event to the event bus. Each handler c...
package com.npaduch.reminder; import android.content.res.Configuration; import android.os.Bundle; import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentTransaction; import android.support.v4.widg...
package motocitizen.Activity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.ActionBarActivity; import android.text.method.LinkMovementMethod; import android.view.Menu; import android.view.View; import androi...
package mille.bean; public abstract class HazardCard extends Card { public HazardCard(String name, CardImage image) { super(name, image); } } public abstract class RemedyCard extends Card { public RemedyCard(String name, CardImage image) { super(name, image); } } public abstract ...
package mille.bean; import java.util.ArrayList; import java.lang.Character; import org.lwjgl.LWJGLException; import org.lwjgl.input.Keyboard; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.DisplayMode; public class MilleBean { /** * @param args the command line arguments */ public static voi...
package com.rewayaat; import com.jcraft.jsch.Channel; import com.jcraft.jsch.ChannelSftp; import com.jcraft.jsch.JSch; import com.jcraft.jsch.Session; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; import com.rewayaat.config.ClientProvider; import org.apache.commons.io.FileUtils;...
package cpw.mods.fml.common.discovery; import java.util.Collections; import java.util.List; import java.util.logging.Level; import java.util.regex.Matcher; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import com.google.common.collect.Lists; import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.L...
package uk.org.ponder.rsf.template; import java.util.HashMap; import java.util.Iterator; import uk.org.ponder.stringutil.CharWrap; /** Maintains a Map of String IDs to XMLLumpList. * * @author Antranig Basman (antranig@caret.cam.ac.uk) */ public class XMLLumpMMap { private HashMap idtolumps = new HashMap(8); pub...
package org.voovan.network; import org.voovan.Global; import org.voovan.network.exception.ReadMessageException; import org.voovan.network.exception.SendMessageException; import org.voovan.network.handler.SynchronousHandler; import org.voovan.network.udp.UdpSocket; import org.voovan.tools.ByteBufferChannel; import org.v...
package com.exedio.cope; import java.sql.SQLException; import org.postgresql.Driver; import com.exedio.dsmf.PostgresqlDriver; /** * Still does not work. */ final class PostgresqlDatabase extends Database { static { try { Class.forName(Driver.class.getName()); } catc...
package com.intellij.psi.formatter.xml; import com.intellij.codeFormatting.general.FormatterUtil; import com.intellij.formatting.*; import com.intellij.lang.ASTNode; import com.intellij.lang.Language; import com.intellij.lang.StdLanguages; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.util....
package com.asafge.newsblurplus; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.content.Context; import com.noinnion.android.reader.api.ReaderException; import com.noinnion.android.reader....
package net.fortuna.ical4j.model.property; import java.util.StringTokenizer; import net.fortuna.ical4j.model.Parameter; import net.fortuna.ical4j.model.ParameterList; import net.fortuna.ical4j.model.Property; import net.fortuna.ical4j.model.ValidationException; import net.fortuna.ical4j.util.ParameterValidator; /** * ...
package ru.stqa.pft.sandbox; public class MyFirstProgram { public static void main(String[] args) { hello("world"); hello("user"); hello("Andrey"); double l = 5; System.out.println("Площадь квадрата со стороной " + l + " = " + area(l)); double a = 4; double b = 6; System.out.println("П...
package com.stanfy.images; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.util.ArrayList; import java.util.List; import java.util.concurrent...
package org.jasig.portal.layout; import java.util.Enumeration; import java.util.Hashtable; import java.util.Collection; import java.util.Vector; import java.util.Iterator; import org.jasig.portal.groups.IGroupMember; import org.jasig.portal.IUserLayoutStore; import org.jasig.portal.PortalException; import org.jasig.por...
package ru.stqa.pft.sandbox; public class MyFirstProgram { public static void main(String[] args) { hello("world"); hello ("user"); hello("Alexei"); double l=5; System.out.println("Площадь квадрата со стороной "+l+" = " +area(l)); double a=4; double b=6; ...
// Sep 14, 2000: // Fixed comments to preserve whitespaces and add a line break // when indenting. Reported by Gervase Markham <GRM@dataconnection.com> // Sep 14, 2000: // Fixed serializer to report IO exception directly, instead at // the end of document processing. // Reported by Patrick Higgins <phiggins@transz...
package com.jme3.renderer.jogl; import com.jme3.light.LightList; import com.jme3.material.RenderState; import com.jme3.math.ColorRGBA; import com.jme3.math.FastMath; import com.jme3.math.Matrix4f; import com.jme3.renderer.Caps; import com.jme3.renderer.IDList; import com.jme3.renderer.RenderContext; import com.jme3.ren...
package uk.ac.ox.zoo.seeg.abraid.mp.dataacquisition.weightings; import ch.lambdaj.function.convert.Converter; import org.apache.log4j.Logger; import org.hamcrest.core.IsEqual; import org.joda.time.LocalDate; import org.joda.time.LocalDateTime; import org.springframework.transaction.annotation.Transactional; import uk.a...
package org.jivesoftware.smackx; import java.util.*; import org.jivesoftware.smack.*; import org.jivesoftware.smack.filter.*; import org.jivesoftware.smack.packet.*; import org.jivesoftware.smackx.packet.*; /** * Manages discovery of services in XMPP entities. This class provides: * <ol> * <li>A registry of supporte...
package org.apache.batik.ext.awt; import java.awt.*; import java.awt.geom.*; import java.awt.image.*; /** This is the superclass for Paints which use a multiple color * gradient to fill in their raster. It provides storage for variables and * enumerated values common to LinearGradientPaint and RadialGradientPaint. ...