answer
stringlengths
17
10.2M
package uk.org.adamretter.maven; import io.xspec.maven.xspecMavenPlugin.resolver.Resolver; import io.xspec.maven.xspecMavenPlugin.utils.ProcessedFile; import io.xspec.maven.xspecMavenPlugin.utils.XmlStuff; import net.sf.saxon.s9api.*; import com.jenitennison.xslt.tests.XSLTCoverageTraceListener; import org.apache.maven...
package vg.civcraft.mc.civmodcore; import java.io.ObjectInputFilter.Config; import java.util.List; import java.util.logging.Level; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.configuration.serialization.ConfigurationSerialization; import org.bukkit.event.Listener; impor...
package se.hiflyer.fettle; /** * A view of a state machine from a users perspective, i.e it is immutable and already set up. * * @param <S> the type of the states * @param <E> the type of the events that can trigger state changes */ public interface StateMachine<S, E> { /** * Gets the current state of the...
package objektwerks; import org.junit.jupiter.api.Test; import java.util.List; class LoopTest { @Test void forTest() { int[] xs = {1, 2, 3}; int sum = 0; for(int i = 0; i < xs.length; i++) { sum += xs[i]; } assert(sum == 6); } @Test void enhancedForTest() { ...
package thinwire.ui.layout; import java.util.List; import java.util.logging.Logger; import thinwire.ui.Component; import thinwire.ui.layout.TableLayout.Limit.Justify; /** * @author Joshua J. Gertzen * @author Ted C. Howard */ public final class TableLayout extends AbstractLayout { private static final Logger log...
package org.akvo.rsr.up.util; /** * Class to hold all public constants used in the application * * @author Stellan Lagerstroem * */ public class ConstantUtil { /** * server and API constants */ public static final String TEST_HOST = "http://rsr.uat.akvo.org"; public static final String LIVE_H...
package com.horcrux.svg; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PathMeasure; import android.graphics.PointF; import android.graphics.RectF; import android.graphics.Typeface; import com.facebook.react.bridge.Rea...
package gov.nih.nci.security.dao; import gov.nih.nci.security.authorization.domainobjects.*; import gov.nih.nci.security.util.*; import java.util.Collection; import java.util.Iterator; import gov.nih.nci.security.authorization.jaas.*; import gov.nih.nci.security.dao.hibernate.HibernateSessionFactory; import gov.nih.nci...
package controller; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.sql.SQLException; import java.util.Enumeration; import java.util.Hashtable; import javax.swing.JButton; import javax.swing.JTextField; import jav...
package ch.unizh.ini.caviar.eventprocessing.tracking; //import ch.unizh.ini.caviar.aemonitor.AEConstants; import ch.unizh.ini.caviar.chip.*; import ch.unizh.ini.caviar.eventprocessing.EventFilter2D; import ch.unizh.ini.caviar.event.*; import ch.unizh.ini.caviar.event.EventPacket; import ch.unizh.ini.caviar.graphics.*; ...
// checkstyle: Checks Java source code for adherence to a set of rules. // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...
package edu.psu.rcy5017.publicspeakingassistant; import edu.psu.rcy501.publicspeakingassistant.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.Window; public class SplashScreenActivity extends Activity { ...
package eu.bryants.anthony.plinth.compiler.passes.llvm; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.util.HashMap; import java.util.Map; import java.util.Set; import nativelib.c.C; import nativelib.llvm.LLVM; import nativelib.llvm.LLVM.LLVMBasicBlockRef; import nativelib.llvm.LL...
package gov.nih.nci.caintegrator.application.analysis; import gov.nih.nci.caintegrator.analysis.messaging.DataPoint; import gov.nih.nci.caintegrator.analysis.messaging.DataPointVector; import gov.nih.nci.caintegrator.analysis.messaging.ExpressionLookupRequest; import gov.nih.nci.caintegrator.analysis.messaging.Reporter...
package co.phoenixlab.discord.commands.dn; import co.phoenixlab.common.lang.number.ParseInt; import co.phoenixlab.common.localization.Localizer; import co.phoenixlab.discord.Command; import co.phoenixlab.discord.MessageContext; import co.phoenixlab.discord.api.DiscordApiClient; import co.phoenixlab.discord.api.entities...
package com.arckenver.mightyloot.listener; import java.util.ArrayList; import org.spongepowered.api.entity.living.player.Player; import org.spongepowered.api.event.Listener; import org.spongepowered.api.event.block.InteractBlockEvent; import org.spongepowered.api.event.filter.cause.First; import org.spongepowered.api.t...
package com.brohoof.minelittlepony.model.part; import com.brohoof.minelittlepony.PonyData; import com.brohoof.minelittlepony.model.AbstractPonyModel; import com.brohoof.minelittlepony.model.BodyPart; import com.brohoof.minelittlepony.model.PonyModelConstants; import net.minecraft.client.model.ModelRenderer; import net....
package com.cultofbits.elasticsearch.metrics; import com.codahale.metrics.Gauge; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.SharedMetricRegistries; import org.elasticsearch.action.admin.cluster.node.stats.NodeStats; import org.elasticsearch.action.support.IndicesOptions; import org.elastics...
package com.dreaminsteam.rpbot.commands; import com.dreaminsteam.rpbot.db.DatabaseUtil; import com.dreaminsteam.rpbot.db.models.Player; import de.btobastian.sdcf4j.Command; import de.btobastian.sdcf4j.CommandExecutor; import sx.blah.discord.api.IDiscordClient; import sx.blah.discord.handle.obj.IChannel; import sx.blah....
package com.goodformentertainment.canary.xis; import net.canarymod.Canary; import net.canarymod.api.world.DimensionType; import net.canarymod.api.world.World; import net.canarymod.api.world.WorldManager; import net.canarymod.api.world.WorldType; import net.canarymod.api.world.position.Location; import net.canarymod.con...
package com.insightng.backup; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.GZIPOutputStream; import org.openrdf.repository.Repository; import org.openrdf.r...
package com.lothrazar.cyclicmagic.event; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileenti...
package com.royalrangers.configuration.bootstrap; import com.esotericsoftware.yamlbeans.YamlReader; import com.royalrangers.dto.user.UserRegistrationDto; import com.royalrangers.enums.AuthorityName; import com.royalrangers.enums.UserAgeGroup; import com.royalrangers.model.Authority; import com.royalrangers.model.Countr...
package com.tikal.jenkins.plugins.multijob; import java.io.IOException; import java.util.Map; import hudson.Extension; import hudson.model.DependencyGraph; import hudson.model.ItemGroup; import hudson.model.TopLevelItem; import hudson.model.Hudson; import hudson.model.Project; import hudson.scm.SCM; import hudson.trigg...
package crazypants.enderio.integration.tic; import java.util.List; import org.apache.commons.lang3.StringUtils; import crazypants.enderio.material.PowderIngot; import crazypants.util.Things; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.nbt....
package eu.over9000.skadi.notification; import java.awt.AWTException; import java.awt.Image; import java.awt.SystemTray; import java.awt.TrayIcon; import java.awt.TrayIcon.MessageType; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import javax.imageio.ImageIO; import ...
package hudson.plugins.analysis.core; import java.io.IOException; import hudson.Launcher; import hudson.matrix.MatrixAggregator; import hudson.matrix.MatrixRun; import hudson.matrix.MatrixBuild; import hudson.model.Action; import hudson.model.BuildListener; /** * Aggregates {@link AbstractResultAction}s of {@link Matr...
package io.domisum.lib.auxiliumlib.util.file; import io.domisum.lib.auxiliumlib.PHR; import io.domisum.lib.auxiliumlib.annotations.API; import io.domisum.lib.auxiliumlib.util.file.FileUtil.FileType; import io.domisum.lib.auxiliumlib.util.file.filter.FileFilter; import lombok.AccessLevel; import lombok.RequiredArgsConst...
package joshie.enchiridion.gui.book.features; import com.google.gson.JsonObject; import joshie.enchiridion.api.EnchiridionAPI; import joshie.enchiridion.api.book.IButtonAction; import joshie.enchiridion.api.book.IButtonActionProvider; import joshie.enchiridion.gui.book.GuiSimpleEditor; import joshie.enchiridion.gui.boo...
package jp.crafterkina.pipes.common.item; import net.minecraft.client.resources.I18n; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.IMerchant; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemS...
package me.deftware.mixin.mixins.render; import com.mojang.blaze3d.platform.GlStateManager; import com.mojang.blaze3d.systems.RenderSystem; import me.deftware.client.framework.FrameworkConstants; import me.deftware.client.framework.chat.ChatMessage; import me.deftware.client.framework.event.events.EventWeather; import ...
package net.geforcemods.securitycraft; import com.mojang.blaze3d.platform.Window; import com.mojang.blaze3d.systems.RenderSystem; import com.mojang.blaze3d.vertex.PoseStack; import net.geforcemods.securitycraft.api.IExplosive; import net.geforcemods.securitycraft.blockentities.SecurityCameraBlockEntity; import net.gefo...
package net.openhft.chronicle.map.internal; import net.openhft.chronicle.core.analytics.AnalyticsFacade; import net.openhft.chronicle.core.pom.PomProperties; public enum AnalyticsHolder {; // Todo: VERSION is "unknown" for some reason private static final String VERSION = PomProperties.version("net.openhft", "c...
package org.cboard.elasticsearch; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONPath; import com.google.common.base.Charsets; import com.google.common.hash.Hashing; import org.apache.commons.collections.keyvalue.DefaultMa...
package org.fiteagle.north.sfa.am.allocate; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.nio.charset.Charset; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Link...
package io.rong; import io.rong.models.ChatroomInfo; import io.rong.models.FormatType; import io.rong.models.GroupInfo; import io.rong.models.Message; import io.rong.models.SdkHttpResult; import io.rong.util.HttpUtil; import java.net.HttpURLConnection; import java.net.URLEncoder; import java.util.List; public class Api...
package jade.lang.sl; import java.io.StringReader; import jade.lang.Codec; import jade.onto.Frame; import jade.onto.Ontology; import jade.onto.basic.BasicOntologyVocabulary; import java.util.List; public class SL0Codec implements Codec { /** A symbolic constant, containing the name of this language. */ public...
package org.sagebionetworks.bridge.exporter; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; import java.util.UUID; i...
package reborncore.client.multiblock; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.renderer.*; import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.client.renderer.vertex.Defau...
package reciter.database.oracle.impl; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import org.slf4j.Logger; import o...
// JSFunction.java package ed.js; import ed.util.*; import ed.js.engine.Scope; public abstract class JSFunction extends JSFunctionBase { static { JS._debugSIStart( "JSFunction" ); } public static final String TO_STRING_PREFIX = "JSFunction : "; public JSFunction( int num ){ this( null , ...
/** * Each new term in the Fibonacci sequence is generated by adding the previous two terms. * By starting with 1 and 2, the first 10 terms will be:1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... * <p> * By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the * even-v...
package app.gui; import app.App; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class GUI extends JFrame implements ActionListener { private JButton equalsButton; private JButton plusButton; private JButton minusButton; private JButton multiplyButton; private JButton divide...
package com.ai; import joptsimple.OptionParser; import joptsimple.OptionSet; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.springframework.boot.SpringApplication; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Itera...
package org.sagebionetworks.bridge.services; import static com.amazonaws.services.s3.Headers.SERVER_SIDE_ENCRYPTION; import static com.amazonaws.services.s3.model.ObjectMetadata.AES_256_SERVER_SIDE_ENCRYPTION; import static com.google.common.base.Preconditions.checkNotNull; import javax.annotation.Nonnull; import javax...
package net.java.sip.communicator.impl.contactlist; import java.io.*; import java.util.*; import javax.xml.parsers.*; import net.java.sip.communicator.service.contactlist.*; import net.java.sip.communicator.service.contactlist.event.*; import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicato...
package net.java.sip.communicator.service.gui; import java.lang.ref.*; import java.util.*; /** * The <tt>PluginComponentFactory</tt> is the factory that will be used by the * <tt>PluginComponents</tt> to register in OSGI bundle context and will be * used by containers of the plugins to create Plugin component instan...
package net.yeputons.ofeed.web.dmanager; import android.support.annotation.NonNull; import android.util.Log; import net.yeputons.ofeed.web.DownloadCompleteListener; import net.yeputons.ofeed.web.ResourceDownload; import net.yeputons.ofeed.web.ResourceToFileDownloader; import net.yeputons.ofeed.web.WebResource; import j...
/* * @author <a href="mailto:novotny@aei.mpg.de">Jason Novotny</a> * @version $Id$ */ package org.gridlab.gridsphere.portlets.core.file; import org.gridlab.gridsphere.portlet.*; import org.gridlab.gridsphere.portlet.service.PortletServiceException; import org.gridlab.gridsphere.provider.event.FormEvent; import org.g...
package org.jitsi.impl.neomedia.transform.dtls; import java.io.*; import java.security.*; import org.bouncycastle.crypto.tls.*; import org.ice4j.ice.*; import org.jitsi.impl.neomedia.*; import org.jitsi.impl.neomedia.transform.*; import org.jitsi.impl.neomedia.transform.srtp.*; import org.jitsi.service.neomedia.*; impo...
package org.pentaho.di.job.entries.dtdvalidator; import static org.pentaho.di.job.entry.validator.AbstractFileValidator.putVariableSpace; import static org.pentaho.di.job.entry.validator.AndValidator.putValidators; import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.andValidator; import static org.p...
package algorithms.statistics; import algorithms.misc.Histogram; import algorithms.misc.HistogramHolder; import algorithms.misc.MiscMath0; import algorithms.util.FormatArray; import algorithms.util.PolygonAndPointPlotter; import gnu.trove.list.TDoubleList; import gnu.trove.list.array.TDoubleArrayList; import junit.fram...
package co.leantechniques.maven.buildtime; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertNotNull; import static junit.framework.Assert.assertSame; import static org.mockito.Mockito.inOrder; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; im...
package com.jakewharton.trakt.services; import com.jakewharton.trakt.BaseTestCase; import com.jakewharton.trakt.entities.Activity; import static org.fest.assertions.api.Assertions.assertThat; public class ActivityServiceTest extends BaseTestCase { public void test_community() { Activity activity = getManage...
package com.jos.dem.vetlog.service; import com.jos.dem.vetlog.model.RegistrationCode; import com.jos.dem.vetlog.repository.RegistrationCodeRepository; import com.jos.dem.vetlog.service.impl.RegistrationServiceImpl; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.D...
package com.microsoft.rest; import com.microsoft.rest.bat.AutoRestIntegerTestService; import com.microsoft.rest.bat.AutoRestIntegerTestServiceImpl; import junit.framework.Assert; import org.junit.Test; import retrofit.client.Response; public class AutoRestIntegerTestServiceTests { @Test public void GetMaxInt() ...
package de.fernunihagen.dna.jkn.scalephant; import java.util.ArrayList; import java.util.Collections; import java.util.List; import junit.framework.Assert; import org.junit.Test; import de.fernunihagen.dna.jkn.scalephant.storage.entity.BoundingBox; public class TestBoundingBox { /** * Create some invalid bound...
package de.slackspace.openkeepass.domain; import java.io.FileInputStream; import java.io.IOException; import java.nio.BufferUnderflowException; import java.nio.ByteBuffer; import java.util.Arrays; import org.junit.Assert; import org.junit.Test; import de.slackspace.openkeepass.crypto.RandomGenerator; import de.slackspa...
package design_patterns.structural.decorator; import org.junit.*; public class DecoratorTest { @Test public void mainTest() { Coffee c = new SimpleCoffee(); Coffee custom = new Sugar(new Milk(c)); Assert.assertEquals(custom.getIngredients(), "SimpleCoffee, Milk, Sugar"); Assert.assertEquals(custom.g...
package es.ehu.si.ixa.pipe.nerc; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.util.List; import opennlp.tools.util.Span; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertEquals; import es.ehu.si.ixa.pipe.nerc.dict.Dictionaries; public ...
package eu.project.ttc.test.termino.export; import java.io.StringWriter; import java.util.Collection; import java.util.Locale; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import eu.proj...
package ge.edu.freeuni.sdp.arkanoid.model; import ge.edu.freeuni.sdp.arkanoid.model.geometry.Point; import ge.edu.freeuni.sdp.arkanoid.model.geometry.Rectangle; import org.junit.Before; import org.junit.Test; import org.mockito.MockitoAnnotations; import org.mockito.Mock; import java.util.ArrayList; import static org.j...
package hudson.plugins.cobertura.targets; import junit.framework.TestCase; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; public class CoveragePaintTest extends TestCase { public CoveragePaintTest(String string) { ...
package jp.ac.tsukuba.cs.kde.hfukuda.lemma_finder; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Optional; import org.junit.BeforeClass; import org.junit.Test; import net.didion.jwnl.JWNLEx...
package mho.qbar.iterableProviders; import mho.qbar.objects.Interval; import mho.qbar.objects.Rational; import mho.qbar.objects.Variable; import mho.qbar.testing.QBarDemos; import mho.wheels.structures.Pair; import mho.wheels.structures.Triple; import java.util.List; import static mho.wheels.iterables.IterableUtils.fil...
package org.animotron.games.web; import org.animotron.ATest; import org.animotron.expression.Expression; import org.animotron.expression.JExpression; import org.animotron.statement.compare.WITH; import org.animotron.statement.query.ANY; import org.animotron.statement.query.GET; import org.animotron.statement.relation.U...
package org.jitsi.meet.test.pageobjects.web; import org.jitsi.meet.test.util.*; import org.jitsi.meet.test.web.*; import org.openqa.selenium.*; import org.openqa.selenium.support.ui.*; import java.util.*; public class SettingsDialog { /** * Selectors to be used for finding WebElements within the * {@link ...
package org.makersoft.shards.unit.persistence; import java.util.List; import junit.framework.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.makersoft.shards.domain.User; import org.makersoft.shards.mapper.UserDao; import org.springframework.beans.factory.annotation.Autowired; import org.spri...
package org.rundeck.api.parser; import org.dom4j.Document; import org.junit.Assert; import org.junit.Test; import org.rundeck.api.domain.*; import java.io.InputStream; import java.util.Arrays; import java.util.HashSet; import java.util.List; public class WorkflowStepStateParserTest { @Test public void testParse...
package org.sinmetal.controller; import org.slim3.tester.*; import com.google.appengine.tools.development.testing.*; /** * UnitTestControllerTestCase * * @author sinmetal * */ public abstract class AbstructControllerTestCase extends ControllerTestCase { LocalServiceTestHelper helper; @Override public v...
package hr.fer.zemris.vhdllab.applets.simulations; import java.awt.Dimension; import java.awt.Graphics; import java.util.Arrays; import javax.swing.JPanel; /** * Skala uzima vrijednosti koje generira VcdParser i vrsi sve proracune kod * event-hendlanja. Prilikom svakog povecanja proracunava trajanje valnih * oblika...
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQu...
package com.example.baard; import android.app.ActionBar; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.graphics.Typeface; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; impor...
package com.james.status.data.icon; import android.content.Context; import android.content.IntentFilter; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android....
package com.kickstarter.services; import com.kickstarter.models.Project; import com.kickstarter.services.ApiResponses.AccessTokenEnvelope; import com.kickstarter.services.ApiResponses.ActivityEnvelope; import com.kickstarter.services.ApiResponses.CommentEnvelope; import com.kickstarter.services.ApiResponses.DiscoverEnv...
package com.marverenic.music.instances; import android.content.Context; import android.content.res.Resources; import android.database.Cursor; import android.os.Parcel; import android.os.Parcelable; import android.provider.MediaStore; import android.support.annotation.NonNull; import com.marverenic.music.R; import com.m...
package com.wisape.android.logic; import android.content.Context; import android.content.SharedPreferences; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; import android.os.Message; import android.util.Log; import com.j256.ormlite.android.apptools.OpenHelperManager; import com.j256.ormlite.dao.D...
package dwai.textmessagebrowser; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.telephony.SmsMessage; import android.util.Log; import android.webkit.WebView; import android.widget...
package fi.jyu.ln.luontonurkka; import android.*; import android.app.Activity; import android.content.pm.PackageManager; import android.location.Location; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v4.app.FragmentActivity; import android.os.Bundle; im...
package io.github.aectann.fitwater; import android.app.Application; import dagger.ObjectGraph; import timber.log.Timber; public class FitWater extends Application { private ObjectGraph objectGraph; @Override public void onCreate() { if (BuildConfig.DEBUG) { Timber.plant(new Timber.DebugTree()); } el...
package jp.blanktar.ruumusic; import java.io.File; import java.util.Timer; import java.util.TimerTask; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import android.content....
package org.redcross.openmapkit; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; ...
package uk.ac.tees.donut.squad; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import uk.ac.tees.donut.squad.squads.Interest; import uk.ac.tees.donut.squad.squads.Squad; import uk.ac.tees.donut.squad.users...
public class Board { public int space; public String[] cards = {"Everthing seems quiet, that's strange....", "Time to take a rest....", "Fight the odd battle.", "This, I daresay, is quite strange...." } public String[] special = {"Ooh, a dragon!", "Hide!", "Ooh boy."} public void start() { space = 1...
package com.axelor.db; import java.util.Arrays; import java.util.List; import java.util.Map; import javax.persistence.EntityManager; import com.axelor.db.mapper.Mapper; import com.axelor.db.mapper.Property; import com.axelor.inject.Beans; public class JpaRepository<T extends Model> implements Repository<T> { protec...
package com.axelor.mail; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.PasswordAuthentication; import javax.mail.Session; import com.axelor.common.StringUtils; import com.google.common.base.Preconditions; /** * The default implementation of {@link MailAccount} for SMPT accounts. * *...
package afc.ant.modular; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import org.apache.tools.ant.MagicNames; import org.apache.tools.ant.Project; import junit.framework.Assert; public class TestUtil { pub...
package net.gogo98901.ox; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Cursor; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import...
package com.ecyrd.jspwiki; import java.util.Properties; import javax.servlet.*; import java.io.*; /** * Simple test engine that always assumes pages are found. */ public class TestEngine extends WikiEngine { public TestEngine( Properties props ) throws NoRequiredPropertyException, ServletE...
package org.basex.query.fs; import java.io.IOException; import org.basex.core.Context; import org.basex.data.Data; import org.basex.io.PrintOutput; import org.basex.util.GetOpts; public final class RM { /** Data reference. */ private final Context context; /** current dir. */ private int curDirPre; /** PrintO...
package org.clapper.curn; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.Enumeration; import java.util.LinkedList; import java.util.LinkedHashMap; import...
package org.exist.xquery; import org.apache.log4j.Logger; import org.exist.xquery.util.ExpressionDumper; import org.exist.xquery.value.Item; import org.exist.xquery.value.Sequence; import org.exist.xquery.value.Type; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; public abstract class Step ext...
/* * $Id: Tdb.java,v 1.11 2010-08-15 13:23:40 pgust Exp $ */ package org.lockss.config; import java.io.*; import java.util.*; import org.lockss.util.*; /** * This class represents a title database (TDB). The TDB consists of * hierarchy of <code>TdbPublisher</code>s, and <code>TdbAu</code>s. * Special indexing pr...
package org.mapyrus; import java.util.ArrayList; import java.util.HashMap; /** * A parsed statement. * Can be one of several types. A conditional statement, * a block of statements making a procedure or just a plain command. */ public class Statement { /* * Possible types of statements. */ public...
public class RBTree<E extends Comparable<E>> { private int size = 0; private RBTreeNode<E> root; public RBTree(){ } public boolean isEmpty() { return size == 0; } public void setRoot(RBTreeNode<E> node){ root = node; } /** * Metodi getRoot palauttaa puun juuren * @author * @return puu...
package process; import javafx.util.Pair; import java.util.ArrayList; // Pour chaque feature (ce que j'ai compris...) public class DecisionStump { private double threshold; private int dim; private boolean toggle; private double error; private double margin; private double W1plus; private do...
package src.controller; import java.util.ArrayList; import src.model.MapEntity_Relation; import java.io.Serializable; /** * * @author JohnReedLOL */ abstract public class Entity extends DrawableThing implements Serializable { // Converts an entity's name [which must be unique] into a unique base 35 number pr...
package stray.util; import com.badlogic.gdx.math.MathUtils; public class MathHelper { private MathHelper() { }; public static double getScaleFactor(float iMasterSize, float iTargetSize) { double dScale = 1; if (iMasterSize > iTargetSize) { dScale = (double) iTargetSize / (double)...
package tankattack; import javafx.animation.*; import javafx.application.*; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.geometry.*; import javafx.scene.*; import javafx.scene.control.*; import javafx.scene.effect.*; import javafx.scene.image.*; import javafx.scene.layout.*; import j...
import implementation.PhaseOneImpl; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import static org.hamcrest.CoreMatchers.instanceOf; /** * implementation.PhaseOneImpl Tester. * * @author Group4 * @version 1.0 * @since <pre>Jan 30, 2017</pre> */ public class Phas...