answer stringlengths 17 10.2M |
|---|
package se.toxbee.sleepfighter.model;
import java.util.Arrays;
import java.util.Map;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
import org.joda.time.MutableDateTime;
import se.toxbee.sleepfighter.model.audio.AudioConfig;
import se.toxbee.sleepfighter.model.audio.AudioSource;
import se.toxbee... |
package com.dmdirc.util.io;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org... |
package org.nuxeo.ecm.platform.jbpm.core.filter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.jbpm.JbpmContext;
import org.jbpm.graph.def.ProcessDefinition;
import org.nuxeo.ecm.core.api.DocumentModel;
import org.nuxeo.ecm.core.api.NuxeoPrincipal;
import org.nuxeo.ecm.platform.jbp... |
package hudson.model;
import com.gargoylesoftware.htmlunit.WebAssert;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.jvnet.hudson.test.HudsonTestCase;
import hudson.Extension;
import hudson.model.JobTest.JobPropertyImpl.DescriptorImpl;
/**
* @author Kohsuke Kawaguchi
*/
public class JobTest extends Hu... |
package org.apereo.cas.config;
import org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService;
import org.apereo.cas.bucket4j.consumer.BucketConsumer;
import org.apereo.cas.bucket4j.consumer.DefaultBucketConsumer;
import org.apereo.cas.bucket4j.producer.BucketStore;
import org.apereo.cas.bucket4j.produce... |
package org.eclipse.birt.report.item.crosstab.core.re;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.eclipse.birt.core.data.ExpressionUtil;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.data.engine.api.IDataQueryDefinition;
import ... |
package com.eatthepath.jeospatial;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.eatthepath.jeospatial.example.ZipCode;
import com.eatthepath.jvptree.DistanceComparator;
/**
* A crude test app that loads a bunch of zip codes, bui... |
package org.voltdb;
import junit.framework.TestCase;
import org.voltdb.VoltDB.Configuration;
import org.voltdb.client.Client;
import org.voltdb.client.ClientFactory;
import org.voltdb.compiler.VoltProjectBuilder;
import org.voltdb.utils.MiscUtils;
public class TestAdHocQueries extends TestCase {
public void testSim... |
package org.voltdb;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.IOExce... |
package net.ssehub.easy.reasoning.core.capabilities;
import org.junit.Test;
import org.junit.Assert;
import net.ssehub.easy.reasoning.core.reasoner.AbstractTest;
import net.ssehub.easy.reasoning.core.reasoner.ITestDescriptor;
import net.ssehub.easy.varModel.confModel.AssignmentState;
import net.ssehub.easy.varModel.con... |
package org.commcare.resources;
import org.commcare.resources.model.InstallCancelledException;
import org.commcare.resources.model.ProcessCancelled;
import org.commcare.resources.model.Resource;
import org.commcare.resources.model.ResourceLocation;
import org.commcare.resources.model.ResourceTable;
import org.commcare.... |
package org.openhab.binding.ecobee.internal.handler;
import static org.openhab.binding.ecobee.internal.EcobeeBindingConstants.*;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.C... |
package org.opendaylight.yangtools.sal.binding.generator.util;
import static com.google.common.base.Preconditions.checkNotNull;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.Callable;
import java.util... |
package fr.inria.jessy.benchmark.tpcc;
import fr.inria.jessy.Jessy;
import fr.inria.jessy.benchmark.tpcc.entities.*;
import fr.inria.jessy.transaction.*;
import java.util.*;
/**
* @author Wang Haiyun & ZHAO Guang
*
*/
public class InsertData extends Transaction {
/*tpcc section 4.3*/
public InsertData(Jess... |
package org.hisp.dhis.android.testapp.fileresource;
import android.content.Context;
import androidx.test.InstrumentationRegistry;
import org.apache.commons.io.FileUtils;
import org.hisp.dhis.android.core.common.BaseIdentifiableObject;
import org.hisp.dhis.android.core.common.State;
import org.hisp.dhis.android.core.dat... |
package net.safedata.spring.data.jdbc.config;
import net.safedata.spring.data.jdbc.domain.entity.AbstractEntity;
import net.safedata.spring.data.jdbc.domain.entity.Product;
import net.safedata.spring.data.jdbc.domain.entity.Section;
import net.safedata.spring.data.jdbc.domain.repository.ProductRepository;
import net.sa... |
package org.deegree.securityproxy.wms.authorization;
import static org.deegree.securityproxy.wms.request.WmsRequestParser.GETCAPABILITIES;
import static org.deegree.securityproxy.wms.request.WmsRequestParser.GETFEATUREINFO;
import static org.deegree.securityproxy.wms.request.WmsRequestParser.GETMAP;
import java.util.Ar... |
package org.eclipse.birt.report.engine.emitter.html;
import org.eclipse.birt.report.engine.content.ICellContent;
import org.eclipse.birt.report.engine.content.IColumn;
import org.eclipse.birt.report.engine.content.IContainerContent;
import org.eclipse.birt.report.engine.content.IForeignContent;
import org.eclipse.birt.... |
package org.opennms.features.vaadin.nodemaps.internal.gwt.client;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.discotools.gwt.leaflet.client.popup.Popup;
import org.discotools.gwt.leaflet.client.popup.PopupImpl;
import org.discotools.gwt.leaflet.client.popup.PopupOptions;... |
package javaslang.collection;
import javaslang.*;
import javaslang.collection.CharSeqModule.Combinations;
import javaslang.control.Option;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.*;
import java.util.HashSet;
import java.util.function.*;... |
package com.github.kostyasha.github.integration.branch.events.impl;
import com.github.kostyasha.github.integration.branch.GitHubBranch;
import com.github.kostyasha.github.integration.branch.GitHubBranchCause;
import com.github.kostyasha.github.integration.branch.GitHubBranchRepository;
import com.github.kostyasha.githu... |
package org.eclipse.persistence.testing.tests.jpa.jpaadvancedproperties;
import java.util.ArrayList;
import java.util.Vector;
import javax.persistence.EntityManager;
import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.persistence.expressions.Expression;
i... |
package org.opendaylight.ovsdb.openstack.netvirt.sfc.standalone.openflow13;
import com.google.common.collect.Lists;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md.sal.common.api.data.... |
package org.springsource.ide.eclipse.gradle.core.classpathcontainer;
import java.util.Collection;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.core.runtime.jobs.Job;
import org.springsource.ide.eclipse.... |
package com.joestelmach.natty;
import java.text.DateFormat;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import junit.framework.Assert;
import org.junit.Test;
public class TestFrenchDateParser extends AbstractDateParserTest {
@Test
public void testExplicitDateTime() {
validateD... |
package com.opengamma.analytics.financial.model.volatility.smile.fitting.demo;
import java.util.Arrays;
import java.util.BitSet;
import java.util.List;
import org.apache.commons.lang.ArrayUtils;
import org.testng.annotations.Test;
import com.opengamma.analytics.financial.model.option.pricing.analytic.formula.EuropeanVa... |
package com.ctrip.xpipe.redis.console.healthcheck.factory;
import com.ctrip.xpipe.api.endpoint.Endpoint;
import com.ctrip.xpipe.api.proxy.ProxyEnabled;
import com.ctrip.xpipe.concurrent.DefaultExecutorFactory;
import com.ctrip.xpipe.endpoint.HostPort;
import com.ctrip.xpipe.lifecycle.LifecycleHelper;
import com.ctrip.x... |
package org.carlspring.strongbox.users.service.impl;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import ... |
package org.meshwork.app.zeroconf.l3.node;
import org.meshwork.core.AbstractMessage;
import org.meshwork.core.AbstractMessageTransport;
import org.meshwork.core.MessageData;
import org.meshwork.core.TransportTimeoutException;
import org.meshwork.core.zeroconf.l3.*;
import java.io.PrintWriter;
import java.text.SimpleDat... |
package edu.ucdenver.ccp.nlp.ext.uima.annotators.entitydetection;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import org.apache.log4j.Logger;
import org.apache.uima.UimaContext;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.analysis_engine.AnalysisEngineD... |
package org.opendaylight.yangtools.maven.sal.api.gen.plugin;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.ut... |
package edu.cuny.citytech.foreachlooptolambda.ui.visitors;
import java.util.HashSet;
import java.util.Stack;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.IMethodBinding;
import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.Statement;
import org.eclipse.jdt.core.do... |
package org.ovirt.engine.ui.uicommonweb.models.datacenters;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.ovirt.engine.core.common.action.AddSANStorageDomainParameters;
import org.ovirt.engine.core.common.action.AttachStorageDo... |
package org.innovateuk.ifs.assessment.controller;
import org.innovateuk.ifs.assessment.resource.AssessorCompetitionSummaryResource;
import org.innovateuk.ifs.assessment.transactional.AssessorCompetitionSummaryService;
import org.innovateuk.ifs.commons.rest.RestResult;
import org.springframework.beans.factory.annotation... |
package org.innovateuk.ifs.competitionsetup.transactional;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.innovateuk.ifs.commons.service.ServiceResult;
import org.innovateuk.ifs.competition.domain.Competition;
import org.innovateuk.ifs.competition.domain.GrantTermsAndCon... |
package org.eclipse.che.workspace.infrastructure.kubernetes.namespace.pvc;
import static java.util.Collections.singletonMap;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.eclipse.che.workspace.infrastructure.kubernetes.namespace.KubernetesObjectUtil.newVolume;
import static org.eclipse.che.work... |
package org.safehaus.subutai.core.agent.impl;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Queue;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutorServic... |
package org.safehaus.kiskis.mgmt.ui.hive.query.components;
import com.vaadin.data.util.BeanItemContainer;
import com.vaadin.ui.ListSelect;
import com.vaadin.ui.Select;
import org.safehaus.kiskis.mgmt.api.hive.query.Config;
import org.safehaus.kiskis.mgmt.ui.hive.query.HiveQueryUI;
import java.util.List;
public class Qu... |
package org.geotools.geometry.jts.spatialschema.geometry.geometry;
// J2SE direct dependencies
import org.opengis.referencing.crs.CoordinateReferenceSystem;
/**
* The {@code GeometryFactoryImpl} class/interface...
*
* @author SYS Technologies
* @author crossley
* @version $Revision $
*/
public class GeometryFacto... |
package org.openwms.core.domain.system.usermanagement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.... |
package org.silverpeas.components.projectmanager.servlets;
import org.silverpeas.components.projectmanager.control.ProjectManagerSessionController;
import org.silverpeas.components.projectmanager.model.TaskDetail;
import org.silverpeas.core.util.Charsets;
import org.silverpeas.core.util.DateUtil;
import org.silverpeas.... |
package io.narayana.lra.client;
import io.narayana.lra.Current;
import io.narayana.lra.LRAConstants;
import io.narayana.lra.LRAData;
import io.narayana.lra.logging.LRALogger;
import org.eclipse.microprofile.lra.annotation.AfterLRA;
import org.eclipse.microprofile.lra.annotation.Compensate;
import org.eclipse.microprofi... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import javax.swing.*;
public final class MainPanel extends JPanel {
private static final int MW = 300;
private static fi... |
package org.openhab.domain.rule;
import org.openhab.domain.IOpenHABWidgetControl;
import org.openhab.domain.user.AccessModifier;
import org.openhab.domain.util.StringHandler;
import org.openhab.domain.wear.IWearCommandHost;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Ma... |
package ghcvm.runtime.closure;
public class StgIndStatic extends StgClosure {
StgClosure indirectee;
public StgIndStatic(StgClosure indirectee) {
this.indirectee = indirectee;
}
@Override
public void enter(StgContext context) {
indirectee.enter(context);
}
} |
package org.yakindu.sct.model.sexec.interpreter.test;
import static org.junit.Assert.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.impl.EcoreFactoryImpl;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.yakindu.sct.model.sexec.inter... |
package natlab.toolkits.path;
import java.util.*;
import natlab.NatlabPreferences;
import natlab.toolkits.filehandling.genericFile.*;
/**
* This class represents an ordered set of directories that act as a Path in matlab
* where files (*.m, *.mex, *.p) exist.
* Does not model main, or builtins, or context.
* Uses t... |
/*
Problem 336. Palindrome Pairs
Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that
the concatenation of the two words, i.e. words[i] + words[j] is a palindrome.
Example 1:
Given words = ["bat", "tab", "cat"]
Return [[0, 1], [1, 0]]
The palindromes are ["battab", "tabbat"... |
// This file is part of Serleena.
// Nicola Mometto, Filippo Sestini, Tobia Tesan, Sebastiano Valle.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom t... |
package com.orientechnologies.orient.server;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.orient.client.remote.message.*;
import com.orientechnologies.orient.core.config.OStorageConfiguration;
import com.orientechnologies.orient.core.db.ODatabaseDocumentInternal;
import com.orientec... |
package org.wso2.identity.integration.test.scim2;
import org.apache.commons.codec.binary.Base64;
import org.apache.http.HttpHeaders;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPatch;
impo... |
package io.spine.server.entity.storage;
import com.google.common.annotations.VisibleForTesting;
import io.spine.annotation.Internal;
import io.spine.server.entity.Entity;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import static com.google.common.base.Preconditions.checkNotNull;
i... |
package io.spine.server.storage.memory;
import com.google.common.collect.ImmutableMap;
import com.google.protobuf.Timestamp;
import javax.annotation.Nullable;
import java.util.Objects;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
impo... |
package org.opendaylight.controller.cluster.datastore;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Address;
import akka.cluster.Cluster;
import akka.cluster.ClusterEvent;
import com.google.common.base.Preconditions;
public class ClusterWrapperImpl implements ClusterWrapper {
private... |
package com.gdxjam.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scen... |
package by.kraskovski.pms.controller;
import by.kraskovski.pms.domain.Product;
import by.kraskovski.pms.service.ProductService;
import org.apache.commons.lang3.RandomUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import stati... |
package com.opengamma.analytics.math.interpolation;
import java.util.Arrays;
import com.google.common.primitives.Doubles;
import com.opengamma.analytics.math.function.PiecewisePolynomialWithSensitivityFunction1D;
import com.opengamma.analytics.math.matrix.DoubleMatrix1D;
import com.opengamma.analytics.math.matrix.Doubl... |
package org.zanata.rest.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import j... |
package hudson;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.inject.AbstractModule;
import com.google.inject.Binding;
import com.google.inject.Guice;
import com.google.inject.I... |
package hudson.matrix;
import com.thoughtworks.xstream.alias.CannotResolveClassException;
import com.thoughtworks.xstream.converters.Converter;
import com.thoughtworks.xstream.converters.MarshallingContext;
import com.thoughtworks.xstream.converters.UnmarshallingContext;
import com.thoughtworks.xstream.converters.refle... |
package gov.nih.nci.evs.browser.utils;
import java.io.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Lis... |
package org.jfree.chart.renderer.category;
import java.awt.AlphaComposite;
import java.awt.Composite;
import java.awt.Font;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Line2D;
import... |
package com.velocicaptor.squidb.gson;
import com.google.gson.Gson;
import com.yahoo.squidb.data.AbstractModel;
import com.yahoo.squidb.sql.Property;
public class SquidbGsonSupport {
public static final Gson GSON = new Gson();
@SuppressWarnings("unchecked")
public static <T> T fromJson(AbstractModel model, P... |
package org.evilbinary.tv.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.graphics... |
package com.github.rvesse.airline;
import com.google.common.base.Joiner;
import org.testng.annotations.Test;
public class TestPing
{
@Test
public void test()
{
// simple command parsing example
ping();
ping("-c", "5");
ping("--count", "9");
ping("--count=8");
... |
package oci.lib;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
/**
* This class contains all methods for an edge service registration and un-registration at the local OCI coordi... |
package com.dqc.qlibrary.utils;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.Map;
/**
* Android SharedPreferences
* <p/>
* Application
*/
public class SPUtils {
private static String SP_NAME = "SPUtils";
private static SharedPreferences sharedPreferences... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nl.uva.cs.lobcder;
import java.io.*;
import java.math.BigInteger;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.security.InvalidAlgorithmParameterException;
import java.security.I... |
package devfest.controller;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
public class BaseActivity ... |
package raptor.pref;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.jface.preferen... |
package org.mskcc.cgds.scripts;
import org.mskcc.cgds.dao.*;
import org.mskcc.cgds.model.SecretKey;
import org.mskcc.cgds.util.DatabaseProperties;
/**
* Empty the database.
*
* @author Ethan Cerami
* @author Arthur Goldberg goldberg@cbio.mskcc.org
*/
public class ResetDatabase {
public static final int MAX_RES... |
package org.jetel.graph;
import java.io.*;
import java.text.DateFormat;
import java.util.*;
import java.util.logging.Logger;
import org.jetel.data.Defaults;
import org.jetel.database.DBConnection;
import org.jetel.exception.ComponentNotReadyException;
import org.jetel.util.StringUtils;
/**
* Description of the Class
... |
package net.teamio.taam.rendering;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
imp... |
/**
* Helps simplify the programs code by creating helper methods that perform a certain function.
*/
package kuroodo.discordbot.helpers;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import kuroodo.discordbot.Init;
import net.dv8tion.jda.core.OnlineStatus;
import ne... |
package bisq.core.user;
import bisq.core.btc.nodes.BtcNodes;
import bisq.core.btc.nodes.LocalBitcoinNode;
import bisq.core.btc.wallet.Restrictions;
import bisq.core.locale.Country;
import bisq.core.locale.CountryUtil;
import bisq.core.locale.CryptoCurrency;
import bisq.core.locale.CurrencyUtil;
import bisq.core.locale.... |
package hudson.slaves;
import jenkins.model.Jenkins;
import hudson.Functions;
import hudson.model.Computer;
import hudson.model.User;
import org.acegisecurity.Authentication;
import org.jvnet.localizer.Localizable;
import org.kohsuke.stapler.export.ExportedBean;
import org.kohsuke.stapler.export.Exported;
/**
* Repres... |
package org.cache2k.impl;
import org.cache2k.BulkCacheSource;
import org.cache2k.CacheEntry;
import org.cache2k.CacheException;
import org.cache2k.CacheMisconfigurationException;
import org.cache2k.ClosableIterator;
import org.cache2k.EntryExpiryCalculator;
import org.cache2k.ExceptionExpiryCalculator;
import org.cache... |
package org.restheart;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.Mustache;
import com.github.mustachejava.MustacheNotFoundException;
impor... |
package com.gallatinsystems.framework.dao;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Logger;
import java.uti... |
package main.swapship.util;
import main.swapship.common.Constants;
import main.swapship.components.ShipColorsComp;
import main.swapship.components.ShipSpritesComp;
import main.swapship.components.SpatialComp;
import main.swapship.components.VelocityComp;
import main.swapship.components.dist.PlayerComp;
import com.artem... |
package me.vogeldev.dungeon.Bodies;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
import java.util.Arrays;
import me.vogeldev.dungeon.support.Global;
public class Enemy {
... |
package StatementClasses;
import BaseClasses.Function;
import BaseClasses.Statement;
import StatementExecuteClasses.Executor;
import java.util.ArrayList;
/**
* @author viki
*
*/
public class OverSegStatement extends Statement {
public OverSegStatement() {
}
public boolean executeStatement(){
bool... |
/*
* $Log: HttpSender.java,v $
* Revision 1.31 2007-12-28 12:09:33 europe\L190409
* added timeout exception detection
*
* Revision 1.30 2007/10/03 08:46:40 Gerrit van Brakel <gerrit.van.brakel@ibissource.org>
* added link to IBM site with JDK policy files
*
* Revision 1.29 2007/02/21 15:59:02 Gerrit van B... |
package com.parc.ccn.security.crypto;
import java.math.BigInteger;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
... |
package net.fortuna.ical4j.model;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import net.fortuna.ical4j.util.Dates;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Represents a timezone offset from UTC time.
*
* @author Ben Fortuna
*/
public class UtcOff... |
package org.jasig.portal;
import java.util.Date;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Map;
import org.jasig.portal.services.LogService;
import org.jasig.portal.utils.IPortalDocument;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
* Describes a ... |
package org.jfree.data.gantt;
import java.util.Date;
import org.jfree.chart.axis.SymbolAxis;
import org.jfree.chart.renderer.xy.XYBarRenderer;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.general.DatasetChangeListener;
import org.jfree.data.time.TimePeriod;
import org.jfree.data.xy.AbstractXY... |
package html;
import java.io.File;
import java.io.IOException;
import java.lang.ProcessBuilder.Redirect;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;... |
package controllers;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import com.avaje.ebean.Ebean;
import com.avaje.ebean.Expr;
import com.avaje.ebean.Expression;
import com.avaje.ebean.RawSql;
import com.avaje.ebean.RawSqlBuilde... |
package models;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persisten... |
package models;
import static com.avaje.ebean.Expr.contains;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.p... |
package ucar.nc2.iosp.grid;
import ucar.nc2.*;
import ucar.nc2.iosp.mcidas.McIDASLookup;
import ucar.nc2.iosp.gempak.GempakLookup;
import ucar.nc2.constants._Coordinate;
import ucar.nc2.constants.FeatureType;
import ucar.nc2.dt.fmr.FmrcCoordSys;
import ucar.nc2.units.DateFormatter;
import ucar.nc2.util.CancelTask;
impo... |
package camelinaction;
import java.io.File;
import javax.inject.Inject;
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.cdi.Uri;
import org.apache.camel.test.cdi.CamelCdiRunner;
import org.junit.Before;
import org.junit.Test;
impo... |
package ru.job4j.condition;
/**
* Point.
* @author Aleksandr Shigin
* @version $Id$
* @since 0.1
*/
public class Point {
/**
* Coordinate x.
*/
private int x;
/**
* Coordinate y.
*/
private int y;
/**
* Constructor.
* @param x - x coordinate
* @param y - y coo... |
package ru.osetsky;
public class Paint{
public String piramid (int h) {
StringBuilder builder = new StringBuilder();
for(int i = 0; i < h; i++) {
for(int i2 = 0; i2 < i; i2++) {
builder.append(" ");
}
for(int i2 = 0; i2 <= i; i2++) {
... |
package ru.job4j.loop;
/**
* Paint.
*
* @author Alex Proshak (olexandr_proshak@ukr.net)
* @version $Id$
* @since 0.1
*/
public class Paint {
/**
* Paint of the piramid.
* @param h - height.
* @return returning string of piramid.
*/
public String piramid(int h) {
char c = 94;
int ... |
package okapi.service;
import okapi.bean.ModuleDescriptor;
import okapi.bean.ModuleInstance;
import okapi.bean.Modules;
import okapi.bean.Ports;
import okapi.bean.ProcessModuleHandle;
import okapi.bean.Tenant;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpClient;
import i... |
package ru.job4j.model;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Random;
/**It's a base class-task for accounting system.
*@author gimazetdinov
*@since 31.01.2017
*@version 1.0
*/
public class Item {
/**Name of the item.*/
private String name;
/**Description of the ite... |
package cn.ymex.cute.kits;
public class Null {
/**
* NullPointerException
*
* @param notice
* @param t
* @param <T>
* @return
*/
public static <T> T checkNull(T t, String notice) {
if (null == t) {
if (notice == null) {
throw new NullPoin... |
package edu.utexas.cycic;
import java.util.Optional;
import edu.utah.sci.cyclist.core.controller.CyclistController;
import edu.utexas.cycic.tools.FormBuilderTool;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Alert;
import javafx.scene.control.Menu;
import javafx.scene.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.