answer stringlengths 17 10.2M |
|---|
package com.yahoo.vespa.model.admin.monitoring;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import static com.yahoo.vespa.model.admin.monitoring.DefaultVespaMetrics.defaultVespaMetricSet;
import static java.util.Collections.singleton;
/**
* Encapsulates ve... |
package com.yahoo.vespa.config.server.deploy;
import com.yahoo.cloud.config.ConfigserverConfig;
import com.yahoo.component.Version;
import com.yahoo.config.application.api.ApplicationPackage;
import com.yahoo.config.application.api.DeployLogger;
import com.yahoo.config.application.api.FileRegistry;
import com.yahoo.con... |
package com.sequenceiq.cloudbreak.service.stack.flow;
import static com.sequenceiq.cloudbreak.domain.Status.AVAILABLE;
import static com.sequenceiq.cloudbreak.domain.Status.DELETE_FAILED;
import static com.sequenceiq.cloudbreak.domain.Status.STOPPED;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;... |
package org.bouncycastle.pqc.crypto.mceliece;
import java.security.SecureRandom;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.CryptoServicesRegistrar;
import org.bouncycastle.crypto.Digest;
import org.bouncycastle.crypto.InvalidCipherTextException;
import org.bouncycastle.crypto.diges... |
/* @test
* @summary unit tests for coroutines
* @run junit/othervm test.java.dyn.CoroutineTest
*/
package com.oracle.truffle.coro.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
imp... |
package io.digdag.standards.operator.td;
import com.google.common.base.Optional;
import com.treasuredata.client.TDClientException;
import io.digdag.client.config.Config;
import io.digdag.spi.OperatorContext;
import io.digdag.spi.TaskExecutionException;
import io.digdag.spi.TaskResult;
import io.digdag.standards.operato... |
package tools.descartes.dlim.extractor;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.math3.analysis.function.Gaussian;
import org.apache.commons.math3.stat.correlation.PearsonsCorrelation;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import tools.descartes.dlim.Se... |
package com.silverpeas.interestCenter.ejb;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import com.silverpeas.accesscontrol.ForbiddenRuntimeException;
import com.silverpeas.i... |
package cz.seznam.euphoria.core.executor.inmem;
import cz.seznam.euphoria.core.client.dataset.BatchWindowing;
import cz.seznam.euphoria.core.client.dataset.Partitioning;
import cz.seznam.euphoria.core.client.dataset.Windowing;
import cz.seznam.euphoria.core.client.flow.Flow;
import cz.seznam.euphoria.core.client.functi... |
package org.fedorahosted.flies.core.rest;
import java.util.Set;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import net.openl10n.api.ContentType;
import net.openl10n.api.rest.document.Document;
import net.openl10n.api.rest.project.Project;
import org.apache.commons.lang.StringUtils;
imp... |
package org.curriki.gwt.client.widgets.currikiitem.display;
import java.util.ArrayList;
import java.util.List;
import com.xpn.xwiki.gwt.api.client.Document;
import com.xpn.xwiki.gwt.api.client.Attachment;
import com.xpn.xwiki.gwt.api.client.XObject;
import com.google.gwt.user.client.ui.*;
import com.google.gwt.user.cli... |
package i2am.filtering.common;
import i2am.metadata.DbAdmin;
import javax.sql.DataSource;
import java.sql.*;
public class DbAdapter {
private Connection connection;
private PreparedStatement preparedStatement;
private ResultSet resultSet;
private final DbAdmin dbAdmin;
private final DataSource ds;
... |
package com.inepex.ineom.shared.assistedobject;
import java.util.List;
import com.inepex.ineom.shared.AssistedObjectHandlerFactory;
import com.inepex.ineom.shared.IFConsts;
import com.inepex.ineom.shared.IneList;
import com.inepex.ineom.shared.IneT;
import com.inepex.ineom.shared.Relation;
import com.inepex.ineom.share... |
package com.iterable.iterableapi;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.util.DisplayMetric... |
package org.javarosa.formmanager.utility;
import org.javarosa.core.Context;
/**
* An interface for specifying actions to occur at the end of a form
* entry activity.
*
* @author Clayton Sims
* @date Jan 30, 2009
*
*/
public interface ILoadHost {
/**
* A handler method that will be called upon completion... |
//snippet-sourcedescription:[SendMessageBatch.java demonstrates how to send batch SMS messages.]
//snippet-keyword:[AWS SDK for Java v2]
//snippet-keyword:[Amazon Pinpoint]
package com.example.pinpoint;
//snippet-start:[pinpoint.java2.sendmsg.batch.import]
import software.amazon.awssdk.auth.credentials.ProfileCredentia... |
package org.ihtsdo.otf.mapping.jpa.handlers;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter... |
package org.ihtsdo.otf.mapping.jpa.services;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.persistence.NoResultException... |
package com.blackboard.testing.lambda;
import static com.blackboard.testing.lambda.logger.LoggerContainer.LOGGER;
import static java.util.Optional.ofNullable;
import com.blackboard.testing.common.LambdaBaseTest;
import com.blackboard.testing.runner.ParallelParameterized;
import com.blackboard.testing.testcontext.TestUU... |
package org.languagetool.language;
import com.google.common.cache.*;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.languagetool.*;
import org.languagetool.chunking.Chunker;
import org.languagetool.chunking.EnglishChunker;
import org.languagetool.languagemodel.LanguageMo... |
package com.prolificinteractive.materialcalendarview;
import android.content.Context;
import android.support.v4.view.BetterViewPager;
import android.view.MotionEvent;
/**
* Custom ViewPager that allows swiping to be disabled.
*/
class CalendarPager extends BetterViewPager {
private boolean pagingEnabled = true;
... |
/**
* This file is automatically generated by wheat-build.
* Do not modify this file -- YOUR CHANGES WILL BE ERASED!
*/
package x7c1.linen.res.layout;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.View;
import android.widget.TextView;
import an... |
package org.jboss.forge.furnace.maven.plugin;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import org.apache.maven.plugin.AbstractM... |
package jpaoletti.jpm.core.operations;
import java.util.Set;
import jpaoletti.jpm.core.PMContext;
import jpaoletti.jpm.core.PMException;
/**
*
* @author jpaoletti
*/
public class SelectItemOperation extends OperationCommandSupport {
public SelectItemOperation(String operationId) {
super(operationId);
... |
package be.ibridge.kettle.core.database;
import be.ibridge.kettle.core.Const;
import be.ibridge.kettle.core.value.Value;
/**
* Contains Oracle specific information through static final members
*
* @author Matt
* @since 11-mrt-2005
*/
public class OracleDatabaseMeta extends BaseDatabaseMeta implements DatabaseInte... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ch.unizh.ini.jaer.projects.gesture.hmm;
import ch.unizh.ini.jaer.projects.gesture.virtualdrummer.BlurringFilter2DTracker;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.Point2D;
import java.io.*... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ch.unizh.ini.jaer.projects.neuralnets;
import java.io.*;
import java.text.DecimalFormat;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.JFrame... |
package cn.ecailan.esy.activity;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;... |
package com.dexvis.dex.task.tablemanipulation;
import org.simpleframework.xml.Root;
import com.dexvis.dex.exception.DexException;
import com.dexvis.dex.wf.DexTask;
import com.dexvis.dex.wf.DexTaskState;
@Root
public class AddRowNumber extends DexTask
{
public AddRowNumber() throws DexException
{
super("Table Ma... |
package com.ibm.nmon.gui.interval;
import javax.swing.AbstractAction;
import java.awt.event.ActionEvent;
import java.awt.Component;
import javax.swing.JOptionPane;
import com.ibm.nmon.gui.main.NMONVisualizerGui;
/**
* Action listener that removes all intervals from the IntervalManager.
*/
public final class RemoveAll... |
package com.interview.dynamic;
public class LongestIncreasingSubsequence {
/**
* DP way of solving LIS
*/
public int longestSubsequenceWithActualSolution(int arr[]){
int T[] = new int[arr.length];
int actualSolution[] = new int[arr.length];
for(int i=0; i < arr.length; i++){
... |
package com.quollwriter.editors.ui.sidebars;
import java.awt.Dimension;
import java.awt.Component;
import java.awt.Font;
import java.awt.Color;
import java.awt.event.*;
import java.awt.Image;
import java.awt.image.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import java.util.List;
i... |
package com.swabunga.spell.engine;
import java.io.*;
import java.util.*;
/**
* Another implementation of <code>SpellDictionary</code> that doesn't cache any words in memory. Avoids the huge
* footprint of <code>SpellDictionaryHashMap</code> at the cost of relatively minor latency. A future version
* of this class th... |
package com.tempestasludi.java.p14_cssp.pcss.general;
import java.util.ArrayList;
import com.tempestasludi.java.p14_cssp.pcss.properties.Variable;
import com.tempestasludi.java.p14_cssp.pcss.selectors.Selector;
/**
* Block represents a CSS block, starting with a set of selectors, followed by a
* set of units.
*
* @... |
package com.vectrace.MercurialEclipse.dialogs;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.compare.ResourceNode;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.content.IContentType;
import org.eclipse.... |
package net.echinopsii.ariane.community.messaging.nats;
import akka.actor.ActorRef;
import io.nats.client.Connection;
import io.nats.client.Message;
import io.nats.client.SyncSubscription;
import net.echinopsii.ariane.community.messaging.api.*;
import net.echinopsii.ariane.community.messaging.common.MomAkkaAbsServiceFa... |
package org.navalplanner.web.planner.order;
import static org.navalplanner.web.I18nHelper._;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging... |
package org.nakedobjects.object.persistence.defaults;
import org.nakedobjects.NakedObjects;
import org.nakedobjects.object.InternalCollection;
import org.nakedobjects.object.Naked;
import org.nakedobjects.object.NakedObject;
import org.nakedobjects.object.NakedObjectRuntimeException;
import org.nakedobjects.object.Pers... |
package tuwien.inso.mnsa.nokiaprovider.intern;
import java.io.IOException;
import javax.smartcardio.ATR;
import javax.smartcardio.CommandAPDU;
import javax.smartcardio.ResponseAPDU;
@SuppressWarnings("restriction")
public interface Connection {
/**
* Establishes this connection. does nothing if the connection ... |
package org.eclipse.egit.ui.internal.merge;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.eclipse.compare.CompareConfigurat... |
package org.metaborg.meta.nabl2.solver;
import java.time.Duration;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.Set;
import org.metaborg.meta.nabl2.constraints.IConstraint;
import org.metaborg.meta.nabl2.constraints.messages.IMessageContent;
import... |
package org.knopflerfish.bundle.junit;
import java.io.*;
import java.util.Dictionary;
import java.util.Hashtable;
import org.osgi.framework.*;
import org.osgi.util.tracker.*;
import org.knopflerfish.service.console.*;
import org.knopflerfish.service.junit.*;
import junit.framework.*;
public class JUnitCommandGroup exte... |
package cz.metacentrum.perun.rpc.methods;
import java.util.ArrayList;
import java.util.List;
import cz.metacentrum.perun.core.api.*;
import cz.metacentrum.perun.core.api.exceptions.PerunException;
import cz.metacentrum.perun.rpc.ApiCaller;
import cz.metacentrum.perun.rpc.ManagerMethod;
import cz.metacentrum.perun.rpc.R... |
package com.intellij.codeInsight.daemon.impl;
import com.intellij.codeHighlighting.HighlightDisplayLevel;
import com.intellij.codeHighlighting.Pass;
import com.intellij.codeInsight.daemon.DaemonBundle;
import com.intellij.codeInsight.daemon.HighlightDisplayKey;
import com.intellij.codeInsight.daemon.impl.analysis.Daemo... |
package org.jkiss.dbeaver.registry;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.... |
package com.theoryinpractice.testng.configuration;
import com.intellij.ExtensionPoints;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.coverage.CoverageDataManager;
import com.intellij.coverage.CoverageSuite;
import com.intellij.coverage.IDEACoverageRunner;
import com.intellij.debugger.engine.Debug... |
package org.batfish.datamodel;
import static java.util.Comparator.naturalOrder;
import static java.util.Comparator.nullsFirst;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;
import com.google.common.collect.Comparators;
import com.google.common.collect.ImmutableList;
im... |
package org.motechproject.nms.rch.service.impl;
import org.apache.axis.Message;
import org.apache.axis.MessageContext;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.SerializationContext;
import org.apache.axis.encoding.ser.BeanSerializer;
import org.apache.axis.server.AxisServer;
import o... |
package cz.cuni.lf1.lge.ThunderSTORM.datagen;
import cz.cuni.lf1.lge.ThunderSTORM.filters.BoxFilter;
import cz.cuni.lf1.lge.ThunderSTORM.filters.IFilter;
import cz.cuni.lf1.lge.ThunderSTORM.util.ImageProcessor;
import static cz.cuni.lf1.lge.ThunderSTORM.util.Math.ceil;
import cz.cuni.lf1.lge.ThunderSTORM.util.Range;
im... |
package de.geeksfactory.opacclient.frontend;
import java.io.InterruptedIOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.acra.ACRA;
import org.holoeverywhere.LayoutInflater;
import org.holoeverywhere.ap... |
package de.mrapp.android.preference;
import static de.mrapp.android.preference.util.Condition.ensureAtLeast;
import static de.mrapp.android.preference.util.Condition.ensureNotNull;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Typ... |
package dk.netarkivet.harvester.scheduler;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.jms.JMSException;
import javax.jms.QueueBrowser;
import org.apache.commons.logging.Log;
import org.apache.commons.l... |
package dr.evolution.tree.treemetrics;
import dr.evolution.tree.Clade;
import dr.evolution.tree.Tree;
import java.util.*;
import static dr.evolution.tree.treemetrics.TreeMetric.Utils.checkTreeTaxa;
/**
* @author Andrew Rambaut
* @version $Id$
*/
public class RobinsonFouldsMetric implements TreeMetric {
public st... |
package dr.evomodelxml.coalescent;
import dr.evolution.tree.Tree;
import dr.evolution.tree.TreeUtils;
import dr.evolution.util.Taxa;
import dr.evolution.util.TaxonList;
import dr.evomodel.coalescent.*;
import dr.evomodel.tree.TreeModel;
import dr.xml.*;
import java.util.ArrayList;
import java.util.List;
/**
* MultiTre... |
package dr.math.distributions;
import dr.math.ErrorFunction;
import org.apache.commons.math.MathException;
import org.apache.commons.math.special.Beta;
import dr.math.*;
/**
* @author Trevor Bedford
* @version $Id$
*/
public class NegativeBinomialDistribution implements Distribution {
double mean;
double std... |
package uk.org.taverna.scufl2.translator.t2flow;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
im... |
package brooklyn.entity.monitoring.monit;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import brooklyn.entity.Entity;
import brooklyn.entity.basic.SoftwareProcessImpl;
import brooklyn.event.feed.ssh.SshFeed;
import brooklyn.event.feed.ssh.SshPollConfig;
import brooklyn.event.feed.ssh.S... |
package gov.nih.nci.evs.browser.utils;
import java.io.*;
import java.util.*;
import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag;
import org.LexGrid.LexBIG.Utility.Constructors;
import org.json.JSONArray;
import org.json.JSONObject;
import org.lexevs.tree.json.JsonConverter;
import org.lexevs.tree.json.Js... |
package fitnesse.slim.fixtureInteraction;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
public class CachedInteraction extends DefaultInteraction {
private static final Constructor<?> noConstructor = NotExisting.class.getConstructors()[0];
pri... |
package gov.lanl.adore.djatoka.openurl;
import gov.lanl.adore.djatoka.IExtract;
import gov.lanl.adore.djatoka.io.FormatConstants;
import gov.lanl.adore.djatoka.kdu.KduExtractExe;
import gov.lanl.adore.djatoka.util.IOUtils;
import gov.lanl.adore.djatoka.util.ImageProcessingUtils;
import gov.lanl.adore.djatoka.util.Image... |
/**
* This is a Data Transfer Object that sends and recieves data between
* ExecuteWorkflowAction and ExecuteWorkflowService objects
*
*/
package gov.nih.nci.calab.dto.workflow;
/**
* @author caLAB Team
*
*/
public class ExecuteWorkflowBean {
private String inFileName;
private String outFileName;
pri... |
package gov.nih.nci.cananolab.service.report;
import gov.nih.nci.cananolab.domain.common.Report;
import gov.nih.nci.cananolab.domain.particle.NanoparticleSample;
import gov.nih.nci.cananolab.dto.common.ReportBean;
import gov.nih.nci.cananolab.exception.CaNanoLabSecurityException;
import gov.nih.nci.cananolab.exception.... |
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.apache.commons.io.FilenameUtils;
import org.endeavourhealth.common.utility.FileHelper;
import org... |
package org.rstudio.studio.client.panmirror.dialogs;
import org.rstudio.core.client.ElementIds;
import org.rstudio.core.client.StringUtil;
import org.rstudio.core.client.dom.DomUtils;
import org.rstudio.core.client.files.FileSystemItem;
import org.rstudio.core.client.theme.DialogTabLayoutPanel;
import org.rstudio.core.... |
/**
* This is only generated once! It will never be overwritten.
* You can (and have to!) safely modify it by hand.
*/
package edu.columbia.gemma.common.description;
import java.util.Collection;
/**
* @see edu.columbia.gemma.common.description.BibliographicReferenceService
*/
public class BibliographicReferenceSer... |
package localsearch.domainspecific.vehiclerouting.apps.sharedaride.Search;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import java.util.logging.Level;
import localsearch.domainspecific.vehiclerouting.apps.sharedaride.ShareARide;
import localsearch.domainspecific.vehiclerouting.app... |
package at.ac.tuwien.inso.controller.lecturer;
import at.ac.tuwien.inso.controller.lecturer.forms.*;
import at.ac.tuwien.inso.entity.*;
import at.ac.tuwien.inso.service.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;
im... |
package at.ac.tuwien.kr.alpha.grounder.transformation;
import at.ac.tuwien.kr.alpha.common.Predicate;
import at.ac.tuwien.kr.alpha.common.atoms.Atom;
import at.ac.tuwien.kr.alpha.common.atoms.BasicAtom;
import at.ac.tuwien.kr.alpha.common.atoms.Literal;
import at.ac.tuwien.kr.alpha.common.depgraph.ComponentGraph;
impor... |
package com.foundationdb.server.store.format.tuple;
import com.foundationdb.ais.model.Group;
import com.foundationdb.ais.model.Index;
import com.foundationdb.ais.model.HasStorage;
import com.foundationdb.ais.model.StorageDescription;
import com.foundationdb.ais.model.validation.AISValidationFailure;
import com.foundati... |
package com.github.bingoohuang.springrest.boot.interceptor;
import com.github.bingoohuang.springrest.boot.annotations.RestfulSign;
import com.github.bingoohuang.utils.codec.Base64;
import com.github.bingoohuang.utils.net.Http;
import com.google.common.base.Joiner;
import com.google.common.base.Strings;
import com.googl... |
package com.github.onsdigital.babbage.publishing.model;
import com.github.onsdigital.babbage.configuration.Configuration;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
public class PublishNotification {
private String key;
private String collec... |
package edu.neu.ccs.pyramid.multilabel_classification.crf;
import edu.neu.ccs.pyramid.dataset.MultiLabel;
import edu.neu.ccs.pyramid.dataset.MultiLabelClfDataSet;
import edu.neu.ccs.pyramid.multilabel_classification.MLScorer;
import edu.neu.ccs.pyramid.optimization.LBFGS;
import edu.neu.ccs.pyramid.util.MathUtil;
impor... |
package edu.ucar.unidata.rosetta.init.resources;
import edu.ucar.unidata.rosetta.domain.resources.*;
import edu.ucar.unidata.rosetta.exceptions.RosettaDataException;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.dao.No... |
package eu.spitfire.ssp.server.channels.handler.cache;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URI;
import java.net.URL;
import java.nio.file.Path;
import java.util.Date... |
package hudson.plugins.scm_sync_configuration;
import com.google.common.io.Files;
import hudson.model.Hudson;
import hudson.model.User;
import hudson.plugins.scm_sync_configuration.exceptions.LoggableException;
import hudson.plugins.scm_sync_configuration.model.*;
import hudson.plugins.scm_sync_configuration.strategies... |
package hudson.plugins.scm_sync_configuration;
import com.google.common.io.Files;
import hudson.model.Hudson;
import hudson.model.User;
import hudson.plugins.scm_sync_configuration.exceptions.LoggableException;
import hudson.plugins.scm_sync_configuration.model.*;
import hudson.plugins.scm_sync_configuration.strategies... |
package org.dasein.cloud.cloudsigma.network.firewall;
import org.apache.log4j.Logger;
import org.dasein.cloud.CloudException;
import org.dasein.cloud.InternalException;
import org.dasein.cloud.OperationNotSupportedException;
import org.dasein.cloud.ProviderContext;
import org.dasein.cloud.Requirement;
import org.dasein... |
package org.spongepowered.api.event.entity.living;
import org.spongepowered.api.entity.living.Living;
import org.spongepowered.api.event.entity.EntityInteractBlockEvent;
import org.spongepowered.api.world.Location;
/**
* Called when a {@link Living} interacts with a {@link Location}.
*/
public interface LivingInterac... |
// Getdown - application installer, patcher and launcher
// This program is free software; you can redistribute it and/or modify it
// any later version.
// This program is distributed in the hope that it will be useful, but WITHOUT
// more details.
// this program; if not, write to the: Free Software Foundation, Inc.,... |
package de.longor.talecraft.commands;
import java.util.Collections;
import java.util.List;
import de.longor.talecraft.TaleCraft;
import de.longor.talecraft.network.StringNBTCommandPacket;
import de.longor.talecraft.util.CommandArgumentParser;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.comma... |
package org.apache.commons.net.ftp;
import java.io.BufferedReader;
import java.io.IOException;
/**
* FTPFileEntryParser defines the interface for parsing a single FTP file
* listing and converting that information into an
* <a href="org.apache.commons.net.ftp.FTPFile.html"> FTPFile </a> instance.
* Sometimes you wi... |
package aeronicamc.mods.mxtune.blocks;
import aeronicamc.mods.mxtune.init.ModSoundEvents;
import aeronicamc.mods.mxtune.managers.PlayIdSupplier;
import aeronicamc.mods.mxtune.managers.PlayManager;
import aeronicamc.mods.mxtune.util.IInstrument;
import aeronicamc.mods.mxtune.util.IWrenchAble;
import aeronicamc.mods.mxtu... |
package scalabilityTests.framework.listeners;
import java.io.Serializable;
import org.apache.log4j.Logger;
import org.objectweb.proactive.extensions.annotation.RemoteObject;
import org.ow2.proactive.scheduler.common.NotificationData;
import org.ow2.proactive.scheduler.common.SchedulerEvent;
import org.ow2.proactive.sch... |
package be.isach.samaritan.birthday;
import be.isach.samaritan.Samaritan;
import com.google.common.collect.Maps;
import net.dv8tion.jda.entities.Guild;
import net.dv8tion.jda.entities.User;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.Instant;
import org.joda.time.format.DateTi... |
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... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package be.luckycode.projetawebservice;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence... |
package cn.byhieg.algorithmtutorial;
/**
*
* BSTo(N)
*
* <p>
*
* 1.
* 2.
* 3.
* 4.
* 5.
* <p>
* 5
*/
public class RedBlackTree {
Node root;
public RedBlackTree() {
}
public RedBlackTree(int value) {
root = new Node(value);
}
public Node find(int value) {
if (root == ... |
package org.sagebionetworks.web.unitclient.presenter;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import ... |
package com.alibaba.ttl;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.Callable;
import java.util.function.Supplier;
import java.util.logging.Level;
import java.util.... |
package com.hazelcast.stabilizer.coordinator;
import com.hazelcast.logging.ILogger;
import com.hazelcast.logging.Logger;
import com.hazelcast.stabilizer.Utils;
import com.hazelcast.stabilizer.coordinator.remoting.AgentClient;
import com.hazelcast.stabilizer.coordinator.remoting.AgentsClient;
import com.hazelcast.stabil... |
package com.braintreegateway;
/**
* An Enum representing all of the validation errors from the gateway.
*/
public enum ValidationErrorCode {
ADDRESS_CANNOT_BE_BLANK("81801"),
ADDRESS_COMPANY_IS_INVALID("91821"),
ADDRESS_COMPANY_IS_TOO_LONG("81802"),
ADDRESS_COUNTRY_CODE_ALPHA2_IS_NOT_ACCEPTED("91814")... |
package org.biojava.bio.structure.align.client;
import org.biojava.bio.structure.align.util.ResourceManager;
public class FarmJobParameters {
public static final int DEFAULT_JOB_TIME = -1;
public static final int DEFAULT_NR_ALIGNMENTS = -1;
public static final int DEFAULT_NR_THREADS = 1;
public static f... |
package org.biojava.bio.structure.align.fatcat;
import junit.framework.TestCase;
public class TestOutputStrings extends TestCase
{
static final String newline = System.getProperty("line.separator");
public void printFirstMismatch(String s1, String s2){
String[] spl1 = s1.split(newline);
String[] spl2 ... |
package com.danubetech.libsovrin;
public class SovrinException extends Exception {
private static final long serialVersionUID = 2650355290834266477L;
public SovrinException(String message) {
super(message);
}
public static SovrinException fromErrorCode(ErrorCode errorCode) {
return new S... |
package stsc.general.simulator.multistarter;
import stsc.general.simulator.multistarter.BadParameterException;
import stsc.general.simulator.multistarter.MpDouble;
import stsc.general.simulator.multistarter.ParameterList;
import junit.framework.TestCase;
public class ParameterListTest extends TestCase {
private Par... |
package com.eharrison.canary.r2w;
import static com.eharrison.canary.r2w.RegionUtil.*;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import net.canarymod.Canary;
import net.canar... |
package com.facebook.litho;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.annotation.AttrRes;
import android.support.annotation.ColorInt;
import android.support.annotation.DimenRes;
import android.support.annotation.Dimensi... |
package org.jenkinsci.plugins.workflow.support.actions;
import hudson.model.Action;
import hudson.model.InvisibleAction;
import org.jenkinsci.plugins.workflow.graph.FlowNode;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Pause {@link FlowNode}... |
package com.faforever.api.data.domain;
import com.faforever.api.data.checks.BooleanChange;
import com.faforever.api.data.checks.IsEntityOwner;
import com.faforever.api.data.checks.permission.IsModerator;
import com.faforever.api.data.listeners.MapVersionEnricher;
import com.yahoo.elide.annotation.Audit;
import com.yaho... |
package org.openlmis.functional;
import org.openlmis.UiUtils.CaptureScreenshotOnFailureListener;
import org.openlmis.UiUtils.TestCaseHelper;
import org.openlmis.pageobjects.HomePage;
import org.openlmis.pageobjects.InitiateRnRPage;
import org.openlmis.pageobjects.LoginPage;
import org.springframework.test.context.trans... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.