answer stringlengths 17 10.2M |
|---|
package org.slc.sli.api.resources.v1.entity;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam... |
package it.unimi.dsi.sux4j.mph;
import static org.junit.Assert.assertEquals;
import it.unimi.dsi.bits.TransformationStrategies;
import java.util.Iterator;
import org.junit.Ignore;
import org.junit.Test;
public class HollowTrieMonotoneMinimalPerfectHashFunctionSlowTest {
@Ignore("Requires too much memory.")
@Tes... |
package org.endeavourhealth.queuereader.routines;
import com.google.common.base.Strings;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import org.endeavourhealth.common.cache.ObjectMapperPool;
import org.endeavourhealth.common.fhir.ExtensionCo... |
package com.readytalk.examples.swt.widgets.notifications;
import com.readytalk.examples.swt.RunnableExample;
import com.readytalk.examples.swt.SwtBlingExample;
import com.readytalk.swt.widgets.notifications.Bubble;
import com.readytalk.swt.widgets.notifications.BubbleRegistry;
import com.readytalk.swt.widgets.notificat... |
package fr.loicdelorme.followUpYourGarden.controllers;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Insets;
import javafx.scene.Node;
import jav... |
package org.rstudio.studio.client.workbench.views.output.data;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import org.rstudio.core.client.events.EnsureVisibleEvent;
import org.rstudio.core.client.theme... |
package br.com.devmedia.javamagazine.restfulapi.rest.resource;
import br.com.devmedia.javamagazine.restfulapi.model.bean.Comment;
import br.com.devmedia.javamagazine.restfulapi.model.bean.Post;
import br.com.devmedia.javamagazine.restfulapi.model.bean.User;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
import ... |
package ca.concordia.cssanalyser.refactoring;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.chocosolver.solver.Solver;
import org.chocosolver.solver.constraints.IntConstraintFactory;
import org.chocosolver.so... |
// checkstyle: Checks Java source code for adherence to a set of rules.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE... |
// checkstyle: Checks Java source code for adherence to a set of rules.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE... |
// checkstyle: Checks Java source code for adherence to a set of rules.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE... |
/*
* JsonGeneratorVisitor.java
*
*/
package de.uni_stuttgart.vis.vowl.owl2vowl.export;
import de.uni_stuttgart.vis.vowl.owl2vowl.constants.Standard_Iris;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.AbstractEntity;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.VowlData;
import de.uni_stuttgart.vis.vowl.owl2vowl... |
package org.alienlabs.hatchetharry.view.component;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import org.alienlabs.hatchetharry.HatchetHarryApplication;
import org.alienlabs.hatchetharry.HatchetHarrySession;
import o... |
package org.blockartistry.DynSurround.client.sound;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map.Entry;
import javax.annotation.Nonnull;
import org.apache.commons.lang3.StringUtils;
import org.b... |
package se.bjurr.gitchangelog.internal.integrations.jira;
public class JiraClientFactory {
private static JiraClient jiraClient;
public static void reset() {
jiraClient = null;
}
/** The Bitbucket Server plugin uses this method to inject the Atlassian Client. */
public static void setJiraClient(final Jira... |
package uk.ac.ebi.pride.archive.web.service.controller.file;
import com.mangofactory.swagger.annotations.ApiIgnore;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
i... |
package com.builtamont.cassandra.migration.config;
import com.builtamont.cassandra.migration.api.configuration.ClusterConfiguration;
import com.builtamont.cassandra.migration.api.configuration.ConfigurationProperty;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.M... |
package com.capgemini.archaius.spring;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
import com.netflix.config.DynamicPropertyFactory;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.core.io.ClassPathResource;
import... |
package com.saasquatch.json_schema_inferrer;
import static com.saasquatch.json_schema_inferrer.JunkDrawer.format;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import jav... |
package edu.harvard.iq.dataverse.authorization.users;
import edu.harvard.iq.dataverse.DatasetLock;
import edu.harvard.iq.dataverse.authorization.AuthenticatedUserDisplayInfo;
import edu.harvard.iq.dataverse.authorization.AuthenticatedUserLookup;
import edu.harvard.iq.dataverse.mocks.MocksFactory;
import java.sql.Timest... |
package org.synyx.urlaubsverwaltung.web.department;
import org.junit.Before;
import org.junit.Test;
import org.springframework.validation.Errors;
import org.synyx.urlaubsverwaltung.core.application.domain.Application;
import org.synyx.urlaubsverwaltung.core.department.Department;
import org.synyx.urlaubsverwaltung.core... |
package de.otto.edison.status.indicator;
import de.otto.edison.status.domain.ApplicationStatus;
/**
* Aggregates the ApplicationStatus from all registered StatusDetailIndicators.
*
* @author Guido Steinacker
* @since 13.02.15
*/
public interface ApplicationStatusAggregator {
/**
* Aggregate and return the... |
package step.localrunner;
import static org.junit.Assert.assertEquals;
import static step.planbuilder.BaseArtefacts.*;
import static step.planbuilder.FunctionArtefacts.keyword;
import static step.planbuilder.FunctionArtefacts.keywordWithDynamicInput;
import static step.planbuilder.FunctionArtefacts.keywordWithDynamicKe... |
package com.uber.tchannel.hyperbahn.api;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ExecutionException;
import java.uti... |
package com.hazelcast.simulator.ignite;
import com.hazelcast.simulator.agent.workerprocess.WorkerParameters;
import com.hazelcast.simulator.coordinator.registry.AgentData;
import com.hazelcast.simulator.utils.SimulatorUtils;
import com.hazelcast.simulator.vendors.VendorDriver;
import org.apache.ignite.Ignite;
import or... |
package cn.momia.common.util;
import com.alibaba.fastjson.util.TypeUtils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class TimeUtil {
private static final DateFormat YEAR_DATE_FORMATTER =... |
package arez.processor;
import com.google.testing.compile.JavaSourcesSubjectFactory;
import java.util.Arrays;
import java.util.Collections;
import javax.annotation.Nonnull;
import javax.tools.JavaFileObject;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import static com.google.common.... |
// recursive solution
public class Solution {
public double pow(double x, int n) {
if (n == Integer.MIN_VALUE) {
if (Math.abs(x) > 1.0) return 0.0;
else return x * pow(x, Integer.MAX_VALUE); // abs(Integer.MIN_VALUE) - 1 = Integer.MAX_VALUE
}
if (n == 0 || Math.abs(x ... |
package us.kbase.jgiintegration.test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import static us.kbase.jgiintegration.common.JGIUtils.wipeRemoteServer;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOExcepti... |
package us.kbase.jgiintegration.test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.Date;
import java.util.HashM... |
package us.kbase.jgiintegration.test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import static us.kbase.jgiintegration.common.JGIUtils.wipeRemoteServer;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOExcepti... |
package org.mwc.cmap.xyplot;
import java.util.*;
import org.eclipse.jface.action.*;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.*;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.*;
import org.eclipse.ui.*;
import org.mwc.cmap.TimeCon... |
package de.danielnaber.languagetool.gui;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.a... |
package txtfnnl.uima.analysis_component;
import java.io.File;
import java.util.HashSet;
import java.util.Set;
import martin.common.ArgParser;
import org.apache.uima.UimaContext;
import org.apache.uima.analysis_component.AnalysisComponent;
import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org... |
package nl.b3p.viewer.admin.stripes;
import java.util.*;
import javax.annotation.security.RolesAllowed;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.servlet.http.HttpServletResponse;
import net.sourceforge.stripes.action.*;
import net.sourceforge.stripes.validation.*;... |
package nl.b3p.viewer.config.services;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import org.json.JSONArray;
import org.json.JSONObject;
/**
*
* @author Meine Toonen meinetoonen@b3partners.... |
package net.fortuna.ical4j.model.component;
import java.util.Iterator;
import net.fortuna.ical4j.model.Component;
import net.fortuna.ical4j.model.ComponentList;
import net.fortuna.ical4j.model.DateTime;
import net.fortuna.ical4j.model.Dur;
import net.fortuna.ical4j.model.Period;
import net.fortuna.ical4j.model.PeriodLi... |
package net.fortuna.ical4j.model.component;
import java.io.IOException;
import java.util.Iterator;
import net.fortuna.ical4j.model.Component;
import net.fortuna.ical4j.model.ComponentList;
import net.fortuna.ical4j.model.DateTime;
import net.fortuna.ical4j.model.Dur;
import net.fortuna.ical4j.model.Period;
import net.f... |
package net.fortuna.ical4j.model.component;
import java.io.IOException;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;
import java.util.SimpleTimeZone;
import java.util.TimeZone;
import net.fortuna.ical4j.data.CalendarBuilder;
import net.fortuna.ical4j.data.ParserException;
import net.... |
package org.jasig.portal.groups;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.jasig.portal.EntityIdentifier;
import org.jasig.portal.En... |
package com.sogou.fastomiai;
import java.util.HashMap;
import java.util.Map;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.sogou.fastomiai.controller.SessionManager;
import com.sogou.fastomiai.model.InviteSendInfo;
import com.sogou.fastomiai.util.Constants;
import com.sogou.fasto... |
package edu.cornell.mannlib.vitro.webapp.controller.jena;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import... |
package com.wegas.core.ejb;
import com.wegas.core.exception.client.WegasErrorMessage;
import com.wegas.core.jcr.content.*;
import com.wegas.core.jcr.content.ContentConnector.WorkspaceType;
import com.wegas.core.jcr.jta.JCRConnectorProvider;
import com.wegas.core.persistence.game.GameModel;
import com.wegas.core.persist... |
package org.cobbzilla.wizard.model.entityconfig;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.cobbzilla.util.reflect.ReflectionUtil;
import org.cobbzilla.util.string.HasLocale;
import org.cobbzilla.util.string.StringUtil;
import org.cobbzilla.wizard.mo... |
package com.parc.ccn.data.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.InvalidObjectException;
import java.io.OutputStream;
import java.security.DigestOutputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import javax.xm... |
package org.eigenbase.jmi;
import java.io.*;
import java.util.*;
import javax.jmi.model.*;
import javax.jmi.reflect.*;
import org.eigenbase.util.*;
import org.netbeans.api.xmi.*;
import org.netbeans.lib.jmi.util.*;
/**
* Static JMI utilities.
*
* @author John V. Sichi
* @version $Id$
*/
public abstract class JmiOb... |
package com.winterwell.utils;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
import java.util.Stack;
import com.winterwell.utils.io.ISerialize;
/**
* Store global (default) and background (thread-local) properties. A background
* pro... |
package com.kylantraynor.civilizations.economy;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import com.kylantraynor.civilizations.Civilizations;
import com.kylantraynor.civilizations.groups.Group;
/**
* Represents an entity which can... |
package com.kylantraynor.civilizations.hook.dynmap;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.HashMap;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import org.dynmap.DynmapAPI;
import org.dynmap.markers.A... |
package com.censoredsoftware.demigods.engine;
import com.censoredsoftware.censoredlib.CensoredLibPlugin;
import com.censoredsoftware.censoredlib.helper.CensoredJavaPlugin;
import com.censoredsoftware.demigods.engine.data.DataManager;
import com.censoredsoftware.demigods.engine.data.TaskManager;
import com.censoredsoftw... |
package no.ntnu.stud.fallprevention.connectivity;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import no.ntnu.stud.fallprevention.Constants;
import no.ntnu.stud.fallprevention.datastructures.RiskStatus;
import android.annotation.SuppressLint;
import... |
package org.yamcs.yarch.rocksdb;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.rocksdb.ColumnFamilyDescriptor;
... |
package com.github.devconslejme.gendiag.es;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;
import com.github.devconslejme.gendiag.ResizablePanel;
import com.github.devconslejme.gendiag.es.HierarchyI.Blocker;
import com.github.devconslejme.gendiag.es.HierarchyI.LastFocusTime;
import com.g... |
package com.wunderlist.slidinglayer.transformer;
import android.view.View;
import com.wunderlist.slidinglayer.LayerTransformer;
import com.wunderlist.slidinglayer.SlidingLayer;
import com.wunderlist.slidinglayer.utils.Transitions;
public final class SlideJoyTransformer extends LayerTransformer {
@Override
publi... |
package com.minetexas.nodroppingoffline;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protoco... |
import java.io.File;
import java.lang.module.ModuleFinder;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.util.List;
/** Bach's init program. */
class init {
public static Path BIN = Path.of(".bach/bin");
public static void main(Strin... |
package com.punchline.javalib.entities;
import com.badlogic.gdx.utils.Pool.Poolable;
import com.punchline.javalib.entities.components.Component;
import com.punchline.javalib.entities.components.ComponentManager;
import com.punchline.javalib.entities.events.EventHandler;
/**
* A game entity that contains several {@link... |
package nl.nn.adapterframework.pipes;
import nl.nn.adapterframework.configuration.ConfigurationException;
import nl.nn.adapterframework.core.PipeForward;
import nl.nn.adapterframework.core.PipeLineSession;
import nl.nn.adapterframework.core.PipeRunException;
import nl.nn.adapterframework.core.PipeRunResult;
import nl.n... |
package nl.nn.adapterframework.util;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
/**
* Builds a XML-element with attributes and sub-elements.
* In fact it represents an XML element. Attributes can be added
* with the addAttribute method, the content can... |
package ca.ualberta.lard.Stretchy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolExc... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.dnd.DragSource;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.net.URL;
import java.util.Objects;
import java.util.stream.Stream;
import javax.swing.*;... |
package com.docker.script;
import chat.errors.CoreException;
import chat.logs.LoggerEx;
import chat.utils.TimerEx;
import chat.utils.TimerTaskEx;
import com.docker.data.Service;
import com.docker.errors.CoreErrorCodes;
import com.docker.server.OnlineServer;
import com.docker.storage.adapters.DockerStatusService;
import... |
/*
This class exists because KeyTool kind of sucks.
That's right, I said it. KeyTool sucks.
*/
import java.security.KeyStore;
import java.io.FileInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Enumeration;
import java.util.ArrayList;
import java.security.UnrecoverableKeyException;
public class KeyT... |
package net.gogo98901.ox;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import... |
package org.bds.report;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.bds.Bds;
import org.bds.Config;
import org.bds.cluster.host.HostResources;
import org.bds.lang.expression.ExpressionTask;... |
package org.libbun;
public final class PegRuleSet {
UMap<Peg> pegMap;
UMap<String> objectLabelMap = null;
boolean lrExistence = false;
public boolean foundError = false;
UMap<CheckData> checkMemoModeMap = new UMap<CheckData>();
class CheckData {
Peg e;
int p... |
package algorithms.problems;
import java.io.FileNotFoundException;
import algorithms.util.InputUtil;
public class Permutations {
private void generatePermuations(char[] arr) {
printPermuatations(arr, 0);
}
private void printPermuatations(char[] arr, int start) {
if (start == arr.length - 1) {
print(... |
package com.facebook.react.modules.deviceinfo;
import android.content.Context;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.LifecycleEventListener;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.br... |
package com.phonegap.plugins.twilioclient;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.api.PluginResult;
import org.apache.cordova.api.PluginResult.Status;
import org.json... |
package nl.tudelft.watchdog.logic.network;
import java.io.IOException;
import java.nio.charset.Charset;
import nl.tudelft.watchdog.ui.preferences.Preferences;
import nl.tudelft.watchdog.util.WatchDogLogger;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import... |
package org.wordpress.android.analytics;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public final class AnalyticsTracker {
private static bool... |
package org.eclipse.hono.adapter.http.vertx;
import org.eclipse.hono.service.AbstractApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.anno... |
package ru.stqa.pft.addressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.WebDriver;
public class BaseHelper {
protected WebDriver wd;
public BaseHelper(WebDriver wd) {
this.wd = wd;
}
public void type(By locator, String text) {... |
package com.rnpaypal;
import android.content.Intent;
import android.app.Activity;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react... |
// CloudCoder - a web-based pedagogical programming environment
// This program is free software: you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
package org.c... |
package org.spine3.examples.todolist.c.aggregates;
import com.google.protobuf.Message;
import org.spine3.examples.todolist.TaskCreation;
import org.spine3.examples.todolist.TaskDetails;
import org.spine3.examples.todolist.TaskId;
import org.spine3.examples.todolist.TaskStatus;
import org.spine3.examples.todolist.c.comm... |
package com.example.profbola.bakingtime.ui.widget;
import android.annotation.TargetApi;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundl... |
package com.squizbit.opendialer.library.widget;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.provider.MediaStore;
import... |
package se.chalmers.dat255.sleepfighter.model;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import se.chalmers.dat255.sleepfighter.model.AlarmsManager.EarliestInfo;
import se.chalmers.dat255.sleepfighter.utils.message.Message;
import se.chalmers.dat25... |
package peergos.tests;
import org.junit.Test;
import com.subgraph.orchid.*;
import java.io.*;
import java.net.*;
import javax.net.*;
public class TorTest {
@Test
public void connect() throws IOException {
TorClient tor = new TorClient();
tor.start();
while (true)
try {
... |
package org.jnosql.artemis.column;
import org.jnosql.artemis.AttributeConverter;
import org.jnosql.artemis.Converters;
import org.jnosql.artemis.reflection.ClassRepresentation;
import org.jnosql.artemis.reflection.ClassRepresentations;
import org.jnosql.artemis.reflection.FieldRepresentation;
import org.jnosql.artemis.... |
package org.neo4j.impl.core;
import java.util.Iterator;
import java.util.List;
import org.neo4j.api.core.Direction;
import org.neo4j.api.core.Node;
import org.neo4j.api.core.Relationship;
import org.neo4j.api.core.RelationshipType;
import org.neo4j.api.core.ReturnableEvaluator;
import org.neo4j.api.core.StopEvaluator;
... |
package etomica.conjugategradient;
import etomica.action.Activity;
import etomica.atom.AtomAgentManager;
import etomica.atom.AtomSet;
import etomica.atom.IAtom;
import etomica.atom.AtomAgentManager.AgentSource;
import etomica.atom.iterator.IteratorDirective;
import etomica.box.Box;
import etomica.data.meter.MeterPotent... |
package com.battlehack.melder.api.service;
import com.battlehack.melder.api.domain.entities.MelderUser;
import com.battlehack.melder.api.domain.repositories.MelderUserRepository;
import com.battlehack.melder.api.tos.*;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.NameValuePair;
import org.... |
package ai.verta.modeldb.batchProcess;
import ai.verta.common.CollaboratorTypeEnum;
import ai.verta.common.ModelDBResourceEnum.ModelDBServiceResourceTypes;
import ai.verta.common.VisibilityEnum;
import ai.verta.common.WorkspaceTypeEnum;
import ai.verta.modeldb.ModelDBConstants;
import ai.verta.modeldb.authservice.AuthS... |
package au.com.williamhill.flywheel.backplane;
import static java.util.concurrent.TimeUnit.*;
import static junit.framework.TestCase.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import org.apache.kafka.clients.consumer.*;
import org.apache.kafka.clients.producer.*;
import ... |
package org.intermine.bio.postprocess;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.apache.log4j.Logger;
import org.flymine.model.genomic.Annotation;
import org.flymine.model.genomic.BlastMatch;
import org.flymine.model.genomic.DataSet;
import org.f... |
package player;
import java.util.Arrays;
import game.Answer;
import game.GameLogic;
import game.Question;
import game.Scoreboard;
import game.Scoreboard.ScoreType;
import util.Persistence;
import util.YahtzeeMath;
public class SinglePlayerAI extends BaseAI {
public double[] boardValues;
public static final Stri... |
package com.flipboard.bottomsheet.commons;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.support.annotation.MenuRes;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.support.v4.view.ViewCompat;
impor... |
package pl.edu.icm.cermine.structure;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
import pl.edu.icm.cermine.exception.AnalysisException;
import pl.edu.icm.cermine.structure.model.BxDocument;
import pl.edu.icm.cermine.structure.model.BxPage;
/**
* Page segmenter using Docstrum algo... |
package com.codenvy.organization.invite;
import com.codenvy.api.core.ApiException;
import com.codenvy.api.core.rest.HttpJsonHelper;
import com.codenvy.api.core.rest.shared.dto.Link;
import com.codenvy.api.core.ConflictException;
import com.codenvy.api.core.NotFoundException;
import com.codenvy.api.core.ServerException;... |
package org.openforis.collect.io.data;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
... |
package com.ensoftcorp.open.purity.analysis;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
import java.util.TreeSet;
import com.ensoftcorp.atlas.core.db.graph.Graph;
import com.ensoftcorp.atlas.core.db.graph.GraphElement;
import com.ensoftcorp.atlas.core.db.g... |
package com.yahoo.vespa.model.container.xml;
import com.yahoo.config.docproc.DocprocConfig;
import com.yahoo.config.docproc.SchemamappingConfig;
import com.yahoo.config.model.deploy.DeployState;
import com.yahoo.config.model.builder.xml.test.DomBuilderTest;
import com.yahoo.container.BundlesConfig;
import com.yahoo.con... |
package org.jboss.as.controller.services.path;
import static org.jboss.as.controller.ControllerMessages.MESSAGES;
import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.PATH;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.u... |
package com.oneops.controller.jms;
import com.oneops.cms.cm.domain.CmsCI;
import com.oneops.cms.cm.domain.CmsCIAttribute;
import com.oneops.cms.cm.domain.CmsCIRelation;
import com.oneops.cms.cm.domain.CmsCIRelationAttribute;
import com.oneops.cms.cm.service.CmsCmProcessor;
import com.oneops.cms.simple.domain.CmsCISimpl... |
package alluxio.security.authentication;
import alluxio.Configuration;
import alluxio.Constants;
import com.google.common.base.Preconditions;
import org.apache.thrift.transport.TFramedTransport;
import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TTransportFactory;
import java.net.InetSock... |
package edu.neu.ccs.pyramid.multilabel_classification.cbm;
import edu.neu.ccs.pyramid.dataset.MultiLabel;
import edu.neu.ccs.pyramid.multilabel_classification.DynamicProgramming;
import edu.neu.ccs.pyramid.util.MathUtil;
import java.util.*;
public class CBMPredictor {
/**
* number of clusters
*/
int n... |
package com.graphhopper.routing.util.parsers;
import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.ev.EnumEncodedValue;
import com.graphhopper.routing.ev.HazmatTunnel;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;
import org.junit.jupiter.api.BeforeEach;... |
package org.opencds.cqf.cql.data.fhir;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.api.Bundle;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.rest.client.IGenericClient;
import ca.uhn.fhir.rest.gclient.IQuery;
import org.hl7.fhir.dstu3.model.Enumeration;
import org.opencds.cqf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.