content
stringlengths
40
137k
"void resetLeaderAction() {\n _lastLeaderActionTime.set(0);\n}\n"
"public void propagateFileName(Property lastVersionProperty, Property resourceProperty) throws PersistenceException {\n ResourceFilenameHelper.FileName fileNameTest = ResourceFilenameHelper.create(resourceProperty.eResource(), resourceProperty, lastVersionProperty);\n if (!ResourceFilenameHelper.mustChangeVersion...
"private boolean isEntityDeepChanged(Object entity, Object embedded, IdentityHashMap<Object, Boolean> cache) {\n if (cache == null)\n cache = new IdentityHashMap<Object, Boolean>();\n if (cache.containsKey(entity))\n return false;\n cache.put(entity, true);\n boolean saveTracking = trackingCon...
"public void loadAnnotation(WebFilter wf) {\n EnumSet<DispatcherType> dispatcherTypes;\n if (wf.dispatcherTypes().length > 0) {\n dispatcherTypes = EnumSet.copyOf(Arrays.asList(wf.dispatcherTypes()));\n } else {\n dispatcherTypes = EnumSet.allOf(DispatcherType.class);\n }\n this.addMappingF...
"protected void initMetaTextFied() {\n Property property = getProperty();\n if (property != null) {\n String name = property.getLabel();\n String purpose = property.getPurpose();\n String description = property.getDescription();\n String author = property.getAuthor().getLogin();\n ...
"public void testRemoveContent(boolean regenCerts) {\n Owner owner = this.createOwner(\"String_Node_Str\", \"String_Node_Str\");\n Product product = this.createProduct(\"String_Node_Str\", \"String_Node_Str\", owner);\n Content content = this.createContent(\"String_Node_Str\", \"String_Node_Str\", owner);\n ...
"public void linkActivated(HyperlinkEvent e) {\n disposeChartComposite();\n boolean analysisStatue = analysis.getResults().getResultMetadata() != null && analysis.getResults().getResultMetadata().getExecutionDate() != null;\n if (!analysisStatue) {\n boolean returnCode = MessageDialog.openConfirm(null, ...
"public void load(FMLInitializationEvent event) {\n NetworkRegistry.INSTANCE.registerGuiHandler(this, new SteamcraftGuiHandler());\n MinecraftForge.EVENT_BUS.register(new SteamcraftEventHandler());\n MinecraftForge.EVENT_BUS.register(new PhobicCoatingHandler());\n MinecraftForge.EVENT_BUS.register(new Steam...
"public Map<String, PropertyDescriptor> properties() {\n return Collections.unmodifiableMap(properties);\n}\n"
"public void testAppendedSkipToEndMultiThreaded() throws TimeoutException, ExecutionException, InterruptedException {\n for (int j = 0; j < 50; j++) {\n try (ChronicleQueue q = SingleChronicleQueueBuilder.binary(getTmpDir()).wireType(this.wireType).build()) {\n final ThreadLocal<ExcerptAppender> tl...
"public static void main(String[] args) throws Exception {\n if (args.length < 2)\n Util.fatal(HTMLDocumentGenerator.class, \"String_Node_Str\");\n RNGMetadataAPI app = RNGMetadataAPI.createInstance(args[0]);\n HTMLDocumentGenerator gener = new HTMLDocumentGenerator(\"String_Node_Str\");\n gener.HTML...
"public void onAnimationEnd(Animator animation) {\n if (mCardStackListener != null) {\n boolean choice = finalChoice;\n mCardStackListener.onChoiceMade(choice, last);\n }\n recycleView(last);\n final ViewGroup parent = (ViewGroup) view.getParent();\n if (null != parent) {\n parent.re...
"protected static void insertToCell(TableHandle tableHandle, SlotHandle slot, ResultSetColumnHandle[] columns, boolean isLabel) {\n for (int i = 0; i < slot.getCount(); i++) {\n SlotHandle cells = ((RowHandle) slot.get(i)).getCells();\n for (int j = 0; j < cells.getCount(); j++) {\n CellHand...
"public static void compile(File file, IClassCompilable iclass) {\n byte[] bytes;\n try {\n ClassWriter writer = new ClassWriter();\n iclass.write(writer);\n writer.visitEnd();\n byte[] bytes = writer.toByteArray();\n os.write(bytes, 0, bytes.length);\n } catch (Throwable ex)...
"private List<IFile> searchAllDataProvider(IFolder folder, List<IFile> allPRVFiles) {\n try {\n for (IResource resource : folder.members()) {\n if (resource.getType() == IResource.FOLDER) {\n searchAllDataProvider(folder.getFolder(resource.getName()), allPRVFiles);\n c...
"protected boolean putInternal(Data key, Data value) {\n throwExceptionIfNull(key);\n throwExceptionIfNull(value);\n Collection<CollectionRecord> coll = txMap.get(key);\n long recordId = -1;\n long timeout = tx.getTimeoutMillis();\n long ttl = timeout * 3 / 2;\n if (coll == null) {\n Collect...
"private void createCrawlInputParameters(final FormToolkit toolkit, final Composite parent) {\n Section inputParamsSection = toolkit.createSection(parent, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);\n GridDataFactory.fillDefaults().grab(true, false).span(1, 1).applyTo(inputParamsSection);\n Gr...
"protected void exportMetadataModels() {\n log.debug(\"String_Node_Str\");\n Set<String> domainIds = getMetadataDomainRepository().getDomainIds();\n for (String domainId : domainIds) {\n Map<String, InputStream> domainFilesData = getDomainFilesData(domainId);\n for (String fileName : domainFilesD...
"private void findPublicServerActionPerformed(java.awt.event.ActionEvent evt) {\n BufferedReader in = null;\n try {\n String serverUrl = PreferencesDialog.getCachedValue(KEY_CONNECTION_URL_SERVER_LIST, \"String_Node_Str\");\n if (serverUrl.contains(\"String_Node_Str\")) {\n serverUrl = se...
"private double getAccuracyAccordingToKFoldCrossValidation(DataHandleStatistics handle, Map<String, Integer> map, Map<String, Integer>[] maps, int k, Random random, double samplingFraction) throws ParseException {\n ConstantValueEncoder interceptEncoder = new ConstantValueEncoder(\"String_Node_Str\");\n StaticWor...
"public <T> Invoker<T> refer(final Class<T> type, final URL url) throws RpcException {\n try {\n GenericObjectPoolConfig config = new GenericObjectPoolConfig();\n config.setTestOnBorrow(url.getParameter(\"String_Node_Str\", true));\n config.setTestOnReturn(url.getParameter(\"String_Node_Str\", f...
"private void initFile(File file, String rootName) throws IOException {\n Document doc = new Document();\n doc.setRootElement(new Element(rootName));\n file.setWritable(true);\n RandomAccessFile f = new RandomAccessFile(file, \"String_Node_Str\");\n f.getChannel().lock();\n f.setLength(0);\n FileWr...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_friend_details);\n canPerformLogout.set(true);\n int friendId = getIntent().getExtras().getInt(QBServiceConsts.EXTRA_FRIEND_ID);\n friendCursor = DatabaseManager.getFriendCursorById...
"public void run() {\n TdDataProvider tdDataProvider = SwitchHelpers.TDDATAPROVIDER_SWITCH.doSwitch(analysis.getContext().getConnection());\n String query = itemEntity.getQuery();\n String editorName = currentIndicator.getName();\n CorePlugin.getDefault().runInDQViewer(tdDataProvider, query, editorName);\n}...
"public void setSelectionTypeRec(SelectionType selectionType, SelectionManager selectionManager) {\n if (selectionType != SelectionType.NORMAL)\n selectionManager.addToType(selectionType, getID());\n clusterNode.setSelectionType(selectionType);\n for (ICompositeGraphic child : alChildren) {\n chi...
"private SortedSet<Description> getClassCandidatesRecursive(Description index, Description upperClass) {\n SortedSet<Description> candidates = new TreeSet<Description>();\n for (Description candidate : subHierarchy.getSubClasses(upperClass)) {\n if (!isDisjoint(candidate, index)) {\n boolean mea...
"protected Object doFilterWriteWsClose(final NextFilter nextFilter, final IoSession session, WriteRequest writeRequest, WsCloseMessage message) throws Exception {\n if (!session.isConnected()) {\n if (logger != null && logger.isTraceEnabled()) {\n logger.trace(format(\"String_Node_Str\"));\n ...
"public DeployCode makeDeployCodeTransaction(String codeStr, boolean needStorage, String name, String codeVersion, String author, String email, String desp, byte vmtype, String payer, long gaslimit, long gasprice) throws SDKException {\n DeployCode tx = new DeployCode();\n if (payer != null) {\n tx.payer =...
"private void _updateSanitizedActorName() {\n _sanitizedActorName = StringUtilities.sanitizeName(getFullName());\n _sanitizedActorName = _sanitizedActorName.replace(\"String_Node_Str\", \"String_Node_Str\") + _version;\n}\n"
"private synchronized boolean dequeue() {\n if (!m_mngr.ASSERT(m_current == null))\n return false;\n if (m_queue.size() == 0)\n return false;\n for (int i = 0; i < m_queue.size(); i++) {\n PA_Task newPotentialCurrent = m_queue.get(i);\n if (newPotentialCurrent.isArmable()) {\n ...
"public void execute(RiakAction<OP> action) {\n notNull(action, \"String_Node_Str\");\n ClientBootstrap bootstrap = new ClientBootstrap(this.channelFactory);\n Integer i = this.config.getTimeout();\n if (i != null) {\n bootstrap.setOption(\"String_Node_Str\", i);\n }\n bootstrap.setPipelineFact...
"private void myRemoveOccurrenceAnnotations() {\n ReflectionUtils.executePrivateMethod(JavaEditor.class, \"String_Node_Str\", new Class[] {}, this, new Object[] {});\n}\n"
"public void newRaid(String raidCreatorName, Raid raid) {\n final Pair<String, Raid> pair = raids.get(raid.getGym());\n if (pair != null && (raid.equals(pair.getRight()) || raid.getGym().equals(pair.getRight().getGym()))) {\n throw new RaidExistsException(raidCreatorName, pair.getRight());\n } else if (...
"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 static <V> V removeFirst(Deque<V> queue) {\n if (queue instanceof BTraceDeque || queue.getClass().getClassLoader() == null) {\n return queue.removeFirst();\n } else {\n throw new IllegalArgumentException();\n }\n}\n"
"final void ensureValid(final FeatureType base, final FeatureType type) {\n if (base != type && !DefaultFeatureType.maybeAssignableFrom(base, type)) {\n throw new InvalidPropertyValueException(Errors.format(Errors.Keys.IllegalArgumentClass_3, getName(), base.getName(), type.getName()));\n }\n}\n"
"public void testBasicIV5() throws Exception {\n this.GEN_add_filter = true;\n this.GEN_add_group = true;\n this.genBasicIV();\n this.closeArchiveWriter();\n DataEngineContext deContext2 = newContext(DataEngineContext.MODE_UPDATE, fileName, fileName);\n myPreDataEngine = DataEngine.newDataEngine(deCon...
"public void run() {\n widget.deselect(widget.indexOf(item));\n lastSelectionItem = item;\n}\n"
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.contact);\n ListView listView;\n final ArrayList<TrustedContact> tc = Prephase1Activity.dba.getAllRows();\n if (tc != null) {\n names = new String[tc.size()];\n for (int i = 0;...
"public boolean isValid() {\n String text = fTxtHyperlinkLabel.getText();\n if (text == null || \"String_Node_Str\".equals(text.trim())) {\n return false;\n }\n return true;\n}\n"
"public String getUnifiedVersionTestCaseSourceCode(String currentTestCaseSourceCode, JUnitVersion version) {\n String dest = currentTestCaseSourceCode;\n ClassMeta classMeta = new ClassMetaExtractor(config).extract(currentTestCaseSourceCode);\n Configulation config = ObjectUtil.deepCopy(this.config);\n if (...
"public String getMode() {\n String s = (String) CompatUtils.invoke(mObj, null, METHOD_getMode);\n if (TextUtils.isEmpty(s))\n return DEFAULT_MODE;\n return s;\n}\n"
"public static void dispose() {\n if (experimentManager != null) {\n experimentManager.dispose();\n experimentManager = null;\n instanceBook = null;\n }\n}\n"
"public MessageGUID storePublishForFuture(StoredMessage evt) {\n LOG.debug(\"String_Node_Str\", evt);\n if (evt.getClientID() == null) {\n LOG.error(\"String_Node_Str\", evt);\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n MessageGUID guid = new MessageGUID(UUID.randomUUID()....
"public void handleFree(DownloadLink downloadLink) throws Exception {\n requestFileInformation(downloadLink);\n Form forms = null;\n String directLink = br.getRegex(\"String_Node_Str\").getMatch(0);\n if (directLink != null) {\n dl = BrowserAdapter.openDownload(br, downloadLink, directLink);\n } e...
"public void onPause() {\n if (g != null && 0 < frameCount) {\n savedStyle = new PStyle();\n g.getStyle(savedStyle);\n }\n handleMethods(\"String_Node_Str\");\n surface.pauseThread();\n pause();\n}\n"
"public Material setColumnValue(Material baseObject, Object editedValue, int column) {\n if (column != 0) {\n try {\n baseObject.setProperty(properties.get(column), Double.valueOf(editedValue.toString()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n ret...
"public void testMetadata() throws IOException {\n assertCleanState();\n removeAllMetadata();\n assertCleanState();\n Map<String, String> appProperties = ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\");\n Map<String, String> serviceProperties = ImmutableMap.of(\"String_Node_Str\", \"String_Node...
"public void selectionChanged(SelectionChangedEvent event) {\n try {\n resetProjectOperationSelectionWithBusyCursor(false);\n final ConnectionBean connection = getConnection();\n if (connection == null) {\n return;\n }\n errorManager.clearAllMessages();\n updateSe...
"public void execute(RepositoryNode sourceNode, RepositoryNode targetNode) throws Exception {\n if (!validateAction(sourceNode, targetNode)) {\n return;\n }\n if (targetNode.getType() == ENodeType.REPOSITORY_ELEMENT) {\n targetNode = targetNode.getParent();\n }\n final IPath path = Reposito...
"public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {\n if (!(req instanceof WebScriptServletRequest)) {\n throw new WebScriptException(\"String_Node_Str\");\n }\n HttpServletRequest httpReq = ((WebScriptServletRequest) req).getHttpServletRequest();\n String extPath =...
"public void setAmount(long amount) {\n triggerAmount(amount);\n if (shares != 0) {\n BigDecimal newQuote = BigDecimal.valueOf(amount * Values.Share.factor() / (shares * Values.Amount.divider()));\n firePropertyChange(Properties.quote.name(), this.quote, this.quote = newQuote);\n }\n firePrope...
"public boolean shouldContinueExecuting() {\n return !this.gem.getNavigator().noPath() && !this.gem.isDefective() && !this.placed && !this.gem.world.isAirBlock(new BlockPos(this.posX, this.posY, this.posZ));\n}\n"
"public void handleFailed(String switchId, String portId) {\n Node node = new Node(switchId, portId);\n List<DiscoveryNode> subjectList = filterQueue(node);\n if (subjectList.size() == 0) {\n logger.warn(\"String_Node_Str\", node);\n } else {\n DiscoveryNode subject = subjectList.get(0);\n ...
"private void prepopulateIndexFiles() throws IOException {\n try {\n for (int i = 0; i < SwordConstants.ORDINAL_MAT11; i++) {\n writeInitialIndex(otIdxBos);\n }\n ntIdxBos.close();\n otIdxBos.close();\n } catch (FileNotFoundException e) {\n throw new IOException(e.get...
"public void visitMethodCode(MethodCode methodCode) {\n throw new AssertionError(\"String_Node_Str\");\n}\n"
"public String getInfoMessage(Ability source, GameEvent event, Game game) {\n MageObject mageObject = source.getSourceObject(game);\n if (mageObject != null) {\n return \"String_Node_Str\" + mageObject.getLogName() + ')';\n }\n return null;\n}\n"
"public void testRefreshTokenAPITestCase() throws Exception {\n String apiName = \"String_Node_Str\";\n String apiContext = \"String_Node_Str\";\n String tags = \"String_Node_Str\";\n String description = \"String_Node_Str\";\n String apiVersion = \"String_Node_Str\";\n apiPublisher.login(publisherCon...
"public boolean onBlockActivated(World world, int par2, int par3, int par4, EntityPlayer player, int par6, float par7, float par8, float par9) {\n if (player.getCurrentEquippedItem() == null && player.isSneaking()) {\n if (world.getBlockMetadata(par2, par3, par4) == 0) {\n world.setBlockMetadataWit...
"public void reconfigure(List<QueueConsumer> consumers, List<QueueStateImpl> queueStates, QueueConfig config, final long groupId, final int currentConsumerCount, final int newConsumerCount, ReadPointer readPointer) throws OperationException {\n if (newConsumerCount >= currentConsumerCount) {\n return;\n }\...
"public boolean createVcVms(List<BaseNode> vNodes, StatusUpdater statusUpdator) {\n if (vNodes.isEmpty()) {\n logger.info(\"String_Node_Str\");\n return true;\n }\n Map<String, Folder> folders = createVcFolders(vNodes.get(0).getCluster());\n String clusterRpName = createVcResourcePools(vNodes)...
"public void onCredentialRetrieved(Credential credential) {\n AppLog.d(T.NUX, \"String_Node_Str\" + credential.getId());\n if (EditTextUtils.getText(mUsernameEditText).isEmpty() && EditTextUtils.getText(mPasswordEditText).isEmpty()) {\n AnalyticsTracker.track(Stat.LOGIN_AUTOFILL_CREDENTIALS_FILLED);\n ...
"public void initialize() throws BirtException {\n hasStyle = false;\n boxStyle = BoxStyle.DEFAULT;\n localProperties = LocalProperties.DEFAULT;\n maxAvaWidth = parent.getCurrentMaxContentWidth();\n width = maxAvaWidth;\n if (parent.content != null) {\n if (parent.content.isDirectionRTL())\n ...
"private void addCandidate(Reference<?> ref) {\n if (TRACE) {\n ObjectReference referenceAsAddress = ObjectReference.fromObject(ref);\n ObjectReference referent = getReferent(referenceAsAddress);\n VM.sysWrite(\"String_Node_Str\", referenceAsAddress);\n VM.sysWriteln(\"String_Node_Str\", ...
"public static void main(String[] args) throws Exception {\n ELF elf = readELF(args[0]);\n if (args.length < 2) {\n for (int i = 0, n = elf.shnum; i < n; i++) {\n System.out.println(\"String_Node_Str\" + i + \"String_Node_Str\" + elf.sections[i]);\n if (\"String_Node_Str\".equals(elf....
"private void parseAutoFillplayers(final ProxiedPlayer player, List<Section> sectionList) {\n for (int i = 0; i < sectionList.size(); i++) {\n Section section = sectionList.get(i);\n if (section instanceof AutoFillPlayers) {\n sectionList.remove(i);\n String prefix = ((AutoFillPla...
"public String getAncestor() {\n String[] columnNames = this.getColumnNames();\n if (columnNames.length == 1)\n return getPath(columnNames[0]);\n String[] paths = new String[columnNames.length];\n for (int i = 0; i < paths.length; i++) {\n paths[i] = getPath(columnNames[i]).replaceFirst(\"Stri...
"protected void outputImg(Element ele, HashMap cssStyles, IContent content) {\n String src = ele.getAttribute(\"String_Node_Str\");\n if (src != null) {\n IImageContent image = new ImageContent(content);\n addChild(content, image);\n handleStyle(ele, cssStyles, image);\n if (!FileUtil....
"public void run() {\n StringBuilder filePath = new StringBuilder();\n File temporaryFile = null;\n TFile outputFile = null;\n try {\n filePath.append(Constants.IO.imageBaseDir);\n filePath.append(card.hashCode()).append(\"String_Node_Str\").append(card.getName().replace(\"String_Node_Str\", \...
"public Diagnostic getMarkerDiagnostics(Object object, IFile file) {\n if (file == null) {\n file = getFile(object);\n }\n if (object instanceof Resource) {\n Resource resource = (Resource) object;\n EditingDomain editingDomain = AdapterFactoryEditingDomain.getEditingDomainFor(resource.get...
"public void widgetSelected(SelectionEvent e) {\n String msg = getContentsCheckResult();\n errorLabel.setForeground(CHECKMSG_SUCCESSFULCONN.equals(msg) ? errorLabel.getDisplay().getSystemColor(SWT.COLOR_BLUE) : errorLabel.getDisplay().getSystemColor(SWT.COLOR_RED));\n errorLabel.setText(msg);\n}\n"
"public String toString() {\n return new ToStringBuilder(this, SpoutToStringStyle.INSTANCE).append(\"String_Node_Str\", unload).append(\"String_Node_Str\", x).append(\"String_Node_Str\", y).append(\"String_Node_Str\", z).append(\"String_Node_Str\", blockIds, false).append(\"String_Node_Str\", blockData, false).appen...
"public void setUp() throws Exception {\n super.setUp();\n scheduler = new ArchivaTaskSchedulerStub();\n ArchivaConfiguration configuration = applicationContext.getBean(ArchivaConfiguration.class);\n FileTypes filetypes = applicationContext.getBean(FileTypes.class);\n nexusIndexerConsumer = new NexusInde...
"public void setDisplayName(String displayName) {\n if (this.columnHintHandle != null)\n columnHintHandle.setDisplayName(displayName);\n else if (displayName != null && displayName.trim().length() > 0)\n columnHint.setProperty(ColumnHint.DISPLAY_NAME_MEMBER, displayName);\n}\n"
"public void shutdown() {\n deadConnectionsPoller.shutdown();\n msgLog.logMessage(\"String_Node_Str\", true);\n channelGroup.close().awaitUninterruptibly();\n executor.shutdown();\n}\n"
"public void testImportsBigInteger1() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
"public final boolean isRunning() {\n final AmqpPublisher publisher = this.publisher;\n return (((publisher != null) && publisher.isRunning()) || super.isStarted());\n}\n"
"public byte[] browse(String host, int port) {\n ManagedConnection c = null;\n for (Iterator iter = manager.getInitializedConnections().iterator(); iter.hasNext(); ) {\n ManagedConnection c2 = (ManagedConnection) iter.next();\n String ip = c2.getInetAddress().getHostAddress();\n if (ip.equals...
"public boolean equals(final Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (obj instanceof DefaultThreadContextStack) {\n final DefaultThreadContextStack other = (DefaultThreadContextStack) obj;\n if (this.useStack != other...
"public ExtendedOsStats osStats() {\n ExtendedOsStats.Cpu cpuStats = new ExtendedOsStats.Cpu((short) 0, (short) 4, (short) 94, (short) 10);\n OsStats osStats = OsProbe.getInstance().osStats();\n ExtendedOsStats extendedOsStats = new ExtendedOsStats(cpuStats, osStats);\n extendedOsStats.uptime(3600L);\n e...
"public AbstractRecord buildIntoNestedRow(AbstractRecord row, Object object, AbstractSession session, boolean shouldWriteXsiType) {\n XMLRecord record = (XMLRecord) row;\n XMLMarshaller marshaller = record.getMarshaller();\n if ((marshaller != null) && (marshaller.getMarshalListener() != null)) {\n mars...
"public static RequiredOrientResource[] requireOClass(final String oClassName, final Action action, final OrientPermission... permissions) {\n return oClassName != null ? requireResource(ORule.ResourceGeneric.CLASS, oClassName, action, permissions) : new RequiredOrientResource[0];\n}\n"
"public TypeDeclaration parse() {\n DescendingVisitor classWalker = new DescendingVisitor(jc, new EmptyVisitor() {\n public void visitConstantClass(ConstantClass obj) {\n ConstantPool cp = jc.getConstantPool();\n String bytes = obj.getBytes(cp);\n fileUnit.addDependency(bytes....
"protected boolean postParseRequest(final org.glassfish.grizzly.http.server.Request req, final Request request, final org.glassfish.grizzly.http.server.Response res, final Response response, final boolean v3Enabled) throws Exception {\n request.setSecure(req.isSecure());\n DataChunk decodedURI;\n try {\n ...
"public String doPost(String resourcePath, String jsonParamString, String userName, String passWord) throws Exception {\n try {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n HttpPost postRequest = new HttpPost(resourcePath);\n StringEntity input = new StringEntity(jsonParamString);...
"private EncodedValue makeConstantItem(SootField sf, Tag t) {\n if (!(t instanceof ConstantValueTag))\n throw new RuntimeException(\"String_Node_Str\");\n if (t instanceof IntegerConstantValueTag) {\n Type sft = sf.getType();\n IntegerConstantValueTag i = (IntegerConstantValueTag) t;\n ...
"public Set<ModuleNeeded> getCodesModuleNeededs(ERepositoryObjectType type) {\n return ModulesNeededProvider.getCodesModuleNeededs(type, false);\n}\n"
"public boolean putChild(int groupPosition, int childPosition, long childId, boolean isChecked) {\n long packedPosition = ExpandableListView.getPackedPositionForChild(groupPosition, childPosition);\n if (hasStableIds()) {\n Long result = (isChecked) ? childIds.put(childId, packedPosition) : childIds.remove...
"public static boolean hasMoney(Player p, double m) {\n if (m == 0 || isUsing(Bank.None))\n playerHasEnough = true;\n if (isUsing(Bank.iConomy)) {\n return iConomy.getBank().getAccount(p.getName()).hasEnough(m);\n } else if (isUsing(Bank.BOSEconomy)) {\n return BOSEcon.getPlayerMoney(p.get...
"public void setServiceForegroundLocked(ComponentName className, IBinder token, int id, Notification notification, int flags) {\n final int userId = UserHandle.getCallingUserId();\n final long origId = Binder.clearCallingIdentity();\n try {\n ServiceRecord r = findServiceLocked(className, token, userId)...
"public void build() throws IOException {\n try {\n FreeStyleProject testProject = jenkins.createFreeStyleProject();\n testProject.addTrigger(trigger);\n exception.expect(HttpResponses.HttpResponseException.class);\n new MergeRequestBuildAction(testProject, getJson(\"String_Node_Str\"), n...
"public String name() {\n return (StringUtils.isNotNullOrEmpty(name) && shouldAddIdentifierToQuery) ? QueryBuilder.quoteIfNeeded(name) : name;\n}\n"
"public synchronized void addItemListener(ItemListener<E> listener, boolean includeValue) {\n check(listener);\n Call c = itemListenerManager().createNewAddListenerCall(proxyHelper, includeValue);\n itemListenerManager().registerItemListener(name, listener);\n proxyHelper.doCall(c);\n}\n"
"private void waitFreeJVM(final Context context) {\n final long waitStartTime = System.currentTimeMillis();\n ProcessUtils.waitUntilExecutableRunning(this.mapper.getMapperExecutableName());\n getLogger().info(\"String_Node_Str\" + StringUtils.toTimeHumanReadable(System.currentTimeMillis() - waitStartTime) + \"...
"public Matrix4d superpose(Point3d[] fixed, Point3d[] moved) {\n checkInput(fixed, moved);\n Point3d cena = CalcPoint.centroid(fixed);\n Point3d cenb = CalcPoint.centroid(moved);\n double[][] centAcoords = new double[][] { { cena.x, cena.y, cena.z } };\n Matrix centroidA = new Matrix(centAcoords);\n d...
"public Object[] next() {\n lRow++;\n if (lRow > lEndRow) {\n return null;\n }\n if (listMode) {\n oaTuple[0] = it.next();\n } else {\n final Object[] oaResultSet = (Object[]) it.next();\n for (int i = 0; i < iColumnCount; i++) {\n if (iaColumnIndexes[i] != -1) {\n ...
"public final boolean doNext(TLCState curState, long cfp, boolean isLeaf, ObjLongTable counts, StateVec states, LongVec fps) throws Throwable {\n boolean deadLocked = true;\n TLCState succState = null;\n StateVec liveNextStates = null;\n LongVec liveNextFPs = null;\n if (this.checkLiveness && isLeaf) {\n...
"private void updateModelLabels(CountDownLatch latch, String repoId) {\n if (model.getRepoId().generateId().equals(repoId)) {\n List<Label> labels = labelUpdateService.getUpdatedItems(RepositoryId.createFromId(repoId));\n if (labels.size() > 0) {\n model.updateLabelsETag(labelUpdateService.g...
"private void createJoinClause(StringBuilder builder, String tableA, String columnAName, String tableB, String columnBName, String operator) {\n builder.append('(');\n if (tableA != null) {\n builder.append(tableA + \"String_Node_Str\");\n }\n builder.append(surroundWithSpaces(columnAName));\n bui...
"private void elimRefCountsCont(Logger logger, Function f, Continuation cont, Set<Var> parentAssignedAliasVars) {\n for (Block block : cont.getBlocks()) {\n Counters<Var> readIncrements = new Counters<Var>();\n Counters<Var> writeIncrements = new Counters<Var>();\n if (isSingleSpawnCont(cont)) {...