answer
stringlengths
17
10.2M
package com.b2international.snowowl.snomed.api.impl.validation.service; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import org.ihtsdo.drools.domain.Concept; import org.ihtsdo.drools.domain.Relationship; import org.ihtsdo.droo...
package org.eclipse.birt.report.item.crosstab.internal.ui.editors.action; import java.util.List; import org.eclipse.birt.report.designer.internal.ui.dialogs.DataColumnBindingDialog; import org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractViewAction; import org.eclipse.birt.report.designer.ui.newelemen...
package org.deviceconnect.android.deviceplugin.host.recorder.camera; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.ColorMatrix; import android.graphics.ColorMatrixColorFilter; import android.graphics.ImageFormat; import android.graphics.Matrix; im...
package org.opendaylight.controller.cluster.datastore.modification; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.MoreExecutors; import java.util.Optional; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.opendaylight.co...
package be.cegeka.batchers.taxcalculator.presentation.rest.controller; import be.cegeka.batchers.taxcalculator.application.domain.*; import be.cegeka.batchers.taxcalculator.presentation.rest.model.EmployeeTaxTo; import be.cegeka.batchers.taxcalculator.to.EmployeeTo; import org.joda.money.CurrencyUnit; import org.joda.m...
package edu.pitt.apollo.client.wrapper; import java.net.MalformedURLException; import java.net.URL; import javax.xml.namespace.QName; import edu.pitt.apollo.client.wrapper.SeirModelTestHelper; import edu.pitt.apollo.types.EpidemicModelInput; import edu.pitt.apollo.types.SimulationRunResult; import edu.pitt.rods.SeirEpi...
package yuku.alkitab.base.ac; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Point; import android.os.Bundle; import android.util.Log; import android.view.ContextMenu; import android.view.ContextMenu.C...
//$HeadURL$ package org.deegree.feature.persistence.sql.mapper; import java.util.Map; import javax.xml.namespace.QName; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Keeps track of {@link MappingContext}s generated during a pass of the {@link AppSchemaMapper}. * * @author <a href="mailto:schneider@l...
package org.eclipse.smarthome.binding.hue.internal.discovery; import static org.eclipse.smarthome.binding.hue.HueBindingConstants.*; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler; impo...
package org.opendaylight.controller.cluster.databroker; import static org.junit.Assert.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doThrow; import com.google.common.util.concurrent.FluentFuture; import java.util.Collection; import java.util.Collections; import java.util...
package game; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import structures.*; /** * Object that handles the writing of data for the gamelog. Includes static * methods for other writing purposes, such as saving of games and settings. * @author Sean Lewis */ public class Da...
package gameWorld; import gameRender.IsoCanvas; import java.awt.Point; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Stack; import tile.TileMultiton.type; import com.sun.jmx.remote.internal.ArrayQueue; import com.sun.xml.internal.bind.v2.runtime.Coordinator; import dataStorage.Data; import d...
package com.bitdubai.fermat_p2p_api.layer.p2p_communication.cloud_server.events; import com.bitdubai.fermat_p2p_api.layer.p2p_communication.CommunicationChannels; import com.bitdubai.fermat_api.layer.all_definition.event.PlatformEvent; import com.bitdubai.fermat_api.layer.pip_platform_service.event_manager.EventSource;...
package org.innovateuk.ifs.project.projectdetails.controller; import org.innovateuk.ifs.project.BaseProjectSetupControllerSecurityTest; import org.innovateuk.ifs.project.resource.ProjectCompositeId; import org.innovateuk.ifs.project.security.ProjectLookupStrategy; import org.innovateuk.ifs.user.resource.UserResource; i...
package com.akjava.gwt.poseeditor.client; import java.io.IOException; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import com.akjava.bvh.client.BVH; import com.akj...
package ru.tsibrovskii.examples.Bot; import com.google.common.base.Joiner; import org.junit.Test; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.net.Socket; import static org.hamcrest.Cor...
package com.axelby.podax; import java.io.File; import java.util.Vector; import android.app.ListActivity; import android.os.Bundle; import android.os.Handler; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androi...
package com.artifex.mupdf; import android.app.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.graph...
package com.castlefrog.agl.domains.hex; import java.util.List; import java.util.ArrayList; import java.util.HashSet; import java.util.Stack; import com.castlefrog.agl.Simulator; import com.castlefrog.agl.AbstractSimulator; import com.castlefrog.agl.IllegalActionException; import com.castlefrog.agl.TurnType; public fina...
package com.ecyrd.jspwiki.auth.modules; import com.ecyrd.jspwiki.auth.*; import com.ecyrd.jspwiki.*; import java.util.*; import java.security.Principal; import org.apache.log4j.Category; import com.ecyrd.jspwiki.filters.BasicPageFilter; import com.ecyrd.jspwiki.providers.ProviderException; /** * This default UserDatab...
package com.master.thesis; import com.sun.org.apache.xpath.internal.SourceTree; import weka.clusterers.ClusterEvaluation; import weka.clusterers.DBSCAN; import weka.core.Instance; import weka.core.Instances; import weka.core.converters.ConverterUtils.DataSource; import weka.filters.Filter; import weka.filters.unsupervi...
#parse("main/Header.vm") package com.nativelibs4java.opencl; import com.nativelibs4java.util.EnumValue; import com.nativelibs4java.util.EnumValues; import com.nativelibs4java.opencl.library.OpenCLLibrary; import com.nativelibs4java.util.IOUtils; import com.nativelibs4java.util.NIOUtils; import static com.nativelibs4jav...
package com.vaadin.terminal.gwt.client; import java.util.Iterator; import java.util.List; import java.util.Set; import com.google.gwt.core.client.JsArray; import com.google.gwt.core.client.JsArrayString; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Scheduler.ScheduledCommand; import co...
package com.vaadin.terminal.gwt.client.ui; import java.util.Iterator; import java.util.Set; import com.google.gwt.core.client.Scheduler; import com.google.gwt.dom.client.DivElement; import com.google.gwt.dom.client.Style; import com.google.gwt.dom.client.TableCellElement; import com.google.gwt.dom.client.TableElement; ...
package edu.wpi.first.wpilibj.templates; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import edu.wpi.first.wpilibj.Joystick; /** * * @author Ben */ public class FancyJoystick extends Joystick { /** Primary Driver Controller Port Number. */ private static...
package com.valkryst.VTerminal.builder; import com.valkryst.VTerminal.Panel; import com.valkryst.VTerminal.component.Screen; import com.valkryst.VTerminal.font.Font; import lombok.Getter; import javax.swing.*; public class PanelBuilder { /** The width of the panel, in characters. */ @Getter private int widthInC...
package net.patowen.hyperbolicspace; import javax.media.opengl.GL3; import javax.media.opengl.GLCapabilities; import javax.media.opengl.GLException; import javax.media.opengl.GLProfile; import javax.swing.JOptionPane; import com.jogamp.newt.opengl.GLWindow; import com.jogamp.opengl.util.FPSAnimator; import com.jogamp.o...
package fr.openwide.core.jpa.more.business.file.model; import java.awt.AlphaComposite; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.io.File; import java.io.InputStream; import java.util.HashMap; import java.util.Iterat...
/* * generated by Xtext */ package org.muml.psm.allocation.language.xtext.validation; import org.eclipse.ocl.pivot.Type; import org.eclipse.ocl.pivot.internal.utilities.EnvironmentFactoryInternal; import org.eclipse.ocl.pivot.utilities.PivotUtil; import org.eclipse.ocl.xtext.essentialoclcs.ContextCS; import org.eclipse...
package org.xwiki.component.annotation; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.lang.annotation.Annotation; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.net.URL; import java.util.ArrayL...
package org.apereo.cas.authentication.trigger; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.MultifactorAuthenticationProvider; import org.apereo.cas.authentication.MultifactorAuthenticationProviderResolver; import org.apereo.cas.authentication.MultifactorAuthenticationTrigge...
package org.innovateuk.ifs.management.controller; import org.innovateuk.ifs.BaseControllerMockMVCTest; import org.innovateuk.ifs.application.resource.ApplicationSummaryPageResource; import org.innovateuk.ifs.application.resource.ApplicationSummaryResource; import org.innovateuk.ifs.competition.resource.CompetitionResou...
package wikt.stat; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import wikokit.base.wikipedia.language.LanguageType; import wikokit.base.wikipedia.sql.Connect; import wikokit.base.wi...
package crystal.client; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.util.HashSet; import javax.swing.BoxLayout; import javax.swing.ImageIco...
package de.dlichti.base64tool.ui; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JRadioButton; import de.dlichti.base64tool.Base64Coder; import de.dlichti.base64tool.Base64CoderMIME; import de.dlichti.base64tool.Base64Encoding; import de.dlichti.base64tool.Base64Exception; import de.dlichti.b...
//package com.nandaka.bakareaderclone; package com.erakk.lnreader; //import java.io.IOException; //import java.net.URL; import java.util.ArrayList; import android.annotation.SuppressLint; import android.app.ListActivity; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import androi...
package dk.itu.jglyph.features; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import dk.itu.jglyph.Edge; import dk.itu.jglyph.JGlyph; import dk.itu.jglyph.Node; public class FeatureExtractors { private static FeatureExtractors instance = null; private List<IFeatureExtractor> extr...
package dk.netarkivet.deploy2; import java.io.File; import java.io.IOException; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.Element; import org.dom4j.io.SAXReader; import dk.ne...
package dr.app.tracer.analysis; import dr.app.gui.components.RealNumberField; import dr.app.gui.components.WholeNumberField; import dr.app.gui.util.LongTask; import dr.evolution.coalescent.TwoEpochDemographic; import dr.evolution.util.Units; import dr.inference.trace.TraceDistribution; import dr.inference.trace.TraceLi...
package editor.gui.inventory; import java.awt.Dialog; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.text.DateFormat; i...
package edu.jhu.thrax.hadoop.jobs; import java.io.IOException; import java.util.HashSet; import java.util.Set; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; imp...
package edu.washington.escience.myria; import java.io.Serializable; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Arrays; import java.util.BitSet; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Set; import javax.annot...
package edu.wustl.xipHost.dicom; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.sql.Timestamp; import java.util.ArrayLi...
package com.aragaer.jtt; import java.util.HashMap; import java.util.Locale; import java.util.Map; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.preference.ListPref...
package com.dg.http; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringWriter; import java.net.Htt...
package com.logaritmos; import static java.lang.Math.abs; import static java.lang.Math.max; import static java.lang.Math.min; import java.io.Serializable; public class Rectangle implements Serializable { private static final long serialVersionUID = 5L; private int left; private int right; private int top; pri...
package com.nullprogram.gol; import java.awt.*; import java.util.*; /** * Abstract class for mplementing various types of cells. */ public abstract class Cell { protected Vector<Cell> adj = null; protected int curState, nextState; protected static Random rand = new Random(); public Cell() { ad...
package com.pty4j.windows; import com.pty4j.PtyException; import com.pty4j.WinSize; import com.pty4j.util.PtyUtil; import com.sun.jna.Library; import com.sun.jna.Native; import com.sun.jna.Structure; import com.sun.jna.platform.win32.WinBase; import com.sun.jna.platform.win32.WinNT; import com.sun.jna.ptr.IntByReferenc...
package com.ucasoft.orm; import android.annotation.TargetApi; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.os.Bui...
package org.voltdb.compiler; import java.io.BufferedReader; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.Date; import java.util.concurrent.atomic.AtomicLong; import org.hsqldb...
package galileo.test.net; import java.net.Socket; import java.nio.ByteBuffer; import galileo.net.MessageRouter; import galileo.net.NetworkDestination; import galileo.util.PerformanceTimer; public class BlockingScaleTestClient implements Runnable { private static boolean verbose = false; private PerformanceTimer...
package charts.builder.spreadsheet; import static charts.ChartType.LOADS; import static charts.ChartType.LOADS_DIN; import static charts.ChartType.LOADS_PSII; import static charts.ChartType.LOADS_TN; import static charts.ChartType.LOADS_TSS; import static com.google.common.collect.Lists.newLinkedList; import static jav...
package gov.nih.nci.calab.dto.common; import gov.nih.nci.calab.domain.DerivedDataFile; import gov.nih.nci.calab.domain.Keyword; import gov.nih.nci.calab.domain.LabFile; import gov.nih.nci.calab.service.util.StringUtils; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * This class represen...
package info.ata4.unity.asset.bundle; import info.ata4.io.DataInputReader; import info.ata4.io.DataOutputWriter; import info.ata4.io.buffer.ByteBufferUtils; import info.ata4.io.file.FileHandler; import info.ata4.log.LogUtils; import info.ata4.unity.asset.bundle.codec.AssetBundleCodec; import info.ata4.unity.asset.bundl...
package jamaica.faces.novdl; import static jamaica.faces.novdl.is_el.is_el; import javax.el.ELContext; import javax.el.ExpressionFactory; import javax.el.ValueExpression; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; public class set_value_expression { /** * Set a value exp...
package com.gotometrics.hbase.rowkey; import java.io.IOException; import org.apache.hadoop.hbase.io.ImmutableBytesWritable; /** Base class for translating objects to/from sort-order preserving byte * arrays. In contrast to other common object serialization methods, * <code>RowKey</code> * serializations use a byte a...
package com.sun.facelets; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; import java.io.Writer; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.ut...
// Getdown - application installer, patcher and launcher // provided that the following conditions are met: // with the distribution. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR...
package org.apache.velocity.texen; import java.io.BufferedInputStream; import java.io.File; import java.io.FileWriter; import java.io.FileInputStream; import java.io.InputStream; import java.io.StringWriter; import java.util.Enumeration; import java.util.Hashtable; import java.util.Iterator; import java.util.Properties...
package org.apache.velocity.util; /** * Simple object pool. Based on ThreadPool and few other classes * * The pool will ignore overflow and return null if empty. * * @author Gal Shachor * @author Costin * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a> * @version $Id: SimplePool.java,v 1.3 2...
package org.pantsbuild.tools.jar; import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.Closeable; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Collection; import ja...
package org.helioviewer.jhv.gui; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; import com.jidesoft.icons.IconsFactory; public class IconBank { // The enum has all the icons, you supply these enums to the getIcon method. public enum JHVIcon ...
package org.apache.jorphan.test; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Iterator; import java.util.Properties; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.textui.TestRunner; import org.apache.jorphan.logging....
package krasa.grepconsole.filter; import com.intellij.execution.filters.InputFilter; import com.intellij.execution.ui.ConsoleView; import com.intellij.execution.ui.ConsoleViewContentType; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.op...
package java.awt; import java.awt.event.InvocationEvent; import java.awt.event.KeyEvent; import java.util.Arrays; import java.util.Timer; import java.util.TimerTask; import org.videolan.Libbluray; public class BDRootWindow extends Frame { public BDRootWindow () { super(); setUndecorated(true); ...
package SW9.controllers; import SW9.abstractions.*; import SW9.code_analysis.CodeAnalysis; import SW9.code_analysis.Nearable; import SW9.model_canvas.arrow_heads.SimpleArrowHead; import SW9.presentations.CanvasPresentation; import SW9.presentations.DropDownMenu; import SW9.presentations.Link; import SW9.presentations.N...
package app.bvk.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javafx.scene.image.Image; import javafx.scene.image.ImageView; public class WrappedImageView extends ImageView { private static final Logger LOGGER = LoggerFactory.getLogger(WrappedImageView.class); public WrappedImageView(fi...
package br.com.caelum.brutal.infra; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class MD5 { /** * Encodes a string * * @param str * String to encode * @return Encoded String */ public static String crypt(String str) { ...
package br.uff.ic.utility.graph; import br.uff.ic.utility.GraphAttribute; import br.uff.ic.utility.Utils; import static br.uff.ic.utility.Utils.isItTime; import java.awt.BasicStroke; import java.awt.Paint; import java.awt.Stroke; import java.util.HashMap; import java.util.Map; /** * Abstract (Generic) vertex type for ...
package ch.pontius.nio.smb; public final class SMBPathUtil { /** * Private constructor; this class cannot be instantiated. */ private SMBPathUtil() {} /** * Checks if the provided path string points to a folder (i.e. ends with an /). * * @param path Path that should be checked. ...
package codechicken.lib; import codechicken.lib.render.CCRenderEventHandler; import codechicken.lib.render.block.CCExtendedBlockRendererDispatcher; import codechicken.lib.util.FuelUtils; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common...
package cofh.api.energy; import net.minecraftforge.common.util.ForgeDirection; /** * Implement this interface on TileEntities which should handle energy, generally storing it in one or more internal {@link IEnergyStorage} objects. * * A reference implementation is provided {@link TileEnergyHandler}. * * @author Ki...
package com.apm4all.tracy; import org.apache.camel.model.dataformat.JsonLibrary; import org.apache.camel.spring.SpringRouteBuilder; public class RouteBuilder extends SpringRouteBuilder { @Override public void configure() throws Exception { from("restlet:http://localhost:8050/tracy/segment?restletMethod=...
package com.codahale.metrics; import java.io.Serializable; import java.util.concurrent.atomic.AtomicLong; // CHECKSTYLE:OFF /** * One or more variables that together maintain an initially zero {@code long} * sum. When updates (method {@link #add}) are contended across threads, the set * of variables may grow dynamic...
package com.collective.celos; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.SortedSet; /** * TODO: timeout slots if trigger doesn't return true for too long * TODO: retry handling */ public class Scheduler { private final int slidingWindowHours; private fin...
package com.doctusoft.math; import com.doctusoft.annotation.Beta; import java.math.BigDecimal; import java.math.BigInteger; import static com.doctusoft.java.Failsafe.checkArgument; import static com.doctusoft.math.Interval.*; import static com.doctusoft.math.Interval.monotonicIncreasingValues; import static java.util.O...
package com.featheredtoast.javad; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.FileInputStream; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.StringReader; import java.util.Properties; import javax.sw...
package com.fishercoder.solutions; /** * 121. Best Time to Buy and Sell Stock * * Say you have an array for which the ith element is the price of a given stock on day i. * * If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), * design an algorithm to find ...
package com.fishercoder.solutions; import java.util.ArrayList; import java.util.List; import static com.fishercoder.solutions._189.Solution2.rotate_naive; /** * 189. Rotate Array * * Rotate an array of n elements to the right by k steps. * For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [...
package com.fishercoder.solutions; import com.fishercoder.common.classes.TreeNode; public class _222 { public static class Solution1 { public int countNodes(TreeNode root) { int leftH = getLeftHeight(root); int rightH = getRightHeight(root); if (leftH == rightH) { ...
package smarta.smarta; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import java.util.ArrayList; public class TripHistory extends AppCompatActivity { Recyc...
package com.fishercoder.solutions; public class _387 { public static class Solution1 { public static int firstUniqChar(String s) { int[] freq = new int[26]; for (int i = 0; i < s.length(); i++) { freq[s.charAt(i) - 'a']++; } for (int i = 0; i <...
package com.jaamsim.render; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp; import java.awt.image.BufferedImage; import java.io.IOException; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.nio.FloatBuffer; im...
package com.loadimpact.util; import com.loadimpact.eval.DelayUnit; import com.loadimpact.eval.LoadTestResult; import com.loadimpact.eval.Operator; import com.loadimpact.resource.testresult.StandardMetricResult; import java.util.Map; import java.util.Set; import java.util.TreeMap; import java.util.TreeSet; /** * Contai...
package com.matt.forgehax.mods; import com.matt.forgehax.asm.ForgeHaxHooks; import com.matt.forgehax.asm.events.PacketEvent; import com.matt.forgehax.asm.events.RenderBoatEvent; import com.matt.forgehax.asm.reflection.FastReflection; import com.matt.forgehax.events.RenderEvent; import com.matt.forgehax.util.command.Set...
package com.matt.forgehax.mods; import com.matt.forgehax.asm.ForgeHaxHooks; import com.matt.forgehax.asm.events.RenderBlockInLayerEvent; import com.matt.forgehax.asm.events.RenderBlockLayerEvent; import com.matt.forgehax.util.command.Setting; import com.matt.forgehax.util.mod.ToggleMod; import com.matt.forgehax.util.mo...
package com.ociweb.gl.api; import com.ociweb.gl.impl.BuilderImpl; import com.ociweb.gl.impl.schema.TrafficOrderSchema; import com.ociweb.pronghorn.network.schema.ClientHTTPRequestSchema; import com.ociweb.pronghorn.pipe.PipeConfigManager; import com.ociweb.pronghorn.stage.PronghornStage; import com.ociweb.pronghorn.sta...
package com.thegongoliers.math; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class MathExt { private MathExt() { } /** * isOdd : int -> boolean * <p> * Determines if a number is odd * * @param value * @return */ public s...
package com.tkb.delab.alg; import com.tkb.delab.model.Edge; import com.tkb.delab.model.Triangle; import gnu.trove.iterator.hash.TObjectHashIterator; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.set.hash.THashSet; import gnu.trove.set.hash.TIntHashSet; /** * A triangulator implementing the node iterati...
package org.commcare.android.view; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.Vector; import org.achartengine.ChartFactory; import org.achartengine.chart.PointStyle; import org.achartengine.model.XYMultipleSeriesDataset; import org.achartengine.model.XYSeries;...
package crpoon.nwHacks.service; import crpoon.nwHacks.database.StockDao; import crpoon.nwHacks.database.StockInfoDao; import crpoon.nwHacks.model.Stock; import crpoon.nwHacks.model.StockInfo; import java.util.Collections; import java.util.Date; import java.util.List; public abstract class Service { protected static...
package edu.jhu.gm.data; import java.util.Map; import org.apache.commons.collections.map.LRUMap; import org.apache.commons.collections.map.ReferenceMap; import edu.jhu.util.cache.GzipMap; /** * An immutable collection of instances for a graphical model. * * This implementation assumes that the given examplesFactory ...
package main.java.elegit; import de.jensd.fx.glyphs.GlyphsDude; import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon; import javafx.application.Platform; import javafx.geometry.Insets; import javafx.scene.Node; import javafx.scene.control.*; import javafx.scene.layout.GridPane; import javafx.scene.text.Text; import ja...
package imagej.ops.threshold; import imagej.ops.statistics.Mean; import net.imglib2.type.logic.BitType; import net.imglib2.type.numeric.RealType; import net.imglib2.type.numeric.real.DoubleType; import org.scijava.plugin.Parameter; /** * @author Martin Horn */ public class LocalMean<T extends RealType<T>> extends Loc...
package io.scif.formats.tiff; import io.scif.FormatException; import io.scif.SCIFIO; import io.scif.codec.CodecOptions; import io.scif.io.ByteArrayHandle; import io.scif.io.RandomAccessInputStream; import io.scif.io.RandomAccessOutputStream; import io.scif.util.FormatTools; import java.io.ByteArrayOutputStream; import ...
package net.apnic.whowas; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import net.apnic.whowas.history.*; import net.apnic.whowas.intervaltree.IntervalTree; import net.apnic.whowas.rdap.*; import net.apnic.whowas.types.IP; import net.apnic.whowas.types....
package net.ghostrealms.cmd; import net.ghostrealms.UUIDLib; import net.md_5.bungee.api.ChatColor; import net.milkbowl.vault.economy.Economy; import org.bukkit.Bukkit; import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import o...
package net.imagej.ops.create.img; import net.imglib2.Dimensions; import net.imglib2.Interval; import net.imglib2.img.Img; import net.imglib2.img.ImgFactory; import net.imglib2.img.ImgView; import net.imglib2.type.Type; import net.imglib2.view.Views; /** * Utility methods for working with {@link Img} objects. * * @a...
package net.imagej.updater; import static net.imagej.updater.util.UpdaterUtil.prettyPrintTimestamp; import java.awt.Frame; import java.io.Console; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.net.Authenticator; import java.net.PasswordAuthentication; import java.net.URL; imp...
package net.sknv.nkmod; import net.minecraft.block.Block; import net.minecraft.inventory.container.ContainerType; import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntityType; import net.minecraftforge.common.extensions.IForgeContainerType; import net.minecraftforge.fml.RegistryObject; import net.mine...