content
stringlengths
40
137k
"public void initialize(WorkflowContext context) throws Exception {\n super.initialize(context);\n postActions = new LinkedHashMap<>();\n BatchPipelineSpec batchPipelineSpec = GSON.fromJson(context.getWorkflowSpecification().getProperty(Constants.PIPELINE_SPEC_KEY), BatchPipelineSpec.class);\n for (ActionSp...
"private void init() {\n connectionsToDelete = new HashMap<Connection, IODataComponent>();\n for (IODataComponent dataComponent : inAndOut.getOuputs()) {\n IConnection connection = dataComponent.getConnection();\n boolean metadataExists = false;\n for (IMetadataTable metadata : newMetaDataLis...
"private com.github.ontio.account.Account createAccount(String label, String password, byte[] privateKey, boolean saveAccountFlag) throws Exception {\n com.github.ontio.account.Account account = new com.github.ontio.account.Account(privateKey, scheme);\n Account acct;\n switch(scheme) {\n case SHA256WIT...
"private void initOptions() {\n ConfigurableOption bidiProcessing = new ConfigurableOption(BIDI_PROCESSING);\n bidiProcessing.setDisplayName(getMessage(\"String_Node_Str\"));\n bidiProcessing.setDataType(IConfigurableOption.DataType.BOOLEAN);\n bidiProcessing.setDisplayType(IConfigurableOption.DisplayType.C...
"public void addCatch(String src, CtClass exceptionType, String exceptionName) throws CannotCompileException {\n declaringClass.checkModify();\n ConstPool cp = methodInfo.getConstPool();\n CodeAttribute ca = methodInfo.getCodeAttribute();\n CodeIterator iterator = ca.iterator();\n Bytecode b = new Byteco...
"public void setShowFreqAlongX(boolean b) {\n spectrogramPlot.setShowFreqAlongX(b);\n if (showMode == 0)\n return;\n if (spectrogramPlot.showFreqAlongX) {\n xZoom = spectrogramPlot.axisFreq.zoom;\n xShift = spectrogramPlot.axisFreq.shift;\n yZoom = spectrogramPlot.axisTime.zoom;\n ...
"public IJavaCompletionProposal createJavaProposal(ContentAssistContext context, JavaContentAssistInvocationContext javaContext) {\n CompletionProposal proposal = createProposal(context);\n return new GroovyJavaFieldCompletionProposal(proposal, ProposalUtils.getImage(proposal), createDisplayString(property));\n}\...
"public void setRequestHeader(String header, String value) {\n if (getReadyState() != HttpRequest.STATE_LOADING) {\n throw new IllegalStateException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n if (header == null || value == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\...
"protected Object getTemplate(DragSourceEvent event) {\n final RootEditPart rootEditPart = getViewer().getRootEditPart();\n if (rootEditPart instanceof AbstractGraphicalEditPart) {\n AbstractGraphicalEditPart graphicPart = (AbstractGraphicalEditPart) rootEditPart;\n final IFigure figure = graphicPar...
"public AzureProvisionContextObject provisionInit(Stack stack, String userData) throws Exception {\n AzureCredential credential = (AzureCredential) stack.getCredential();\n AzureLocation azureLocation = AzureLocation.valueOf(stack.getRegion());\n AzureClient azureClient = azureStackUtil.createAzureClient((Azur...
"protected void doSyncRoutine(RoutineItem routineItem, boolean copyToTemp) throws SystemException {\n FileOutputStream fos = null;\n try {\n IFile file = getRoutineFile(routineItem);\n if (routineItem.getProperty().getModificationDate() != null) {\n long modificationItemDate = routineItem...
"private void loadLoResImage(final boolean isInLayoutPass) {\n if (!hasLayout() || TextUtils.isEmpty(mLoResImageUrl)) {\n return;\n }\n if (isRequestingUrl(mLoResContainer, mLoResImageUrl)) {\n return;\n }\n AppLog.d(AppLog.T.READER, \"String_Node_Str\" + mPosition);\n showProgress();\n ...
"public void tearDown() throws Exception {\n synchronized (GeoWaveITRunner.MUTEX) {\n if (!GeoWaveITRunner.DEFER_CLEANUP.get()) {\n if (jettyServer != null) {\n try {\n jettyServer.stop();\n jettyServer = null;\n } catch (final Exc...
"public List<CardInfo> getCardsByRarity(Rarity rarity) {\n if (rarity.equals(Rarity.COMMON)) {\n List<CardInfo> savedCardsInfos = savedCards.get(rarity);\n if (savedCardsInfos == null) {\n CardCriteria criteria = new CardCriteria();\n criteria.setCodes(this.code).notTypes(CardType...
"public void addBackupOp(VersionedBackupOp bo) {\n if (backupOps == null) {\n backupOps = new TreeSet<VersionedBackupOp>();\n }\n backupOps.add(bo);\n if (backupOps.size() > 4) {\n logger.log(Level.FINEST, id + \"String_Node_Str\" + version);\n forceBackupOps();\n }\n}\n"
"public void testAttachDetachOrder() {\n HasWidgetsTester.testAll(new ScrollPanel());\n}\n"
"public static TransactionFailureException asTransactionFailure(Throwable t) {\n if (t instanceof TransactionFailureException) {\n return (TransactionFailureException) t;\n }\n return new TransactionFailureException(message, t);\n}\n"
"public void addDataContainers(List<DataContainer> newDataContainers, IBrickConfigurer brickConfigurer) {\n if (newDataContainers == null || newDataContainers.size() == 0) {\n Logger.log(new Status(Status.WARNING, this.toString(), \"String_Node_Str\"));\n return;\n }\n if (recordIDCategory == nul...
"public static Map<City, Double> heuristics() {\n return heuristicMap;\n}\n"
"void reset() {\n bufInUse = false;\n buf.reset();\n error = null;\n outBuf = null;\n outPos = outLen = 0;\n}\n"
"public GifFrame getCurrentFrame() {\n long now = System.currentTimeMillis();\n if (nextFrameRender == 0) {\n nextFrameRender = now + getDelay();\n scheduleNextFrame();\n }\n if (now >= nextFrameRender) {\n if (gifDecoder.getLastFrame() != currentFrame) {\n currentFrame = gif...
"public boolean hasNext() {\n if (onCheckedMatch) {\n return true;\n } else {\n while (sourceIterator.hasNext()) {\n currentItem = sourceIterator.next();\n }\n if (predicate.check(currentItem, index++)) {\n onCheckedMatch = true;\n return true;\n ...
"public String createSearchString(File file) {\n String fileNameNoExtension = findIDTagFromFile(file);\n URLCodec codec = new URLCodec();\n try {\n String fileNameURLEncoded = codec.encode(fileNameNoExtension);\n String searchTerm = \"String_Node_Str\" + siteLanguageToScrape + \"String_Node_Str\"...
"public void testCharConvert_whenPassedEmptyString_thenConvertToChar() {\n Comparable value = \"String_Node_Str\";\n thrown.expect(IllegalArgumentException.class);\n TypeConverters.CHAR_CONVERTER.convert(value);\n}\n"
"private static void battleSim() {\n RandomForPokemon gen = new RandomForPokemon();\n Trainer trainer1 = new Trainer();\n trainer1.setLeadingPokemon(gen.randomPokemon(20));\n Trainer trainer2 = new Trainer();\n trainer2.setLeadingPokemon(gen.randomPokemon(20));\n Battle battle = new Battle(trainer1, t...
"public void testAppFromArtifact() throws Exception {\n Id.Artifact artifactId = Id.Artifact.from(Id.Namespace.DEFAULT, \"String_Node_Str\", \"String_Node_Str\");\n addAppArtifact(artifactId, ConfigTestApp.class);\n Id.Application appId = Id.Application.from(Id.Namespace.DEFAULT, \"String_Node_Str\");\n App...
"void saveQueryDefn() throws DataException {\n OutputStream outputStream;\n if (queryDefn instanceof QueryDefinition && ((QueryDefinition) queryDefn).getQueryResultsID() == null) {\n outputStream = streamManager.getOutStream(DataEngineContext.ORIGINAL_QUERY_DEFN_STREAM, StreamManager.ROOT_STREAM, StreamMan...
"public void build(Progress p) throws IOException, JobFailedException, JobCancelledException {\n ProgressHierarchy ph = new ProgressHierarchy(p);\n ph.createChild(1.0f);\n ph.createChild(1.0f);\n RandomizeVectorDriver rvd = new RandomizeVectorDriver();\n MapOp inputMapOp = _inputs.get(0);\n String inp...
"private int locateBlock(CharSequence str) {\n if (blocks.getNumberOfElements() == 0) {\n return -1;\n }\n int low = 0;\n int high = (int) blocks.getNumberOfElements() - 1;\n while (low <= high) {\n int mid = low + (high - low) / 2;\n int cmp;\n if (mid == max) {\n ...
"private final void showCenterValue(IPrimitiveRenderer ipr, Location lo, Label la, boolean bShadow) {\n Graphics2D g2d = (Graphics2D) ((IDeviceRenderer) ipr).getGraphicsContext();\n double dX = lo.getX(), dY = lo.getY();\n FontDefinition fd = la.getCaption().getFont();\n double dAngleInDegrees = fd.getRotat...
"public void testInMemoryFrame() throws Exception {\n Assert.assertNotNull(context);\n GraphService<TestFooModel> fooModelService = context.getService(TestFooModel.class);\n TestFooModel inMemoryModel = fooModelService.createInMemory();\n inMemoryModel.setProp1(\"String_Node_Str\");\n inMemoryModel.setPr...
"public int read(byte[] b, int off, int len) throws IOException {\n try {\n int k = is.read(b, off, len);\n read += Math.max(k, 0);\n return k;\n } catch (IOException ioe) {\n log(true);\n throw ioe;\n }\n}\n"
"public Double call() {\n double pixelError = 0;\n for (int x = 0; x < image1.getWidth(); x++) {\n for (int y = 0; y < image1.getHeight(); y++) {\n double pix1 = image1.getPixelValue(x, y);\n double pix2 = image2.getPixelValue(x, y);\n pixelError += (pix1 - pix2) * (pix1 - ...
"public void keyReleased(KeyEvent event) {\n int start = serviceParametersText.getSelection().x;\n int end = serviceParametersText.getSelection().y;\n if (event.stateMask == SWT.CTRL && event.keyCode == 17) {\n ResourceSelectDialog dialog = new ResourceSelectDialog(getSite().getShell(), treeParent.getPa...
"public synchronized void launchLocalProject(IProject project, ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException {\n try {\n rhodesLogHelper.stopLog();\n setStandartConsoleOutputIsOff();\n ConsoleHelper.getBuildConsole().clear()...
"public boolean putBulk(int opID, String key, ByteBuffer value) {\n if (value.position() != 0) {\n value.flip();\n }\n if (!keyMap.get(opID).containsKey(key) && !memoryManager.containsKey(opID, key)) {\n registerKey(opID, key, MemoryManagerContext.BULK_MM_STEP_SIZE);\n } else {\n delete...
"protected IExtractionResults extractQuery(DataSetHandle dataset) throws BirtException {\n QueryDefinition newQuery = constructQuery(dataset);\n DataRequestSession session = executionContext.getDataEngine().getDTESession();\n final ModelDteApiAdapter apiAdapter = new ModelDteApiAdapter(executionContext);\n ...
"public void init(Config cfg, DataFlowOperation op, Map<Integer, List<Integer>> expectedIds) {\n int maxBytesInMemory = DataFlowContext.getShuffleMaxBytesInMemory(cfg);\n int maxRecordsInMemory = DataFlowContext.getShuffleMaxRecordsInMemory(cfg);\n String path = DataFlowContext.getShuffleDirectoryPath(cfg);\n ...
"public StorageFacade getStorageFacade() {\n return storageFacade;\n}\n"
"protected final void USHR_SHL(OPT_Instruction s, OPT_RegisterOperand def, OPT_RegisterOperand left, OPT_IntConstantOperand shift1, OPT_IntConstantOperand shift2) {\n int x = shift1.value;\n int y = shift2.value;\n if (x <= y) {\n EMIT(MIR_RotateAndMask.create(PPC64_RLDICR, def, left, IC(y - x), IC(0), ...
"public static Packet toPacket(HazelcastInstance hz, Operation operation) {\n SerializationService serializationService = getSerializationService(hz);\n ConnectionManager connectionManager = getConnectionManager(hz);\n Packet packet = new Packet(serializationService.toBytes(operation), operation.getPartitionId...
"public void execute(IAction act) {\n resetState();\n try {\n buildIndexHeadDiffList();\n } catch (IOException e) {\n handle(new TeamException(UIText.CommitAction_errorComputingDiffs, e), UIText.CommitAction_errorDuringCommit, UIText.CommitAction_errorComputingDiffs);\n return;\n }\n ...
"public void onNeighborBlockChange(net.minecraft.world.World World, int X, int Y, int Z, int Id) {\n try {\n ((CarriageDriveEntity) World.getTileEntity(X, Y, Z)).HandleNeighbourBlockChange();\n } catch (Throwable Throwable) {\n Throwable.printStackTrace();\n }\n}\n"
"public int getMaximumMosaicIndex() {\n int maxIndex = 1;\n String[] attributeValuesPVI = getAttributeValues(L3PSD13Constants.PATH_GRANULE_METADATA_PVI_FILENAME);\n if (attributeValuesPVI != null) {\n for (String pviName : attributeValuesPVI) {\n try {\n int aux = Integer.parse...
"public String saveDeck(Deck deck) {\n try {\n String tempDir = System.getProperty(\"String_Node_Str\");\n String deckName = \"String_Node_Str\" + dateFormat.format(new Date());\n File tmp = new File(tempDir + File.separator + deckName + \"String_Node_Str\");\n tmp.createNewFile();\n ...
"public int getTag() {\n return 2009120212;\n}\n"
"private void setupLockables() {\n lockable.clear();\n leftLocked.clear();\n canSuck.clear();\n reloadConfig();\n List<String> lockables = getConfig().getStringList(\"String_Node_Str\");\n verbose(\"String_Node_Str\");\n for (String lockableBlockName : lockables) {\n Material mat = null;\n ...
"public Void doWork() {\n if (isFilePlan(nodeRef)) {\n setPermissionDown(nodeRef, authority, permission);\n } else if (isFilePlanContainer(nodeRef) || isRecordFolder(nodeRef) || isRecord(nodeRef) || isHold(nodeRef)) {\n setReadPermissionUp(nodeRef, authority);\n setPermissionDown(nodeRef, aut...
"private void chiselItem(int chiseled) {\n if (!worldObj.isRemote) {\n if (((IChiselItem) inventory[CHISEL].getItem()).onChisel(worldObj, this, CHISEL, inventory[CHISEL], General.getVariation(inventory[TARGET]))) {\n inventory[CHISEL].setItemDamage(inventory[CHISEL].getItemDamage() - 1);\n ...
"private void evalExprNew(ICPPASTNewExpression expr, List<MExpression> ret) throws DOMException {\n if (expr.isArrayAllocation() && !TypeManager.isOneOf(expr.getExpressionType(), TypeEnum.OBJECT_POINTER)) {\n MNewArrayExpression ptr = new MNewArrayExpression();\n for (IASTExpression arraySize : expr.ge...
"protected File getFile(IModuleResource moduleResource) {\n File file = (File) moduleResource.getAdapter(File.class);\n if (file == null) {\n IFile iFile = (IFile) moduleResource.getAdapter(IFile.class);\n if (iFile != null) {\n IPath location = iFile.getLocation();\n if (locat...
"private void parseAndValidateInput(AbstractPipelineInput input) throws DITAOTException {\n StringTokenizer tokenizer = null;\n Properties prop = new Properties();\n String outputRoot = null;\n int lastIndexOfDot;\n String ditalist;\n Properties params = new Properties();\n PipelineHashIO hashIO = ...
"public ManufOrder createManufOrder(BigDecimal qty, int priority, boolean isToInvoice, Company company, BillOfMaterial billOfMaterial, LocalDateTime plannedStartDateT) throws AxelorException {\n logger.debug(\"String_Node_Str\", priority);\n ProdProcess prodProcess = billOfMaterial.getProdProcess();\n ManufOrd...
"public void dropStream(String streamPath) {\n if (writer != null) {\n try {\n OutputStream stream = writer.createRandomAccessStream(streamPath);\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}\n"
"public void selectionChanged(IStructuredSelection selection) {\n FOXTreeNode node = (FOXTreeNode) this.getStructuredSelection().getFirstElement();\n if (node == null) {\n this.setEnabled(false);\n return;\n }\n this.setEnabled(TreeUtil.canSetAsLoop(node));\n}\n"
"public static void saveCorpus(Corpus corpus) {\n String corpusName = corpus.getCorpusName();\n String corpusLocation = rootDir + corpusName;\n if (!(new File(corpusLocation).exists())) {\n new File(corpusLocation).mkdir();\n String metaFile = corpusLocation + System.getProperty(\"String_Node_Str...
"public static ArrayList<ItemStack> harvestPlant(Point3I plantPoint, Block plantBlock, int metadata, World worldObj) {\n ArrayList<ItemStack> items = null;\n for (BaseMod mod : modsLoaded) {\n if (mod.isPlant(plantBlock, state)) {\n if (mod.isGrown(plantPoint, plantBlock, state, worldObj)) {\n ...
"private Action getAction() {\n Level l = me.getLevel();\n List<EntityActionManager> players = l.getManager().getEntity(\"String_Node_Str\");\n if (players.size() == 0) {\n return new Move(0, me, Direction.RIGHT);\n }\n EntityActionManager player = players.get(0);\n Tile myTile = me.getLocation...
"public Date getDateValue() {\n return dateValue == null ? null : new Date(dateValue.getTime());\n}\n"
"public void renameFolder(final ERepositoryObjectType type, final IPath sourcePath, final String label) throws PersistenceException {\n final IWorkspaceRunnable op = new IWorkspaceRunnable() {\n public void run(IProgressMonitor monitor) throws CoreException {\n try {\n IPath targetPa...
"public void convertToBytes(Token token, DataOutputStream outputStream) throws IOException, IllegalActionException {\n if (token instanceof PingToken) {\n outputStream.writeLong(((PingToken) token).getTimestamp());\n } else if (token.getClass() == PongToken.class) {\n outputStream.writeLong(((PongTo...
"public void objectAdded() {\n total.incrementAndGet();\n if (totalSize == 0) {\n setProgress(\"String_Node_Str\", 0);\n } else {\n setProgress(\"String_Node_Str\", (int) Math.round(100.0 * total.get() / totalSize));\n }\n}\n"
"private MappingNic getLoadBalancingIpNic(DataCenterVO zone, Network network, long sourceIpId, boolean revoked, String existedGuestIp) throws ResourceUnavailableException {\n String srcIp = _networkModel.getIp(sourceIpId).getAddress().addr();\n InlineLoadBalancerNicMapVO mapping = _inlineLoadBalancerNicMapDao.fin...
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n DataStreamsConfig that = (DataStreamsConfig) o;\n return Objects.equals(batchInterval...
"public void testCursorModel7() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = this.creator.createQueryDefinition();\n IBinding rowGrandAvg = new Binding(\"String_Node_Str\");\n rowGrandAvg.setAggrFunction(IBuildInAggregation.TOTAL_WEIGHTEDAVE_FUNC);\n rowGrandAvg.setExpression(new Scrip...
"public List<PanelString> getStringData(int displaySettings, ICardWrapper card, boolean showLabels) {\n List<PanelString> result = new LinkedList<PanelString>();\n PanelString line;\n double totalAmount = 0;\n double totalCapacity = 0;\n boolean showEach = (displaySettings & DISPLAY_EACH) > 0;\n boole...
"public static Table<String, String, Float> parseMatrix(Reader reader) throws IOException {\n Table<String, String, Float> table = HashBasedTable.create();\n try (ICsvListReader csvReader = new CsvListReader(reader, CsvPreference.STANDARD_PREFERENCE)) {\n List<String> columnHeaders = csvReader.read();\n ...
"public void checkVizChainOfCommand() {\n openNewEditor();\n ICEResource resource;\n vizServiceFactory = new BasicVizServiceFactory();\n FakeCSVVizService csvVizService = new FakeCSVVizService() {\n public IPlot createPlot(URI file) throws Exception {\n FakePlot plot = (FakePlot) super.cre...
"public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final BloomFilter other = (BloomFilter) obj;\n if (this.k != other.k)\n return false;\n if (this.bitsPerElement != other.bitsPerElement)\n ...
"public String toString() {\n return \"String_Node_Str\" + id + \"String_Node_Str\" + bounds + \"String_Node_Str\" + mode + \"String_Node_Str\" + visible + \"String_Node_Str\" + worldVisible + \"String_Node_Str\" + enabled + \"String_Node_Str\" + transparency;\n}\n"
"public String handleRequest(Predicate<? super String> applicationIdFilter, Predicate<? super Instance> instanceFilter) {\n log.debug(\"String_Node_Str\");\n Instant start = Instant.now();\n this.up.clear();\n List<Instance> instanceList = this.discoverer.discover(applicationIdFilter, instanceFilter);\n ...
"public <T> RecordReader<T> compile(final RecordReaderImplementation<T> recordReader) {\n int stateCount = recordReader.getStateCount();\n String className = \"String_Node_Str\" + (++id);\n ClassBuilder classBuilder = startClass(className, existing(BaseRecordReader.class));\n for (int i = 0; i < stateCount;...
"private static void sortClasspath(Set<String> jobModuleList, IProcess process) throws CoreException, BusinessException {\n ITalendProcessJavaProject jProject = getTalendJavaProject();\n if (jProject == null) {\n return;\n }\n Set<String> listModulesReallyNeeded = ModuleNameExtractor.extractFileName(...
"public static UnifiedAst precompile(TreeLogger logger, WebModeCompilerFrontEnd compilerFrontEnd, String[] declEntryPts, JJSOptions options, boolean singlePermutation) throws UnableToCompleteException {\n if (declEntryPts.length == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n Re...
"public void notify_event(Event e) {\n if (!visible) {\n return;\n }\n Object[] elem = children.toArray();\n for (int i = elem.length - 1; i >= 0; i--) {\n NE_GUI_Element __elem = (NE_GUI_Element) elem[i];\n __elem.notify_event(e);\n }\n if (e instanceof EMouseClick) {\n EM...
"public void setTs(List<Long> ts) {\n setTimestamps(ts);\n}\n"
"public void turnUp() {\n if (direction != DOWN)\n direction = UP;\n already_turned = true;\n}\n"
"public void setUp() throws Exception {\n super.setUp();\n indexName = createTemporaryName();\n index = service.getIndexes().create(indexName);\n udpPort = findNextUnusedPort(10000);\n udpInput = service.getInputs().create(String.valueOf(udpPort), InputKind.Udp, new Args(\"String_Node_Str\", indexName));...
"public void addField(OpenJPAStateManager stateManager, Mutator<byte[]> mutator, long clock, byte[] key, String cfName, IndexQueue queue) {\n Object field = stateManager.fetch(fieldId);\n byte[] idKey = constructKey(key, unorderedMarker);\n if (field == null || ((Collection<?>) field).isEmpty()) {\n mut...
"public boolean admits(int numInt, int numLong, int numDouble, int numString) {\n return (numInt == numberOfInts) && (numLong == numberOfLongs) && (numDouble == numberOfDoubles) && (numString == numberOfStrings);\n}\n"
"private boolean consoleLogin() throws Exception {\n try {\n if (user == null || user.isEmpty() || password == null) {\n throw new Exception(BAD_APP_CREDENTIALS_MSG + \"String_Node_Str\");\n }\n EasSettings settings = EasSettings.createInstance(url);\n if (settings instanceof D...
"private void initialize() throws InitParamValueException, MalformedWebXmlException, ConflictingInitParamsException {\n config = createConfiguration();\n final String iciInitParamValue = getInitParameter(Configuration.INCOMPATIBLE_IMPROVEMENTS);\n if (iciInitParamValue != null) {\n try {\n co...
"public static XPathReference getAbsRef(XPathReference ref, TreeReference parentRef) {\n TreeReference tref;\n if (!parentRef.isAbsolute()) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (ref != null) {\n tref = ref.getReference();\n } else {\n tref = TreeReference.sel...
"public void paint(Graphics graphics) {\n graphics.setAlpha(255);\n if (errorFigure.isVisible()) {\n errorFigure.setLocation(jobletContainer.getErrorLocation());\n }\n if (warningFigure.isVisible()) {\n warningFigure.setLocation(jobletContainer.getWarningLocation());\n }\n super.paint(gr...
"public void onClick(final View v) {\n final ViewGroup.LayoutParams lp = v.getLayoutParams();\n if (!(lp instanceof RecyclerView.LayoutParams)) {\n return;\n final int position = ((RecyclerView.LayoutParams) lp).getViewAdapterPosition();\n if (position == RecyclerView.NO_POSITION)\n return;\n ...
"public void onZoomUpdate(int zoomLevel, android.hardware.Camera camera) {\n mZoomValue = (double) zoomLevel / 1000;\n Log.v(TAG, \"String_Node_Str\" + zoomLevel);\n updateZoomButtonsEnabled();\n}\n"
"private boolean wma_forgetting_update_p_queue() {\n boolean return_val = false;\n boolean do_forget = false;\n if (!wma_forget_pq.isEmpty()) {\n final long current_cycle = wma_d_cycle_count;\n final double decay_thresh = wma_thresh_exp;\n final boolean forget_only_lti = (params.forget_wme...
"public Base resolveReference(Object appContext, String url) {\n if (appContext instanceof Element) {\n Element bnd = (Element) appContext;\n if (bnd.fhirType().equals(\"String_Node_Str\")) {\n for (Element be : bnd.getChildrenByName(\"String_Node_Str\")) {\n Element res = be....
"public static void registerFirearms() {\n if (Config.enableFirearms || Config.enableRL) {\n SteamcraftRegistry.addCategory(\"String_Node_Str\");\n SteamcraftRegistry.addResearch(\"String_Node_Str\", \"String_Node_Str\", new BookPageItem(\"String_Node_Str\", \"String_Node_Str\", BLUNDERBUSS_BARREL.crea...
"public void run() {\n Nexus.getInstance().sendIRC().message(channelName.isEmpty() ? userToRemind : channelName, \"String_Node_Str\" + userToRemind + \"String_Node_Str\" + Colors.BOLD + reminder + Colors.NORMAL + \"String_Node_Str\" + (from.equals(userToRemind) ? \"String_Node_Str\" : \"String_Node_Str\" + StringUti...
"public ItemStack getItem(World worldIn, BlockPos pos, IBlockState state) {\n ItemStack item = super.getItem(worldIn, pos, state);\n if (!item.isEmpty()) {\n TileEntity tileEntity = worldIn.getTileEntity(pos);\n if (tileEntity instanceof TileTeleport) {\n int teleportId = ((TileTeleport) ...
"public void init() throws Exception {\n this.lock = new ReentrantLock();\n try {\n this.serverMap = ConfigLoader.loadServerMap(ConfigLoader.buidCfgAbsPathFor(\"String_Node_Str\"));\n this.poolCfgMap = ConfigLoader.loadPoolMap(ConfigLoader.buidCfgAbsPathFor(\"String_Node_Str\"));\n this.userM...
"public EntityMetadata buildEntityMetadata(Class<?> clazz) {\n EntityMetadata metadata = new EntityMetadata(clazz);\n validate(clazz);\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + clazz);\n for (MetadataProcessor processor : metadataProcessors) {\n setSchemaAndPU(clazz, metada...
"private void loadSettings() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n mVibrationDuration = Integer.parseInt(sp.getString(getString(R.string.settings_key_vibrate_on_key_press_duration), getString(R.string.settings_default_vibrate_on_key_press_duration)));\n mSoundOn = sp...
"private void _recursiveFindUndefinedConstantsOrIdentifiesInAttribute(Attribute attribute, NamedObj container, TypedCompositeActor parsedContainer, boolean hideVariables) throws IllegalActionException {\n if (attribute instanceof Variable) {\n Variable variable = (Variable) attribute;\n boolean doGetTo...
"public void start(BundleContext context) throws Exception {\n super.start(context);\n IPerspectiveDescriptor[] allSets = PlatformUI.getWorkbench().getPerspectiveRegistry().getPerspectives();\n for (IPerspectiveDescriptor iPerspectiveDescriptor : allSets) {\n if (iPerspectiveDescriptor.getId().contains(...
"public void defineCube(CubeHandle cubeHandle) throws BirtException {\n Set involvedDataSets = getInvolvedDataSets((TabularCubeHandle) cubeHandle);\n Iterator itr = involvedDataSets.iterator();\n while (itr.hasNext()) {\n DataSetHandle dsHandle = (DataSetHandle) itr.next();\n BaseDataSourceDesign...
"private void doOnCreate() {\n mTheme = mTheme != 0 ? mTheme : com.android.internal.R.style.Theme_DeviceDefault_VoiceInteractionSession;\n mInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n mWindow = new SoftInputWindow(mContext, \"String_Node_Str\", mTheme, mCallbacks, ...
"public Object produceOutput(List<PatchStat> statsForPatches, Map<GeneralStatEnum, Object> generalStats, String output) {\n JSONObject statsjsonRoot = new JSONObject();\n JSONArray patchlistJson = new JSONArray();\n statsjsonRoot.put(\"String_Node_Str\", patchlistJson);\n JSONObject generalStatsjson = new J...
"final public JsonElement parse() throws ParseException {\n JsonElement json = null;\n switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\n case 17:\n json = JsonObject();\n break;\n case 20:\n json = JsonArray();\n break;\n case DIGITS:\n case QUO...