content
stringlengths
40
137k
"public CopyOnWriteArrayList<Shutdownable> getChildren() {\n return this.children;\n}\n"
"protected HE_Mesh createBase() {\n if (cells == null) {\n return new HE_Mesh();\n }\n if (on == null) {\n return new HE_Mesh();\n }\n if (on.length > cells.size()) {\n return new HE_Mesh();\n }\n final int n = on.length;\n final FastTable<HE_Face> tmpfaces = new FastTable<H...
"private void encryptDecryptBCTest() throws Exception {\n byte[] text = { (byte) 'h', (byte) 'e', (byte) 'l', (byte) 'l', (byte) 'o', (byte) ' ', (byte) 'w', (byte) 'o', (byte) 'r', (byte) 'l', (byte) 'd', (byte) '!', (byte) '\\n' };\n ECKeyPairGenerator keyGen = new ECKeyPairGenerator();\n X9ECParameters x9EC...
"public static GroupBy createGroupBy(List<ColumnName> columnsList) {\n List<Selector> selectorsList = new LinkedList<>();\n for (ColumnName column : columnsList) {\n ColumnSelector selector = new ColumnSelector(column);\n selectorsList.add(selector);\n }\n Set<Operations> operations = new Hash...
"public void run() {\n LOGGER.debug(\"String_Node_Str\");\n blacklistedPlugins = RodaCoreFactory.getRodaConfigurationAsList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n loadPlugins();\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"String_Node_Str\", jarPluginCache.size());\n ...
"public void onDrawerClosed() {\n updateMapPadding();\n GAUtils.sendTiming(new HitBuilders.TimingBuilder().setCategory(GAUtils.Category.FLIGHT_DATA_DETAILS_PANEL).setVariable(getString(R.string.ga_mode_details_close_panel)).setValue(System.currentTimeMillis()));\n}\n"
"protected void refreshMargin() {\n if (getFigure() instanceof IReportElementFigure) {\n if (isFixLayout() && getFigure().getParent() != null) {\n ((IReportElementFigure) getFigure()).setMargin(getModelAdapter().getMargin(null, getFigure().getParent().getClientArea().getSize()));\n } else {\...
"public void testIsValidWhenNationalBankAccount() {\n account = mock(NationalBankAccount.class);\n when(predicates.isMatchingCurrency(offer, account)).thenReturn(true);\n when(predicates.isEqualPaymentMethods(offer, account)).thenReturn(true);\n when(predicates.isMatchingCountryCodes(offer, account)).thenRe...
"private void _loadPreprocessedModel() throws IllegalActionException {\n for (Object obj : getTopLevelActor().deepEntityList()) {\n ComponentEntity actor = (ComponentEntity) obj;\n if (actor instanceof ProxySink) {\n ProxySink proxySink = (ProxySink) actor;\n proxySink.setTokenPub...
"public boolean processCreatedVariant(ProgramVariant programVariant, int generation) throws Exception {\n URL[] originalURL = projectFacade.getURLforMutation(ProgramVariant.DEFAULT_ORIGINAL_VARIANT);\n CompilationResult compilation = mutatorSupporter.compileOnMemoryProgramVariant(programVariant, originalURL);\n ...
"public List<CsdlSchema> getSchemas() throws ODataException {\n CsdlSchema schema = new CsdlSchema();\n schema.setNamespace(NAMESPACE);\n schema.setAlias(NAMESPACE_ALIAS);\n schema.setEnumTypes(Collections.singletonList(prov.getEnumType(EnumTypeProvider.nameENString)));\n schema.setTypeDefinitions(Collec...
"private Collection<GroupedRecyclerViewAdapter.Item> filter(Collection<RedditCommentListItem> comments) {\n Collection<RedditCommentListItem> searchComments;\n if (mSearchString == null) {\n searchComments = comments;\n } else {\n searchComments = new ArrayList<>();\n for (RedditCommentLis...
"private boolean isValidDirectory(File file) {\n String absolutePath = file.getAbsolutePath();\n boolean tdqProject = false;\n File[] listFiles = file.listFiles();\n if (listFiles != null) {\n for (File afile : listFiles) {\n if (StringUtils.equals(afile.getName(), \"String_Node_Str\")) {\...
"public void run() {\n redstoneTick = !redstoneTick;\n if (time >= 2400)\n time = 0;\n if (time % 40 == 0)\n TridentPlayer.sendAll(new PacketPlayOutTimeUpdate().set(\"String_Node_Str\", existed).set(\"String_Node_Str\", time));\n rainTime--;\n thunderTime--;\n if (rainTime <= 0) {\n ...
"public void onChange(ServiceDiscovered serviceDiscovered) {\n ResourceRequirement requirement = requirements.get(serviceDiscovered.getName());\n if (requirement != null) {\n performAssignment(requirement, serviceDiscovered);\n }\n}\n"
"private void runOffloadedModifyingEntryProcessor(final Object previousValue, String executorName) {\n final OperationServiceImpl ops = (OperationServiceImpl) getNodeEngine().getOperationService();\n final Data finalDataKey = dataKey;\n final String finalCaller = getCallerUuid();\n final long finalThreadId ...
"public void testBasicArray() {\n CoGroupFunction<?, ?, ?> function = new CoGroupFunction<String, String, String[]>() {\n private static final long serialVersionUID = 1L;\n public void combineFirst(Iterator<String> records, Collector<String> out) throws Exception {\n }\n public void combi...
"public Object getServerGuiElement(int id, EntityPlayer player, World world, BlockPos pos) {\n if (!world.blockExists(pos)) {\n return null;\n }\n TileEntity tile = world.getTileEntity(pos);\n switch(id) {\n case GuiIds.AUTO_CRAFTING_TABLE:\n if (!(tile instanceof TileAutoWorkbench)...
"public static void damageEntity(Player player, Entity entity, double damage, String ability) {\n if (entity instanceof LivingEntity) {\n if (entity instanceof Player) {\n if (Commands.invincible.contains(((Player) entity).getName()))\n return;\n }\n if (Bukkit.getPlugi...
"public void testNestedSimpleSelectUsesFetch() throws Exception {\n QueryThenFetch qtf = e.plan(\"String_Node_Str\");\n List<Projection> projections = ((Collect) qtf.subPlan()).collectPhase().projections();\n assertThat(projections, Matchers.contains(instanceOf(TopNProjection.class), instanceOf(TopNProjection....
"public void initialization() {\n jpaApi.withTransaction(() -> {\n if (Account.findByEmail(adminMail) == null) {\n adminAccount.email = adminMail;\n adminAccount.firstname = \"String_Node_Str\";\n adminAccount.lastname = \"String_Node_Str\";\n adminAccount.role = Ac...
"public void onClick(View v) {\n startActivity(new Intent(getActivity(), StoryNewActivity.class));\n}\n"
"public boolean hasNext() {\n while (iterator.hasNext()) {\n Map.Entry<K, ReplicatedRecord<K, V>> entry = iterator.next();\n if (testEntry(entry)) {\n nextEntry = entry;\n return true;\n }\n }\n return false;\n}\n"
"public boolean apply(Game game, Ability source) {\n List<Permanent> lands = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game);\n for (Permanent land : lands) {\n Abilities<ManaAbility> mana = land.getAbilities().getManaAbilities(Constants.Zone.BATTLEFIELD);\n Mana ty...
"public void sendMail(String sender, Collection recipientList, String subject, String content) {\n try {\n Message mesg = new MimeMessage(session);\n mesg.setFrom(new InternetAddress(sender));\n Iterator iterator = recipientList.iterator();\n while (iterator.hasNext()) {\n Stri...
"private static synchronized SecureRandom getSecureRandom() {\n if (cachedSecureRandom != null) {\n return cachedSecureRandom;\n }\n try {\n cachedSecureRandom = SecureRandom.getInstance(\"String_Node_Str\");\n Runnable runnable = new Runnable() {\n public void run() {\n ...
"public JSONObject collectTokenInfors() throws Exception {\n JSONObject result = new JSONObject();\n for (TokenInforProvider tip : getProviders()) {\n ITokenCollector collector = tip.getCollector();\n if (collector != null) {\n try {\n JSONObject collectionObject = collecto...
"private void showBlogInfo(final ReaderBlogInfo blogInfo) {\n final TextView txtBlogName = (TextView) findViewById(R.id.text_blog_name);\n final TextView txtDescription = (TextView) findViewById(R.id.text_blog_description);\n final TextView txtFollowCnt = (TextView) findViewById(R.id.text_follow_count);\n f...
"protected Component getChildByNode(Object node) {\n int[] path = _model.getPath(_model.getRoot(), node);\n if (path == null || path.length == 0)\n return this;\n else {\n Treeitem ti = null;\n for (int i = 1; i < path.length; i++) {\n ti = (Treeitem) ti.getTreechildren().getChi...
"private SummaryData parseSummaryData(Node summaryDataNode) {\n SummaryData nodeSummaryData = new SummaryData();\n NodeList children = summaryDataNode.getChildNodes();\n String childName;\n for (int i = 0; i < children.getLength(); i++) {\n childName = children.item(i).getNodeName();\n if (chi...
"public void preProcess(PreviewModel previewModel) {\n alpha = (float) previewModel.getProperties().getDoubleValue(PreviewProperty.EDGE_LAYOUT_EDGE_TRANSPARENCY);\n intAlpha = (int) (255 * alpha);\n forceAlpha = (boolean) previewModel.getProperties().getBooleanValue(PreviewProperty.EDGE_LAYOUT_EDGE_TRANSPARENC...
"public void actionPerformed(ActionEvent event) {\n if (mFile == null)\n return;\n File suggestedFile = new File(mFileChooser.getCurrentDirectory(), mFile.getName());\n mFileChooser.setSelectedFile(suggestedFile);\n mFileChooser.getFileChooserPanel().setSelectedFiles(new File[] { suggestedFile });\n ...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_barchart);\n tvX = (TextView) findViewById(R.id.tvXMax);\n tvY = (...
"protected boolean sendStop(VirtualMachineGuru guru, VirtualMachineProfile profile, boolean force) {\n VirtualMachine vm = profile.getVirtualMachine();\n StopCommand stop = new StopCommand(vm, ExecuteInSequence.value());\n try {\n StopAnswer answer = (StopAnswer) _agentMgr.send(vm.getHostId(), stop);\n ...
"protected Void doInBackground(Integer... params) {\n MatrixError defaultError = new MatrixError();\n defaultError.errcode = MatrixError.UNKNOWN;\n try {\n URL url = new URL(mUrl);\n Log.d(LOG_TAG, \"String_Node_Str\" + this + \"String_Node_Str\");\n mDownloadStats = new IMXMediaDownloadLi...
"public static float calculateMaxAxisTime(TablePerspective tablePerspective) {\n RecordVirtualArray recordVA = tablePerspective.getRecordPerspective().getVirtualArray();\n DimensionVirtualArray dimensionVA = tablePerspective.getDimensionPerspective().getVirtualArray();\n float maxAxisTime = 0;\n boolean con...
"public void done() {\n timer.cancel();\n List<EvaluatedDescription> result = null;\n try {\n result = get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n view.algorithmTerminated();\n updateList(...
"public ObjectName name(ThriftMethodProcessor methodProcessor) {\n try {\n Class<?> serviceClass = methodProcessor.getServiceClass();\n String name = format(\"String_Node_Str\", getServiceName(serviceClass), methodProcessor.getName());\n return new ObjectName(name);\n } catch (MalformedObject...
"public Enumeration getHeaderNames() {\n Vector<String> v = new Vector<String>();\n Enumeration en = getHttpServletRequest().getHeaderNames();\n while (en.hasMoreElements()) {\n try {\n String name = (String) en.nextElement();\n String clean = ESAPI.validator().getValidInput(\"Stri...
"List<XValue> expandToList(String arg, EvalEnv env) throws IOException, CoreException {\n if (arg.startsWith(\"String_Node_Str\") && arg.endsWith(\"String_Node_Str\")) {\n List<XValue> r = new ArrayList<XValue>(1);\n r.add(new XValue(arg.substring(3, arg.length() - 3)));\n return r;\n }\n ...
"protected void close() {\n OutputStream stream = os;\n if (stream == System.out || stream == System.err) {\n return;\n }\n try {\n os.close();\n } catch (final IOException ex) {\n LOGGER.error(\"String_Node_Str\" + getName() + \"String_Node_Str\" + ex);\n }\n}\n"
"public int getDay() {\n synchronized (this) {\n return _day;\n }\n}\n"
"public MultiSelectionField<V> bind(ListProperty<V> itemsBinding, ListProperty<V> selectionBinding) {\n items.bindBidirectional(itemsBinding);\n selection.bindBidirectional(selectionBinding);\n return this;\n}\n"
"public String getSessionKey() {\n return this.metadata.get(sessionKeyField);\n}\n"
"private void advanceInputFileToFirstLine() {\n int approxCharsPerLine = 60;\n int numberOfLines = 100000;\n while (true) {\n try {\n mInputFile.mark((approxCharsPerLine + 15) * numberOfLines);\n mInputFile.skip((approxCharsPerLine) * numberOfLines);\n mInputFile.readLin...
"private static void writeConfig(Config config, boolean update) {\n String json = CustomSkinLoader.GSON.toJson(config);\n if (CustomSkinLoader.CONFIG_FILE.exists())\n CustomSkinLoader.CONFIG_FILE.delete();\n try {\n CustomSkinLoader.CONFIG_FILE.createNewFile();\n FileUtils.write(CustomSkin...
"public Dependencies makeSootClass(SootClass sc, ClassDef defItem, DexFile dexFile) {\n String superClass = defItem.getSuperclass();\n Dependencies deps = new Dependencies();\n String sourceFile = defItem.getSourceFile();\n if (sourceFile != null) {\n sc.addTag(new SourceFileTag(sourceFile));\n }\...
"private void load(String type) throws Exception {\n dlog(\"String_Node_Str\" + type);\n for (FetchedFile f : fileList) {\n for (FetchedResource r : f.getResources()) {\n if (r.getElement().fhirType().equals(type)) {\n dlog(\"String_Node_Str\" + r.getId());\n if (!r...
"QRNode<T> tryPut(QREntry<T> e, int maxNodeSize, boolean enforceLeaf) {\n if (QuadTreeKD.DEBUG && !e.enclosedBy(center, radius)) {\n throw new IllegalStateException(\"String_Node_Str\" + e + \"String_Node_Str\" + Arrays.toString(center) + \"String_Node_Str\" + radius);\n }\n int pos = calcSubPositionR(e...
"private void addParticleDetail(XSDSchema xsdSchema, XSDParticle xsdParticle, ATreeNode parentNode, String currentPath) throws OdaException, IllegalAccessException, InvocationTargetException {\n XSDTerm xsdTerm = xsdParticle.getTerm();\n if (xsdTerm instanceof XSDElementDeclaration) {\n XSDElementDeclarati...
"private void resetHistory() {\n HistoryAdapter adapter = (HistoryAdapter) mImageShow.getHistoryAdapter();\n adapter.reset();\n ImagePreset original = new ImagePreset(adapter.getItem(0));\n mImageShow.setImagePreset(original);\n invalidateViews();\n}\n"
"private MockedTypeCascade getCascade(String invokedTypeDesc, Class<?> mockedClass) {\n Class<?> typeToLookFor = mockedClass;\n do {\n String typeDesc = Type.getInternalName(typeToLookFor);\n if (invokedTypeDesc.equals(typeDesc)) {\n return null;\n }\n MockedTypeCascade casc...
"protected void agents() {\n Random randomGenerator = new Random(this.randomSeed);\n for (int i = 0; i < 50; i++) {\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, randomGenerator.nextDouble(), randomGenerator.nextDouble()));\n }\n}\n"
"void removeFromEdgeForeignKeyCache(String name, String foreignKey) {\n Preconditions.checkState(isSqlWriteLockHeldByCurrentThread() || isTopologyMapWriteLockHeldByCurrentThread());\n Set<String> foreignKeys = this.edgeForeignKeyCache.get(name);\n if (foreignKeys != null) {\n foreignKeys.remove(foreignK...
"public void start(RoundFacade parentRound, Player sellingPlayer, int cashToRaise, PublicCompany cashNeedingCompany, boolean dumpOtherCompaniesAllowed) {\n log.info(\"String_Node_Str\" + sellingPlayer.getId() + \"String_Node_Str\" + cashToRaise);\n ReportBuffer.add(this, LocalText.getText(\"String_Node_Str\", sel...
"private boolean remove(Widget child, int index) {\n if (child.getParent() != this) {\n return false;\n }\n if (visibleStack == index) {\n visibleStack = -1;\n } else if (visibleStack > index) {\n --visibleStack;\n }\n int rowIndex = 2 * index;\n Element tr = DOM.getChild(body,...
"private void executeStartPrussian(boolean display) {\n prussian.start();\n String message = LocalText.getText(\"String_Node_Str\", PR_ID, Currency.format(this, prussian.getIPOPrice()), prussian.getStartSpace().toText());\n ReportBuffer.add(message);\n if (display)\n DisplayBuffer.add(message);\n ...
"private void startUsingContactsDictionaryLocked() {\n if (null == mContactsDictionary) {\n if (LatinIME.USE_BINARY_CONTACTS_DICTIONARY) {\n mContactsDictionary = new SynchronouslyLoadedContactsBinaryDictionary(this, Locale.getDefault());\n } else {\n mContactsDictionary = new Syn...
"public void open(final AGLView view) {\n if (view.isRenderedRemote())\n this.view = (AGLView) view.getRemoteRenderingGLView();\n else\n this.view = view;\n this.parent = view.getParentComposite();\n final ContextMenuCreator menuCreator = this;\n final JPopupMenu popup = menuCreator.create(...
"public void testIArrayLike13() throws Exception {\n testTypesWithExtraExterns(EXTERNS_WITH_IARRAYLIKE_DECLS, LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"), LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n}\n"
"public static HelperContext getHelperContext() {\n ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();\n HelperContext hCtx = userSetHelperContexts.get(contextClassLoader);\n if (hCtx != null) {\n return hCtx;\n }\n Object key = getDelegateMapKey(contextClassLoader);\...
"public void afterStory(boolean isGivenStory) {\n logger.info(\"String_Node_Str\", currentStoryDescription.getDisplayName(), isGivenStory ? \"String_Node_Str\" : \"String_Node_Str\");\n if (isGivenStory) {\n givenStoryContext = false;\n notifier.fireTestFinished(currentStep);\n prepareNextSte...
"public void execute(Tuple tuple) {\n if (ruleStream.equals(tuple.getSourceStreamId())) {\n Set<Rule> rules = (Set<Rule>) tuple.getValue(0);\n Set<String> rulesToRemove = new HashSet<String>();\n for (Rule rule : rulesMap.values()) {\n if (!rules.contains(rule))\n rules...
"public void performDirectEdit() {\n CommandStack stack = SessionHandleAdapter.getInstance().getCommandStack();\n stack.startTrans(TEXT_TRANS_MSG);\n TextEditDialog dialog = new TextEditDialog(UIUtil.getDefaultShell(), DLG_TITLE_TEXT, ((TextItemHandle) getModel()));\n if (dialog.open() == Dialog.OK) {\n ...
"public void redeem() throws NoSuchTokenException {\n Clusters.lookup(Topology.lookup(ClusterController.class, this.getAllocationInfo().getPartition())).getNodeState().redeemToken(this);\n}\n"
"private ContainerLaunchContext setupContainerLaunchContext(TaskStatus taskStatus) throws Exception {\n String taskRoleName = taskStatus.getTaskRoleName();\n Integer taskIndex = taskStatus.getTaskIndex();\n Integer serviceVersion = getServiceVersion(taskRoleName);\n UserDescriptor user = requestManager.getU...
"public void configure() {\n ApplicationMetadata appMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata();\n puToSchemaMetadata = appMetadata.getSchemaMetadata().getPuToSchemaMetadata();\n for (String persistenceUnit : persistenceUnits) {\n log.info(\"String_Node_Str\" + persistenceUnit);\n ...
"public static boolean isQueryDefnEqual(int mode, IBaseQueryDefinition qd1, IBaseQueryDefinition qd2, boolean onIVMode, boolean isSubQueryNameCared) throws DataException {\n if (qd1 == qd2)\n return true;\n if (qd1 == null || qd2 == null)\n return false;\n if (!isEqualSorts(qd1.getSorts(), qd2.ge...
"private void init(Context context, AttributeSet attrs) {\n mInitialized = true;\n final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.AnimatedProgressBar);\n final int duration = a.getInteger(R.styleable.AnimatedProgressBar_shiftDuration, 1000);\n final boolean wrap = a.getBoolean(R.styl...
"public SystemVmResponse createSystemVmResponse(VirtualMachine vm) {\n SystemVmResponse vmResponse = new SystemVmResponse();\n if (vm.getType() == Type.SecondaryStorageVm || vm.getType() == Type.ConsoleProxy) {\n vmResponse.setId(vm.getId());\n vmResponse.setSystemVmType(vm.getType().toString().toLo...
"private void squareOptions() {\n final JFrame popup = new JFrame(\"String_Node_Str\");\n popup.setSize(370, 120);\n popup.setLocationRelativeTo(null);\n popup.setLayout(new FlowLayout());\n final JButton pickColor = new JButton(\"String_Node_Str\");\n pickColor.addActionListener(new ActionListener() ...
"public void markAsBroken() {\n if (definition != null) {\n currentKey = null;\n if (root) {\n cache.clear();\n }\n markChildrenHasBroken(root);\n }\n}\n"
"public void testGetRealm() {\n try {\n handler.getRealm();\n } catch (RequestException ex) {\n System.out.println(\"String_Node_Str\");\n ex.printStackTrace();\n }\n}\n"
"public static void stopBending() {\n List<AbilityModule> abilities = AbilityModuleManager.ability;\n for (AbilityModule ab : abilities) {\n ab.stop();\n }\n AirBlast.removeAll();\n AirBubble.removeAll();\n AirShield.instances.clear();\n AirSuction.instances.clear();\n AirScooter.removeAl...
"public String toString() {\n if (highestRisk == null) {\n return \"String_Node_Str\" + getRiskThreshold() + \"String_Node_Str\";\n } else {\n return \"String_Node_Str\" + getRiskThreshold() + \"String_Node_Str\" + getEffectiveHighestRisk() + \"String_Node_Str\" + highestRisk + \"String_Node_Str\" +...
"private void setStateFromView() {\n PostState state = PostState.getState();\n state.removeListener();\n state.beginTransaction().setText(editText.getText().toString()).commit();\n state.setListener(this);\n}\n"
"protected void configure() {\n install(new FactoryModuleBuilder().implement(ApplicationManager.class, DefaultBenchmarkManager.class).build(BenchmarkManagerFactory.class));\n install(new FactoryModuleBuilder().implement(StreamWriter.class, GatewayStreamWriter.class).build(BenchmarkStreamWriterFactory.class));\n ...
"private void parseObjectInto(ParseContext cx, JSONTokenizer tokenizer) throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {\n boolean containerIsMap = Map.class.isAssignableFrom(cx.target.getClass());\n boolean containerIsDynAttrs = cx.target instanceof Dynami...
"public String getText(Object element) {\n if (element instanceof IContentNode) {\n IContentNode node = (IContentNode) element;\n return node.getName();\n }\n if (element instanceof String) {\n return (String) element;\n }\n if (element == TeiidServerContentProvider.getPending()) {\n...
"public <T> T of(T controller) {\n return (T) of((Class<T>) extractRawTypeIfPossible(controller.getClass()));\n}\n"
"public static boolean load(File dataFolder, Logger log) {\n if (!_load(dataFolder, log)) {\n _instance = new Config();\n return false;\n }\n FileWriter writer = null;\n InputStream templateInput = (new Config()).getClass().getResourceAsStream(\"String_Node_Str\");\n String output;\n try...
"public String getFunctionSignature() {\n return getIdentifier().getEscapedCodeStr();\n}\n"
"public static void recordFeed(String feed) {\n feed = normalizeURL(feed);\n _feedsWithoutCachedTextDisplay.add(feed);\n _log.debug(\"String_Node_Str\" + feed);\n}\n"
"public boolean publishGeoTIFF(final String workspace, final String storeName, final String layerName, final File geotiff) throws FileNotFoundException, IllegalArgumentException {\n if (workspace == null || geotiff == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n return publishCoverage...
"public static boolean updateServices(ConnectionItem connectionItem, boolean show, final boolean onlySimpleShow) {\n List<IRepositoryViewObject> updateList = new ArrayList<IRepositoryViewObject>();\n IProxyRepositoryFactory factory = CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();\n List<Relation>...
"public List<ColumnMetaData> getMetaData() {\n List<ColumnMetaData> map = new ArrayList();\n String schema = databaseProperties.getProperty(\"String_Node_Str\");\n IDBConnection dbConnection;\n Connection connection = null;\n try {\n dbConnection = DBConnectionFactory.createDBConnection(databasePr...
"public void testMultipleCacheManagers() throws Exception {\n cacheManager.configureCache(\"String_Node_Str\", configuration);\n assertThat(mBeanServer.queryNames(new ObjectName(\"String_Node_Str\"), null), hasSize(2));\n CacheManager cacheManager2 = getCacheManager();\n cacheManager2.configureCache(\"Strin...
"private byte[] readAll(InputStream in) throws IOException {\n if (in == null) {\n return new byte[0];\n } else {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n byte[] buffer = new byte[4096];\n int length;\n while ((length = in.read(buffer)) > 0) {\n b...
"protected int executeCommand() throws CommandException, CommandValidationException {\n try {\n DomainsManager manager = new PEDomainsManager();\n DomainConfig config = new DomainConfig(domainName, domainDir);\n manager.validateDomain(config, false);\n verifyPortBase();\n } catch (Doma...
"public void testMaxAndFirstResultsOnDataQuery() {\n EntityManager em = createEntityManager();\n Exception exception = null;\n List resultList = null;\n clearCache();\n Query query = em.createQuery(\"String_Node_Str\");\n try {\n query.setFirstResult(1);\n query.setMaxResults(1);\n ...
"private ArrayList<Integer> getExpressionIndicesFromPathwayVertexGraphItemRep(int iPathwayVertexGraphItemRepID) {\n ArrayList<Integer> alExpressionIndex = new ArrayList<Integer>();\n for (IGraphItem pathwayVertexGraphItem : pathwayItemManager.getItem(iPathwayVertexGraphItemRepID).getAllItemsByProp(EGraphItemPrope...
"protected void appendText(StyledText st, ChatLine text) {\n if (st == null || text == null) {\n return;\n }\n int startRange = st.getText().length();\n StringBuffer sb = new StringBuffer();\n boolean nickContained = text.getText().indexOf(localUserName) != -1;\n if (text.getOriginator() != nul...
"private void advance() {\n try {\n while (walker.hasNext()) {\n ColumnEvent ev = walker.next();\n switch(currentChangeType) {\n case ColumnEvent.ROW_EDGE_CHANGE:\n if (rowEdgeStarted) {\n nextExecutor = new CrosstabCellExecutor(th...
"public void execute() throws MojoExecutionException, MojoFailureException {\n validateConfiguration();\n try {\n checkUncommittedChanges();\n String featureBranchName = null;\n if (settings.isInteractiveMode()) {\n featureBranchName = promptBranchName();\n } else if (String...
"private Event parseWriteEvent(StringTokenizer tokenizer) {\n Time[] timestampAndDuration = parseTime(tokenizer.nextToken());\n String filePath = tokenizer.nextToken();\n long length = Long.parseLong(tokenizer.nextToken());\n return new WriteEvent(client, timestampAndDuration[0], length, timestampAndDuratio...
"public String extractRegularExpressionFunctionReturnValue(Expression expression, String regexp) {\n String tempString = splictExpression(expression);\n if (regexp == null) {\n return tempString;\n }\n String splitKey = regexp.toUpperCase() + \"String_Node_Str\";\n int keyIndex = tempString.indexO...
"public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(MessageUtils.mustBeIngameMessage);\n return true;\n }\n Player player = (Player) sender;\n HumanNPC npc = null;\n boolean returnva...
"private void toStringHelper(StringBuffer tmp, int tabCount, long visability) {\n if (null != this.getNested(visability) && this.getNested(visability).size() > 0) {\n for (CppClass c : this.getNested(visability)) {\n c.toString(tmp, tabCount);\n }\n tmp.append(Cpp.newline);\n }\n ...
"private void marshal(Object object, MarshalRecord marshalRecord, AbstractSession session, XMLDescriptor descriptor, boolean isXMLRoot) {\n if (null != schema) {\n marshalRecord = new ValidatingMarshalRecord(marshalRecord, this);\n }\n if (this.attachmentMarshaller != null) {\n marshalRecord.setX...
"public void onClick(MaterialSection section) {\n currentSection = section;\n if (section.getTarget() == MaterialSection.TARGET_FRAGMENT) {\n setFragment((Fragment) section.getTargetFragment(), section.getTitle(), (Fragment) currentSection.getTargetFragment());\n if (section.hasSectionColor()) {\n ...