content
stringlengths
40
137k
"public void suspendSubscriptionEngine() {\n try {\n XtentisPort port = getPort();\n WSRoutingEngineV2Status status = port.routingEngineV2Action(new WSRoutingEngineV2Action(WSRoutingEngineV2ActionCode.SUSPEND));\n statusLabel.setText(status.getValue());\n } catch (Exception e) {\n log....
"public void feed(List<Entry> entries) {\n int size = (int) Math.ceil((mTo - mFrom) * phaseX + mFrom);\n for (int i = mFrom; i < size; i++) {\n Entry e = entries.get(i);\n addCircle(e.getXIndex(), e.getVal() * phaseY);\n }\n reset();\n}\n"
"public void addScanStrip(ScanStrip strip) {\n if (strip.getName() == null) {\n File scanDir = new File(dir, \"String_Node_Str\");\n if (!scanDir.exists()) {\n if (!scanDir.mkdir()) {\n log.severe(\"String_Node_Str\");\n return;\n }\n }\n ...
"public void generate(Logger logger, CompilerBackend gen, GenInfo info) throws UndefinedTypeException {\n gen.startWaitStatement(procName, waitVars, passedInVars, keepOpenVars, priority, mode, recursive, target);\n this.block.generate(logger, gen, info);\n gen.endWaitStatement(passedInVars, keepOpenVars);\n}\n...
"public ExecutionVertex next() {\n if (this.traversalStack.isEmpty()) {\n if (this.numVisitedEntryVertices < 0) {\n return null;\n }\n TraversalEntry newentry;\n if (forward) {\n newentry = new TraversalEntry(executionGraph.getInputVertex(this.startStage, numVisitedE...
"private int getNewIndent(int startOffset, int endOffset) throws BadLocationException {\n LinkedList<? extends Tree> path = getPath(startOffset);\n if (path.isEmpty()) {\n return 0;\n }\n Tree last = path.getFirst();\n int lastPos = getStartPosition(last);\n int currentIndent = getCurrentIndent...
"public static void updateAutoscalingPolicy(AutoscalePolicy autoscalePolicyBean) throws RestAPIException {\n log.info(String.format(\"String_Node_Str\", autoscalePolicyBean.getId()));\n AutoscalerServiceClient autoscalerServiceClient = getAutoscalerServiceClient();\n if (autoscalerServiceClient != null) {\n ...
"public void onClick(View v) {\n EditorTools newTool = getToolForView(v.getId());\n if (newTool == this.tool) {\n newTool = EditorTools.NONE;\n mEditorRadioGroup.clearCheck();\n }\n setTool(newTool);\n}\n"
"private String compileToJs(CompilerOptions compilerOptions, File applicationDir, String moduleName, List<MockResource> applicationResources, MinimalRebuildCache minimalRebuildCache, Set<String> expectedProcessedStaleTypeNames, JsOutputOption output) throws IOException, UnableToCompleteException, InterruptedException {...
"protected String[] appendSetOperands(StringBuilder sqlSb, SetOperationType setType, String operator, boolean isSubquery, List<String> operands, boolean hasOuterClause) {\n boolean first = true;\n final boolean emulate = setType == SetOperationType.EXCEPT_ALL && !supportsExcept(true) || setType == SetOperationTyp...
"private void write(MethodWriter writer, boolean expr) throws BytecodeException {\n int varIndex = writer.localCount();\n IType type = this.value.getType();\n this.value.writeExpression(writer);\n writer.writeVarInsn(type.getStoreOpcode(), varIndex);\n int localCount = writer.localCount();\n Label els...
"public static void jsLoad(String aResourceName, final JavaScriptObject onSuccess, final JavaScriptObject onFailure, final boolean text) throws Exception {\n SafeUri uri = AppClient.getInstance().getResourceUri(aResourceName);\n AppClient.getInstance().startRequest(uri, text ? ResponseType.Default : ResponseType....
"public Response getNodeTemplate(final String nodeTemplateId) throws NotFoundException {\n final NodeTemplateDTO result = this.nodeTemplateService.getNodeTemplateById(csarId, QName.valueOf(serviceTemplateId), QName.valueOf(nodeTemplateId));\n result.add(UriUtils.generateSubResourceLink(uriInfo, \"String_Node_Str\...
"public void run() {\n int i = 0;\n if (i >= 10) {\n s.sendMessage(ChatColor.GREEN + \"String_Node_Str\" + total + \"String_Node_Str\");\n return;\n }\n while (i < 10) {\n if (bPlayers.isEmpty()) {\n sender.sendMessage(ChatColor.GREEN + \"String_Node_Str\");\n Bukk...
"ActivityRecord findTaskLocked(ActivityRecord r) {\n if (DEBUG_TASKS)\n Slog.d(TAG_TASKS, \"String_Node_Str\" + r);\n for (int displayNdx = mActivityDisplays.size() - 1; displayNdx >= 0; --displayNdx) {\n final ArrayList<ActivityStack> stacks = mActivityDisplays.valueAt(displayNdx).mStacks;\n ...
"public synchronized Plugin loadPlugin(File paramFile, boolean ignoresoftdepends) throws InvalidPluginException, InvalidPluginException, UnknownDependencyException, InvalidDescriptionFileException {\n CommonPlugin result = null;\n PluginDescriptionFile desc = null;\n desc = getDescription(paramFile);\n File...
"public List getAllThemes() {\n List elementList = module.getModuleNameSpace(Module.THEME_NAME_SPACE).getElements(IModuleNameSpace.ONE_LEVEL);\n return generateHandleList(elementList);\n}\n"
"public String deploy(Service service) throws MalformedURLException {\n RecipeFactory factory = new RecipeFactory();\n Recipe serviceDeployRecipe = factory.createRecipe(service);\n RecipeDeployer deployer = new RecipeDeployer(new NodePoolManagerHandler());\n deployer.uploadRecipe(serviceDeployRecipe);\n ...
"private void handleMethodConsumer(MethodSpec.Builder methodSpec, Multimap<String, String> ramlTypeToMediaType, GType typeDeclaration) {\n Collection<String> mediaTypes = ramlTypeToMediaType.get(typeDeclaration == null ? null : typeDeclaration.name());\n if (mediaTypes.size() > 0) {\n AnnotationSpec.Builde...
"public String toString() {\n if (items.get(id) != null) {\n return String.format(\"String_Node_Str\", items.get(id), slot, amount, damage);\n } else {\n return String.format(\"String_Node_Str\", id, slot, amount, damage);\n }\n}\n"
"FailedLogRecords sendLogRecords(LogRecord[] logRecords) {\n Arrays.sort(logRecords, timestampLogRecordComparator);\n FailedLogRecords failures = new FailedLogRecords();\n List<LogRecord> candidateLogRecords = new ArrayList<LogRecord>();\n if (useAcsLogServiceExtensions) {\n List<XmlLogRecord> remote...
"public void testGetBasicChampData() throws Exception {\n try {\n List<BasicChampData> euwBasicChampDatas = handler.getBasicChampData().get(1, MINUTES);\n assertNotNull(euwBasicChampDatas);\n assertFalse(euwBasicChampDatas.isEmpty());\n } catch (RequestException ex) {\n if (isNotServer...
"private String initExpression(DbMapComponent component, ExternalDbMapEntry dbMapEntry) {\n String expression = dbMapEntry.getExpression();\n boolean flag = false;\n if (expression != null) {\n List<Map<String, String>> itemNameList = null;\n MapExpressionParser mapParser1 = new MapExpressionPars...
"public int run(String[] args) throws IOException {\n if (args.length < 3) {\n log.error(\"String_Node_Str\");\n ToolRunner.printGenericCommandUsage(System.out);\n return -1;\n }\n Path userInputPath = new Path(args[0]);\n Path itemInputPath = new Path(args[1]);\n Path outputPath = n...
"public XMLCompositeDirectCollectionMapping generateDirectCollectionMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n XMLCompositeDirectCollectionMapping mapping = new XMLCompositeDirectCollectionMapping();\n mapping.setAttributeName(property.getPropertyName());\n if (proper...
"private void afterLoadWallet() {\n wallet.autosaveToFile(walletFile, Constants.Files.WALLET_AUTOSAVE_DELAY_MS, TimeUnit.MILLISECONDS, null);\n try {\n wallet.cleanup();\n } catch (IllegalStateException x) {\n if (x.getMessage().contains(\"String_Node_Str\")) {\n File blockChainFile = ...
"private List<String> tryAutoGuessingPlateColumns(DataTableSpec tSpec) throws InvalidSettingsException {\n List<String> guessedColums = new ArrayList<String>();\n if (tSpec.containsName(CFG_PlateColumn_DFT)) {\n if (tSpec.getColumnSpec(CFG_PlateColumn_DFT).getType().isCompatible(DoubleValue.class)) {\n ...
"public long getValueAsLong() {\n if (this.value instanceof Number) {\n return ((Number) this.value).longValue();\n } else {\n throw new ClassCastException(\"String_Node_Str\");\n }\n}\n"
"public void register(IModRegistry registry) {\n IItemRegistry itemRegistry = registry.getItemRegistry();\n IJeiHelpers jeiHelpers = registry.getJeiHelpers();\n ISubtypeRegistry subtypeRegistry = jeiHelpers.getSubtypeRegistry();\n subtypeRegistry.useNbtForSubtypes(Items.BANNER, Items.SPAWN_EGG, Items.ENCHAN...
"private void updateLouseData() {\n if (worldObj == null || worldObj.isRemote || louseData == null)\n return;\n int attrSpeed = louseData.attribute(EnumLouseAttribute.SPEED);\n getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(12D + 10D * louseData.attribute(EnumLouseAttribute.HEALTH));...
"static MessageValidator getValidator(int aLeaderState) {\n switch(aLeaderState) {\n case BEGIN:\n return _beginValidator;\n case SUCCESS:\n return _successValidator;\n default:\n {\n _logger.warn(\"String_Node_Str\" + aLeaderState);\n ...
"public void close() {\n try {\n Closeables.closeQuietly(finalProgramClassLoader);\n DirUtils.deleteDirectoryContents(unpackDir);\n } catch (IOException e) {\n LOG.warn(\"String_Node_Str\", unpackDir, e);\n }\n}\n"
"public void updateHealthDataEntry(HealthDataKey key, HealthDataEntry entry) throws BridgeServiceException {\n if (key == null) {\n throw new BridgeServiceException(\"String_Node_Str\");\n } else if (entry == null) {\n throw new BridgeServiceException(\"String_Node_Str\");\n } else if (entry.getS...
"public void setTimeIntervalMin(String timeIntervalMin) {\n if (timeFormat.equals(TimeFormat.DATE)) {\n try {\n this.timeIntervalMin = DynamicUtilities.getDoubleFromXMLDateString(timeIntervalMin);\n } catch (Exception ex) {\n report.logIssue(new Issue(NbBundle.getMessage(ImportCon...
"public int doProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException {\n String buttonPressed = Util.getSubmitButton(request, NEXT_BUTTON);\n Item item = subInfo.getSubmissionItem().getIte...
"private int deleteRecordById(Uri uri) {\n String id = uri.getPathSegments().get(1);\n String table = StatusUpdateInfoColumns.TABLE_NAME;\n String where = BaseColumns._ID + \"String_Node_Str\" + id;\n return dbHelper.getWritableDatabase().delete(table, where, null);\n}\n"
"private void processScript(Script script) {\n String scriptType = script.getType();\n scriptEngine = Main.scriptEngineManager.getEngineByName(scriptType);\n scriptEngine.put(\"String_Node_Str\", this);\n scriptEngine.put(\"String_Node_Str\", preload);\n scriptEngine.put(\"String_Node_Str\", context);\n ...
"private double scanPreIntersection(int xx, int yy, int left, int top, int tmpIntersectionWidth, int tmpIntersectionHeight) {\n double tmpError;\n int yStep = tmpIntersectionHeight / (preScanFaktor + 1);\n tmpPixelBoth = 0;\n tmpPixelBButNotA = 0;\n tmpPixelAButNotB = 0;\n pixelAll = 0;\n for (int ...
"public Request sendRequest(String requestData, RequestCallback callback) throws RequestException {\n JavaScriptObject xmlHttpRequest = httpRequest.createXmlHTTPRequest();\n String openError;\n if (password != null) {\n openError = XMLHTTPRequest.open(xmlHttpRequest, httpMethod, url, true, user, passwor...
"public void putAll(Map<String, Object> entries) {\n if (entries == null)\n return;\n for (Entry<String, Object> ent : entries.entrySet()) {\n put(ent.getKey(), ent.getValue());\n }\n}\n"
"public boolean equals(Object object) {\n try {\n if (null == object) {\n return false;\n } else if (this == object) {\n return true;\n }\n XPathFragment xPathFragment = (XPathFragment) object;\n if (null == predicate && null != xPathFragment.predicate) {\n ...
"public boolean onBlockActivated(final World w, final BlockPos pos, final IBlockState state, final EntityPlayer player, final EnumHand hand, final EnumFacing side, final float hitX, final float hitY, final float hitZ) {\n final TileWireless tg = this.getTileEntity(w, pos);\n if (tg != null && !player.isSneaking()...
"public void completePolygons() {\n Map<EntryExit, TileRecord> pointMap = new HashMap<EntryExit, TileRecord>();\n Map<TileRecord, EntryExit> reverseExitMap = new HashMap<TileRecord, EntryExit>();\n List<EntryExit> entryExits = new ArrayList<EntryExit>();\n List<EntryExit> entries = new ArrayList<EntryExit>(...
"public void testObjectToXMLStreamWriter() throws Exception {\n if (XML_OUTPUT_FACTORY != null) {\n StringWriter writer = new StringWriter();\n XMLOutputFactory factory = XMLOutputFactory.newInstance();\n factory.setProperty(factory.IS_REPAIRING_NAMESPACES, new Boolean(false));\n XMLStrea...
"protected void createSystemRoutines() throws PersistenceException {\n ILibrariesService service = null;\n if (!GlobalServiceRegister.getDefault().isServiceRegistered(ILibrariesService.class)) {\n return;\n }\n service = (ILibrariesService) GlobalServiceRegister.getDefault().getService(ILibrariesServ...
"public Aggregates<A> process(Aggregates<? extends A> aggregates) {\n return cache.get(aggregates);\n}\n"
"public int absorb(int damage) {\n level -= damage;\n if (level <= 0)\n detach();\n return damage;\n}\n"
"private InetAddress tokenToEndpoint(String token) {\n if (token.matches(\"String_Node_Str\")) {\n try {\n InetAddress ip = InetAddress.getByName(token);\n return ip;\n } catch (UnknownHostException e) {\n }\n }\n Token<?> hintToken = StorageService.getPartitioner().g...
"public void put(DEEvent event) throws IllegalActionException {\n if (_debugging) {\n _debug(\"String_Node_Str\" + event);\n }\n _listQueue.addFirst(event);\n Collections.sort(_listQueue);\n}\n"
"public void actionMenuFileExportHierarchy() {\n if (model == null) {\n main.showInfoDialog(main.getShell(), Resources.getMessage(\"String_Node_Str\"), Resources.getMessage(\"String_Node_Str\"));\n return;\n } else if (!(model.isQuasiIdentifierSelected() || model.isSensitiveAttributeSelected())) {\n...
"public String driverGetReference(TypedIOPort port, String[] channelAndOffset, boolean forComposite, boolean isWrite, CodeGeneratorHelper helper) throws IllegalActionException {\n Actor actor = (Actor) port.getContainer();\n Director director = actor.getDirector();\n System.out.println(\"String_Node_Str\" + ac...
"public void testSecuritiesWithPartialAssignment() {\n Client client = new Client();\n Taxonomy taxonomy = new TaxonomyBuilder().addClassification(\"String_Node_Str\").addTo(client);\n Security a = new SecurityBuilder().addPrice(\"String_Node_Str\", 1000).assign(taxonomy, \"String_Node_Str\", Classification.ON...
"private boolean tryToCreateWorker(WorkerCreationRequest workerCreationRequest) {\n EMovableType movableType = workerCreationRequest.requestedMovableType();\n EMaterialType tool = movableType.getTool();\n if (tool != EMaterialType.NO_MATERIAL) {\n MaterialOffer offer = this.materialOffers.removeOfferClo...
"private String getNodeName(EClustererType eClustererType, int index) {\n String nodeName = null;\n IVirtualArray contentVA = set.getVA(idContent);\n IVirtualArray storageVA = set.getVA(idStorage);\n if (eClustererType == EClustererType.GENE_CLUSTERING) {\n if (set.getSetType() == ESetType.GENE_EXPRE...
"public static Intent makeIntent(Context context, ObaStop stop) {\n Intent myIntent = new Intent(context, StopInfoActivity.class);\n myIntent.setData(Uri.withAppendedPath(ObaContract.Stops.CONTENT_URI, stop.getId()));\n myIntent.putExtra(STOP_NAME, stop.getName());\n myIntent.putExtra(STOP_DIRECTION, stop.g...
"public Image getImage(Object obj) {\n if (obj instanceof XSDElementDeclaration) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n boolean isConcept = false;\n EList l = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = l.iterator(); iter.hasNext(); ) {\n ...
"ResponseBuilder response() {\n ResponseBuilder builder = new ResponseBuilder();\n server.buildResponse(graphDb, builder);\n return builder;\n}\n"
"public static void setupDataFabric() throws Exception {\n injector = Guice.createInjector(new LocationRuntimeModule().getInMemoryModules(), new DiscoveryRuntimeModule().getInMemoryModules(), new DataFabricModules().getInMemoryModules(), new AbstractModule() {\n protected void configure() {\n bind(...
"public void sendDecisionRequest(UUID txnID) {\n writeOutput(\"String_Node_Str\" + txnID + \"String_Node_Str\");\n TxnState txnState = participantTxns.get(txnID);\n for (Integer otherAddr : txnState.participants) {\n TxnPacket txnPkt = TxnPacket.getDecisionRequestPacket(this, txnID);\n Callback s...
"public static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, Form form, ElementParameter parentParam, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new ArrayList<>();\n if (category == null) {\n category = EComponentCategory.BASIC;\n ...
"public void initList(MetaContactListService contactListService) {\n this.contactList = new TreeContactList(mainFrame);\n GuiActivator.setContactList(contactList);\n contactList.applyFilter(TreeContactList.presenceFilter);\n TransparentPanel transparentPanel = new TransparentPanel(new BorderLayout());\n ...
"private void setDistributions(DynamicBayesianNetwork amidstDBN) throws ExceptionHugin {\n NodeList huginNodes = this.huginDBN.getNodes();\n int numNodes = huginNodes.size();\n Multinomial_MultinomialParents dist = null;\n int nStates = 0;\n for (int i = 0; i < numNodes; i++) {\n Node huginNode = ...
"public static LoadBalancingIPType getLoadBalancingIPTypeEnumFromString(String loadBalancingIPType) {\n if (CloudControllerConstants.LOADBALANCING_IP_TYPE_PUBLIC.equals(loadBalancingIPType)) {\n return LoadBalancingIPType.Public;\n } else if (loadBalancingIPType.equals(CloudControllerConstants.LOADBALANCIN...
"protected void updateTextArea() {\n if (events != null) {\n StringBuilder dataString = new StringBuilder();\n for (Map.Entry entry : chartEvents) {\n dataString.append(entry.getKey()).append(\"String_Node_Str\").append(entry.getValue()).append(NEWLINE);\n }\n tabbedTextArea.se...
"public static void enqueueNewServer(String user, ChannelDirectoryDataSource dataSource) {\n String server = user.substring(user.indexOf('@') + 1);\n insertServer(server, dataSource);\n}\n"
"private void lazyInitialize() {\n if (initialized) {\n return;\n }\n synchronized (this) {\n if (initialized) {\n return;\n }\n Descriptor xmlDescriptor = (Descriptor) getDescriptor();\n Iterator mappingIterator = xmlDescriptor.getMappings().iterator();\n I...
"public HttpServerRequest expectMultiPart(boolean expect) {\n if (expect) {\n if (!expectMultiPartCalled) {\n expectMultiPartCalled = true;\n request.expectMultiPart(expect);\n }\n } else {\n expectMultiPartCalled = false;\n request.expectMultiPart(expect);\n }...
"public synchronized void removeListener(UpdateListener l) {\n boolean removed = mListeners.remove(l);\n if (V && removed)\n dumpListeners();\n}\n"
"public static void removeNetworkPartition(String networkPartitionId) throws RestAPIException, CloudControllerServiceNetworkPartitionNotExistsExceptionException {\n try {\n ApplicationContext[] applicationContexts = AutoscalerServiceClient.getInstance().getApplications();\n if (applicationContexts != n...
"public void parse(IParserManager pm, IToken token) throws SyntaxError {\n int type = token.type();\n switch(this.mode) {\n case PACKAGE:\n if (this.parsePackage(pm, token)) {\n this.mode = IMPORT;\n return;\n }\n case IMPORT:\n if (this...
"public String getColourMethod() {\n return colourMethod;\n}\n"
"public void testFlowLineage() throws Exception {\n String namespace = \"String_Node_Str\";\n Id.Application app = Id.Application.from(namespace, AllProgramsApp.NAME);\n Id.Flow flow = Id.Flow.from(app, AllProgramsApp.NoOpFlow.NAME);\n Id.DatasetInstance dataset = Id.DatasetInstance.from(namespace, AllProgr...
"public void takeAStep(Graph g, NetworkSample ns) {\n Map<Node, Collection<Node>> cc = this.getCurrentCandidates();\n Collection<Node> c;\n if (cc.size() > 0) {\n c = cc.keySet();\n } else {\n System.err.println(\"String_Node_Str\");\n c = getRestartNodes();\n }\n for (Node n : c)...
"private List<Split> getInputSelection() {\n String splitClassName = jobContext.getConfiguration().get(HCONF_ATTR_INPUT_SPLIT_CLASS);\n String splitsJson = jobContext.getConfiguration().get(HCONF_ATTR_INPUT_SPLITS);\n try {\n Class<? extends Split> splitClass = (Class<? extends Split>) jobContext.getCon...
"public Object getBoundObject() {\n if (boundObjectRef != null) {\n return boundObjectRef.get();\n }\n return null;\n}\n"
"public void testInvalidKeyset() throws Exception {\n KeyFormat format = KeyFormat.newBuilder().setTypeUrl(macTypeUrl).build();\n KeysetManager manager = new KeysetManager.Builder().setKeyFormat(format).build();\n manager.rotate();\n Keyset keyset = manager.getKeysetHandle().getKeyset();\n byte[] proto =...
"public void updateInstance(final ServerContext context, final String resourceId, final UpdateRequest request, final ResultHandler<Resource> handler) {\n Token admin = new Token();\n admin.setId(getCookieFromServerContext(context));\n final JsonValue jVal = request.getNewContent();\n final String rev = requ...
"public void testObjectToXMLStreamWriter() throws Exception {\n if (XML_OUTPUT_FACTORY != null) {\n StringWriter writer = new StringWriter();\n XMLOutputFactory factory = XMLOutputFactory.newInstance();\n factory.setProperty(factory.IS_REPAIRING_NAMESPACES, new Boolean(false));\n XMLStrea...
"public static String cleanAllTags(String broken) {\n String working = broken;\n allTags: while (true) {\n int lt = working.indexOf('<');\n if (lt == -1) {\n break allTags;\n }\n int gt = working.indexOf('>', lt);\n String lton = working.substring(lt);\n String...
"private void copyStaticMethod(Node staticMember, Node superclassNameNode, Node subclassNameNode, Node insertionPoint) {\n Preconditions.checkState(staticMember.isAssign(), staticMember);\n String memberName = staticMember.getFirstChild().getLastChild().getString();\n LinkedHashSet<Node> subclassMethods = getS...
"public void addType(Type t) {\n for (Iterator vcsIt = currentvcss.iterator(); vcsIt.hasNext(); ) {\n final VirtualCallSite vcs = (VirtualCallSite) vcsIt.next();\n VirtualCalls.v().resolve(t, vcs.getInstanceInvokeExpr(), vcs.getContainer(), targetsQueue);\n while (true) {\n SootMethod...
"private void extractLogEntry(final IProvider pProvider, final EMVCard pCard, final byte[] pLogEntry) throws CommunicationException {\n if (pLogEntry != null) {\n List<EMVPaymentRecord> listRecord = new ArrayList<EMVPaymentRecord>();\n for (int rec = 1; rec < pLogEntry[1]; rec++) {\n byte[] ...
"private String generateMethods(ProtocolState ps) {\n if (ps.isTerminal()) {\n return \"String_Node_Str\";\n }\n JobContext jc = this.job.getContext();\n Module main = jc.getMainModule();\n String method = \"String_Node_Str\";\n SocketType st = getSocketType(ps);\n switch(st) {\n case...
"private void restoreState(Bundle savedInstanceState) {\n if (savedInstanceState == null)\n return;\n if (savedInstanceState.containsKey(BUNDLE_CHECKED_STATES)) {\n boolean isInMultiSelectMode = savedInstanceState.getBoolean(BUNDLE_IN_MULTI_SELECT_MODE);\n mCheckedItems = savedInstanceState.g...
"public List getVisibleDataSources() {\n IModuleNameScope namescope = module.getModuleNameSpace(Module.DATA_SOURCE_NAME_SPACE);\n List elementList = namescope.getElements(IModuleNameScope.NATIVE_LEVEL);\n return generateHandleList(elementList);\n}\n"
"public static void setRecommendedTags(ReaderTagList topics) {\n if (topics == null) {\n return;\n SQLiteDatabase db = ReaderDatabase.getWritableDb();\n SQLiteStatement stmt = db.compileStatement(\"String_Node_Str\" + COLUMN_NAMES + \"String_Node_Str\");\n db.beginTransaction();\n try {\n t...
"protected static void fillProperty(Object propertyValue, Object formElementValue, PropertyDescription propertySpec, WebFormComponent component) {\n String propName = propertySpec.getName();\n if (propertyValue != null) {\n boolean templatevalue = true;\n if (propertySpec.getType() instanceof ISuppo...
"private FilterExpression parseQualifierContent(QualifierType type) {\n if (type == QualifierType.SORT) {\n return parseSortKeys();\n } else if (isCompoundIdToken(type, lookAhead())) {\n return parseCompoundId();\n } else if (isRangeOperatorToken(lookAhead())) {\n return parseRangeOperator...
"public static boolean addAnalyses(Collection<Analysis> analyses, TdReport report) {\n boolean added = true;\n for (Analysis analysis : analyses) {\n if (!report.addAnalysis(analysis)) {\n added = false;\n }\n }\n return added;\n}\n"
"protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) {\n return Util.makeMainEntrypoints(JavaSourceAnalysisScope.SOURCE, cha);\n}\n"
"private void extractPlanDetails(List<String> explainOutput, HiveConf conf) throws HiveException {\n ParserState state = ParserState.BEGIN;\n ParserState prevState = state;\n ArrayList<ParserState> states = new ArrayList<ParserState>();\n Hive metastore = Hive.get(conf);\n for (String line : explainOutpu...
"Splittable encode(Object obj) {\n Splittable value;\n if (obj == null) {\n return LazySplittable.NULL;\n } else if (obj.getClass().isEnum() && getRequestFactory().getAutoBeanFactory() instanceof EnumMap) {\n value = ValueCodex.encode(((EnumMap) getRequestFactory().getAutoBeanFactory()).getToken(...
"public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) {\n this.cards.clear();\n this.targets.clearChosen();\n ;\n Player player = game.getPlayer(controllerId);\n if (player == null) {\n return false;\n }\n int amount = this.getTargets().get(0).getN...
"public void run() {\n RepositoryController rc = mc.getRepositoryController();\n if (rc == null) {\n this.notifyResult(false);\n return;\n }\n for (Node node : mc.getSelectedNodes_NavigatorView()) {\n node = node.getLibrary();\n if (!(node.getLibrary() instanceof LibraryNode)) {\...
"public ODocument getConfiguration() {\n return new ODocument().fromJSON(\"String_Node_Str\" + getCommonConfigurationParameters() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + stringArray2Json(ACTION.values(...
"public void addDefaultListener(EntityListenerMetadata defaultListener) {\n m_defaultListeners.add(defaultListener);\n}\n"
"public void deleteWarp(String name, Player player) {\n if (warpList.containsKey(name)) {\n Warp warp = warpList.get(name);\n if (warp.playerIsCreator(player.getName())) {\n warpList.remove(name);\n WarpDataSource.deleteWarp(warp);\n player.sendMessage(ChatColor.AQUA + ...
"public void fire() throws IllegalActionException {\n ContinuousDirector dir = (ContinuousDirector) getDirector();\n double currentStepSize = dir.getCurrentStepSize();\n int microstep = dir.getIndex();\n _postponedOutputProduced = false;\n if (_debugging) {\n _debug(\"String_Node_Str\" + dir.getMo...
"public Vector2 getOverlapAxis() {\n return intersection ? overlapN : Vector2.ZERO;\n}\n"
"public static Map getAppContext(HttpServletRequest request) {\n HashMap context = new HashMap();\n Boolean isDesigner = Boolean.valueOf(ParameterAccessor.isDesigner());\n context.put(\"String_Node_Str\", isDesigner);\n context.put(EngineConstants.APPCONTEXT_BIRT_VIEWER_HTTPSERVET_REQUEST, request);\n co...