answer stringlengths 17 10.2M |
|---|
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class AquilaProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
AquilaProtocolDecoder decoder = new AquilaProtocolDecoder(new AquilaProtocol());
verifyPosition(de... |
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class HuabaoProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
HuabaoProtocolDecoder decoder = new HuabaoProtocolDecoder(new HuabaoProtocol());
verifyPosition(de... |
package org.bouncycastle.jce.provider.test;
import java.security.AlgorithmParameters;
import java.security.Security;
import java.security.spec.InvalidParameterSpecException;
import javax.crypto.Cipher;
import javax.crypto.Mac;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec... |
package org.broad.igv.sam;
import htsjdk.samtools.util.CloseableIterator;
import org.broad.igv.AbstractHeadlessTest;
import org.broad.igv.PreferenceManager;
import org.broad.igv.feature.Locus;
import org.broad.igv.feature.Range;
import org.broad.igv.sam.reader.AlignmentReader;
import org.broad.igv.sam.reader.AlignmentR... |
package org.broad.tribble;
import org.broad.igv.util.TestUtils;
import org.broad.tribble.index.Index;
import org.broad.tribble.index.IndexFactory;
import org.broad.tribble.util.LittleEndianOutputStream;
import org.broadinstitute.sting.utils.codecs.vcf.VCFCodec;
import org.broadinstitute.sting.utils.variantcontext.Varia... |
public class Hello_World{
public static void main(String[] args) {
System.out.println("Hola mundo");
Chicken chicken;
chicken=new Chicken();
chicken.initializeData("Brown, ", 2);
chicken.addName("Lucy");
chicken.print();
chicken.layAnEgg();
chicken.poop();
chicken.drink();
Chic... |
package sample;
import javafx.animation.AnimationTimer;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.Image;
import javafx.scene.input... |
package models;
import models.enumeration.ResourceType;
import models.resource.Resource;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.validation.constraints.Size;
@Entity
public class CommitComment extends CodeComment {
private static final long serialVersionUID =... |
package io.spine.base;
import com.google.errorprone.annotations.Immutable;
import io.spine.base.MessageFile.Predicate;
/**
* A common interface for rejection messages.
*
* <p>This interface is used by the Model Compiler for marking rejection messages.
* By convention, rejection messages are defined in a proto file,... |
package org.hyperic.sigar.test;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarNotImplementedException;
import org.hyperic.sigar.ptql.ProcessQuery;
import org.hyperic.sigar.ptql.ProcessQueryFactory;
import org.hyperic.sigar.ptql.MalformedQueryException;
public cla... |
package com.rho.net;
import java.io.IOException;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import javax.microedition.io.Connection;
import javax.microedition.io.SocketConnection;
import net.rim.device.api.io.SocketConnectionEnhanced;
import net.rim.device.api.system.DeviceInfo... |
package org.webrtc;
import java.util.ArrayList;
import java.util.concurrent.CountDownLatch;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import android.annotation.SuppressLint;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.Surfa... |
package butterknife;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.util.Log;
import android.util.Property;
import android.view.View;
import butterknife.internal.ButterKnifeProcessor;
import java.lang.reflect.Method;
import java.util.LinkedHashMap;
import java.... |
package ru.revdaalex.oodsrp;
public class Calculator {
/**
* final result.
*/
private double result;
/**
* Summation of numbers.
* @param first int first.
* @param second int second.
* @return result.
*/
public double add(double first, double second){
return re... |
package com.namelessmc.plugin.common;
import com.namelessmc.java_api.*;
import com.namelessmc.java_api.exception.UnknownNamelessVersionException;
import com.namelessmc.plugin.MavenConstants;
import com.namelessmc.plugin.common.command.AbstractScheduler;
import com.namelessmc.plugin.common.logger.AbstractLogger;
import ... |
package se.sics.cooja.plugins;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedReader;
import j... |
// Administrator of the National Aeronautics and Space Administration
// This software is distributed under the NASA Open Source Agreement
// (NOSA), version 1.3. The NOSA has been approved by the Open Source
// Initiative. See the file NOSA-1.3-JPF at the top of the distribution
// directory tree for the complete NO... |
package ccm.autoCrafter2000;
import ccm.autoCrafter2000.blocks.AutoCrafterBlock;
import ccm.autoCrafter2000.network.GuiHandler;
import ccm.autoCrafter2000.util.Config;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.com... |
package org.python;
public class ImportLib {
/**
* Factory method to obtain Python classes from their Java counterparts
*/
public static org.python.types.Module __import__(
java.lang.String python_name,
java.util.Map<java.lang.String, org.python.Object> globals,
jav... |
package org.jenetics.util;
import static org.jenetics.util.object.nonNull;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public final class arrays {
private arrays() { object.noInstanceOf(arrays.class); ... |
package cn.momia.mapi.api.v1.feed;
import cn.momia.api.course.CourseServiceApi;
import cn.momia.api.course.dto.CourseDto;
import cn.momia.api.feed.FeedServiceApi;
import cn.momia.api.feed.dto.FeedCommentDto;
import cn.momia.api.feed.dto.FeedDto;
import cn.momia.api.feed.dto.FeedStarDto;
import cn.momia.api.user.UserSer... |
package org.spoofax.terms;
import static java.lang.Math.min;
import static org.spoofax.interpreter.terms.IStrategoTerm.MAXIMALLY_SHARED;
import static org.spoofax.interpreter.terms.IStrategoTerm.MUTABLE;
import static org.spoofax.interpreter.terms.IStrategoTerm.SHARABLE;
import static org.spoofax.interpreter.terms.IStr... |
package co.phoenixlab.discord;
import co.phoenixlab.discord.api.DiscordApiClient;
import co.phoenixlab.discord.api.entities.*;
import co.phoenixlab.discord.api.event.LogInEvent;
import co.phoenixlab.discord.api.event.MemberChangeEvent;
import co.phoenixlab.discord.api.event.MessageReceivedEvent;
import co.phoenixlab.di... |
package com.airbnb.chancery;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3Client;
import com.google.common.eventbus.AsyncEventBus;
import com.google.common.eventbus.EventBus;
import com.sun.jersey.api.client.Client;
import com.yammer.dropwizard.Service;
import com.yammer.dropw... |
package com.austinv11.etf.writing;
import com.austinv11.etf.ETFConfig;
import com.austinv11.etf.erlang.*;
import com.austinv11.etf.util.ETFException;
import com.austinv11.etf.util.ReflectionUtils;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.nio.ByteO... |
package com.baicai.domain.system;
/**
*
* @Description:
* @author waitfox@qq.com
* @date 2016522 1:18:28
* @version V1.0
*
*/
public enum UserAction {
Login("login"),
Logout("logout"),
ChangePwd("changepwd"),
Fail("fail"),
Privilege("privilege"),
Browser("browser");
private String action;... |
package com.checkmarx.jenkins;
import hudson.AbortException;
import hudson.EnvVars;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.BuildListener;
import hudson.model.Result;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Cause;
i... |
package com.crawljax.core.state;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import com.crawljax.util.database.HibernateUtil;
/**
* The state vertix class which represents a state in the browser.
*
* @author mesbah
* @version $Id$
*/
public class St... |
package com.ericski.lightsabercpu;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.... |
package com.github.andriell.nashorn;
import com.github.andriell.general.Files;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import javax.scrip... |
package com.github.hypfvieh.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Utility class for String manipulation.
*
* @author hypfvieh
*... |
package com.github.pedrovgs.app;
/**
* Given a positive integer passed as parameter return the number of bits that parameter contains
* equals to
* one in a binary representation. For example:
*
* Input: 1. Output: 1. Binary representation: 1.
* Input: 2. Output: 1. Binary representation: 10.
* Input: 3. Output:... |
package com.github.s4ke.moar.util;
/**
* <p>
* A CharSequence implementation that allows us to
* create SubSequences of CharSequences without
* having to build a string.
* <p/>
* <p>
* This helps to reduce the amount of time spent
* building String objects and also reduces the amount
* of memory used compared ... |
package com.gregory.testing.utils;
import java.io.*;
import java.net.URISyntaxException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import static com.gregory.testing.utils.StringUtils.join;
public final class FileUtils {
... |
/*
* This is a generated class.
*/
package com.mailjet.client.resource;
import com.mailjet.client.Resource;
/**
*
* @author Guillaume Badi
*/
public class Contact {
public static Resource resource = new Resource("contact", "");
public static String CREATEDAT = "CreatedAt";
public static String ISEXCLUD... |
/**
* MagicParameters.java
*/
package com.pandorabots.api;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
public class MagicParameters {
/** Version. */
private String version = "0.0.6";
/** The User Key assigned ... |
package com.rollbar.payload.data.body;
import com.rollbar.payload.utilities.ArgumentNullException;
import com.rollbar.payload.utilities.Validate;
/**
* Represent a Stack Trace to send to Rollbar
*/
public class Trace implements BodyContents {
/**
* Create a stack trace from a throwable
* @param error th... |
package com.soebes.examples;
public class TheVersionClass
{
public TheVersionClass()
{
System.out.println( " Implementation Title:" + this.getClass().getPackage().getImplementationTitle() );
System.out.println( " Implementation Vendor:" + this.getClass().getPackage().getImplementationVendor() )... |
package com.tinkerpop.pipes.branch;
import com.tinkerpop.pipes.AbstractPipe;
import com.tinkerpop.pipes.Pipe;
import com.tinkerpop.pipes.PipeFunction;
import com.tinkerpop.pipes.util.MetaPipe;
import com.tinkerpop.pipes.util.PipeHelper;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
imp... |
package com.toomasr.sgf4j.board;
import javafx.geometry.Pos;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Line;
import javafx.scene.shape.StrokeType;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.sc... |
package com.yahoo.sketches.hll;
import static com.yahoo.sketches.Util.zeroPad;
import java.nio.ByteOrder;
import com.yahoo.memory.Memory;
import com.yahoo.memory.WritableMemory;
import com.yahoo.sketches.Family;
//@formatter:off
final class PreambleUtil {
private PreambleUtil() {}
public static final String LS = Sy... |
package de.blackcraze.grb.commands;
import static de.blackcraze.grb.util.CommandUtils.getResponseLocale;
import static de.blackcraze.grb.util.CommandUtils.parseStockName;
import static de.blackcraze.grb.util.CommandUtils.parseStocks;
import static de.blackcraze.grb.util.InjectorUtils.getMateDao;
import static de.blackc... |
package de.prob2.ui.consoles.b;
import java.util.List;
import java.util.Objects;
import java.util.ResourceBundle;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.google.inject.Inject;
import de.be4.classicalb.core.parser.exceptions.BCompoundException;
import de.be4.classicalb.core.parser.exce... |
package edu.ufl.cise.cnt5106c.log;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Giacomo Benincasa (giacomo@cise.ufl.edu)
*/
public class LogHelper {
private static final LogHelper _log = new Log... |
package fi.csc.microarray.config;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.InetA... |
package frc.team4215.stronghold;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Victor;
import jaci.openrio.toast.lib.log.Logger;
import jaci.openrio.toast.lib.module.IterativeModule;
import jaci.openrio.toast.lib.registry.Registrar;
public class RobotModule extends IterativeModule {
Victor lef... |
package graphql.introspection;
import graphql.schema.*;
import java.util.ArrayList;
import java.util.List;
import static graphql.Scalars.GraphQLBoolean;
import static graphql.Scalars.GraphQLString;
import static graphql.schema.GraphQLArgument.newArgument;
import static graphql.schema.GraphQLFieldDefinition.newFieldDefi... |
package hudson.plugins.pmd;
import hudson.model.AbstractBuild;
import hudson.plugins.pmd.util.model.JavaProject;
/**
* Creates a new PMD result based on the values of a previous build and the
* current project.
*
* @author Ulli Hafner
*/
public class PmdResultBuilder {
/**
* Creates a result that persists... |
package it.near.sdk.Utils;
import android.app.IntentService;
import android.content.Intent;
import org.json.JSONException;
import it.near.sdk.GlobalConfig;
import it.near.sdk.NearItManager;
import it.near.sdk.R;
import it.near.sdk.Recipes.Models.Recipe;
/**
* @author cattaneostefano.
*/
public abstract class BaseInte... |
package main.java.com.bag.client;
import bftsmart.communication.client.ReplyListener;
import bftsmart.tom.AsynchServiceProxy;
import bftsmart.tom.RequestContext;
import bftsmart.tom.core.messages.TOMMessage;
import bftsmart.tom.core.messages.TOMMessageType;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoft... |
package main.java.com.bag.client;
import bftsmart.communication.client.ReplyReceiver;
import bftsmart.reconfiguration.util.RSAKeyLoader;
import bftsmart.tom.ServiceProxy;
import bftsmart.tom.core.messages.TOMMessage;
import bftsmart.tom.core.messages.TOMMessageType;
import bftsmart.tom.util.TOMUtil;
import com.esoteric... |
package mho.matchstick.objects;
import mho.wheels.structures.Pair;
import org.jetbrains.annotations.NotNull;
import java.util.*;
import static mho.wheels.iterables.IterableUtils.*;
import static org.junit.Assert.*;
public final class LabeledGraph<T extends Comparable<T>> {
private static final @NotNull Comparator<P... |
package net.openhft.chronicle.wire;
import net.openhft.chronicle.bytes.*;
import net.openhft.chronicle.core.Maths;
import net.openhft.chronicle.core.OS;
import net.openhft.chronicle.core.pool.ClassAliasPool;
import net.openhft.chronicle.core.util.ObjectUtils;
import net.openhft.chronicle.core.util.StringUtils;
import n... |
package com.angcyo.uiview.utils;
import android.app.Activity;
import android.app.DownloadManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.content.res.Resources... |
package net.sf.jabref.model;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Collections;
import net.sf.jabref.BibtexFields;
import net.sf.jabref.Globals;
import net.sf.jabref.gui.GUIGlobals;
import net.sf.jabref.logic.util.StringUtil;
import net.sf.jabref.util.Util;
impo... |
package net.thauvin.erik.semver;
/**
* The <code>VersionInfo</code> class is used to hold and retrieve the semantic version values.
*
* @author <a href="mailto:erik@thauvin.net" target="_blank">Erik C. Thauvin</a>
* @created 2016-01-16
* @since 1.0
*/
public class VersionInfo {
private final long epoch = Syst... |
package net.ucanaccess.converters;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.sql.Timestamp;
import java.text.DateFormatSymbols;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.ParseException;
import java.text.SimpleDateF... |
package nl.dykam.dev.reutil.data;
import nl.dykam.dev.reutil.ReUtil;
import nl.dykam.dev.reutil.ReUtilPlugin;
import nl.dykam.dev.reutil.data.annotations.Instantiation;
import nl.dykam.dev.reutil.data.annotations.SaveMoment;
import nl.dykam.dev.reutil.events.AutoEventHandler;
import org.apache.commons.lang.ArrayUtils;
... |
package nom.bdezonia.zorbage.algorithm;
import nom.bdezonia.zorbage.function.Function2;
import java.math.BigDecimal;
import java.math.MathContext;
import ch.obermuhlner.math.big.BigDecimalMath;
import nom.bdezonia.zorbage.algebra.Algebra;
import nom.bdezonia.zorbage.algebra.Allocatable;
import nom.bdezonia.zorbage.alge... |
package org.arkanos.aos.api.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Vector;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;... |
package org.commcare.suite.model;
import org.commcare.core.process.CommCareInstanceInitializer;
import org.commcare.modern.session.SessionWrapperInterface;
import org.commcare.util.CommCarePlatform;
import org.commcare.util.LoggerInterface;
import org.javarosa.core.model.condition.EvaluationContext;
import org.javarosa... |
package org.dynmap.web;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.StringWriter;
import java.net.Socket;
import java.net.URLDecoder;
import java.util.Map.Entry;
import java.util.logging.Logger;
impo... |
package org.gitlab4j.api.models;
import java.util.HashMap;
import java.util.Map;
import org.gitlab4j.api.GitLabApi;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum AccessLevel {
INVALID(-1), NONE(0), MINIMAL_ACCESS(5), GUEST(10), REPORTER(20), DEVE... |
package org.jfree.chart.plot;
import java.awt.geom.Point2D;
/**
* Maintains state information about crosshairs on a plot between successive
* calls to the renderer's draw method. This class is used internally by
* JFreeChart - it is not intended for external use.
*/
public class CrosshairState {
/**
* A f... |
package org.lantern.http;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
i... |
package org.lantern.state;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.Map;
import jav... |
package org.lightmare.cache;
import java.lang.reflect.Method;
/**
* Container class to cache {@link javax.interceptor.Interceptors} annotation
* defined data
*
* @author Levan Tsinadze
* @since 0.0.57-SNAPSHOT
*/
public class InterceptorData {
// Annotated EJB bean class
private Class<?> BeanClass;
pr... |
package org.opencloudb.mpp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concur... |
package org.semanticweb.yars.tld;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URI;
import java.util.HashMap;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class TldManag... |
package permafrost.tundra.tn.route;
import com.wm.app.b2b.server.InvokeState;
import com.wm.app.b2b.server.Server;
import com.wm.app.b2b.server.ServerAPI;
import com.wm.app.b2b.server.ServiceException;
import com.wm.app.tn.db.Datastore;
import com.wm.app.tn.db.SQLStatements;
import com.wm.app.tn.db.SQLWrappers;
import ... |
package sds.assemble.controlflow;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.ArrayDeque;
import java.util.Deque;
import sds.assemble.ExceptionContent;
import sds.assemble.LineInstructions;
import static sds.assemble.controlflow.DominatorNodeSearcher.searchCommon;
import static sds.assemble.c... |
package think.rpgitems.power.impl;
import org.bukkit.*;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.ev... |
package wasdev.sample.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class SimpleServ... |
package xal.sim.scenario;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import xal.model.IComponent;
import xal.model.IElement;
import xal.model.Lattice;
import xal.model.ModelException;
import xal.model.Sector;
import xal.model.xml.L... |
/**
* The interpreter itself. Parses input files and executes the code.
*
* @author Chenhsi Steven Bi, Jing-Lun Edward Gao
* @version 1.0
*/
package ambroscum;
import java.io.*;
import java.util.*;
import ambroscum.lines.Line;
public class Interpreter
{
private static IdentifierMap identifiers;
static {
... |
package eu.modernmt.processing.numbers;
import eu.modernmt.model.Word;
import eu.modernmt.processing.SentenceBuilder;
import eu.modernmt.processing.WordTransformationFactory;
import java.util.Map;
import java.util.regex.Pattern;
public class NumericWordFactory implements SentenceBuilder.WordFactory, WordTransformationF... |
package com.nagazuka.mobile.android.goedkooptanken.service.impl;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import android.content.Context;
import android.location.Address;
import android.location.Geocoder;
import android.util.Log;
import com.nagazuka.mobil... |
package me.exphc.EnchantMore;
import java.util.Random;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import java.util.UUID;
import java.util.Iterator;
import ja... |
package me.exphc.EnchantMore;
import java.util.Random;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import java.util.UUID;
import java.util.Iterator;
import ja... |
package me.exphc.EnchantMore;
import java.util.Random;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import java.util.UUID;
import java.util.Iterator;
import ja... |
package org.rstudio.studio.client.workbench.prefs.views;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import org.rstudio.core.client.BrowseCap;
import org.rstudio.core.client.ElementIds;
import org.rstudio.core.client.StringUtil;
import org.rstudio.core.client.... |
package me.ryanhamshire.GriefPrevention;
import org.spongepowered.api.block.BlockSnapshot;
import org.spongepowered.api.block.BlockType;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.data.Transaction;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.ut... |
package org.cocos2dx.cpp;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.hardware.Camera;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.content.DialogInterfac... |
package au.org.ands.vocabs.toolkit.provider.harvest;
import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
i... |
package com.github.niwaniwa.we.core.database.mongodb;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.bson.Document;
import com.github.niwaniwa.we.core.database.mongodb.MongoDataBaseManager.MongoDataBase;
import com.mongodb.client.FindIterable;
import com.mongodb.client.MongoCollecti... |
package com.salesforce.storm.spout.sideline.consumer;
import com.salesforce.storm.spout.sideline.ConsumerPartition;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* Utility class to help with managing offs... |
package fr.adrienbrault.idea.symfony2plugin.config;
import com.intellij.codeInsight.daemon.LineMarkerInfo;
import com.intellij.codeInsight.daemon.LineMarkerProvider;
import com.intellij.codeInsight.daemon.RelatedItemLineMarkerInfo;
import com.intellij.codeInsight.navigation.NavigationGutterIconBuilder;
import com.intel... |
package io.usethesource.capsule.experimental.multimap;
import static io.usethesource.capsule.experimental.multimap.SetMultimapUtils.setOf;
import static io.usethesource.capsule.experimental.multimap.TrieSetMultimap_HCHAMP.EitherSingletonOrCollection.Type.COLLECTION;
import static io.usethesource.capsule.experimental.mu... |
package net.openhft.chronicle.queue.impl.single;
import net.openhft.chronicle.bytes.*;
import net.openhft.chronicle.core.OS;
import net.openhft.chronicle.core.annotation.ForceInline;
import net.openhft.chronicle.queue.ExcerptAppender;
import net.openhft.chronicle.queue.ExcerptTailer;
import net.openhft.chronicle.queue.... |
package org.asciidoc.intellij.actions.editorAction;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.ActionPlaces;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DataConte... |
package org.entitypedia.games.gameframework.common.model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;
public class ClueEntityAttribute implements Serializable {
private static final long serialVersionUID = 1L;
privat... |
package org.jboss.netty.channel.socket.http;
import static org.jboss.netty.channel.Channels.*;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.URI;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import... |
package org.jenkinsci.plugins.ParameterizedRemoteTrigger;
import static org.apache.commons.lang.StringUtils.trimToEmpty;
import java.io.Serializable;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import javax.annotation.CheckForNull;
import javax.a... |
package scratchlib.objects.fixed.collections;
import java.io.IOException;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
import java.util.Set;
import scratchlib.objects.IScratchReferenceType;
import scratchlib.objects.ScratchObject;
import scratchlib.objects.ScratchObjects;
imp... |
package net.mossan.java.reversi.component;
import net.mossan.java.reversi.model.Disc;
import net.mossan.java.reversi.model.Game;
import javax.swing.*;
import java.awt.*;
public class BoardDrawer extends JPanel {
private static final Color BOARD_BACKGROUND_COLOR = new Color(40, 128, 40);
private static final dou... |
package org.mtransit.parser.ca_grand_river_transit_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
im... |
package opendap.semantics.IRISail;
import opendap.wcs.v1_1_2.*;
import org.jdom.Element;
import org.jdom.filter.ElementFilter;
import org.jdom.output.XMLOutputter;
import org.jdom.output.Format;
import org.slf4j.Logger;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util... |
package org.helioviewer.plugins.eveplugin.view;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Calendar;
imp... |
// This file is part of the "OPeNDAP Web Coverage Service Project."
// Authors:
// Haibo Liu <haibo@iri.columbia.edu>
// Nathan David Potter <ndp@opendap.org>
// M. Benno Blumenthal <benno@iri.columbia.edu>
// This library is free software; you can redistribute it and/or
// modify it under the terms of th... |
package com.alibaba.json.bvt.parser.deser.list;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.parser.Feature;
import com.alibaba.fastjson.serializer.SerializerFeature;
import junit.framework.TestCase;
pu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.