answer stringlengths 17 10.2M |
|---|
package com.luanthanhthai.android.liteworkouttimer;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.content.ContextCompat;
import android.... |
package info.nightscout.androidaps.plugins.PumpCombo;
import android.os.SystemClock;
import android.support.annotation.NonNull;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Calendar;
import java.util.Date;
import de.jotomo.ruffy.spi.BasalProfile;
import de.jotomo... |
package info.nightscout.androidaps.plugins.PumpCombo;
import android.app.NotificationManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.graphics.Color;
import and... |
package com.jmpmain.lvslrpg;
import java.util.ArrayList;
import java.util.Vector;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.jmpmain.lvslrpg.Map.TileType;
import com.jmpmain.lvslrpg.entities.*;
import com.jmpmain.lvslrpg.en... |
package org.neo4j.graphdb;
import java.util.Collection;
import java.util.Iterator;
public interface Traverser extends Iterable<Node>
{
/**
* Defines a traversal order as used by the traversal framework.
*/
public static enum Order
{
/**
* Sets a depth first traversal meaning the t... |
package org.ccnx.ccn.protocol;
import java.math.BigInteger;
import java.net.URISyntaxException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import org.ccnx.ccn.impl.encoding.GenericXMLEncodable;
import org.ccnx.ccn.impl.encoding.XMLDecoder;
import org.ccnx.ccn.impl.encoding.XMLEncod... |
package com.alibaba.akita.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
import android.os.Message;
import android.util.At... |
package cgeo.geocaching.ui;
import cgeo.geocaching.R;
import cgeo.geocaching.activity.Keyboard;
import cgeo.geocaching.ui.dialog.Dialogs;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import a... |
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.beans.PropertyChangeEvent;
import java.bean... |
package com.eegeo.photos;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import android.content.Intent;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import com.eegeo.... |
package com.mapzen.tangram;
import com.squareup.okhttp.Cache;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public class HttpHandler {
private OkHttpClient okCli... |
package info.loenwind.processor;
import java.io.IOException;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import javax.annotation.processing.AbstractProcessor;
import jav... |
package org.atlasapi.application.auth;
import static com.google.common.base.Preconditions.checkNotNull;
import javax.servlet.http.HttpServletRequest;
import org.atlasapi.application.Application;
import org.atlasapi.application.ApplicationSources;
import org.atlasapi.application.ApplicationStore;
import com.google.commo... |
package org.sourcepit.b2.internal.cleaner;
import java.io.File;
import javax.inject.Named;
@Named
public class PomCleaner implements IModuleGarbageCollector
{
public boolean isGarbage(File file)
{
final File parentDir = file.getParentFile();
if (isInModule(file) && isMavenProject(parentDir))
{
... |
package com.wang.baseadapter.model;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* RecyclerView
*/
public class RecyclerViewItemArray extends ArrayList<ItemData> {
/**
* type
*
* @param type
* @return position-1
*/
public int findFirstTypePosition(... |
package com.box.androidsdk.content.auth;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnDismissListener;
import android.content.Intent;
import android.content.IntentFilter;
import ... |
package servidor;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class ServidorTransmision extends Thread {
private Socket conexionClienteTCP;
private String videoSolicitado;
private BufferedReader entra... |
package com.dianping.cat.consumer.matrix;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.codehaus.plexus.logging.LogEnabled;
import org.codehaus.plexus.logging.Logger;
import com.dianp... |
package de.hdodenhof.circleimageview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import an... |
package com.codenvy.plugin.yeoman.client.builder;
import com.codenvy.api.builder.BuildStatus;
import com.codenvy.api.builder.dto.BuildOptions;
import com.codenvy.api.builder.dto.BuildTaskDescriptor;
import com.codenvy.api.builder.gwt.client.BuilderServiceClient;
import com.codenvy.api.core.rest.shared.dto.Link;
import ... |
package io.cloudslang.lang.systemtests;
import com.google.common.collect.Sets;
import io.cloudslang.lang.api.Slang;
import io.cloudslang.lang.entities.CompilationArtifact;
import io.cloudslang.lang.entities.ScoreLangConstants;
import io.cloudslang.lang.entities.SystemProperty;
import io.cloudslang.lang.entities.binding... |
package org.jetel.util.protocols.sandbox;
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
import org.jetel.graph.TransformationGraph;
import org.jetel.util.file.SandboxUrlUtils;
/**
*
* @author mvarecha
*
*/
public class SandboxStreamHandler extends ... |
package com.github.neunkasulle.chronocommand.model;
public class TimeSheetDAO {
public TimeSheet getTimeSheet(int month, int year, Proletarier proletarier) {
throw new UnsupportedOperationException();
}
public TimeRecord[] getTimeRecords(TimeSheet timeSheet) {
throw new UnsupportedOperationE... |
package com.example.android.rssfeed;
import android.app.Activity;
import android.app.Application;
import android.content.res.Configuration;
import android.os.Bundle;
public class DetailActivity extends Activity {
public static final String EXTRA_URL = "url";
@Override
protected void onCreate(Bundle savedIns... |
package com.github.sormuras.bach;
import com.github.sormuras.bach.internal.Paths;
import com.github.sormuras.bach.module.ModuleDirectory;
import com.github.sormuras.bach.module.ModuleSearcher;
import com.github.sormuras.bach.project.MainSpace;
import com.github.sormuras.bach.project.TestSpace;
import com.github.sormura... |
package com.williamfiset.algorithms.graphtheory.networkflow;
import static java.lang.Math.min;
import static java.lang.Math.max;
import java.util.*;
public class MinCostMaxFlowJohnsons extends NetworkFlowSolverBase {
/**
* Creates an instance of a flow network solver. Use the
* {@link NetworkFlowSolverBase#addE... |
package com.ptsmods.morecommands.mixin.client;
import com.mojang.blaze3d.platform.ClipboardManager;
import com.ptsmods.morecommands.MoreCommands;
import com.ptsmods.morecommands.MoreCommandsClient;
import com.ptsmods.morecommands.api.IMoreCommands;
import com.ptsmods.morecommands.api.MessageHistory;
import com.ptsmods.... |
package com.yahoo.searchdefinition;
import com.yahoo.document.ArrayDataType;
import com.yahoo.document.CollectionDataType;
import com.yahoo.document.DataType;
import com.yahoo.document.DocumentType;
import com.yahoo.document.Field;
import com.yahoo.document.MapDataType;
import com.yahoo.document.ReferenceDataType;
impo... |
package com.yahoo.search.dispatch;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableMultimap;
import com.yahoo.search.dispatch.searchcluster.Group;
import com.yahoo.search.dispatch.searchcluster.Node;
import com.yahoo.search.dispatc... |
package org.kuali.rice.core.api.uif;
import org.apache.commons.lang.StringUtils;
import org.kuali.rice.core.api.CoreConstants;
import org.kuali.rice.core.api.mo.AbstractDataTransferObject;
import org.kuali.rice.core.api.mo.ModelBuilder;
import org.w3c.dom.Element;
import javax.xml.bind.annotation.XmlAccessType;
import ... |
package imagej.core.plugins.typechange;
import imagej.data.Dataset;
import imagej.ext.menu.MenuService;
import imagej.ext.module.ItemIO;
import imagej.ext.plugin.RunnablePlugin;
import imagej.ext.plugin.Parameter;
import net.imglib2.Cursor;
import net.imglib2.RandomAccess;
import net.imglib2.img.Img;
import net.imglib2... |
package io.bisq.core.payment.payload;
import com.google.protobuf.Message;
import io.bisq.common.locale.BankUtil;
import io.bisq.common.locale.CountryUtil;
import io.bisq.common.locale.Res;
import io.bisq.generated.protobuffer.PB;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok... |
package fi.henu.gdxextras;
public class IVector2
{
public int x, y;
public IVector2()
{
x = 0;
y = 0;
}
public IVector2(int x, int y)
{
this.x = x;
this.y = y;
}
public IVector2(IVector2 v)
{
x = v.x;
y = v.y;
}
public void set(... |
package io.viper.core.server.file;
import io.viper.core.server.Util;
import java.io.*;
import java.net.JarURLConnection;
import java.net.URL;
import java.nio.channels.FileChannel;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.jar.JarFile;
import org.jboss.netty.handler.code... |
package org.tigris.subversion.subclipse.core.commands;
import java.util.HashSet;
import java.util.Iterator;
import java.util.SortedSet;
import java.util.TreeSet;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceVisitor;
import org.ecli... |
package simulator.simbot;
import java.io.*;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import basestation.bot.commands.FourWheelMovement;
import basestation.bot.connection.Connection;
import com.google.gson.JsonObject;
import simulator.Simulator;
import simulator.baseinterface.SimulatorVisionS... |
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.lang.reflect.*;
/*
javac -Xlint TestReflection.java
*/
public class TestReflection
{
public static void main( String[] args )
{
try
{
/* test Class class */
Class calClass = Class.forName( "java.u... |
package org.datavec.dataframe.store;
import org.datavec.dataframe.api.BooleanColumn;
import org.datavec.dataframe.api.CategoryColumn;
import org.datavec.dataframe.api.DateColumn;
import org.datavec.dataframe.api.DateTimeColumn;
import org.datavec.dataframe.api.FloatColumn;
import org.datavec.dataframe.api.IntColumn;
im... |
package dogtooth.tree.internal;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import dogtooth.tree.Selector;
import dogtooth.tree.Tree;
import dogtooth.tree.TreeAlreadySealedException;
import dogtooth.tree.TreeBuilder;
imp... |
package org.dspace.curate;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.params.HttpMethodParams;
import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Collection;
import org.dspace.content.DCDate;
import org.dspace.content.DCValue;
import org.dspace.co... |
package io.coati.eSourcetrail.core;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import org.eclipse.jf... |
// ClassUtils.java
package imagej.util;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
/**
* Useful methods for working with {@link Class} objects and primitive types.
*
* @author Curtis Rueden
*/
public final class ClassUtils {
private ClassUtils() {
... |
package brooklyn.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.URL;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.googl... |
package cloud.swiftnode.kspam;
import cloud.swiftnode.kspam.abstraction.MockPlayer;
import cloud.swiftnode.kspam.abstraction.MockPlugin;
import cloud.swiftnode.kspam.abstraction.MockServer;
import cloud.swiftnode.kspam.listener.PlayerListener;
import cloud.swiftnode.kspam.listener.ServerListener;
import org.bukkit.Bukk... |
package hudson.scm.browsers;
import hudson.model.Descriptor;
import hudson.scm.CVSChangeLogSet.CVSChangeLog;
import hudson.scm.CVSChangeLogSet.File;
import hudson.scm.CVSChangeLogSet.Revision;
import hudson.scm.CVSRepositoryBrowser;
import hudson.scm.RepositoryBrowser;
import org.kohsuke.stapler.StaplerRequest;
import ... |
package com.intellij.execution.application;
import com.intellij.coverage.CoverageDataManager;
import com.intellij.coverage.CoverageSuite;
import com.intellij.coverage.DefaultCoverageFileProvider;
import com.intellij.diagnostic.logging.LogConfigurationPanel;
import com.intellij.execution.*;
import com.intellij.execution... |
package com.github.jsonj;
import static com.github.jsonj.tools.JsonBuilder.array;
import static com.github.jsonj.tools.JsonBuilder.field;
import static com.github.jsonj.tools.JsonBuilder.fromObject;
import static com.github.jsonj.tools.JsonBuilder.nullValue;
import static com.github.jsonj.tools.JsonBuilder.object;
impo... |
package com.google.sps.image;
import java.util.List;
import java.util.Set;
/** Similar to ImageScorer, but for testing purposes. */
public final class LocalImageScorer {
private static final float LANDMARK_SCORE = 0.8f;
private static final float LOGO_SCORE = 0.5f;
private static final float OCR_SCORE = 0.1f;
p... |
package de.charite.compbio.exomiser.core.model;
import java.util.ArrayList;
import java.util.List;
import org.thymeleaf.util.StringUtils;
import com.google.common.base.Joiner;
import de.charite.compbio.jannovar.annotation.Annotation;
import de.charite.compbio.jannovar.annotation.AnnotationList;
import de.charite.compbi... |
package tech.tablesaw.io;
import static tech.tablesaw.api.ColumnType.SKIP;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.univocity.parsers.common.AbstractParser;
import java.io.Reader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import jav... |
package com.jcabi.github;
import com.jcabi.aspects.Tv;
import java.util.Iterator;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Assume;
import org.junit.Test;
/**
* Test case for {@link RtSearch}.
*
* @author Carlos Miranda (miranda.cma@gmail.com)
* @version $Id$
* @checkstyle M... |
package org.fedorahosted.flies.core.action;
import org.fedorahosted.flies.core.model.HCommunity;
import org.fedorahosted.flies.core.model.HIterationProject;
import org.fedorahosted.flies.repository.model.HDocument;
import org.fedorahosted.flies.repository.model.HParentResource;
import org.fedorahosted.flies.repository.... |
package dk.itu.kelvin.math;
// JUnit annotations
import org.junit.Test;
// JUnit assertions
import static org.junit.Assert.assertTrue;
/**
* {@link Mercator} test suite.
*
* <p>
* Test convert a x- and y-coordinate into a spherical latitude and longitude.
*
* We take into account that we compare doubles and set a... |
package freemarker.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.sql.Time;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.... |
//@@author A0139961U
package guitests;
import static org.junit.Assert.assertTrue;
import static seedu.tache.commons.core.Messages.MESSAGE_INVALID_DIRECTORY;
import static seedu.tache.commons.core.Messages.MESSAGE_INVALID_FILE;
import org.junit.Test;
import seedu.tache.logic.commands.LoadCommand;
import seedu.tache.logi... |
package mousio.etcd4j;
import mousio.client.retry.RetryWithExponentialBackOff;
import mousio.etcd4j.promises.EtcdResponsePromise;
import mousio.etcd4j.responses.EtcdException;
import mousio.etcd4j.responses.EtcdKeyAction;
import mousio.etcd4j.responses.EtcdKeysResponse;
import org.junit.After;
import org.junit.Before;
... |
package net.edralzar.wargolem;
import static org.assertj.core.api.Assertions.assertThat;
import java.time.Instant;
import org.junit.Before;
import net.edralzar.wargolem.model.Gw2Class;
import net.edralzar.wargolem.model.MapResource;
import net.edralzar.wargolem.model.Player;
import net.edralzar.wargolem.model.Role;
imp... |
package net.lightbody.bmp.proxy;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
public class SslTest extends ProxyServerTest {
@Test
public void testFidelity() throws Exception {
get("https:
... |
package studentcapture.user;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.context.WebApplicationContext;
import studentcapture.config.H2DB;
import s... |
package de.tu.darmstadt.lt.ner.preprocessing;
import static org.uimafit.factory.AnalysisEngineFactory.createPrimitiveDescription;
import static org.uimafit.pipeline.SimplePipeline.runPipeline;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.apache.log4j.Logger;
import... |
package org.xins.tests.server;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.xins.server.IPFilter;
import org.xins.util.text.ParseException;
/**
* Tests for class <code>IPFilter</code>.
*
* @version $Revision$ $Date$
* @author Ernst de Haan (<a href="mail... |
package timeBench.data.relational;
import java.util.Iterator;
import prefuse.data.Graph;
import prefuse.data.Schema;
import prefuse.data.Table;
import prefuse.data.Tuple;
import prefuse.data.column.Column;
import prefuse.data.expression.AbstractPredicate;
import prefuse.data.tuple.TableEdge;
import prefuse.data.tuple.T... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tonegod.gui.controls.scrolling;
import com.jme3.input.event.MouseButtonEvent;
import com.jme3.input.event.MouseMotionEvent;
import com.jme3.math.Vector2f;
import com.jme3.math.Vector4f;
import java.util.Set;
impo... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TSP {
private static final int TIME_LIMIT = 1500;
private double[][] coordinates;
private int[][] distances;
private ... |
package etomica.models.water;
import java.util.ArrayList;
import etomica.action.BoxImposePbc;
import etomica.action.activity.ActivityIntegrate;
import etomica.api.IAtomType;
import etomica.api.IBox;
import etomica.api.IPotentialMaster;
import etomica.atom.AtomLeafAgentManager;
import etomica.atom.DiameterHashByType;
im... |
package org.dukecon.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
/**
* @author Gerd Aschemann <gerd@aschemann.net>
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserPreference {
@NonNull private ... |
package io.mockk.junit;
import io.mockk.agent.MockKClassLoader;
import org.junit.runner.Description;
import org.junit.runner.RunWith;
import org.junit.runner.Runner;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.JUnit4;
import java.lang.reflect.Constructor;
/**
* Do class translation for J... |
package com.microsoft.hostedwebapp;
import android.app.Activity;
import android.content.res.AssetManager;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.LinearLayout;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaInterface;
imp... |
package org.cache2k;
/**
* @author Jens Wilke; created: 2014-03-21
*
* @deprecated
*/
public class EntryRefreshController<T> implements RefreshController<T> {
public static final EntryRefreshController INSTANCE = new EntryRefreshController();
public long calculateNextRefreshTime(
T _oldObject,
T _newObj... |
package com.data.models;
public class PlanedEvent {
private String title;
private String description;
private String start;
private String end;
private String id;
private SimpleDate date;
private Boolean isUserIn;
public PlanedEvent(){
}
public PlanedEvent(String end, String star... |
package statzall;
import java.util.Map;
/**
* Utilities for strong typing in Map.get() and Objects, more robust than JDK
* standard Class.cast()
*
* @author mpouttuclarke
*
*/
public class Cast {
/**
* Attempt to get the key's value from the passed map, casting to the
* caller's desired type if poss... |
package com.oracle.graal.nodes.java;
import static com.oracle.graal.api.code.DeoptimizationAction.*;
import static com.oracle.graal.api.meta.DeoptimizationReason.*;
import static com.oracle.graal.nodes.extended.BranchProbabilityNode.*;
import com.oracle.graal.api.code.*;
import com.oracle.graal.api.meta.*;
import com.o... |
package charts.builder.spreadsheet;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.St... |
package complex.tdoc;
import com.sun.star.beans.XPropertiesChangeNotifier;
import com.sun.star.beans.XPropertyContainer;
import com.sun.star.beans.XPropertySetInfoChangeNotifier;
import com.sun.star.container.XChild;
import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star... |
// Protocol Buffers - Google's data interchange format
// modification, are permitted provided that the following conditions are
// met:
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse ... |
package io.bisq.gui.main.portfolio.closedtrades;
import com.googlecode.jcsv.writer.CSVEntryConverter;
import io.bisq.common.locale.Res;
import io.bisq.common.monetary.Price;
import io.bisq.common.monetary.Volume;
import io.bisq.core.alert.PrivateNotificationManager;
import io.bisq.core.offer.Offer;
import io.bisq.core.... |
package me.vanpan.rctqqsdk;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.text.TextUtils;
import android.util... |
package org.jboss.as.console.client.domain.hosts;
import com.google.gwt.cell.client.AbstractCell;
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.safehtml.client.SafeHtmlTemplates;
import com.google.gwt.... |
package duro.runtime;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
public class InteractionHistory {
public static class Interaction implements Serializable {
private static final long serialVersionUID = 1L;
public final String interface... |
package com.hazelcast.client.map;
import com.hazelcast.client.HazelcastClient;
import com.hazelcast.config.Config;
import com.hazelcast.config.MapConfig;
import com.hazelcast.config.MapStoreConfig;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import c... |
package com.djonique.birdays.utils;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Locale;
public class Utils {
private static Calendar today = Calendar.getInstance();
private static Calendar dayOfBirthday = Calendar.getInstance();
public static String getDate(long date) {
... |
package com.proofpoint.http.client.jetty;
import com.google.common.base.Objects;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.collect.AbstractIterator;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableListMultimap;... |
package com.itranswarp.shici.ddl;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.diale... |
package dc_metadata;
import org.pmw.tinylog.Logger;
import java.util.HashMap;
/**
* Representation for a Contributor element.
*/
public class Contributor extends Element {
//static parsing characters
public static final String DELIM_NONNAME = "*";
// - dc.contributor.* || contributor role codes - //
p... |
package com.melodies.bandup;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widg... |
package com.radicalninja.pizzazz;
import android.app.Application;
import android.graphics.Color;
import android.util.Log;
import com.google.android.things.contrib.driver.sensehat.SenseHat;
import com.google.android.things.contrib.driver.ssd1306.Ssd1306;
import com.radicalninja.pizzazz.display.Oled1306Screen;
import com... |
package com.zulip.android.util;
import com.zulip.android.ZulipApp;
public class UrlHelper {
public static String addHost(String url) {
if (!url.startsWith("http")) {
String hostUrl = ZulipApp.get().getServerHostUri();
if (hostUrl.endsWith("/")) {
url = hostUrl.substri... |
package edu.byui.cs246.scandroid;
import android.util.Log;
import java.lang.reflect.Array;
import java.util.Observable;
import java.util.ArrayList;
public class Scanner extends Observable {
Integer delay; //delay in ms
ArrayList<ArrayList<Scan>> scans;
//observers managed by superclass
public void Scann... |
package fi.bitrite.android.ws.model;
import android.content.Context;
import android.content.res.Resources;
import android.os.Parcel;
import android.text.TextUtils;
import com.google.android.gms.maps.model.LatLng;
import com.yelp.parcelgen.JsonParser.DualCreator;
import org.json.JSONException;
import org.json.JSONObject... |
package jp.blanktar.ruumusic;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Arrays;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.os.Build;
import android.content.Context;
import android.preference.PreferenceManager;
publ... |
package org.example.rest;
import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.naming.InitialContext;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import io.vertx.core.Vertx;
import io.vertx.resourceadapter.VertxConnectionFactory;
... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of the <organization> nor the
// names of its contributors may be used to endorse or promote products
// ANY EXPRESS OR IMPLIED WARRAN... |
package org.msf.records.sync;
import android.accounts.Account;
import android.content.AbstractThreadedSyncAdapter;
import android.content.ContentProviderClient;
import android.content.ContentProviderOperation;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import ... |
package org.stepic.droid.util;
import android.os.Build;
import android.support.annotation.ColorInt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.s... |
package org.commcare.android.view;
import java.util.Hashtable;
import org.commcare.android.javarosa.AndroidLogger;
import org.commcare.android.models.Entity;
import org.commcare.android.util.DetailCalloutListener;
import org.commcare.android.util.FileUtil;
import org.commcare.android.util.MediaUtil;
import org.commcare... |
package cmput301f17t01.bronzify;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import junit.framework.TestCase;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import cmput301f17t01.bronzify.adapters.HabitTypeAdapter;
import cmput301f17t01.bronzify.a... |
package org.jbehave.core.reporters;
import java.io.File;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import org.jbehave.core.configuration.Keywords;
import org.jbehave.core.i18n.LocalizedKey... |
package com.jenjinstudios.client.net;
import com.jenjinstudios.core.io.Message;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* @author Caleb Brinkman
*/
public class LoginTracker
{
private static final Logger LOGGER = Logger.getLogger(LoginTracker.class.getName());
private static final... |
package org.develnext.jphp.scripting;
import org.develnext.jphp.scripting.util.ReaderInputStream;
import php.runtime.env.Context;
import php.runtime.env.Environment;
import php.runtime.launcher.Launcher;
import php.runtime.memory.ArrayMemory;
import php.runtime.memory.support.MemoryUtils;
import php.runtime.reflection.... |
package com.fsck.k9.mail.store.imap;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.fsck.k9.endtoend.framework.StubMailServer;
import com.fsck.k9.endtoend.framework.UserForImap;
import com.fsck.k9.mail.AuthType;
import com.fsck.k9.mail.AuthenticationFailedException;
import c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.