answer stringlengths 17 10.2M |
|---|
package io.javalin;
import org.apache.velocity.app.VelocityEngine;
import org.junit.BeforeClass;
import org.junit.Test;
import io.javalin.translator.json.Jackson;
import io.javalin.translator.template.TemplateUtil;
import io.javalin.translator.template.Velocity;
import io.javalin.util.CustomMapper;
import io.javalin.ut... |
package test.java.latexee.docast;
import java.util.ArrayList;
import java.util.Arrays;
import main.java.latexee.declareast.DeclareNode;
import main.java.latexee.docast.DeclareStatement;
import main.java.latexee.docast.FormulaStatement;
import main.java.latexee.docast.IncludeStatement;
import main.java.latexee.docast.Le... |
package net.sf.jabref;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.TreeMap;
import net.sf.jabref.logic.exporter.MetaDataSerializer;
import net.sf.jabref.logic.formatter.casechanger.LowerCaseFormatter;
import net.sf.ja... |
package com.xpn.xwiki.test;
import org.xwiki.component.manager.ComponentManager;
import org.xwiki.plexus.manager.PlexusComponentManager;
import org.xwiki.context.Execution;
import org.xwiki.context.ExecutionContext;
import org.xwiki.context.ExecutionContextManager;
import org.codehaus.plexus.DefaultContainerConfigurati... |
// M a i n //
// <editor-fold defaultstate="collapsed" desc="hdr">
// This program is free software: you can redistribute it and/or modify it under the terms of the
// </editor-fold>
package org.audiveris.omr;
import org.audiveris.o... |
package ch.puzzle.itc.mobiliar.business.property.entity;
import ch.puzzle.itc.mobiliar.business.database.control.Constants;
import ch.puzzle.itc.mobiliar.business.foreignable.entity.Foreignable;
import ch.puzzle.itc.mobiliar.business.foreignable.entity.ForeignableOwner;
import ch.puzzle.itc.mobiliar.business.resourcegr... |
package com.navigation.reactnative;
import static com.google.android.material.navigation.NavigationBarView.LABEL_VISIBILITY_AUTO;
import static com.google.android.material.navigation.NavigationBarView.LABEL_VISIBILITY_LABELED;
import static com.google.android.material.navigation.NavigationBarView.LABEL_VISIBILITY_SELEC... |
package org.opensim.view.motions;
import java.awt.Color;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.UUID;
import java.ut... |
package org.xins.tests.server;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.xins.server.API;
/**
* Tests for class <code>API</code>.
*
* @version $Revision$ $Date$
* @author Ernst de Haan (<a href="mailto:ernst.dehaan@nl.wanadoo.com">ernst.dehaan@nl.wana... |
package org.eclipse.birt.report.designer.internal.ui.util;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.birt.report.designer.core.model.SessionHandleAdapter;
import org.eclipse.birt.report.designer.... |
package com.elmakers.mine.bukkit.magic;
import javax.annotation.Nonnull;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Creature;
import org.bukkit.entity.Entity;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.magic.MageController;
public class MobTri... |
package com.elmakers.mine.bukkit.utility;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.elmakers.mine.bukkit.block.M... |
package com.smartdevicelink.managers.screen;
import com.smartdevicelink.AndroidTestCase2;
import com.smartdevicelink.managers.CompletionListener;
import com.smartdevicelink.managers.file.FileManager;
import com.smartdevicelink.managers.file.MultipleFileCompletionListener;
import com.smartdevicelink.managers.file.filety... |
package nodomain.freeyourgadget.gadgetbridge.service.devices.amazfitbip;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
import android.content.Context;
import android.net.Uri;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.... |
package gov.nih.nci.caadapter.hl7.transformation.data;
import gov.nih.nci.caadapter.common.Message;
import gov.nih.nci.caadapter.common.MessageResources;
import gov.nih.nci.caadapter.common.validation.ValidatorResult;
import gov.nih.nci.caadapter.common.validation.ValidatorResults;
import gov.nih.nci.caadapter.hl7.data... |
package gov.nih.nci.caintegrator2.application.analysis.grid;
import edu.columbia.geworkbench.cagrid.MageBioAssayGenerator;
import gov.nih.nci.caintegrator2.application.analysis.ClassificationsToClsConverter;
import gov.nih.nci.caintegrator2.application.analysis.GctDataset;
import gov.nih.nci.caintegrator2.application.a... |
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.rules.ExpectedException;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNot... |
package org.eclipse.kapua.app.console.module.api.client.ui.grid;
import com.extjs.gxt.ui.client.Style.SelectionMode;
import com.extjs.gxt.ui.client.data.BasePagingLoader;
import com.extjs.gxt.ui.client.data.PagingLoadResult;
import com.extjs.gxt.ui.client.data.RpcProxy;
import com.extjs.gxt.ui.client.event.SelectionCha... |
package org.csstudio.platform.libs.jms;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import jav... |
package io.debezium.connector.cassandra;
import java.time.Duration;
import java.util.Arrays;
import java.util.Map;
import java.util.Optional;
import java.util.Properties;
import java.util.stream.Collectors;
import org.apache.kafka.clients.producer.ProducerConfig;
import com.datastax.driver.core.ConsistencyLevel;
import... |
//$HeadURL: svn+ssh://mschneider@svn.wald.intevation.org/deegree/base/trunk/resources/eclipse/files_template.xml $
package org.deegree.services.wfs;
import static org.deegree.commons.xml.CommonNamespaces.GML3_2_NS;
import static org.deegree.commons.xml.CommonNamespaces.GMLNS;
import static org.deegree.services.i18n.Mes... |
package dk.aau.sw402F15.TypeChecker;
import dk.aau.sw402F15.Exception.TypeChecker.*;
import dk.aau.sw402F15.Helper;
import dk.aau.sw402F15.Symboltable.Scope;
import dk.aau.sw402F15.Symboltable.Symbol;
import dk.aau.sw402F15.Symboltable.SymbolArray;
import dk.aau.sw402F15.Symboltable.SymbolFunction;
import dk.aau.sw402F... |
package org.hisp.dhis.system.deletion;
import org.hisp.dhis.attribute.Attribute;
import org.hisp.dhis.attribute.AttributeValue;
import org.hisp.dhis.category.Category;
import org.hisp.dhis.category.CategoryCombo;
import org.hisp.dhis.category.CategoryOption;
import org.hisp.dhis.category.CategoryOptionCombo;
import org... |
package crazypants.enderio.base.item.darksteel.upgrade.elytra;
import javax.annotation.Nonnull;
import crazypants.enderio.api.upgrades.IRenderUpgrade;
import crazypants.enderio.base.EnderIO;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.model.ModelElytra;
import net.minecraft.clie... |
package org.eclipse.birt.report.engine.emitter;
import org.eclipse.birt.report.engine.content.IAutoTextContent;
import org.eclipse.birt.report.engine.content.ICellContent;
import org.eclipse.birt.report.engine.content.IContainerContent;
import org.eclipse.birt.report.engine.content.IContent;
import org.eclipse.birt.rep... |
package org.eclipse.birt.report.engine.nLayout.area.impl;
import java.util.ArrayList;
import java.util.Iterator;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.report.engine.content.IStyle;
import org.eclipse.birt.report.engine.content.ITextContent;
import org.eclipse.birt.report.engine.c... |
package org.reldb.dbrowser.ui.content.cmd;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.... |
package uk.ac.ebi.spot.goci.curation.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
impor... |
package uk.ac.ebi.spot.goci.curation.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.FileSystemResource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;... |
package org.eclipse.hawkbit.repository;
import java.io.Serializable;
@FunctionalInterface
public interface Identifiable<T extends Serializable> {
T getId();
} |
package org.innovateuk.ifs.commons.error.exception;
import java.util.List;
/**
* This exception is thrown when a user tries to upload a file when one has already been uploaded on same form input response.
* User will be shown a validation error asking they remove existing file first before uploading a different one.
... |
class Node {
String getType() { return ""; }
String foo(Node left, Node right) {
String leftType = left.getType().substring(1);
<selection> String rightType = right.getType().substring(1); //line comment
</selection>
String type = "A".substring(1);
return leftType + rightType + ty... |
package org.languagetool.rules.en;
import org.jetbrains.annotations.Nullable;
import org.languagetool.*;
import org.languagetool.language.English;
import org.languagetool.languagemodel.LanguageModel;
import org.languagetool.rules.Example;
import org.languagetool.rules.RuleMatch;
import org.languagetool.rules.SuggestedR... |
package org.geotools.referencing.factory.epsg;
import java.sql.Connection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.geotools.util.factory.Hints;
/**
* An EPSG factory for the database generated by SQL scripts rather than the MS-Access one.... |
package org.gbif.occurrence.search.heatmap.es;
import org.apache.lucene.search.BooleanClause;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.node.ObjectNode;
import org.codehaus.jackson.node.POJONode;
import org.gbif.occurrence.search.es.EsQ... |
package org.eclipse.wst.html.webresources.core.utils;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
/**
* URI Helper.
*
*/
public class URIHelper {
private static final String DATA_URI_SCHEME = "data:";
... |
package org.springsource.ide.eclipse.commons.core;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipInputStream;
import org.eclipse.core.... |
package org.geomajas.layer.hibernate;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.apache.com... |
package com.redhat.ceylon.eclipse.imp.parser;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.antlr.runtime.ANTLRInputStream;
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runti... |
package com.intellij.lang.properties.psi.impl;
import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.lang.ASTFactory;
import com.intellij.lang.ASTNode;
import com.intellij.lang.injection.InjectedLanguageManager;
import com.intellij.lang.properties.*;
import com.intellij.lang.properties.parsing.PropertiesEleme... |
package org.xcolab.portlets.proposals.wrappers;
import java.util.Date;
import org.apache.commons.lang3.StringUtils;
import com.ext.portlet.NoSuchContestPhaseException;
import com.ext.portlet.contests.ContestStatus;
import com.ext.portlet.model.ContestPhase;
import com.ext.portlet.service.ContestPhaseLocalServiceUtil;
i... |
package cn.momia.service.product.facade.impl;
import cn.momia.common.api.exception.MomiaFailedException;
import cn.momia.common.service.DbAccessService;
import cn.momia.common.util.TimeUtil;
import cn.momia.service.product.facade.Product;
import cn.momia.service.product.facade.ProductImage;
import cn.momia.service.prod... |
package com.opengamma.financial.convention;
import java.util.Map;
import org.joda.beans.Bean;
import org.joda.beans.BeanBuilder;
import org.joda.beans.BeanDefinition;
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.MetaProperty;
import org.joda.beans.Property;
import org.joda.beans.PropertyDefinition;
import... |
package szoftlab4;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.geom.Rectangle2D;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java... |
package net.grandcentrix.thirtyinch.sample.fragmentlifecycle;
import net.grandcentrix.thirtyinch.sample.R;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.... |
package com.github.mjdbc.test;
import com.github.mjdbc.DbImpl;
import com.github.mjdbc.test.asset.EmptyQuerySql;
import com.github.mjdbc.test.asset.EmptySql;
import com.github.mjdbc.test.asset.MissedParameterSql;
import com.github.mjdbc.test.asset.ReaderSql;
import com.github.mjdbc.test.asset.UserSql;
import com.github... |
package de.naoth.rc;
import de.naoth.rc.core.dialog.Dialog;
import bibliothek.gui.DockUI;
import bibliothek.gui.dock.util.laf.Nimbus6u10;
import de.naoth.rc.components.preferences.PreferencesDialog;
import de.naoth.rc.server.ConnectionManager;
import de.naoth.rc.server.ConnectionStatusEvent;
import de.naoth.rc.server.C... |
package org.ow2.proactive.scheduler.core.helpers;
import org.ow2.proactive.db.DatabaseManagerException;
import org.ow2.proactive.scheduler.common.exception.UnknownTaskException;
import org.ow2.proactive.scheduler.common.job.JobType;
import org.ow2.proactive.scheduler.common.task.TaskId;
import org.ow2.proactive.schedul... |
package com.sothawo.trakxmap;
import com.sothawo.trakxmap.generated.gpx.GpxType;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* test program to read a gpx track f... |
package com.twistedplane.sealnote;
import android.app.ActionBar;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import and... |
package org.csveed.row;
import static junit.framework.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.List;
import org.csveed.api.Header;
import org.csveed.api.Row;
import org.csveed.common.Column;
import... |
package com.sharefile.api.https;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLCon... |
package uk.co.jeeni.siren;
import org.codehaus.jackson.map.ObjectMapper;
import org.junit.Test;
public class SwiberTest {
@Test
public void creatKevinSwiberExampleUsingBaseDomainTest(){
// Create the parent 'Order' entity
final Entity entity = new Entity(new String[] {"order"}, "http://api.x.io/... |
package micromod;
public class Macro {
private Scale scale;
private int rootKey, speed;
private Pattern notes;
public Macro( String scale, String rootKey, Pattern notes, int speed ) {
this.scale = new Scale( scale != null ? scale : Scale.CHROMATIC );
this.rootKey = Note.parseKey( rootKey... |
package uk.co.plogic.gwt.lib.utils;
import java.util.logging.Logger;
import com.google.gwt.i18n.client.NumberFormat;
public class StringUtils {
static final Logger logger = Logger.getLogger("StringUtils");
public StringUtils() {}
public static boolean isAlphaNumericWithHyphensUnderscores(String testString) ... |
package graphic;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Font;
import java.rmi.ServerException;
import java.util.A... |
package us.corenetwork.moblimiter;
import java.util.HashSet;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.entity.Creature;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
import org.bukkit.event.Listener;
import ... |
package grouplab;
import grouplab.Checkers.Side;
import grouplab.heuristics.*;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
... |
package gui;
import data.AllTracks;
import data.CustomerTracks;
import data.TrackedTimeItem;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOExcepti... |
package uk.ac.ebi.pride.archive.dataprovider.data.spectra;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class SpectrumNumberArrayDeserializerTest{
String spectraLine = "{... |
package org.openmrs.module.xforms;
import static org.openmrs.module.xforms.XformBuilder.ATTRIBUTE_BIND;
import static org.openmrs.module.xforms.XformBuilder.ATTRIBUTE_CONCEPT_ID;
import static org.openmrs.module.xforms.XformBuilder.ATTRIBUTE_CONSTRAINT;
import static org.openmrs.module.xforms.XformBuilder.ATTRIBUTE_ID;... |
package org.elasticsearch.xpack.sql.qa.mixed_node;
import org.apache.http.HttpHost;
import org.elasticsearch.Version;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.Response;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.common.xcontent.XContentHelper;
import org.elastic... |
package org.xmlunit.exnm;
import org.junit.Test;
import org.xmlunit.XMLUnitException;
import org.xmlunit.builder.DiffBuilder;
import org.xmlunit.diff.*;
import javax.xml.namespace.QName;
import java.util.Iterator;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.*;
public class Placehol... |
package org.xwiki.job.internal.script.safe;
import java.util.Date;
import java.util.List;
import org.xwiki.job.Request;
import org.xwiki.job.event.status.JobProgress;
import org.xwiki.job.event.status.JobStatus;
import org.xwiki.logging.LogLevel;
import org.xwiki.logging.LogQueue;
import org.xwiki.logging.event.LogEven... |
package com.heavyplayer.audioplayerrecorder.util;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.SeekBar;
import com.heavyplayer.audioplayerre... |
package com.groupon.seleniumgridextras.grid.servlets;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import org.openqa.grid.internal.ProxySet;
import org.openqa.grid.internal.Registry;
import org.openqa.grid.internal.RemoteProxy;
import org.openqa.grid.internal.TestSlot;
import org.openqa.grid.w... |
package com.hubspot.singularity.data.zkmigrations;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.hubspot.singularity.config.SingularityConfiguration;
import com.hubspot.singularity.data.ShuffleConfigurationManager;
@Singleton
public class ShuffleBlacklistMigration extends ZkDataMigrati... |
package io.doist.recyclerviewext.sticky_headers;
import android.content.Context;
import android.graphics.PointF;
import android.os.Build;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
/**
... |
package ar.com.tzulberti.archerytraining.fragments.tournament;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import an... |
package com.itachi1706.cheesecakeutilities.Features.FingerprintAuth;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceMana... |
package nodomain.freeyourgadget.gadgetbridge.service.devices.miband;
import android.support.annotation.NonNull;
import java.util.Arrays;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public abstract class AbstractMiFirmwareInfo {
public static
@NonNull
AbstractMiFirmwareInfo determineFirmwareIn... |
package com.philliphsu.bottomsheetpickers.view.numberpad;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.view.View;
import java.util.Arrays;
/**
* Model that encapsulates data pertaining to the inputted time in a number pad time picker.
*/
final clas... |
package gov.nih.nci.cagrid.data.cql.test;
import gov.nih.nci.cagrid.data.cql.tools.CQLBuilder;
import junit.framework.TestCase;
import org.jdom.Element;
/**
* Generate multiple CQLs to get attributes from other objects
* @testType unit
* @author Srini Akkala
*/
public class CQLBuilderTest extends TestCase {
pub... |
package org.codingmatters.value.objects.values.json;
import com.fasterxml.jackson.core.JsonGenerator;
import org.codingmatters.value.objects.values.ObjectValue;
import org.codingmatters.value.objects.values.PropertyValue;
import java.io.IOException;
import java.time.format.DateTimeFormatter;
public class ObjectValueWri... |
package com.yahoo.vespa.hosted.controller.application.pkg;
import com.google.common.hash.Hashing;
import com.yahoo.component.Version;
import com.yahoo.config.application.FileSystemWrapper;
import com.yahoo.config.application.FileSystemWrapper.FileWrapper;
import com.yahoo.config.application.XmlPreProcessor;
import com.... |
package org.csstudio.platform.libs.dal.epics;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends Plugin {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX Error to test nightly build
// The plug-in ID
public... |
package org.xwalk.embedding.base;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.Map;
import java.util.List;
import java.u... |
package org.eclipse.birt.report.engine.data.dte;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.birt.data.engine.api.IBaseEx... |
package org.hibernate.validator.internal.util.privilegedactions;
import static org.hibernate.validator.internal.util.CollectionHelper.newHashMap;
import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.security... |
package org.grammaticalframework.examples.PhraseDroid;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.speech.tts.Text... |
package de.saxsys.mvvmfx.examples.contacts.ui.detail;
import static eu.lestard.advanced_bindings.api.ObjectBindings.map;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import javax.inject.Inject;
import de.saxsys.mvvmfx.InjectScope;
import de.saxsys.mvvmfx.ViewModel;
import de.saxsys.mvvmfx.exam... |
package org.geomajas.gwt.client.util;
import org.geomajas.configuration.client.UnitType;
import org.geomajas.gwt.client.widget.MapWidget;
import com.google.gwt.i18n.client.NumberFormat;
/**
* General formatter for distances and areas.
*
* @author Pieter De Graef
*/
public final class DistanceFormat {
private st... |
package com.oracle.graal.phases.common.inlining.walker;
import com.oracle.graal.api.code.Assumptions;
import com.oracle.graal.api.code.BailoutException;
import com.oracle.graal.api.meta.JavaTypeProfile;
import com.oracle.graal.api.meta.ResolvedJavaMethod;
import com.oracle.graal.api.meta.ResolvedJavaType;
import com.or... |
package com.mindthehippo.infrastructure.security;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.mindthehippo.budget.aggregate.budget.Budget;
import com.mindthehippo.budget.aggregate.budget.Item;
import com.mindthehippo.budget.application.dto.BudgetDTO;
import com.mindthehippo.budget.application.dto.Ite... |
package com.alibaba.otter.canal.instance.manager.plain;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.NoSuchAlgorithmException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.apache.commons.lang.St... |
package org.javarosa.services.properties.view;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedi... |
package org.eclipse.kura.core.data.transport.mqtt;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.net.ssl.SSLSocketFactory;
import org.eclipse.kura.KuraConnectException;
... |
package org.eclipse.kura.linux.net.modem;
import java.util.Arrays;
import java.util.List;
import org.eclipse.kura.linux.net.util.KuraConstants;
import org.eclipse.kura.net.modem.ModemTechnologyType;
public enum SupportedUsbModemInfo {
// device name, vendor, product, ttyDevs, blockDevs, AT Port, Data Po... |
package org.languagetool.tokenizers.uk;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import java.util.StringTokenizer;
import org.languagetool.tokenizers.Tokenizer;
/**
* Tokenizes a sentence into words.
* Punctuation and whitespace gets its own token.
* Specific to Ukrainian: a... |
package org.sagebionetworks.repo.model.dbo.dao.table;
import java.io.IOException;
import java.util.Collection;
import java.util.ConcurrentModificationException;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import or... |
package classycle;
/**
* Process command line arguments and options for the main application
* {@link Analyser}.
*
* @author Franz-Josef Elmer
*/
public class AnalyserCommandLine extends CommandLine
{
private static final String XML_FILE = "-xmlFile=";
private static final String CSV_FILE = "-csvFile=";
priv... |
package example;
//-*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
//@homepage@
import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.util.Objects;
import javax.swing.*;
public final class MainPanel extends JPanel {
private final JSplitPane leftPane = new JSplitPane(JSplitP... |
package xal.tools.apputils.files;
import xal.tools.StringJoiner;
import java.util.*;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.prefs.Preferences;
import java.net.*;
import java.io.File;
import javax.swing.JFileChooser;
/**
* RecentFileTracker caches recently accessed files into t... |
package com.uservoice.uservoicesdk.ui;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.TextView;
import ... |
package xal.tools.apputils;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.Frame;
import javax.swing.*;
import javax.swing.table.*;
import java.util.*;
import xal.model.p... |
import java.util.*;
import java.io.*;
public class TronBot {
public static void main(String[] args) {
//Initialize bot with respect to the Tron Environment.
Tron.init();
//We'll want to keep track of the turn number to make debugging easier.
int turnNumber = 0;
// Execute loo... |
package net.i2p.router;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Properties;
import net.i2p.I2PAppContext;
import net.i2p.util.Log;
/**
* Fire up multiple routers in the same VM, all with their own RouterContext
* (and all that entails). In addition, th... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of the <organization> nor the
// names of its contributors may be used to endorse or promote products
// ANY EXPRESS OR IMPLIED WARRAN... |
package com.intellij.ide.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.wm.impl.IdeFrame;
import java.awt.*;
import java.awt.event.WindowEvent;
/**
* @author Vladimir Kondratyev
*/
public class CloseWindowAction extends A... |
package risk;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class RiskBoard {
private List<Territory> territories;
// A new board will be blank, with no territories and no conn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.