answer stringlengths 17 10.2M |
|---|
package edu.rpi.cs.yacs.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Period {
@SerializedName("type")
@Expose
private String type;
@SerializedName("day")
@Expose
private Integer day;
@SerializedName("start")
@Expose
... |
package net.sf.taverna.t2.workbench.ui.servicepanel.tree;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
i... |
package wcdi.wcdiplayer;
import android.app.Activity;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.TextView;
import java.io.F... |
package com.devansh.thrift;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TField;
import org.apache.thrift.protocol.TMessageType;
import org.apache.thrift.protocol.TSimpleJSONProtocol;
import org.apache.thrift.protocol.TList;
import org.apache.thrift.protocol.TMap;
import org.apache.thrift.prot... |
package facespace;
import java.sql.*; //import the file containing definitions for the parts
import java.util.Scanner;
import java.util.regex.Pattern;
import java.util.*;
/**
*
* @author Kyle Monto (kwm19@pitt.edu) | Joe Meszar (jwm54@pitt.edu)
*/
public class DatabaseConnection {
private static Connection conn... |
package uk.ac.ebi.quickgo.annotation.controller;
import uk.ac.ebi.quickgo.annotation.AnnotationREST;
import uk.ac.ebi.quickgo.annotation.common.AnnotationRepository;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocMocker;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;
import uk... |
package fi.metropolia.yellow_spaceship.androidadvproject;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
impo... |
package fr.paris10.projet.assogenda.assogenda.ui.activites;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget... |
package org.ovirt.engine.core.bll.validator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.ovirt.engine.core.bll.Backend;
import org.ovirt.engine.core.bll.Ima... |
package org.eclipse.smarthome.core.net;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.InterfaceAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Collect... |
package org.openhab.core.library.items;
import org.openhab.core.library.types.DecimalType;
import org.openhab.core.library.types.HSBType;
import org.openhab.core.library.types.OnOffType;
import org.openhab.core.library.types.PercentType;
import org.openhab.core.types.State;
/**
* A ColorItem can be used for color valu... |
package gov.nih.nci.cabig.caaers.api.impl;
import gov.nih.nci.cabig.caaers.dao.ExpeditedAdverseEventReportDao;
import gov.nih.nci.cabig.caaers.dao.ParticipantDao;
import gov.nih.nci.cabig.caaers.dao.StudyDao;
import gov.nih.nci.cabig.caaers.dao.StudyParticipantAssignmentDao;
import gov.nih.nci.cabig.caaers.domain.Adver... |
package org.jasig.cas.web.flow;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.jasig.cas.authentication.principal.Service;
import org.jasig.cas.web.support.ArgumentExtractor;
import org.jasig.cas.web.... |
package com.archimatetool.editor.propertysections;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.commands.Command;
import org.ecli... |
package org.jboss.windup.config.operation.ruleelement;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import org.apache.commons.lang.StringUtils;
import org.jboss.forge.furnace.Furnace;
import org.jboss.forge.furnace.services.Imported;
import org.jboss.windup.config.GraphRewrite;
import org... |
/*
* (e-mail:zhongxunking@163.com)
*/
/*
* :
* @author 2018-12-08 20:57
*/
package org.antframework.configcenter.facade.order;
import lombok.Getter;
import lombok.Setter;
import org.antframework.common.util.facade.AbstractOrder;
import org.antframework.configcenter.facade.vo.Property;
import org.antframework.con... |
package com.sequenceiq.cloudbreak.service.cluster.flow;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
@Component
public class FixedDefaultConfigProvider implements DefaultConfigProvider {
@Override
public List<BlueprintConfigurationEntry> getDefaultConfigs()... |
package com.gaiagps.iburn.api;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import com.gaiagps.iburn.SECRETS;
import com.gaiagps.iburn.api.response.Art;
import com.gaiagps.iburn.api.response.Camp;
import com.ga... |
package org.jboss.as.server.deployment.scanner;
import java.io.File;
import java.io.IOException;
import java.security.AccessController;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;... |
package bisq.desktop.main.portfolio.pendingtrades.steps.seller;
import bisq.desktop.components.BusyAnimation;
import bisq.desktop.components.InfoTextField;
import bisq.desktop.components.TextFieldWithCopyIcon;
import bisq.desktop.components.TitledGroupBg;
import bisq.desktop.components.indicator.TxConfidenceIndicator;
... |
package hu.elte.txtuml.export.cpp.structural;
import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.eclipse.uml2.uml.Clas... |
package consulo.dotnet.debugger.nodes.logicView;
import java.util.Map;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import com.intellij.xdebugger.frame.XValueChildrenList;
import consulo.dotnet.debugger.DotNetDebugContext;
import consulo.dotnet.debugger.DotNetDebuggerSearchUtil;
... |
package edu.wpi.first.wpilib.plugins.core;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import org.eclipse.core.resources.IProject;
import org.... |
package org.jboss.as.ejb3.component.stateful;
import java.lang.reflect.Method;
import org.jboss.as.ejb3.component.interceptors.AbstractEJBInterceptor;
import org.jboss.as.ejb3.component.interceptors.SessionBeanHomeInterceptorFactory;
import org.jboss.invocation.Interceptor;
import org.jboss.invocation.InterceptorContex... |
package org.eclipse.birt.report.engine.api;
import java.io.File;
/**
* Defines various constants that engine host may need to use
*/
public class EngineConstants {
public final static String APPCONTEXT_HTML_RENDER_CONTEXT = "HTML_RENDER_CONTEXT"; //$NON-NLS-1$
public final static String APPCONTEXT_PDF_RENDER_... |
package org.estatio.capex.dom.state;
import java.util.List;
import javax.inject.Inject;
import org.apache.isis.applib.annotation.DomainService;
import org.apache.isis.applib.annotation.NatureOfService;
import org.apache.isis.applib.annotation.Programmatic;
import org.apache.isis.applib.services.eventbus.EventBusService... |
package org.monarchinitiative.exomiser.core.analysis.util;
import de.charite.compbio.jannovar.annotation.VariantEffect;
import org.monarchinitiative.exomiser.core.model.Gene;
import org.monarchinitiative.exomiser.core.model.TopologicalDomain;
import org.monarchinitiative.exomiser.core.model.TranscriptAnnotation;
import... |
package at.fhj.swd14.pse.person.tools;
import static org.mockito.Mockito.when;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.faces.context.ExternalContext;
import javax.servlet.http.HttpServletRequest;
import org.junit.Assert;
import org.junit.Before;
im... |
package com.tinkerpop.gremlin.structure.strategy;
import com.tinkerpop.gremlin.AbstractGremlinTest;
import com.tinkerpop.gremlin.FeatureRequirement;
import com.tinkerpop.gremlin.FeatureRequirementSet;
import com.tinkerpop.gremlin.LoadGraphWith;
import com.tinkerpop.gremlin.process.T;
import com.tinkerpop.gremlin.struct... |
package org.hibernate.ogm.datastore.impl;
import org.hibernate.cfg.Configuration;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.metamodel.source.MetadataImplementor;
import org.hibernate.ogm.datastore.spi.DatastoreProvider;
import org.hibernate.ogm.util.impl.Log;
import org.hibernate.o... |
package com.servinglynk.hmis.warehouse.listener;
import java.util.UUID;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
import com.servinglynk.hmis.warehouse.common.MQDateUtil;
import com.servinglynk.hmis.warehouse.model.AMQEvent;
import com.servinglynk.hmis.wareh... |
package rocks.inspectit.ui.rcp.ci.view;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IBaseLabelProvider;
import org.eclipse.jface.viewers.IDoubleCli... |
package com.io7m.jcanephora.documentation;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
/**
* Functions for retrieving the documentation.
*/
public final class CDocumentation
{
public static URI getDocumentationXMLLocation()
{
try {
final URL url =
CDocumentation... |
package test;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import de.uni_hildesheim.sse.monitoring.runtime.annotations.EndSystem;
import de.uni_hildesheim.sse.monitoring.runtime.annotations.Monitor;
import de.uni_hildesheim.sse.monitoring.runtime.annotatio... |
package it.polimi.ingsw.client.cli;
import it.polimi.ingsw.client.GameController;
import it.polimi.ingsw.client.View;
import it.polimi.ingsw.game.GameMap;
import it.polimi.ingsw.game.card.object.ObjectCardBuilder;
import it.polimi.ingsw.game.common.GameInfo;
import it.polimi.ingsw.game.common.PlayerInfo;
import it.poli... |
package com.annimon.jecp;
/**
*
* @author aNNiMON
*/
public interface JecpGraphics {
public void drawLine(int x1, int y1, int x2, int y2);
public void drawRect(int x, int y, int width, int height);
public void fillRect(int x, int y, int width, int height);
public void setColor(int color);
} |
package org.flymine.ontology;
import java.util.Iterator;
import java.util.HashSet;
import java.util.TreeSet;
import java.util.Set;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import com.hp.hpl.jena.util.iterator.ExtendedIterator;
import com.hp.hpl.jena.ontology.Ont... |
package com.kii.iotcloud;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Pair;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.suppo... |
package samples;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
public class Program {
public static void main(String[] args) throws InterruptedException
{
QiClient qiclient = null;
QiType evtType = null;
QiStre... |
package net.xpece.android.support.preference;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import androi... |
package sample.javafx;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.fxml.FXML;
import java.util.concurrent.ExecutionException;
public class MainController {
@FXML
public void startTask() throws ExecutionException, InterruptedException {
System.out.println("Main Thread =... |
package com.matthewtamlin.java_compiler_utilities.element_util;
import com.google.common.collect.ImmutableSet;
import com.google.testing.compile.JavaFileObjects;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import javax.lang.model.element.Element;
imp... |
package org.cache2k.benchmark.jmh;
/**
* Configured main class, delegates to runner variant class.
*
* @author Jens Wilke
*/
public class Main {
public static void main(String[] args) throws Exception {
if (args.length > 0 && "jmh".equals(args[0])) {
String[] a2 = new String[args.length-1];
System... |
package org.subethamail.smtp.server;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.UnknownHostException;
import java.util.Collection;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import or... |
package org.subethamail.smtp.server;
import java.lang.management.ManagementFactory;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.nio.charset.Charset;
import java.util.Collection;
import java.util.concurrent.ExecutorService;
import java.util.concurrent... |
package com.sun.star.filter.config.tools.split;
import java.lang.*;
import java.util.*;
import java.io.*;
import com.sun.star.filter.config.tools.utils.*;
/**
* Can split one xml file into its different xml fragments.
*
*
*/
public class Splitter
{
// const
// member
/** contains all real member of thi... |
package org.apache.maven.integrationtests;
import junit.framework.TestCase;
import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.util.Map;
import java.util.HashMap;
public class MavenIT0090Test
extends TestCase /*extends AbstractMavenIntegrationTes... |
import gov.nih.nci.cagrid.cananolab.client.CaNanoLabServiceClient;
import gov.nih.nci.cagrid.cqlquery.Association;
import gov.nih.nci.cagrid.cqlquery.Attribute;
import gov.nih.nci.cagrid.cqlquery.CQLQuery;
import gov.nih.nci.cagrid.cqlquery.Predicate;
import gov.nih.nci.cagrid.cqlresultset.CQLQueryResults;
import gov.n... |
package com.sequenceiq.cloudbreak.metrics.processor;
import java.io.IOException;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.TimeUnit;
import org.xerial.snappy.Snappy;
import com.sequenceiq.cloudbreak.streaming.model.StreamProcessingException;
import com.sequenceiq.cloudbreak.streaming.proces... |
package org.xcolab.client.members;
import org.xcolab.client.members.exceptions.MessageNotFoundException;
import org.xcolab.client.members.pojo.Member;
import org.xcolab.client.members.pojo.Message;
import org.xcolab.client.members.pojo.MessagingUserPreferences;
import org.xcolab.util.http.client.RestResource;
import or... |
package com.intellij.debugger.ui.impl;
import com.intellij.debugger.settings.DebuggerSettings;
import com.intellij.debugger.ui.WeakMouseListener;
import com.intellij.debugger.ui.WeakMouseMotionListener;
import com.intellij.ui.ListenerUtil;
import com.intellij.util.Alarm;
import com.intellij.util.WeakListener;
import ja... |
package org.jasig.portal.channels;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import org.jasig.portal.*;
import java.net.*;
/**
* Authorization channel. This channel works in conjunction with
* authorization.jsp
* @author Ken Weiner
* @ver... |
package org.openlmis.web.controller;
import lombok.NoArgsConstructor;
import org.openlmis.web.configurationReader.StaticReferenceDataReader;
import org.openlmis.web.response.OpenLmisResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.PropertySource;
imp... |
package org.jasig.portal.tools.dbloader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.net.URL;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatemen... |
package org.jfree.chart.axis;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Paint;
import java.awt.Stroke;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.lang.reflect.Constructor;
impor... |
package com.nowellpoint.aws.api.service;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import... |
package it.unibz.krdb.obda.LUBM;
import it.unibz.krdb.obda.owlapi2.QuestPreferences;
import it.unibz.krdb.obda.owlrefplatform.core.QuestStatement;
import it.unibz.krdb.obda.owlrefplatform.questdb.QuestDBClassicStore;
import java.io.File;
import java.io.FileInputStream;
import java.io.PrintWriter;
import java.net.URI;
i... |
package org.opennms.netmgt.rrd.jrobin;
import java.awt.Color;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.List;
import org.apache.log4j.Category;
import org.jrobin.core.FetchData;
import org.jrobin.core.RrdDb;
import org.jrobin.core.RrdDef;
... |
package org.opennms.netmgt.rrd.jrobin;
import java.awt.Color;
import java.awt.Font;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util... |
// This file is part of the OpenNMS(R) Application.
// OpenNMS(R) is a derivative work, containing both original code, included code and modified
// and included code are below.
// OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
// Modifications:
// 2006 Apr 27: Added support for pathOutageEnabled
// Th... |
package org.eclipse.emf.emfstore.client.model.util;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.emf.emfstore.client.model.Activator;
import org.eclipse.emf.emfstore.client.model.WorkspaceManager;
import org.eclipse.emf.emfstore.client.model.observers.ExceptionObse... |
package org.eclipse.mylyn.internal.context.ui;
import org.eclipse.mylyn.internal.context.ui.actions.FocusOutlineAction;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IPartListener;
import org.eclipse.ui.IWorkbenchPart;
/**
* @author Mik Kersten
*/
public class Conten... |
package org.eclipse.mylyn.resources.ui;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.eclipse.core.expressions.Expression;
import org.eclipse.core.runtime.CoreException;
import or... |
package org.eclipse.scanning.sequencer.nexus;
import java.util.ArrayList;
import java.util.Collection;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.... |
package org.spoofax.jsglr2.integrationtest;
import static java.util.Collections.sort;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
im... |
package net.fortuna.ical4j.model;
import java.io.IOException;
import java.io.Serializable;
import java.net.URISyntaxException;
import java.text.ParseException;
import java.util.Iterator;
import net.fortuna.ical4j.model.component.CalendarComponent;
import net.fortuna.ical4j.model.property.CalScale;
import net.fortuna.ic... |
package net.fortuna.ical4j.model;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import net.fortuna.ical4j.util.CompatibilityHints;
import net.fortuna.ical4j.util.Dates;
import net.fortuna.ical4j.util.TimeZones;
import org.apache.commons.lang.builder.EqualsBuilder;
impo... |
package org.jasig.portal.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EmptyStackException;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* A thread pool implementation with a few extra kinks,
* such as ThreadPoolRe... |
package scalac.transformer.matching;
import ch.epfl.lamp.util.Position;
import scalac.*;
import scalac.ast.*;
import scalac.util.*;
import scalac.symtab.*;
import scalac.typechecker.*;
import PatternNode.*;
import Tree.*;
class CodeFactory extends PatternTool {
static final Name SEQ_N = Name.fromString("scal... |
// $OldId: AddInterfaces.java,v 1.40 2002/11/08 11:56:47 schinz Exp $
package scalac.transformer;
import scalac.*;
import scalac.util.*;
import scalac.ast.*;
import scalac.symtab.*;
import Tree.*;
import java.util.*;
// TODO see why lambda-lifted functions end up in the interface
/**
* Add, for each class, an interfac... |
package com.rox.emu.p6502;
import com.rox.emu.UnknownOpCodeException;
import com.rox.emu.p6502.op.AddressingMode;
import com.rox.emu.p6502.op.OpCode;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.*;
/**
* # - Memory
* $ - Value
*
* #$V - Immediate
* #VV ... |
package de.voowoo.gameoflife;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
public class WorldTest
{
@Test
public void aliveCellWith2NeighborsShouldSurvive() throws Exception
{
assertThat(World.nextCellState(true, 2), i... |
package io.atom.electron;
import java.util.concurrent.Future;
import org.junit.Test;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import org.netbeans.junit.NbTestCase;
import org.openide.loaders.DataObject;
/**
*
* @author spindizzy
*/
publ... |
package ru.job4j.lambda;
public class Attachment {
private String name;
private int size;
public Attachment(String name, int size) {
this.name = name;
this.size = size;
}
public String getName() {
return name;
}
public int getSize() {
return size;
}
@O... |
package geeksforgeeks;
public class _01AmazonInterview_21_03 {
public static void main(String[] args) {
int distance[]={6,3,7};
int petrol[]={4,6,4};
startingPointLong(distance,petrol);
}
private static void startingPointLong(int[] distance, int[] petrol) {
for (int i =... |
package railo.runtime.engine;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.management.MemoryUsage;
import java.util.Map;
import railo.commons.io.IOUtil;
import railo.commons.io.SystemUtil;
import railo.commons.io.res.Resource;
import railo.commons.io.res.filter.ExtensionResourceFilter;
impor... |
package fitnesse.junit;
import java.io.File;
import org.junit.Test;
import static org.junit.Assert.*;
public class FitNesseSuiteArgumentsTest {
@Test
public void argumentsAreParsedCorrectly() throws Exception {
System.setProperty("fitnesse.root.dir.parent", ".");
FitNesseSuite suite = new FitNesseSuite(FitN... |
package raptor.swt.chess.controller;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.ec... |
package info.ata4.unity.serdes;
import info.ata4.unity.struct.Struct;
import info.ata4.util.io.DataInputReader;
import java.io.IOException;
/**
*
* @author Nico Bergemann <barracuda415 at yahoo.de>
*/
public class SerializedInput {
private static final int ALIGNMENT = 4;
private final DataInputReader in;
... |
package org.davidmoten.rx;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.davidmoten.rx.jdbc.Database;
import org.davidmoten.rx.jdb... |
package claw;
import claw.tatsu.common.CompilerDirective;
import claw.tatsu.common.Context;
import claw.tatsu.common.Target;
import claw.tatsu.directive.generator.OpenAcc;
import claw.tatsu.xcodeml.backend.OmniBackendDriver;
import claw.wani.report.ClawTransformationReport;
import claw.wani.x2t.configuration.Configurat... |
package io.flutter;
import com.intellij.ide.DataManager;
import com.intellij.ide.plugins.IdeaPluginDescriptor;
import com.intellij.ide.plugins.PluginManager;
import com.intellij.ide.scratch.ScratchRootType;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.application.ApplicationInfo;
im... |
package testsupport.matchers;
import com.jnape.palatable.lambda.adt.Either;
import com.jnape.palatable.lambda.io.IO;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import java.util.concurrent.atomic.AtomicReference;
import static com.jnape.palatable.lambda.adt.Either.... |
package org.apache.jmeter.gui.action;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import javax.swing.JDialog;
import javax.swing.JScrollPane;
import org.apache.jmeter.gui.GuiPackage;
import org.apache.j... |
package ua.com.fielden.platform.entity.query.metadata;
import static java.lang.String.format;
import static org.apache.commons.lang.StringUtils.isNotEmpty;
import static ua.com.fielden.platform.entity.AbstractEntity.ID;
import static ua.com.fielden.platform.entity.AbstractEntity.KEY;
import static ua.com.fielden.platfo... |
package org.jdesktop.swingx;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util... |
package net.sourceforge.mayfly.acceptance;
import net.sourceforge.mayfly.util.StringBuilder;
import java.sql.Connection;
import java.sql.SQLException;
public abstract class Dialect {
abstract public Connection openConnection() throws Exception;
abstract public Connection openAdditionalConnection() throws Except... |
package com.threerings.gwt.ui;
import com.google.gwt.animation.client.Animation;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
/**
* Reveals ano... |
package org.pocketcampus.plugin.moodle.server;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.servlet.http.*;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.pocketcampus.platform.launcher.server... |
package jade.core;
import jade.lang.acl.ACLMessage;
import jade.security.AuthException;
/**
This interface represent the whole platform as seen by a
<code>Container</code>.
It provides methods that allows a <code>Container</code> to
register/deregister to the platform, dispatch a message to an
<code>Agen... |
package org.jcoderz.commons;
import org.jcoderz.commons.util.HashCodeUtil;
/**
* This is the base class for audit log events.
*
* <p>The base class of this AuditLogEvent is Throwable but instances
* of this class are not expected to be thrown.</p>
*
* <p>Most functionality is implemented and documented by the
* ... |
package com.redhat.ceylon.eclipse.imp.builder;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.CommonTokenStream;
import org.eclipse.core.resources.IFi... |
package org.jcoderz.commons.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.jar.JarEntry;
impo... |
package jade.tools.rma;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.BufferedReader;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.io.InputStreamReader;
import jade.util.leap.List;
import jade.util.leap.ArrayList;
import java.util.Map;
import java.util.TreeMa... |
package untref.aydoo.graficador;
public class FuncionConstante {
private float constante;
public FuncionConstante(float constante) {
this.constante = constante;
}
public float evaluarEn(float x) {
return constante;
}
} |
package cs201.structures.restaurant;
import java.util.List;
import cs201.agents.PersonAgent.Intention;
import cs201.roles.Role;
import cs201.roles.restaurantRoles.RestaurantCashierRole;
import cs201.roles.restaurantRoles.RestaurantCookRole;
import cs201.roles.restaurantRoles.RestaurantHostRole;
import cs201.roles.resta... |
package us.corenetwork.tradecraft;
import net.minecraft.server.v1_7_R2.*;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.v1_7_R2.util.CraftMagicNumbers;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
public class CustomVillager extends EntityV... |
package dae.prefabs.parameters;
import dae.components.ComponentType;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Koen Samyn
*/
public class EnumListParameter extends Parameter{
private Object[] choices;
private Class enumClass;
/**
* Creates a new EnumListParamet... |
package de.duenndns.ssl;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Application;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Service;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;... |
package jsettlers.mapcreator.main;
import go.graphics.area.Area;
import go.graphics.region.Region;
import go.graphics.swing.AreaContainer;
import go.graphics.swing.sound.SwingSoundPlayer;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.