content
stringlengths
40
137k
"public boolean hasAdherenceFallingAlertBeenRaisedForCurrentWeek(String patientDocId) {\n DateTime startDateForCurrentWeek = DateUtil.newDateTime(getMostRecentBestCallDay(patientDocId), 0, 0, 0);\n return patientAlertService.getFallingAdherenceAlerts(patientDocId, startDateForCurrentWeek, DateUtil.now()).size() >...
"public static void index(String language, String defaultLanguage) {\n if (StringUtils.isBlank(defaultLanguage)) {\n defaultLanguage = Play.langs.get(0);\n }\n if (StringUtils.isBlank(language)) {\n language = defaultLanguage;\n }\n File workingFile = ApplicationMessages.getWorkingFile(lang...
"private void checkGenderLexEnabled() {\n GenderNode genNode = core.getGenders().findGenderByName(txtGenderName.getText().trim());\n if (genNode != null) {\n setEnabledGenderLexicon(false);\n txtGendersErrorBox.setText(\"String_Node_Str\");\n } else if (txtGenderName.getText().trim().equals(\"Str...
"void learnCajamarModel(DataStream<DataInstance> data) {\n StaticVariables Vars = new StaticVariables(data.getAttributes());\n classVariable = Vars.getVariableById(Vars.getNumberOfVars() - 1);\n classVariable_PM = Vars.getVariableById(Vars.getNumberOfVars() - 2);\n TIME_ID = data.getAttributes().getAttribut...
"public boolean apply(Game game, Ability source) {\n if (cards != null && player != null) {\n return player.moveCards(cards, Zone.BATTLEFIELD, source, game);\n }\n return false;\n}\n"
"public Map<String, String> getQueryMap() {\n Map<String, String> map = new HashMap<String, String>();\n boolean isSqlEngine = ExecutionLanguage.SQL.equals(this.analysis.getParameters().getExecutionLanguage());\n boolean isJavaEngine = ExecutionLanguage.JAVA.equals(this.analysis.getParameters().getExecutionLan...
"public void updateProjectReference(String repoId, String namespace, String projectId, String projectVersion, ProjectVersionReference reference) {\n File directory = new File(getDirectory(repoId), namespace + \"String_Node_Str\" + projectId + \"String_Node_Str\" + projectVersion);\n Properties properties = readOr...
"protected void updateDateDisplay(long millisFromJavaEpoch) {\n UniversalDate dateUniv = fromMillis(millisFromJavaEpoch);\n monthArrayPointer = dateUniv.month - 1;\n dayText.setText(String.format(DAYFORMAT, dateUniv.day));\n monthSpinner.setSelection(monthArrayPointer);\n yearText.setText(String.format(Y...
"void hideRecentsInternal(boolean triggeredFromAltTab, boolean triggeredFromHomeKey) {\n if (mBootCompleted) {\n Intent intent = createLocalBroadcastIntent(mContext, ACTION_HIDE_RECENTS_ACTIVITY);\n intent.putExtra(EXTRA_TRIGGERED_FROM_ALT_TAB, triggeredFromAltTab);\n intent.putExtra(EXTRA_TRIGG...
"public void addSVGRenderingListener(SVGRenderingListener listener) {\n if (listener == null) {\n return;\n svgrListenerList.add(listener);\n}\n"
"public Integer getValue(double low, double high, Estimator estimator) {\n if (low > high)\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n return getValue(new Interval<Integer>(low, high, false, false), estimator);\n}\n"
"public void createFieldEditors() {\n _setDefault();\n Composite parent = getFieldEditorParent();\n addField(new DirectoryFieldEditor(PreferenceConstants.PTII, \"String_Node_Str\", getFieldEditorParent()) {\n protected void fireValueChanged(String property, Object oldValue, Object newValue) {\n ...
"private int processFileBuffer(boolean onlyIfBufferIsFull) {\n Set<String> hashCodes;\n SettableFuture<Map<String, byte[]>> resultFuture;\n synchronized (multiFetchLock) {\n if (onlyIfBufferIsFull && hashCodesToFetch.size() < multiFetchBufferMaxSize) {\n return 0;\n }\n if (hash...
"private boolean evaluatePermutation(List<Integer> permutation) {\n for (int j = 0, n = subunits.getSubunitCount(); j < n; j++) {\n transformedCoords[j].set(originalCoords[permutation.get(j)]);\n }\n int fold = PermutationGroup.getOrder(permutation);\n Quat4d quat = UnitQuaternions.relativeOrientatio...
"private void processPicks(ArrayList<Integer> alPickingIDs, EPickingMode myMode, Point pickedPoint, Point dragStartPoint) {\n for (int pickingID : alPickingIDs) {\n Pair<Integer, EPickingType> pickAssociatedValues = hashPickingIDToViewID.get(pickingID);\n EPickingType eType = pickAssociatedValues.getSe...
"public static void main(String[] args) throws MalformedURLException, ComponentInitException, LearningProblemUnsupportedException, URISyntaxException {\n if (args.length == 0) {\n System.out.println(\"String_Node_Str\");\n System.exit(0);\n }\n URL fileURL = new URL(args[0]);\n long startTime ...
"private static void addLevelSorting(List<LevelViewHandle> levelViews, Map<LevelHandle, ILevelDefinition> levelMapping, ICubeQueryDefinition cubeQuery, IModelAdapter modelAdapter) throws BirtException {\n List<ILevelDefinition> levels = new ArrayList<ILevelDefinition>();\n List<Object> values = new ArrayList<Obje...
"protected void run() throws MojoExecutionException, MojoFailureException {\n receiveFlexUnitResults();\n getLog().info(\"String_Node_Str\" + flexUnitCommand);\n final FlexUnitLauncher browser = new FlexUnitLauncher(flexUnitCommand);\n try {\n browser.runTests(swf);\n } catch (Exception e) {\n ...
"private void checkArmState(msg_heartbeat msg_heart) {\n drone.getState().setArmed((msg_heart.base_mode & MAV_MODE_FLAG.MAV_MODE_FLAG_SAFETY_ARMED) == MAV_MODE_FLAG.MAV_MODE_FLAG_SAFETY_ARMED);\n}\n"
"public static void verifyCast(DataType targetType, DataType sourceType) {\n if (!subTypeOf(targetType, sourceType)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", sourceType != null ? sourceType.toLabel() : \"String_Node_Str\", targetType != null ? targetType.toLabel() : \"String_N...
"public boolean onTouchEvent(MotionEvent event) {\n if (!mDraggingDown) {\n return false;\n }\n final float x = event.getX();\n final float y = event.getY();\n switch(event.getActionMasked()) {\n case MotionEvent.ACTION_MOVE:\n mLastHeight = y - mInitialTouchY;\n captu...
"public Project[] getProjects(ConnectionBean connBean) {\n if (connBean == null) {\n return null;\n }\n Project[] projects = null;\n if (connBean != null) {\n String user2 = connBean.getUser();\n String repositoryId2 = connBean.getRepositoryId();\n String workSpace = connBean.get...
"public Representation createClient(Representation entity) throws OAuth2RestletException {\n final OAuth2Request request = requestFactory.create(getRequest());\n final ChallengeResponse authHeader = getRequest().getChallengeResponse();\n final String accessToken = authHeader != null ? authHeader.getRawValue() ...
"private void createGrate(World world, int x) {\n int y = getGroundY(world, x);\n if (checkGround(world, x, y)) {\n this.fillWithBlocks(world, boundingBox, x, y, 0, x, y + 3, 0, Block.fenceIron.blockID, 0, false);\n }\n}\n"
"public void clearMetaEdges(AbstractNode node) {\n if (node.getMetaEdgesInTree().getCount() > 0) {\n edgeIterator.setNode(node.getMetaEdgesInTree());\n while (edgeIterator.hasNext()) {\n AbstractEdge edge = edgeIterator.next();\n AbstractNode source = edge.getSource(viewId);\n ...
"public static Vector<TreeReference> tryBatchChildFetch(AbstractTreeElement parent, Hashtable<XPathPathExpr, Hashtable<String, TreeElement[]>> childAttributeHintMap, String name, int mult, Vector<XPathExpression> predicates, EvaluationContext evalContext) {\n if (mult != TreeReference.INDEX_UNBOUND || predicates == ...
"public void setResourceLimits(AccountJoinVO account, boolean accountIsAdmin, ResourceLimitAndCountResponse response) {\n long vmLimit = ApiDBUtils.findCorrectResourceLimit(account.getVmLimit(), account.getId(), ResourceType.user_vm);\n String vmLimitDisplay = (accountIsAdmin || vmLimit == -1) ? \"String_Node_Str...
"public static void beforeClass() throws UnknownHostException, MalformedURLException {\n String ipAddress = startAppiumServer();\n if (service == null || !service.isRunning()) {\n throw new AppiumServerHasNotBeenStartedLocallyException(\"String_Node_Str\");\n }\n File appDir = new File(\"String_Node_...
"public void report(final Measurement m) throws ReportingException {\n StringBuffer sb = new StringBuffer();\n if (csvFile == null) {\n csvFile = new File(path);\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + csvFile.getPath());\n }\n }\n final Map<String, Ob...
"public void run() {\n final IWorkbenchWindow iww = VdbUiPlugin.singleton.getCurrentWorkbenchWindow();\n ModelResource modelResource = null;\n if (!getSelection().isEmpty()) {\n IFile modelFile = (IFile) SelectionUtilities.getSelectedObjects(getSelection()).get(0);\n modelResource = ModelUtilitie...
"public void plan(StockMove stockMove) throws AxelorException {\n LOG.debug(\"String_Node_Str\", new Object[] { stockMove.getName() });\n Location fromLocation = stockMove.getFromLocation();\n Location toLocation = stockMove.getToLocation();\n if (fromLocation == null) {\n throw new AxelorException(S...
"private int[] findGroupBreaks(List resultSet, GroupKey groupKey, SeriesGrouping seriesGrouping) {\n if (groupKey == null || groupKey.getKey() == null) {\n return NO_GROUP_BREAKS;\n }\n boolean groupingEnabled = false;\n if (seriesGrouping != null && seriesGrouping.isSetGroupType()) {\n groupi...
"public void fillContextMenu(IMenuManager menu) {\n Object obj = ((TreeSelection) this.getContext().getSelection()).getFirstElement();\n String menuText = RELOADDATABASE_MENUTEXT;\n if (obj instanceof IFolderNode) {\n IFolderNode folderNode = (IFolderNode) obj;\n switch(folderNode.getFolderNodeTy...
"public void handleResponse(SyncResponse response) {\n queue(new SyncEpisodeWatchlist());\n}\n"
"public void initializeSession(IoSession session, ConnectFuture future) {\n HttpConnectSession connectSession = (HttpConnectSession) session;\n connectSession.setVersion(acceptSession.getVersion());\n connectSession.setMethod(acceptSession.getMethod());\n URI connectURI = computeConnectPath(connectSession.g...
"public IStatus validateDrop(Object target, int operation, TransferData transferType) {\n if (!(target instanceof IResource)) {\n return Status.CANCEL_STATUS;\n }\n IResource targetRes = (IResource) target;\n for (IResource res : getSelectedResources()) {\n if (res.getType() == IResource.FILE)...
"private String generateStorageLocation() {\n String namePrefix = getHBaseStorageLocationPrefix();\n String tableName = \"String_Node_Str\";\n do {\n StringBuffer sb = new StringBuffer();\n sb.append(namePrefix);\n for (int i = 0; i < HBASE_TABLE_LENGTH; i++) {\n sb.append(ALPHA...
"protected Control createDialogArea(Composite parent) {\n Composite composite = (Composite) super.createDialogArea(parent);\n parent.getShell().setText(this.title);\n composite.setLayout(new GridLayout(1, false));\n Label instanceNameLabel = new Label(composite, SWT.NONE);\n instanceNameLabel.setLayoutDa...
"public StyleElement findStyle(String name) {\n ElementRefValue refValue = moduleNameSpaces[STYLE_NAME_SPACE].resolve(name, null);\n return (StyleElement) refValue.getElement();\n}\n"
"public double computeLInfinityNorm() {\n double lInfinityNorm = 0;\n for (int i = 0; i < dimension; i++) {\n lInfinityNorm = Math.max(lInfinityNorm, array[i]);\n }\n return lInfinityNorm;\n}\n"
"public long getBinLen(int col) {\n return rec.getBinLen(col);\n}\n"
"public void testInvalidClassName() {\n String metadataFile = PATH + \"String_Node_Str\";\n InputStream iStream = loader.getResourceAsStream(metadataFile);\n if (iStream == null) {\n fail(\"String_Node_Str\" + metadataFile + \"String_Node_Str\");\n }\n HashMap<String, Source> metadataSourceMap = n...
"int getRowSize(Data dummy, SearchRow row, boolean onlyPosition) throws SQLException {\n int rowsize = dummy.getVarLongLen(row.getKey());\n if (!onlyPosition) {\n for (Column col : columns) {\n Value v = row.getValue(col.getColumnId());\n rowsize += dummy.getValueLen(v);\n }\n ...
"protected void renderHeaderSearch(Renderer renderer, StringOutput sb, FlexiTableElementImpl ftE, URLBuilder ubu, Translator translator, RenderResult renderResult, String[] args) {\n if (ftE.isSearchEnabled()) {\n Form theForm = ftE.getRootForm();\n String dispatchId = ftE.getFormDispatchId();\n ...
"public static void main(String[] args) {\n int[][] grid = { { 8, 2, 22, 97, 38, 15, 0, 40, 0, 75, 4, 5, 7, 78, 52, 12, 50, 77, 91, 8 }, { 49, 49, 99, 40, 17, 81, 18, 57, 60, 87, 17, 40, 98, 43, 69, 48, 4, 56, 62, 0 }, { 81, 49, 31, 73, 55, 79, 14, 29, 93, 71, 40, 67, 53, 88, 30, 3, 49, 13, 36, 65 }, { 52, 70, 95, 2...
"private void writeHistory(Id.NamespacedId targetId) {\n Map<String, String> properties = getProperties(targetId);\n Set<String> tags = getTags(targetId);\n Metadata metadata = new Metadata(targetId, properties, tags);\n byte[] row = MdsHistoryKey.getMdsKey(targetId, System.currentTimeMillis()).getKey();\n ...
"public static List<TileEntity> getTileEntitiesInArea(Vector2 minVector, Vector2 maxVector) {\n cleanUpArray();\n List<TileEntity> returnArray = new ArrayList<TileEntity>();\n synchronized (detectableTileEntities) {\n for (TileEntity tileEntity : detectableTileEntities) {\n if (new Region2(mi...
"public void setTotalPage(ITextArea totalPage) {\n if (tpl != null) {\n drawTextAt(totalPage, 0, 0, tpl, tpl.getHeight());\n }\n}\n"
"private void buildDisplayList(final GL gl, int iGLDisplayListIndex) {\n gl.glNewList(iGLDisplayListIndex, GL.GL_COMPILE);\n if (tree == null) {\n iAlCutOffClusters.clear();\n iAlClusterNodes.clear();\n if (bRenderGeneTree == true) {\n if (set.getClusteredTreeGenes() != null) {\n ...
"public java.util.Collection<TdXmlSchema> createConnection() {\n Collection col = null;\n List<TdXmlSchema> tempXmlDocs = null;\n try {\n Class<?> cl = Class.forName(driverClassName);\n Database database = (Database) cl.newInstance();\n DatabaseManager.registerDatabase(database);\n ...
"public static String[] takeFirstLine(String dataSetRawPath, String delimeter, SourceType source) throws IOException {\n if (dataSetRawPath == null || delimeter == null || source == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String firstValidFile = null;\n FileSystem fs ...
"private void updateApiLifeCycleStatus(Tenant tenant) throws APIMigrationException {\n HashMap<String, String[]> statuses = new HashMap<>();\n statuses.put(APIStatus.PUBLISHED.toString(), new String[] { \"String_Node_Str\" });\n statuses.put(APIStatus.PROTOTYPED.toString(), new String[] { \"String_Node_Str\" }...
"private void handleExpansion(float heightDelta, ExpandableView child) {\n if (heightDelta < 0) {\n heightDelta = 0;\n }\n boolean expandable = child.isContentExpandable();\n float rubberbandFactor = expandable ? RUBBERBAND_FACTOR_EXPANDABLE : RUBBERBAND_FACTOR_STATIC;\n float rubberband = heightD...
"public static SetupParameters getSetupParameters() {\n if (_isDBSetupDone == true) {\n SetupParameters setupParameters = new SetupParameters(_dbUrl, _dbContainerName, _cacheContainerName);\n return setupParameters;\n } else {\n return null;\n }\n}\n"
"private void setTestSuiteName(String testSuiteName) {\n List<String> tsNames = new ArrayList<String>(1);\n tsNames.add(testSuiteName);\n setTestSuiteNames(tsNames);\n}\n"
"public void widgetSelected(SelectionEvent e1) {\n if (isPatternMatchingIndicator(indicator) && !((PatternExplorer) explorer).isImplementRegexFunction(itemEntity.getLabel())) {\n MessageDialog.openInformation(null, itemEntity.getLabel(), DefaultMessagesImpl.getString(\"String_Node_Str\"));\n return;\n ...
"protected boolean cleanupHaltedVms(Connection conn) throws XenAPIException, XmlRpcException {\n Host host = Host.getByUuid(conn, _host.uuid);\n Map<VM, VM.Record> vms = VM.getAllRecords(conn);\n boolean success = true;\n if (vms != null && !vms.isEmpty()) {\n for (Map.Entry<VM, VM.Record> entry : vm...
"public void setValue(String path, Object value) {\n if (!path.contains(pathSeparator)) {\n root.put(path, value);\n return;\n }\n String[] parts = path.split(pathSeperator);\n Map<String, Object> node = root;\n for (int i = 0; i < parts.length; i++) {\n Object o = node.get(parts[i])...
"public void readData(ObjectDataInput in) throws IOException {\n member = new MemberImpl();\n member.readData(in);\n}\n"
"public List<IGenericDatasource> getAll() throws PentahoAccessControlException {\n helper.checkAdministratorAccess();\n List<IGenericDatasource> jdbcDatasourceList = new ArrayList<IGenericDatasource>();\n try {\n for (IDatabaseConnection databaseConnection : datasourceMgmtService.getDatasources()) {\n ...
"public void setPassword(String password) {\n this.password = password;\n if (password != null && !password.isEmpty()) {\n Hashing.HashingResult hashingResult = Hashing.createHash(password);\n hashedPassword = hashingResult.getHash();\n salt = hashingResult.getSalt();\n }\n}\n"
"private int readMiddleCepstra() throws IOException {\n int totalCepstra = 0;\n Data nextFrame = null;\n while (!((nextFrame = peekableQueue.removeNext()) instanceof EndPointSignal)) {\n if (nextFrame instanceof Cepstrum) {\n Cepstrum cepstrum = (Cepstrum) nextFrame;\n cepstraBuffe...
"public void close(Session session) throws SQLException {\n if (trace.isDebugEnabled()) {\n trace.debug(\"String_Node_Str\");\n }\n try {\n writeRowCount();\n } finally {\n store.incrementChangeCount();\n }\n}\n"
"public String getSplitText() {\n ITextContent textContent = (ITextContent) inlineContainer.content;\n if (textStartPos == -1 || textLength == 0) {\n return \"String_Node_Str\";\n } else {\n String splitText = textContent.getText().substring(textStartPos, textStartPos + textLength);\n retu...
"private void reportUpstream(UseDefEnvironment childEnv) {\n LinkedList<String> symbols = childEnv.upstreamSymbols();\n try {\n UseDefEnvironment parentEnv = environmentStack.peek();\n parentEnv.addChildSymbols(symbols);\n Collection<UseOrDef> toEmit = parentEnv.useOrDefsFromChildSymbols();\n...
"public void search(String searchTerm) {\n Blog blog = WordPress.getCurrentBlog();\n if (blog != null) {\n String blogId = String.valueOf(blog.getBlogId());\n Cursor cursor = WordPress.wpDB.getMediaFilesForBlog(blogId, searchTerm);\n mGridAdapter.changeCursor(cursor);\n }\n}\n"
"public long getDate(int col) {\n return rec.getDate(col);\n}\n"
"public void observeSample(final Collection<DocLevelLinkingScoring> collection) {\n {\n final ImmutableList.Builder<LinkingScoreDocRecord> docRecordsB = ImmutableList.builder();\n for (final DocLevelLinkingScoring linkingScoring : collection) {\n docRecordsB.add(linkingScoring.linkingScoreDo...
"public boolean contains(BlockPos i) {\n return contains(i.getX(), i.getY(), i.getZ());\n}\n"
"protected String getAppDirectories() {\n StringBuilder res = new StringBuilder(\"String_Node_Str\");\n String[] dirs;\n for (Application app : applications) {\n dirs = app.getSettingsValues(Constants.SETTINGS_BITARCHIVE_FILEDIR_LEAF);\n if (dirs != null && dirs.length > 0) {\n for (St...
"public void postInit(FMLPostInitializationEvent event) {\n if (!disableCapes) {\n proxy.cape();\n }\n CrossModLoader.postinit();\n crossBC = new CrossBuildcraft();\n crossRailcraft = new CrossRailcraft();\n crossRF = new CrossRF();\n crossIc2 = IC2Cross.getIC2Cross();\n if (crossIc2.getT...
"protected boolean isClientThreadSafe() {\n return true;\n}\n"
"private String calculateStatus(Position position) {\n if (position.getAttributes().containsKey(Event.KEY_ALARM)) {\n return \"String_Node_Str\";\n } else if (position.getSpeed() < 1.0) {\n return \"String_Node_Str\";\n } else {\n return \"String_Node_Str\";\n }\n}\n"
"private void bindToAnimation() {\n if (currentAnimation == null) {\n return;\n }\n RenderParameters renderParameters = currentAnimation.getRenderParameters();\n renderParameters.setImageDimension(new Dimension(widthField.getValue(), heightField.getValue()));\n renderParameters.setDimensionsLocked...
"public void makeAndUploadDronie() {\n Coord2D currentPosition = myDrone.getGps().getPosition();\n if (currentPosition == null || myDrone.getGps().getSatCount() <= 5) {\n myDrone.notifyDroneEvent(DroneEventsType.WARNING_NO_GPS);\n return;\n }\n items.clear();\n items.addAll(createDronie(thi...
"public static void addTableForSpecifiedDataPackage(DatabaseConnection dbconn, MetadataTable dbtable) {\n IMetadataConnection imetadataConnection = ConvertionHelper.convert(dbconn);\n DatabaseConnection conn = (DatabaseConnection) imetadataConnection.getCurrentConnection();\n Collection<orgomg.cwm.objectmodel....
"private void startVideoStream(Surface videoSurface) {\n SoloCameraApi.getApi(drone).startVideoStream(videoSurface, \"String_Node_Str\", true, new AbstractCommandListener() {\n\n public void onSuccess() {\n if (stopVideoStream != null)\n stopVideoStream.setEnabled(true);\n ...
"public void testLogisticRegression() throws Exception {\n String jsonString = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n RunLogisticRegression runLogisticRegression = new RunLogis...
"private File getSystemVMKeyFile() {\n URL url = this.getClass().getClassLoader().getResource(\"String_Node_Str\");\n File keyFile = null;\n if (url != null) {\n keyFile = new File(url.getPath());\n }\n if (keyFile == null || !keyFile.canRead()) {\n s_logger.error(\"String_Node_Str\");\n ...
"public Highlight getHighlightByTouchPoint(float x, float y) {\n float[] pts = new float[2];\n pts[0] = x;\n pts[1] = y;\n Matrix tmp = new Matrix();\n mMatrixOffset.invert(tmp);\n tmp.mapPoints(pts);\n mMatrixTouch.invert(tmp);\n tmp.mapPoints(pts);\n mMatrixValueToPx.invert(tmp);\n tmp.m...
"public void addQuery(String streamName, String queryString) {\n String queryId = siddhiManager.addQuery(queryString);\n streamStatusDao.addQuery(streamName, queryId, queryString);\n for (StreamDefinition streamDefinition : siddhiManager.getStreamDefinitions()) {\n streamStatusDao.createInferredStream(s...
"public void printResult(DFAAppInfo program) {\n for (Iterator<InstructionHandle> i = bounds.keySet().iterator(); i.hasNext(); ) {\n InstructionHandle instr = i.next();\n ContextMap<List<HashedString>, Pair<ValueMapping>> r = bounds.get(instr);\n Context c = r.getContext();\n LineNumberTa...
"public void setExecuting(boolean executing, int memFactor, long now) {\n if (mActive <= 0) {\n throw new IllegalStateException(\"String_Node_Str\" + this + \"String_Node_Str\" + mActive);\n }\n final int state = executing ? memFactor : STATE_NOTHING;\n if (mExecState != state) {\n if (mExecSt...
"public void hubDiscovered(HarmonyHubDiscoveryResult result) {\n logger.debug(\"String_Node_Str\", result.getFriendlyName());\n if (result.getFriendlyName().equalsIgnoreCase(config.name)) {\n discovery.removeListener(this);\n discovery.stopDiscovery();\n getThing().setProperty(HarmonyHubBindi...
"protected void onResume() {\n super.onResume();\n if (resetRequired) {\n reset();\n resetRequired = false;\n }\n resetViews();\n if (Utils.hasApi(11)) {\n invalidateOptionsMenu();\n }\n if (downloadHandler != null) {\n downloadHandler.startUpdates();\n }\n}\n"
"private int genNs(List<String> importedClasses, String pkg, String custom, int namespace, List<Integer> openedNamespaces, SourceGeneratorLocalData localData, int line) throws CompilationException {\n if (custom != null) {\n PropertyAVM2Item prop = new PropertyAVM2Item(null, custom, abc, allABCs, openedNamesp...
"public void returnProxy(HttpHost host, int statusCode) {\n Proxy p = allProxy.get(host.getAddress().getHostAddress());\n if (p == null) {\n return;\n }\n switch(statusCode) {\n case Proxy.SUCCESS:\n p.setReuseTimeInterval(reuseInterval);\n p.setFailedNum(0);\n ...
"public boolean accept(File dir, String name) {\n for (int i = 0; i < SKIP_LIST.length; i++) if (name.equals(SKIP_LIST[i]))\n return false;\n if (name.endsWith(\"String_Node_Str\") || name.endsWith(\"String_Node_Str\"))\n name = name.substring(0, name.length() - 4);\n else if (name.endsWith(\"Str...
"public boolean onFling(ListView v, int pos) {\n long packedPos = mExpandableListView.getExpandableListPosition(pos);\n if (ExpandableListView.getPackedPositionType(packedPos) == ExpandableListView.PACKED_POSITION_TYPE_CHILD) {\n ExpandableListAdapter listAdapter = mExpandableListView.getExpandableListAdap...
"public ExpressionTree newExponentiation(Optional<List<Tuple<ExpressionTree, InternalSyntaxToken>>> operatorAndOperands, ExpressionTree expression) {\n if (!operatorAndOperands.isPresent()) {\n return expression;\n }\n List<Tuple<InternalSyntaxToken, ExpressionTree>> list = operatorAndOperands.get();\n ...
"public boolean undo() {\n ServiceManager service = ServiceManager.getInstance();\n ArrayList<Label> ghLabels = CollectionUtilities.getGithubLabelList(removedLabels);\n issue.addLabels(removedLabels);\n try {\n ArrayList<Label> ghLabels = CollectionUtilities.getGithubLabelList(issue.getLabels());\n ...
"public void setUp() throws Exception {\n service = new CapabilityMatcherService();\n service.setToscaContextFinder(toscaContextFinder);\n nodeTemplate = new NodeTemplate();\n nodeTemplate.setCapabilities(Maps.newHashMap());\n capabilityTypeByTypeName = Maps.newHashMap();\n addCapabilityToNodeTemplate...
"public ValidatorHandler getValidatorHandler() {\n return validatorHandler;\n}\n"
"private void configListView(final ListView list) {\n list.setHorizontalScrollBarEnabled(false);\n list.setVerticalScrollBarEnabled(false);\n list.setCacheColorHint(0);\n list.setSelector(getResources().getDrawable(R.drawable.list_selector));\n list.setDivider(getResources().getDrawable(R.drawable.separa...
"private Integer retrieveParentSampleAccession(List<Sample> parentSamples, SampleInfo sample, int experimentAccession) throws Exception {\n Integer parentSampleAcc = null;\n if (parentSamples != null && !parentSamples.isEmpty()) {\n for (Sample pSample : parentSamples) {\n if (pSample.getName()....
"public <T> List<T> executeAndFetch(Class returnType) {\n List list = new ArrayList();\n PojoMetadata metadata = new PojoMetadata(returnType, this.isCaseSensitive(), this.getColumnMappings());\n try {\n long start = System.currentTimeMillis();\n ResultSet rs = statement.executeQuery();\n l...
"protected int executeCommand() throws CommandException {\n try {\n File serverDir = new File(nodeDir, node);\n if (serverDir == null || !serverDir.isDirectory()) {\n throw new CommandException(strings.get(\"String_Node_Str\", serverDir));\n }\n ArrayList<String> serverNames = ...
"public void run() {\n logger.debug(\"String_Node_Str\", nodeId);\n ZWaveNode node = controllerHandler.getNode(nodeId);\n if (node == null || node.isInitializationComplete() == false) {\n logger.debug(\"String_Node_Str\", nodeId);\n return;\n }\n List<SerialMessage> messages = new ArrayList...
"protected void onResumeFragments() {\n super.onResumeFragments();\n if (mFreshIntent) {\n handleActions(getIntent());\n mFreshIntent = false;\n }\n}\n"
"public WebResourceResponse interceptHtml(GoNativeWebviewInterface view, String url) {\n AppConfig appConfig = AppConfig.getInstance(context);\n if (!appConfig.interceptHtml)\n return null;\n if (!hasIntercepted) {\n interceptUrl = url;\n hasIntercepted = true;\n }\n if (!urlMatches(...