answer
stringlengths
17
10.2M
package org.hcjf.io.net.http; import org.hcjf.encoding.MimeType; import org.hcjf.errors.Errors; import org.hcjf.properties.SystemProperties; import java.io.*; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.attribute.FileAttribute; import java.security.MessageDige...
package org.jake.depmanagement.ivy; import java.io.File; import java.io.IOException; import java.text.ParseException; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.apache.ivy.Ivy; import org.apache.ivy.core...
package org.javabits.maven.md; import com.google.common.io.Files; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Component; import org.apache.maven.plugins.annotations.Mo...
package org.javacs; import com.google.common.base.Joiner; import com.sun.source.tree.CompilationUnitTree; import com.sun.source.tree.LineMap; import com.sun.source.util.SourcePositions; import com.sun.source.util.TreePath; import com.sun.source.util.Trees; import java.io.BufferedReader; import java.io.IOException; impo...
package org.jcodec.containers.mps; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; import org.jcodec.common.IntArrayList; import org.jcodec.common.io.NIOUtils; import org.jcodec.common.model.Rational; import org.jcodec.containers.mps.MPSDemuxer.PESPacket; public class MPSUtils { publi...
package org.jruby.rack.util; import java.io.IOException; import org.jruby.NativeException; import org.jruby.Ruby; import org.jruby.RubyClass; import org.jruby.exceptions.RaiseException; /** * * @author kares */ public abstract class ExceptionUtils { public static RaiseException wrapException(final Ruby runtime, ...
package org.jtrfp.trcl.snd; import java.nio.FloatBuffer; import org.jtrfp.trcl.math.Misc; public final class AudioCompressor implements AudioProcessor { private FloatBuffer source; private double release = .01f; private double scalar = 1f; @Override public float get(){ scalar += release; scalar = Misc.clamp(scalar,...
package org.lantern; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import javax.net.ssl.TrustManager; import org.apache.commons.codec.binary.Base64; import org.apache.commons.io.IOUtils; import ...
package org.lightmare.config; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Properties; import java.util.Set; import org.apache.log4j.Logger; import org.lightmare.cac...
package org.lightmare.config; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Properties; import java.util.Set; import org.apache.log4j.Logger; import org.lightmare.cac...
package org.minimalj.model.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotation for String, Long, Integer, BigDecimal. * * <UL> * <LI>For String its mandatory. * <LI>For Integer ...
package org.mycat.web.util; import java.sql.Connection; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.dbcp.BasicDataSource; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.hx.rainbow.common.cont...
package org.netlight.client; import io.netty.bootstrap.Bootstrap; import io.netty.buffer.PooledByteBufAllocator; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelOption; import io.netty.channel.EventLoopGroup; import io.netty.channel.epoll.EpollEventLoopGroup; impor...
package org.openremote.security; import org.openremote.exception.OpenRemoteException; import org.openremote.logging.Logger; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundExcep...
package org.xbill.DNS; import java.io.*; import java.util.*; import org.xbill.DNS.utils.*; /** * Transaction signature handling. This class generates and verifies * TSIG records on messages, which provide transaction security. * @see TSIGRecord * * @author Brian Wellington */ public class TSIG { private static f...
package org.shopkeeper.preloader; import javafx.application.Application; import javafx.application.Platform; import javafx.scene.Scene; import javafx.scene.control.ProgressBar; import javafx.scene.layout.BorderPane; import javafx.stage.Stage; import org.shopkeeper.database.DatabaseHandler; import org.shopkeeper.databas...
package org.smartwallet.stratum; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Throwables; import com.google.common.collect.Lists; import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurr...
package org.threadly.litesockets; import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketException; import java.nio.ByteBuffer; import java.nio.channels.ClosedChannelException; import java.nio.channels.SocketChannel; import java.util.ArrayDeque; import java.util.Deque; import java.util.con...
package permafrost.tundra.lang; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; /** * A collection of convenience methods for working with arrays. */ public class ArrayHelper { /** * Disallow i...
package sb.tasks.jobs.dailypress; import com.mongodb.client.model.Updates; import org.apache.commons.lang3.exception.ExceptionUtils; import org.bson.conversions.Bson; import org.jtwig.JtwigModel; import org.jtwig.JtwigTemplate; import sb.tasks.jobs.NotifObj; import java.io.File; import java.util.Date; import java.util....
package scrum.client.project; import ilarkesto.gwt.client.Gwt; import java.util.List; public class EstimationBar { private int sprintOffset; private List<Integer> workPerSprint; public EstimationBar(int sprintOffset, List<Integer> workPerSprint) { super(); this.sprintOffset = sprintOffset; ...
package sds.decompile.cond_expr; import java.util.Arrays; import java.util.StringJoiner; import sds.assemble.controlflow.CFEdge; import sds.assemble.controlflow.CFNode; import sds.classfile.bytecode.BranchOpcode; import sds.classfile.bytecode.OpcodeInfo; import static sds.assemble.controlflow.CFNodeType.Entry; import s...
package tamaized.aov.client.gui; import com.mojang.authlib.GameProfile; import com.mojang.blaze3d.platform.GlStateManager; import net.minecraft.client.MainWindow; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.AbstractGui; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client...
package team.unstudio.udpl.util; import java.lang.reflect.InvocationTargetException; import org.bukkit.Location; import org.bukkit.entity.Player; import com.comphenix.protocol.PacketType; import com.comphenix.protocol.ProtocolLibrary; import com.comphenix.protocol.ProtocolManager; import com.comphenix.protocol.events.P...
package throwing.function; import java.util.Objects; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Supplier; import javax.annotation.Nullable; import throwing.Nothing; import throwing.RethrowChain; @FunctionalInterface public interface ThrowingSupplier<R, X extends Th...
package org.epics.util.time; /** * A period of time where each end can either be an absolute moment in time * (e.g. 5/16/2012 11:30 AM) or a relative moment from a reference (e.g. 30 seconds before) * which typically is going to be "now". * <p> * This class stores a reference for start and a reference for end. Eac...
package vaeke.countrydata.rest; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; impo...
package wasdev.sample.servlet; //package com.mcademo; import okhttp3.*; import org.json.JSONObject; import net.iharder.Base64; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOExcep...
package org.openintents.filemanager.util; 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.ArrayList; import java.util.List; import java.util.zip.ZipEntry; import ...
package org.openintents.filemanager.util; 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.ArrayList; import java.util.List; import java.util.zip.ZipEntry; import ...
package org.waterforpeople.mapping.app.web; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Random; import java.util.TreeMap; import javax.servlet.http.HttpServletRequest; import java...
/* * $Log: TransactionalStorage.java,v $ * Revision 1.5 2004-08-18 09:20:14 a1909356#db2admin * Add some logging * * Revision 1.4 2004/03/31 12:04:21 Gerrit van Brakel <gerrit.van.brakel@ibissource.org> * fixed javadoc * * Revision 1.3 2004/03/26 10:43:03 Johan Verrips <johan.verrips@ibissource.org> * ad...
package org.unitime.timetable.server.rooms; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.StringTokenizer; import java.util.TreeSet; import org.hibernate.Transaction; import org.springframework.ster...
package org.bonej.ops.ellipsoid; import static java.util.stream.Collectors.toList; import static java.util.stream.Stream.generate; import java.util.Arrays; import java.util.List; import java.util.Random; import java.util.function.Function; import java.util.function.Predicate; import java.util.function.Supplier; import ...
package com.arnowouter.javaodoo; import com.arnowouter.javaodoo.defaults.OdooDefaults; import com.arnowouter.javaodoo.supportClasses.OdooDatabaseParams; import de.timroes.axmlrpc.XMLRPCException; import java.net.MalformedURLException; import static java.util.Collections.emptyList; /** * * @author Arno */ public clas...
package model.supervised.neuralnetwork; import algorithms.gradient.Decent; import algorithms.gradient.GradientDecent; import com.google.common.util.concurrent.AtomicDouble; import data.DataSet; import gnu.trove.list.array.TIntArrayList; import gnu.trove.set.hash.TIntHashSet; import model.Predictable; import model.Train...
package net.mitchtech.xposed; import android.app.AlertDialog; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.os.Bundle; import androi...
package org.TexasTorque.TorqueLib.util; import com.sun.squawk.io.BufferedWriter; import com.sun.squawk.microedition.io.*; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.Watchdog; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import java.io.IOException; import java.io.OutputStream...
package org.appwork.utils.logging2; import java.util.HashSet; import java.util.Locale; import java.util.logging.ConsoleHandler; import java.util.logging.Filter; import java.util.logging.Level; import java.util.logging.LogRecord; import org.appwork.utils.logging.LogFormatter; /** * @author daniel * */ public class Lo...
package org.codefx.lab.optional; import java.io.IOException; import java.io.InvalidObjectException; import java.io.ObjectInputStream; import java.io.Serializable; import java.util.Objects; import java.util.Optional; /** * Convenience class to wrap an {@link Optional} for serialization. * <p> * Note that it does not ...
package org.concord.framework.otrunk; import java.util.Vector; /** * This class can be used to create more complex OTObjects. * The OTObject interface can be used for simple interfaces * that adhere to the current conventions of the OTrunk. * If there is an interface that doesn't follow these conventions * you can...
package org.cytoscape.data.reader.kgml; import giny.view.NodeView; import java.awt.Color; import java.awt.Font; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.cytoscape.data.reader.kgml.generat...
package org.neuvoo.profileinspector; import java.io.*; import org.jargp.*; import java.util.Vector; import java.util.HashMap; import java.util.Iterator; import java.util.Set; import java.util.regex.Pattern; public class ProfileInspector { private String action = ""; private String profile = ""; private Stri...
package org.nutz.dao.impl.jdbc.derby; import java.util.List; import org.nutz.dao.DB; import org.nutz.dao.Dao; import org.nutz.dao.Sqls; import org.nutz.dao.entity.Entity; import org.nutz.dao.entity.MappingField; import org.nutz.dao.entity.PkType; import org.nutz.dao.entity.annotation.ColType; import org.nutz.dao.impl.e...
package org.objectweb.proactive.core.rmi; import org.apache.log4j.Logger; import java.net.UnknownHostException; public class ClassServer implements Runnable { protected static Logger logger = Logger.getLogger(ClassServer.class.getName()); public static int DEFAULT_SERVER_BASE_PORT = 2001; protected static i...
// This file is part of JavaSMT, // an API wrapper for a collection of SMT solvers: package org.sosy_lab.java_smt.solvers.cvc5; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import io.github.cvc5.api.CVC5ApiException; import i...
package speedy.comparison.operators; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import speedy.SpeedyConstants; import speedy.SpeedyConstants.ValueMa...
package string.sliding_window; import java.util.HashMap; public class MinimumWindowSubstring { //TAG: Facebook //TAG: Uber //TAG: LinkedIn //TAG: String //TAG: Sliding window //Difficulty: Hard /** * 76. Minimum Window Substring * * Given a string S and a string T, find the mi...
package test.beast.app.beauti; import static org.fest.swing.edt.GuiActionRunner.execute; import static org.fest.swing.finder.JFileChooserFinder.findFileChooser; import java.awt.Component; import java.io.File; import java.util.Arrays; import javax.swing.JComboBox; import org.fest.swing.data.Index; import org.fest.swing....
package com.akiban.server.test; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertNotNull; import static junit.framework.Assert.assertTrue; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; import java.io.File; import java.math.BigInteger; import...
package com.alibaba.json.bvt; import junit.framework.TestCase; import org.junit.Assert; import com.alibaba.fastjson.util.IOUtils; public class CharTypesTest extends TestCase { static byte[] specicalFlags_singleQuotes = IOUtils.specicalFlags_singleQuotes; static byte[] specicalFlags_doubleQuotes = IOUtils.specic...
package com.alibaba.json.bvt; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.serializer.SerializeConfig; import junit.framework.TestCase; import java.util.Currency; public class CurrencyTest5 extends TestCase { public void test_0() throws Exception { Se...
package com.arhs.mojo.pack200; import com.arhs.mojo.pack200.pack.PackMojo; import java.io.File; /** * Unit tests for {@code PackMojo} class. * * @author Cyril Schumacher * @version 1.0 * @since 2014-12-02 */ public class PackMojoTest extends AbstractMojoTest { //<editor-fold desc="Constants section."> /**...
package com.cloudbees.groovy.cps; import org.codehaus.groovy.runtime.ScriptBytecodeAdapter; import org.junit.Assert; import org.junit.Test; import static java.util.Arrays.*; /** * @author Kohsuke Kawaguchi */ public class BasicTest extends Assert { Builder b = new Builder(); // useful fragment of expressions ...
package com.dua3.utility.text; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintStream; import java.io.UncheckedIOException; import java.net.URISyntaxException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.nio.file...
package com.jcabi.github; import com.jcabi.aspects.Tv; import org.apache.commons.lang3.RandomStringUtils; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Assume; import org.junit.Test; /** * Test case for {@link RtAssignees}. * @author Paul Polishchuk (ppol@ua.fm) * @version $Id$ *...
package com.mars.test.java; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Test; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.math.BigIntege...
package com.rox.emu.mem; import org.junit.Before; import org.junit.Test; import java.util.Arrays; import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertTrue; import static junit.framework.TestCase.fail; public class ReadOnlyMemoryTest { int[] memoryValues = new int[] {0,1...
package de.gmcs.builder; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import org.junit.Test; import de.gmcs.builder.model.DomainObject; import de.gmcs.builder.model.PrivateObject; public class GenericBuilderTest { @Test public void test() throws Exception { DomainOb...
package guitests; import static org.junit.Assert.assertTrue; import static seedu.taskboss.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import org.junit.Test; import seedu.taskboss.commons.exceptions.IllegalValueException; import seedu.taskboss.logic.commands.RenameCategoryCommand; import seedu.taskboss.logic.p...
package net.greghaines.jesque; import static net.greghaines.jesque.TestUtils.createJedis; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import net.greghaines.jesque.worker.Worker; import net.greghaines.jesque.worker.WorkerImpl; import org.junit.Before; import org.junit.Test; import redis.c...
package org.alltiny.math.vector; import junit.framework.Assert; import org.junit.Test; /** * This test ensures that {@link Matrix} is working correctly. */ public class MatrixTest { @Test(expected = IllegalArgumentException.class) public void testMatrixRejectsNull() { new Matrix((Vector[])null); }...
package org.kohsuke.github; import com.fasterxml.jackson.databind.exc.MismatchedInputException; import com.fasterxml.jackson.databind.exc.ValueInstantiationException; import com.github.tomakehurst.wiremock.core.WireMockConfiguration; import org.hamcrest.CoreMatchers; import org.junit.Test; import java.io.IOException; i...
package org.takes.facets.auth; import com.google.common.collect.ImmutableMap; import java.io.IOException; import nl.jqno.equalsverifier.EqualsVerifier; import nl.jqno.equalsverifier.Warning; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Test; import org.mockito.Mockito; import org.ta...
package seedu.task.commons.core; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; public class ConfigTest { @Rule public ExpectedException ...
package codeine.mail; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import org.apache.log4j.Logger; import codeine.configuration.Links; import codeine.jsons.labels.LabelJsonProvider; import codeine.jsons.mails.AlertsCollectionType; import codeine.jsons.mails.CollectorNotificationJson;...
package com.sherpasteven.recarded; public class Card { private String name; private int quantity; private Quality quality; private String catagory; private String series; private Boolean tradable; private String comments; private List<images> images; private User owner; public Ca...
package org.skywalking.apm.agent.core.context.ids; import java.nio.ByteBuffer; import java.nio.ByteOrder; import org.skywalking.apm.agent.core.context.ids.base64.Base64; import org.skywalking.apm.network.proto.UniqueId; /** * @author wusheng */ public class ID { private static final Base64.Encoder ENCODER = Base6...
package com.samourai.wallet.send.soroban.meeting; import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.ProgressBar; ...
package openfoodfacts.github.scrachx.openfood.fragments; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotatio...
package org.theotech.ceaselessandroid.fragment; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.Re...
package vocabletrainer.heinecke.aron.vocabletrainer.Activities; import android.app.Activity; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.util.Log; import androi...
package org.ovirt.engine.core.dao; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.List; import java.util.Map; import org.junit.Te...
package org.jboss.hal.testsuite.test.configuration.container; import org.apache.commons.lang3.RandomStringUtils; import org.jboss.arquillian.drone.api.annotation.Drone; import org.jboss.arquillian.graphene.page.Page; import org.jboss.arquillian.junit.Arquillian; import org.jboss.arquillian.junit.InSequence; import org....
package org.intermine.bio.dataconversion; import org.intermine.bio.io.gff3.GFF3Record; import org.intermine.metadata.Model; import org.intermine.xml.full.Item; import java.util.List; /** * A converter/retriever for the AipGff dataset via GFF files. */ public class AipGffGFF3RecordHandler extends GFF3RecordHandler { ...
package org.intermine.bio.dataconversion; import java.io.Reader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.TreeSet; import java.util.Map.E...
package br.eti.rslemos.brill.events; import static org.mockito.Mockito.*; import static org.hamcrest.CoreMatchers.*; import java.util.Arrays; import org.hamcrest.BaseMatcher; import org.hamcrest.Description; import org.hamcrest.Matcher; import org.mockito.InOrder; import org.mockito.Mock; import org.mockito.MockitoAnno...
package ch.elexis.core.ui.preferences; import java.util.List; import java.util.stream.Collectors; import org.eclipse.core.databinding.DataBindingContext; import org.eclipse.core.databinding.UpdateValueStrategy; import org.eclipse.core.databinding.beans.PojoProperties; import org.eclipse.core.databinding.observable.valu...
package com.python.pydev.refactoring.refactorer; import java.io.File; import org.python.pydev.core.TestDependent; import org.python.pydev.editor.actions.PySelection; import org.python.pydev.editor.codecompletion.revisited.CodeCompletionTestsBase; import org.python.pydev.editor.codecompletion.revisited.modules.CompiledM...
package org.jboss.forge.container.modules; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Collection; import java.util.Enumeration; import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipException; import java.util.zip...
package org.jboss.forge.container.services; import java.lang.reflect.Method; import javax.enterprise.inject.spi.InjectionPoint; import org.jboss.forge.container.Addon; import org.jboss.forge.container.AddonRegistry; import org.jboss.forge.container.util.Addons; import org.jboss.forge.container.util.Assert; import org.j...
package io.openshift.appdev.missioncontrol.core.api; /** * That holds all status messages that we send to the clients via * websockets to inform them about the status of their project */ public enum StatusMessage { GITHUB_CREATE("Creating your new GitHub repository"), GITHUB_PUSHED("Pushing your customized B...
package com.thingtrack.konekti.view.addon.ui; import java.io.Serializable; import org.vaadin.peter.buttongroup.ButtonGroup; import com.thingtrack.konekti.view.addon.data.BindingSource; import com.thingtrack.konekti.view.addon.data.BindingSource.IndexChangeEvent; import com.thingtrack.konekti.view.addon.data.BindingSour...
package gamelog; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; /** * * @author gmein */ public class GameLog { private final ReadWriteL...
package com.example.android.sunshine2; import android.content.Intent; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.text.format.Time; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.vi...
package com.boissinot.jenkins.csvexporter.batch; import com.boissinot.jenkins.csvexporter.batch.delegator.JobItemReaderDelegator; import com.boissinot.jenkins.csvexporter.batch.delegator.JobItemReaderFolderDelegator; import com.boissinot.jenkins.csvexporter.batch.delegator.JobItemReaderRemoteInstanceDelegator; import c...
package com.telefonica.iot.cygnus.aggregation; import com.google.gson.JsonElement; import com.telefonica.iot.cygnus.interceptors.NGSIEvent; import com.telefonica.iot.cygnus.utils.NGSIUtils; import java.util.*; /** * The type Ngsi generic aggregator. */ public abstract class NGSIGenericAggregator { /** * The ...
package org.neo4j.server.plugin.cypher; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.UnsupportedEncodingException; import java.util.Collection; import java.util.Map; import javax.ws.rs.core.Response.Status; import org.junit.After; import org.junit.AfterClass; im...
package com.galois.qrstream.lib; import android.app.Activity; import android.app.Fragment; import android.hardware.Camera; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.LayoutInflater; import android.view.SurfaceHolder; import android.view.S...
package com.plugin.gcm; import org.json.JSONException; import org.json.JSONObject; import android.annotation.SuppressLint; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Bundle; i...
package com.armandgray.seeme.views; import android.content.BroadcastReceiver; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support...
package com.anthony.shakeitoff; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Environ...
package time; /** * * @author Yifei Zhu * * This class can be able to -get date, hour, min, second -get or print * time and date in 12 format and 24 format -compare to "date and time" * The default time format is in 24 hours * * default--24 printing--12 */ public class Time impl...
package org.ccnx.ccn.impl; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.DatagramChannel; import java.nio.channels.NotYetConnectedException; import java.nio.channels.SelectionKey; import java.nio....
package org.ccnx.ccn.impl; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.NotYetConnectedException; import java.util.ArrayList; import java.util.Timer; import java.util.TimerTask; import java.util.TreeMap; import java.util.concurren...
package jkind.api.xml; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.URI; import java.net.URL; import java.net.URLConnection; import java.util.List; import java.util....
package com.jme3.scene; import com.jme3.scene.Mesh; import com.jme3.scene.VertexBuffer.Type; /** * A static, indexed, Triangles-mode mesh for an axis-aligned rectangle in the * X-Y plane. * * <p>The rectangle extends from (-width/2, -height/2, 0) to * (width/2, height/2, 0) with normals set to (0,0,1). * * <p>Th...
package joliex.db; import java.math.BigDecimal; import java.sql.Clob; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import jolie.runtime.CanUseJars; import jolie.runtime.FaultException; im...
package org.strongback; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicReference; import java.util.function.BooleanSupplier; import org.strongback.annotation.Immutable; import org.strongback.annotation.ThreadSafe; import org.strongback....
package cucumber.api.junit; import cucumber.api.CucumberOptions; import cucumber.api.event.TestRunFinished; import cucumber.api.formatter.Formatter; import cucumber.runtime.ClassFinder; import cucumber.runtime.Runtime; import cucumber.runtime.RuntimeOptions; import cucumber.runtime.RuntimeOptionsFactory; import cucumbe...