answer stringlengths 17 10.2M |
|---|
package com.jcwhatever.nucleus.utils.text;
import com.jcwhatever.nucleus.utils.PreCon;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Replaces tags in text.
*
* <p>Tags consist of enclosing curly braces with tag text inside.</p>
... |
package com.ktl.moment.android.fragment;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toas... |
package com.momoweather.app.activity;
import java.util.ArrayList;
import java.util.List;
import com.example.momoweather.R;
import com.momoweather.app.model.City;
import com.momoweather.app.model.Country;
import com.momoweather.app.model.MoMoWeatherDB;
import com.momoweather.app.model.Province;
import com.momoweather.ap... |
package com.swabunga.spell.engine;
import java.io.*;
import java.io.File;
import java.io.IOException;
import java.security.InvalidParameterException;
import java.util.*;
public abstract class SpellDictionaryASpell implements SpellDictionary {
/** The reference to a Transformator, used to transform a word into it's ... |
package de.fun2code.android.piratebox.widget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import de.fun2cod... |
package dk.netarkivet.harvester.scheduler;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import dk.netarkivet.common.distribute.JMSConnection;
import dk.netarkivet.common.exception... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package edu.wpi.first.wpilibj.templates;
import edu.ghouse.drivesystem.MultiCANJaguar;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.R... |
package net.fortuna.ical4j.model.component;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URISyntaxException;
import java.text.ParseException;
import java.util.Calendar;
import java.util.Iterator;
import junit.framework.TestSuite;
import net.fortuna.ical4j.data.Calenda... |
package com.google.refine.importing;
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.Timer;
imp... |
package net.fortuna.ical4j.model.property;
import java.text.ParseException;
import java.util.Calendar;
import junit.framework.TestCase;
import net.fortuna.ical4j.model.Date;
import net.fortuna.ical4j.model.DateTime;
import net.fortuna.ical4j.model.ParameterList;
import net.fortuna.ical4j.model.TimeZone;
import net.fort... |
package com.miloshpetrov.sol2.soundtest;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.math.Vector2;
import com.miloshpetrov.sol2.Const;
import com.miloshpetrov.sol2.ui.UiDrawer;
class SoundTestCmp {
p... |
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class Tk103ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
Tk103ProtocolDecoder decoder = new Tk103ProtocolDecoder(new Tk103Protocol());
verifyPosition(decode... |
package controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.... |
package org.jgroups.blocks;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.jgroups.Address;
import org.jgroups.stack.IpAddress;
import org.jgroups.util.Util;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.lang.management.Managem... |
package org.openhds.domain.model;
import java.io.Serializable;
import java.util.Calendar;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.validation.constraints.NotNull;
import java... |
package owltools.sim2;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.... |
package dk.aau.sw402F15.ScopeChecker;
import dk.aau.sw402F15.TypeChecker.Exceptions.SymbolNotFoundException;
import dk.aau.sw402F15.TypeChecker.Symboltable.*;
import dk.aau.sw402F15.parser.analysis.DepthFirstAdapter;
import dk.aau.sw402F15.parser.node.*;
import java.util.ArrayList;
import java.util.LinkedList;
import j... |
package org.languagetool;
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import javax.xml.parsers.ParserConfigurationException;
import org.languagetool.commandline.CommandLineOptions;
import org.languagetool.commandline.CommandLineParser;
impo... |
// Tapestry Web Application Framework
// Howard Lewis Ship
// mailto:hship@users.sf.net
// This library is free software.
// You may redistribute it and/or modify it under the terms of the GNU
// included with this distribution, you may find a copy at the FSF web
// Free Software Foundation, 675 Mass Ave, Cambridge, MA... |
package polyglot.ext.pao.types;
import polyglot.types.*;
import polyglot.ext.jl.types.TypeSystem_c;
import polyglot.util.*;
import java.util.*;
/**
* PAO type system.
*/
public class PaoTypeSystem_c extends TypeSystem_c implements PaoTypeSystem {
public PrimitiveType createPrimitive(PrimitiveType.Kind kind) {
... |
package Php;
public class StringFunctions extends FileFunctions {
public static char[] strtochar(String s[]) {
int l=s.length;
char op[]=new char[l];
for (int i = 0; i < l; i++) {
op[i]=s[i].charAt(0);
}
return op;
}
public static String[] chartostr(char s... |
package com.almasb.fxgl.ecs;
import com.almasb.fxgl.annotation.Spawns;
import com.almasb.fxgl.app.FXGL;
import com.almasb.fxgl.core.collection.Array;
import com.almasb.fxgl.core.collection.ObjectMap;
import com.almasb.fxgl.core.logging.FXGLLogger;
import com.almasb.fxgl.core.logging.Logger;
import com.almasb.fxgl.core.... |
package edu.umd.cs.findbugs.cloud;
import java.awt.GraphicsEnvironment;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.net.InetAddress;
import java.net.URL;
imp... |
package com.simperium.util;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import name.fraser.ne... |
package util.propnet.architecture;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
* The root class of the Component hierarchy, which is designed to represent
* nodes in a PropNet. The general contract of derived classes is to override
* all methods.
*/
public abstract class Compone... |
package nz.cwong.spark;
import static de.robv.android.xposed.XposedHelpers.*;
import java.lang.reflect.Field;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
import android.support.v4.app.FragmentActivity;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.rob... |
package org.usfirst.frc.team340.robot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import org.usfirst.frc.team340.robot.OI.*;
import org.usfirst.frc.team340.robot.commands.*;
/**
* This class is the glue that binds the control... |
package io.tetrapod.core;
import static io.tetrapod.protocol.core.Core.DEFAULT_DIRECT_PORT;
import static io.tetrapod.protocol.core.CoreContract.ERROR_UNKNOWN;
import io.tetrapod.core.rpc.*;
import io.tetrapod.core.rpc.Error;
import io.tetrapod.core.utils.Util;
import io.tetrapod.protocol.core.*;
import java.util.Map;
... |
package group5.trackerexpress;
import java.util.UUID;
import android.content.Context;
/**
* Holds all the static data members of the app.
*
* @author Peter Crinklaw, Randy Hu, Parash Rahman, Jesse Emery, Sean Baergen, Rishi Barnwal
* @version Part 4
*/
public class Controller {
/** The claims. */
private s... |
package com.messagebird;
import com.messagebird.exceptions.GeneralException;
import com.messagebird.exceptions.NotFoundException;
import com.messagebird.exceptions.UnauthorizedException;
import com.messagebird.objects.*;
import com.messagebird.objects.conversations.*;
import com.messagebird.objects.voicecalls.*;
import... |
package org.openmrs.api;
import org.openmrs.User;
import org.openmrs.util.OpenmrsUtil;
/**
* Represents common exceptions that happen when validating a {@link User}'s password.
* <p>
* Preferred use of this class and its subclass are the {@link #PasswordException()} or the
* {@link #PasswordException(String)}. The ... |
// $Id: Collections.java,v 1.4 2002/11/07 18:40:40 ray Exp $
package com.samskivert.util;
import java.util.*;
/**
* Provides functionality for the samskivert collections that the
* <code>java.util</code> class of the same name provides for the standard
* Java collections. Collections-related functionality that is di... |
package org.protempa;
import org.protempa.backend.UnrecoverableBackendErrorEvent;
import org.protempa.backend.BackendUpdatedEvent;
import org.protempa.backend.Backend;
import java.util.ArrayList;
import java.util.List;
public abstract class AbstractSource<E extends SourceUpdatedEvent,
T extends BackendUpdatedEv... |
package com.psddev.dari.db;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.util.WeakHashMap;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.Condition;
import java.util.con... |
package etomica.freeenergy.npath;
import etomica.action.BoxInflate;
import etomica.action.activity.ActivityIntegrate;
import etomica.api.*;
import etomica.atom.DiameterHash;
import etomica.atom.DiameterHashByType;
import etomica.box.Box;
import etomica.box.BoxAgentManager;
import etomica.chem.elements.Iron;
import etom... |
package raptor.connector.ics.dialog;
import org.apache.commons.lang.StringUtils;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.ModifyEvent;
im... |
package nl.mpi.kinnate.svg;
import java.awt.BorderLayout;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.awt.geom.AffineTransform;
import java.awt.geom.Dimension2D;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
import java.net.URI;
import jav... |
package org.jetbrains.plugins.ipnb.format;
import com.google.common.collect.Lists;
import com.google.gson.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonWriter;
import com.intellij.execution.ExecutionException;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.o... |
package generic;
import org.junit.Rule;
import org.junit.Test;
import org.testcontainers.containers.Container;
import org.testcontainers.containers.GenericContainer;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
public class CmdModifierTest {
// hostname {
@Rule
public GenericCont... |
package io.syndesis.qe.upgrade;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.assertj.core.api.SoftAssertions;
import org.json.JSONArray;
import org.json.JSONOb... |
package org.wiztools.restclient;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;
import ja... |
package com.rultor.stateful.sdb;
import com.amazonaws.services.simpledb.model.DeleteAttributesRequest;
import com.amazonaws.services.simpledb.model.GetAttributesRequest;
import com.amazonaws.services.simpledb.model.GetAttributesResult;
import com.amazonaws.services.simpledb.model.PutAttributesRequest;
import com.amazon... |
package io.vividcode.feature9.rx;
import java.util.concurrent.Flow;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.function.Supplier;
public class DelayedSubscribers {
public static void main(final String[] args) {
final DelayedSubscribers delayedSubscribers = new Delay... |
package cn.tinkling.prefs.sample;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.anno... |
package com.elyria.engine;
import android.arch.persistence.room.Room;
import android.content.Context;
import com.elyria.db.AppDatabase;
public class SearchEngine {
private AppDatabase db;
private static class Holder {
private static final SearchEngine INSTANCE = new SearchEngine();
}
private Sea... |
package edu.umd.cs.findbugs;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import j... |
package com.foc.business.workflow.implementation;
import java.sql.Date;
import java.util.ArrayList;
import java.util.Comparator;
import com.foc.Globals;
import com.foc.access.FocDataMap;
import com.foc.admin.FocUser;
import com.foc.business.notifier.FocNotificationConst;
import com.foc.business.notifier.FocNotification... |
package bt.metainfo;
import bt.bencoding.BtParseException;
import bt.tracker.AnnounceKey;
import org.junit.Before;
import org.junit.Test;
import java.net.MalformedURLException;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Collections;
import static org.junit.Assert.assertArrayEquals;
impor... |
package io.spacedog.examples;
import java.util.Optional;
import java.util.Random;
import org.junit.Test;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.spacedog.client.SpaceClient;
import io.spacedog.client.SpaceRequest;
import io.spacedog.client.SpaceTa... |
class RectangleCounter {
} |
package ucar.nc2.iosp.grib;
import ucar.grib.GribChecker;
import ucar.grib.GribIndexName;
import ucar.grib.grib2.Grib2WriteIndex;
import ucar.grib.grib1.Grib1WriteIndex;
import ucar.nc2.dt.fmrc.ForecastModelRunInventory;
import java.util.List;
import java.util.ArrayList;
import java.util.Calendar;
import java.io.*;
// ... |
package org.commacq.db.csv;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.annotation.concurrent.ThreadSafe;
import org.apache.comm... |
package org.pocketcampus.shared.plugin.social;
import org.pocketcampus.shared.plugin.authentication.AuthToken;
public class User {
private final String firstName_;
private final String lastName_;
private final String sciper_;
private String sessionId_;
public User(String firstName, String lastName, ... |
/*
* $Id$
* $URL$
*/
package org.subethamail.web.action.auth;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.subethamail.web.Backend;
import org.tagonist.RedirectException;
/**
* If the user is logged in, issue a redirect to the
* destination specified by actionPara... |
package com.googlecode.goclipse.builder;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.r... |
package org.skyve.impl.bind;
import java.beans.Introspector;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.SortedMap;
import java.util.StringTokenizer;
import org.apach... |
package com.carrotsearch.hppc.hash;
public final class MurmurHash2
{
private static final int M = 0x5bd1e995;
private static final int R = 24;
private static final int SEED = 0xdeadbeef;
private MurmurHash2()
{
// no instances.
}
/**
* Hashes a 4-byte sequence (Java int).
*... |
package ru.job4j.professions;
import java.util.ArrayList;
public class Teacher extends Profession {
private String firstSubject;
private String secondSublect;
public ArrayList<String> listOfClass;
public Teacher(){
listOfClass = new ArrayList<>();
}
public String getFirstSubject() {
... |
package ru.skorikov;
import java.util.Arrays;
class StartUI {
private Input input;
private StartUI(Input input) {
this.input = input;
}
private void init() {
Tracker tracker = new Tracker();
boolean exit = false;
do {
for (MenuLevel menuLevel : MenuLevel.value... |
package ru.job4j.menutracker;
import ru.job4j.models.Item;
import java.util.Random;
import java.util.List;
import java.util.ArrayList;
public class Tracker {
private List<Item> items = new ArrayList<Item>();
private int position;
private static final Random RN = new Random();
String generateId() {
... |
package ru.job4j.test;
public class GitRebaseBatch {
public static void main(String[] args) {
System.out.println("Commit 1");
System.out.println("Commit 2");
System.out.println("Commit 3");
}
} |
package ru.job4j.sql.magnit;
import java.sql.*;
import java.util.ArrayList;
public class StoreSQL {
Config config;
Connection connection;
public StoreSQL(Config config) throws SQLException {
this.config = config;
connection = DriverManager.getConnection(Constant.URL_BASE_POSTGRES,
... |
package ru.job4j.threads;
/**
* class WordsSpaces
*/
public class WordsSpaces {
/**
* method calculateWordsSpaces.
* @param str - incoming string.
* @throws InterruptedException - exception.
*/
private static void calculateWordsSpaces(String str) throws InterruptedException {
Syste... |
package ru.job4j.map;
import java.util.Calendar;
import java.util.Objects;
/**
* Class User.
*
* @author Tatyana Fukova
* @version $I$
*/
public class User {
private String name;
private int children;
private Calendar birthday;
public User(String name, int children, Calendar birthday) {
th... |
package org.intermine.metadata;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.File;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Properties;
impor... |
package org.xtreemfs.osd.rwre;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.concurrent.atomic.AtomicInteger;
import org.xtreemfs.comm... |
package com.dgrid.helpers.impl;
import java.util.Date;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.danga.MemCached.MemCachedClient;
import com.danga.MemCached.SockIOPool;
import com.dgrid.errors.TransportException;
import com.dgrid.gen.InvalidApi... |
package joliex.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import jolie.runtime.FaultException;
import jolie.runtime.JavaService;
import jo... |
package org.eclipse.jetty.io;
import org.eclipse.jetty.util.thread.Timeout;
public interface AsyncEndPoint extends ConnectedEndPoint
{
/**
* Dispatch the endpoint to a thread to attend to it.
*
*/
public void asyncDispatch();
/** Schedule a write dispatch.
* Set the endpoint to not be wr... |
package edu.ucsf.lava.core.importer.model;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import edu.ucsf.lava.core.file.model.ImportFile;
import edu.ucsf.lava.core.model.EntityBase;
public class ImportLog extends EntityBase {
public... |
package edu.stru.lesson.one;
public class HomeworkPartTwo {
public static void main (String[] args){
Point p1 = new Point(9.5,3);
Point p2 = new Point(8,1);
System.out.println("Расстояние между точкой A("+p1.x+";"+p1.y+") и точкой B("+p2.x+";"+p2.y+")="+distance(p1,p2));
}
public sta... |
package com.xlythe.textmanager.text;
import com.xlythe.textmanager.Message;
import com.xlythe.textmanager.MessageCallback;
import com.xlythe.textmanager.MessageManager;
import com.xlythe.textmanager.MessageThread;
import com.xlythe.textmanager.User;
import java.util.ArrayList;
import java.util.LinkedList;
import java.u... |
package scal.io.liger.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
imp... |
package com.jmedeisis.windowview;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import andro... |
package com.proxerme.library.api;
import com.proxerme.library.entitiy.ProxerResponse;
import com.squareup.moshi.JsonDataException;
import okhttp3.Request;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
imp... |
package com.sksamuel.jqm4gwt.form;
import com.google.gwt.user.client.ui.SubmitButton;
import com.sksamuel.jqm4gwt.button.JQMButton;
/**
* @author Stephen K Samuel samspade79@gmail.com 18 May 2011 04:17:45
*
* An implementation of a submit button. Submit buttons are tightly
* integrated with forms an... |
package no.finntech.capturandro;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.media.ExifInterface;
import android.net.Uri;
import android.provider.MediaStore;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import no.finntech.cap... |
package pl.magosa.microbe;
import org.apache.commons.collections4.queue.CircularFifoQueue;
import org.apache.commons.math3.stat.regression.SimpleRegression;
import java.util.Map;
public class TeacherController {
protected Teacher teacher;
protected double goal;
protected double learningRate;
protected d... |
package com.facebook.litho;
import static com.facebook.litho.AccessibilityUtils.isAccessibilityEnabled;
import static com.facebook.litho.ComponentHostUtils.maybeInvalidateAccessibilityState;
import static com.facebook.litho.MountItem.isTouchableDisabled;
import static com.facebook.litho.ThreadUtils.assertMainThread;
im... |
package com.facebook.litho;
import static com.facebook.litho.AccessibilityUtils.isAccessibilityEnabled;
import static com.facebook.litho.ComponentHostUtils.maybeInvalidateAccessibilityState;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.R... |
package Math;
/**
* Holds the information of a System with 3 equations with 3 unknowns.
* There are two components: M matrix and C vector.
* The system is Mx = C
*/
public class System3x3 {
/** Coefficient matrix */
protected final Matrix3x3 m;
/** Constant vector */
protected final Vector3 c;
/... |
package org.orangepalantir.leastsquares.fitters;
import org.orangepalantir.leastsquares.Fitter;
import Jama.Matrix;
import org.orangepalantir.leastsquares.Function;
/**
* for solving linear least squares fit of f(x:A) = z with sets of x,z data points.
* derivatives are evaluated numerically and the function is assum... |
package org.apache.geronimo.kernel;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import javax.management.InstanceNotFoundException;
import javax.management.ListenerNotFoundException;
import javax.management.MB... |
package io.bitsquare.p2p.network;
import com.google.common.util.concurrent.CycleDetectingLockFactory;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.common.util.concurrent.Uninterruptibles;
import io.bitsquare.app.Log;
import io.bitsquare.app.Version;
import io.bitsquare.common.ByteArrayUtils... |
package th.ac.kmitl.ce.ooad;
import org.springframework.web.bind.annotation.*;
@RestController
public class MainController {
@RequestMapping(value = "/addUser/{username}/{name}", params = {"email", "password", "imgLocation"})
@ResponseBody
public String addUser(@PathVariable String username,@RequestParam("p... |
package org.spoofax.jsglr;
import java.io.IOException;
import org.spoofax.ArrayDeque;
//TODO: keep recovered lines (Testcase: two separated errors)
public class RecoveryConnector {
private SGLR mySGLR;
private IRecoveryParser recoveryParser;
private RegionRecovery skipRecovery;
private boolean useBridge... |
package org.osmdroid.views;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import microsoft.mappoint.TileSystem;
import net.wigle.wigleandroid.ZoomButtonsController;
import net.wigle.wigleandroid.ZoomButtonsController.OnZoomListener;
import org... |
package com.intellij.usages;
import com.intellij.injected.editor.DocumentWindow;
import com.intellij.lang.injection.InjectedLanguageManager;
import com.intellij.lexer.Lexer;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors;
import com.intellij.openapi.ed... |
package com.google.sps.data;
import com.google.sps.data.Query;
import com.google.sps.data.SentimentTools;
import com.google.sps.data.Video;
// Represents a video analysis, holds the results from an analysis and can also analyze a video that is passed in.
public class VideoAnalysis {
private float sentimentScore;
... |
package snake;
import java.awt.AWTException;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
i... |
package is.mpg.ruglan;
import java.util.Calendar;
import java.util.Date;
import java.lang.IllegalArgumentException;
/**
* Class representing Calendar Event for the project.
* @author Siggi
*/
public class CalEvent {
private String name, description, location;
private Date start, end;
/**
* CalEvent... |
package com.markelintl.pq.data;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import java.io.IOException;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
public class AddressTest {
@Test
public ... |
package com.zwenexsys.reverse;
import com.squareup.okhttp.OkHttpClient;
import com.zwenexsys.reverse.models.AddressComponent;
import com.zwenexsys.reverse.models.Maps;
import java.util.List;
import retrofit.Callback;
import retrofit.RestAdapter;
import retrofit.RetrofitError;
import retrofit.client.OkClient;
import ret... |
package net.i2p.router.transport.tcp;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
imp... |
package uk.org.ponder.rsf.processor;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import uk.org.ponder.rsf.renderer.RenderSystemDecoder;
import uk.org.ponder.rsf.request.EarlyRequestParser;
import uk.org.ponder.rsf.request.FossilizedConverter;
import uk.org.ponder.rs... |
package com.s3auth.hosts;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
import com.amazonaws.services.dynamodbv2.model.DeleteItemRequest... |
package br.com.softctrl.utils;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
/**
* This class consists of {@code static} utility methods for operating
* on objects. These utilities include {@code null}-safe or {@code
* null}-tolerant methods for computing the hash code of an object,
* r... |
package com.cloud.network.firewall;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.ejb.Local;
import javax.naming.ConfigurationException;
import org.apache.log4j.Logger;
import com.cloud.api.commands.List... |
package com.devicehive.service;
import com.devicehive.auth.CheckPermissionsHelper;
import com.devicehive.auth.HivePrincipal;
import com.devicehive.auth.HiveRoles;
import com.devicehive.configuration.Messages;
import com.devicehive.dao.DeviceDAO;
import com.devicehive.exceptions.HiveException;
import com.devicehive.mess... |
package org.jboss.as.server.deployment;
/**
* An enumeration of the phases of a deployment unit's processing cycle.
*
* @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a>
*/
public enum Phase {
/* == TEMPLATE ==
* Upon entry, this phase performs the following actions:
* <ul>
* <li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.