answer
stringlengths
17
10.2M
package org.freecompany.redline.ant; import java.io.File; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.freecompany.redline.Builder; im...
package net.fortuna.ical4j.model.component; import java.io.IOException; import java.text.ParseException; import java.util.HashMap; import java.util.Map; import java.util.SimpleTimeZone; import java.util.TimeZone; import net.fortuna.ical4j.data.CalendarBuilder; import net.fortuna.ical4j.data.ParserException; import net....
package com.github.pedrovgs; import android.annotation.TargetApi; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Build; import android.support.v4.view.MotionEventCompat; import android.support.v4.view.ViewCompat; import android.support.v4.widget.ViewDragHelper; import andro...
package org.jasig.portal.layout.utils; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.Iterator; import javax.xml.transform.TransformerFactory; import javax.xml.transform.sax.SAXTransformerFa...
package org.objectweb.proactive.api; import java.io.IOException; import java.lang.reflect.Array; import java.net.URI; import java.util.Vector; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import org.apache.log4j.Logger; import org.objectweb.pr...
package us.kbase.genbank; import com.fasterxml.jackson.databind.ObjectMapper; import us.kbase.common.service.Tuple4; import us.kbase.common.service.UObject; import us.kbase.kbasegenomes.Contig; import us.kbase.kbasegenomes.ContigSet; import us.kbase.kbasegenomes.Feature; import us.kbase.kbasegenomes.Genome; import java...
package com.shuffle.mock; import com.shuffle.bitcoin.Address; import com.shuffle.bitcoin.CoinNetworkError; import com.shuffle.bitcoin.Transaction; import com.shuffle.bitcoin.VerificationKey; import com.shuffle.protocol.InvalidImplementationError; import java.io.Serializable; import java.util.Iterator; import java.util....
package com.mychess.mychess; import android.os.AsyncTask; import java.io.IOException; import java.net.Socket; class SocketServidor { private static Socket socket; public void conectar(){ Conectar conectar = new Conectar(); conectar.execute(); } public static Socket getSocket() { ...
package com.samourai.wallet.api; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.net.Uri; import android.os.Handler; import android.os.Looper; import android.util.Log; import com.samourai.wallet.JSONRPC.JSONRPC; import c...
package com.intellij.xml; import com.intellij.codeInsight.daemon.impl.HighlightInfoType; import com.intellij.lang.ASTNode; import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; import com.intellij.psi.impl.source.xml.SchemaPrefix; import com.inte...
package me.devsaki.hentoid.util; import android.net.Uri; import android.text.TextUtils; import android.util.Pair; import android.webkit.CookieManager; import android.webkit.WebResourceResponse; import androidx.annotation.NonNull; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import java.io.IOException; impor...
package net.squanchy.signin; import android.content.Intent; import android.os.Bundle; import android.widget.Toast; import com.google.android.gms.auth.api.Auth; import com.google.android.gms.auth.api.signin.GoogleSignInAccount; import com.google.android.gms.auth.api.signin.GoogleSignInOptions; import com.google.android....
package net.squanchy.tweets; import android.app.Activity; import android.content.Context; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.util.AttributeSet; import android.widget.LinearLayout; import android.wid...
package org.literacyapp.model; import org.greenrobot.greendao.DaoException; import org.greenrobot.greendao.annotation.Convert; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Generated; import org.greenrobot.greendao.annotation.Id; import org.greenrobot.greendao.annotation.Ke...
package org.dspace.app.xmlui.aspect.artifactbrowser; import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer; import org.dspace.app.xmlui.wing.element.*; import org.dspace.app.xmlui.wing.element.List; import org.dspace.app.xmlui.wing.WingException; import org.dspace.app.xmlui.wing.Message; import org.dspace.app.xm...
package com.nativelibs4java.opencl; import java.util.Iterator; import java.util.Arrays; import com.nativelibs4java.util.Pair; import static com.nativelibs4java.opencl.CLException.error; import static com.nativelibs4java.opencl.CLException.errorString; import static com.nativelibs4java.opencl.CLException.failedForLackOf...
package org.eclipse.birt.report.engine.api.impl; import org.eclipse.birt.report.model.api.CellHandle; import org.eclipse.birt.report.model.api.DesignElementHandle; import org.eclipse.birt.report.model.api.ExtendedItemHandle; import org.eclipse.birt.report.model.api.GroupHandle; import org.eclipse.birt.report.model.api....
package org.eclipse.birt.report.engine.nLayout.area.impl; import java.awt.Color; import java.net.URL; import java.util.ArrayList; import java.util.Iterator; import java.util.logging.Level; import org.eclipse.birt.core.exception.BirtException; import org.eclipse.birt.report.engine.content.IContent; import org.eclipse.bi...
package gr.sperfect.djuqbox.webapp.shared.data; import java.util.ArrayList; import java.util.List; import com.googlecode.objectify.annotation.Entity; //einai OK @Entity public class Room extends BaseDataClass { private List<User> users; private User userCreator; private PlayList currentPlayList; private...
package dev.game.spacechaos.engine.entity.component.draw; import com.badlogic.gdx.math.Vector2; import dev.game.spacechaos.engine.entity.BaseComponent; import dev.game.spacechaos.engine.entity.Entity; import dev.game.spacechaos.engine.entity.IUpdateComponent; import dev.game.spacechaos.engine.entity.component.PositionC...
package uk.ac.ebi.spot.goci.curation.controller; import org.joda.time.format.DateTimeFormat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; impo...
package uk.ac.ebi.spot.goci.curation.builder; import uk.ac.ebi.spot.goci.curation.model.batchloader.BatchUploadError; public class BatchUploadErrorBuilder { private BatchUploadError batchUploadError = new BatchUploadError(); public BatchUploadErrorBuilder setRow(Integer row) { batchUploadError.setRow(ro...
package com.twelvemonkeys.imageio.plugins.tiff; import com.twelvemonkeys.lang.Validate; import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.channels.Channels; import java.nio.channels.ReadableByteChannel; final class...
package org.ow2.chameleon.fuchsia.philips.hue.importer; import com.philips.lighting.hue.sdk.utilities.PHUtilities; import com.philips.lighting.model.PHBridge; import com.philips.lighting.model.PHLight; import com.philips.lighting.model.PHLightState; import org.apache.felix.ipojo.annotations.*; import org.apache.felix.s...
package org.languagetool.rules.en; import org.languagetool.Language; import org.languagetool.languagemodel.LanguageModel; import org.languagetool.rules.ngrams.ConfusionProbabilityRule; import org.languagetool.rules.Example; import java.util.Arrays; import java.util.List; import java.util.ResourceBundle; /** * @since 2...
/* @java.file.header */ package org.gridgain.grid.kernal.processors.cache; import org.gridgain.grid.*; import org.gridgain.grid.cache.*; import org.gridgain.grid.lang.*; import org.gridgain.grid.util.typedef.*; import java.util.*; import java.util.concurrent.*; import static java.util.concurrent.TimeUnit.*; import stat...
package org.nuxeo.ecm.automation.test.service; import com.google.inject.Inject; import org.codehaus.jackson.JsonFactory; import org.codehaus.jackson.JsonGenerator; import org.codehaus.jackson.JsonNode; import org.codehaus.jackson.JsonProcessingException; import org.codehaus.jackson.map.ObjectMapper; import org.codehaus...
package org.gbif.occurrence.processor.interpreting.util; import org.gbif.api.vocabulary.Country; import org.gbif.api.vocabulary.OccurrenceIssue; import org.gbif.common.parsers.core.ParseResult; import org.gbif.common.parsers.geospatial.CoordinateParseUtils; import org.gbif.common.parsers.geospatial.LatLng; import org.g...
package org.osgi.test.cases.converter.junit; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import org....
package org.osgi.test.cases.deploymentadmin.tc1.tbc; import org.osgi.service.permissionadmin.PermissionInfo; public class PermissionWorker extends Thread { private DeploymentTestControl tbc; private PermissionInfo[] permissions; private String location; public PermissionWorker(DeploymentTestControl tbc)...
package org.devgateway.toolkit.persistence.mongo.spring; import java.io.Serializable; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Set; import javax.annotation.PostConstruct; import or...
package com.intellij.internal.statistic.service.fus.collectors; import com.intellij.internal.statistic.beans.UsageDescriptor; import com.intellij.internal.statistic.eventLog.FeatureUsageLogger; import com.intellij.internal.statistic.service.fus.beans.CollectorGroupDescriptor; import com.intellij.internal.statistic.serv...
package com.redhat.ceylon.eclipse.code.quickfix; import static com.redhat.ceylon.compiler.typechecker.model.Util.intersectionType; import static com.redhat.ceylon.compiler.typechecker.model.Util.unionType; import static com.redhat.ceylon.eclipse.code.outline.CeylonLabelProvider.ADD; import static com.redhat.ceylon.ecli...
package org.jetbrains.plugins.groovy.lang.psi.controlFlow.impl; import com.intellij.openapi.diagnostic.Logger; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiMethod; import com.intellij.psi.PsiType; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains...
package org.jkiss.dbeaver.ui.editors.entity.properties; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.viewers.Viewer; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.SashForm; import org.eclipse.swt.graphics.Point; import org.eclipse.swt...
package com.redhat.rhevm.api.powershell.resource; import java.util.HashMap; import java.util.List; import javax.ws.rs.core.Response; import javax.ws.rs.core.UriBuilder; import javax.ws.rs.core.UriInfo; import com.redhat.rhevm.api.model.LogicalUnit; import com.redhat.rhevm.api.model.Storage; import com.redhat.rhevm.api....
package org.sagebionetworks.repo.manager.schema; import static org.sagebionetworks.repo.model.ACCESS_TYPE.CHANGE_PERMISSIONS; import static org.sagebionetworks.repo.model.ACCESS_TYPE.CREATE; import static org.sagebionetworks.repo.model.ACCESS_TYPE.DELETE; import static org.sagebionetworks.repo.model.ACCESS_TYPE.READ; i...
package com.github.awvalenti.docedeabobora.interfaceusuario.swing.componente; import java.awt.BorderLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JSlider; import javax.swing.SwingConstants; import javax.swing.border.EmptyBorder; import javax.swing.event.ChangeEvent; import javax.swing...
package org.mtransit.parser.ca_strathcona_county_transit_bus; import org.apache.commons.lang3.StringUtils; import org.mtransit.parser.CleanUtils; import org.mtransit.parser.DefaultAgencyTools; import org.mtransit.parser.MTLog; import org.mtransit.parser.Pair; import org.mtransit.parser.SplitUtils; import org.mtransit.p...
package org.sagebionetworks.web.client.widget.table.v2.results.facets; import org.sagebionetworks.repo.model.table.FacetColumnRangeRequest; import org.sagebionetworks.repo.model.table.FacetColumnRequest; import org.sagebionetworks.repo.model.table.FacetColumnResultRange; import org.sagebionetworks.repo.model.table.Tabl...
package ca.corefacility.bioinformatics.irida.pipeline.upload.galaxy.unit; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.when; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.junit.Before; import org.junit.Test; i...
package com.cocoahero.android.gmaps.addons.mapbox; import android.database.sqlite.SQLiteDatabaseCorruptException; import android.database.sqlite.SQLiteException; import android.util.Log; import java.io.Closeable; import java.io.File; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import ...
package org.collectionspace.chain.csp.persistence.services.vocab; import static org.junit.Assert.*; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.io.InputStream; import org.apache.commons.io.IOUtils; import org.collectionspace.bconfigutils.bootstrap.BootstrapConfigController; impo...
package com.diamondq.common.vertx.processor.generators; import com.diamondq.common.lambda.future.FutureUtils; import com.diamondq.common.security.acl.api.SecurityContext; import com.diamondq.common.security.acl.api.SecurityContextManager; import com.diamondq.common.utils.context.Context; import com.diamondq.common.util...
package org.opendaylight.netvirt.fibmanager; import static org.opendaylight.genius.mdsalutil.NWUtil.isIpv4Address; import com.google.common.base.Optional; import com.google.common.base.Preconditions; import com.google.common.util.concurrent.CheckedFuture; import com.google.common.util.concurrent.FutureCallback; import ...
package ro.isdc.wro.extensions.http.handler.spi; import static org.junit.Assert.assertFalse; import static org.mockito.MockitoAnnotations.initMocks; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import ro.isdc.wro.config.Cont...
package org.xwiki.test.ui.appwithinminutes; import org.apache.commons.lang.RandomStringUtils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.xwiki.appwithinminutes.test.po.AppWithinMinutesHomePage; import org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage; import org.xwiki....
package org.xwiki.test.ui; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URLEncoder; import java.util.ArrayList; import java.uti...
package com.hadooparchitecturebook.clickstream; import JavaSessionize.avro.LogLine; import com.google.common.collect.Lists; import org.apache.avro.io.*; import org.apache.avro.specific.SpecificDatumReader; import org.apache.avro.specific.SpecificDatumWriter; import org.apache.avro.specific.SpecificRecord; import org.ap...
package com.akh.algorithms.dataStructure.array; import static org.junit.Assert.assertEquals; import org.junit.Test; import com.akh.algorithms.dataStructure.array.LongestIncreasingSequence.ALGO_TYPE; public class CheckIfArrayIsIncreasingSquence { public boolean almostIncreasingSequence(int[] arr){ int prev =...
package org.csstudio.swt.widgets.figures; import java.beans.BeanInfo; import java.beans.IntrospectionException; import org.csstudio.swt.widgets.introspection.DefaultWidgetIntrospector; import org.csstudio.swt.widgets.introspection.Introspectable; import org.eclipse.draw2d.Border; import org.eclipse.draw2d.Figure; impor...
package com.philliphsu.bottomsheetpickers.view.numberpad; import android.content.Context; import android.text.format.DateFormat; import android.util.AttributeSet; import com.philliphsu.bottomsheetpickers.view.DateTimeFormatUtils; import com.philliphsu.bottomsheetpickers.view.GridPickerView; import java.text.DateFormatS...
package gov.nih.nci.cabig.caaers.domain.repository; import gov.nih.nci.cabig.caaers.CaaersTestCase; import gov.nih.nci.cabig.caaers.domain.*; import gov.nih.nci.cabig.caaers.domain.attribution.AdverseEventAttribution; import gov.nih.nci.cabig.caaers.domain.expeditedfields.ExpeditedReportSection; import gov.nih.nci.cabi...
package org.openhealthtools.mdht.uml.cda.ui.wizards; import java.io.InputStream; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import org.eclipse.core.resources.IFile; import org....
package io.cattle.platform.docker.transform; import static io.cattle.platform.core.constants.DockerInstanceConstants.*; import static io.cattle.platform.core.constants.InstanceConstants.*; import io.cattle.platform.core.addon.BlkioDeviceOption; import io.cattle.platform.core.addon.LogConfig; import io.cattle.platform.c...
package edu.duke.cabig.c3pr.domain.repository; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.apache.log4j.Logger; import org.easymock.classextension.EasyMock; import org.springframework.context.MessageSource; import edu.duke.cabig.c3pr.AbstractTestCase; import edu.duke.cabig.c3pr....
package de.larmic.butterfaces.component.renderkit.html_basic.table; import com.sun.faces.renderkit.Attribute; import com.sun.faces.renderkit.RenderKitUtils; import de.larmic.butterfaces.component.html.table.HtmlColumn; import de.larmic.butterfaces.component.html.table.HtmlTable; import de.larmic.butterfaces.component.p...
package com.yahoo.vespa.hosted.controller.maintenance; import com.yahoo.vespa.curator.Lock; import com.yahoo.vespa.hosted.controller.Application; import com.yahoo.vespa.hosted.controller.Controller; import com.yahoo.vespa.hosted.controller.api.integration.MetricsService; import com.yahoo.vespa.hosted.controller.applica...
package com.yahoo.vespa.hosted.controller.maintenance; import com.yahoo.config.provision.HostName; import com.yahoo.vespa.hosted.controller.Application; import com.yahoo.vespa.hosted.controller.ApplicationController; import com.yahoo.vespa.hosted.controller.Controller; import com.yahoo.vespa.hosted.controller.api.integ...
package org.jboss.dna.connector.store.jpa.util; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import org.hibernate.ejb.Ejb3Configuration; import org.jboss.dna.common.util.CheckArg; import org.jbo...
package uk.ac.ebi.spot.goci.service; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import uk.ac.ebi.spot.goci.model.AssociationSummary; import uk.ac.ebi.spot.goci.model.RowValidationSummary; import uk.ac.ebi.spot.goci.model.ValidationSummary; import java.io.Buff...
package za.org.grassroot.webapp.controller.rest.campaign; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.util.StringUtils; impor...
package org.innovateuk.ifs.testdata.builders; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.tuple.Pair; import org.innovateuk.ifs.application.domain.Application; import org.innovateuk.ifs.application.resource.Decision; import org.innovateuk.ifs.application.resource.FundingNotificationRes...
package org.geotools.data.spatialite; import java.io.File; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.Map; import org.apache.commons.dbcp.BasicDataSource; import org.geotools.jdbc.JDBCDataStore; import org.geotools.jdbc.JDBCDataStoreFactory; import org.geotool...
package org.motechproject.server.messagecampaign.dao; import org.ektorp.ComplexKey; import org.ektorp.CouchDbConnector; import org.ektorp.support.View; import org.motechproject.dao.MotechBaseRepository; import org.motechproject.server.messagecampaign.domain.campaign.CampaignEnrollment; import org.motechproject.server.m...
package com.yahoo.vespa.hosted.node.admin.maintenance.servicedump; import com.yahoo.text.Lowercase; import com.yahoo.vespa.hosted.node.admin.configserver.noderepository.NodeAttributes; import com.yahoo.vespa.hosted.node.admin.configserver.noderepository.NodeRepository; import com.yahoo.vespa.hosted.node.admin.configser...
package org.opencb.opencga.catalog.auth.authentication; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.gson.JsonElement; import com.microsoft.aad.adal4j.AuthenticationContext; import com.microsoft.aad.adal4j.AuthenticationResult; impor...
package org.metaborg.spoofax.core.build.paths; import static org.metaborg.spoofax.core.SpoofaxConstants.*; import java.util.Collection; import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.FileSystemException; import org.metaborg.core.MetaborgRuntimeException; import org.metaborg.core.build.paths.I...
package org.tigris.subversion.subclipse.ui.actions; import java.io.File; import org.eclipse.compare.CompareUI; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.action.IAction; import org.eclipse.jface.dialogs...
package com.redhat.ceylon.eclipse.imp.parser; import static com.redhat.ceylon.eclipse.imp.core.CeylonReferenceResolver.getIdentifyingNode; import java.util.Collections; import java.util.Iterator; import org.antlr.runtime.CommonToken; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.Token; import org...
package org.opencps.accountmgt.service.impl; import java.io.InputStream; import java.util.ArrayList; import java.util.Date; import org.opencps.accountmgt.NoSuchBusinessException; import org.opencps.accountmgt.model.Business; import org.opencps.accountmgt.model.BusinessDomain; import org.opencps.accountmgt.model.impl.Bu...
package org.eclipse.vorto.remoterepository.internal.lucene; import java.io.IOException; import java.util.Collection; import javax.annotation.PostConstruct; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.document.StringField; import org.apache.lucene.index.I...
package test.gov.nih.nci.cacoresdk.domain.other.datatype; import gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType; import gov.nih.nci.iso21090.EntityNamePartQualifier; import gov.nih.nci.iso21090.NullFlavor; import gov.nih.nci.system.applicationservice.ApplicationException; import gov.nih.nci.system.query.hiberna...
package seava.ad.security.authentic; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.Userna...
package uk.ac.ox.zoo.seeg.abraid.mp.common.service.workflow.support; import com.vividsolutions.jts.geom.Point; import org.apache.log4j.Logger; import org.geotools.coverage.grid.GridCoverage2D; import org.geotools.coverage.grid.io.GridCoverage2DReader; import org.geotools.gce.geotiff.GeoTiffReader; import org.geotools.g...
//This code is developed as part of the Java CoG Kit project //This message may not be removed or altered. package org.globus.cog.abstraction.coaster.service.local; import java.net.URI; import org.globus.cog.abstraction.coaster.service.Registering; import org.globus.cog.karajan.workflow.service.ProtocolException; impor...
import java.util.Arrays; import java.util.stream.Collectors; final class Acronym { private final String acronym; Acronym(String phrase) { acronym = generateAcronym(phrase); } String get() { return acronym; } private String generateAcronym(String phrase) { return Arrays.st...
package info.hoang8f.widget; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.graphics.drawable.LayerDrawable; import android.graphics.drawab...
package org.waterforpeople.mapping.app.web; import java.io.StringWriter; import java.lang.reflect.InvocationTargetException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import ja...
package campyre.android; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import android.app.ListActivity; import android.app.ProgressDialog; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.view.KeyEvent; import android.view.Menu; impo...
package org.waterforpeople.mapping.app.web; import java.io.StringWriter; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.logging.Level; i...
package org.eclipse.sw360.rest.resourceserver.restdocs; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Before; import org.junit.Rule; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import ...
package org.opensim.view.motions; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.util.ArrayList; import java.util.BitSet; import java.util.Hashtable; import java.util.Observable; import java.util.Observer; import java.util.Vector; import javax.swing.JBut...
package com.thinkaurelius.titan.diskstorage.hazelcast; import com.hazelcast.core.Hazelcast; import com.hazelcast.core.HazelcastInstance; import com.hazelcast.transaction.TransactionContext; import com.hazelcast.transaction.TransactionOptions; import com.thinkaurelius.titan.diskstorage.StorageException; import com.think...
package eu.europa.esig.dss.EN319102.bbb.xcv.checks; import eu.europa.esig.dss.EN319102.bbb.ChainItem; import eu.europa.esig.dss.EN319102.bbb.XmlInfoBuilder; import eu.europa.esig.dss.jaxb.detailedreport.XmlXCV; import eu.europa.esig.dss.validation.CertificateWrapper; import eu.europa.esig.dss.validation.RevocationWrapp...
package com.biomatters.plugins.barcoding.validator.validation.trimming; import com.biomatters.geneious.publicapi.documents.AnnotatedPluginDocument; import com.biomatters.geneious.publicapi.documents.PluginDocument; import com.biomatters.geneious.publicapi.documents.sequence.NucleotideSequenceDocument; import com.biomat...
package com.otus.alexeenko.l11.advance; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; public class Bubble { private final int[] array; private final ExecutorService executor; private CountDownLatch tasks; private int length; private int currentPosition; ...
package com.otus.alexeenko.l11.advance; import java.util.concurrent.*; public class Bubble { private final int[] array; private ExecutorService executor; private CountDownLatch tasks; private int length; private int currentPosition; private Bubble next; public Bubble(int[] array) { t...
package org.voovan.network.aio; import org.voovan.network.IoSession; import org.voovan.network.MessageSplitter; import org.voovan.network.exception.RestartException; import org.voovan.tools.TEnv; import org.voovan.tools.log.Logger; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffe...
package io.spine.server; import com.google.protobuf.Message; import io.spine.annotation.Internal; import io.spine.core.BoundedContextName; import io.spine.core.BoundedContextNames; import io.spine.logging.Logging; import io.spine.option.EntityOption.Visibility; import io.spine.server.aggregate.ImportBus; import io.spin...
package org.mg.server; import static org.jboss.netty.channel.Channels.pipeline; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.NetworkInterface; import java.net.Socket; import java.net.SocketException; impo...
package com.mercadopago; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.AppBarLayout; import android.support.design.widget.CollapsingToolbarLayout; import android.suppor...
package com.cloud.api.response; import java.util.Date; import com.cloud.serializer.Param; import com.cloud.vm.State; import com.google.gson.annotations.SerializedName; public class DomainRouterResponse extends BaseResponse { @SerializedName("id") @Param(description="the id of the router") private Long id; @...
package io.spine.server.entity; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.Iterators; import com.google.errorprone.annotations.OverridingMethodsMustInvokeSuper; import com.google.protobuf.Message; import io.spine.annotation.Internal; import io.spine.annotation.SPI; import i...
package com.oracle.poco.bbhelper; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframewo...
package com.marshalchen.common.commonUtils.urlUtils; import android.accounts.NetworkErrorException; import android.content.Context; import com.marshalchen.common.commonUtils.logUtils.Logs; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSocketFactory; import javax.net.s...
package org.modmine.web; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.Htt...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.*; /** * * @author Robin Onsay */ public class RobotDrive { private static Timer time; public static final double WHEEL_DIAMETER = 0.5;//Feet private static double encoderR;//Single Channel private static double encoderL;//Single C...
package fredboat.command.util; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; import com.mashape.unirest.http.exceptions.UnirestException; import fredboat.Config; import fredboat.FredBoat; import fredboat.commandmeta.abs.Command; import fredboat.commandmeta.abs.CommandContext; im...
package spms.controls; import java.io.File; import java.io.IOException; import javax.servlet.ServletContext; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.we...