content
stringlengths
40
137k
"protected void doTestConcurrentStartup(int size, final Duration staggerStart) throws Exception {\n useSharedTime();\n List<Thread> spawned = MutableList.of();\n for (int i = 0; i < size; i++) {\n final HaMgmtNode n = newNode();\n Thread t = new Thread() {\n public void run() {\n ...
"public boolean operate(ITreeTraverserContext<INodePO> ctx, INodePO parent, INodePO node, boolean alreadyVisited) {\n if (node.toString().equals(gdObject.toString())) {\n ctx.setContinued(false);\n INodePO selectedNode = node;\n INodePO editableNode = node.getParentNode();\n if (editableN...
"public void addRestrictionToCategoriesGrid(final ViewDefinitionState viewDefinitionState) {\n GridComponent categoriesGrid = (GridComponent) viewDefinitionState.getComponentByReference(L_GRID);\n categoriesGrid.setCustomRestriction(new CustomRestriction() {\n public void addRestriction(final SearchCriteri...
"public void updateUserSettings(DatabaseSession session, User user) throws BimserverLockConflictException, BimserverDatabaseException {\n UserSettings userSettings = user.getUserSettings();\n if (userSettings == null) {\n userSettings = session.create(UserSettings.class);\n user.setUserSettings(user...
"public void stop() {\n if (instanceLoader != null) {\n LOG.log(Level.INFO, \"String_Node_Str\");\n instanceLoader.unloadInstance();\n instance = null;\n instanceLoader = null;\n }\n}\n"
"public void startCubeMappedContainer(BeforeStart event, CubeRegistry cubeRegistry, ContainerRegistry containerRegistry) {\n Container container = ContainerUtil.getContainerByDeployableContainer(containerRegistry, event.getDeployableContainer());\n if (container == null) {\n return;\n }\n Cube cube =...
"public void setVertexValueBeforeWrapper(V vertexValueBefore) {\n this.vertexValueBefore = makeCloneOf(vertexValueBefore, vertexValueClass);\n}\n"
"public void testDataFor() throws IOException {\n final String baseDir = getTestPath();\n assertNotNull(baseDir);\n final ChronicleQueueBuilder.VanillaChronicleQueueBuilder builder = ChronicleQueueBuilder.vanilla(baseDir).dataCacheCapacity(32).cleanupOnClose(false);\n final VanillaDateCache dateCache = new ...
"public void readPortable(PortableReader reader) throws IOException {\n objectId = reader.getRawDataInput().readObject();\n}\n"
"public void choosePassiveHeatMaps(ArrayList<ContentVirtualArray> foreignContentVAs) {\n ContentGroupList groupList = contentVA.getGroupList();\n groupList.updateGroupInfo();\n selectedGroups.clear();\n for (ContentVirtualArray foreignVa : foreignContentVAs) {\n for (Integer contentID : foreignVa) {\...
"private void useProgram(GL3 gl, GLShaderProgram prog) {\n if (prog != myCommittedProgram) {\n prog.use(gl);\n if (isSelecting()) {\n myProgManager.setSelectionColor(gl, prog, mySelectingColor);\n mySelectingColorModified = false;\n }\n myCommittedProgram = prog;\n ...
"private void renderOverviewToDetailRelations(GL gl) {\n gl.glColor3f(0, 0, 0);\n gl.glLineWidth(1);\n for (ContentVirtualArray va : leftHeatMapWrapper.getContentVAsOfHeatMaps()) {\n for (Integer contentID : va) {\n Vec2f leftPos = leftHeatMapWrapper.getRightOverviewLinkPositionFromContentID(...
"public void clearAllSelections() {\n if (recordSelectionManager != null)\n recordSelectionManager.clearSelections();\n updateConnectionLinesBetweenDimensionGroups();\n}\n"
"public boolean process(Quadrilateral_F64 corners) {\n normToPixel.compute(corners.a.x, corners.a.y, pixelCorners.a);\n normToPixel.compute(corners.b.x, corners.b.y, pixelCorners.b);\n normToPixel.compute(corners.c.x, corners.c.y, pixelCorners.c);\n normToPixel.compute(corners.d.x, corners.d.y, pixelCorners...
"public synchronized boolean start(final HttpServletResponse response) throws IllegalStateException, TAPException {\n if (startedAt != null)\n throw new IllegalStateException(\"String_Node_Str\");\n service.getLogger().logTAP(LogLevel.INFO, this, \"String_Node_Str\", \"String_Node_Str\" + ID + \"String_Nod...
"private void cacheScript(ASMSource src, List<Action> actions) {\n if (!cache.contains(src)) {\n if (actions == null) {\n actions = src.getActions(SWF.DEFAULT_VERSION);\n }\n HilightedTextWriter writer = new HilightedTextWriter(true);\n src.getActionSourcePrefix(writer);\n ...
"private String getIndexName() {\n String result = null;\n if (name == null) {\n StringBuilder sb = new StringBuilder();\n if (IndexType.FULL_TEXT.equals(type)) {\n sb.append(\"String_Node_Str\");\n sb.append(tableName);\n } else {\n sb.append(tableName);\n ...
"public void alive() {\n execute(new Runnable() {\n\n public void run() {\n listener.alive();\n }\n });\n}\n"
"public static ParsedAndroidResources parseFrom(RuleContext ruleContext, AndroidResources resources, StampedAndroidManifest manifest) throws RuleErrorException, InterruptedException {\n boolean isAapt2 = AndroidAaptVersion.chooseTargetAaptVersion(ruleContext) == AndroidAaptVersion.AAPT2;\n AndroidResourceParsingA...
"public void setImage(final String imagePath) {\n gtk.gdk_threads_enter();\n if (imagePath != null && !imagePath.isEmpty()) {\n if (image != null) {\n libgtk.gtk_widget_destroy(image);\n }\n libgtk.gtk_widget_show_all(parentMenu);\n libgtk.gdk_threads_leave();\n libgt...
"public void close() {\n long size = getAppendOffset();\n super.close();\n if (fd != -1) {\n try {\n if (ff.truncate(fd, size)) {\n LOG.info().$(\"String_Node_Str\").$(fd).$(']').$();\n } else {\n if (!ff.supportsTruncateMappedFiles()) {\n ...
"public final JSONObject getJSONObject() throws ApiException {\n try {\n return new JSONObject(getContent());\n } catch (IOException e) {\n throw new ApiException(ResponseCode.ERROR_IO_EXCEPTION, e.getMessage(), e);\n } catch (JSONException e) {\n throw new ApiException(ResponseCode.ERROR_...
"public ExecutionResult execute(Item item) {\n boolean isModified = false;\n ProcessType processType = getProcessType(item);\n List nodes = processType.getNode();\n List<ConnectionType> connections = processType.getConnection();\n for (ConnectionType connection : connections) {\n String sourceNode...
"public Object decode(final Class targetClass, final Object fromDBObject, final MappedField mf) {\n if (mf == null || fromDBObject == null) {\n return fromDBObject;\n }\n final Class subtypeDest = mf.getSubClass();\n final Collection values = createNewCollection(mf);\n if (fromDBObject.getClass()....
"public void widgetSelected(SelectionEvent e) {\n TreeItem item = (TreeItem) e.item;\n File sfile = (File) item.getData();\n IFile sIFile = ResourceService.file2IFile(sfile);\n if (sIFile != null) {\n File[] dependencies = computeDependencies(sIFile);\n for (File file : dependencies) {\n ...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n XPathFragment rootFragment = null;\n XMLMarshaller marshaller = marshalRecord.getMars...
"public void addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) {\n getItemThrough().addInformation(UCWUtils.copyChangeItem(stack, getItemThrough()), worldIn, tooltip, flagIn);\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {\n if (!playerId.equals(this.getTargetPointer().getFirst(game, sourc...
"public <T extends VMInstanceVO> T advanceStart(T vm, Map<VirtualMachineProfile.Param, Object> params, User caller, Account account, DeploymentPlan planToDeploy) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException {\n long vmId = vm.getId();\n VirtualMachineGuru<T> vmG...
"public AppPurchase getAppPurchase() {\n return appPurchaseRepo.all().fetchOne();\n}\n"
"public static String[] exec(Map flags, final String[] cmd, String[] envp, File dir, String input, final Logger log, final Object context) {\n Closer closer = Closer.create();\n try {\n log.debug(\"String_Node_Str\" + context + \"String_Node_Str\" + Strings.join(cmd, \"String_Node_Str\"));\n final P...
"public void testPurchasingResponseTime() {\n CEPEventProcessor ep = new CEPEventProcessor();\n ep.setRuleName(\"String_Node_Str\");\n ActivityUnit e1 = new ActivityUnit();\n e1.setId(\"String_Node_Str\");\n RequestReceived me1 = new RequestReceived();\n me1.setTimestamp(System.currentTimeMillis());\n...
"private void deleteCsar(Csar csar) {\n csarDAO.delete(Topology.class, csar.getId());\n indexerService.deleteElements(csar.getName(), csar.getVersion(), csar.getWorkspace());\n csarDAO.delete(Csar.class, csar.getId());\n if (csarDAO.buildQuery(Csar.class).setFilters(singleKeyFilter(\"String_Node_Str\", csar...
"private void doScriptTest(ScriptBuilder script) {\n FileInfo test = new FileInfo(\"String_Node_Str\", 20, -1, false, false, script.buildTest());\n FileInfo expected = new FileInfo(test.getFilePath(), test.getTimestamp(), -1, test.isPatch(), test.isServeOnly(), script.buildExpect());\n FileInfo actual = new In...
"public void testLoadFilesWithPostProcessor() throws Exception {\n final FileInfo info = new FileInfo(\"String_Node_Str\", 1234, -1, false, true, null);\n final String infoData = \"String_Node_Str\";\n final boolean shouldReset = false;\n final FileInfo expected = new FileInfo(\"String_Node_Str\", 4321, fal...
"public ServiceBuilder setServiceObject(final Object serviceObject) {\n if (serviceObject == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n ClassMeta<?> classMeta = ClassMeta.classMeta(serviceObject.getClass());\n Iterable<MethodAccess> methods = classMeta.methods();\n Se...
"public static void main(String[] args) throws JournalException, IOException, JournalNetworkException, NumericException {\n final String pathToDatabase = args[0];\n final int instance = Numbers.parseInt(args[1]);\n final JournalConfiguration configuration = new JournalConfigurationBuilder() {\n {\n ...
"public static boolean updateHCatalogConnection(ConnectionItem connectionItem, boolean show, final boolean onlySimpleShow) {\n List<Relation> relations = RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(), RelationshipItemBuilder.LATEST_VERSION, RelationshipItemBuilder.PROPE...
"public int getDifference() {\n int score = getLowestScore();\n System.out.println(\"String_Node_Str\" + score);\n return score >= 0 ? score : 0;\n}\n"
"public Number cast(String src, Class<?> toType, String... args) {\n try {\n return (Number) Mirror.me(toType).getWrapperClass().getConstructor(String.class).newInstance(src);\n } catch (Exception e) {\n throw Lang.wrapThrow(e);\n }\n}\n"
"private void addRegionsSheet(Excel excel, List<Hub> hubs, Map<Long, List<Facility>> facilitiesByHubId) {\n excel.addSheet(\"String_Node_Str\", hubs, asList(col(\"String_Node_Str\", (Hub h) -> h.name), col(\"String_Node_Str\", (Hub h) -> addressText(h.address)), col(\"String_Node_Str\", (Hub h) -> h.location.getX())...
"public void associationChanged(Association a) throws TopicMapException {\n if (!topicMapListeners.isEmpty()) {\n LayeredAssociation la = null;\n if (a instanceof LayeredAssociation && a.getTopicMap() == this)\n la = (LayeredAssociation) a;\n else\n la = makeLayeredAssociat...
"private String applyIntrinsicFont(String fontName, int fontStyle, float fontSize, String text) {\n setFont(fontName, fontSize);\n return (\"String_Node_Str\" + text + \"String_Node_Str\");\n}\n"
"public IBaseDataSourceDesign createDataSourceDesign(DataSourceHandle dataSource) throws BirtException {\n BaseDataSourceDesign datasourceDesign = this.dteSession.getModelAdaptor().adaptDataSource(dataSource);\n IBaseDataSourceEventHandler eventHandler = null;\n if (dataSource instanceof OdaDataSourceHandle)\n...
"private void prepareEmfTreeFromConnection(XmlFileConnection connection) {\n schemaNode.getChildren().clear();\n EList root = connection.getRoot();\n EList loop = connection.getLoop();\n EList group = connection.getGroup();\n TreeNode rootNode = null;\n TreeNode current = null;\n TreeNode temp = nu...
"protected void tearDown() throws MojoExecutionException, MojoFailureException {\n if (isSetProjectFile) {\n project.getArtifact().setFile(getOutput());\n }\n Report report = builder.getReport();\n if (linkReport) {\n writeLinkReport(report);\n }\n if (configurationReport) {\n wri...
"private void doText(String value, boolean isAttribute) throws IOException {\n if (escapeHandler != null) {\n StringWriter sw = new StringWriter();\n escapeHandler.escape(value.toCharArray(), 0, value.length(), isAttribute, sw);\n textBuffer.setEscape(sw.toString(), isAttribute);\n } else {\n...
"private ComplexEventChunk processInBatchGroupBy(ComplexEventChunk complexEventChunk) {\n Map<String, ComplexEvent> groupedEvents = new LinkedHashMap<String, ComplexEvent>();\n complexEventChunk.reset();\n synchronized (this) {\n while (complexEventChunk.hasNext()) {\n ComplexEvent event = co...
"public void visitColumn(ColumnHandle handle) {\n ColumnDesign col = new ColumnDesign();\n setupStyledElement(col, handle);\n DimensionType width = createDimension(handle.getWidth(), false);\n col.setWidth(width);\n boolean supress = handle.suppressDuplicates();\n col.setSuppressDuplicate(supress);\n ...
"public ObservableValue<String> call(TableColumn.CellDataFeatures<Profile.PairLogoRelativeRectangle, String> p) {\n String newLabel = \"String_Node_Str\";\n if (p.getValue().getLogo() != null)\n newLabel = p.getValue().getLogo().getLabel();\n return new ReadOnlyObjectWrapper(newLabel);\n}\n"
"public void connect() {\n if (!_wsIsOpen) {\n try {\n _httpClient.websocket(\"String_Node_Str\", new Handler<WebSocket>() {\n\n public void handle(WebSocket websocket) {\n _wsIsOpen = true;\n _webSocket = websocket;\n _current...
"public static void updateColumnCache(DataSetHandle dataSetHandle, boolean holdEvent) {\n try {\n DataService.getInstance().updateColumnCache(dataSetHandle, holdEvent);\n } catch (BirtException ex) {\n logger.entering(DataSetUIUtil.class.getName(), \"String_Node_Str\", new Object[] { ex });\n }\n...
"private String createJson(int column, FeatureType[] type, List<Map<String, Integer>> graphFrequencies, List<Integer> missing, List<Integer> unique, List<DescriptiveStatistics> descriptiveStats) {\n String json = \"String_Node_Str\";\n String freqs = \"String_Node_Str\";\n Object[] categoryNames = graphFrequen...
"private Join joinSingular(From path) {\n if (joinType == null) {\n return path.join(singular);\n return path.join(singular, joinType);\n}\n"
"public void getMarkersNLabels(List allMarkers, List allLabels) {\n allMarkers.addAll(fFirstDC.getAllMarkers());\n fFirstDC.getAllMarkers().clear();\n allLabels.addAll(fFirstDC.getAllLabels());\n fFirstDC.getAllLabels().clear();\n for (java.util.Iterator<DeferredCache> iter = fDeferredCacheList.iterator(...
"public void init(FMLInitializationEvent event) {\n Features.init();\n NetworkRegistry.INSTANCE.registerGuiHandler(this, new ChiselGuiHandler());\n addWorldgen(Features.MARBLE, ChiselBlocks.marble, Configurations.marbleAmount);\n addWorldgen(Features.LIMESTONE, ChiselBlocks.limestone, Configurations.limesto...
"private String getDaoFramework() {\n if (daoFramework.equalsIgnoreCase(\"String_Node_Str\")) {\n return \"String_Node_Str\";\n } else {\n return fw;\n }\n}\n"
"public void setAlarmForNotification() {\n AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(SummitNotificationReceiver.ACTION_SUMMIT_NOTIFICATION);\n am.set(AlarmManager.RTC_WAKEUP, SUMMIT_DATE_TIME.getMillis(), PendingIntent.getBroadcast(context, 0...
"public int hashCode() {\n int result = className != null ? className.hashCode() : 0;\n result = 31 * result + (memberName != null ? memberName.hashCode() : 0);\n result = 31 * result + (descriptor != null ? descriptor.hashCode() : 0);\n return result;\n}\n"
"public boolean addRole(SyncopeRole role) {\n if (this.roles == null)\n this.roles = new HashSet<SyncopeRole>();\n return this.roles.add(role);\n}\n"
"public int delete(Uri uri, String selection, String[] selectionArgs) {\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n int count = 0;\n long rowId = 0;\n switch(sURLMatcher.match(uri)) {\n case ITEMS:\n {\n count = db.delete(DATABASE_TABLE, selection, selectionArgs)...
"public void setActiveItem(T activeItem) {\n synchronized (itemsMutex) {\n if (items.contains(activeItem)) {\n this.activeItem = activeItem;\n }\n }\n}\n"
"public static void assertDataCached(Cache cache, Uri uri, byte[] expected) throws IOException {\n DataSource dataSource = new CacheDataSource(cache, DummyDataSource.INSTANCE, 0);\n DataSpec dataSpec = new DataSpec(uri, DataSpec.FLAG_ALLOW_CACHING_UNKNOWN_LENGTH);\n String messageToPrepend = \"String_Node_Str\...
"protected ResourceLocation getEntityTexture(T entity) {\n return TEXTURE_ONE;\n}\n"
"public Query setFirstResult(int startPosition) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
"private void stopSample() {\n if (isStopped)\n return;\n isStopped = true;\n stopButton.setEnabled(false);\n pauseButton.setEnabled(false);\n startButton.setEnabled(true);\n model.clear();\n getSaveButton().setEnabled(true);\n addToStatusComboBox(\"String_Node_Str\");\n updateStatusCo...
"private void build(int from, int to, boolean stopTarget, boolean stopChars, boolean stopTerrain) {\n int w = Level.WIDTH;\n int x0 = from % w;\n int x1 = to % w;\n int y0 = from / w;\n int y1 = to / w;\n int dx = x1 - x0;\n int dy = y1 - y0;\n int stepX = dx > 0 ? +1 : -1;\n int stepY = dy >...
"public void writeAllFields(Map<FieldKey, String> fields) {\n try {\n for (final Entry<FieldKey, String> e : fields.entrySet()) {\n this.tag.setField(e.getKey(), e.getValue().replace(\"String_Node_Str\", \"String_Node_Str\").trim());\n }\n } catch (KeyNotFoundException | FieldDataInvalidE...
"public void GenerateKML() throws IOException, ImportException, ParseException, RuntimeException, OutOfMemoryError {\n time = -System.currentTimeMillis();\n mrsd = new ThreadLocalSpreadDate(mrsdString);\n switch(analysisType) {\n case FIRST_ANALYSIS:\n tree = (RootedTree) treeImporter.importN...
"public void writeExternal(DataOutputStream out) throws IOException {\n ExtUtil.write(out, new ExtWrapMapPoly(params));\n ExtUtil.writeString(out, url);\n}\n"
"public static boolean isAlreadyConnected(WifiManager wifiManager, String bssid) {\n if (bssid != null && wifiManager != null) {\n if (wifiManager.getConnectionInfo() != null && wifiManager.getConnectionInfo().getBSSID() != null && wifiManager.getConnectionInfo().getIpAddress() != 0 && Objects.equals(bssid, w...
"public void onClick(View v) {\n final MaterialDialog materialDialog = new MaterialDialog(mContext);\n materialDialog.setTitle(\"String_Node_Str\").setMessage(\"String_Node_Str\").setPositiveButton(\"String_Node_Str\", new View.OnClickListener() {\n public void onClick(View v) {\n final Record r...
"public Object waitAndGetResult() {\n while (true) {\n try {\n Object obj = responses.poll(5, TimeUnit.SECONDS);\n if (obj != null) {\n return obj;\n }\n node.checkNodeState();\n } catch (InterruptedException e) {\n handleInterrupted...
"private void maybeSanityCheck(Node externs, Node root) {\n if (sanityCheck != null) {\n sanityCheck.create(compiler).process(externs, root);\n if (inLoop) {\n NodeUtil.verifyScopeChanges(mtoc, jsRoot, true);\n setSanityCheckState();\n }\n }\n}\n"
"private int negamax(Board board, int alpha, int beta, int depth) {\n i++;\n if (board.currentPlayer().equals(board.winner()))\n return Integer.MAX_VALUE;\n else if (board.players.other(board.currentPlayer()).equals(board.winner()))\n return Integer.MIN_VALUE + 1;\n else if (depth == 0)\n ...
"protected Collection<String[]> glob() throws FileResourceException {\n List<String[]> results = new ArrayList<String[]>();\n Pattern p = Pattern.compile(toRegexp(srf.getName()));\n Collection<GridFile> files = list(fr, srf.getDirectory(), p);\n for (GridFile f : files) {\n Matcher m = p.matcher(f.ge...
"public static String constructXML(List namValList, String uri) {\n uri = LimeXMLUtils.encodeXML(uri);\n int size = namValList.size();\n String first = \"String_Node_Str\";\n String last = \"String_Node_Str\";\n String prevString = \"String_Node_Str\";\n ArrayList tagsToClose = new ArrayList();\n b...
"public void setResubmitPossible(boolean isResubmitPossible) {\n this.resubmitPossible = isResubmitPossible;\n}\n"
"public boolean execute(final PlotPlayer plr, final String... args) {\n String world;\n int size_x = 1;\n int size_z = 1;\n String schematic = \"String_Node_Str\";\n if (PlotSquared.getPlotWorlds().size() == 1) {\n world = PlotSquared.getPlotWorlds().iterator().next();\n } else {\n world...
"public static void itemAdded(Context context, Item item) throws SQLException {\n Map table2dc = new HashMap();\n table2dc.put(\"String_Node_Str\", item.getDC(\"String_Node_Str\", null, Item.ANY));\n table2dc.put(\"String_Node_Str\", item.getDC(\"String_Node_Str\", Item.ANY, Item.ANY));\n table2dc.put(\"Str...
"public void proximityTrigger(PlayerMoveEvent event) {\n if (!event.getTo().getBlock().equals(event.getFrom().getBlock())) {\n Location toBlockLocation = event.getTo().getBlock().getLocation();\n Iterator<dNPC> it = DenizenAPI.getCurrentInstance().getNPCRegistry().getSpawnedNPCs().iterator();\n ...
"public static Cookie toCustomCookie(org.apache.http.cookie.Cookie cookie) {\n BasicClientCookie newCookie = new BasicClientCookie(cookie.getName(), cookie.getValue());\n newCookie.setComment(cookie.getComment());\n newCookie.setCommentURL(cookie.getCommentURL());\n newCookie.setDomain(cookie.getDomain());\...
"public void startDependency() {\n preOrderTraverse = DependencyBuilder.getStartupOrder(component);\n if (!preOrderTraverse.isEmpty()) {\n String dependency = preOrderTraverse.poll();\n if (dependency.contains(\"String_Node_Str\")) {\n startGroupMonitor(this, dependency.substring(6), comp...
"public void PermittedTriggersAreDistinctValues() throws Exception {\n StateMachine<State, Trigger> sm = new StateMachine<>(State.B);\n sm.configure(State.B).substateOf(State.C).permit(Trigger.X, State.A);\n sm.configure(State.C).permit(Trigger.X, State.B);\n List<Trigger> permitted = sm.getPermittedTrigger...
"private void check(Component component) {\n for (Component current : getComponents()) {\n if (current.getType().equals(component.getType())) {\n final String msg = \"String_Node_Str\" + component.getType();\n log.error(msg);\n String descriptor = current.getToolkitDesriptor()...
"public synchronized TooltipPainter setText(String text) {\n this.text = text;\n this.textLayout = null;\n return this;\n}\n"
"private MethodDeclaration _createGetCheckpointMethod(AST ast, CompilationUnit root, TypeAnalyzerState state, boolean isAnonymous) {\n String methodName = _getGetCheckpointMethodName(isAnonymous);\n Class currentClass = state.getCurrentClass();\n Class parent = currentClass.getSuperclass();\n if (hasMethod(...
"public static void onCurrencyAdd(CurrencyAddEvent event) {\n if (event.isAdded()) {\n return;\n }\n UUID target = event.getTarget();\n if (NameManager.getUsername(target).equals(Economy.getServerAccountName())) {\n return;\n }\n float taxAmount = isServerAccount(target) ? Properties.SER...
"public byte[] response(byte[] salt_bytes, byte[] Bbytes) throws NoSuchAlgorithmException {\n byte[] xb = calculatePasswordHash(username, password, Util.trim(salt_bytes));\n this.x = new BigInteger(1, xb);\n String k_string = \"String_Node_Str\";\n this.v = calculateV(k_string);\n byte[] digest_of_n = ne...
"public void propertyChange(PropertyChangeEvent evt) {\n if (LookupManager.PROP_ACTIVE_LOOKUP.equals(evt.getPropertyName())) {\n final Lookup lookup = (Lookup) evt.getNewValue();\n if (lookup != null && lookup.isFocused()) {\n final Editor editor = lookup.getEditor();\n CommandGro...
"private void addActionsForCommentNotification(NotificationCompat.Builder builder, String noteId) {\n boolean areActionsSet = false;\n Note note = NotificationsTable.getNoteById(noteId);\n if (note != null) {\n if (note.canReply()) {\n addCommentReplyActionForCommentNotification(builder, note...
"public void testSetSource() {\n TestEvent event = new TestEvent(fEvent1);\n assertEquals(\"String_Node_Str\", fSource, event.getSource());\n String source2 = \"String_Node_Str\";\n event.setSource(source2);\n assertEquals(\"String_Node_Str\", source2, event.getSource());\n event.setSource(null);\n ...
"public boolean isValidPosition(IPathCalculatable pathCalculatable, int x, int y) {\n return isInBounds(x, y) && !isBlocked(x, y) && (!pathCalculatable.needsPlayersGround() || pathCalculatable.getPlayer().getPlayerId() == getPlayerIdAt(x, y));\n}\n"
"public boolean handle(Object receive) throws Exception {\n if (receive instanceof HttpResponse) {\n HttpResponse response = (HttpResponse) receive;\n HttpResponseStatus status = response.getStatus();\n if (HttpResponseStatus.CONTINUE.equals(status)) {\n InputStreamHandler ish = conte...
"public void registerStateMapper() {\n String blockPath = isDouble() ? \"String_Node_Str\" : \"String_Node_Str\";\n Proxies.render.registerStateMapper(this, new WoodTypeStateMapper(this, blockPath, getVariant()));\n}\n"
"public void setIssueEvent(IssueStoryEvent issueEvent) {\n applyGenericIssueStory(issueEvent);\n textView.setText(\"String_Node_Str\");\n String eventType = issueEvent.event.event;\n if (eventType.equals(\"String_Node_Str\") || eventType.equals(\"String_Node_Str\")) {\n String text = issueEvent.event...
"public QualityMeasureColumnOriented evaluate() {\n int[] indices = getIndices();\n DataHandleInternal output = getOutput();\n String[][][] hierarchies = getHierarchies();\n double[] result = new double[indices.length];\n double[] min = new double[indices.length];\n double[] max = new double[indices.l...
"public String getFQCN() {\n return packageName + \"String_Node_Str\" + tableSourceClassName;\n}\n"
"public int readInt(int byteIndex) {\n return view.getInt32(byteIndex, littleEndian);\n}\n"
"public void drawHighlighted(Canvas c, Highlight[] indices) {\n for (int i = 0; i < indices.length; i++) {\n int xIndex = indices[i].getXIndex();\n CandleDataSet set = mChart.getCandleData().getDataSetByIndex(indices[i].getDataSetIndex());\n if (set == null)\n continue;\n mHigh...