content
stringlengths
40
137k
"public Cursor queryLocal(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, boolean hiddenOnly) {\n if (VERBOSE_LOGGING) {\n Log.v(TAG, \"String_Node_Str\" + uri);\n }\n final SQLiteDatabase db = mDbHelper.getReadableDatabase();\n SQLiteQueryBuilder qb = new SQ...
"public boolean matches(Format format) {\n if (!super.matches(format))\n return false;\n return formatParametersMatch(format);\n}\n"
"public IType groovyClassToJavaType(ClassNode node) {\n try {\n ClassNode toLookFor = node;\n if (GroovyUtils.isAnonymous(node)) {\n toLookFor = node.getOuterClass();\n IType enclosing = groovyClassToJavaType(toLookFor);\n if (enclosing != null && !enclosing.isBinary())...
"public void sourceActive(ChannelHandlerContext ctx) {\n if (sourceSites.get(ctx) == null) {\n sourceSites.put(ctx, ctx);\n if (sourcePaused) {\n StreamValve.pipelinePause(ctx.pipeline());\n }\n }\n}\n"
"private JsonArray getMetrics(HttpRequest request, String contextPrefix) {\n Map<String, List<String>> queryParams = new QueryStringDecoder(request.getUri()).getParameters();\n List<String> prefixEntity = queryParams.get(\"String_Node_Str\");\n String metricPrefix = (prefixEntity == null) ? \"String_Node_Str\"...
"private void modifyMethodInvocationsInSubclass(List<Expression> oldMethodInvocations, List<Expression> newMethodInvocations, AST subclassAST, ASTRewrite subclassRewriter, Set<MethodDeclaration> accessedMethods, Set<IMethodBinding> superAccessedMethods) {\n int j = 0;\n for (Expression expression : newMethodInvoc...
"private void extractFromCallNode(Builder builder, Node node) throws MalformedException {\n if (!node.isCall()) {\n throw new MalformedException(\"String_Node_Str\" + MSG_FUNCTION_NAME + \"String_Node_Str\", node);\n }\n Node fnNameNode = node.getFirstChild();\n if (!fnNameNode.matchesQualifiedName(M...
"public Object overrideDriverTypeConversion(MetaModel mm, String attributeName, Object value) {\n if (value instanceof String && !Util.blank(value) || value instanceof Number) {\n String typeName = mm.getColumnMetadata().get(attributeName).getTypeName();\n if (\"String_Node_Str\".equalsIgnoreCase(typeN...
"public Iterator<Node> iterator(final String name) throws RepositoryException {\n PropertyIterator properties = referenced.getReferences();\n Set<Node> blah = propertiesScheduledForRemoval.get(name);\n if (blah == null) {\n blah = Collections.emptySet();\n }\n final Set<Node> tutu = blah;\n Abs...
"private CacheResult tryToFetchArtifactFromBuildCacheAndOverlayOnTopOfProjectFilesystem(BuildRule rule, RuleKey ruleKey, BuildInfoRecorder buildInfoRecorder, ArtifactCache artifactCache, ProjectFilesystem filesystem, BuildContext buildContext) throws InterruptedException {\n File zipFile;\n try {\n zipFile...
"public void shutdown() {\n if (gossipBossGroup != null) {\n gossipBossGroup.shutdownGracefully();\n }\n if (gossipWorkerGroup != null) {\n gossipWorkerGroup.shutdownGracefully();\n }\n if (dataBossGroup != null) {\n dataBossGroup.shutdownGracefully();\n }\n if (dataWorkerGroup...
"public Object execute(ExecutionEvent event) throws ExecutionException {\n IEvaluationContext ctx = (IEvaluationContext) event.getApplicationContext();\n Shell shell = (Shell) ctx.getVariable(ISources.ACTIVE_WORKBENCH_WINDOW_SHELL_NAME);\n FileDialog dialog = new FileDialog(shell, SWT.OPEN);\n String name =...
"public void buildFrom(final Alignments.AlignmentEntry alignmentEntry, final CharList actualReadsSrc, final ByteList actualQualitiesSrc) {\n reset();\n reverseStrand = alignmentEntry.getMatchingReverseStrand();\n setActualReads(actualReadsSrc, reverseStrand);\n setActualQuals(actualQualitiesSrc, reverseStra...
"protected MutableString trimRight(int length, MutableString sequence, ByteString qualityScores, ByteArrayList newQualScores, MutableString[] adapters) {\n int currentLength = sequence.length();\n for (MutableString adapter : adapters) {\n final int adaptLength = adapter.length();\n for (int j = min...
"private Map<byte[], Map<byte[], byte[]>> filteredLatestColumnsWithKey(ResultSet result, ReadPointer readPointer, int limit) throws SQLException {\n if (limit <= 0) {\n limit = Integer.MAX_VALUE;\n }\n Map<byte[], Map<byte[], byte[]>> map = new TreeMap<byte[], Map<byte[], byte[]>>(Bytes.BYTES_COMPARATOR...
"public void run() {\n ReadObserver oldReader = reader;\n try {\n synchronized (LOCK) {\n if (shutdown) {\n newReader.shutdown();\n return;\n }\n reader = newReader;\n }\n ChannelReader lastChannel = newReader;\n while (las...
"public void running() {\n InetSocketAddress endpoint = driver.getServiceEndpoint();\n cancelAnnounce = serviceAnnouncer.announce(serviceName, endpoint.getPort());\n LOG.debug(\"String_Node_Str\", serviceName, endpoint);\n started();\n}\n"
"public PendingIntent GetPendingIntent(Context context, UPDATESOURCE source) {\n return PendingIntent.getBroadcast(context, REQUEST_CODE, GetAlarmIntent(source), PendingIntent.FLAG_UPDATE_CURRENT);\n}\n"
"private static List<String> retrieveGitlabProjectIds(Run<?, ?> build, EnvVars environment) {\n List<String> result = new ArrayList<>();\n for (String remoteUrl : build.getAction(BuildData.class).getRemoteUrls()) {\n try {\n String projectNameWithNameSpace = ProjectIdUtil.retrieveProjectId(envir...
"public void run() {\n CodeGeneratorService service = new CodeGeneratorService();\n service.refreshTemplates();\n}\n"
"private static String convertFrames(String prevStr, String afterStr, List<Integer> oneInstanceShapes, List<Tag> tags, List<Tag> timelineTags, HashMap<Integer, CharacterTag> characters, int depth) {\n String ret = \"String_Node_Str\";\n prevStr += \"String_Node_Str\";\n int frame = -1;\n String elements = \...
"public void shuffle(double[][] kernel, long seed) {\n Double[][] kernelDouble = convert2DoubleObjects(kernel);\n for (int i = 0; i < kernel.length; i++) {\n Collections.shuffle(Arrays.asList(kernelDouble[i]), new Random(seed));\n }\n Collections.shuffle(Arrays.asList(kernelDouble), new Random(seed))...
"public boolean isSubclassOf(ClassInfo classInfo) {\n if (!classInfo.isInterface()) {\n return classInfo.isSuperclassOf(this);\n }\n if (isInterface()) {\n return this.isExtensionOf(classInfo);\n } else {\n return classInfo.isImplementationOf(this);\n }\n}\n"
"public Neighbor<double[], E>[] knn(double[] q, int k, double recall, int T) {\n if (recall > 1 || recall < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + recall);\n }\n if (k < 1) {\n throw new IllegalArgumentException(\"String_Node_Str\" + k);\n }\n double alpha = 1 - Mat...
"public CharacteristicComponentDesc descriptor() {\n if (characteristicComponentDesc == null) {\n PropertyDesc[] propertyDescriptors = null;\n synchronized (properties) {\n int i = 0;\n propertyDescriptors = new PropertyDesc[properties.size()];\n Iterator<PropertyOperat...
"public boolean evaluate() throws Exception {\n List<String> regionsA = getTableRegionMap().get(tableNameA);\n if (regionsA == null)\n return false;\n List<String> regionsB = getTableRegionMap().get(tableNameB);\n if (regionsB == null)\n return false;\n return getTableRegionMap().get(tableN...
"public String getTypeHash() throws UnableToCompleteException {\n if (lazyHash == null) {\n char[] source = cup.getSource();\n int length = declEnd - declStart + 1;\n String s = new String(source, declStart, length);\n try {\n lazyHash = Util.computeStrongName(s.getBytes(Util.D...
"private void setupBridge(final ClrHandlersInitializer initializer) {\n LOG.log(Level.INFO, \"String_Node_Str\");\n try (final LoggingScope lb = this.loggingScopeFactory.setupBridge()) {\n final CLRBufferedLogHandler handler = getCLRBufferedLogHandler();\n if (handler == null) {\n LOG.log...
"protected void setUp() throws Exception {\n super.setUp();\n testObject = new Object[] { new Integer(1), new Integer(0), BigDecimal.valueOf(Integer.MAX_VALUE), BigDecimal.valueOf(Integer.MAX_VALUE + 1), BigDecimal.valueOf(Integer.MIN_VALUE), BigDecimal.valueOf(Integer.MIN_VALUE - 1), BigDecimal.valueOf(0l), Bool...
"public Data getData() throws DataProcessingException {\n Data input = getPredecessor().getData();\n getTimer().start();\n if (input != null) {\n if (input instanceof DoubleData) {\n applyPreemphasis(((DoubleData) input).getValues());\n } else if (input instanceof DataEndSignal || inpu...
"public void process(final Object obj) {\n final long processStart = System.nanoTime();\n if (obj instanceof Invocation) {\n final Invocation inv = (Invocation) obj;\n final MemberImpl memberFrom = ClusterManager.get().getMember(inv.conn.getEndPoint());\n if (memberFrom != null) {\n ...
"public static void checkLastGenerationHasCompilationError(boolean updateProblemsView) throws ProcessorException {\n if (updateProblemsView && CommonsPlugin.isHeadless()) {\n updateProblemsView = false;\n }\n boolean hasError = false;\n boolean isJob = true;\n Item item = null;\n final IProxyRe...
"private synchronized static boolean hasChanged(DataSourceProvider current, Context optContext) {\n if (current == null) {\n return true;\n }\n if (optContext == null) {\n return true;\n }\n String agencyProviderMetaData = getAgencyProviderMetaData(optContext);\n String scheduleProviderM...
"public String getLabel(Pick pick) {\n if (pick.getObjectID() < 0)\n return null;\n IState current = stateMachine.getCurrent();\n List<ITransition> transitions = stateMachine.getTransitions(current);\n ITransition transition = transitions.get(pick.getObjectID());\n return transition.getDisabledRea...
"public boolean isCloseSupported() {\n return true;\n}\n"
"public void I_have_a_patch_file() throws Throwable {\n Patch patch = new Patch();\n String path = NodeRef.appendChild(pointsName, points1.getIdentifier().getID());\n Map<PropertyDescriptor, AttributeDiff> map = Maps.newHashMap();\n Object oldValue = points1.getProperty(\"String_Node_Str\").getValue();\n ...
"protected byte[] doInBackground(Object[] params) {\n byte[] byteArray = ImageHelper.getBytesBitmap(croppedImageBitmap);\n File file;\n try {\n file = imageUtils.createFile(byteArray);\n } catch (IOException e) {\n ErrorUtils.logError(e);\n }\n return null;\n}\n"
"public VolumeInfo getVolumeById(String volumeId) throws DatabaseException, UserException {\n VolumeInfo volume = volIdMap.get(volumeId);\n if (volume == null)\n throw new UserException(ErrNo.ENOENT, \"String_Node_Str\" + volumeId + \"String_Node_Str\");\n return volume;\n}\n"
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n recordManager = new RecordManager(getActivity());\n View view = inflater.inflate(R.layout.record_frg_layout, container, false);\n backGround = view.findViewById(R.id.background);\n mAddRecordBt = (Floating...
"protected void closeLayout() {\n regionLayout = null;\n if (root == null) {\n return;\n }\n int borderHeight = 0;\n if (layout != null) {\n int height = layout.resolveAll();\n if (0 != height) {\n currentBP = currentBP + height;\n }\n borderHeight = layout.r...
"public List<Integer> filter(final IFilter filter) throws IOException {\n switch(filter.getFilterType()) {\n case NUMBER:\n NumberFilter numberFilter = (NumberFilter) filter;\n byte setNumber;\n try {\n setNumber = numberFilter.getNumberObject().getByte();\n ...
"public void run() {\n try {\n if (s_logger.isTraceEnabled()) {\n s_logger.trace(\"String_Node_Str\" + _mshostId);\n }\n _mshostDao.update(_mshostId, getCurrentRunId(), DateUtil.currentGMTTime());\n if (s_logger.isTraceEnabled()) {\n s_logger.trace(\"String_Node_Str\...
"public DimensionViewHandle insertDimension(DimensionHandle dimensionHandle, int axisType, int index) throws SemanticException {\n if (dimensionHandle != null && crosstab.getDimension(dimensionHandle.getQualifiedName()) != null) {\n crosstab.getLogger().log(Level.SEVERE, MessageConstants.CROSSTAB_EXCEPTION_DU...
"public List<ElementParameter> resetParameters() {\n final List<ElementParameter> newParameters = new ArrayList<>();\n List<ElementParameter> currentParameters = (List<ElementParameter>) element.getElementParameters();\n List<ElementParameter> parameters = new ArrayList<>();\n ComponentService componentServ...
"public void onInventoryClose(InventoryCloseEvent e) {\n try {\n if (UC.getPlayer((OfflinePlayer) e.getPlayer()).isInCommandEnchantingtable()) {\n UC.getPlayer((OfflinePlayer) e.getPlayer()).setInCommandEnchantingtable(false);\n }\n if (UC.getPlayer(e.getPlayer().getUniqueId()).isInOf...
"public void activate(MyWolf wolf, Object args) {\n if (MyWolfPermissions.has(wolf.getOwner(), \"String_Node_Str\" + this.Name) == false) {\n return;\n }\n if (wolf.HealthMax < 20) {\n wolf.HealthMax += 1;\n wolf.setHealth(wolf.HealthMax);\n wolf.sendMessageToOwner(MyWolfUtil.SetCol...
"protected RT setType(T type) {\n if (type == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n this.type = type;\n return (R) this;\n}\n"
"protected int processUploadFile(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException {\n boolean formatKnown = true;\n boolean fileOK = false;\n BitstreamFormat bf = null;\n Bitstream b = nu...
"public static float getPValue(float logRankScore) {\n if (Float.isNaN(logRankScore) || Float.isInfinite(logRankScore))\n return Float.NaN;\n double r = Statistics.chiSquaredProbability(logRankScore, 1);\n return (float) r;\n}\n"
"private void SleepWithoutInterrupt(long millis) {\n try {\n Thread.sleep(millis);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n}\n"
"private void __renderReport(OutputStream out) throws Exception {\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n Locale locale = (Locale) this.options.getOption(InputOptions.OPT_LOCALE);\n Boolean isMasterPageContent = (Boolean) this.options.getOption(InputOptions.OPT_IS_MASTER...
"public boolean editItem(final Object element) {\n final SelectionChoice choice = (SelectionChoice) element;\n boolean isDefault = isDefaultChoice(choice);\n SelectionChoiceDialog dialog = new SelectionChoiceDialog(Messages.getString(\"String_Node_Str\"));\n dialog.setInput(choice);\n dialog.setValidator...
"void dumpProcessesLocked(FileDescriptor fd, PrintWriter pw, String[] args, int opti, boolean dumpAll, String dumpPackage) {\n boolean needSep = false;\n boolean printedAnything = false;\n int numPers = 0;\n pw.println(\"String_Node_Str\");\n if (dumpAll) {\n final int NP = mProcessNames.getMap()....
"public void open() throws MessageQueueException {\n try {\n if (msmqHandle != null) {\n msmqHandle.close();\n msmqHandle = null;\n }\n String fullname = getQueueFullName(host, queueName);\n msmqHandle = new Queue(fullname);\n } catch (MessageQueueException ex1) {...
"public org.hl7.fhir.dstu2.model.Duration convertDuration(org.hl7.fhir.dstu3.model.Duration src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Duration tgt = new org.hl7.fhir.dstu2.model.Duration();\n copyElement(src, tgt);\n tgt.setValue(src.get...
"public double getDiagonalLineWidth() {\n return diagonalWidth;\n}\n"
"public boolean canFindUsagesFor(PsiElement psiElement) {\n return psiElement instanceof PNameNsDeclaration || psiElement instanceof VariablePsiElement;\n}\n"
"public void draw(GlimpseContext context, DrawableTextureProgram program, int texUnit, Collection<TextureUnit<Texture>> multiTextureList) {\n boolean ready = prepare(context, texUnit);\n if (!ready) {\n logger.log(WARNING, \"String_Node_Str\");\n return;\n }\n for (TextureUnit<Texture> texture...
"private boolean readNotificationList(ReadableByteChannel readableByteChannel) throws IOException {\n if (!this.eventListExistanceDeserialized) {\n this.tempBuffer.position(0);\n this.tempBuffer.limit(1);\n readableByteChannel.read(this.tempBuffer);\n if (this.tempBuffer.hasRemaining()) {...
"private void pressRetreiveSchemaButton() {\n ConnectionStatus connectionStatus = checkConnection(false);\n if (!connectionStatus.getResult()) {\n tableSettingsInfoLabel.setText(connectionStatus.getMessageException());\n } else {\n boolean doit = true;\n if (tableEditorView.getMetadataEdit...
"public void pasteSchematic(final Location loc, final Player player) {\n if (this.file == null) {\n if (Settings.GAMETYPE == GameType.ACIDISLAND) {\n generateIslandBlocks(loc, player);\n } else {\n loc.getBlock().setType(Material.BEDROCK);\n ASkyBlock.getPlugin().getLog...
"public void updateConfig(boolean restartOnSuccess, boolean exitOnCancel) {\n Set<OptionInput> optionInputs = new HashSet<>();\n Option option = new Option(\"String_Node_Str\", hasProperty(GAMEDATA_PATH) ? getGameDataPath().toString() : null, new OptionSaveStrategy.ConfigStrategy(this, GAMEDATA_PATH));\n optio...
"public synchronized void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException {\n RhogenDebugTarget target = null;\n setProcessFinished(false);\n rhodesLogHelper.stopLog();\n ConsoleHelper.cleanBuildConsole();\n ConsoleHelper.showBu...
"protected void drawData() {\n ArrayList<Path> topPaths = new ArrayList<Path>();\n ArrayList<Path> sidePaths = new ArrayList<Path>();\n if (m3DEnabled) {\n float[] pts = new float[] { 0f, 0f, 1f, 0f };\n transformPointArray(pts);\n pts[3] = pts[2] - pts[0];\n pts[2] = 0f;\n p...
"public void disconnect() {\n if (myController.isConnected()) {\n myController.disconnect();\n myController.close();\n }\n}\n"
"public double getMatchingWeight(String str1, String str2) {\n int maxLen = Math.max(str1.length(), str2.length());\n if (maxLen == 0) {\n return 1.0;\n } else {\n final int levenshteinDistance = StringUtils.getLevenshteinDistance(str1, str2);\n return 1.0 - ((double) levenshteinDistance /...
"public void createSfTestAuthFail() {\n TackerManager badCredentialsTackerManager = TackerManager.builder().setBaseUri(BASE_URI).setTackerPort(BASE_PORT).setKeystonePort(KEYSTONE_PORT).setAuth(Auth.builder().setTenantName(\"String_Node_Str\").setPasswordCredentials(new PasswordCredentials(\"String_Node_Str\", \"Stri...
"public void setContentHandler(ContentHandler contentHandler) {\n if (null == validatorHandler) {\n this.contentHandler = contentHandler;\n } else {\n validatorHandler.setContentHandler(contentHandler);\n this.contentHandler = validatorHandler;\n }\n}\n"
"public static void fieldAssigned(Object instance, String file, String classAndFieldNames) {\n if (terminated)\n return;\n synchronized (TestRun.class) {\n CoverageData coverageData = CoverageData.instance();\n FileCoverageData fileData = coverageData.getFileData(file);\n fileData.data...
"public void addTrackedChange(String optionalComment) {\n final IProjectPO project = GeneralStorage.getInstance().getProject();\n boolean isTrackingChanges = false;\n if (project != null) {\n isTrackingChanges = project.getIsTrackingActivated();\n }\n if (isTrackingChanges) {\n final long t...
"private void finishRecord() {\n stopRecording();\n recordIndicator.dismiss();\n setBackgroundResource(BACK_IDLE);\n long intervalTime = System.currentTimeMillis() - startTime;\n if (intervalTime < MIN_INTERVAL_TIME) {\n Toast.makeText(getContext(), getContext().getString(R.string.chat_record_butt...
"JSType resolveInternal(ErrorReporter t, StaticScope<JSType> scope) {\n setResolvedTypeInternal(this);\n call = (ArrowType) safeResolve(call, t, scope);\n if (prototypeSlot != null) {\n prototypeSlot.setType(safeResolve(prototypeSlot.getType(), t, scope));\n }\n JSType maybeTypeOfThis = safeResolv...
"public synchronized void add(ISelectable selectable) {\n ESelectionType selectionType = selectable.getSelectionType();\n if (selectionType.priority < this.selectionType.priority) {\n return;\n } else if (selectionType.priority > this.selectionType.priority) {\n setSelected(false);\n this....
"public void drawHighlighted(Canvas c, Highlight[] indices) {\n float phaseX = mAnimator.getPhaseX();\n float phaseY = mAnimator.getPhaseY();\n float angle;\n float rotationAngle = mChart.getRotationAngle();\n float[] drawAngles = mChart.getDrawAngles();\n float[] absoluteAngles = mChart.getAbsoluteAn...
"private static List getExprTextList(IBaseExpression expression) {\n List textList = new ArrayList();\n if (expression instanceof IScriptExpression) {\n textList.add(((IScriptExpression) expression).getText());\n } else if (expression instanceof IExpressionCollection) {\n List exprList = (List) (...
"private static void logMethod(MethodHookParam param) {\n boolean isOutputJson = false;\n String settingValue = LogManager.getSetting(Util.JSON_OUTPUT_SETTING);\n if (settingValue != null && settingValue.equals(\"String_Node_Str\")) {\n isOutputJson = true;\n Method method = (Method) param.method;\n ...
"public JmxReporterDefinition applyAsOverride(final JmxReporterDefinition override) {\n JmxReporterDefinition jmxReporterDefinition = new JmxReporterDefinition();\n jmxReporterDefinition.setName(this.name);\n jmxReporterDefinition.setDomain(this.domain);\n jmxReporterDefinition.setDurationUnit(this.duration...
"private void bindSortOnCategorySeries(BaseQueryDefinition query, SeriesDefinition categorySD, GroupDefinition categoryGroupDefinition, Map<String, String[]> valueExprMap) throws ChartException {\n String baseSortExpr = getValidSortExpr(categorySD);\n if (!categorySD.isSetSorting() || baseSortExpr == null) {\n ...
"public void onNext(RoomsOverall roomsOverall) {\n for (Room room : roomsOverall.getOcs().getData()) {\n if (roomId.equals(room.getRoomId())) {\n roomToken = room.getToken();\n conversationName = room.getDisplayName();\n setTitle();\n break;\n }\n }\n g...
"public static void main(String[] args) {\n int numberOfExperimentRepetitions = 10;\n int loggingLevel = 2;\n String filename = args[0];\n String separator = \"String_Node_Str\";\n double[] classificationThresholds = new double[] { Double.parseDouble(args[1]) };\n List<String> domainNames = new ArrayL...
"private void occupyArea(final byte playerId, Iterable<ShortPoint2D> influencingArea, SRectangle borders) {\n IPredicate<ShortPoint2D> predicate = new IPredicate<ShortPoint2D>() {\n public boolean evaluate(ShortPoint2D pos) {\n int index = pos.x + pos.y * width;\n return towers[index] <=...
"public Command getOrphanChildrenCommand(GroupRequest request) {\n List parts = request.getEditParts();\n CompoundCommand result = new CompoundCommand(\"String_Node_Str\");\n for (int i = 0; i < parts.size(); i++) {\n DeleteCommand command = new DeleteCommand(((EditPart) parts.get(i)).getModel());\n ...
"public void setNextParticle() throws NameDuplicationException, IllegalActionException {\n Token _result;\n Token processNoiseSample;\n LinkedList newParticle = new LinkedList();\n for (int i = 0; i < _stateSpaceSize; i++) {\n Parameter p = (Parameter) (_updateEquations.get(_stateVariables[i])).getAt...
"public void contentManifest() throws Exception {\n fileCreator.createFiles();\n File targetFile = new File(targetDir, MANIFEST_PATH);\n String manifestContent = FileUtils.readFileToString(targetFile);\n String expectedManifestContent = String.format(\"String_Node_Str\", APPLICATIONS_SECTION.getName(), NAME...
"private Map<PackageIdentifier, ResolvedTargets<Target>> bulkGetTargetsInPackage(String originalPattern, Iterable<PackageIdentifier> pkgIds, FilteringPolicy policy) throws TargetParsingException, InterruptedException {\n try {\n Map<PackageIdentifier, Package> pkgs = bulkGetPackages(pkgIds);\n Immutabl...
"public void run() {\n try {\n object.getRealm();\n fail();\n } catch (IllegalStateException e) {\n assertEquals(BaseRealm.INCORRECT_THREAD_MESSAGE, e.getMessage());\n }\n try {\n RealmObject.getRealm(object);\n fail();\n } catch (Throwable t) {\n throwable.set(t...
"public ScoringData transform(ScoringData input) {\n checkArgument(input.answerKey().isPresent(), \"String_Node_Str\" + \"String_Node_Str\");\n input.answerKey().get().checkCompletelyAssesses(input.systemOutput().get());\n final ResponseMapping responseMapping = rule.computeResponseTransformation(input.answerK...
"private void renameVariables(final HashMap<Variable, Variable> map) {\n if (containVar()) {\n int i = 0;\n for (final Term term : components) {\n if (term instanceof Variable) {\n Variable var;\n if (term.getName().length() == 1) {\n var = ne...
"private void updateChangesInEditorWindow(FileInfo info) {\n LOG.log(Level.INFO, \"String_Node_Str\", info.getPath());\n final EditorCookie cookie = info.getCookie();\n Runnable runner = new Runnable() {\n public void run() {\n NbDocument.runAtomic(cookie.getDocument(), () -> {\n ...
"private ExecutionResult prepareNetworkElementCommand(final SetupGuestNetworkCommand cmd) {\n final Connection conn = getConnection();\n final NicTO nic = cmd.getNic();\n final String domrName = cmd.getAccessDetail(NetworkElementCommand.ROUTER_NAME);\n try {\n final Set<VM> vms = VM.getByNameLabel(co...
"public void testReplayStatus() {\n assertEquals(RecordAndReplayStatus.REPLAYING, RecordAndReplayStatus.getCurrentStatus());\n long startTime = System.currentTimeMillis();\n while ((System.currentTimeMillis() - startTime) < 10) {\n eventSystem.process();\n }\n assertEquals(RecordAndReplayStatus.RE...
"public static void printOutput(int currentMonth) throws Exception {\n BayesianNetwork bnSVB = svb.getLearntBayesianNetwork();\n BayesianNetwork bnDriftSVB = driftSVB.getLearntBayesianNetwork();\n BayesianNetwork bnStochasticVI = stochasticVI.getLearntBayesianNetwork();\n BayesianNetwork bnPopulationVI = po...
"public void customize(ConfigurableEmbeddedServletContainer container) {\n if (!(container instanceof TomcatEmbeddedServletContainerFactory)) {\n return;\n }\n TomcatEmbeddedServletContainerFactory containerFactory = (TomcatEmbeddedServletContainerFactory) container;\n containerFactory.addContextValv...
"public Map<String, WorkflowNodeStateDetail> getWorkflowNodeStates(ProgramRunId workflowRunId) throws NotFoundException {\n try {\n ProgramRunId programRunId = new ProgramRunId(workflowId.getNamespaceId(), workflowId.getApplicationId(), workflowId.getType(), workflowId.getId(), workflowRunId);\n return...
"public void messageReceived(WonderlandClientSender sender, WonderlandClientID clientID, Message message) {\n AppContext.getDataManager().markForUpdate(this);\n if (message instanceof ClientConnectMessage) {\n sender.send(clientID, new ClientConnectResponseMessage(presenceInfoList.toArray(new PresenceInfo[...
"private void renderOverviewToDetailRelations(GL gl, HeatMapWrapper heatMapWrapper) {\n for (GLHeatMap heatMap : heatMapWrapper.getHeatMaps(true)) {\n boolean highlight = false;\n ContentSelectionManager contentSelectionManager = heatMapWrapper.getContentSelectionManager();\n for (Integer conten...
"private static Notification createNotification(Context context, NotificationDetails notificationDetails) {\n int resourceId;\n if (notificationDetails.iconResourceId == null) {\n if (notificationDetails.icon != null) {\n resourceId = context.getResources().getIdentifier(notificationDetails.icon...
"private void loadRows() {\n String inputId = getActivity().getIntent().getStringExtra(TvInputInfo.EXTRA_INPUT_ID);\n String serviceName = Utils.getServiceNameFromInputId(getActivity(), inputId);\n if (!TextUtils.isEmpty(serviceName)) {\n String[] a = serviceName.split(\"String_Node_Str\");\n ser...
"private boolean isDescriptionAllowed(Description description, OENode parentNode) {\n if (isClassLearningProblem) {\n if (isEquivalenceProblem) {\n if (occursOnFirstLevel(description, classToDescribe)) {\n return false;\n }\n } else {\n TreeSet<Descriptio...
"protected void maybeAddHostedModeFile(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException {\n String filename = getHostedFilename();\n if (\"String_Node_Str\".equals(filename)) {\n return;\n }\n long lastModified = System.currentTimeMillis();\n String...