answer stringlengths 17 10.2M |
|---|
package mondrian.rolap.aggmatcher;
import mondrian.olap.*;
import mondrian.rolap.*;
import mondrian.recorder.MessageRecorder;
import mondrian.resource.MondrianResource;
import org.apache.log4j.Logger;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.*;
import java.util.regex.Pattern;
/**
* A c... |
package uk.org.ownage.dmdirc.identities;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import uk.org.ownage.dmdirc.Config;
import uk.org.ownage.dmdirc.logger.ErrorLevel;
import uk.org.ownage.dmdirc.logger.Logger;
/**
* The identity manag... |
package com.cmput301.cs.project;
import com.cmput301.cs.project.controllers.TagsManager;
import com.cmput301.cs.project.models.Tag;
import com.cmput301.cs.project.utils.MockClaimSaves;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class TagsManagerTest {
private TagsManage... |
package edu.umd.cs.findbugs;
/**
* Version number and release date information.
*/
public class Version {
/** Major version number. */
public static final int MAJOR = 0;
/** Minor version number. */
public static final int MINOR = 8;
/** Patch level. */
public static final int PATCHLEVEL = 3;
... |
package edu.umd.cs.findbugs;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Version number and release date information.
*/
public class Version {
/**
* Major version number.
*/
public static final int MAJOR = 1;
/**
* Minor version number.
*/
public static final i... |
package cpw.mods.fml.common;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Level;
import com.google.common.base.Joiner;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.BiMap;
import com.google.common.collect.ImmutableBiMap;
import ... |
package hudson.model;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import com.gargoylesoftware.htmlunit.html.DomNodeUtil;
import hudson.tasks.BuildStepMonitor;
import org.junit.Rule;
import org.junit.Test;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware... |
package com.ecyrd.jspwiki;
import junit.framework.*;
import java.io.*;
import java.util.*;
import javax.servlet.*;
public class TranslatorReaderTest extends TestCase
{
Properties props = new Properties();
WikiEngine testEngine1;
WikiEngine testEngine2;
public TranslatorReaderTest( String s )
{
... |
package com.ecyrd.jspwiki;
import junit.framework.*;
import java.io.*;
import java.util.*;
public class TranslatorReaderTest extends TestCase
{
Properties props = new Properties();
public TranslatorReaderTest( String s )
{
super( s );
}
public void setUp()
throws Exception
{
... |
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.So... |
<#function alias name>
<#return "COL_"+name?upper_case>
</#function>
<#function ref_alias relation>
<#return "REF_"+relation.relation.targetEntity?upper_case+"_"+relation.relation.field_ref[0]?upper_case>
</#function>
package ${local_namespace};
import java.text.SimpleDateFormat;
import java.util.ArrayList;
imp... |
package water.api;
import org.reflections.Reflections;
import water.H2O;
import water.Iced;
import water.exceptions.H2OIllegalArgumentException;
import water.exceptions.H2ONotFoundArgumentException;
import water.util.Log;
import water.util.Pair;
import water.util.ReflectionUtils;
import java.lang.reflect.Modifier;
impo... |
package com.opera.core.systems;
import com.opera.core.systems.arguments.OperaCoreArguments;
import com.opera.core.systems.runner.OperaRunnerException;
import com.opera.core.systems.runner.OperaRunnerSettings;
import com.opera.core.systems.scope.internal.OperaIntervals;
import org.junit.Before;
import org.junit.BeforeCl... |
package se.sics.cooja.plugins;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedReader;
import j... |
package gui.TranslatorLatex;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.StringReader;
import javax.swing.JFrame;
import javax.swing.JLabel;
import org.scilab.forge.jlatexmath.TeXConstants;
import org.scil... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.ujoframework.orm;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.List;
import java.util.logging... |
package VASSAL.counters;
import VASSAL.tools.ProblemDialog;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comp... |
package io.vertx.ext.web;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.vertx.core.*;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.*;
import io.vertx.core.http.impl.HttpServerRequestInternal;
import io.vertx.core.json.JsonObject;
import io.vertx.core.net.SocketAddress;
import io.vert... |
package com.yahoo.tensor;
import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.u... |
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// copies or substantial portio... |
package cc.topicexplorer.web;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Enumeration;
import java.util.Properties;
import javax.servlet.ServletContextEvent;
import javax.servle... |
package org.wings.plaf;
import org.wings.plaf.css.Utils;
import org.wings.*;
import org.wings.table.STableCellRenderer;
import org.wings.io.Device;
import org.wings.macro.MacroContext;
import org.wings.macro.MacroContainer;
import org.wings.macro.MacroTag;
import java.io.IOException;
import java.util.List;
import java.... |
package com.intellij.xml.util;
import com.intellij.codeInspection.InspectionProfile;
import com.intellij.codeInspection.htmlInspections.XmlEntitiesInspection;
import com.intellij.ide.highlighter.HtmlFileType;
import com.intellij.ide.highlighter.XHtmlFileType;
import com.intellij.javaee.ExternalResourceManagerEx;
import... |
package jadx.gui.ui;
import java.awt.Component;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.... |
package org.ccnx.ccn.protocol;
import java.io.Serializable;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import org.ccnx.ccn.impl.encoding.CCNProtocolDTags;
import org.ccnx.ccn.impl.encoding.GenericXMLEncodable;
import org.ccnx.ccn.impl.encoding.XML... |
package org.zanata;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import org.apache.deltaspike.core.api.exclude.Exclude;
import org.apache.deltaspike.core.api.projectstage.ProjectStage;
import org.apache.deltas... |
package com.exedio.cope.lib.database;
import com.exedio.cope.lib.Attribute;
import com.exedio.cope.lib.BooleanAttribute;
import com.exedio.cope.lib.EnumerationAttribute;
import com.exedio.cope.lib.IntegerAttribute;
import com.exedio.cope.lib.ItemAttribute;
import com.exedio.cope.lib.MediaAttribute;
import com.exedio.co... |
/* Use of the link grammar parsing system is subject to the terms of the */
/* forms, with or without modification, subject to certain conditions. */
package org.linkgrammar;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
*
* <p>
* Represents the result of parsing a piece of text... |
package cgeo.geocaching;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.activity.ActivityMixin;
import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.connector.IConnector;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.LoadFlags;
import c... |
package cgeo.geocaching.log;
import android.R.string;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import... |
// This file is part of Elveos.org.
// Elveos.org is free software: you can redistribute it and/or modify it
// option) any later version.
// Elveos.org is distributed in the hope that it will be useful, but WITHOUT
// more details.
package com.bloatit.data;
import java.util.ArrayList;
import java.util.List;
import jav... |
package uk.co.cloudhunter.rpgthing.core;
import net.minecraft.entity.player.EntityPlayer;
import uk.co.cloudhunter.rpgthing.database.Database.Row;
import uk.co.cloudhunter.rpgthing.database.Database.Table;
public class Player {
private Row playerRow;
private String playerName;
private Party playerParty;
... |
package jade.core;
import java.io.InputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.OutputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.Vector;
import jade.util.leap.Seri... |
package javaforce;
import org.apache.log4j.Logger;
public class JFLog {
private static final Logger logger = Logger.getLogger("JavaForce");
public static boolean init(String filename, boolean stdout) {
return true;
}
public static boolean init(int id, String filename, boolean stdout) {
r... |
package kriptic;
import com.google.common.base.Splitter;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIc... |
package ui;
import backend.Logic;
import backend.UIManager;
import browserview.BrowserComponent;
import browserview.BrowserComponentStub;
import com.google.common.eventbus.EventBus;
import com.sun.jna.platform.win32.User32;
import com.sun.jna.platform.win32.WinDef.HWND;
import javafx.application.Application;
import jav... |
package misc;
import lombok.Data;
import javax.swing.filechooser.FileSystemView;
import java.io.File;
import java.io.IOException;
import java.util.*;
@Data
public class JobBuilder {
/** The name of the Job. */
private String name;
/** The output directory. */
private String outputDirectory;
/** The ... |
package modele;
import java.awt.Color;
import java.awt.Point;
import java.util.Random;
@SuppressWarnings("serial")
public class Obstacle extends Point {
private boolean touched;
/** Couleur des obstacles */
private Color c = Color.red;
/** Taille des obstacles */
private int size;
/** indique si... |
package org.joni;
import java.io.PrintStream;
public interface Config extends org.jcodings.Config {
final int CHAR_TABLE_SIZE = 256;
final boolean USE_NO_INVALID_QUANTIFIER = true;
final int SCANENV_MEMNODES_SIZE = 8;
final boolean USE_NAMED_GROUP = true;
final boolean USE_SUBEXP_CALL = true;
fi... |
package skills;
import static java.lang.System.out;
import skills.interfaces.EffectPHA;
import skills.interfaces.SkillName;
/**
* Physical Attack Skill set. To use a skill from the outside where
* imports this class, call the method like this:
*
* SkillPHA.A_SKILL_METHOD_NAME ();
*
* @author Wonho Lim
... |
package com.facebook.stetho.json;
import javax.annotation.Nullable;
import javax.annotation.concurrent.GuardedBy;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java... |
package org.gradoop.model.impl;
import com.google.common.collect.Lists;
import org.apache.flink.api.common.functions.FilterFunction;
import org.apache.flink.api.common.functions.FlatMapFunction;
import org.apache.flink.api.common.functions.GroupReduceFunction;
import org.apache.flink.api.common.functions.JoinFunction;
... |
package org.freedesktop.wayland.util;
import com.sun.jna.Memory;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import org.freedesktop.wayland.HasNative;
import org.freedesktop.wayland.client.Proxy;
import org.freedesktop.wayland.server.Resource;
import org.freedesktop.wayland.util.jna.wl_array;
import java.nio... |
package com.icegreen.greenmail.imap;
import com.icegreen.greenmail.server.ProtocolHandler;
import com.icegreen.greenmail.user.UserManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.net.Socket;
/**
* The handler class for IMAP connections.
*
* @author Federico Barbieri <sc... |
package org.freedesktop.wayland.util;
import com.sun.jna.Memory;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import org.freedesktop.wayland.HasNative;
import org.freedesktop.wayland.client.Proxy;
import org.freedesktop.wayland.server.Resource;
import org.freedesktop.wayland.util.jna.wl_argument;
import org.f... |
package org.genericsystem.cv.retriever;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.genericsystem.cv.Img;
import org.opencv.core.Core;
import ... |
package org.curriki.gwt.client.widgets.moveasset;
import com.google.gwt.user.client.WindowResizeListener;
import com.google.gwt.user.client.ui.TreeItem;
import com.google.gwt.user.client.ui.TreeListener;
import com.google.gwt.user.client.ui.Widget;
import org.curriki.gwt.client.CurrikiService;
import org.curriki.gwt.cl... |
package org.infinispan.demo;
import java.util.Map;
import java.util.function.Function;
import org.infinispan.client.hotrod.RemoteCache;
import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
import org.infinispan.client.hotrod.impl.ConfigurationPr... |
package org.openecard.scio;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import org.openecard.common.ifd.scio.SCIOATR;
import org.openecard.common.ifd.scio.SCIOErrorCode;
import org.openecard.common.ifd.scio.SCIOException;
import org.openecard.common.util.Promise;
import... |
package org.mockito.usage.stubbing;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import java.io.*;
import java.util.LinkedList;
import org.junit.*;
import org.mockito.exceptions.MockitoException;
@SuppressWarnings("unchecked")
public class StubbingWithThrowablesTest {
@Test
public void... |
package org.jvnet.hudson.test.junit;
import junit.framework.TestSuite;
import junit.framework.TestResult;
import org.junit.runner.manipulation.Filter;
import org.junit.runner.manipulation.Filterable;
import org.junit.runner.manipulation.NoTestsRemainException;
/**
* {@link TestSuite} that requires some set up and tear... |
package org.flymine.objectstore.query;
import java.util.LinkedHashSet;
import junit.framework.TestCase;
public class ConstraintSetTest extends TestCase {
private ConstraintSet set;
private SimpleConstraint sc1;
private SimpleConstraint sc2;
public ConstraintSetTest(String arg1) {
super(arg1);
... |
package cpw.mods.fml.server;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableMultiset;
import com.google.common.collect.Lists;
import com.google.comm... |
/*
* $Id: TestGoslingHtmlLinkExtractor.java,v 1.5 2008-08-11 23:39:01 tlipkis Exp $
*/
package org.lockss.extractor;
import java.io.*;
import java.util.*;
import org.lockss.util.*;
import org.lockss.test.*;
import org.lockss.plugin.*;
public class TestGoslingHtmlLinkExtractor extends LockssTestCase {
public static ... |
package org.intermine.web.logic.config;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
import org.intermine.model.testmodel.Company;
import org.inte... |
package com.indeed.imhotep.sql.parser;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.indeed.imhotep.sql.ast.*;
import com.indeed.imhotep.sql.ast2.*;
import com.indeed.imhotep.web.IQLParseException;
import com.indeed.imhotep.web.ImhotepMetadataCache;
import org.codehaus.jparse... |
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.Timer;
/**
*
* @author gappleto97
*/
public class Jostle extends CommandBase
{
double twitch = 0.02;
int multiple = 10;
Timer ourTimer = new Timer();
boolean isFinished = false;
public Jostle()
{
// Use req... |
package uk.ac.ox.oucs.vle;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Represents a parsed term code.
*
* @author Matthew Buckett
*/
class TermCode implements Comparable<TermCode> {
// Patterns are threadsafe
private static final Pattern pattern = Pattern.compile("(\\w\\w)(\\d\\d)"... |
package edu.wustl.xipHost.iterator;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import edu.wustl.xipHost.dataAccess.DataAccessListener;
import edu.w... |
package br.com.insanitech.javabinary;
import android.support.annotation.NonNull;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import br.com.insanitech.javabinary.storage.DataReader;
import br.com.insanitech.javabinary.tokenizing.... |
package eu.seebetter.ini.chips.davis;
import java.util.Random;
import eu.seebetter.ini.chips.DavisChip;
import net.sf.jaer.chip.AEChip;
import net.sf.jaer.event.ApsDvsEvent;
import net.sf.jaer.event.ApsDvsEvent.ColorFilter;
import net.sf.jaer.event.BasicEvent;
import net.sf.jaer.event.PolarityEvent;
import net.sf.jaer.... |
package jp.gr.java_conf.neko_daisuki.fsyscall.slave;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import jav... |
package net.bull.javamelody.swing;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import javax.swing.JMenuItem;
import ja... |
package com.sksamuel.jqm4gwt.html;
import com.google.gwt.user.client.ui.FlowPanel;
/**
* An implemenation of a <div> element exposed as a widget. Shorter equivalent of FlowPanel.
*
*/
public class Div extends FlowPanel {
// implements HasText<Div> cannot be declared! - UiBinder <h:Div><b:JQMButton/></h:Div> will... |
package org.jbehave.core.reporters;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
import org.jbehave.core.failures.FailingUponPendingStep;
import org.jbehave.core.failures.PassingUponPendingStep;
import org.jbehave.core.failures.PendingStepStrategy;
impor... |
package magpie.data.materials;
import java.io.BufferedReader;
import java.io.LineNumberReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.*;
import java.util.*;
import java.util.regex.*;
import magpie.data.BaseEntry;
import magpie.data.materials.util.Com... |
package polyglot.util;
import java.io.Serializable;
import polyglot.main.Options;
/**
* This class represents a position within a source file. It is used to record
* where each AST node is located in a source file; this is used, for
* example, for generating error messages.
**/
public class Position implements Seri... |
package com.jenjinstudios.server.net;
import com.jenjinstudios.core.Connection;
import java.io.IOException;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Map;
import java.util.TreeMap;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* The base Server class for implemen... |
package be.rubus.web.jerry.config.logging;
import be.rubus.web.jerry.provider.BeanProvider;
import be.rubus.web.jerry.startup.StartupEvent;
import be.rubus.web.jerry.utils.ProxyUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.enterprise.event.Observes;
import java.lang.reflect.InvocationTarg... |
package com.jenjinstudios.message;
import com.jenjinstudios.io.MessageRegistry;
import com.jenjinstudios.io.MessageType;
import com.jenjinstudios.net.ClientHandler;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
import java.util.logging.Logger;
... |
package gov.nih.nci.camod.service.impl;
import gov.nih.nci.camod.Constants;
import gov.nih.nci.camod.domain.Agent;
import gov.nih.nci.camod.domain.AnimalModel;
import gov.nih.nci.camod.domain.Comments;
import gov.nih.nci.camod.domain.Log;
import gov.nih.nci.camod.domain.Person;
import gov.nih.nci.camod.domain.Publicati... |
package kalang.compiler;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import kalang.antlr.KalangLexer;
import kalang.antlr.KalangParser;
import kalang.antlr.KalangParser.ArgumentsContext;
import kalang.antl... |
/**
* @author sguruswami
*
* $Id: ViewModelAction.java,v 1.33 2007-06-19 18:39:21 pandyas Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.32 2006/08/17 18:10:44 pandyas
* Defect# 410: Externalize properties files - Code changes to get properties
*
* Revision 1.31 2006/05/24 18:37:27 georgeda
... |
package org.jsimpledb.kv.raft;
import com.google.common.base.Preconditions;
import com.google.common.base.Throwables;
import com.google.common.util.concurrent.ListenableFuture;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
... |
package bdv.viewer.render;
import java.util.ArrayList;
import java.util.List;
import net.imglib2.Interval;
import net.imglib2.realtransform.AffineTransform3D;
import net.imglib2.util.Intervals;
/**
* Maintains current sizes and transforms at every screen scale level. Records
* interval rendering requests. Suggests fu... |
package com.alexrnl.commons.io;
import java.io.BufferedReader;
import java.io.EOFException;
import java.io.IOException;
import java.util.Objects;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Utility methods for IO stuff.<br />
* @author Alex
*/
public final class IOUtils {
/** Logger */... |
package com.auth0;
import org.apache.commons.lang3.Validate;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
import java.util.List;
/**
* Allows storage and retrieval/removal of cookies.
*/
class TransientCookieSto... |
package com.bandwidth.sdk.model;
import com.bandwidth.sdk.AppPlatformException;
import com.bandwidth.sdk.BandwidthConstants;
import com.bandwidth.sdk.BandwidthClient;
import com.bandwidth.sdk.RestResponse;
import org.apache.commons.lang3.StringUtils;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
... |
package com.braintreegateway.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.net.URLDecoder;
import java.security.KeyStore;
... |
package com.clementscode.mmi.swing;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import j... |
package com.datasift.client;
import com.datasift.client.exceptions.DataSiftException;
import com.datasift.client.util.WrappedResponse;
import org.cliffc.high_scale_lib.NonBlockingHashSet;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
/**
* @author Courtney Robinson <courtn... |
package com.detrav.proxies;
import com.detrav.DetravScannerMod;
import com.detrav.enums.DetravItemList;
import com.detrav.enums.DetravSimpleItems;
import com.detrav.gui.DetravGuiProPick;
import com.detrav.gui.DetravRepairToolGui;
import com.detrav.gui.containers.DetravPortableChargerContainer;
import com.detrav.gui.Det... |
package is2011.reproductor.vista;
import java.awt.BorderLayout;
import java.awt.Choice;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
impo... |
package org.zkoss.ganttz.data;
import static org.zkoss.ganttz.data.constraint.ConstraintOnComparableValues.biggerOrEqualThan;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;... |
package com.dua3.utility.lang;
import java.util.Objects;
/**
* A Utility class with general purpose methods.
*/
public class LangUtil {
public static void check(boolean condition) {
if (!condition) {
throw new IllegalStateException();
}
}
public static void check(boolean condit... |
package simulation.events;
import network.Link;
import network.Node;
import simulation.Route;
/**
* Events generated when a node learns a new route.
*/
public class LearnEvent implements SimulationEvent {
private final Link link; // link from which the route was learned
private final Route route; // route... |
// Solution: Brute Force
// Try all possible coordinates from (0, 0) to (50, 50)
// Time complexity: O(|X|*|Y|*t)
// Space complexity: O(1)
class Solution {
public int[] bestCoordinate(int[][] towers, int radius) {
final int n = 50;
int[] ans = new int[2];
int max_q = 0;
for (int x =... |
package com.sun.facelets.tag.jsf.core;
import java.io.IOException;
import javax.el.ELException;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import com.sun.facelets.FaceletContext;
import com.sun.facelets.FaceletException;
import com.sun.face... |
package org.grouplens.lenskit.data.dao;
/**
* Factory to create new DAOs. This is used when something needs to be able to
* create DAOs at will.
*
* @author Michael Ekstrand <ekstrand@cs.umn.edu>
*
*/
public interface DAOFactory<T> {
/**
* Create a new DAO.
* @return A new DAO. The caller is respo... |
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.controller.Li... |
package org.sakaiproject.lessonbuildertool.cc;
import org.jdom.Namespace;
// most version dependencies should be in this file.
// Parser sets the right index for the current version
// then everything else gets namespaces from here
// in addition look for the xxx0 and xxx1 in Parser.java and PrintHandler.java
public cl... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.ListNode;
import java.util.ArrayList;
import java.util.List;
/**
* 234. Palindrome Linked List
*
* Given a singly linked list, determine if it is a palindrome.
Follow up:
Could you do it in O(n) time and O(1) space?
*/
public class _234 {
... |
package com.peer1.internetmap;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import android.app.Activity;
import android.graphics.Point;
import android.os.Bundle;
import android.widget.Toast;
import android.view.Surface;
import android.view.SurfaceView;
import android.view... |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.List;
/**
* 271. Encode and Decode Strings
*
* Design an algorithm to encode a list of strings to a string.
* The encoded string is then sent over the network and is decoded back to the original list of strings.
Machine 1 (sender) has ... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
/**
* Given a binary tree, find the length of the longest consecutive sequence path.
The path refers to any sequence of nodes from some starting node to any node in the tree along the parent-child connections.
The longest consecutive ... |
package com.fishercoder.solutions;
import java.util.Arrays;
public class _322 {
public static class Solution1 {
public int coinChange(int[] coins, int amount) {
if (amount < 1) {
return 0;
}
int[] count = new int[amount];
int result = helper(co... |
package com.fishercoder.solutions;
public class _520 {
public static class Solution1 {
public boolean detectCapitalUse(String word) {
char[] words = word.toCharArray();
boolean firstLetterCap = false;
if (Character.isUpperCase(words[0])) {
firstLetterCap =... |
package dr.xml;
import dr.evolution.util.Units;
import dr.inference.mcmc.MCMC;
import dr.util.Identifiable;
import org.w3c.dom.*;
import org.xml.sax.InputSource;
import java.io.Reader;
import java.util.*;
public class XMLParser {
public static final String ID = XMLObject.ID;
public static final String IDREF = "... |
package com.fishercoder.solutions;
public class _706 {
public static class Solution1 {
class MyHashMap {
final ListNode[] nodes = new ListNode[10000];
public void put(int key, int value) {
int i = idx(key);
if (nodes[i] == null) {
n... |
package org.jivesoftware.wildfire.ldap;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.Log;
import org.jivesoftware.wildfire.user.UserNotFoundException;
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.DirConte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.