answer
stringlengths
17
10.2M
package org.osiam.client.minimalUser; import java.util.Date; import org.osiam.resources.helper.JsonDateSerializer; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonSerialize; /** * represents the bas...
package org.owasp.esapi.filters; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; i...
package org.powertac.server; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.Session; import javax.jms.TextMessage; import org.apache.log4j.Logger; import org.powertac.common.Broker; import org.powertac.common.XMLM...
package org.redline_rpm; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.ReadableByteChannel; /** * Wrapper for observing data read from a NIO channel. This wrapper is * used for operations that must be notified of incoming IO data. */ public class ReadableChannelWrapper extends Chan...
package org.shmztko.recorder; import java.util.List; import java.util.logging.Logger; import org.shmztko.accessor.PageAccessor; import org.shmztko.accessor.RemotePageAccessor; import org.shmztko.common.LogFactory; import org.shmztko.model.Award; import org.shmztko.model.Record; import org.shmztko.model.Statistic; impor...
package org.spongepowered.api.text.title; import com.google.common.base.Objects; import org.spongepowered.api.text.Text; import java.util.Optional; import javax.annotation.Nullable; /** * Represents an immutable configuration for an in-game title. Instances of this * interface can be created through the {@link Builde...
package pl.domzal.junit.docker.rule; import java.io.IOException; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.apache.commons.lang.StringUtils; import org.junit.Rule; import org.junit.rules.ExternalResource; import org.slf4j.L...
package pl.lepszetlumaczenia.tabele; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="rzeczowniki", schema="public") public class Rzeczownik { @Id @Column(name="kod_rzeczownika", nullable=false) private int ko...
package se.su.it.svc.server.aspect; import org.apache.cxf.phase.PhaseInterceptorChain; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org....
package studentcapture.datalayer.database; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.dao.DataIntegrityViolationException; import org.springframework.dao.IncorrectResultSizeDataAccessException; import org.springframework....
package techreborn.tiles; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.ISidedInventory; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.item.crafting.Ingredient; import net.minecraft.nbt.N...
package uk.co.jemos.podam.api; import java.lang.annotation.Annotation; import java.lang.reflect.Array; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.GenericArrayType; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.re...
package uristqwerty.CraftGuide; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import net.minecraft.client.Minecraft; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import uristqwerty.Cra...
package me.nallar.nmsprepatcher; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import java.util.logging.Level; import java.util.logging.Logger; import java.util.regex.Matcher; im...
package org.exist.xquery.functions.validation; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import org.exist.dom.QName; import org.exist.memtree.MemTreeBuilder; import org.exist.memtree.NodeImpl; import org.exist.storage.BrokerPool; import org.exist.validation.Validatio...
package org.jets3t.servlets.gatekeeper; import java.security.Principal; import javax.servlet.http.HttpSession; /** * Stores information about an HTTP client that submitted a request to the Gatekeeper. * <p> * The information available about a client will depend on the server and client configuration, * such as whet...
package org.mtransit.parser.ca_windsor_transit_bus; import java.util.HashMap; public class Stops { public static HashMap<String, String> ALL_STOPS; static { HashMap<String, String> allStops = new HashMap<String, String>(); allStops.put("stop_code", "stop_id"); // stop_name allStops.put("...
package ru.job4j.transfers; import java.util.ArrayList; import java.util.List; import java.util.TreeMap; public class Bank { /** * A collection that indicates that each user can have a list of bank accounts. */ private TreeMap<User, ArrayList<Account>> bank = new TreeMap<>(); /** * The method...
package org.pentaho.di.verticabulkload; import java.io.IOException; import java.io.InterruptedIOException; import java.io.PipedInputStream; import java.sql.SQLException; import java.util.ArrayList; import java.util.concurrent.Executors; import org.pentaho.di.core.Const; import org.pentaho.di.core.database.Database; imp...
package fault.java.metrics; import fault.java.Status; import fault.java.utils.TimeProvider; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import java.util.Random; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.when; public...
package uk.org.il2ssd.jfx; import javafx.scene.Parent; import javafx.scene.control.TextInputControl; import org.loadui.testfx.GuiTest; import uk.org.il2ssd.Core; import java.util.concurrent.TimeUnit; import static org.loadui.testfx.controls.Commons.nodeLabeledBy; import static org.loadui.testfx.controls.TextInputContro...
package tests; import static org.junit.Assert.assertTrue; // checking the values import gui.GUI; import gui.volumetab.VolumeTab; import java.awt.Component; import java.awt.Container; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Stack; import javax.swing.JSlider; import javax....
// LociUploader.java package loci.plugins; import java.awt.TextField; import java.util.Vector; import ij.*; import ij.gui.GenericDialog; import ij.plugin.PlugIn; import ij.process.*; import ij.io.FileInfo; import loci.formats.*; import loci.ome.upload.*; /** * ImageJ plugin for uploading images to an OME server. * *...
package org.spine3.base; import com.google.common.escape.Escaper; import com.google.common.escape.Escapers; import com.google.common.primitives.Ints; import com.google.common.primitives.Longs; import com.google.protobuf.Message; import org.spine3.json.Json; import java.lang.reflect.Type; import java.util.List; import j...
package org.spine3.validate; import com.google.protobuf.Message; import com.google.protobuf.Timestamp; import org.spine3.base.CommandId; import org.spine3.base.EventId; import org.spine3.protobuf.TypeUrl; import javax.annotation.Nullable; import static com.google.common.base.Preconditions.checkArgument; import static c...
package org.smbarbour.mcu; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.AWTException; import java.awt.BorderLayout; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.TrayIcon; import javax.swing.JLabel; import javax.swing.JButton; import javax.swin...
package org.jetel.component; import java.io.IOException; import org.jetel.data.DataRecord; import org.jetel.data.Defaults; import org.jetel.data.DynamicRecordBuffer; import org.jetel.data.RecordKey; import org.jetel.exception.ComponentNotReadyException; import org.jetel.exception.ConfigurationProblem; import org.jetel....
import java.util.Hashtable; import java.util.Map; import javax.xml.transform.*; import javax.xml.transform.stream.StreamSource; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.wizards.common.FileAccess; public class CGLayout extends ConfigSetItem { public String cp_Name; public String cp_FSNa...
package roart.predictor; import java.util.HashMap; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import roart.config.MyMyConfig; import roart.model.ResultItemTable; import roart.model.ResultItemTableRow; import roart.model.StockItem; import roart.pipeline.Pipeline...
package util.ui; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JOptionPane; import server.GameServer; @SuppressWarnings("serial") public class PublishButton extends JButton implements ActionListener { private GameServer theServer; public ...
package org.diirt.pods.web; import java.io.InputStream; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; import javax.websocket.CloseReason; import javax.websocket.EndpointConfig; import javax.websocket.OnClose; import javax.websocket....
package com.shc.webgl4j.client; import com.google.gwt.canvas.client.Canvas; import com.google.gwt.canvas.dom.client.ImageData; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.dom.client.CanvasElement; import com.google.gwt.dom.client.Element; import com.google.gwt.typedarrays.shared.ArrayBuffe...
// 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 java.nio.charset.C...
package org.yamcs; import static org.yamcs.api.Protocol.DATA_TO_HEADER_NAME; import static org.yamcs.api.Protocol.REPLYTO_HEADER_NAME; import static org.yamcs.api.Protocol.REQUEST_TYPE_HEADER_NAME; import java.io.IOException; import java.io.ObjectOutputStream; import java.util.ArrayList; import java.util.Arrays; import...
package au.edu.unimelb.boldapp; import java.io.StringWriter; import android.util.Log; import android.content.Intent; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toast; import org.json.simple.JSONObject; import org.json.simple.par...
// MetadataStore.java package loci.formats; /** * A proxy whose responsibility it is to marshal biological image data into a * particular storage medium. * * The <code>MetadataStore</code> interface encompasses the basic metadata that * any specific storage medium (file, relational database, etc.) should be * exp...
// SystemControls.java package loci.visbio; import com.jgoodies.forms.builder.PanelBuilder; import com.jgoodies.forms.layout.CellConstraints; import com.jgoodies.forms.layout.FormLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Enumeration; import java.util.Properties; i...
// DataCache.java package loci.visbio.data; import java.util.Hashtable; import loci.formats.FormatTools; import visad.Data; public class DataCache { // -- Constants -- /** Debugging flag. */ protected static final boolean DEBUG = false; // -- Fields -- /** Hashtable backing this cache of full-resolution data....
/* * $Log: IAdapter.java,v $ * Revision 1.6 2004-08-09 08:43:46 L190409 * added formatErrorMessage() * * Revision 1.5 2004/06/16 12:34:46 Johan Verrips <johan.verrips@ibissource.org> * Added AutoStart functionality on Adapter * * Revision 1.4 2004/03/26 10:42:50 Johan Verrips <johan.verrips@ibissource.org...
package org.unitime.timetable.model; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.TreeSet; import org.hibernate.criterion.Restrictions; import org.unitime.timetable.model.base.BaseBuilding; import org.unitime.timetable.model.dao.BuildingDAO; import org.unitime.timetable...
package ui; import java.io.IOException; import java.net.SocketTimeoutException; import java.net.UnknownHostException; import javafx.application.Platform; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.concurrent.Task; import javafx.geometry.Orientation; import javafx....
package org.minimalj.model; import java.util.ArrayList; import java.util.List; import java.util.ResourceBundle; import org.minimalj.util.StringUtils; public class Code { private final ResourceBundle resources; private final String prefix; private final String displayName; private final String nullText; ...
package com.bgmagar.config; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework...
package com.jcabi.ssl.maven.plugin; import java.io.File; import java.util.Properties; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; /** * Test case for {@link Cacerts}. * @author Yegor Bugayenko (yegor@tpc2.com) ...
package com.jcabi.w3c; import com.jcabi.http.mock.MkAnswer; import com.jcabi.http.mock.MkContainer; import com.jcabi.http.mock.MkGrizzlyContainer; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; im...
package com.newput.testCase; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import com.ne...
package com.tatadada.api; import com.tatadada.api.frontend.ChannelController; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.SpringApplicationConfiguration; import org.springframework.http.MediaType; import org.springframework.mock.web.MockServletCo...
package ml.shifu.shifu.core; import org.testng.Assert; import org.testng.annotations.Test; public class ConvergeJudgerTest { @Test public void testIsConverged() { double train_err = 1.0; double test_err = 3.0; double threshold1 = 1.0; double threshold2 = 2.0; double thres...
package net.tascalate.concurrent; import static org.junit.Assert.assertTrue; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; public class PromisesTests { @Before public void setUp() { } @After pub...
package org.goldenorb.queue; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.goldenorb.Message; import org.goldenorb.Messages; import org.goldenorb.OrbPartitionCommunicationProtocol; import org.goldenorb.Vertex; import org.goldenorb.Vertices; impor...
package org.mvel.tests.perftests; import ognl.Ognl; import org.mvel.MVEL; import org.mvel.tests.main.res.Base; import static java.lang.System.currentTimeMillis; import java.math.BigDecimal; import java.math.RoundingMode; /** * Performance Tests Comparing MVEL to OGNL with Same Expressions. */ public class ELCompariso...
package org.oblodiff.util; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import static org.hamcrest.Matchers.either; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.is; import org.junit.Test; import static org.junit.Assert.*; import org.jun...
package org.openremote.security; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.testng.Assert; import org.testng.annotations.Test; import javax.crypto.spec.SecretKeySpec; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.security.KeyStore; impo...
package org.purl.wf4ever.robundle.fs; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.net.URI; import java.nio.file.DirectoryStream; import java.nio.file.FileAlreadyExistsException; impor...
package programminglife.parser; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import programminglife.model.GenomeGraph; import programminglife.model.GenomeGraphTest; import programminglife.model.Segment; import programminglife.model.exception.UnknownTypeException; import java.io.File; im...
package uk.org.okapibarcode.backend; import static java.lang.Integer.toHexString; import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.awt.Color; import java.awt.Font; import java.awt.FontFormatException; import java.a...
package jelloeater.StockTicker; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.junit.Test; import java.io.IOException; import java.util.regex.Matcher; import java.util.regex.Pattern; import static org.junit.Assert.assertTrue; //import java.io.File; //import java.util.Scanner; public class GoogleTic...
package view; import controller.Manager; import controller.ModelManager; import model.Managers.EntityManager; public class UIManager { private ModelManager modelManager; private EntityManager entityManager; private HackerGame game; public UIManager (ModelManager model) { modelManager = model; ...
package stroom.db.util; import stroom.util.logging.LogUtil; import stroom.util.shared.BaseCriteria; import stroom.util.shared.CriteriaFieldSort; import stroom.util.shared.PageRequest; import stroom.util.shared.Range; import stroom.util.shared.Selection; import stroom.util.shared.StringCriteria; import org.jooq.Conditio...
package com.example.odroiddvfs; import android.app.Application; import android.content.Intent; public class MyApplication extends Application { public void onCreate(){ Intent keepAppIntent= new Intent(this, KeepAppAlive.class); startService(keepAppIntent); } }
package com.bbn.kbp; import com.bbn.bue.common.StringUtils; import com.bbn.bue.common.TextGroupImmutable; import com.bbn.bue.common.symbols.Symbol; import com.google.common.base.Optional; import com.google.common.collect.FluentIterable; import com.google.common.collect.ImmutableBiMap; import com.google.common.collect.I...
package com.pironet.tda.utils; import java.util.Comparator; import javax.swing.tree.DefaultMutableTreeNode; /** * compares monitor nodes based on the amount of threads refering to the monitors. * It return 0 for two monitors having the same amount of threads refering to them. * Using this in a TreeSet is not feasibl...
package urlshortener.aeternum; import com.jayway.jsonpath.JsonPath; import com.jayway.jsonpath.ReadContext; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.spri...
package java7.autoclose; import com.sun.tools.doclets.formats.html.SourceToHTMLConverter; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.util.Enumerat...
package org.voovan.tools.json; import org.voovan.tools.TDateTime; import org.voovan.tools.TString; import org.voovan.tools.reflect.TReflect; import java.lang.reflect.Array; import java.math.BigDecimal; import java.util.Collection; import java.util.Date; import java.util.Map; public class JSONEncode { /** * JSO...
package io.xchris6041x.devin.commands; /** * Used to return the result of a command, this gives DEVIN more information than just true or false. * @author Christopher Bishop */ public class CommandResult { public enum Status { SUCCESS, FAILED, USAGE } private Status status; private String mess...
package example; //-*- mode:java; encoding:utf8n; coding:utf-8 -*- // vim:set fileencoding=utf-8: //@homepage@ import java.awt.*; import java.awt.event.*; import java.io.File; import java.util.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.filechooser.FileSystemView; import javax.swing.tree.*; ...
package com.ehpefi.iforgotthat; import java.io.IOException; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.databas...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platfroms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platforms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platforms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
// This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platforms allow them to do with // text. // This program is free software: you can redistribute it and/or modify // published by the Free Software Foundation, either version 3 of the // T...
// -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import java.awt.geom.AffineTransform; import java.net.URL; import javax.swing.*; public final class MainPanel extends JPanel { private MainPanel() { super(new GridLayout(2, 2)); ClassLoader cl...
package it.swim.servlet.profilo; import it.swim.util.UtenteCollegatoUtil; import java.io.IOException; import java.text.DecimalFormat; import java.util.List; import javax.ejb.EJB; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.serv...
package data; import android.content.SharedPreferences; import java.util.ArrayList; public class PreferencesLayer { private static PreferencesLayer instance; private SharedPreferences sharedPreferences; private PreferencesLayer(SharedPreferences sharedPreferences) { this.sharedPreferences = sharedPr...
package com.eegeo.searchmenu; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import com.eegeo.animation.ReversibleValueAnimator; import com.eegeo.animation.updatelisteners.ViewHeightAnimatorUpdateListener; import com.eegeo.entrypointinfrastructure.MainActivity; import com.eegeo.menu.MenuEx...
package com.demo.activity; import android.os.Bundle; import android.widget.Toast; import com.facebook.react.ReactActivity; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactNativeHost; import com.facebook.react.devsupport.interfaces.DevOptionHandler; import com.facebook.react.devsupport.int...
package com.mapswithme.maps.location; import java.util.HashSet; import java.util.Iterator; import java.util.List; import android.content.Context; import android.hardware.GeomagneticField; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.har...
package com.blogspot.ludumdaresforfun; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input.Keys; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.Tex...
package com.openxc.enabler; import com.openxc.VehicleManager; import com.openxc.enabler.preferences.PreferenceManagerService; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class BootupReceiver extends BroadcastReceiver { priv...
package com.mygdx.game.managers; import java.util.Stack; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.mygdx.game.Game; import com.mygdx.game.states.GameState; public class GameStateManager { // Application Reference private final Game game; ...
package com.zero.star.tabnyan; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; p...
package com.bigkoo.pickerviewdemo; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import com.bigkoo.pickerview.OptionsPickerView; import com...
public class RomanNumbers { private static int oneSymbolValues[] = new int[] { 1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000 }; private static String getRomanValue(int number) { switch (number) { case 1: return "I"; case 4: return "IV"; ...
package org.nusco.narjillos; import java.util.Random; import org.nusco.narjillos.creature.genetics.Creature; import org.nusco.narjillos.creature.genetics.DNA; import org.nusco.narjillos.pond.Cosmos; import org.nusco.narjillos.pond.Pond; import org.nusco.narjillos.shared.physics.Vector; import org.nusco.narjillos.shared...
package com.dgmltn.morphclock.app; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.annotation.TargetApi; import android.app.Activity; import android.os.Build; import android.os.Bundle; impo...
package com.team980.thunderscout; import android.content.Context; import android.content.Intent; import android.net.Uri; import com.danielstone.materialaboutlibrary.MaterialAboutActivity; import com.danielstone.materialaboutlibrary.items.MaterialAboutActionItem; import com.danielstone.materialaboutlibrary.items.Materia...
package com.veniosg.dir.view; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.HorizontalScrollView; import android.widget.LinearLayout; import java.io.File; import static com.veniosg.dir.util.Utils.lastCommonDirectoryIndex; import static com.veniosg.dir....
package de.sopa.drawing; import org.andengine.entity.IEntityFactory; import org.andengine.entity.modifier.AlphaModifier; import org.andengine.entity.modifier.RotationModifier; import org.andengine.entity.particle.ParticleSystem; import org.andengine.entity.particle.initializer.GravityParticleInitializer; import org.and...
package eu.redray.trevie; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import android.widget.ImageView; import android.widget.TextView; import com.squareup.picasso.Picasso...
package net.alcuria.umbracraft.engine; import net.alcuria.umbracraft.Config; import net.alcuria.umbracraft.Game; import net.alcuria.umbracraft.engine.components.DirectedInputComponent; import net.alcuria.umbracraft.engine.entities.Entity; import net.alcuria.umbracraft.engine.map.Map; import com.badlogic.gdx.graphics.Co...
package lt.markmerkk.utils.hourglass; import java.util.Timer; import java.util.TimerTask; import javafx.application.Platform; import javax.annotation.PreDestroy; import lt.markmerkk.utils.Utils; import lt.markmerkk.utils.hourglass.exceptions.TimeCalcError; import org.joda.time.DateTime; import org.joda.time.DateTimeUti...
package net.formula97.fakegpbase; public class NfcTextRecord { private String mText; private String mLanguageCode; private Boolean mEncodeUtf8; public NfcTextRecord() { } public NfcTextRecord(String text, String languageCode, Boolean encodeUtf8) { this.mText = text; this.mLanguageCod...
package net.ossrs.yasea.rtmp.io; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketAddress; import jav...
package ru.adios.budgeter.util; import android.content.Context; import android.graphics.Canvas; import android.os.AsyncTask; import android.support.annotation.ColorInt; import android.support.v4.content.ContextCompat; import android.util.AttributeSet; import android.view.Gravity; import android.view.View; import androi...
package edu.umd.cs.findbugs; /** * Version number and release date information. */ public class Version { /** Major version number. */ public static final int MAJOR = 0; /** Minor version number. */ public static final int MINOR = 6; /** Patch level. */ public static final int PATCHLEVEL = 5; ...
package edu.umd.cs.findbugs; import java.io.IOException; import java.io.InputStream; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Properties; /** * Version number and release date information. */ public class Version { /** * Major version number. */ public static final ...
package org.commcare.dalvik.dialogs; /** * @author amstone326 * * Any progress dialog associated with a CommCareTask should use * this class to implement the dialog. Any class that launches such a task * should implement the generateProgressDialog() method of the DialogController * interface, and create the dialo...
package org.intermine.bio.web.export; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import j...
package org.hd.d.edh; import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; /**Graphics utilities, eg generating Web-friendly output icons/buttons/etc. */ public final ...