answer stringlengths 17 10.2M |
|---|
package ro.isdc.wro.extensions.processor.js;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.logging.Level;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ro.isdc.wro.model.group.proces... |
package org.elasticsearch.xpack.eql.qa.mixed_node;
import org.apache.http.HttpHost;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.Response;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.cluster.metadata.IndexMetadata;
import org.elasticsearch.common.settings.Settings;
i... |
package fi.bitrite.android.ws.view;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;
import fi.bitrite.android.ws.model.Feedback;
import java.text.DateFormat;
import java... |
package io.swagger.codegen;
import io.airlift.airline.Cli;
import io.airlift.airline.Help;
import io.swagger.codegen.cmd.ConfigHelp;
import io.swagger.codegen.cmd.Generate;
import io.swagger.codegen.cmd.Langs;
import io.swagger.codegen.cmd.Meta;
public class SwaggerCodegen {
public static void main(String[] args) {... |
package org.voltcore.logging;
import com.google_voltpatches.common.base.Throwables;
import org.voltcore.utils.CoreUtils;
import java.io.StringWriter;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.concurrent.ExecutorService;
/**
* Class that implements the core functionality of... |
package org.voltdb.export;
import java.io.File;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.CopyOnWriteAr... |
package org.csstudio.channel.views;
import gov.bnl.channelfinder.api.ChannelUtil;
import java.lang.reflect.Constructor;
import java.util.Collection;
import java.util.List;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.swt.widget... |
package org.csstudio.trends.databrowser.model;
import java.io.InputStream;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.csstudio.platform.data.ITimestamp;
import org.csstudio.platform.data.TimestampFactory;
import org.csstudio.platform... |
package org.jboss.hal.testsuite.test.configuration.messaging.connections;
import org.apache.commons.lang.RandomStringUtils;
import org.jboss.arquillian.graphene.page.Page;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.hal.testsuite.category.Shared;
import org.jboss.hal.testsuite.creaper.ResourceVerifie... |
package org.biojava.nbio.structure.align.gui.jmol;
import org.biojava.nbio.structure.*;
import org.biojava.nbio.structure.align.gui.AlignmentGui;
import org.biojava.nbio.structure.align.gui.DisplayAFP;
import org.biojava.nbio.structure.align.gui.MenuCreator;
import org.biojava.nbio.structure.align.model.AFPChain;
impor... |
package gov.nih.nci.cananolab.util;
import org.hibernate.criterion.MatchMode;
/**
* For use in searching objects by the given text through Hibernate MatchMode.
*
* @author pansu
*/
public class TextMatchMode {
private String originalText;
private String updatedText;
private MatchMode matchMode = MatchMo... |
package info.elexis.server.core.connector.elexis.services;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import javax.persistence.EntityManager;
import javax.persistence.LockMo... |
package gov.nih.nci.cabig.caaers.web.admin;
import gov.nih.nci.cabig.caaers.domain.LocalResearchStaff;
import gov.nih.nci.cabig.caaers.domain.RemoteResearchStaff;
import gov.nih.nci.cabig.caaers.domain.ResearchStaff;
import gov.nih.nci.cabig.caaers.domain.repository.ResearchStaffRepository;
import gov.nih.nci.cabig.caa... |
package gov.nih.nci.caadapter.common.csv.data.impl;
import gov.nih.nci.caadapter.common.Log;
import gov.nih.nci.caadapter.common.Message;
import gov.nih.nci.caadapter.common.MessageResources;
import gov.nih.nci.caadapter.common.csv.data.*;
import gov.nih.nci.caadapter.common.csv.meta.*;
import gov.nih.nci.caadapter.com... |
// Nenya library - tools for developing networked games
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should ... |
package com.apress.spring.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
public class ResourceSecuri... |
package net.sf.picard.util;
import net.sf.picard.PicardException;
import net.sf.picard.filter.*;
import net.sf.samtools.*;
import net.sf.samtools.util.CloseableIterator;
import java.util.*;
/**
* Iterator that traverses a SAM File, accumulating information on a per-locus basis.
* Optionally takes a target interval li... |
package io.cloudslang.lang.compiler.scorecompiler;
import io.cloudslang.lang.compiler.SlangTextualKeys;
import io.cloudslang.lang.compiler.modeller.model.Action;
import io.cloudslang.lang.compiler.modeller.model.Executable;
import io.cloudslang.lang.compiler.modeller.model.Flow;
import io.cloudslang.lang.compiler.model... |
package nginx.clojure.java;
import static nginx.clojure.MiniConstants.BODY;
import static nginx.clojure.MiniConstants.BODY_FETCHER;
import static nginx.clojure.MiniConstants.CHARACTER_ENCODING;
import static nginx.clojure.MiniConstants.CHARACTER_ENCODING_FETCHER;
import static nginx.clojure.MiniConstants.CONTENT_TYPE;
... |
package org.phenotips.data.internal.controller;
import org.phenotips.Constants;
import org.phenotips.data.IndexedPatientData;
import org.phenotips.data.Patient;
import org.phenotips.data.PatientData;
import org.phenotips.data.PatientDataController;
import org.xwiki.component.annotation.Component;
import org.xwiki.model... |
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
//This library is distributed in the hope that it will be useful,
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//You should have received a copy of the GNU Lesser General Publi... |
package org.apache.commons.lang;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class StringUtils {
// Performance testing notes (JDK 1.4, Jul03, scolebourne)
// Whitespace:
// Character.isWhitespace() is faster than WHITESPACE.indexOf()
// where WHITESPACE is a str... |
package model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class Kgram {
/**All of the k-grams and their mappings to words that match it*/
private HashMap <String, List<String>> k_gram;
public Kgram() {
k_gram = new HashMap<String, List<String>> ();
}
... |
package org.mustbe.consulo.csharp.lang.psi.impl.source.resolve.sorter;
import java.util.Comparator;
import org.jetbrains.annotations.NotNull;
import org.mustbe.consulo.csharp.lang.psi.CSharpReferenceExpression;
import org.mustbe.consulo.csharp.lang.psi.impl.source.CSharpReferenceExpressionImplUtil;
import org.mustbe.co... |
package com.bazaarvoice.ostrich.dropwizard.healthcheck;
import com.bazaarvoice.ostrich.HealthCheckResult;
import com.bazaarvoice.ostrich.HealthCheckResults;
import com.bazaarvoice.ostrich.ServicePool;
import com.bazaarvoice.ostrich.pool.ServicePoolProxies;
import com.google.common.base.Strings;
import com.yammer.metric... |
package graph;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import org.apache.batik.dom.*;
import or... |
package org.apache.lucene.store;
import java.io.IOException;
import java.io.File;
import java.io.RandomAccessFile;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Hashtable;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.apache.lucene.util... |
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 reb2sac;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.prefs.Preferences;
import javax.swing.*;
import parser.*;
import lhpn2sbml.gui.LHPNEditor;
import lhpn2sbml.parser.Abstraction;
import lhpn2sbml.parser.LhpnFile;
import lhpn2sbml.parser.Translator;
import... |
package jsettlers.mapcreator.mapview;
import jsettlers.common.Color;
import jsettlers.common.CommonConstants;
import jsettlers.common.landscape.ELandscapeType;
import jsettlers.common.map.IGraphicsBackgroundListener;
import jsettlers.common.map.IGraphicsGrid;
import jsettlers.common.mapobject.IMapObject;
import jsettle... |
package eu.nimble.core.infrastructure.identity.controller.ubl;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import eu.nimble.core.infrastructure.identity.controller.IdentityUtils;
import eu.nimble.core.infrastructure.identity.repository.PartyRepository;
imp... |
package org.innovateuk.ifs.invite.repository;
import org.innovateuk.ifs.category.domain.InnovationArea;
import org.innovateuk.ifs.invite.domain.CompetitionParticipant;
import org.innovateuk.ifs.invite.domain.CompetitionParticipantRole;
import org.innovateuk.ifs.invite.domain.ParticipantStatus;
import org.springframewor... |
package com.hp.octane.plugins.jenkins.tests.detection;
import com.hp.octane.plugins.jenkins.ExtensionUtil;
import com.hp.octane.plugins.jenkins.tests.CopyResourceSCM;
import com.hp.octane.plugins.jenkins.tests.TestUtils;
import com.hp.octane.plugins.jenkins.tests.junit.JUnitExtension;
import hudson.model.AbstractBuild;... |
package org.eclipse.jetty.websocket.servlet;
import java.io.IOException;
import java.util.Iterator;
import java.util.ServiceLoader;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclips... |
package com.parrot.arsdk.libsal;
/**
* Interface for all C data that may pass through different libs of AR.SDK<br>
* <br>
* AR.SDK Is mainly implemented in C, and thus libs often use C structures to hold data.<br>
* This is a wrapper interface onto these kind of data, so java can pass them around libs without copy ... |
package it.restart.com.atlassian.jira.plugins.dvcs.test;
import com.atlassian.jira.pageobjects.JiraTestedProduct;
import com.atlassian.jira.plugins.dvcs.pageobjects.JiraLoginPageController;
import com.atlassian.jira.plugins.dvcs.pageobjects.common.MagicVisitor;
import com.atlassian.jira.plugins.dvcs.pageobjects.common.... |
package org.eclipse.persistence.internal.jpa.metadata;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.eclipse.persistence.annotations.ExistenceType;
import org.e... |
package com.matthewtamlin.spyglass.library.default_annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
public @in... |
package org.safehaus.kiskis.mgmt.api.monitor;
public enum Metric {
CPU_USER("%"),
CPU_SYSTEM("%"),
CPU_IDLE("%"),
CPU_WIO("%"),
MEM_FREE("KB"),
MEM_CACHED("KB"),
MEM_BUFFERS("KB"),
SWAP_FREE("KB"),
PKTS_IN("packets/sec"),
PKTS_OUT("packets/sec"),
BYTES_IN("bytes/sec"),
BY... |
package io.github.zutherb.appstash.shop.service.order.model;
import io.github.zutherb.appstash.shop.service.user.model.UserInfo;
import io.github.zutherb.appstash.shop.service.user.model.UserInfo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import ... |
package org.motechproject.ivr.kookoo.repository;
import org.ektorp.CouchDbConnector;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.motechproject.ivr.kookoo.domain.KookooCallDetailRecord;
import org.motechproject.server.service.ivr.CallDetailRecord;
import org.springframework.beans.factory.annotatio... |
package name.abuchen.portfolio.ui.views.dashboard;
import java.text.MessageFormat;
import java.time.LocalDate;
import java.util.List;
import java.util.function.Supplier;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.jface.resource.FontDescriptor;
... |
package net.trajano.openidconnect.jaspic.internal;
import static net.trajano.openidconnect.jaspic.internal.Utils.isNullOrEmpty;
import java.io.IOException;
import java.net.URI;
import java.security.GeneralSecurityException;
import java.util.Map;
import javax.crypto.SecretKey;
import javax.json.JsonObject;
import javax.... |
package org.opennms.web.svclayer.catstatus.support;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import org.opennms.netmgt.config.categories.Category;
import org.opennms.netmgt.config.viewsdisplay.Section;
import org.opennms.netmgt.config.viewsdisplay.View;
import org.opennms.netm... |
package org.csstudio.display.builder.model.widgets;
import static org.csstudio.display.builder.model.properties.CommonWidgetProperties.behaviorPVName;
import static org.csstudio.display.builder.model.properties.CommonWidgetProperties.displayText;
import static org.csstudio.display.builder.model.properties.CommonWidgetP... |
package org.javarosa.formmanager.view.chatterbox.widget;
import org.javarosa.core.model.QuestionDef;
import de.enough.polish.ui.ChoiceGroup;
import de.enough.polish.ui.Container;
import de.enough.polish.ui.Item;
public abstract class SelectEntryWidget extends ExpandedWidget {
private int style;
protected Questi... |
package ua.com.fielden.platform.sample.domain;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.cond;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.expr;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.fetch;
import static ua.com.fielden.... |
package org.eclipse.xtext.resource;
import static com.google.common.collect.Lists.*;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.resource.impl.DefaultResourceDescription;
import org.eclipse.xtext.resource.impl.DefaultResourceDescriptionManager;
import org.eclipse.xtext.resource.impl.EObject... |
package org.yakindu.sct.generator.core;
import java.io.File;
import org.yakindu.sct.generator.core.impl.AbstractSExecModelGenerator;
import org.yakindu.sct.model.sgen.GeneratorEntry;
/**
* Base class for generators that are executed inside the workspace
*
* @author holger willebrandt - Initial contribution and API
... |
package com.opengamma.engine.view.calcnode;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.... |
package org.ncomet.fibonaccispringaop.resource;
import org.ncomet.fibonaccispringaop.service.FibonacciService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.util.StopWatch;
import org.springframework.web.bind.annotation.GetMappi... |
package uk.ac.ebi.quickgo.client.service.loader.presets.ff;
import uk.ac.ebi.quickgo.client.service.loader.presets.RestValuesRetriever;
import java.util.*;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.batch.item.validator.ValidationException;
import static uk.ac.ebi.quickgo.client.ser... |
package uk.ac.ebi.quickgo.client.service.loader.presets.ff;
/**
* Factory for creating {@link RawNamedPresetColumns} instances based on a specified {@link Source}.
* The supplied {@link Source} indicates the source which is being read.
*
* Created 13/09/16
* @author Edd
*/
public class SourceColumnsFactory {
... |
package bdv.export;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.CountDownLatch;
import mpicbg.spim.data.XmlHelpers;
import mpicbg.spim.data.generic.sequence... |
package bg.car_wash;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CarWashApplication {
public static void main(String[] args) {
SpringApplication.run(CarWashApplication.class, args);
}
} |
package br.eti.rslemos.bitsmagic;
import java.util.Arrays;
/**
* This class consists exclusively of static methods that read or write bits
* over arrays of integral primitive type.
*
* <p>The number of bits available per array element (element width) varies
* according to the storage class used:
* </p>
* <ul>
*... |
package fi.nls.oskari.statistics.eurostat;
import fi.nls.oskari.cache.JedisManager;
import fi.nls.oskari.control.statistics.plugins.StatisticalIndicatorSelector;
import fi.nls.oskari.control.statistics.plugins.StatisticalIndicatorSelectors;
import fi.nls.oskari.control.statistics.plugins.db.DatasourceLayer;
import fi.n... |
package bschecker.bluesheets;
import java.util.ArrayList;
import bschecker.util.ErrorList;
import bschecker.util.LogHelper;
import bschecker.util.PerformanceMonitor;
import bschecker.util.Tools;
import bschecker.util.UtilityMethods;
import opennlp.tools.parser.Parse;
/**
* Defines abstract class for types of grammatic... |
package codemining.util;
import java.util.Set;
import java.util.SortedSet;
import com.google.common.collect.Multiset;
import com.google.common.collect.Multiset.Entry;
import com.google.common.collect.Multisets;
import com.google.common.collect.Sets;
/**
* A utility class containing collection-related utilities.
*
* ... |
package com.airbnb.chancery;
import com.airbnb.chancery.model.CallbackPayload;
import com.amazonaws.services.s3.AmazonS3Client;
import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;
import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;
import javax.validation.constrain... |
package com.github.digital_wonderland.sling_metrics.service;
import com.codahale.metrics.*;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.comp... |
package com.amadornes.jtraits;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.Opcodes;
import org... |
package gov.nih.nci.cananolab.service.community.impl;
import gov.nih.nci.cananolab.dto.common.AccessibilityBean;
import gov.nih.nci.cananolab.dto.common.CollaborationGroupBean;
import gov.nih.nci.cananolab.dto.common.UserBean;
import gov.nih.nci.cananolab.exception.CommunityException;
import gov.nih.nci.cananolab.excep... |
package com.bio4j.exporter;
import com.tinkerpop.gremlin.process.Traversal;
import com.tinkerpop.gremlin.process.graph.step.map.FlatMapStep;
import com.tinkerpop.gremlin.process.graph.step.map.MapStep;
import com.tinkerpop.gremlin.process.graph.step.map.StartStep;
import com.tinkerpop.gremlin.process.util.DefaultTraver... |
package org.springframework.social.provider.jdbc;
import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.dao.DuplicateKeyException;
impor... |
package com.doctusoft.java;
import java.util.function.Predicate;
import java.util.function.Supplier;
public final class LambdAssert {
private LambdAssert() {
throw Failsafe.staticClassInstantiated();
}
public static <T> T assertComputes(Supplier<T> actual) {
return assertComputes(actual, () ... |
package com.emc.rest.smart;
import com.sun.jersey.api.client.ClientHandlerException;
import com.sun.jersey.api.client.ClientRequest;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.filter.ClientFilter;
import org.apache.http.HttpHost;
import org.apache.http.client.utils.URIUtils;
impor... |
package com.fishercoder.solutions;
import java.util.HashMap;
import java.util.Map;
/**
* 138. Copy List with Random Pointer
*
* A linked list is given such that each node contains an additional random
* pointer which could point to any node in the list or null.
* Return a deep copy of the list.
*/
public class _1... |
package com.fishercoder.solutions;
import java.util.HashMap;
import java.util.Map;
/**138. Copy List with Random Pointer
* A linked list is given such that each node contains an additional random
* pointer which could point to any node in the list or null.
* Return a deep copy of the list.*/
public class _138 {
... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class _199 {
public List<Integer> rightSideView(TreeNode root) {
List<Integer> result = new ArrayList<>();
... |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.Set;
public class _207 {
public static class Solution1 {
/**Kahn's algorithm for topological sortin... |
package com.fishercoder.solutions;
public class _375 {
public static class Solution1 {
public int getMoneyAmount(int n) {
int[][] table = new int[n + 1][n + 1];
return dp(table, 1, n);
}
private int dp(int[][] table, int s, int e) {
if (s >= e) {
... |
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.List;
/**
* 398. Random Pick Index
*
* Given an array of integers with possible duplicates,
* randomly output the index of a given target number. You can assume that the given target number must exist in the array.
Note:
The array siz... |
package com.fishercoder.solutions;
public class _492 {
public static class Solution1 {
public int[] constructRectangle(int area) {
int i = 0;
int j = area;
int[] result = new int[2];
while (i <= j) {
long product = i * j;
if (pr... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.ArrayList;
import java.util.List;
public class _938 {
public static class Solution1 {
public int rangeSumBST(TreeNode root, int low, int high) {
if (root == null) {
return 0;
... |
package com.timepath.launcher;
import com.timepath.classloader.CompositeClassLoader;
import java.util.*;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.prefs.BackingStoreException;
import java.util.pre... |
package com.tinkerrocks.storage;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.tinkerrocks.structure.*;
import org.apache.tinkerpop.gremlin.structure.Direction;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Graph;
import... |
package com.trsst.server;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import javax.xml.namespace.... |
package com.wizzardo.jrt;
import com.wizzardo.http.filter.TokenFilter;
import com.wizzardo.http.framework.Controller;
import com.wizzardo.http.framework.ControllerUrlMapping;
import com.wizzardo.http.framework.Holders;
import com.wizzardo.http.framework.di.DependencyFactory;
import com.wizzardo.http.framework.template.... |
package com.xiaoleilu.hutool.db;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ParameterMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.Statement;
import java.s... |
package cz.pfreiberg.knparser;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import org.apache.log4j.Logger;
import cz.pfreiberg.knparser.parser.ParserException;
public class KnParser {
private s... |
package de.berlin.hu.chemspot;
import de.berlin.hu.chemspot.ChemSpotConfiguration.Component;
import de.berlin.hu.types.PubmedDocument;
import de.berlin.hu.uima.ae.feature.FeatureTokenGenerator;
import de.berlin.hu.uima.ae.feature.FeatureTokenGenerator.Feature_Phase;
import de.berlin.hu.util.Constants;
import org.apache... |
package dk.kleistsvendsen;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.google.inject.Inject;
import roboguice.activity.RoboActivity;
public class HomeActivity extends RoboActivity {
@Inject
private IGameTimer gameTimer;
private... |
package elegit;
import de.jensd.fx.glyphs.GlyphsDude;
import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import javafx.stage.Mod... |
package eu.euporias.api;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ApiApplication {
public static void main(String[] args) {
SpringApplication.run(ApiApplication.class, args);
}
} |
package greed.model;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Greed is good! Cheers!
*/
public class ProblemDescription {
private String intro;
private String[] notes;
private String[] constraints;
private String mod;
private String extractMod(String intro)
{
... |
package ibm.coghack;
/**
* Responsible for determining characteristics about a sentence from its text content.
*/
public class SentenceClassifier {
/**
* String prefixes used to determine if a sentence is a question.
*/
private static String[] questionPrefixes = {"tell me about", "what", "how", "do ... |
package info.xonix;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
imp... |
package io.github.classgraph;
import java.io.IOException;
import java.lang.reflect.Modifier;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import io... |
package io.github.mzmine.gui;
import java.io.File;
import java.net.URL;
import java.util.List;
import java.util.Optional;
import java.util.logging.Logger;
import javax.annotation.Nonnull;
import javafx.application.HostServices;
import javafx.event.EventHandler;
import javafx.scene.input.DragEvent;
import javafx.scene.i... |
package mensajeria;
import java.io.Serializable;
public class PaquetePersonajeDom extends Paquete implements Serializable, Cloneable {
private int id;
private int idMapa;
private String casta;
private String nombre;
private String raza;
private int saludTope;
private int energiaTope;
pri... |
package mho.qbar.objects;
import mho.wheels.ordering.comparators.LexComparator;
import org.jetbrains.annotations.NotNull;
import java.util.Comparator;
import java.util.Optional;
/**
* An ordering for {@link Monomial}s.
*/
public enum MonomialOrder implements Comparator<Monomial> {
/**
* Lexicographic order
... |
package mkremins.fanciful;
import java.io.IOException;
import java.io.StringWriter;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
imp... |
package myessentials.entities;
/**
* Helper class for storing position of a chunk
*/
public class ChunkPos {
private final int dim;
private final int x;
private final int z;
public ChunkPos(int dim, int x, int z) {
this.dim = dim;
this.x = x;
this.z = z;
}
public int ge... |
package net.amigocraft.mglib.api;
import static net.amigocraft.mglib.MGUtil.*;
import static net.amigocraft.mglib.Main.locale;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.R... |
package net.jodah.failsafe;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import net.jodah.failsafe.function.BiPredicate;
import net.jodah.failsafe.function.Predicate;
import net.jodah.failsafe.internal.util.Assert;
import net.jodah.failsafe.util.Durat... |
package net.sf.jmimemagic;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.oro.text.perl.Perl5Util;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
... |
package net.simpvp.Events;
import java.util.Collection;
import java.util.UUID;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import or... |
package org.basex.query.expr;
import static org.basex.query.QueryText.*;
import org.basex.query.*;
import org.basex.query.iter.*;
import org.basex.query.value.*;
import org.basex.query.value.node.*;
import org.basex.util.*;
public final class Extension extends Single {
/** Pragmas of the ExtensionExpression. */
pri... |
package org.dynmap.bukkit;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.