content
stringlengths
40
137k
"private void walkTopLevelCompileStatements(LocalContext context, SwiftAST fileTree) throws UserException {\n assert (fileTree.getType() == ExMParser.PROGRAM);\n syncFilePos(context, fileTree);\n List<SwiftAST> stmts = new ArrayList<SwiftAST>();\n for (SwiftAST stmt : module.ast.children()) {\n syncF...
"public void actionPerformed(ActionEvent e) {\n String actionCommand = e.getActionCommand();\n switch(actionCommand) {\n case \"String_Node_Str\":\n ChartDialog.dialog.setVisible(false);\n break;\n case \"String_Node_Str\":\n chartData = new ChartData();\n ...
"private void createLocalAlternatives(List<CrossNode> target, OptimizerNode pred1, OptimizerNode pred2, ShipStrategy ss1, ShipStrategy ss2, CostEstimator estimator) {\n LocalProperties lpDefaults = new LocalProperties();\n GlobalProperties gp = null;\n LocalProperties lp = null;\n OutputContract oc = getOut...
"private void loadCachedIndex() throws InstallException {\n BookDriver fake = SwordBookDriver.instance();\n entries.clear();\n URL cache = getCachedIndexFile();\n if (!NetUtil.isFile(cache)) {\n reloadBookList();\n }\n InputStream in = null;\n GZIPInputStream gin = null;\n TarInputStream ...
"protected void prepareHandlers(final Context context) {\n addHandler(Attributes.View.OnClick, new EventProcessor<V>(context) {\n public void setOnEventListener(final V view, final ParserContext parserContext, final JsonElement attributeValue) {\n view.setOnClickListener(new View.OnClickListener() ...
"public void onKeyUp(KeyUpEvent event) {\n if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {\n if (validator.test(inputBox.getText())) {\n dialogBox.hide();\n callback.onSuccess(inputBox.getText());\n }\n } else {\n TextBox box = (TextBox) event.getSource();\n ...
"public final void activate(int _x, int _y) {\n if (!projectile.active) {\n projectile.activate(_x, _y, false, true, this, wrapper.player.x, wrapper.player.y);\n SoundManager.playSound(3, 1);\n }\n}\n"
"public static String makeHtmlString(String s, boolean keepTags) {\n if (s == null)\n return \"String_Node_Str\";\n StringBuffer buf = new StringBuffer();\n boolean inTag = false;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (keepTags && !inTag && c == '<') {\n ...
"public void linkingObjects_IllegalStateException_ifDeletedIndirectly() {\n final Realm realm = looperThread.getRealm();\n realm.executeTransaction(new Realm.Transaction() {\n public void execute(Realm realm) {\n final BacklinksTarget target1 = realm.createObject(BacklinksTarget.class);\n ...
"public void error(Object message) {\n if (isErrorEnabled())\n log(LEVEL_ERROR, message, null);\n}\n"
"private synchronized void addMessage(Message m) {\n if (messages == null)\n return;\n else if (messages.size() < SIZE) {\n if ((messages.size() % 200) == 0) {\n System.out.print(\"String_Node_Str\" + messages.size() + \"String_Node_Str\");\n System.out.println(\"String_Node_St...
"public Expression containsSubstringIgnoringCase(Expression expression) {\n if (shouldUseUpperCaseForIgnoreCase) {\n return toUpperCase().containsSubstring(expression.toUpperCase());\n } else {\n return toLowerCase().containsSubstring(expression.toLowerCase());\n }\n}\n"
"public static void main(String[] args) throws Exception {\n SimonManager.callback().addCallback(new JmxRegisterCallback(\"String_Node_Str\"));\n Counter counter = SimonManager.getCounter(\"String_Node_Str\");\n Stopwatch stopwatch = SimonManager.getStopwatch(\"String_Node_Str\");\n SimonManager.getCounter(...
"public PacMan create() throws SlickException {\n Map<Direction, Animation> animationMap = new HashMap<Direction, Animation>();\n animationMap.put(DOWN, animationFactory.createFromPath(70, createPathsFrom(DOWN)));\n animationMap.put(UP, animationFactory.createFromPath(70, createPathsFrom(UP)));\n animationM...
"public List<HealthDataEntry> getHealthDataByDateRange(HealthDataKey key, Date startDate, Date endDate) throws BridgeServiceException {\n if (key == null) {\n throw new BridgeServiceException(\"String_Node_Str\");\n } else if (startDate == null) {\n throw new BridgeServiceException(\"String_Node_Str...
"protected Object invokeReturnAsync(Object proxy, Method method, Object[] args) throws Throwable {\n return callFuture(getAsyncRemoteCall(method.getName(), args), method.getReturnType());\n}\n"
"public int read(int address, boolean word, long cycles) {\n int val = memory[address];\n if (word) {\n val |= memory[(address + 1) & 0xffff] << 8;\n }\n if (address == TAIV || address == TBIV) {\n resetTIV();\n }\n if (address != 0x166) {\n if (DEBUG && false) {\n Syst...
"public int[] getTree(String attribute) {\n final int[][] data = dataAnalyzed.getArray();\n final int index = indexesSensitive.get(attribute);\n final int[][] hierarchy = hierarchiesSensitive.get(attribute).map;\n final int totalElementsP = subset == null ? data.length : subsetSize;\n final int height = ...
"public TestResults doTest(PortletConfig config, PortletContext context, PortletRequest request, PortletResponse response) {\n TestResults results = new TestResults(getTestSuiteName());\n for (Iterator it = getCheckMethods().iterator(); it.hasNext(); ) {\n Method method = (Method) it.next();\n debug...
"private void initTransferHandler() {\n inviteContactTransferHandler = new InviteContactTransferHandler(destContactList, InviteContactTransferHandler.DEST_TRANSFER_HANDLER, true);\n InviteContactTransferHandler srcContactTransferHandler = new InviteContactTransferHandler(srcContactList, InviteContactTransferHandl...
"public int lastIndexOf(Object object) {\n if (mode != STRICT_SORT_ORDER || comparator == null)\n return super.lastIndexOf(object);\n int index = ((SimpleTree) sorted).indexOfValue(object, false, false, ALL_COLORS);\n if (index == -1)\n return -1;\n for (; index > -1; index--) {\n E obj...
"public static final boolean loginFromMeta(final Session session) {\n final String userJID = getMeta(PARAM_JID);\n final String password = getMeta(PARAM_PASSWORD);\n if (password != null && userJID != null) {\n final XmppURI jid = uri(userJID);\n session.login(new Credentials(jid, password, encod...
"AudioMixerPushBufferStream getOutputStream() {\n synchronized (inputDataSources) {\n AudioFormat outputFormat = (outputStream == null) ? getOutputFormatFromInputDataSources() : outputStream.getFormat();\n setOutputFormatToInputDataSources(outputFormat);\n Collection<InputStreamDesc> inputStream...
"protected Collection<Data> valuesInternal() {\n final NodeEngine nodeEngine = getNodeEngine();\n try {\n MapValuesOperation mapValuesOperation = new MapValuesOperation(name);\n Map<Integer, Object> results = nodeEngine.getOperationService().invokeOnAllPartitions(SERVICE_NAME, mapValuesOperation);\n...
"private void update() {\n int size = model.getInputConfig().getResearchSubset().size();\n int total = model.getInputConfig().getInput().getHandle().getNumRows();\n double percent = (double) size / (double) total * 100d;\n this.size.setText(String.valueOf(size));\n this.total.setText(String.valueOf(total...
"public void actionPerformed(ActionEvent arg0) {\n System.out.println(\"String_Node_Str\");\n if (parent == null) {\n System.err.println(\"String_Node_Str\");\n return;\n }\n if (parent.getDisTable1() != null)\n showMatrix(parent.getDisTable1(), \"String_Node_Str\");\n if (parent.get...
"protected void onTrackingStarted() {\n super.onTrackingStarted();\n if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {\n mAfforanceHelper.animateHideLeftRightIcon();\n } else if (mQsExpanded) {\n mTwoFingerQsExpand = true;\n }...
"public T getPreviousState() {\n return stateStack.get(stateStack.size() - 2);\n}\n"
"public void run() {\n if (TicketUtils.isTicketValid(project)) {\n initializeJMS(project);\n } else {\n EMSLoginAction.loginAction(project, true);\n }\n}\n"
"private void createExpressionButton(Composite composite, final Text property, String propName, boolean isEncryptable) {\n ExpressionButton exprButton = ExpressionButtonUtil.createExpressionButton(composite, property, new ExpressionProvider(handle), handle, SWT.PUSH);\n if (isEncryptable) {\n exprButton.se...
"private void setMoreCard() {\n if (notificationCardsLayout == null) {\n return;\n }\n if (moreCard != null) {\n try {\n notificationCardsLayout.removeView(moreCard);\n moreCard = null;\n } catch (Exception e) {\n Log.e(LOG_TAG, e.toString());\n }\n ...
"public static <TKey, TVal> void updateMapSensorEntry(EntityLocal entity, AttributeSensor<Map<TKey, TVal>> sensor, TKey key, TVal v) {\n Map<TKey, TVal> map = entity.getAttribute(sensor);\n boolean created = (map == null);\n if (created)\n map = MutableMap.of();\n boolean changed;\n if (v == Entit...
"public void write(DiagnosticsPlugin plugin) {\n try {\n if (file == null) {\n file = new File(diagnostics.directory, format(fileName, index));\n printWriter = newWriter();\n renderStaticPlugins();\n }\n renderPlugin(plugin);\n bufferedWriter.flush();\n ...
"public void onRemove(Account account) {\n authTable.delete(getApplicationContext(), account.getId());\n}\n"
"private Tree createTree(Composite parent) {\n final Tree newTree = new Tree(parent, SWT.MULTI);\n GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(newTree);\n newTree.setHeaderVisible(false);\n TreeColumn column1 = new TreeColumn(newTree, SWT.CENTER);\n column1.setWidth(...
"protected void bindBinding(IBinding colBinding, ICubeQueryDefinition cubeQuery, CubeHandle cube) throws BirtException {\n if (colBinding == null) {\n return;\n }\n String bindingName = colBinding.getBindingName();\n String expr = registeredQueries.get(bindingName).encode();\n if (!cubeQuery.getBi...
"static void readAndHandleBinderCallViolations(Parcel p) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new FastPrintWriter(sw, false, 256);\n new LogStackTrace().printStackTrace(pw);\n pw.flush();\n String ourStack = sw.toString();\n int policyMask = getThreadPolicyMask();\n boolean ...
"public String getAcceptOptions() {\n JSONObject jsonOptions = new JSONObject();\n JSONObject jsonObj;\n AcceptOptionsContext context = serviceDefaultsContext.getAcceptOptionsContext();\n try {\n if (context != null) {\n Map<String, Object> acceptOptions = context.asOptionsMap();\n ...
"public void addItem(ImportItem itemRecord, List<ImportItem> children) {\n if (itemRecord != null) {\n this.allImportItemRecords.add(itemRecord);\n final Project project = itemRecord.getItemProject();\n if (project == null) {\n return;\n }\n final String technicalLabel =...
"public org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent convertSpecimenContainerComponent(org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent t...
"private boolean stackPolicyIsDifferent(String previousStackPolicy, String nextStackPolicy) throws ValidationErrorException {\n if (nextStackPolicy == null)\n return false;\n if (previousStackPolicy == null && nextStackPolicy != null)\n return true;\n ObjectMapper objectMapper = new ObjectMapper(...
"private Pair<RelaxStatus, Double> runSimplexAlgo(IloCplex cplex2, double upperBound) throws IloException {\n if (!isFeasible()) {\n return new Pair<RelaxStatus, Double>(RelaxStatus.Infeasible, INTERNAL_WORST_SCORE);\n }\n RelaxStatus status = RelaxStatus.Unknown;\n TDoubleArrayList cutIterLowerBound...
"public void run() {\n try {\n TreeObject xobject = (TreeObject) ((XObjectEditorInput) editor.getEditorInput()).getModel();\n Object newWsObject = xobject.getWsObject();\n if (!xobject.isXObject())\n return;\n XtentisPort port = Util.getPort(new URL(xobject.getEndpointAddress()...
"private void appendJavaModelGenerator(Element context) {\n List<String> paths = project.getSyspathsOfModel();\n if (paths.isEmpty()) {\n errorCode = ErrorCode.NO_MODEL_PATH;\n paths.add(project.getFullPath());\n } else if (paths.size() > 1) {\n errorCode = ErrorCode.MULTIPLE_MODEL_PATHS;\...
"public void pull(Csar csar, String username, String password, String remoteBranch) {\n Path archiveGitPath = csarRepositry.getExpandedCSAR(csar.getName(), csar.getVersion());\n RepositoryManager.pull(archiveGitPath, username, password, remoteBranch);\n}\n"
"public Object getBuiltContent(String tableName, String columnName, String[] selectionArgs, String sortOrder, String[] projection, CallbackHandler callbackHandler) {\n Logger.log(\"String_Node_Str\", LogType.DATABASE);\n String selection = columnName + \"String_Node_Str\";\n Cursor cursor = getDatabase().query...
"public static Piece createKing(boolean isBlack, Square square, Board board) throws IOException {\n Map<Character, Integer> kingMovement = Maps.newHashMap();\n kingMovement.put(PieceBuilder.NORTH, 1);\n kingMovement.put(PieceBuilder.SOUTH, 1);\n kingMovement.put(PieceBuilder.EAST, 1);\n kingMovement.put(...
"public void handleNotification(final Notification notif, final Object handback) {\n if (notif instanceof JMXConnectionNotification) {\n final JMXConnectionNotification n = (JMXConnectionNotification) notif;\n if (n.getType().equals(JMXConnectionNotification.OPENED)) {\n LOGGER.log(Level.INF...
"public static HashMap<String, String> CGIToHash(String cgi) {\n HashMap<String, String> hash = new HashMap<String, String>();\n logger.debug(\"String_Node_Str\" + cgi);\n String[] entries = cgi.split(\"String_Node_Str\");\n for (String e : entries) {\n if (!e.contains(\"String_Node_Str\"))\n ...
"void handleAfterAttributeName() {\n boolean ws = consumeWhitespace();\n int current = currentChar();\n if (current == '=') {\n SourceLocation.Point equalsSignPoint = currentPoint();\n advance();\n consume();\n consumeWhitespace();\n context.setEqualsSignLocation(equalsSignPo...
"public DeterministicKey getKey(KeyPurpose purpose) {\n lock.lock();\n try {\n DeterministicKey key, parentKey;\n int index;\n if (purpose == KeyPurpose.RECEIVE_FUNDS) {\n issuedExternalKeys++;\n lookahead = maybeLookAhead(externalKey, issuedExternalKeys);\n k...
"private Operation executeOperations(GccRemoveReadyPollerObject gcpRemoveReadyPollerObject) throws Exception {\n Operation operation = null;\n try {\n if (gcpRemoveReadyPollerObject.getZoneOperations().isPresent()) {\n LOGGER.debug(\"String_Node_Str\", gcpRemoveReadyPollerObject.getZoneOperation...
"public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) {\n CSSContext ctx = engine.getCSSContext();\n float fs = ctx.getMediumFontSize();\n if (value == CSSValueConstants.XX_SMALL_VALUE) {\n return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f / 1.2f / 1.2f);...
"public void handleNACK(NACKPacket nackPacket) {\n Set<Integer> lostPackets = new HashSet<Integer>();\n lostPackets.addAll(nackPacket.getLostPackets());\n long ssrc = nackPacket.sourceSSRC;\n RawPacketCache cache = transformEngine.getCache();\n if (cache != null) {\n Iterator<Integer> iter = lostP...
"protected void drawHighlights() {\n if (mHighlightEnabled && valuesToHighlight()) {\n float angle = 0f;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n int xIndex = mIndicesToHightlight[i].getXIndex();\n if (xIndex >= mDrawAngles.length || xIndex > mDeltaX)\n ...
"public ObjectType getTypeOfThis() {\n return typeOfThis.isNoObjectType() ? registry.getNativeObjectType(JSTypeNative.UNKNOWN_TYPE) : typeOfThis;\n}\n"
"public List<TdColumn> getColumns(String catalogName, String schemaPattern, String tablePattern, String columnPattern) throws SQLException {\n List<TdColumn> tableColumns = new ArrayList<TdColumn>();\n ResultSet columns = getConnectionMetadata(connection).getColumns(catalogName, schemaPattern, tablePattern, colum...
"private void createWidgets() {\n configTextArea = new JTextArea(CONFIG_TEXT_ROWS, CONFIG_TEXT_COLS);\n configTextArea.setBackground(Color.white);\n configTextArea.setForeground(Color.black);\n configTextArea.setFont(new Font(\"String_Node_Str\", Font.PLAIN, configTextArea.getFont().getSize()));\n JScrol...
"public void draw(Batch batch, float parentAlpha) {\n validate();\n Color tmp = batch.getColor();\n batch.setColor(Color.WHITE);\n batch.disableBlending();\n tile.draw(batch, getX(), getY(), getWidth(), getHeight());\n batch.enableBlending();\n if (scn != null && !loading && !loadingError) {\n ...
"public void deactivatePlayer(Client client) {\n EntityRef character = client.getEntity().getComponent(ClientComponent.class).character;\n PlayerStoreBuilder playerStoreBuilder = createPlayerStore(client, character);\n EntityData.PlayerStore playerStore = playerStoreBuilder.build(getEntityManager());\n deac...
"private void handleTargetGoneEvent(ID targetID) {\n RemoteServiceRegistrationImpl[] registrations = null;\n synchronized (remoteRegistrys) {\n final RemoteServiceRegistryImpl registry = getRemoteRegistry(targetID);\n if (registry != null) {\n removeRemoteRegistry(targetID);\n ...
"public Ingredient getFixIngredient(ModificationPoint modificationPoint, AstorOperator operationType) {\n int variant_id = modificationPoint.getProgramVariant().getId();\n int attempts = 0;\n boolean continueSearching = true;\n int elementsFromFixSpace = getSpaceSize(modificationPoint, operationType);\n ...
"private void dispatchDownloadCancel() {\n for (IMXMediaDownloadListener callback : mDownloadListeners) {\n try {\n callback.onDownloadCancel(mDownloadId);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.getMessage());\n }\n }\n}\n"
"public static void setOptionVariableValues(ServiceCommand serviceCommand, Map<String, String> variableToValueMap) {\n CommandOptions commandOptions = serviceCommand.getOptions();\n if (commandOptions == null || commandOptions.getOptions() == null) {\n return;\n }\n String options = commandOptions.ge...
"public void setInheritParentPermissions(final NodeRef nodeRef, boolean inheritParentPermissions) {\n final String adminRole = getAdminRole(nodeRef);\n if (nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT) && isNotBlank(adminRole) && !inheritParentPermissions) {\n setPermiss...
"public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {\n Script script = null;\n Map<String, String> context = null;\n Duration delay = new Duration(0);\n Duration speed = new Duration(Settings.InteractDelayInTicks() / 20);\n ScriptQueue queue = ScriptQueue._getQueue(scriptEnt...
"public void updateLink(INode node, IConnection oldConnection, IConnection newConnection) {\n ((MapperExternalNode) node.getExternalNode()).renameInputConnection(oldConnection.getName(), newConnection.getName());\n}\n"
"public void init() throws ComponentInitException {\n atomicConcepts = new TreeSet<>();\n atomicRoles = new TreeSet<>();\n datatypeProperties = new TreeSet<>();\n individuals = new TreeSet<>();\n df = new OWLDataFactoryImpl();\n manager = OWLManager.createOWLOntologyManager();\n prefixes = new Tree...
"protected void remove(Node node) {\n if (getChildren().remove(node))\n updateFamily();\n}\n"
"private void launch() {\n try {\n String filePath = this.multiSchemaManager.getOriginalValue(this.getConnection().getFilePath());\n CsvArray csvArray = getMultiSchemaManager().getCsvArrayForMultiSchemaDelimited(filePath, multiSeparatorsText.getText(), encodingCombo.getText(), keyValuesText.getText(), ...
"private void update(String Label, boolean UseFirstLabel) {\n if (Label.isEmpty() || !SyntaxChecker.isVariableNameAcceptable(Label, false)) {\n LabelBase.put(circ, \"String_Node_Str\");\n CurrentIndex.put(circ, 0);\n UseLabelBaseOnly.put(circ, false);\n CurrentLabel.put(circ, \"String_Nod...
"public static <T extends IsRODAObject> List<LinkingIdentifier> runSiegfriedOnFile(Plugin<T> plugin, ModelService model, File file) throws GenericException, RequestNotValidException, AlreadyExistsException, NotFoundException, AuthorizationDeniedException, PluginException {\n StoragePath fileStoragePath = ModelUtils....
"public boolean append(T t) {\n if (this.state != State.WRITE) {\n throw new IllegalStateException();\n }\n this.count += 1;\n byte[] bytes = getSerializer().objectToBytes(t);\n try {\n this.outputStream.writeInt(bytes.length);\n this.outputStream.write(bytes);\n } catch (IOExcept...
"public void attribute(String namespaceURI, String localName, String qName, String value) {\n try {\n writer.write(' ');\n writer.write(qName);\n writer.write('=');\n writer.write('\\\"');\n writeValue(value, true, this.writer);\n writer.write('\\\"');\n } catch (IOExcept...
"protected Set query(final Predicate predicate, final QueryResultStream.IterationType iterationType, final boolean dataResult) {\n final NodeEngine nodeEngine = getNodeEngine();\n OperationService operationService = nodeEngine.getOperationService();\n QueryOperation operation = new QueryOperation(name, predica...
"private boolean findValueMatcher(IAggregationResultSet rs, List levelList, Map valueMap, int aggrIndex) {\n if (levelList.isEmpty())\n return true;\n int start = 0, state = 0;\n boolean find = false;\n for (; start < levelList.size(); ) {\n DimLevel level = (DimLevel) levelList.get(start);\n ...
"public static String importToStucture(File importFile, IFolder selectionFolder, ExpressionType type, boolean skip, boolean rename) {\n StringBuffer importInformation = new StringBuffer();\n Set<String> names = PatternUtilities.getAllPatternNames(selectionFolder);\n String fileExtName = getFileExtName(importFi...
"public void createTray(String iconName) {\n this.trayIcon = libgtk.gtk_status_icon_new();\n libgtk.gtk_status_icon_set_from_file(this.trayIcon, iconPath(iconName));\n libgtk.gtk_status_icon_set_tooltip(this.trayIcon, this.appName);\n libgtk.gtk_status_icon_set_visible(this.trayIcon, true);\n Gobject.GEv...
"public boolean isOpen() {\n return mFanView.getVisibility() == VISIBLE && !isClosing;\n}\n"
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n SingleEvent newObject = (SingleEvent) super.clone(workspace);\n newObject.output.setTypeSameAs(newObject.value);\n return newObject;\n}\n"
"public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {\n List<Comparable> comparables = new ArrayList<Comparable>();\n comparables.add(new Comparable());\n boolean buildingComparables = true;\n TreeMap<Integer, ArrayList<String>> thenOutcome = new TreeMap<Integer, ArrayList<Strin...
"public void validate(ValidationHelper helper, Context context, String key, Contact t) {\n if (t != null) {\n String url = t.getUrl();\n if (url != null) {\n if (!ValidatorUtils.isValidURI(url)) {\n final String message = Tr.formatMessage(tc, \"String_Node_Str\", url);\n ...
"private void check(AstNode astNode) {\n AstNode varNode;\n if (astNode.is(ASSIGNMENT_EXPR, ASSIGNMENT_BY_REFERENCE)) {\n varNode = astNode.getFirstChild();\n } else {\n varNode = isPostUnaryExpr(astNode) ? astNode.getNextAstNode() : astNode.getPreviousAstNode();\n }\n String varName = Chec...
"public InferredEdge getStartEdge() {\n return startSearchEdge;\n}\n"
"public static void convertFileFromUtf16ToUtf8(File inputFile, File outputFile) throws IOException {\n Charset charset;\n if (inputFile == null || !inputFile.canRead()) {\n throw new FileNotFoundException(\"String_Node_Str\");\n }\n try {\n charset = getFileCharset(inputFile);\n } catch (IO...
"private MacAddress readMacFromDevice(final String port, final DeviceType deviceType) throws Exception {\n final Connection connection = connectionFactory.create(deviceType);\n try {\n connection.connect(port);\n } catch (Exception e) {\n throw new Exception(\"String_Node_Str\" + port + \"String_...
"public String popup(PopupField field) {\n if (field == this.neatActivationField) {\n ActivationDialog dialog = new ActivationDialog(EncogWorkBench.getInstance().getMainWindow());\n dialog.setActivation(this.neatActivationFunction);\n if (!dialog.process())\n return null;\n els...
"public void unregisterExecutionListener(final ExecutionListener executionListener) {\n this.executionListeners.remove(Integer.valueOf(executionListener.getPriority()));\n}\n"
"private List findMatchesHelper(IProgramElement node, String pattern, IProgramElement.Kind kind, List matches) {\n if (node != null && node.getName().indexOf(pattern) != -1) {\n if (kind == null || node.getKind().equals(kind)) {\n matches.add(node);\n }\n }\n if (node.getChildren() != ...
"protected List<GraphTargetItem> check(GraphSource code, List<Object> localData, List<GraphPart> allParts, Stack<GraphTargetItem> stack, GraphPart parent, GraphPart part, List<GraphPart> stopPart, List<Loop> loops, List<GraphTargetItem> output, Loop currentLoop) {\n if (!output.isEmpty()) {\n if (output.get(o...
"protected void buildClassMetadata(MetadataClass metadataClass, String className, boolean isLazy) {\n ClassMetadataVisitor visitor = new ClassMetadataVisitor(metadataClass, isLazy);\n InputStream stream = null;\n try {\n String resourceString = className.replace('.', '/') + \"String_Node_Str\";\n ...
"protected boolean isPropertyReadOnly(String propName) {\n boolean isReadOnly = false;\n for (int i = 0; i < elements.size(); i++) {\n PropertyHandle propertyHandle = ((DesignElementHandle) elements.get(i)).getPropertyHandle(propName);\n if (propertyHandle != null && propertyHandle.isReadOnly() || p...
"public void process() {\n javaFileContents = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n HashSet<String> processedFeatures = new HashSet<String>();\n for (String feature : meta.getFeatures()) {\n if (!processedFeat...
"public void timestamp_must_not_be_far_into_the_future() {\n givenWithContent(authToken).body(minValidPayload().put(Key.TIMESTAMP, DateTime.now().plusMinutes(3)).asArray()).when().put(UrlSchema.FACILITY_UTILIZATION, f.id).then().spec(assertResponse(HttpStatus.BAD_REQUEST, ValidationException.class)).body(\"String_No...
"private CurrencyUnit currency(final String currencyCode) {\n return MonetaryCurrencies.getCurrency(currencyCode);\n}\n"
"private void build(ObjectNode node, ObjectTypeDefinition type, Context context) {\n if (context.stack.size() > 2) {\n return;\n }\n if (type.getTypeIdInclusion() == JsonTypeInfo.As.PROPERTY) {\n if (type.getTypeIdProperty() != null) {\n node.put(type.getTypeIdProperty(), sourceType.ge...
"protected Dimension getSpecifiedDimension(IImageContent content) {\n Dimension dim = new Dimension(DEFAULT_WIDHT, DEFAULT_HEIGHT);\n try {\n intrinsic = getIntrinsicDimension(content);\n } catch (Exception e) {\n logger.log(Level.SEVERE, e.getLocalizedMessage());\n }\n int specifiedWidth =...
"protected int handleIntent(Intent intent) {\n Logger.log.serviceHandlesMessage(SensorbergServiceMessage.stringFrom(intent.getIntExtra(SensorbergServiceMessage.EXTRA_GENERIC_TYPE, -1)));\n handleDebuggingIntent(intent);\n if (handleIntentEvenIfNoBootstrapperPresent(intent)) {\n return stopSensorbergServ...
"private void commitAndFinish() {\n if (desk.getSenator().getList() != null && desk.getSenator().getList().size() > 0) {\n commitChange(desk.getButtons());\n setResult(RESULT_OK);\n }\n finish();\n}\n"
"public void propertyChange(PropertyChangeEvent evt) {\n DialogFileFilter fileFilter = (DialogFileFilter) evt.getNewValue();\n selectedExporter = getExporter(fileFilter);\n if (selectedExporter != null && exportController.hasUI(selectedExporter)) {\n optionsButton.setEnabled(true);\n } else {\n ...