answer stringlengths 17 10.2M |
|---|
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.json.JSONException;
import org.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRe... |
import com.equalexperts.weather1self.client.Lib1SelfClient;
import com.equalexperts.weather1self.client.OpenWeatherMapClient;
import com.equalexperts.weather1self.client.WeatherUndergroundClient;
import com.equalexperts.weather1self.client.response.TemperatureDatum;
import com.equalexperts.weather1self.model.lib1self.E... |
package main.java;
import static spark.Spark.*;
public class Main {
public static void main(String[] args) {
staticFileLocation("/public"); // Static files (css,js etc..)
get("/hello", (req, res) -> "JWebPoll is awesome");
}
} |
import java.util.Map;
import java.util.HashMap;
import javax.swing.JOptionPane;
import spark.ModelAndView;
import spark.template.velocity.VelocityTemplateEngine;
import static spark.Spark.*;
public class Task {
private static ArrayList<Task> instances = new ArrayList<Task>();
private String mDescription;
private ... |
package br.com.kungFood.repository.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Table(name="tb_funcionario")
@Entity
@Name... |
package by.xgear.whois.ui.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Camera;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.support.v4.view.GestureDetectorCompat;
impo... |
package ca.cumulonimbus.pressurenetsdk;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.methods.HttpGet;
import ... |
package cat.mobilejazz.utilities.debug;
import cat.mobilejazz.utilities.format.StringFormatter;
import android.util.Log;
public class Debug {
private static boolean internalMethod(StackTraceElement e) {
return e.getClassName().startsWith("dalvik.") ||
e.getClassName().startsWith("java.lang."... |
package cat.mobilejazz.utilities.debug;
import android.util.Log;
import cat.mobilejazz.utilities.BuildConfig;
import cat.mobilejazz.utilities.format.StringFormatter;
public class Debug {
private static boolean internalMethod(StackTraceElement e) {
return e.getClassName().startsWith("dalvik.") || e.getClassN... |
package org.caleydo.rcp.perspective;
import java.util.List;
import java.util.logging.Logger;
import org.caleydo.core.data.IUniqueObject;
import org.caleydo.core.manager.IEventPublisher;
import org.caleydo.core.manager.event.EMediatorType;
import org.caleydo.core.manager.event.IEventContainer;
import org.caleydo.core.ma... |
package com.dmdirc.parser.irc;
import com.dmdirc.parser.common.MyInfo;
import com.dmdirc.parser.interfaces.callbacks.NickInUseListener;
/**
* Process a NickInUse message.
* Parser implements handling of this if Pre-001 and no other handler found,
* adding the NickInUse handler (addNickInUse) after 001 is prefered ov... |
package com.esotericsoftware.kryo;
import static com.esotericsoftware.minlog.Log.DEBUG;
import static com.esotericsoftware.minlog.Log.debug;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.BufferOverflowException;
import java.nio.ByteBuffer;
/**
* Serializes objects... |
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
i... |
package com.pandazilla.datastrutures.tree;
public class Tree {
private Node root;
public Tree() {
}
public void insert(int id, double data) {
Node node = new Node();
node.setKey(id);
node.setData(data);
if (root == null) {
root = node;
} else {
... |
package com.perpetumobile.bit.http;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.CookieHandler;
import java.net.HttpURLConnection;
import java.net.URL;
imp... |
package com.tactfactory.harmony;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.regex.Pattern;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jd... |
/* Anagram Game Application */
package com.toy.anagrams.lib;
/**
* Implementation of the logic for the Anagram Game application.
*/
final class StaticWordLibrary extends WordLibrary {
private static final String[] WORD_LIST = {
"abstraction",
"ambiguous",
"arithmetic",
"backslash",... |
package com.translationdata.p000;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import com.translationdata.JUnitTe... |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Game {
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
Person p = new Person(3, 3);
Maze maze = new Maze(
"",
"........",
... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.net.URI;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark.get;
import java.net.URISyntaxException;
import com.heroku.sdk.jdbc.Dat... |
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import CLOPE.CLOPEClusterer;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.*;
import com.google.gson.Gson;
import to.ClusterTO;
import to.DataSetTo;
import java.util.HashMap;
import java.util.List;... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark.get;
import static javax.measure.un... |
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.sql.*;
//Alex's stuff
import java.io.BufferedReader;
import java.lang.StringBuf... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.io.*;
import java.util.*;
import freemarker.template.*;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAn... |
import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark.get;
import static javax.measure.un... |
package main.java;
import java.awt.EventQueue;
import main.python.PyInterpreter;
public class Main {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
HomeFrame frame = new HomeFrame();
... |
package com.apigee.proxywriter;
/**
*
* The GenerateProxy program generates a Apigee API Proxy from a WSDL Document. The generated proxy can be
* passthru or converted to an API (REST/JSON over HTTP).
*
* How does it work?
* At a high level, here is the logic implemented for SOAP-to-API:
* Step 1: Parse the WSDL... |
// Generated by delegate_gen on Mon Jan 13 09:30:38 CET 2014
package info.tregmine.api;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.bukkit.entity.Player.Spigot;
import info.tregmine.Tregmine;
import net.md_5... |
package com.bo0tzz.breaklimiter;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.scheduler.BukkitRunnable;
import java.util.M... |
package com.jmex.bui;
import com.jme.renderer.Renderer;
import com.jmex.bui.enumeratedConstants.Orientation;
import com.jmex.bui.event.ChangeEvent;
import com.jmex.bui.event.ChangeListener;
import com.jmex.bui.event.MouseWheelListener;
import com.jmex.bui.layout.BorderLayout;
import com.jmex.bui.layout.GroupLayout;
imp... |
package com.connorhaigh.javavpk.core;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
import com.connorhaigh.javavpk.exceptions.ArchiveException;
public class Archive
{
/**
* Create a new VPK arc... |
// BUI - a user interface library for the JME 3D engine
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should ... |
package com.digero.maestro.view;
import info.clearthought.layout.TableLayout;
import info.clearthought.layout.TableLayoutConstants;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Image;
import java.awt.Insets;
import java.awt.dnd.DropTarget;
import java.awt.event.Ac... |
package org.jivesoftware.util;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.util.*;
/**
* Default, non-distributed implementation of the Cache interface.
* The algorithm for cache is as follows: a HashMap is maintained for fast
* object lookup. Two linked li... |
package com.dyo.d3quests;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Loca... |
package com.ecyrd.jspwiki.tags;
import java.io.IOException;
import javax.servlet.jsp.JspWriter;
import com.ecyrd.jspwiki.WikiEngine;
import com.ecyrd.jspwiki.WikiPage;
import com.ecyrd.jspwiki.providers.ProviderException;
/**
* Writes page content in HTML.
* <P><B>Attributes<B></P>
* <UL>
* <LI>page - Page na... |
package com.esotericsoftware.clippy;
import static com.esotericsoftware.clippy.Win.User32.*;
import static com.esotericsoftware.clippy.util.Util.*;
import static com.esotericsoftware.minlog.Log.*;
import static java.awt.event.KeyEvent.*;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.HashMap;... |
package com.flextao.jruote.models;
import java.io.ByteArrayInputStream;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.... |
package com.hypirion.io;
import java.io.InputStream;
import java.io.IOException;
import java.io.InterruptedIOException;
public class RevivableInputStream extends InputStream {
protected InputStream in;
protected volatile boolean killed;
protected volatile boolean streamClosed;
protected volatile int dat... |
package com.irccloud.android;
import java.util.ArrayList;
import org.json.JSONException;
import org.json.JSONObject;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import com.google.android.gcm.GCMRegistrar;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
imp... |
/*
* EDIT: 02/09/2004 - Renamed original WidgetViewport to WidgetViewRectangle.
* GOP
*/
package com.jme.renderer.lwjgl;
import java.io.File;
import java.io.IOException;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.util.logging.Level;
import javax.imageio.ImageIO;
import java.awt.image.Buffere... |
package com.novell.spsample.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.Ke... |
package com.opencms.workplace;
import com.opencms.core.*;
import com.opencms.file.*;
import com.opencms.template.*;
public abstract class A_CmsWpElement implements I_CmsLogChannels, I_CmsWpElement, I_CmsWpConstants {
/**
* Reference to to buttons definition file
*/
protected static CmsXmlWpButtonsDefF... |
package com.team254.lib.util.gyro;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import com.team254.lib.util.Util;
/**
* Thread which is responsible for reading the gyro
*/
public class GyroThread {
private static final int K_READING_RATE = 200;
private static final int K_ZEROING_... |
package com.winterwell.gson;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Type;
import com.winterwell.gson.stream.JsonReader;
import com.winterwell.gson.stream.JsonToken;
import com.winterwell.gson.stream.JsonWriter;
import com.winterwell.utils.MathUtils;
import com.winterw... |
package com.woniu.eaypay.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class UserServlet extends HttpServlet {
private static final long serialVers... |
// Parameter.java
package imagej.plugin;
import imagej.plugin.gui.WidgetStyle;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* TODO
*
* @author Johannes Schindelin
* @author Grant Harris
* @author... |
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.cloud.storage.template;
import java.io.File;
import java.util.Map;
import javax.ejb.Local;
import javax.naming.ConfigurationException;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.ap... |
package hu.zhuren.shuai.utils;
import android.util.Log;
public class LogUtils {
private static final String TAG = LogUtils.class.getSimpleName();
private static final boolean enableLog = true;
private LogUtils() {
}
public static void debug(String tag, String msg) {
if (enableLog)
... |
package hudson.maven;
import hudson.Launcher;
import hudson.maven.reporters.MavenAbstractArtifactRecord;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.model.Result;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Publisher;
import n... |
package net.meeusen.crypto;
import java.io.File;
import java.io.FileInputStream;
import java.security.Key;
import java.security.KeyStore;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.cert.Certificate;
import java.util.Random;
import javax.crypto.KeyGe... |
package de.st_ddt.crazylogin;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import org.bukkit.configuration.Conf... |
package org.jetbrains.plugins.groovy;
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.fileTypes.FileTypeManager;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.project.ProjectManagerAdap... |
package bakatxt.core;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import com.joestelmach.natty.DateGroup;
import com.joestelmach.natty.Parser;
public class BakaTxtSession implements BakaTxtSessionInterface {
private static final String MESSAGE_ADD_NO_TITLE = "Invalid add command... |
package battleships.gui;
import battleships.model.Square;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Line2D;
import javax.swing.JPanel;
/**
* The JPanel which displays the ship.
* <p>
* This class is a panel that displays a ship which it is passed to. The grid is
* resized and scaled... |
package com.health.input;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Objects;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import... |
package org.xbill.DNS;
import java.io.*;
import java.text.*;
import java.util.*;
import org.xbill.DNS.utils.*;
/**
* A representation of a domain name.
*
* @author Brian Wellington
*/
public class Name implements Comparable {
private static final int LABEL_NORMAL = 0;
private static final int LABEL_COMPRESSION = 0x... |
package org.xbill.DNS;
import java.io.*;
import java.net.*;
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... |
package org.xbill.DNS;
import org.xbill.DNS.utils.*;
/**
* Constants and functions relating to DNS Types
*
* @author Brian Wellington
*/
public final class Type {
private static StringValueTable types = new StringValueTable();
/** Address */
public static final short A = 1;
/** Name server */
public static f... |
package com.qwertygid.deutschsim.GUI;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorExcep... |
package de.duenndns.ssl;
import android.app.Activity;
import android.app.Application;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Service;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import andro... |
package de.eric_wiltfang.dictionary;
import java.nio.charset.Charset;
import java.nio.file.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.sql.*;
import java.util.EnumSet... |
package de.gurkenlabs.litiengine.gui;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.geom.Rectangle2D;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.function.IntConsumer;
import de.gurkenlabs.litiengine.Align;
import de.gurk... |
package de.jungblut.math.cuda;
import java.util.Random;
import jcuda.Pointer;
import jcuda.Sizeof;
import jcuda.jcublas.JCublas2;
import jcuda.jcublas.cublasHandle;
import jcuda.jcublas.cublasOperation;
import jcuda.jcublas.cublasPointerMode;
import jcuda.runtime.JCuda;
import jcuda.runtime.cudaDeviceProp;
import de.ju... |
package nars.inference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import nars.storage.Memory;
import nars.config.Parameters;
import nars.control.DerivationContext;
import nars.entity.BudgetValue;
import nars.entity.Sentence;
import nars.entity.Stamp;
impo... |
package dr.app.beauti.generator;
import dr.app.beauti.components.ComponentFactory;
import dr.app.beauti.options.*;
import dr.app.beauti.types.ClockType;
import dr.app.beauti.types.FixRateType;
import dr.app.beauti.types.TreePriorType;
import dr.app.beauti.util.XMLWriter;
import dr.evolution.datatype.DataType;
import dr... |
package dr.inference.model;
import dr.math.matrixAlgebra.Matrix;
import dr.util.Citable;
import dr.util.Citation;
import java.util.List;
/**
* @author Max Tolkoff
* @author Marc Suchard
*/
public class LatentFactorModel extends AbstractModelLikelihood implements Citable {
// private Matrix data;
// private Mat... |
package es.ucm.fdi.tp.views.swing;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swi... |
package com.indeed.proctor.store;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.eclipse.jgit.lib.TextProgressMonitor;
import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider;
import java.io.File;
import java.util.TimerTask;
/**
* Timer task used to periodically run git fetch/r... |
package com.intellij.refactoring.changeSignature.inCallers;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Iconable;
import com.intellij.psi.*;
import com.intellij.psi.presentation.java.ClassPresentationUtil;
import com.intellij.psi.se... |
package com.sg.java8.training.jool;
import org.jooq.lambda.Unchecked;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.... |
package org.openscore.lang.systemtests;
import org.openscore.events.ScoreEvent;
import org.openscore.events.ScoreEventListener;
import org.openscore.lang.api.Slang;
import org.openscore.lang.entities.CompilationArtifact;
import org.springframework.beans.factory.annotation.Autowired;
import java.io.Serializable;
import ... |
package com.altamiracorp.securegraph.test;
import static com.altamiracorp.securegraph.test.util.IterableUtils.assertContains;
import static com.altamiracorp.securegraph.util.IterableUtils.count;
import static com.altamiracorp.securegraph.util.IterableUtils.toList;
import static org.junit.Assert.*;
import com.altamiraco... |
package nl.sense_os.service.subscription;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* <p>
* Manager class for keeping track of DataProducers and DataConsumers
* </p>
*
* @author Steven Mulder <steven@sense-os.nl>
*/
public class SubscriptionManager {
... |
package com.java110.api.listener.owner;
import com.alibaba.fastjson.JSONObject;
import com.java110.api.bmo.owner.IOwnerBMO;
import com.java110.api.bmo.user.IUserBMO;
import com.java110.api.listener.AbstractServiceApiPlusListener;
import com.java110.core.annotation.Java110Listener;
import com.java110.core.context.DataFl... |
package cz.muni.fi.pa165.methanolmanager.service.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserDto {
private Integer id;
private String name;
private String username;
private String password;
... |
package org.cytoscape.session.internal;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
import org.cytoscape.appli... |
package gov.nih.nci.cananolab.dto.common;
import gov.nih.nci.cananolab.service.security.UserBean;
import gov.nih.nci.cananolab.util.Constants;
import java.util.ArrayList;
import java.util.List;
public class SecuredDataBean {
private List<AccessibilityBean> userAccesses = new ArrayList<AccessibilityBean>();
priv... |
package com.jetbrains.python.psi.resolve;
import com.jetbrains.python.psi.types.TypeEvalContext;
/**
* @author yole
*/
public class PyResolveContext {
private final boolean myAllowImplicits;
private final TypeEvalContext myTypeEvalContext;
private PyResolveContext(boolean allowImplicits) {
myAllowImplicits ... |
// ImprovisionTiffReader.java
package loci.formats.in;
import java.io.IOException;
import java.util.*;
import loci.formats.*;
import loci.formats.meta.FilterMetadata;
import loci.formats.meta.MetadataStore;
public class ImprovisionTiffReader extends BaseTiffReader {
// -- Fields --
private String[] cNames;
privat... |
package cgeo.geocaching.maps;
import cgeo.geocaching.DirectionProvider;
import cgeo.geocaching.IGeoData;
import cgeo.geocaching.IWaypoint;
import cgeo.geocaching.LiveMapInfo;
import cgeo.geocaching.R;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.Settings;
import cgeo.geocaching.StoredList;
import cgeo.ge... |
package mmsort;
import java.util.Comparator;
public class DpsSort implements ISortAlgorithm {
public static final int ALGORITHM_THRESHOLD = 20;
/**
* dpsSort
*
* Dual-pivot Stable Quicksort
*
* Dual-pibot Quicksort
*
* 3 way partition Quicksort
*
* @param array sort ... |
package cx2x.xcodeml.xnode;
import cx2x.xcodeml.helper.XelementHelper;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import java.util.ArrayList;
import java.util.List;
/**
* XcodeML AST node.
*
* @author clementval
*/
public class Xnode {
protected final Element _baseElement;
... |
package ca.teamTen.recitopia;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
/**
* A Recipe with a name, ingredients, instructions, photos
* and an author. Recipes can be published (stored on the server)
* or not (stored on the phone).
*
* Recipe instances ... |
//import uk.co.uwcs.choob.*;
import uk.co.uwcs.choob.modules.*;
import uk.co.uwcs.choob.support.*;
import uk.co.uwcs.choob.support.events.*;
import java.util.*;
//import java.security.*;
import java.util.regex.*;
public class UserTypeCheckResult
{
boolean hasChecked;
boolean isBot;
boolean isAway;
boole... |
package gov.nih.nci.evs.browser.utils;
import java.util.*;
import java.sql.*;
import org.LexGrid.LexBIG.LexBIGService.CodedNodeSet.*;
import org.LexGrid.LexBIG.DataModel.Collections.*;
import org.LexGrid.LexBIG.DataModel.Core.*;
import org.LexGrid.LexBIG.Exceptions.*;
import org.LexGrid.LexBIG.Impl.*;
import org.LexGri... |
package dr.app.beauti.generator;
import dr.app.beast.BeastVersion;
import dr.app.beauti.components.ComponentFactory;
import dr.app.beauti.enumTypes.ClockType;
import dr.app.beauti.enumTypes.FixRateType;
import dr.app.beauti.enumTypes.StartingTreeType;
import dr.app.beauti.enumTypes.TreePriorType;
import dr.app.beauti.o... |
package dr.app.beauti.generator;
import dr.app.beast.BeastVersion;
import dr.app.beauti.util.XMLWriter;
import dr.app.beauti.components.ComponentFactory;
import dr.app.beauti.options.*;
import dr.app.beauti.options.Parameter;
import dr.app.beauti.priorsPanel.PriorType;
import dr.evolution.alignment.Alignment;
import dr... |
package dr.app.vcs;
import dr.evolution.coalescent.CoalescentSimulator;
import dr.evolution.coalescent.PiecewiseLinearPopulation;
import dr.evolution.tree.Tree;
import dr.evolution.util.Date;
import dr.evolution.util.Taxa;
import dr.evolution.util.Taxon;
import dr.evolution.util.Units;
import ml.options.Options;
import... |
package dr.evolution.alignment;
import dr.evolution.datatype.DataType;
import dr.evolution.sequence.Sequence;
import dr.evolution.sequence.Sequences;
import dr.evolution.util.Taxon;
import dr.evolution.util.TaxonList;
import java.util.Arrays;
import java.util.Map;
/**
* A simple alignment class that implements gaps by... |
package vn.edu.fpt.hsts.bizlogic.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import vn.edu.fpt.hsts.bizlogic.model.DoctorModel;
i... |
package org.voltdb.utils;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.i... |
package dr.evomodel.operators;
import dr.evolution.tree.MutableTree;
import dr.evolution.tree.NodeRef;
import dr.evomodel.tree.TreeModel;
import dr.inference.operators.*;
import dr.math.MathUtils;
import dr.xml.*;
/**
* Implements branch exchange operations.
* There is a NARROW and WIDE variety.
* The narrow exchang... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.mod.hrs.form;
import erp.mod.SModConsts;
import erp.mod.SModSysConsts;
import erp.mod.hrs.db.SDbAbsence;
import erp.mod.hrs.db.SDbAbsenceConsumption;
import erp.mod.hrs.db.SDbBenefitTable;
import erp.mod.hrs.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.mtrn.form;
import erp.data.SDataConstants;
import erp.data.SDataConstantsSys;
import erp.data.SDataUtilities;
import erp.lib.SLibConstants;
import erp.lib.SLibUtilities;
import erp.lib.form.SFormComponentItem... |
package okapi;
import com.codahale.metrics.ConsoleReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.SharedMetricRegistries;
import com.codahale.metrics.graphite.Graphite;
import com.codahale.metrics.graphite.GraphiteReporter;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.V... |
//@snippet-start cma_main_migrator
package org.objectweb.proactive.examples.userguide.cmagent.migration;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.objectweb.proactive.api.PAActiveObject;
import org.objectweb.proactive.api.PADeployment;
import org.objectweb.p... |
// This code is developed as part of the Java CoG Kit project
// This message may not be removed or altered.
package org.globus.cog.karajan.scheduler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
impor... |
package dr.evomodel.treedatalikelihood.discrete;
import dr.evolution.tree.NodeRef;
import dr.evomodel.tree.TreeModel;
import dr.evomodel.treedatalikelihood.BeagleDataLikelihoodDelegate;
import dr.evomodel.treedatalikelihood.TreeDataLikelihood;
import dr.inference.hmc.GradientWrtParameterProvider;
import dr.inference.lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.