content
stringlengths
40
137k
"public void merge(Configuration config) {\n if (config == null) {\n System.out.println(\"String_Node_Str\");\n }\n loadFile();\n if (config.login().isEmpty() && login != null) {\n config.setLogin(login);\n }\n if (config.password().isEmpty() && password != null) {\n config.setPas...
"public void onApplicationEvent(ApplicationReadyEvent event) {\n doSend(String.format(\"String_Node_Str\", settings.getApplicationName(), settings.getDisplayVersion(), settings.getDnsCname()), Channel.BUILDS);\n}\n"
"private void flattenSimpleStubDeclaration(Name name, String alias) {\n Ref ref = Iterables.getOnlyElement(name.getRefs());\n Node nameNode = NodeUtil.newName(compiler.getCodingConvention(), alias, ref.node, name.getFullName());\n Node varNode = new Node(Token.VAR, nameNode).copyInformationFrom(nameNode);\n ...
"private static double getPrecision(Set<Integer> label, Set<Integer> positivePredict) {\n int tp = 0;\n int fp = 0;\n int fn = 0;\n for (Integer predict : positivePredict) {\n if (label.contains(predict)) {\n tp++;\n }\n }\n fp = positivePredict.size() - tp;\n fn = label.si...
"public <U> ThrowingStream<U, X> mapToObj(ThrowingDoubleFunction<? extends U, ? extends X> mapper) {\n DoubleFunction<? extends U> f = getBridge().convert(mapper);\n return ThrowingBridge.of(getDelegate().mapToObj(f), getBridge());\n}\n"
"public IMethod getMethod(Selector selector) {\n if (DEBUG) {\n Trace.println(\"String_Node_Str\" + selector + \"String_Node_Str\" + this);\n }\n if (methodMap == null) {\n try {\n computeMethodMap();\n } catch (InvalidClassFileException e1) {\n e1.printStackTrace();\...
"public boolean isFileAddable(File file) {\n if (!library.isFileAddable(file)) {\n return false;\n }\n if (isPublic()) {\n Category category = categoryManager.getCategoryForFile(file);\n if (category == Category.DOCUMENT && !LibrarySettings.ALLOW_DOCUMENT_GNUTELLA_SHARING.getValue()) {\n ...
"public void init() {\n xySeries1 = XYSeriesBuilder.create().items(new XYChartItem(1, 600, \"String_Node_Str\"), new XYChartItem(2, 760, \"String_Node_Str\"), new XYChartItem(3, 585, \"String_Node_Str\"), new XYChartItem(4, 410, \"String_Node_Str\"), new XYChartItem(5, 605, \"String_Node_Str\"), new XYChartItem(6, 8...
"public Content commentTagsToContent(DocTree holderTag, Element element, List<? extends DocTree> tags, boolean isFirstSentence) {\n final Content result = new ContentBuilder() {\n public void addContent(CharSequence text) {\n super.addContent(utils.normalizeNewlines(text));\n }\n };\n ...
"public boolean validate() {\n boolean valid = true;\n Iterator<Section> sectIter = this.comm.getSectionListIterator();\n while (valid && sectIter != null && sectIter.hasNext()) {\n Section s = sectIter.next();\n valid = new ValidatableSection(s).validate(this.comm);\n Iterator<Sentence> s...
"public void render(Graphics g) {\n g.pushTransform();\n g.translate(-gameworld.viewport.getX(), -gameworld.viewport.getY());\n if (facingRight)\n runningRightAnimation.draw(boundingBox.getX(), boundingBox.getY());\n else\n runningLeftAnimation.draw(boundingBox.getX(), boundingBox.getY());\n ...
"public void runAll() {\n System.out.println(\"String_Node_Str\" + NUM_POINTS);\n System.out.println();\n double tol = 1e-16;\n int MAX_ITER = 200;\n init(NUM_POINTS, PIXELS, true);\n EpipolarMatrixEstimator computeAlg = FactoryEpipolar.computeHomography(true);\n computeAlg.process(pairs);\n ini...
"public void keyPressed(KeyEvent e) {\n boolean isControlDown = e.isControlDown();\n boolean isShiftDown = e.isShiftDown();\n switch(e.getKeyCode()) {\n case KeyEvent.VK_P:\n if (isControlDown && isShiftDown) {\n int position = RSyntaxUtilities.getMatchingBracketPosition(SqlTex...
"protected RenderedServicePath createRenderedServicePathEntry(ServiceFunctionPath serviceFunctionPath, CreateRenderedPathInput createRenderedPathInput) {\n printTraceStart(LOG);\n long pathId;\n int serviceIndex;\n RenderedServicePath ret = null;\n ServiceFunctionChain serviceFunctionChain;\n String s...
"public static Search trend(JSONObject o) throws ApiException {\n try {\n Search t = new Search();\n t.name = Html.fromHtml(o.getString(NAME)).toString();\n t.query = Html.fromHtml(o.getString(QUERY)).toString();\n return t;\n } catch (JSONException e) {\n if (App.DEBUG)\n ...
"public User getMyUser() {\n return me;\n}\n"
"public DResult process(EndpointResult epr) {\n DResult result = new DResult();\n result.setEndpointResult(epr);\n log.debug(\"String_Node_Str\", _epURI);\n result.setDescriptionFiles((List) new ArrayList<DGETInfo>());\n int failures = 0;\n log.debug(\"String_Node_Str\", \"String_Node_Str\", _epURI);\...
"public Cell[] getRow(int row) {\n Cell[] r = new Cell[9];\n for (int x = 0; x < 9; x++) {\n r[x] = _puzzle[row][x];\n }\n return r;\n}\n"
"public List<IRepositoryNode> getChildren() {\n List<IRepositoryNode> children = new ArrayList<IRepositoryNode>();\n HDFSOfHCFolderRepNode hdfsFolder = new HDFSOfHCFolderRepNode(this.getObject(), this, ENodeType.SIMPLE_FOLDER, getProject());\n HiveOfHCFolderRepNode hiveFolder = new HiveOfHCFolderRepNode(this.g...
"public void testRollbackableChangeLog() throws Exception {\n if (database == null) {\n return;\n }\n Migrator migrator = createMigrator(rollbackChangeLog);\n migrator.dropAll(getSchemasToDrop());\n migrator = createMigrator(rollbackChangeLog);\n migrator.setMode(Migrator.Mode.EXECUTE_MODE);\n ...
"public int executeCommand(CommandContext context) {\n if (context.getArgumentCount() == 0) {\n context.out.println(\"String_Node_Str\");\n for (Map.Entry<String, Command> entry : commands.entrySet()) {\n String name = entry.getKey();\n Command command = entry.getValue();\n ...
"private void startApp(Stage stage) throws Throwable {\n FXMLLoader parentLoader = new FXMLLoader();\n FXMLLoader tablePopupLoader = new FXMLLoader();\n context = SpringApplication.run(SpringAppConfig.class);\n tablePopupLoader.setControllerFactory(context::getBean);\n parentLoader.setControllerFactory(c...
"protected void validate() {\n if (!newInstanceButton.getSelection() && serverNameCombo.getText().length() == 0) {\n wizard.setMessage(SPECIFY_TC_SERVER_INSTANCE_MESSAGE, IMessageProvider.NONE);\n setComplete(false);\n return;\n }\n if (wc == null) {\n wizard.setMessage(\"String_Nod...
"public final void freeOccupiedArea(MapCircle occupied, ShortPoint2D pos) {\n List<ShortPoint2D> totallyFreed = partitionsGrid.freeOccupiedArea(occupied, pos);\n if (!totallyFreed.isEmpty()) {\n StopWatch watch = new MilliStopWatch();\n watch.start();\n final int maxSqDistance = 6 * CommonCon...
"public void setMaxPropeller(double maxPropeller) {\n this.maxPropeller = maxPropeller;\n}\n"
"public String getConnectString() {\n final Util.PropertyList connectInfoClone = connectInfo.clone();\n connectInfoClone.remove(RolapConnectionProperties.JdbcPassword.name());\n return connectInfoClone.toString();\n}\n"
"public UriInfoImpl setSystemQueryOption(final SystemQueryOption systemOption) {\n final SystemQueryOptionKind kind = systemOption.getKind();\n switch(kind) {\n case EXPAND:\n case FILTER:\n case FORMAT:\n case ID:\n case COUNT:\n case ORDERBY:\n case SEARCH:\n ...
"private boolean createSelectedDataSourceODAV2() {\n Object dataSourceObj = getSelectedDataSource();\n String driverName = null;\n Class classType = null;\n if (dataSourceObj instanceof ExtensionManifest) {\n driverName = ((ExtensionManifest) dataSourceObj).getExtensionID();\n classType = OdaD...
"public Optional<Integer> get() {\n Optional<String> port = Optional.fromNullable(System.getProperty(RemoteDockerProvider.DOCKER_PORT_PROPERTY));\n return port.isPresent() ? Optional.of(Integer.valueOf(port.get())) : Optional.<Integer>absent();\n}\n"
"public void init(CubeDesc cubeDesc, Map<String, TableDesc> tables, Map<String, List<TableDesc>> columnTableMap, Map<String, List<String>> tableDatabaseMap) {\n if (name != null)\n name = name.toUpperCase();\n this.table = null;\n this.database = null;\n this.join = null;\n for (int i = 0, n = thi...
"private void addViews(Context context) {\n touchSlop = (int) (ViewConfiguration.get(getContext()).getScaledTouchSlop() * 1.5);\n headerView = new LListHeader(context);\n addHeaderView(headerView);\n}\n"
"public CommandConfig getTopConfig(String name) {\n if (commands.containsKey(name)) {\n return commands.get(name);\n }\n for (CommandConfig command : commands.values()) {\n if (command.alias(name)) {\n return command;\n }\n }\n return null;\n}\n"
"public static File applyFontconfigToASSTempSubsFile(File tempSubs, DLNAMediaInfo media, PmsConfiguration configuration) throws IOException {\n LOGGER.debug(\"String_Node_Str\" + tempSubs.getName());\n File outputSubs = tempSubs;\n StringBuilder outputString = new StringBuilder();\n File temp = new File(con...
"public void tearDown() throws Exception {\n for (PersonBatchHBaseEntity o : rows) {\n em.remove(o);\n }\n em.close();\n emf.close();\n if (cli != null) {\n cli.stopCluster(\"String_Node_Str\");\n }\n}\n"
"public synchronized void showOut() {\n santa_is_listening = false;\n notifyAll();\n}\n"
"private Concept _superlativeElement(Object[] subset, int direction) {\n if (subset != null && subset.length > 0) {\n Concept greatest = (Concept) subset[0];\n for (Object concept : subset) {\n if (compare(concept, greatest) == CPO.INCOMPARABLE) {\n return null;\n }...
"public void testRoot() {\n IProgramElement root = model.getRoot();\n assertNotNull(root);\n assertEquals(\"String_Node_Str\" + root.toLabelString(), root.toLabelString(), \"String_Node_Str\");\n}\n"
"private boolean handleRemoveExemptPlayerCommand(CommandSender sender, ArrayList<String> args) {\n if (args.size() == 0) {\n sender.sendMessage(\"String_Node_Str\");\n return true;\n }\n ConcurrentSkipListSet exemptPlayers = afkBooter.getExemptPlayers();\n for (String name : args) {\n n...
"private ArrayList<String> getErrors() {\n try {\n Process process = Runtime.getRuntime().exec(\"String_Node_Str\");\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n ArrayList<String> errorLines = new ArrayList<String>();\n String li...
"protected String getDisplayNameFromValue(IElementParameter param, String value) {\n return repositoryValueHander.getDisplayNameFromValue(param, value);\n}\n"
"public static void init(JavaPlugin plugin) {\n FileConfiguration config = plugin.getConfig();\n config.addDefault(\"String_Node_Str\", 399);\n config.addDefault(\"String_Node_Str\", 4);\n config.addDefault(\"String_Node_Str\", 2);\n config.addDefault(\"String_Node_Str\", 30);\n config.addDefault(\"St...
"protected void onNewIntent(Intent intent) {\n privateOnStart();\n}\n"
"public void execute(Collection<Annotation> annos) {\n SessionManager.getInstance().createSession(\"String_Node_Str\");\n Collection<Annotation> toremove = new HashSet<Annotation>();\n try {\n for (Annotation anno : annos) {\n Element e = (Element) anno.getTarget();\n if (!e.isEdit...
"public void complexMemberOfElementCollectionTest() {\n EntityManager em = createEntityManager();\n beginTransaction(em);\n Buyer buyer = new Buyer();\n buyer.setName(\"String_Node_Str\");\n buyer.setDescription(\"String_Node_Str\");\n buyer.addRoyalBankCreditLine(10);\n em.persist(buyer);\n em....
"public static List<AlgoHelperEntry> createAlgos(final GraphHopper hopper, final HintsMap hints, TraversalMode tMode) {\n GraphHopperStorage ghStorage = hopper.getGraphHopperStorage();\n LocationIndex idx = hopper.getLocationIndex();\n String addStr = \"String_Node_Str\";\n if (tMode.isEdgeBased())\n ...
"public List<LocatedFeature> locations(String region, Integer start, Integer end, Boolean exclude, List<String> types) throws CrawlException {\n if (exclude == null)\n exclude = true;\n if (start == null)\n start = 0;\n if (end == null)\n end = regionsMapper.sequence(region).dna.length();\...
"public static void setLocale(ULocale locale) {\n currentLocale = locale;\n if (resourceBundle != null) {\n synchronized (resourceBundle) {\n if (resourceBundle == null)\n return;\n if ((locale == null && !ULocale.getDefault().toLocale().equals(resourceBundle.getLocale(...
"private VehicleState sampleState(VehicleState vehicleState, long time) {\n vehicleState.getMovementFilter().setCurrentTimeDiff(this.simParameters.getFrequency());\n final MultivariateGaussian previousLocBelief = vehicleState.getBelief().clone();\n final MultivariateGaussian currentLocBelief = vehicleState.get...
"private ClientConfig getClientConfig() {\n ConnectionConfig connectionConfig = ConnectionConfig.builder(clientConfig.getConnectionConfig()).setNamespace(procedure.getNamespace()).build();\n return new ClientConfig.Builder(clientConfig).setConnectionConfig(connectionConfig).build();\n}\n"
"public void setBackground(int background) {\n new ResizeBackgroundResource().execute(background);\n}\n"
"public String toString() {\n StringBuffer param = new StringBuffer();\n param.append(KEY_PARAM).append(\"String_Node_Str\").append(this.getKey()).append(SEPARATOR);\n param.append(FILTER_TYPE_PARAM).append(\"String_Node_Str\").append(Boolean.toString(this.isAttributeFilter()));\n this.appendParamValue(para...
"private void fillInTable() {\n exchangeDwnTable.removeAll();\n HttpClient client = new HttpClient();\n String url = EXCHANGE_DOWNLOAD_URL + (export ? \"String_Node_Str\" : \"String_Node_Str\");\n GetMethod get = new GetMethod(url);\n try {\n client.executeMethod(get);\n String out = get.ge...
"protected void showLastMatch(MatchListElement match) {\n ViewGroup lastMatchContainer = (ViewGroup) getView().findViewById(R.id.last_match_container);\n FrameLayout lastMatchView = (FrameLayout) getView().findViewById(R.id.last_match_view);\n lastMatchContainer.setVisibility(View.VISIBLE);\n lastMatchView....
"public long replace(String table, String nullColumnHack, ContentValues initialValues) {\n try {\n return insertWithOnConflict(table, nullColumnHack, initialValues, CONFLICT_REPLACE);\n } catch (SQLException e) {\n Log.e(TAG, \"String_Node_Str\" + table, e);\n return -1;\n }\n}\n"
"public SetInsert setInsert(List<Object> objects) {\n return new SetInsert(this, new Arguments(objects), null);\n}\n"
"protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {\n if (nodeService.exists(actionedUponNodeRef) && !freezeService.isFrozen(actionedUponNodeRef)) {\n if (recordService.isRecord(actionedUponNodeRef)) {\n ChildAssociationRef assocRef = nodeService.getPrimaryParent(actionedUponN...
"public void startCell(int cellindex, int colspan, int rowspan, int styleid, HyperlinkDef hyperLink) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", cellindex);\n writer.attribute(\"String_Node_Str\", styleid);\n if (hyperLink != null) {\n if (hyperLink.getType() == I...
"public String[] getMetricNames() {\n return new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n}\n"
"public void run() {\n for (int i = 0; i < 5; i++) {\n try {\n reevaluateMyself();\n break;\n } catch (ZooKeeperException e) {\n e.printStackTrace();\n } catch (HaCommunicationException e) {\n e.printStackTrace();\n }\n }\n}\n"
"public void onFailure(int errorCode) {\n if (errorCode == ApiHelper.SyncMediaLibraryTask.NO_UPLOAD_FILES_CAP || errorCode == SyncMediaLibraryTask.UNKNOWN_ERROR) {\n String errorMessage = errorCode == SyncMediaLibraryTask.NO_UPLOAD_FILES_CAP ? \"String_Node_Str\" : \"String_Node_Str\";\n Toast.makeText...
"private static OutputStream getOutputStream(final boolean follow, final Target target) {\n final String enc = Charset.defaultCharset().name();\n PrintStream printStream = null;\n try {\n printStream = target == Target.SYSTEM_OUT ? follow ? new PrintStream(new SystemOutStream(), true, enc) : System.out ...
"double getNormProduct(final double[] numbers, final int begin, final int length){\n double sum = 0.0;\n for (int i = begin; i < begin + length; i++){\n sum += numbers[i];\n }\n double mean = sum / length;\n double product = 1.0;\n for (int i = begin; i < begin + length; i+...
"public ClassificationStatistics precisionRecallStats(ImageProcessor label, ImageProcessor proposal, ImageProcessor mask, double binaryThreshold) {\n float[] labelPix = (float[]) label.getPixels();\n float[] proposalPix = (float[]) proposal.getPixels();\n float[] maskPixels = (float[]) mask.getPixels();\n d...
"public void onPlayerInteract(PlayerInteractEvent event) {\n IPlayer player = plugin.wrapPlayer(event.getPlayer());\n Location location = new Location(player.getWorld(), BukkitUtil.locationToVector(event.getClickedBlock().getLocation()));\n if (manager.isPlotWorld(location)) {\n Plot plot = manager.getP...
"public DEDirector getDirector() throws IllegalActionException {\n IOPort port = (IOPort) getContainer();\n if (port != null) {\n if (_directorVersion == port.workspace().getVersion()) {\n return _director;\n }\n Actor actor = (Actor) port.getContainer();\n if (actor != null...
"protected void _writeMakefile() throws IllegalActionException {\n if (!((BooleanToken) overwriteFiles.getToken()).booleanValue() && codeDirectory.asFile().exists()) {\n if (!MessageHandler.yesNoQuestion(codeDirectory.asFile() + \"String_Node_Str\")) {\n return;\n }\n }\n File codeDire...
"public void execute(OperationParams params, String pattern) {\n Properties existingProps = getGeoWaveConfigProperties(params);\n Set<String> keysToRemove = new HashSet<String>();\n for (String key : existingProps.stringPropertyNames()) {\n if (key.startsWith(pattern)) {\n keysToRemove.add(ke...
"private AbsFile mapSingle() {\n AbsFile f = (AbsFile) var.map();\n if (defaultScheme != null && f.getProtocol() == null) {\n f = new AbsFile(defaultScheme, f.getHost(), f.getPort(), f.getDirectory(), f.getName());\n }\n return f;\n}\n"
"private void bindTexture(GL gl, Texture texture, float xmin, float xmax, float ymin, float ymax) {\n texture.enable(gl);\n texture.bind(gl);\n TextureCoords coords = texture.getImageTexCoords();\n gl.glBegin(GL2.GL_POLYGON);\n gl.glTexCoord2f(coords.left(), coords.top());\n gl.glVertex2f(xmin, 1 - ym...
"public void compute(Vertex<IntWritable, IntWritable, NullWritable> vertex, Iterable<IntWritable> messages) throws IOException {\n if (getSuperstep() == 0) {\n sendMessageToAllEdges(vertex, vertex.getValue());\n vertex.voteToHalt();\n } else {\n int currentMinValue = vertex.getValue().get();\...
"public void executeLayoutTests(boolean resume) {\n LayoutTestsAutoRunner runner = (LayoutTestsAutoRunner) getInstrumentation();\n if (runner.mTestPath == null) {\n Log.e(LOGTAG, \"String_Node_Str\");\n return;\n }\n this.mTestList = new Vector<String>();\n this.mTestPathPrefix = (new File(...
"public void startRequest(DIRRequest rq) {\n try {\n final service_deregisterRequest request = (service_deregisterRequest) rq.getRequestMessage();\n BabuDBInsertGroup ig = database.createInsertGroup(DIRRequestDispatcher.DB_NAME);\n ig.addDelete(DIRRequestDispatcher.INDEX_ID_SERVREG, request.getU...
"private final void assertDisjoint() {\n if (DEBUG) {\n if (densePart != null) {\n for (IntIterator sparseBits = sparsePart.intIterator(); sparseBits.hasNext(); ) {\n int bit = sparseBits.next();\n if (densePart.contains(bit)) {\n return false;\n ...
"protected DateFormat initialValue() {\n DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"String_Node_Str\"));\n return dateFormat;\n}\n"
"public <T> RiakFuture handle(final String n, Object send, final RiakResponseHandler<T> users, final NettyUtil.MessageHandler handler) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(Messages.SendTo, name, this.channel.getRemoteAddress());\n }\n int prog = this.progress.incrementAndGet();\n final String ...
"void getRealmAuctionFileInformation(Realm realm) {\n getLogger(this.getClass().getName()).log(Level.INFO, \"String_Node_Str\" + realm.getRealmDetail());\n try {\n Client client = ClientBuilder.newClient();\n Files files = client.target(target + realm.getSlug()).request(MediaType.TEXT_PLAIN).get(Fil...
"public void writeObject(BufferProvider bufferProvider, Object obj) throws Exception {\n bbos.setBufferProvider(bufferProvider);\n bbos.reset();\n if (obj instanceof byte[]) {\n bbos.write((byte) 40);\n byte[] bytes = (byte[]) obj;\n bbos.writeInt(bytes.length);\n bbos.write((byte[]...
"private DocValue resolve(Iterator<AttributeReference.Key> atts, ArrayValue value) {\n if (!atts.hasNext()) {\n return value;\n } else {\n AttributeReference.Key nextAtt = atts.next();\n if (!(nextAtt instanceof AttributeReference.ArrayKey)) {\n return null;\n } else {\n ...
"public void testBindingRowReferenceCache() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition di...
"private void processStorageQueryResult(List<AVIMMessage> cachedMessages, List<Boolean> breakpoints, String originMsgId, long originMsgTS, int limit, final AVIMMessagesQueryCallback callback) {\n final List<AVIMMessage> continuousMessages = new ArrayList<AVIMMessage>();\n int firstBreakPointIndex = -1;\n for (...
"public void fullTest() {\n withStateByBuilder(client(), stateBuilder -> stateBuilder.initial(true).type(PAYMENT_STATE), paidState -> {\n TypeFixtures.withUpdateableType(client(), type -> {\n CustomerFixtures.withCustomerAndCart(client(), ((customer, cart) -> {\n final MonetaryAmount...
"public static DatabaseConnection createConnection(ConnectionParameters parameters) {\n String dbType = parameters.getDbType();\n boolean isNeedSchema = EDatabaseTypeName.getTypeFromDbType(dbType).isNeedSchema();\n String productName = EDatabaseTypeName.getTypeFromDisplayName(dbType).getProduct();\n String ...
"public final void save() throws FileNotFoundException, IOException, InterruptedException {\n boolean pausing = NetworkTimer.isPausing();\n NetworkTimer.get().setPausing(true);\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n MapList list = M...
"public void testInvalidTransport() {\n thrown.expect(IllegalArgumentException.class);\n ResourceManagerOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));\n}\n"
"public void testIn() throws Exception {\n FilterDescriptor idFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.IN, new int[] { 2, 4 });\n Map<String, Object> queryParams = MybatisQueryProvider.getWhereQueryParamMap(ProductView.class, \"String_Node_Str\", idFilter);\n List<...
"private void placeComponents() {\n boolean show_web_attributes = false;\n RadarSeries rsd = (RadarSeries) chart.getSeriesDefinitions().get(0).getSeriesDefinitions().get(0).getDesignTimeSeries();\n if (rsd.equals(this.series)) {\n show_web_attributes = true;\n }\n this.setLayout(new GridLayout());...
"public Union.Left<Node<K, V>, V> getChild(K key) {\n int sentry = 0;\n while (sentry < keys.length && keys[sentry].compareTo(key) < 0) {\n sentry++;\n }\n return new Union.Left<Node<K, V>, V>(children[sentry]);\n}\n"
"public ResourceRequestResult call() throws Exception {\n try {\n resourceBuilder.delete(resource, dCO, stack.getRegion());\n } catch (Exception ex) {\n return ResourceRequestResult.ResourceRequestResultBuilder.builder().withException(ex).withFutureResult(FutureResult.FAILED).withResources(resource)...
"protected double normalize(double aggregate, int dimension) {\n double min = gFactor * tuples / shares[dimension].getDomainSize();\n double max = tuples;\n double result = (aggregate - min) / (max - min);\n return result >= 0d ? result : 0d;\n}\n"
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n DataStreamsPipelineSpec that = (DataStreamsPipelineSpec) o;\n return batchIntervalMil...
"public void onEvent(PagingEvent event) {\n if (inPagingMold()) {\n if (WebApps.getFeature(\"String_Node_Str\") && getModel() != null) {\n if (_rodPagingIndex == null)\n _rodPagingIndex = new LinkedList<Integer>();\n int ap = event.getActivePage();\n int size = ...
"public boolean performFinish() {\n if (isSinglePageOnly) {\n return true;\n }\n boolean formIsPerformed = true;\n IWizardPage finalPage = null;\n if (finalPage == null) {\n finalPage = wsdlSchemaWizardPage0;\n }\n if (((WSDLSchemaConnection) connectionItem.getConnection()).isIsInputM...
"protected OTObjectServiceImpl initObjectService(OTDatabase db, String logLabel) throws Exception {\n addDatabase(db);\n OTObjectServiceImpl objectService = createObjectService(db);\n if (OTConfig.isTrace()) {\n objectService.addObjectServiceListener(new TraceListener(logLabel + \"String_Node_Str\" + db...
"protected Control createMessageArea(Composite composite) {\n Composite main = new Composite(composite, SWT.NONE);\n main.setLayout(new GridLayout(2, false));\n GridDataFactory.fillDefaults().indent(0, 0).grab(true, true).applyTo(main);\n super.createMessageArea(main);\n StyledText text = new StyledText(...
"private void setInternalPreference(UAPreference.PreferenceType preferenceType, Object value) {\n Date[] quietTimes = null;\n switch(preferenceType) {\n case LOCATION_BACKGROUND_ENABLE:\n if ((Boolean) value) {\n UALocationManager.enableBackgroundLocation();\n } else {\...
"private String formatResultSet(LensClient.LensClientResultSetWithStats rs) {\n StringBuilder b = new StringBuilder();\n int numRows = 0;\n if (rs.getResultSet() != null) {\n QueryResultSetMetadata resultSetMetadata = rs.getResultSet().getResultSetMetadata();\n for (ResultColumn column : resultSe...
"public User createUser(User user) throws StoreException {\n int key = 0;\n Connection conn = dbConnect();\n try {\n String query = \"String_Node_Str\";\n PreparedStatement statement = conn.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n statement.setString(1, user.getName());\...
"public Collection<Long> getSnapTimestamps(String volName) throws UserException, DatabaseException {\n try {\n Collection<Long> result = new LinkedList<Long>();\n byte[] prefix = (volName + SNAPSHOT_SEPARATOR).getBytes();\n try {\n it = snapVersionDB.prefixLookup(0, prefix, null).get(...
"protected void checkRedstone(World world, BlockPos pos) {\n TileEntity te = world.getTileEntity(pos);\n if (state.getBlock() instanceof LogicSlabBlock && te instanceof LogicTileEntity) {\n LogicTileEntity logicTileEntity = (LogicTileEntity) te;\n EnumFacing downSide = logicTileEntity.getFacing().ge...
"private HUDComponent createTextChatHUD(final String userKey) {\n final TextChatPanel textChatPanel = new TextChatPanel();\n HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD(\"String_Node_Str\");\n HUDComponent textChatHUDComponent = mainHUD.createComponent(textChatPanel);\n textChatHUDComponent.setIc...