content
stringlengths
40
137k
"public void register(ExtensionBuilder builder) {\n builder.observer(CubeConfigurator.class).observer(CubeRegistrar.class).observer(CubeLifecycleController.class).observer(ClientCubeControllerCreator.class);\n builder.service(ResourceProvider.class, CubeControllerProvider.class).service(TestEnricher.class, HostIp...
"String evaluatePropertyBindingExpr(String expr) throws BirtException {\n Object result = JavascriptEvalUtil.evaluateScript(null, jsScope, expr, org.eclipse.birt.core.script.ScriptExpression.defaultID, 0);\n return result == null ? null : result.toString();\n}\n"
"public int hashCode() {\n int result = slowOperations != null ? slowOperations.hashCode() : 0;\n result = 31 * result + (int) (creationTime ^ (creationTime >>> 32));\n result = 31 * result + (int) (maxVisibleSlowOperationCount ^ (maxVisibleSlowOperationCount >>> 32));\n return result;\n}\n"
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (!super.equals(obj))\n return false;\n if (getClass() != obj.getClass())\n return false;\n FixedValueHLLCMockup other = (FixedValueHLLCMockup) obj;\n if (!value.equals(other.value))\n return false;\n ...
"public static CharSequence getText(Context context, int id, Object... args) {\n return HtmlUtil.applyFix(SpanFormatter.format(context.getResources().getConfiguration().locale, context.getText(id), args));\n}\n"
"private UnidirectionalEdgeImpl createPreviewUnidirectionalEdge(GraphImpl previewGraph, org.gephi.graph.api.Edge sourceEdge) {\n org.gephi.graph.api.EdgeData sourceEdgeData = sourceEdge.getEdgeData();\n org.gephi.graph.api.TextData sourceEdgeTextData = sourceEdgeData.getTextData();\n String label = sourceEdgeD...
"public <R> R sendRequest(HttpRequest request, ContentHandler<HttpResponse, R> handler) throws RedmineException {\n logger.debug(request.getRequestLine().toString());\n request.addHeader(\"String_Node_Str\", \"String_Node_Str\");\n final HttpClient httpclient = client;\n try {\n final HttpResponse ht...
"public void startSample() throws CouldntAccessComponentEx, TypeNotSupportedEx, CouldntAccessPropertyEx, SamplingManagerException {\n samp = new Sampler();\n synchronized (this) {\n System.out.println(\"String_Node_Str\" + initializations);\n if (initializations == 0) {\n try {\n ...
"public void drawCoarse(MultiMap<MiniRoof, FacState> todo) throws IOException {\n RoofTexApp rta = mr.roofTexApp;\n BufferedImage src = ImageIO.read(Tweed.toWorkspace(rta.coarse));\n NetInfo ni = NetInfo.get(this);\n int count = 0;\n for (Loop<Point2d> verticalPts : mr.getAllFaces()) {\n TwoRects ...
"public void fire() throws IllegalActionException {\n Workspace worksp = workspace();\n synchronized (this) {\n _mutationBlockCount = 0;\n _mutationsRequested = false;\n while (_readBlockCount != _getActiveActorsCount()) {\n while (!_areActorsDeadlocked()) {\n worksp...
"public String editBulkItemsInlandOrigin() {\n Map sessionAttributes = ActionContext.getContext().getSession();\n try {\n String[] checkedItemsInSession = (String[]) sessionAttributes.get(\"String_Node_Str\");\n for (String value : checkedItemsInSession) {\n String modeOfService = session...
"void startCleanup(boolean forced) {\n final long now = System.currentTimeMillis();\n if (locallyOwnedMap != null) {\n locallyOwnedMap.evict(now);\n }\n if (mapNearCache != null) {\n mapNearCache.evict(now, false);\n }\n final Set<Record> recordsDirty = new HashSet<Record>();\n final ...
"protected void assertTypeOneOf(String contents, int start, int end, String... expectedTypes) throws Throwable {\n boolean ok = false;\n Throwable error = null;\n for (int i = 0; !ok && i < expectedTypes.length; i++) {\n try {\n assertType(contents, start, end, expectedTypes[i]);\n ...
"public boolean setKernel(SyntacticTerm term) {\n SyntacticRank rank = term.rank();\n SyntacticRank crank = SyntacticRank.contract(rank, _degree);\n if (crank == null)\n return false;\n _kernel = term;\n return true;\n}\n"
"private V initVertex(Vertex v) {\n V vertex;\n if (!vertexIds.containsKey(v.getId())) {\n vertex = config.getVertexFactory().createVertex(v.getLabel(), PropertyList.createFromMap(v.getProperties()), createGradoopIdSet(v));\n vertexIds.put(v.getId(), vertex.getId());\n vertices.put(vertex.get...
"public void T_filter_6() throws IOException {\n List<PrimitiveObject> dic = new ArrayList<PrimitiveObject>();\n dic.add(new StringObj(\"String_Node_Str\"));\n dic.add(new StringObj(\"String_Node_Str\"));\n dic.add(new StringObj(\"String_Node_Str\"));\n dic.add(new StringObj(\"String_Node_Str\"));\n d...
"public void createFieldEditors() {\n Composite parent = getFieldEditorParent();\n DirectoryFieldEditor directoryFieldEditor = new DirectoryFieldEditor(PreferenceConstants.PTII, \"String_Node_Str\", getFieldEditorParent()) {\n protected void fireValueChanged(String property, Object oldValue, Object newValu...
"private int computeHashCode() {\n int hash = 42;\n hash = Util.hash(hash, schemaName);\n hash = Util.hash(hash, schemaChecksum);\n hash = Util.hash(hash, cubeName);\n hash = Util.hash(hash, measureName);\n for (SegmentColumn col : getSortedColumns()) {\n hash = Util.hash(hash, col.columnExpres...
"public void execute() {\n if (extendedTableModel instanceof MetadataTableEditor) {\n MetadataTableEditor editor = (MetadataTableEditor) extendedTableModel;\n IMetadataTable metadataTable = editor.getMetadataTable();\n List<IMetadataColumn> listColumns = metadataTable.getListColumns();\n ...
"public void setProtected(short x, short y, boolean setProtected) {\n this.protectedGrid.set(getIdx(x, y), setProtected);\n}\n"
"private void displayAvatar(CommandSender sender) {\n List<CoreAbility> abilities = CoreAbility.getAbilitiesByElement(Element.AVATAR);\n if (abilities.isEmpty()) {\n sender.sendMessage(ChatColor.YELLOW + noAbilitiesAvailable.replace(\"String_Node_Str\", Element.AVATAR.getColor() + \"String_Node_Str\" + Cha...
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n if (inHud) {\n jButton1.setText(\"String_Node_Str\");\n jButton1.setToolTipText(\"String_Node_Str\");\n } else {\n jButton2.setText(\"String_Node_Str\");\n jButton2.setToolTipText(\"String_Node_Str\");\n }\n ...
"protected boolean needsCustomInvWrapper() {\n return false;\n}\n"
"public String receive() throws MessageQueueException, UnsupportedEncodingException {\n checkOpen();\n Message msg = msmqHandle.receive(2000);\n return msg.getBodyAsString();\n}\n"
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.show_habit, container, false);\n activity = (ShowHabitActivity) getActivity();\n habit = activity.habit;\n habit.checkmarks.rebuild();\n Button btEditHistory = (But...
"public void addsEventOnSDKExitWithDeveloperError() {\n setupActivity(new TestClientTokenBuilder().withAnalytics().build());\n waitForAddPaymentFormHeader();\n mFragment.postCallback(new AuthenticationException(\"String_Node_Str\"));\n waitForActivityToFinish(mActivity);\n verifyAnalyticsEvent(\"String_N...
"public void onDisconnect(int statusCode, String reason) {\n logger.info(\"String_Node_Str\" + remoteAddress + \"String_Node_Str\" + statusCode + \"String_Node_Str\" + reason + \"String_Node_Str\");\n Optional<WebSocketEventSubscription> optionalSubscription = subscriptions.findSubscriptionForConsumer(channelName...
"protected void handleSuccess(IndexerApiAccessType accessType, Long responseTime) {\n getConfig().setState(IndexerConfig.State.ENABLED);\n getConfig().setLastError(null);\n getConfig().setDisabledUntil(null);\n getConfig().setDisabledLevel(0);\n configProvider.getBaseConfig().saveInternal();\n saveApi...
"private static BaseMessage parsePayload(final Object payload) throws PayloadParseException {\n if (payload instanceof BaseMessage) {\n return (BaseMessage) payload;\n } else if (payload instanceof String) {\n try {\n return (BaseMessage) BindingManager.getBinding(ReportingQueryBinding.RE...
"private DatabaseMetaData createJtdsDatabaseMetaData(Connection conn) {\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IMetadataService.class)) {\n IService service = GlobalServiceRegister.getDefault().getService(IMetadataService.class);\n if (service != null) {\n return ((IMet...
"protected String getCorrectVariableName(ContextItem contextItem, String originalVariableName, EHadoopParamName noSqlParam) {\n Set<String> contextVarNames = ContextUtils.getContextVarNames(contextItem);\n if (contextVarNames != null && !contextVarNames.contains(originalVariableName)) {\n for (String varNa...
"public Result getInternalServerErrorResult(Context context, Exception exception) {\n logger.error(\"String_Node_Str\", context.getRequestPath(), context.getRoute().getControllerClass(), context.getRoute().getControllerMethod(), exception);\n String messageI18n = messages.getWithDefault(NinjaConstant.I18N_NINJA_S...
"public void setOwner(ContextualFacetOwnerInterface owner) {\n TLContextualFacet newFacet = getTLModelObject();\n newFacet.setOwningEntity(owner.getTLModelObject());\n if (getLibrary() != null)\n newFacet.setOwningLibrary(getLibrary().getTLLibrary());\n else\n newFacet.setOwningLibrary(owner.g...
"public void init() throws IOException {\n this.clearProcessList();\n this.addProcesses(this.args.getStages().createProcesses(this.conanExecutorService));\n if (this.args.isDoInitialChecks() && !this.isOperational(new DefaultExecutionContext(new Local(), null, this.args.getExecutionContext().getExternalProcess...
"private void createContent(Composite mainComposite) {\n header = new HeaderComposite(mainComposite, SWT.NONE);\n if (this.foxManager.isNoLoopInComponent()) {\n header.updateStatus(Messages.getString(\"String_Node_Str\"));\n }\n xmlToSchemaSash = new SashForm(mainComposite, SWT.HORIZONTAL | SWT.SMOOT...
"public void map(PactRecord record, Collector out) throws Exception {\n keyString = record.getField(0, keyString);\n valueString = record.getField(1, valueString);\n LOG.debug(\"String_Node_Str\" + keyString.toString() + \"String_Node_Str\" + valueString.getValue() + \"String_Node_Str\");\n if (Integer.pars...
"public void tstConfigLocationsInMetaInfWithWildcardHeader() {\n Dictionary headers = new Hashtable();\n headers.put(\"String_Node_Str\", \"String_Node_Str\");\n EntryLookupControllingMockBundle aBundle = new EntryLookupControllingMockBundle(headers);\n aBundle.setResultsToReturnOnNextCallToFindEntries(META...
"private static <T> void parEvalPlus(ImmutableList<QueryExpression> operands, final QueryEnvironment<T> env, final VariableContext<T> context, final ThreadSafeCallback<T> callback, ForkJoinPool forkJoinPool) throws QueryException, InterruptedException {\n ArrayList<QueryTask> queryTasks = new ArrayList<>(operands.si...
"public void traverse() {\n FLASHPhaseConfiguration outerLoopConfiguration;\n if (config.isBinaryPhaseRequired()) {\n outerLoopConfiguration = config.getBinaryPhaseConfiguration();\n } else {\n outerLoopConfiguration = config.getLinearPhaseConfiguration();\n }\n lattice.setTagTrigger(config...
"private static Vector<String> getHiddenButtons() {\n Vector<String> hiddenButtons = new Vector<>();\n if (ccApp == null) {\n hiddenButtons.addAll(Arrays.asList(HomeButtons.buttonNames));\n return hiddenButtons;\n }\n Profile p = ccApp.getCommCarePlatform().getCurrentProfile();\n if ((p != ...
"public boolean hasResources() {\n return !super.getExpressions().isEmpty();\n}\n"
"private void match(byte[] s, int length) throws IOException {\n for (int i = 0; !done && i < length; i++) {\n if (s[i] == match[matchPos]) {\n if (++matchPos >= match.length)\n write(found());\n else\n reset();\n }\n}\n"
"public boolean visitVertices(Predicate<Atom> predicate, Operation<ReadableAtomSpace, Atom> op) {\n for (Atom e : getVertices()) {\n if (predicate.evaluate(e)) {\n boolean result = op.operate(this, e);\n if (!result)\n return false;\n }\n }\n return true;\n}\n...
"public boolean addPlayer(Player p) {\n if (!p.hasPermission(\"String_Node_Str\" + gameID)) {\n debug(\"String_Node_Str\" + \"String_Node_Str\" + gameID);\n msgmgr.sendFMessage(PrefixType.WARNING, \"String_Node_Str\", p);\n return false;\n }\n HookManager.getInstance().runHook(\"String_Nod...
"public List getControlTypes() {\n List types = new ArrayList();\n String uri = \"String_Node_Str\";\n Type stringType = typeHelper.getType(\"String_Node_Str\", \"String_Node_Str\");\n SDOProperty xmlDataTypeProperty = (SDOProperty) typeHelper.getOpenContentProperty(SDOConstants.SDOXML_URL, SDOConstants.SDO...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Set<Card> cardsToExile = controller.getGraveyard().getCards(new FilterInstantOrSorceryCard(), source.getId(), source.getControllerId(), game);\n if (!cards...
"void initComponent() throws JspException {\n if (_roottag == null)\n throw new IllegalStateException(\"String_Node_Str\" + this);\n composeHandle = new ComposerHandler(_attrMap.remove(\"String_Node_Str\"));\n try {\n Page page = this._roottag.getPage();\n _compDef = page.getComponentDefin...
"public void onStatusChanged(String provider, int status, Bundle extras) {\n if (status == LocationProvider.OUT_OF_SERVICE) {\n tracer.info(provider + \"String_Node_Str\");\n loggingService.StopManagerAndResetAlarm();\n }\n if (status == LocationProvider.AVAILABLE) {\n tracer.debug(provide...
"public void close(String reason) {\n super.close(reason);\n this.releaseLock();\n synchronized (this) {\n if (isAuthenticated) {\n isAuthenticated = false;\n AtomicInteger num = conNums.get(password);\n if (num != null) {\n int v = num.decrementAndGet();\...
"public Highlight getHighlightByTouchPoint(float x, float y) {\n if (mDataNotSet || mCurrentData == null) {\n Log.e(LOG_TAG, \"String_Node_Str\");\n return null;\n }\n float[] pts = new float[2];\n pts[0] = x;\n pts[1] = y;\n Matrix tmp = new Matrix();\n mMatrixOffset.invert(tmp);\n ...
"public VjoGenerator writeSatisfies(final List<? extends IJstType> needs) {\n if (needs == null || needs.size() == 0) {\n return this;\n } else if (needs.size() == 0) {\n writeSatisfies(needs.get(0));\n return this;\n }\n StringBuffer sb = new StringBuffer();\n int i = 0;\n for (I...
"public void doABOR(FtpRequest request, FtpWriter out) throws IOException {\n resetState();\n mDataConnection.closeDataSocket();\n out.write(mFtpStatus.getResponse(225, request, mUser, null));\n}\n"
"public String process(Object object, String name, Object value) {\n if (object instanceof Button && name.equals(\"String_Node_Str\") && StringUtil.isNotBlank(((Button) object).getType())) {\n ButtonType buttonType = ButtonType.valueOf(((Button) object).getType());\n if (buttonType != null) {\n ...
"private <P, R> Response<R> sendRequestWebSocket(Request<P> request, Class<R> resultClass) {\n Future<Response<JsonElement>> responseFuture = null;\n if (request.getId() != null) {\n responseFuture = pendingRequests.prepareResponse(request.getId());\n }\n try {\n synchronized (wsSession) {\n ...
"public static void lostPassword(User user, String newPassword) {\n Message message = new Message();\n message.setSubject(Messages.get(\"String_Node_Str\") + \"String_Node_Str\" + user.firstName);\n message.setSender(\"String_Node_Str\");\n message.setTo(user.email);\n String template = \"String_Node_Str...
"public void run() {\n while (true) {\n try {\n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n socket.receive(packet);\n Packet type = Packet.getType(packet.getData());\n switch(type) {\n case S...
"public void read(final CramCompressionRecord cramRecord) {\n try {\n cramRecord.flags = bitFlagsCodec.readData();\n cramRecord.compressionFlags = compressionBitFlagsCodec.readData();\n if (refId == -2)\n cramRecord.sequenceId = refIdCodec.readData();\n else\n cramRe...
"public boolean isSoldOut() {\n if (!isBuyable())\n return false;\n for (PublicCertificate cert : certificates.view()) {\n Owner owner = cert.getOwner();\n if (owner instanceof BankPortfolio && owner != Bank.getUnavailable(this)) {\n return false;\n }\n return true;\n...
"private void scrollTable(ScrollBar widget, Event event) {\n int newSelectionValue = widget.getSelection();\n if (event.keyCode == SWT.ARROW_LEFT) {\n newSelectionValue -= TableCanvas.SCROLL_HORIZONTAL_STEP;\n } else if (event.keyCode == SWT.ARROW_RIGHT) {\n newSelectionValue += TableCanvas.SCROL...
"public long getMatchTime() {\n return this.config.getInt(20, \"String_Node_Str\");\n}\n"
"public void testComputedMeasure() 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 dim1 = colu...
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n try {\n Collection<ManagedExecutorService> managedExecutorServices = domain.getResources().getResources(ManagedExecutorService.class);\n for (ManagedExecutorService managedExecutorService :...
"public void testReferenceInDestructuringPatternDefaultValue() {\n inFunction(lines(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n inFunction(lines(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n inFunction(\"String_Node_Str\");\n inFunction(\"Stri...
"protected boolean accept(String className) {\n if (m_excludeTypePattern.isEmpty() && m_includeTypePattern.isEmpty()) {\n return true;\n }\n ResolvedType classInfo = weaver.getWorld().resolve(UnresolvedType.forName(className), true);\n for (Iterator iterator = m_excludeTypePattern.iterator(); iterato...
"public String getVersion() {\n IFacetedProject facetedProject = null;\n try {\n facetedProject = ProjectFacetsManager.create(virtualComponent.getProject());\n if (facetedProject != null && ProjectFacetsManager.isProjectFacetDefined(\"String_Node_Str\")) {\n IProjectFacet projectFacet = P...
"public void run() {\n TextPresentation tp = new TextPresentation();\n StyleRange sr;\n if (l != 0) {\n if (foreground) {\n sr = new StyleRange(s, l, ck, getBgColor());\n } else {\n sr = new StyleRange(s, l, oldBgC, ck);\n }\n tp.addStyleRange(sr);\n }\n ...
"public void stop() {\n if (builder != null)\n builder.interrupt();\n this.stopped = true;\n}\n"
"public void entersBattlefield(UUID sourceId, Game game) {\n controlledFromStartOfControllerTurn = false;\n game.replaceEvent(GameEvent.getEvent(EventType.ENTERS_THE_BATTLEFIELD, objectId, sourceId, controllerId));\n}\n"
"public void onReceive(Context context, Intent intent) {\n intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0L);\n}\n"
"public Heap drop(Item item, int cell) {\n if ((Dungeon.isChallenged(Challenges.NO_FOOD) && (item instanceof Food || item instanceof BlandfruitBush.Seed)) || (Dungeon.isChallenged(Challenges.NO_ARMOR) && item instanceof Armor) || (Dungeon.isChallenged(Challenges.NO_HEALING) && item instanceof PotionOfHealing) || (Du...
"public void initData(Intent intent) {\n String convid = intent.getStringExtra(CONVID);\n conversation = chatManager.lookUpConversationById(convid);\n if (isConversationEmpty(conversation)) {\n return;\n }\n initActionBar(ConversationHelper.titleOfConversation(conversation));\n messageAgent = n...
"private void setPageProperties() {\n viewer.updateButtons();\n validateAllComputedColumns();\n}\n"
"public IBlockState getBlockState(BlockPos pos) {\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n if (x < 0 || y < 0 || z < 0 || x >= this.width || y >= this.height || z >= this.length) {\n return null;\n }\n int index = x + (y * length + z) * width;\n int metadata = this...
"public boolean send() throws MessagingException {\n if (!user.equals(\"String_Node_Str\") && !pass.equals(\"String_Node_Str\") && !to.equals(\"String_Node_Str\") && !from.equals(\"String_Node_Str\")) {\n Session session = Session.getDefaultInstance(props, this);\n Log.d(\"String_Node_Str\", host + \"S...
"public boolean applies(GameEvent event, Ability source, Game game) {\n Permanent permanent = game.getBattlefield().getPermanent(source.getSourceId());\n if (permanent != null) {\n if (filter.match(permanent, permanent.getId(), permanent.getControllerId(), game)) {\n if (event.getTargetId().equa...
"public void testEncodedSha512SignatureVerification() throws Exception {\n Signer signer = factory.getInstance(true, new PssSignerParameters(privateKey, \"String_Node_Str\", -1));\n Signer verifier = factory.getInstance(false, publicKey, signer.getEncoded());\n runTestSignatureVerification(signer, verifier);\n...
"public Object evaluate(String expression) {\n Object result = null;\n try {\n result = getCubeCursor().getObject(ChartCubeQueryHelper.getBindingName(expression));\n } catch (OLAPException e) {\n logger.log(e);\n }\n return result;\n}\n"
"private Action createActionView(MetaModel model, ActionBuilder actionBuilder) {\n ViewBuilder viewBuilder = actionBuilder.getViewBuilder();\n String viewName = null;\n String viewType = null;\n String title = null;\n if (viewBuilder != null) {\n viewName = viewBuilder.getName();\n viewType...
"public void paintComponent(Graphics g) {\n super.paintComponent(g);\n Graphics2D g2d = (Graphics2D) g;\n RenderingHints hints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n hints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n g2d.ad...
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n DBObject content = context.getContent();\n if (content == null) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_ACCEPTABLE, \"String_Node_Str\");\n return;\n }\n if (conte...
"public void fire() throws IllegalActionException {\n super.fire();\n StringBuffer content = new StringBuffer(\"String_Node_Str\");\n try {\n Parser htmlParser = Parser.htmlParser();\n htmlParser.setTrackErrors(1);\n BufferedReader reader = null;\n StringBuffer lineBuffer = new Stri...
"public void tearDown() {\n if (!config.isClusterEnable()) {\n logger.info(\"String_Node_Str\");\n return;\n }\n if (!(this.serviceState.changeStateDestroying())) {\n WorkerState state = this.serviceState.getCurrentState();\n logger.info(\"String_Node_Str\", this.getClass().getSimpl...
"private void initComponents() {\n setLayout(new GridBagLayout());\n GridBagConstraints constraints = new GridBagConstraints();\n Board[] boards = mGame.getBoards();\n IntStream.range(0, boards.length).forEach(boardIndex -> {\n mGameBoards[boardIndex] = new BoardPanel(boards[boardIndex].getBoardSize(...
"private List<Map<String, Object>> executeMetricNamesQuery(String tenantId, Map<String, String> dimensions, String offset, int limit) {\n String offsetPart = \"String_Node_Str\";\n if (offset != null && !offset.isEmpty()) {\n offsetPart = \"String_Node_Str\";\n }\n String limitPart = \"String_Node_St...
"private void render(GL gl) {\n layouter.drawLayout(gl);\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n int xSum = 0;\n xSum += playerPaysXGenericMana(controller, source, game);\n for (UUID playerId : game.getState().getPlayersInRange(controller.getId(...
"public static L1bSceneDescription create(L1bMetadata header, L1bMetadata.Tile.idGeom index) {\n List<L1bMetadata.Tile> tileList = header.getTileList();\n CoordinateReferenceSystem crs = null;\n Envelope2D[] tileEnvelopes = new Envelope2D[tileList.size()];\n TileInfo[] tileInfos = new TileInfo[tileList.size...
"public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\" + start + \"String_Node_Str\" + Arrays.toString(isyms) + \"String_Node_Str\" + Arrays.toString(osyms) + \"String_Node_Str\" + semiring + \"String_Node_Str\");\n int numStates = states.length;\n for (int i =...
"private void readSearchParams(ResourceDefn root2, Sheet sheet, boolean forProfile) throws Exception {\n if (sheet != null) {\n tabfmt.sheet(\"String_Node_Str\");\n tabfmt.column(\"String_Node_Str\");\n tabfmt.column(\"String_Node_Str\");\n tabfmt.column(\"String_Node_Str\");\n tab...
"public int resolveAll() {\n if (rows.size() == 0) {\n return 0;\n }\n Row row = (Row) rows.getCurrent();\n int originalRowHeight = row.getArea().getHeight();\n int height = originalRowHeight;\n for (int i = startCol; i <= endCol; i++) {\n CellArea cell = row.getCell(i);\n if (nul...
"public void check(MarkerList markers, IContext context) {\n int len = this.count / 2;\n for (int i = 0; i < len; i++) {\n IValue v = this.values[i];\n v.check(markers, context);\n if (v.getType() == dyvil.tools.compiler.ast.type.Types.VOID) {\n markers.add(v.getPosition(), \"Strin...
"private boolean setWindowActive(Point mousePosition, GLWindow window) {\n Vec2f location = window.getAbsoluteLocation();\n Vec2f size = window.getSize();\n if ((mousePosition.x >= location.x() && mousePosition.x <= location.x() + size.x()) && (mousePosition.y >= location.y() && mousePosition.y <= location.y()...
"public boolean undoChangesInModel(OperatorInstance operation, ProgramVariant p) {\n CtStatement ctst = (CtStatement) operation.getOriginal();\n CtStatement fix = (CtStatement) operation.getModified();\n CtBlock<?> parentBlock = operation.getParentBlock();\n int position = operation.getLocationInParent();\n...
"public int[] readTile(int x, int y, int width, int height, int band) {\n Rectangle rect = new Rectangle(x, y, width, height);\n rect = rect.intersection(getImage(band).getBounds());\n int[] tile = new int[height * width];\n if (rect.isEmpty()) {\n return tile;\n }\n if (rect.y != preloadedInte...
"public void dispose() {\n if (bg != null) {\n bg.dispose();\n }\n MapDBManager.getInstance().closeDB(masterPage.getAnalysis());\n super.dispose();\n}\n"
"private void copyFilesToFolder(String srcPath, boolean recurse, IFolder desFolder) throws IOException, CoreException {\n Enumeration paths = null;\n paths = CorePlugin.getDefault().getBundle().getEntryPaths(srcPath);\n if (paths == null) {\n return;\n }\n while (paths.hasMoreElements()) {\n ...
"public boolean postfire() throws IllegalActionException {\n Time currentTime = getDirector().getModelTime();\n for (int i = 0; i < dx.size(); i++) {\n if (dx.get(i).hasToken(0)) {\n u[i] = dx.get(i).get(0);\n if (!u[i].equals(previousInput[i])) {\n previousInput[i] = u...
"public boolean doRemove(XtentisPort port, Object wsObj) throws RemoteException {\n WSRoutingRulePK pk = new WSRoutingRulePK();\n String name = cmd.getObjName();\n pk.setPk(name);\n port.deleteRoutingRule(new WSDeleteRoutingRule(pk));\n TreeObjectUtil.deleteSpecificationFromAttachedRole(port, name, EXten...
"private void putElement(final String elemName, final Attributes atts, final boolean removeConref) throws SAXException {\n try {\n pushcontentWriter.writeStartElement(elemName);\n for (int index = 0; index < atts.getLength(); index++) {\n final String name = atts.getQName(index);\n ...
"void writeAll(final SocketChannel socketChannel, final ReplicatedSharedHashMap.ModificationIterator modificationIterator) throws InterruptedException, IOException {\n final long start = bytes.position();\n for (; ; ) {\n final boolean wasDataRead = modificationIterator.nextEntry(entryCallback);\n i...