content
stringlengths
40
137k
"public void collectNearestNeighbors(final E queryPoint, final NearestNeighborCollector<E> collector) {\n if (this.points == null) {\n final VPNode<E> firstNodeSearched = this.getChildNodeForPoint(collector.getQueryPoint());\n firstNodeSearched.collectNearestNeighbors(collector);\n final double ...
"private String healthDataKeyToAnonimizedKeyString(HealthDataKey key) {\n if (key == null) {\n throw new BridgeServiceException(\"String_Node_Str\");\n } else if (key.getStudyId() == 0) {\n throw new BridgeServiceException(\"String_Node_Str\");\n } else if (key.getTrackerId() == 0) {\n thr...
"public boolean apply(VersionInfo input) {\n return input.getTimestamp().equals(maxTimestamp) || input.getOperation() != Operation.DELETE;\n}\n"
"private List<OverviewIndUIElement> wapperInput(EList<TableIndicator> indicatorTableList, IRepositoryNode parentNode) {\n List<OverviewIndUIElement> cataUIEleList = new ArrayList<OverviewIndUIElement>();\n List<IRepositoryNode> children = parentNode.getChildren();\n for (IRepositoryNode folderNode : children) ...
"public static Object evalExpr(IBaseExpression expr, ScriptContext cx, String source, int lineNo) throws DataException {\n try {\n if (logger.isLoggable(Level.FINER))\n logger.entering(ScriptEvalUtil.class.getName(), \"String_Node_Str\", \"String_Node_Str\" + LogUtil.toString(expr) + \"String_Node_...
"public void setFontSize(double screenWidth, double screenHeight) {\n int initialsize = 16;\n if (screenWidth >= 2160.0 && screenHeight >= 1440) {\n fontSize = (int) (initialsize * 1.37);\n } else if (screenWidth >= 1920.0 && screenHeight >= 1080.0) {\n fontSize = (int) (initialsize * 1.29);\n ...
"void fillPropertyScopes() {\n List<Symbol> types = new ArrayList<>();\n List<Symbol> googModuleExportTypes = new ArrayList<>();\n for (Symbol sym : getAllSymbols()) {\n if (needsPropertyScope(sym)) {\n if (sym.getName().startsWith(\"String_Node_Str\")) {\n googModuleExportType...
"public static boolean isPluginLoaded(String name) {\n boolean loaded;\n try {\n Class pluginCore = Class.forName(pluginCore_Class);\n Method isPluginAlive = pluginCore.getMethod(\"String_Node_Str\", new Class[] { String.class });\n String l = isPluginAlive.invoke(null, name).toString();\n ...
"public ITmfStateValue popAttribute(long t, int attributeQuark) throws AttributeNotFoundException, TimeRangeException, StateValueTypeException {\n ITmfStateValue previousSV = queryOngoingState(attributeQuark);\n if (previousSV.isNull()) {\n return null;\n }\n if (previousSV.getType() != Type.INTEGER)...
"public static String addQuotesWithSpaceField(String fieldName, String dbType) {\n if (fieldName == null) {\n fieldName = \"String_Node_Str\";\n }\n if (fieldName.startsWith(\"String_Node_Str\") && fieldName.endsWith(\"String_Node_Str\")) {\n return fieldName;\n }\n boolean b = true;\n f...
"private void sendWolfPrice(Player p) {\n if (hasPermission(p, PERM_ADOPT))\n if (this.adoptPrice == 0) {\n p.sendMessage(\"String_Node_Str\");\n } else if (this.adoptType == -1) {\n p.sendMessage(\"String_Node_Str\" + adoptPrice + \"String_Node_Str\");\n } else {\n ...
"private void performAdd() {\n try {\n TreePath path = this.tree.getSelectionPath();\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();\n if (!(node.getUserObject() instanceof String)) {\n node = (DefaultMutableTreeNode) node.getParent();\n }\...
"public void run() {\n if (activeComponent != -1) {\n synchronized (context.get(Context.KEY_TAB_LIST)) {\n frames.get(activeComponent).deactivate();\n activeComponent++;\n if (activeComponent >= frames.size()) {\n activeComponent = 0;\n }\n ...
"public void expunged(int msn) {\n synchronized (_expungedMsns) {\n _expungedMsns.add(Integer.valueOf(msn));\n }\n}\n"
"private void addProfileData(List<String> valueList, DateFormatter dateFormatter, StringBuilder builder, PointFeatureIterator profileIterator, int stNum) {\n try {\n while (profileIterator.hasNext()) {\n PointFeature pointFeature = profileIterator.next();\n valueList.clear();\n ...
"public InvokeInstruction getTheInvokeInstruction() {\n InvokeInstruction theInvInstr = null;\n for (InstructionHandle ih : this.instructions) {\n if (!(ih.getInstruction() instanceof InvokeInstruction))\n continue;\n InvokeInstruction inv = (InvokeInstruction) ih.getInstruction();\n ...
"public void stop() {\n this.setStopping();\n LOGGER.trace(\"String_Node_Str\");\n final LoggerContextFactory factory = LogManager.getFactory();\n if (factory instanceof Log4jContextFactory) {\n ContextSelector selector = ((Log4jContextFactory) factory).getSelector();\n if (selector instanceof...
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n HolePunchingMetaData other = (HolePunchingMetaData) obj;\n if (maxConnectionSetupTime != other.maxConnectionSetupTime)\n ...
"public Report saveReport(Report report, String description) {\n String reportRequestUuid = report.getRequest().getUuid();\n CachedReportData cachedData = persistCachedReportDataToDisk(reportRequestUuid);\n if (cachedData != null && !cachedData.isPersisted()) {\n throw new ReportingException(\"String_No...
"public void run() {\n try {\n final boolean fullSync = !Hosts.isCoordinator() && host.isLocalHost() && BootstrapArgs.isCloudController() && !Databases.isSynchronized();\n final boolean passiveSync = !fullSync && host.hasSynced();\n if (!fullSync && !passiveSync) {\n throw Exceptions....
"public void testEvaluate() throws Exception {\n DataSetDefinitionService service = mock(DataSetDefinitionService.class);\n Location aLocation = new Location();\n SqlDataSetDefinition baseDsd = new SqlDataSetDefinition();\n baseDsd.addParameter(new Parameter(\"String_Node_Str\", \"String_Node_Str\", Date.cl...
"public GetTypesResponse getTypes(GetTypes parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException {\n checkRepositoryId(parameters.getRepositoryId());\n Collection<CMIS...
"public List<String> getAllPlayers() {\n return Arrays.asList(getPlayer().getName());\n}\n"
"private final void sendServiceArgsLocked(ServiceRecord r, boolean execInFg, boolean oomAdjusted) throws TransactionTooLargeException {\n final int N = r.pendingStarts.size();\n if (N == 0) {\n return;\n }\n while (r.pendingStarts.size() > 0) {\n Exception caughtException = null;\n Serv...
"protected void createLogPropertyFiles(File directory) {\n ArgumentNotValid.checkNotNull(directory, \"String_Node_Str\");\n for (Application app : applications) {\n try {\n File logProp = new File(directory, Constants.LOG_PROP_APPLICATION_PREFIX + app.getIdentification() + Constants.LOG_PROP_APP...
"public void testGetLocalizedMessages() throws InterruptedException, ExecutionException, TimeoutException {\n try {\n handler.getLocalizedMessages().get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
"public void testForeignKeyModel() {\n Delete.tables(TestModel1.class, ForeignInteractionModel.class);\n ForeignInteractionModel foreignInteractionModel = new ForeignInteractionModel();\n TestModel1 testModel1 = new TestModel1();\n testModel1.name = \"String_Node_Str\";\n foreignInteractionModel.setTestM...
"protected void openStreams() throws IncomingFileTransferException {\n final String urlString = getRemoteFileURL().toString();\n try {\n httpClient.getHttpConnectionManager().getParams().setSoTimeout(DEFAULT_CONNECTION_TIMEOUT);\n httpClient.getHttpConnectionManager().getParams().setConnectionTimeou...
"public final JSONArray getRMIndicators(JSONObject jsonObject) {\n JSONArray indicators = null;\n try {\n JSONObject rmNode = getRMNode(jsonObject);\n if (rmNode != null) {\n indicators = (JSONArray) rmNode.get(\"String_Node_Str\");\n }\n } catch (Exception err) {\n throw...
"public LogicalWorkflow getLogicalWorkflow() {\n List<LogicalStep> logiclaSteps = new ArrayList<>();\n Project project = new Project(Operations.PROJECT, new TableName(catalog, table), clusterName, columns);\n LogicalStep lastStep = project;\n for (Filter filter : filters) {\n lastStep.setNextStep(fil...
"public final Var_declContext var_decl() throws RecognitionException {\n Var_declContext _localctx = new Var_declContext(_ctx, getState());\n enterRule(_localctx, 98, RULE_var_decl);\n try {\n setState(456);\n switch(getInterpreter().adaptivePredict(_input, 39, _ctx)) {\n case 1:\n ...
"public CharSequence getFlyweightStr(int col) {\n return colA(col).getStr(colB(col).getLong(recordIndex * 8));\n}\n"
"private static List<ITimeEvent> getEventList(ResourcesEntry entry, long startTime, long endTime, long resolution, boolean includeNull, IProgressMonitor monitor) {\n IStateSystemQuerier ssq = entry.getTrace().getStateSystem();\n startTime = Math.max(startTime, ssq.getStartTime());\n endTime = Math.min(endTime,...
"public void run() {\n titleText.setText(\"String_Node_Str\");\n contentText.setText(\"String_Node_Str\");\n try {\n assertEquals(\"String_Node_Str\", mFragment.getTitle());\n assertEquals(\"String_Node_Str\", mFragment.getContent());\n } catch (EditorFragmentNotAddedException e) {\n th...
"protected void executeImpl(final Action action, final NodeRef actionedUponNodeRef) {\n if (nodeService.exists(actionedUponNodeRef) && freezeService.isFrozen(actionedUponNodeRef) == false && recordService.isFiled(actionedUponNodeRef) == false) {\n NodeRef recordFolder = (NodeRef) action.getParameterValue(PARA...
"public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {\n for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, blocker.getControllerId(), game)) {\n if (permanent.isTapped() && !game.getState().getContinuousEffects().asThough(this.getId(), As...
"private boolean _isOpaque(CompositeEntity entity) {\n if (entity instanceof CompositeActor && ((CompositeActor) entity).isOpaque()) {\n return true;\n } else {\n NamedObj container = entity.getContainer();\n boolean isOpaque = false;\n while (container != null) {\n if (_mat...
"public boolean equals(Object obj) {\n if (this.inetAddress != null) {\n return this.inetAddress.equals(ici.inetAddress);\n } else {\n return this.fileName.equals(obj);\n }\n}\n"
"private void callVisibleForUser(Call call, String type, String number, String callerId) {\n Intent intent = new Intent(this, CallActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n Uri sipAddressUri = SipUri.sipAddressUri(this, PhoneNumberUtils.format(number));\n intent.setDataAndType(sipA...
"public void disablePlugin(Plugin plugin) {\n if (!plugin.isEnabled()) {\n boolean locked = manager.lock(key);\n try {\n plugin.getPluginLoader().disablePlugin(plugin);\n } catch (Exception e) {\n safelyLog(Level.SEVERE, new StringBuilder().append(\"String_Node_Str\").appen...
"public void processEvent(final AbstractEvent event) {\n if (event instanceof ByteBufferedChannelCloseEvent) {\n this.closeAcknowledgmentReceived = true;\n } else if (event instanceof ReceiverNotFoundEvent) {\n this.lastSequenceNumberWithReceiverNotFound = ((ReceiverNotFoundEvent) event).getSequence...
"private void findAdvUserProperties(LdapContext ldapContext, boolean isOutputNeeded) throws Throwable {\n int noOfUsers;\n NamingEnumeration<SearchResult> userSearchResultEnum = null;\n SearchControls userSearchControls = new SearchControls();\n userSearchControls.setSearchScope(config.getUserSearchScope())...
"public Image getNodeIcon(Object model) {\n if (model instanceof DesignElementHandle && ((DesignElementHandle) model).getSemanticErrors().size() > 0) {\n return ReportPlatformUIImages.getImage(ISharedImages.IMG_OBJS_ERROR_TSK);\n }\n if (model instanceof DesignElementHandle && DEUtil.isLinkedElement((De...
"public static void main(String[] args) throws InterruptedException {\n RedisLockTest redisLockTest = new RedisLockTest();\n redisLockTest.init();\n initThread();\n for (int i = 0; i < 50; i++) {\n executorServicePool.execute(new Worker(i));\n }\n executorServicePool.shutdown();\n while (!ex...
"public void setScale(Vector2 scale) {\n scale(scale.x / scaleX, scale.y / scaleY);\n}\n"
"private void setNavHeadView(SongEntity songEntity) {\n if (songEntity == null || isDestroyed()) {\n return;\n }\n mNavTitle.setText(songEntity.title);\n mNavSinger.setText(songEntity.artistName);\n ImageLoader.getInstance().display(MainActivity.this, new ImageConfig.Builder().url(songEntity.album...
"private boolean upgradeSixSeven(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.beginTransaction();\n try {\n SqlStorage<ACase> caseStorage = new SqlStorage<ACase>(ACase.STORAGE_KEY, ACasePreV6Model.class, new ConcreteDbHelper(c, db));\n updateModels(caseStorage);\n db.setTransacti...
"public XaConnection getXaConnection() {\n return new NeoStoreXaConnection(neoStore, xaContainer.getResourceManager(), branchId);\n}\n"
"public int convertRowIndexToModel(int index) {\n if (viewToModel != null && index >= 0 && index < viewToModel.length) {\n if (isSorted()) {\n return viewToModel[index];\n } else {\n return index;\n }\n } else {\n return index;\n }\n}\n"
"private void updateStatus(int state) {\n switch(state) {\n case State.PULL_NORMAL:\n pullDownReset();\n break;\n case State.PULL_DOWN:\n if (mHeaderWrapper != null) {\n mHeaderWrapper.pullDown();\n }\n break;\n case State.PUL...
"public void drawArmor() {\n GL11.glDisable(GL11.GL_DEPTH_TEST);\n res = new ScaledResolution(Minecraft.getMinecraft(), Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight);\n int x = (res.getScaledWidth() / 2) - 11;\n int y = res.getScaledHeight() - 49;\n Item boots = null;\n ...
"protected void PicardPreprocess(Context context, PreprocessingTools tools, SAMRecordIterator input, String output) throws InterruptedException, QualityException, IOException, URISyntaxException {\n outHeader = header.clone();\n outHeader.setSortOrder(SAMFileHeader.SortOrder.coordinate);\n String tmpOut1 = tmp...
"public Calendar timestamp(ReferenceTick reference) {\n final double TICK_TIME_STEP = (48 / 32768.0) * 1000;\n Calendar copy = (Calendar) reference.timestamp().clone();\n copy.add(Calendar.MILLISECOND, (int) ((tick() - reference.tickCount()) * TICK_TIME_STEP));\n return copy;\n}\n"
"public ByteWriter toByteWriter(ByteWriter writer) {\n writer.putSha256Hash(txid);\n writer.putCompactInt(index);\n return writer;\n}\n"
"private byte[] readFully(final InputStream stream) {\n try {\n int totalLength = 0;\n byte[] buffer = getOrCreateBuffer();\n int read;\n while ((read = stream.read(buffer, totalLength, totalLength - buffer.length)) != -1) {\n totalLength += read;\n if (totalLength >...
"private void getFacebookFriendsList() {\n Request.newMyFriendsRequest(Session.getActiveSession(), new Request.GraphUserListCallback() {\n\n public void onCompleted(List<com.facebook.model.GraphUser> users, Response response) {\n for (com.facebook.model.GraphUser user : users) {\n fr...
"private void runAsync(Runnable test) {\n Thread t = new Thread(test);\n t.start();\n try {\n t.join(50);\n } catch (InterruptedException e) {\n }\n if (t.isAlive()) {\n t.stop();\n throw new RuntimeException(\"String_Node_Str\" + label);\n }\n}\n"
"public String decode(Event e, String s) {\n if (e.equals(Event.MESSAGE) && !protocolReceived.getAndSet(true)) {\n try {\n String[] proto = new String(b, \"String_Node_Str\").trim().split(\"String_Node_Str\");\n List<String> l = new ArrayList<String>();\n l.add(proto[0]);\n ...
"public boolean onPreferenceClick(Preference preference) {\n Favorite fav = new Favorite();\n fav.setUserName(AccountHelper.getSelectedAccount(getActivity()));\n fav.setModelKey(\"String_Node_Str\");\n fav.setModelEnum(ModelHelper.MODELS.TEAM.getEnum());\n Database.getInstance(DevSettingsActivity.this).g...
"public static String className(String s, boolean flag, boolean isClass, boolean logOn) {\n preProcessJavaReservedNames(s);\n preProcessSDOReservedNames(s);\n String[] as = getWordList(s);\n StringBuffer stringbuffer = new StringBuffer();\n StringBuffer stringbuffer1 = new StringBuffer();\n if (as.len...
"private InstanceInitializationFactory createIIF() {\n return new MockupProviderFactory(mockup == null ? new Hashtable() : mockup.getInstances());\n}\n"
"private int[] _getTokenConsumptionRate(IOPort port) throws IllegalActionException {\n int[] rate = new int[port.getWidth()];\n Arrays.fill(rate, 1);\n Variable parameter = SDFUtilities.getRateVariable(port, \"String_Node_Str\");\n if (parameter != null) {\n Token token = parameter.getToken();\n ...
"private synchronized LinkedBlockingQueue<IAtomContainer> multiSolution() {\n LinkedBlockingQueue<IAtomContainer> mcss = new LinkedBlockingQueue<>();\n logger.debug(\"String_Node_Str\" + taskNumber + \"String_Node_Str\" + mcssList.size() + \"String_Node_Str\");\n long startTime = Calendar.getInstance().getTime...
"public Function getDefaultFunction(MetadataColumnExt bean, String talendType) {\n Function currentFun = new Function();\n List<Function> functions = getFunctionByName(talendType);\n String[] arrayTalendFunctions2 = new String[functions.size()];\n List<String> list = new ArrayList<String>();\n if (functi...
"public void setTarget(String version) {\n options.target = SpecVersion.parse(version);\n if (options.target == null)\n throw new BuildException(version + \"String_Node_Str\");\n}\n"
"private static void setFileExcelValue(FileExcelConnection connection, INode node, String repositoryValue) {\n if (\"String_Node_Str\".equals(repositoryValue)) {\n String value = getParameterValue(connection, node, \"String_Node_Str\");\n if (value != null) {\n connection.setFilePath(value);...
"public String toString() {\n return \"String_Node_Str\" + delegate;\n}\n"
"private void processSm(ProcessingData processingData) {\n CommandApdu commandApdu = processingData.getCommandApdu();\n byte cla = commandApdu.getCla();\n if ((cla & 0x03) != 0x03) {\n if (pseudoSmIsActive) {\n if (!(commandApdu instanceof IsoSecureMessagingCommandApdu) || !((IsoSecureMessagi...
"public void addSeriesDefinitions(EList elSD, GroupingLookupHelper lhmLookup) throws ChartException {\n for (int k = 0; k < elSD.size(); k++) {\n SeriesDefinition sdOrthogonal = (SeriesDefinition) elSD.get(k);\n Series series = sdOrthogonal.getDesignTimeSeries();\n List qlist = ChartEngine.insta...
"public IValue checkArguments(MarkerList markers, ICodePosition position, IContext context, IValue instance, IArguments arguments, ITypeContext typeContext) {\n int len = arguments.size();\n if (this.modifiers.hasIntModifier(Modifiers.PREFIX) && !this.isStatic()) {\n IValue argument = arguments.getFirstVal...
"private void initializeValues() {\n for (String bundleKey : feedbackResultBundles.keySet()) {\n FeedbackSessionResultsBundle bundle = feedbackResultBundles.get(bundleKey);\n Map<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>> responseEntriesMap = bundle.getQuestionResponseMap();\n ...
"public LinkedHashSet<VariableDeclaration> getRecursivelyDefinedFields(MethodDeclaration method, Set<MethodDeclaration> processedMethods) {\n LinkedHashSet<VariableDeclaration> definedFields = new LinkedHashSet<VariableDeclaration>();\n definedFields.addAll(definedFieldMap.get(method));\n processedMethods.add(...
"public LinkObjectType getEdge() {\n return this.edge;\n}\n"
"public boolean isInventoryDisabled() {\n if (Main.game.getCurrentDialogueNode().getDialogueNodeType() == DialogueNodeType.INVENTORY || Main.game.isInCombat() || Main.game.isInSex()) {\n return false;\n } else if (Main.game.getCurrentDialogueNode().getDialgoueNodeType() == DialogueNodeType.OPTIONS || Main....
"private int _countUnfulfilledInputs(Actor a, LinkedList actorList, Map waitingTokens) throws IllegalActionException {\n if (_debugging)\n _debug(\"String_Node_Str\" + ((Entity) a).getFullName());\n Iterator ainputPorts = a.inputPortList().iterator();\n int inputCount = 0;\n while (ainputPorts.hasNex...
"protected boolean create(final AndroidSDK sdk) throws IOException {\n final String[] params = { sdk.getAndroidToolPath(), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", name, \"String_Node_Str\", target, \"String_Node_Str\", DEFAULT_SDCARD_SIZE, \"String_Node_Str\", DEFAULT_SKIN, \"String_Node_Str\"...
"public Response get1() {\n return verify();\n}\n"
"public void testCreateMixedMapFromV8Object() {\n V8Object object = v8.executeObjectScript(\"String_Node_Str\");\n Map<String, ? super Object> map = V8ObjectUtils.toMap(object);\n assertEquals(4, map.size());\n assertTrue((boolean) map.get(\"String_Node_Str\"));\n assertEquals(1, (int) map.get(\"String_N...
"protected void drawGuiContainerBackgroundLayer(float v, int x, int y) {\n getShapeRenderer().handleMouseWheel();\n offsetLabel.setText(\"String_Node_Str\" + BlockPosTools.toString(tileEntity.getDataOffset()));\n dimensionLabel.setText(\"String_Node_Str\" + BlockPosTools.toString(tileEntity.getDataDim()));\n ...
"public void entryRemoved(EntryEvent event) {\n final ProxyKey proxyKey = (ProxyKey) event.getKey();\n logger.log(Level.FINEST, \"String_Node_Str\" + proxyKey);\n node.clusterService.enqueueAndReturn(new Processable() {\n\n public void process() {\n destroyProxy(proxyKey);\n ...
"private void goOneStep(DirectionData directionData, DirectionData otherSide, Map<Integer, List<Path>> hits, boolean stopAsEarlyAsPossible, DirectionData startSide) {\n if (!directionData.hasNext()) {\n return;\n }\n LevelData levelData = directionData.next();\n LevelData otherSideHit = otherSide.vis...
"public void close() throws BirtException {\n if (state == CLOSED)\n return;\n if (this.getRdSaveHelper().needsSaveToDoc()) {\n if (this.isEmpty()) {\n lastRowIndex = odiResult.getCurrentResultIndex() - 1;\n this.prepareCurrentRow();\n } else {\n while (this.n...
"public char next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n fetched = false;\n return next;\n}\n"
"public void start() {\n final Future<Connection> f = client.getClientExecutionService().submit(new InitialConnectionCall());\n try {\n int connectionAttemptPeriodMs = client.getClientConfig().getConnectionAttemptPeriod();\n int connectionAttempts = client.getClientConfig().getConnectionAttemptLimit...
"private static byte[] encodeSingleByteChars(String s) {\n final int length = s.length();\n final byte[] result = new byte[length];\n encode(s, 0, length, result);\n return result;\n}\n"
"public void createIndex(ClusterName targetCluster, IndexMetadata indexMetadata) throws ConnectorException {\n session = sessions.get(targetCluster.getName());\n CreateIndexStatement indexStatement = new CreateIndexStatement(indexMetadata, true, session);\n try {\n CassandraExecutor.execute(indexStateme...
"public Alert appendLink(HTMLAnchorElement anchorElement) {\n if (nonNull(anchorElement)) {\n anchorElement.classList.add(\"String_Node_Str\");\n element.appendChild(anchorElement);\n }\n return this;\n}\n"
"public static void registerRecipes() {\n ToolUpgrade.addUpgradeRecipes();\n FusionRecipeRegistry.registerRecipe(new SimpleFusionRecipe(new ItemStack(Items.STONE_AXE), new ItemStack(Items.WOODEN_AXE), 1000, 0, new ItemStack(Items.DIAMOND), new ItemStack(Blocks.OBSIDIAN), new ItemStack(DEFeatures.draconiumDust), n...
"public int hashCode() {\n return (connection != null ? connection.hashCode() : super.hashCode());\n}\n"
"public static boolean shouldOverwriteExampleFoodGroup(File exampleFoodGroup) throws IOException {\n FileInputStream exampleFoodGroupStream;\n try {\n exampleFoodGroupStream = new FileInputStream(exampleFoodGroup);\n } catch (FileNotFoundException e) {\n return true;\n }\n BufferedReader ex...
"public UserTO executeAction(HttpServletResponse response, UserTO userTO, String actionName) throws WorkflowException, NotFoundException {\n return userDataBinder.getUserTO(doExecuteAction(actionName, userTO, null), userWorkflow);\n}\n"
"public void handleStatement(Statement st) {\n String subject = st.getSubject().stringValue();\n String object = st.getObject().stringValue();\n addDocumentToIndex(subject, predicate, object);\n}\n"
"public Object applyToKeyInMap(ListConfigKey<T> key, Map target) {\n if (clearFirst) {\n StructuredModification<StructuredConfigKey> clearing = StructuredModifications.clearing();\n clearing.applyToKeyInMap(key, target);\n }\n for (T o : this) target.put(key.subKey(), o);\n return null;\n}\n"
"private void waitForFinish() {\n try {\n Thread.sleep(TIME_OF_SLOW_PROVIDERS + 200);\n } catch (final InterruptedException e) {\n Throws.throwUnhandledException(e);\n }\n}\n"
"public void run(NatTable natTable, MouseEvent event) {\n int rowIndex = natTable.getRowIndexByPosition(natTable.getRowPositionByY(event.y));\n if (rowIndex > 0) {\n swapRows(rowIndex, rowIndex - 1);\n update();\n selectRow(rowIndex - 1);\n }\n}\n"
"public void onServiceConnected(ComponentName className, IBinder service) {\n UrlDeviceDiscoveryService.LocalBinder localBinder = (UrlDeviceDiscoveryService.LocalBinder) service;\n localBinder.getServiceInstance().restartScan();\n mContext.unbindService(this);\n}\n"
"public long readPixel(int x, int y, int band) {\n TIFFImageReadParam t = new TIFFImageReadParam();\n Rectangle rect = new Rectangle(x, y, 1, 1);\n rect = rect.intersection(bounds);\n t.setSourceRegion(rect);\n TIFF tiff = getImage(band);\n try {\n int img = tiff.read(0, t).getRaster().getSampl...
"public void onStartScreen() {\n bind(nifty, nifty.getCurrentScreen());\n switch(nifty.getCurrentScreen().getScreenId()) {\n case \"String_Node_Str\":\n mapSelector.reset();\n initSkirmishPlayers();\n break;\n case \"String_Node_Str\":\n inputManager.addRa...
"private void advanceStop(VMInstanceVO vm, boolean cleanUpEvenIfUnableToStop) throws AgentUnavailableException, OperationTimedoutException, ConcurrentOperationException {\n State state = vm.getState();\n if (state == State.Stopped) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_N...
"public void testHashJoinJournalRecordSource() throws Exception {\n bw.append(new Band().setName(\"String_Node_Str\").setType(\"String_Node_Str\").setUrl(\"String_Node_Str\"));\n bw.append(new Band().setName(\"String_Node_Str\").setType(\"String_Node_Str\").setUrl(\"String_Node_Str\"));\n bw.append(new Band()....