answer stringlengths 17 10.2M |
|---|
package com.opengamma.financial.currency;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import com.opengamma.core.historicaltimeseries.HistoricalTimeSeries;
import com.opengamma.core.value.MarketDataRe... |
package imagej;
import imagej.plugin.PluginIndex;
import imagej.service.Service;
import imagej.service.ServiceHelper;
import imagej.service.ServiceIndex;
import imagej.util.CheckSezpoz;
import imagej.util.Manifest;
import imagej.util.POM;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collection;... |
package org.pwsafe.passwordsafeswt.dialog;
import java.util.Random;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.SelectionAdapter;
import or... |
package com.intellij.refactoring.move.moveClassesOrPackages;
import com.intellij.codeInsight.ChangeContextUtil;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.i... |
package org.ow2.proactive_grid_cloud_portal.scheduler.server;
import java.io.InputStream;
import java.util.Map;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import org.jboss.resteasy.annotations.GZIP;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.ow2.proactive_grid_cloud_p... |
package edu.wustl.catissuecore.bizlogic;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import org.json.JSONArray;
import org.json.JSONObject;
import edu.wustl.catissuecore.util.global.Constants;
import edu.wustl.common.beans.Nam... |
package gov.nih.nci.caarray.web.action.project;
import static gov.nih.nci.caarray.web.action.CaArrayActionHelper.getGenericDataService;
import static gov.nih.nci.caarray.web.action.CaArrayActionHelper.getProjectManagementService;
import gov.nih.nci.caarray.application.project.InconsistentProjectStateException;
import g... |
package com.pcalouche.spat.security.provider;
import com.pcalouche.spat.config.SpatProperties;
import com.pcalouche.spat.entity.User;
import com.pcalouche.spat.repository.UserRepository;
import com.pcalouche.spat.security.authentication.JwtAuthenticationToken;
import com.pcalouche.spat.security.util.SecurityUtils;
impo... |
package no.uio.ifi.alboc.scanner;
/*
* module Scanner
*/
import no.uio.ifi.alboc.chargenerator.CharGenerator;
import no.uio.ifi.alboc.error.Error;
import no.uio.ifi.alboc.log.Log;
import static no.uio.ifi.alboc.scanner.Token.*;
/*
* Module for forming characters into tokens.
*/
public class Scanner {
public sta... |
package com.alecstrong.sqlite.android.gradle;
import com.alecstrong.sqlite.android.SQLiteParser;
import com.alecstrong.sqlite.android.model.Column;
import com.alecstrong.sqlite.android.model.ColumnConstraint;
import com.alecstrong.sqlite.android.model.NotNullConstraint;
import com.alecstrong.sqlite.android.model.SqlStm... |
package ch.unizh.ini.jaer.projects.gesture.virtualdrummer.microphone;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.logging.Logger;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.so... |
package org.rstudio.studio.client.workbench.views.console.shell.assist;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayString;
import org.rstudio.core.client.dom.DomUtils;
import org.rstudio.core.client.js.JsUtil;
import org.rstudio.studio.client.common.codetools.CodeToolsServerOper... |
package com.wandrell.tabletop.business.model.pendragon.character;
import java.util.Collection;
import com.wandrell.tabletop.business.model.character.Gender;
import com.wandrell.tabletop.business.model.pendragon.stats.Skill;
import com.wandrell.tabletop.business.model.pendragon.stats.SpecialtySkill;
import com.wandrell.... |
package hr.dlatecki.algorithms.gen_alg.codecs.abstracts;
import hr.dlatecki.algorithms.gen_alg.codecs.interfaces.IByteArrayCodec;
public abstract class AbstractDoubleArrayToBinaryCodec implements IByteArrayCodec<double[]> {
/**
* Mask for the lowest byte.
*/
private static final long BYTE_MASK = 0xFFL... |
package il.ac.bgu.cs.bp.bpjs.model.eventselection;
import il.ac.bgu.cs.bp.bpjs.model.BSyncStatement;
import il.ac.bgu.cs.bp.bpjs.model.BEvent;
import il.ac.bgu.cs.bp.bpjs.model.eventsets.ComposableEventSet;
import il.ac.bgu.cs.bp.bpjs.model.eventsets.EventSet;
import il.ac.bgu.cs.bp.bpjs.model.eventsets.EventSets;
impo... |
package hudson.model;
import antlr.ANTLRException;
import static hudson.Util.fixNull;
import hudson.model.labels.LabelAtom;
import hudson.model.labels.LabelExpression;
import hudson.model.labels.LabelExpression.And;
import hudson.model.labels.LabelExpression.Binary;
import hudson.model.labels.LabelExpression.Iff;
impor... |
/**
* IdealRfCavity.java
*
* Author : Christopher K. Allen
* Since : Dec 3, 2014
*/
package xal.model.elem;
import java.util.Iterator;
import xal.model.IComponent;
import xal.model.IProbe;
import xal.model.ModelException;
import xal.model.elem.sync.IRfCavity;
import xal.model.elem.sync.IRfCavityCell;
import xal... |
package info.ata4.util.io.lzma;
import info.ata4.io.buffer.ByteBufferInputStream;
import info.ata4.io.buffer.ByteBufferOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import lzma.LzmaDecoder;
import lzma.LzmaEncode... |
package com.passel.data;
import android.os.Parcel;
import android.os.Parcelable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Value;
/**
* Used instead of Android's location class for efficiency.
* We make a lot of these and send them all ove... |
package org.wikipedia.util.log;
import android.util.Log;
import androidx.annotation.NonNull;
import org.wikipedia.WikipediaApp;
import org.wikipedia.util.ReleaseUtil;
/** Logging utility like {@link Log} but with implied tags. */
public final class L {
private static final LogLevel LEVEL_V = new LogLevel() {
... |
package de.dakror.vloxlands;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.FPSLogger;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.graphics.g3d.Environment;
import com.badlogic.gdx.graphics.... |
package io.cloudchaser.murmur;
import io.cloudchaser.murmur.parser.MurmurParser;
import io.cloudchaser.murmur.parser.MurmurParserBaseVisitor;
import io.cloudchaser.murmur.symbol.LetSymbol;
import io.cloudchaser.murmur.symbol.Symbol;
import io.cloudchaser.murmur.symbol.SymbolContext;
import io.cloudchaser.murmur.types.I... |
package io.miti.beetle.processor;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.... |
// $Id: MessageBundle.java,v 1.2 2002/02/09 01:35:26 mdb Exp $
package com.threerings.util;
import java.text.MessageFormat;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import com.samskivert.util.StringUtil;
/**
* A message bundle provides an easy mechanism by which to obtain
* translat... |
package org.spoofax.interpreter;
import aterm.AFun;
import aterm.ATerm;
import aterm.ATermAppl;
import aterm.ATermInt;
import aterm.ATermList;
import aterm.ATermReal;
import aterm.pure.PureFactory;
public class Tools {
public static String stringAt(ATerm t, int i) {
return ((ATermAppl) t.getChildAt(i)).getN... |
// Clirr: compares two versions of a java library for binary compatibility
// 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 PURP... |
package org.apache.commons.lang.enum;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Abstr... |
package org.jdesktop.swingx;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.swing.*;
/**
* Common Error Dialog. Composed of a title, message, and details.
* @author Richard Bair
*/
public class JXError... |
package org.jdesktop.swingx;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.a... |
package org.jdesktop.swingx;
import java.awt.Component;
import java.awt.ComponentOrientation;
import java.awt.Container;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Window;
import jav... |
package org.mtransit.parser.ca_strathcona_county_transit_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUti... |
package com.softwareonpurpose.gauntlet;
import com.softwareonpurpose.gauntlet.anobject.AnObject;
import com.softwareonpurpose.gauntlet.anobject.AnObjectCalibrator;
import com.softwareonpurpose.gauntlet.anobject.AnObjectExpected;
import org.testng.Assert;
import org.testng.annotations.Test;
@Test(groups={GauntletTest.Te... |
package org.pentaho.platform.dataaccess.datasource.wizard.service.impl;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import j... |
package gov.nih.nci.camod.webapp.util;
import gov.nih.nci.camod.Constants;
import javax.servlet.http.HttpServletRequest;
public class SidebarUtil extends gov.nih.nci.camod.webapp.action.BaseAction {
public String findSubMenu( HttpServletRequest request, String jspName )
{
System.out.println(... |
package info.tregmine.commands;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import org.bukkit.World;
import com.maxmind.geoip.Location;
import static org.bukkit.ChatColor.*;
import info.tregmine.Tregmine;
import info.tregmine.api.TregminePlayer;
import info.tregmine.database.Connect... |
package uk.bl.scope;
import java.io.File;
import java.net.InetAddress;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.List;
import models.LookupEntry;
import models.Target;
import play.Logger;
import uk.bl.Const;
import uk.bl.api.Utils;
import uk.bl.ex... |
package utilities;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.TimeZone;
public class General {
public static boolean validateEmail(String email) {
try {
String regex = "/^((([a-z]|\\d|[!
email.matches(regex);
ret... |
package io.spine.tools.validate.field;
import io.spine.code.proto.FieldDeclaration;
import io.spine.tools.validate.code.Expression;
import static com.google.common.base.Preconditions.checkNotNull;
import static io.spine.tools.validate.code.Expression.formatted;
import static java.util.Optional.empty;
public final class... |
package org.mwc.cmap.TimeController.views;
import java.awt.event.ActionEvent;
import java.beans.*;
import java.text.*;
import java.util.*;
import junit.framework.TestCase;
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.*;
import org.eclipse.jface.action.*;
import org.eclipse.jface.dialogs.InputDia... |
package org.wildfly.extension.undertow.deployment;
import io.undertow.Handlers;
import io.undertow.jsp.JspFileHandler;
import io.undertow.jsp.JspServletBuilder;
import io.undertow.security.api.AuthenticationMechanism;
import io.undertow.server.HandlerWrapper;
import io.undertow.server.HttpHandler;
import io.undertow.se... |
package net.i2p.time;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class NtpMessage {
public byte leapIndicator = 0;
/**
* This value indicates the NTP/SNTP version number. The version number
* is 3 for Version 3 (IPv4 only) and 4 for Version 4 (IPv... |
package net.kencochrane.raven.logback;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.classic.spi.ThrowableProxy;
import ch.qos.logback.core.BasicStatusManager;
import ch.qos.logback.core.Context;
import ch.qos.logback.core.status.OnConsoleStatusListener;
imp... |
package net.sandius.rembulan.compiler.gen.block;
import net.sandius.rembulan.compiler.gen.PrototypeContext;
import net.sandius.rembulan.compiler.gen.SlotState;
import net.sandius.rembulan.core.ControlThrowable;
import net.sandius.rembulan.core.Dispatch;
import net.sandius.rembulan.core.LuaState;
import net.sandius.remb... |
// Narya library - tools for developing networked games
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should ... |
// $Id: DObject.java,v 1.71 2003/12/11 18:36:32 mdb Exp $
package com.threerings.presents.dobj;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import com.samskivert.util.ListUtil;
import com.sams... |
import java.sql.*;
public class OpenDatabase {
public void openConnection() throws SQLException {
Connection conn = DriverManager.getConnection("jdbc url");
}
public void openStatement(Connection conn) throws SQLException {
Statement statement = conn.createStatement();
}
public int d... |
package net.sf.picard.sam;
import net.sf.picard.PicardException;
import net.sf.picard.cmdline.Usage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.sf.picard.util.PeekableIterator;
import net.sf.picard.util.ProgressLogger;
import... |
package org.apache.fop.render.rtf;
// Java
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.Iterator;
import org.apache.avalon.framework.logger.ConsoleLogger;
import org.apache.avalon.framework.logger.Logger;
import org.apache.fop.apps.FOPException;
import org... |
package org.wte4j.examples.showcase.server.hsql;
import static org.junit.Assert.assertEquals;
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 javax.... |
package org.apache.log4j.xml;
import java.util.*;
import java.net.URL;
import org.w3c.dom.*;
import java.lang.reflect.Method;
import org.apache.log4j.*;
import org.apache.log4j.spi.*;
import org.apache.log4j.or.RendererMap;
import org.apache.log4j.helpers.*;
import org.apache.log4j.config.PropertySetter;
import org.xml... |
package advanced.combinatorial.permutation.lc046_permutations;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.Set;
/**
* Given a collection of distinct numbers, return all possible permutations.
* For example, [1... |
import java.util.Arrays;
import java.lang.Math;
import java.util.*;
import java.util.stream.*;
import org.apache.commons.lang3.ArrayUtils;
public class GaussianNaiveBayesClassifier {
private boolean fitted;
private int[] classes;
private int nbClasses;
private int nbFeats;
private int[] classCounts;... |
package org.apache.velocity.anakia;
// Velocity Stuff
import org.apache.velocity.runtime.Runtime;
// XPath Stuff
import com.werken.xpath.XPath;
// JDK Stuff
import java.util.List;
// JDOM Stuff
import org.jdom.Document;
import org.jdom.Element;
public class XPathTool
{
/**
Constructor does nothing, as this i... |
package org.apache.velocity.convert;
import java.io.File;
import java.io.FileWriter;
import org.apache.oro.text.perl.Perl5Util;
import org.apache.velocity.util.StringUtils;
import org.apache.tools.ant.DirectoryScanner;
/**
* This class will convert a WebMacro template to
* a Velocity template. Uses the ORO Regexp pac... |
package org.jivesoftware.spark.ui;
import org.jivesoftware.resource.Res;
import org.jivesoftware.smack.PacketCollector;
import org.jivesoftware.smack.Roster;
import org.jivesoftware.smack.filter.PacketIDFilter;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.Presence;
import org.jivesoftwa... |
package org.ngsutils.mvpipe.parser;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Tokenizer {
public static List<String> tokenize(String str) {
List<String> tokens = extractQuotedStrings(str);
tokens = correctNegNumbers(tokens);
// ... |
package net.runelite.client.plugins.cannon;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import lombok.Getter;
import net.runelite.api.coords.WorldPoint;
public enum CannonSpots
{
BLOODVELDS(new WorldPoint(2439, 9821, 0), new WorldPoint(2448, 9821, 0), new WorldPoint(2472, 9833, 0), n... |
package org.hoteia.qalingo.core.solr.service;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrRequest;
import org.apache.solr.client.solrj.SolrRequest.METHOD;
... |
package com.kiwiandroiddev.sc2buildassistant.activity.fragment;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import ... |
package gov.nih.nci.cananolab.security.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
impor... |
package gui;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.ButtonGroup;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import java.util.ArrayLis... |
import uk.co.uwcs.choob.*;
import uk.co.uwcs.choob.modules.*;
import uk.co.uwcs.choob.support.*;
import uk.co.uwcs.choob.support.events.*;
import java.util.*;
import java.util.regex.*;
public class Factoid
{
public Factoid()
{
}
public Factoid(String subject, boolean fact, String info, long date)
{
... |
package jp.ac.ynu.pl2017.gg.reversi.server;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Serializable;
import java.net.ServerSocket... |
package org.ovirt.engine.core.bll;
import org.ovirt.engine.core.common.queries.GetTagUserMapByTagNameParameters;
// NOT IN USE
public class GetTagUserMapByTagNameQuery<P extends GetTagUserMapByTagNameParameters> extends QueriesCommandBase<P> {
public GetTagUserMapByTagNameQuery(P parameters) {
super(paramet... |
package cn.bjtu.nourriture.fragments;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.widget.Toast;
import cn.bjtu.nourriture.AnonymousActivity;
import cn.bjtu.nourriture.R;
public c... |
package com.example.bootweb.thymeleaf.web;
import java.util.ArrayList;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller... |
package com.intellij.openapi.vcs.changes.committed;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vcs.FilePath;
import com.intellij.openapi.vcs.VcsBundle;
import com.intellij.openapi.vcs.changes.Change;
import com.intellij.openapi.vcs.changes.ChangesUtil;
import com.intellij.openapi.vcs.chang... |
package StepDefinitions;
import Helpers.API;
import cucumber.api.java.After;
import cucumber.api.java.en.*;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.uti... |
package com.splicemachine.mrio.api;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.util.List;
import com.splicemachine.db.iapi.sql.execute.ExecRow;
import com.splicemachine.db.iapi.types.RowLocation;
import org.apache.hadoop.mapreduce.Job;
import org.apache.spark.api.java.JavaPairRDD;
import... |
package com.treetank.gui.view.sunburst;
import java.util.List;
import java.util.Stack;
import com.treetank.api.IReadTransaction;
import com.treetank.axis.AbsAxis;
import com.treetank.diff.EDiff;
import com.treetank.gui.view.sunburst.Item.Builder;
import com.treetank.node.AbsStructNode;
import com.treetank.settings.EFix... |
package cz.quinix.condroid.model;
import java.io.Serializable;
import java.util.Date;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;
import android.content.ContentValues;
import cz.quinix.condroid.R;
import cz.quinix.condroid.abs... |
package org.jasig.cas.audit.spi;
import org.aspectj.lang.JoinPoint;
import org.jasig.cas.CentralAuthenticationService;
import org.jasig.cas.authentication.Credential;
import org.jasig.cas.ticket.InvalidTicketException;
import org.jasig.cas.ticket.ServiceTicket;
import org.jasig.cas.ticket.Ticket;
import org.jasig.cas.t... |
package de.lmu.ifi.dbs.distance;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/**
* TODO comment
* @author Arthur Zimek (<a href="mailto:zimek@dbs.ifi.lmu.de">zimek@dbs.ifi.lmu.de</a>)
*/
public class BitDistance extends NumberDistance<BitDistance>
{
/**
* Generated s... |
package de.lmu.ifi.dbs.elki.data;
/**
* RealVector is an abstract super class for all feature vectors having real numbers as values.
*
* @param <V> the concrete type of this RealVector
* @param <N> the type of number, this RealVector consists of (i.e., a RealVector {@code v} of type {@code V}
* and dimensionality... |
package edu.duke.cabig.c3pr.web.admin;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.collections.map.Hash... |
package edu.duke.cabig.c3pr.web.registration;
import java.util.HashMap;
import java.util.Map;
import edu.duke.cabig.c3pr.domain.CompanionStudyAssociation;
import edu.duke.cabig.c3pr.domain.RegistrationDataEntryStatus;
import edu.duke.cabig.c3pr.domain.RegistrationWorkFlowStatus;
import edu.duke.cabig.c3pr.domain.Schedu... |
package org.openforis.collect.earth.app.view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.Ac... |
package org.ow2.proactive_grid_cloud_portal.common.client;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.user.client.Window;
import com.smartgwt.client.util.BooleanCallback;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client... |
package com.nectarjs.nectar_android_app;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ActivityNotFoundException;
i... |
package org.hisp.dhis.android.core.organisationunit;
import android.database.Cursor;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.gabrielittner.auto.value.cursor.ColumnName;
import com.google.auto.value.AutoValue;
import org.hisp.dhis.android.core.common.BaseModel;
i... |
package com.arjuna.databroker.data.jee.store;
import java.io.Serializable;
import java.util.Collections;
import java.util.Map;
import java.util.UUID;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.InitialContext;
import com.arjuna.databroker.data.DataFlowNodeState;
public class Sto... |
package unitTests.gcmdeployment.virtualnode;
import java.util.List;
import java.util.Map;
import java.net.URL;
import org.objectweb.proactive.core.node.Node;
import org.objectweb.proactive.core.util.ProActiveRandom;
import org.objectweb.proactive.core.xml.VariableContractImpl;
import org.objectweb.proactive.extensions.... |
// JxpScriptContext.java
package ed.appserver.jxp;
import java.io.*;
import java.util.*;
import javax.script.*;
import ed.js.*;
import ed.js.engine.*;
import ed.appserver.*;
import ed.net.httpserver.*;
import ed.lang.*;
public class JxpScriptContext implements ScriptContext {
public JxpScriptContext( ObjectConverto... |
package app.config;
import com.mpalourdio.springboottemplate.properties.CredentialsProperties;
import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframewo... |
package base.grid.header;
import java.util.ArrayList;
import java.util.List;
public class TableHeader {
private Class<? extends TableCellHeader> header;
private String selector;
private int rowModifier = 0;
public TableHeader(Class<? extends TableCellHeader> header, String selector) {
this.heade... |
package bisq.desktop.app;
import bisq.desktop.common.UITimer;
import bisq.desktop.common.view.guice.InjectorViewFactory;
import bisq.desktop.setup.DesktopPersistedDataHost;
import bisq.core.app.BisqExecutable;
import bisq.common.UserThread;
import bisq.common.app.AppModule;
import bisq.common.proto.persistable.Persiste... |
package br.com.dbsoft.util;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.SimpleDateFormat;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.reg... |
package br.com.dbsoft.util;
import java.awt.geom.Point2D;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.util.List;
import java.util.Locale;
import org.apache.commons.math3.distribution.NormalDistribu... |
package ca.phcri;
import ij.IJ;
import ij.ImagePlus;
import ij.WindowManager;
import ij.gui.DialogListener;
import ij.gui.GenericDialog;
import ij.gui.Overlay;
import ij.gui.Roi;
import ij.gui.ShapeRoi;
import ij.measure.Calibration;
import ij.plugin.PlugIn;
import ij.text.TextPanel;
import ij.text.TextWindow;
import j... |
package cat.nyaa.utils;
import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Field;
import java.util.loggin... |
package edu.psu.compbio.seqcode.projects.naomi.shapealign;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import edu.psu.compbio.seqcode.deepseq.StrandedBaseCount;
import edu.psu.compbio.... |
package cc.ycn.common;
import cc.ycn.common.bean.WxConfig;
import cc.ycn.common.util.StringTool;
import cc.ycn.weixin.aes.AesException;
import cc.ycn.weixin.aes.WXBizMsgCrypt;
import com.google.common.base.Joiner;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder... |
package org.rstudio.studio.client.panmirror.command;
import java.util.ArrayList;
import org.rstudio.core.client.command.AppCommand;
import org.rstudio.core.client.widget.ToolbarPopupMenu;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.user.clie... |
package com.adeo.fitnesse;
import java.io.IOException;
import java.net.MalformedURLException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.management.ReflectionException;
... |
package fr.paris.lutece.portal.service.resource;
import fr.paris.lutece.portal.service.spring.SpringContextService;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
/**
* Class to notify listeners of actions performed on resources. Listeners keep
* at least track of the number of actions pe... |
package com.fishercoder.solutions;
/**
* 5. Longest Palindromic Substring
*
* Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
Example:
Input: "babad"
Output: "bab"
Note: "aba" is also a valid answer.
Example:
Input: "cbbd"
Output: "bb"
*/
pu... |
package com.glitchcog.fontificator.gui.controls.panel;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.uti... |
package com.gengo.client;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
import com.gengo.client.enums.HttpMethod;
import com.gengo.client.enums.Rating;
import com.gengo.client.enums.RejectReason;
import com.gengo.client.exceptions.Geng... |
package com.hp.autonomy.iod.client.api.search;
import com.hp.autonomy.iod.client.util.MultiMap;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang.StringUtils;
import java.util.List;
import java.util.Map;
/**
* Helper class for building up optional parameters for the Get Content... |
package com.github.fjdbc.query;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import com.github.fjdbc.ConnectionProvider;
import com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.