answer stringlengths 17 10.2M |
|---|
package com.chahyadis.jwt.interfaces;
/**
* IssuerKey<br>
* nama aplikasi.
*
* @author Surya Chahyadi
* @since March 26th, 2015
* @version 1.0
*/
public abstract interface IssuerKey {
/**
* appName<br/>
* Berupa identitas project yang akan divalidasi oleh server.
*
* @return {@link String... |
package com.doctor.esper.event;
import java.math.BigDecimal;
public class Withdrawal {
private String account;
private BigDecimal amount;
public Withdrawal(String account, BigDecimal amount) {
this.account = account;
this.amount = amount;
}
public String getAccount() {
return... |
// Triple Play - utilities for use in PlayN-based games
package tripleplay.anim;
import java.util.ArrayList;
import java.util.List;
import playn.core.GroupLayer;
import playn.core.Layer;
import tripleplay.util.Layers;
/**
* Handles creation and management of animations. Animations may involve the tweening of a
* geom... |
package org.carlspring.strongbox.providers.repository;
import org.carlspring.strongbox.artifact.coordinates.ArtifactCoordinates;
import org.carlspring.strongbox.configuration.Configuration;
import org.carlspring.strongbox.configuration.ConfigurationManager;
import org.carlspring.strongbox.data.criteria.Expression.ExpOp... |
package com.ezardlabs.dethsquare;
import java.util.Iterator;
public final class Animator extends Script implements Iterable<Animation> {
private Animation[] animations;
private int index = -1;
private int frame = 0;
private long nextFrameTime = 0;
private boolean finished = false;
public boolean... |
package com.parse.starter;
import com.parse.starter.R;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.widget.TextView;
public class UploadActivity extends Activity
{
private st... |
package ui.issuepanel;
import backend.interfaces.IModel;
import backend.resource.TurboIssue;
import filter.expression.Qualifier;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCodeCombination;
import javafx.scene.input.KeyCombination;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.Prior... |
package org.carlspring.strongbox.services.impl;
import static org.carlspring.strongbox.providers.layout.LayoutProviderRegistry.getLayoutProvider;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.security.NoSuchAlgorithmException;
impor... |
package com.facebook.presto.block;
import com.facebook.presto.block.Cursor.AdvanceResult;
import com.google.common.base.Predicate;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Ordering;
import com.google.common.primitives.Longs;
import static com.facebook.presto.block.Cursor.AdvanceR... |
package webmattr.react;
import elemental.client.Browser;
import elemental.dom.Document;
import elemental.html.Console;
import elemental.html.Window;
import jsinterop.annotations.JsIgnore;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import webmattr.Bus;
import webmattr.Func;
import webm... |
package com.fenbi.ytklearn.data.gbdt;
import com.fenbi.ytklearn.data.Constants;
import com.fenbi.ytklearn.data.Tuple;
import com.fenbi.ytklearn.feature.gbdt.FeatureSplitType;
import com.fenbi.ytklearn.utils.NumConvertUtils;
import com.fenbi.ytklearn.utils.CheckUtils;
import java.io.BufferedReader;
import java.io.IOExce... |
package com.github.sd4324530.jtuple;
import java.io.Serializable;
import java.util.*;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
import static java.util.Objects.isNull;
import static jav... |
package org.xwiki.test.integration;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.apache.commons.configuration2.PropertiesConfiguration;
import org.apache... |
package com.ls.utils;
import com.ls.drupalcon.model.PreferencesManager;
import org.jetbrains.annotations.NotNull;
import android.content.Context;
import android.support.annotation.Nullable;
import android.text.format.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calend... |
package com.ideaheap;
import java.util.Comparator;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
public class LoopsBasedCalculator {
public Map<String, String> getStringTransition(
final Set<String> stringSet,
final Map<String, Double> stringCosts) {
String[... |
package com.imsweb.seerapi.client;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.TimeZone;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.Invocation.Builder;
import javax.ws.... |
package org.orbeon.oxf.xforms.processor;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.Attribute;
import org.orbeon.oxf.test.ResourceManagerTestBase;
import org.orbeon.oxf.xforms.xbl.XBLUtils;
import org.orbeon.oxf.xforms.XFormsConstants;
import org.orbeon.oxf.xml.XMLUtils;
import org.orbeon.oxf... |
package pixelInRadiusFinder;
import java.util.ArrayList;
public class NaiveRadiusChecker {
/**
* Computed all integer points centered around the vertex given the radius
* r. <br>
* This uses a naive radius checker which just checks all points in the
* circle's AABB to see if there are within the... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software d... |
package com.axelor.apps.supplychain.service.declarationofexchanges;
import com.axelor.apps.ReportFactory;
import com.axelor.apps.account.db.Invoice;
import com.axelor.apps.account.db.repo.InvoiceRepository;
import com.axelor.apps.base.db.Address;
import com.axelor.apps.base.db.Period;
import com.axelor.apps.base.db.Pro... |
//Namespace
package com.katujo.web.utils;
//Java imports
import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util... |
// HttpResponse.java
package ed.net.httpserver;
import java.io.*;
import java.net.*;
import java.util.*;
import java.text.*;
import java.nio.*;
import java.nio.channels.*;
import java.nio.charset.*;
import javax.servlet.*;
import javax.servlet.http.*;
import ed.io.*;
import ed.js.*;
import ed.js.func.*;
import ed.js.en... |
package org.openhealthtools.mdht.uml.cda.consol.tests;
import java.util.Map;
import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.ecore.EObject;
import org.junit.Test;
import org.openhealthtools.mdht.uml.cda.CDAFactory;
import org.openhealthtools.mdht.uml.cda.StrucDocText;
import org.openhealthtoo... |
package com.messners.gitlab.api;
/**
* This class is provides a simplified interface to a GitLab API server, and divides the API up into
* a separate API class for each concern.
*
* @author Greg Messner <greg@messners.com>
*/
public class GitLabApi {
GitLabApiClient apiClient;
private CommitsApi commitsApi... |
package nl.mpi.arbil;
import nl.mpi.arbil.data.ArbilDataNode;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.net.HttpURLConnection;
import java.util.Vector;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.UIManager;
import nl.mpi.arbil.data.ArbilField;
import nl.m... |
package Server;
import team17.sheet06.common.IComputationService;
import team17.sheet06.common.IJob;
import team17.sheet06.common.IJobDoneCallback;
import team17.sheet06.common.Job;
import java.rmi.RemoteException;
import java.util.concurrent.*;
public class ComputationService implements IComputationService {
priva... |
package com.minimajack.v8.project;
import java.io.File;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.minimajack.v8.io.Strategy;
import com.minimajack.v8.parser.impl.FileParserTask;
import com... |
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
public class OPM_Sample extends OPMSuper implements Comparator<String> {
public void testNormalMethodCouldBePrivate() {
someNormalMethod();
... |
package com.nerodesk.om.aws;
import com.amazonaws.services.s3.Headers;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.amazonaws.util.DateUtils;
import com.nerodesk.om.Attributes;
import java.io.IOException;
import java.util.Date;
import lombok.EqualsAndHashCode;
/**
* Aws based document attributes.
... |
package com.bitso.helpers;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Helpers {
private static final List<Field> getAllFields(List<Field> fields, Class<?> type) {
fields.addAll(Arrays.asList(type.getDeclaredFields()));
if ... |
package com.nx.util.jme3.base;
import com.jme3.animation.AnimControl;
import com.jme3.animation.Bone;
import com.jme3.animation.SkeletonControl;
import com.jme3.asset.AssetManager;
import com.jme3.bounding.BoundingBox;
import com.jme3.bounding.BoundingVolume;
import com.jme3.collision.Collidable;
import com.jme3.collis... |
package com.okta.tools.helpers;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.securitytoken.AWSSecurityTokenService;
import com.amazonaws.service... |
package com.frankhpe.gittest;
public class Main {
public static void main(String [] args) {
System.out.println("Hello 777");
System.out.println("Hello 666");
}
} |
package com.gildedrose;
import static java.lang.Math.max;
import static java.lang.Math.min;
import java.util.HashMap;
import java.util.Map;
class GildedRose {
private static final int DEFAULT_QUALITY_INCREASE_AMOUNT = 1;
private static final int DEFAULT_QUALITY_DECAY_AMOUNT = -1;
private static final int QUALITY_... |
package org.hisp.dhis.analytics.table;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hisp.dhis.DhisConvenienceTest.createProgram;
import static org.hisp.dhis.DhisConvenienceTest.createProgramTrackedEntityAttribute;
import static org.hisp.dhis.DhisConvenienceTest.createTrackedEntityAttribute;... |
// 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... |
package ma.glasnost.orika.test.favorsextension;
import ma.glasnost.orika.MapperFacade;
import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.impl.DefaultMapperFactory;
import ma.glasnost.orika.test.MappingUtil;
import org.junit.Assert;
import org.junit.Test;
public class FavorsExtensionTestCase {
@Test
... |
package org.safehaus.subutai.api.templateregistry;
import java.util.ArrayList;
import java.util.List;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.gson.annotations.Expose;
/**
* Template represents template entry in registry
*/
public class Template {
publi... |
package org.a11y.brlapi;
public abstract class Client extends Program {
private final ConnectionSettings connectionSettings = new ConnectionSettings();
public final Client setServerHost (String host) {
connectionSettings.setServerHost(host);
return this;
}
public final Client setAuthorizationSchemes (St... |
package com.rarchives.ripme.ui;
import java.awt.Color;
import java.awt.Container;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.... |
// 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... |
package de.thingweb.repository;
import java.util.List;
import java.lang.String;
import java.lang.Boolean;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.HashMap;
import java.net.URI;
import java.io.ByteArrayInputStream;
import de.thingweb.repository.rest.RESTServerInstance;
import de.t... |
package com.rultor.maven.plugin;
import com.jcabi.aspects.Loggable;
import com.jcabi.log.Logger;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.maven.execution.ExecutionListener;
import org.apache.maven.execution.MavenExecutionRequest;
import org.apache.maven.execution.MavenSession;
import o... |
// 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... |
package com.senac.petshop.rnval;
import com.senac.petshop.bean.Dono;
import com.senac.petshop.infra.ValidacaoRN;
import com.senac.petshop.infra.ValidacaoRNException;
/**
*
* @author lossurdo
*/
public class DonoRNVal implements ValidacaoRN<Dono> {
@Override
public void validarSalvar(Dono bean) {
if (... |
public class Game {
private int rolls[] = new int[21];
private int currentRoll = 0;
public void roll(int pins) {
rolls[currentRoll++] = pins;
}
public int score() {
int score = 0;
int frameIndex = 0;
for (int frame = 0; frame < 10; frame++) {
if (rolls[fra... |
// 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... |
package com.sentenial.ws.service;
import com.sentenial.ws.client.AuthHandler;
import javax.xml.ws.BindingProvider;
import javax.xml.ws.Service;
import javax.xml.ws.handler.Handler;
import javax.xml.ws.handler.HandlerResolver;
import javax.xml.ws.handler.PortInfo;
import java.util.ArrayList;
import java.util.List;
impor... |
// 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... |
package me.zombieranke.Schatttenwanderer;
import java.io.IOException;
import java.util.ArrayList;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import org.newdawn.slick.Music;
import org.newdawn.... |
package org.nd4j.parameterserver.distributed.messages;
import org.agrona.concurrent.UnsafeBuffer;
import org.apache.commons.io.input.ClassLoaderObjectInputStream;
import org.apache.commons.lang3.SerializationUtils;
import org.nd4j.parameterserver.distributed.conf.VoidConfiguration;
import org.nd4j.parameterserver.distr... |
package com.sixtyfour.parser;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import com.sixtyfour.elements.commands.Command;
import com.sixtyfour.elements.commands.Gosub;
import com.sixtyfour.elements.commands.Goto;
im... |
// 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... |
package org.opencb.opencga.storage.core.alignment.adaptors;
import ga4gh.Reads;
import org.apache.commons.lang3.time.StopWatch;
import org.ga4gh.models.ReadAlignment;
import org.opencb.biodata.models.core.Region;
import org.opencb.biodata.tools.alignment.AlignmentFilters;
import org.opencb.biodata.tools.alignment.Align... |
package com.softartisans.timberwolf;
import java.util.Date;
public interface Email {
String getBody();
String getSender();
String[] getRecipients();
String[] getCcRecipients();
String[] getBccRecipients();
String getSubject();
Date getTimeSent();
// TODO: What other common headers do we ... |
// 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... |
// SwingDisplayPanel.java
package imagej.ui.swing.display;
import imagej.data.Data;
import imagej.data.Dataset;
import imagej.data.display.DataView;
import imagej.data.display.DisplayWindow;
import imagej.data.display.ImageDisplay;
import imagej.data.display.ImageDisplayPanel;
import imagej.data.roi.Overlay;
import ima... |
// 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... |
package org.duracloud.services.amazonmapreduce.postprocessing;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.input.AutoCloseInputStream;
import org.duracloud.client.ContentStore;
import org.duracloud.common.error.DuraCloudRuntimeException;
import org.duracloud.services.amazonmapreduce.AmazonMapRedu... |
package com.vzome.core.editor;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import com.vzome.core.commands.Command;
import com.vzome.core.commands.XmlSaveFormat;
imp... |
package de.mccityville.libmanager.util;
import org.eclipse.aether.impl.DefaultServiceLocator;
import java.util.logging.Level;
import java.util.logging.Logger;
public class LoggerServiceLocatorErrorHandler extends DefaultServiceLocator.ErrorHandler {
private final Logger logger;
public LoggerServiceLocatorErrorH... |
// 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... |
package com.johnuckele.vivarium.scripts;
import java.io.File;
import java.io.IOException;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
public class CreateBlueprintTest
{
@Rule
public TemporaryFolder folder = new TemporaryFolder();
public Stri... |
// 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... |
package de.dhbw.humbuch.guice;
import com.google.common.eventbus.EventBus;
import com.google.inject.Provides;
import com.google.inject.TypeLiteral;
import com.google.inject.multibindings.MapBinder;
import com.google.inject.persist.jpa.JpaPersistModule;
import com.google.inject.servlet.ServletModule;
import com.google.i... |
package com.artemzin.android.wail.ui.fragment.main;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.SwitchCompat;
import android.view.Gravity;
import android.view.LayoutInflater;
imp... |
// 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... |
package com.outerthoughts.notezap;
import java.io.IOException;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http... |
package net.dlogic.kryonet.common.manager;
import net.dlogic.kryonet.common.constant.ErrorMessage;
import net.dlogic.kryonet.common.entity.Room;
import net.dlogic.kryonet.common.entity.User;
public class RoomManager extends BaseManager<Room> {
public void addUserToRoom(User user, int roomId) throws RoomManagerExcep... |
/**
*
* Sample.java
* @author echeng (table2type.pl)
*
* the Sample
*
*
*/
package edu.yu.einstein.wasp.model;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
import org.hibernate.envers.Audited;
import org.hibernate.envers.NotAudited;
import org.hibernate.validator.constraints.*;
impo... |
package com.learning.ads;
public class EulerGCD {
/**
* A recursive implementation of EULER GCD algorithm
* @param a
* @param b
* @return gcd of a and b
*/
public static int gcd(int a, int b){
if(b == 0){
return a;
}
return gcd(b, a%b);
}
publ... |
package exnihiloadscensio.tiles;
import java.util.List;
import java.util.Random;
import exnihiloadscensio.enchantments.ENEnchantments;
import exnihiloadscensio.networking.PacketHandler;
import exnihiloadscensio.registries.SieveRegistry;
import exnihiloadscensio.registries.types.Siftable;
import exnihiloadscensio.util.B... |
package com.lhkbob.entreri;
/**
* <p>
* Result represents a computed result, preferably that of a bulk computation,
* performed by a Controller. Results allow Controllers to easily pass data to
* other controllers that might be interested in their computations.
* </p>
* <p>
* Controllers that wish to expose resu... |
package net.miz_hi.smileessence.menu;
import twitter4j.StatusUpdate;
import net.miz_hi.smileessence.Client;
import net.miz_hi.smileessence.activity.MainActivity;
import net.miz_hi.smileessence.activity.SettingActivity;
import net.miz_hi.smileessence.async.AsyncFavoriteTask;
import net.miz_hi.smileessence.async.AsyncTwe... |
package fi.eis.applications.dom4j;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Locale;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
import org.joda.time.DateTime;
@SuppressWarnings("unchec... |
package com.timepath.hl2;
import com.timepath.hl2.io.captions.VCCD;
import com.timepath.plaf.x.filechooser.BaseFileChooser;
import com.timepath.plaf.x.filechooser.NativeFileChooser;
import com.timepath.steam.io.VDF;
import com.timepath.steam.io.VDFNode;
import com.timepath.steam.io.storage.ACF;
import com.timepath.util... |
package fi.tekislauta.webserver;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import fi.tekislauta.db.Database;
import fi.tekislauta.db.objects.BoardDao;
import fi.tekislauta.db.objects.DaoException;
import fi.tekislauta.db.objects.ModelValidationException;
import fi.tekislauta.db.objects.Po... |
package de.teiesti.postie;
import org.pmw.tinylog.Logger;
import java.io.*;
import java.net.Socket;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.LinkedBlockingDeque;
public abstract class Postman<Letter> implements Cloneabl... |
package ca.corefacility.bioinformatics.irida.service.impl.integration.analysis.submission;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.Collection;
import java.util.Itera... |
package hk.ust.comp4321.engine;
import java.io.IOException;
import hk.ust.comp4321.database.InvertedIndexTable;
/**
*
* @author Paul Wong
*
*/
public class TermWeight {
// Constants and fields.
InvertedIndexTable invertedIndexTable;
private int wordId;
private int pageId;
private final int total... |
package embeddings;
import java.util.Arrays;
import java.util.HashMap;
import static embeddings.EmbeddingsParser.NBYTES;
import static java.nio.charset.StandardCharsets.UTF_8;
/**
* Sample class for using word embeddings.
* Provides an enum that statically loads embeddings
*/
public class WordEmbeddings {
private ... |
package i5.las2peer.communication;
import i5.las2peer.p2p.AgentNotKnownException;
import i5.las2peer.persistency.EncodingFailedException;
import i5.las2peer.persistency.MalformedXMLException;
import i5.las2peer.persistency.XmlAble;
import i5.las2peer.security.Agent;
import i5.las2peer.security.AgentStorage;
import i5.l... |
package org.jboss.as.test.integration.jpa.hibernate.sessionfactorytest;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.hibernate.Session;
import org.hi... |
package info.losd.galen.client;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpResponse;
import org.apache.http.client.fluent.Request;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.StringWriter;
public class ApiRequest {
Logger logger = LoggerF... |
package org.jboss.aerogear.unifiedpush.test;
import com.google.android.gcm.server.Message;
import java.util.List;
import java.util.ArrayList;
public class SenderStatistics {
public List<String> deviceTokens = new ArrayList<String>();
public Message gcmMessage;
public String apnsAlert;
public int apnsBad... |
package file;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* ClassName: ReadAndWriteTextFile
* Description:
* @author angilin
* @... |
package fileManager;
//Servlet-importer
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.HttpConstraint;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRe... |
package main.java.filemanager;
import java.io.File;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ht... |
package gg.uhc.uhc.modules;
import com.google.common.base.Preconditions;
import gg.uhc.uhc.inventory.IconStack;
import gg.uhc.uhc.messages.MessageTemplates;
import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.... |
package info.bitrich.xchangestream.okex;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import info.bitrich.xchangestream.okex.dto.RequestMessage;
import info.bitrich.xchangestream.service.netty.JsonNettyStreamingService;
import info.bitrich.xchangestream.service.net... |
package io.quarkus.container.image.deployment;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Optional;
import org.junit.jupiter.api.Test;
class ContainerImageConfigEffectiveGroupTest {
public static final String USER_NAME_SYSTEM_PROPERTY = "user.name";
private ContainerImageConfi... |
package mathsquared.resultswizard2;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Map;
import java.util.Queue;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutionException;
impo... |
package me.modmuss50.rm;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.mi... |
package io.quarkus.funqy.runtime.bindings.knative.events;
import static io.quarkus.funqy.runtime.bindings.knative.events.KnativeEventsBindingRecorder.RESPONSE_SOURCE;
import static io.quarkus.funqy.runtime.bindings.knative.events.KnativeEventsBindingRecorder.RESPONSE_TYPE;
import java.io.InputStream;
import java.util.H... |
package org.xdi.oxauth.model.token;
import com.google.common.collect.Lists;
import org.apache.commons.lang.StringUtils;
import org.codehaus.jettison.json.JSONArray;
import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.In;
impor... |
package com.xpn.xwiki.gwt.api.server;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.xpn.xwiki.XWiki;
import com.xpn.xwiki.XWikiContext;
import com.xpn.xwiki.XWikiException;
import com.xpn.xwiki.doc.XWikiAttachment;
import com.xpn.xwiki.doc.XWikiDocument;
import com.xpn.xwiki.doc.XWikiLock;
impo... |
package org.springframework.ide.vscode.manifest.yaml;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import org.junit.Test;... |
package org.bullbots.visionprocessing;
import org.bullbots.visionprocessing.processor.AutoInfo;
import org.bullbots.visionprocessing.processor.BallFinderQueue;
import org.bullbots.visionprocessing.processor.ImgInfo;
import org.opencv.core.Mat;
public class VisionProcessor extends AbstractVisionProcessor {
BallFinde... |
package innovimax.mixthem;
import innovimax.mixthem.arguments.*;
import innovimax.mixthem.io.*;
import innovimax.mixthem.operation.*;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import java.util.logging.ConsoleHandler;
import java.util.logging.Handler;
import ja... |
package net.fortuna.ical4j.model;
import net.fortuna.ical4j.util.CompatibilityHints;
import net.fortuna.ical4j.util.Dates;
import net.fortuna.ical4j.util.TimeZones;
import org.apache.commons.lang3.builder.EqualsBuilder;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.