content stringlengths 40 137k |
|---|
"private static ToC transformTOCNode(TOCNode node) {\n ToC toc = new ToC(node.getNodeID(), node.getDisplayString(), node.getBookmark(), BirtUtility.getTOCStyle(node));\n toc.setChildren(getToCChildren(node));\n return toc;\n}\n"
|
"private CreateVmSP getReplacementVmSp(ClusterCreate clusterSpec, String groupName, NodeEntity node, List<DiskSpec> fullDiskSet) {\n VmSchema createSchema = VcVmUtil.getVmSchema(clusterSpec, groupName, fullDiskSet, clusteringService.getTemplateVmId(), clusteringService.getTemplateSnapId());\n NetworkAdd networkAd... |
"public void publishMessage(final T message) {\n final SnsSubjectAndMessage snsSubjectAndMessage = snsMessageAdapter.toSnsSubjectAndMessage(message);\n final String subject = snsSubjectAndMessage.getSubject();\n final String snsMessage = snsSubjectAndMessage.getMessage();\n snsTopicResource.publish(subject,... |
"private List<ExecutionVertex> findFollowers(ExecutionVertex vertex, ArrayList<ExecutionVertex> restart) {\n ArrayList<ExecutionVertex> follower = new ArrayList<ExecutionVertex>();\n for (int i = 0; i < vertex.getNumberOfSuccessors(); i++) {\n ExecutionVertex successor = vertex.getSuccessor(i);\n if... |
"public void cacheResource(Resource r) throws FHIRException {\n Map<String, Resource> map = allResourcesById.get(r.fhirType());\n if (map == null) {\n map = new HashMap<String, Resource>();\n allResourcesById.put(r.fhirType(), map);\n }\n map.put(r.getId(), r);\n if (r instanceof MetadataRe... |
"public <T> RiakFuture handle(String name, Object send, RiakResponseHandler<T> users, ChannelHandler handler, RiakFuture future) {\n ChannelPipeline pipeline = this.channel.getPipeline();\n Command cmd = new Command(this.channel, send, name, handler);\n try {\n if (this.inProgress.add(cmd.name)) {\n ... |
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n ... |
"protected HttpResponse execute(IProgressMonitor monitor, DefaultHttpClient httpClient, URI targetURI) throws Exception {\n HttpGet httpGet = new HttpGet(targetURI);\n HttpResponse response = httpClient.execute(httpGet);\n if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n HttpEntity ... |
"public boolean verifyInstallation(Resource r, Vector<MissingMediaException> problems) {\n SizeBoundUniqueVector sizeBoundProblems = (SizeBoundUniqueVector) problems;\n FormDef formDef;\n try {\n formDef = (FormDef) storage().read(cacheLocation);\n } catch (Exception e) {\n sizeBoundProblems.a... |
"public void updateScreenMeasures(float screenWidth, float screenHeight) {\n Log.i(TAG, \"String_Node_Str\" + screenWidth + \"String_Node_Str\" + screenHeight);\n sScreenLowerX = SCREEN_INITIAL_X - screenWidth / 2;\n sScreenHigherX = SCREEN_INITIAL_X + screenWidth / 2;\n sScreenLowerY = SCREEN_INITIAL_Y - s... |
"private boolean saveData() {\n if (!mCommonFunctions.validateData())\n return false;\n boolean isTransfer = mCommonFunctions.transactionEntity.getTransactionType().equals(TransactionTypes.Transfer);\n if (!isTransfer) {\n mCommonFunctions.resetTransfer();\n }\n if (!saveTransaction())\n ... |
"private void populateFromAttribute() {\n OSIORestClient client;\n String spaceId = getTaskAttribute().getOption(\"String_Node_Str\");\n try {\n client = ((OSIORestConnector) connector).getClient(repository);\n linkTypes = client.getSpaceLinkTypes(spaceId, repository);\n workitems = client... |
"public String getValue() {\n return value;\n}\n"
|
"protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n try {\n if (!nutMvc.handle(req, resp)) {\n resp.setStatus(404);\n }\n } catch (InitException e) {\n return;\n }\n Mvcs.updateRequestAttributes(req);\n String ... |
"public static final ParquetMetadata readFooter(Configuration configuration, FileStatus file, MetadataFilter filter) throws IOException {\n FileSystem fileSystem = file.getPath().getFileSystem(configuration);\n FSDataInputStream f = fileSystem.open(file.getPath());\n try {\n long l = file.getLen();\n ... |
"public Set<QueryModelDefinition> getQueryModelDefinitions(String databaseName) {\n Map<TypeName, QueryModelDefinition> modelQueryDefinition = queryModelDefinitionMap.get(databaseName);\n if (modelQueryDefinition != null) {\n return Sets.newHashSet(queryModelDefinitionMap.get(databaseName).values());\n ... |
"protected void refreshUI(ExecutionData data) {\n if (!ExecutionStatus.DONE.name().equals(statusLabel.getValue()) && !ExecutionStatus.CANCELLED.name().equals(statusLabel.getValue()) && !ExecutionStatus.ERROR.name().equals(statusLabel.getValue())) {\n flowLabel.setValue(data.execution.getFlowName());\n ... |
"public void detectAndSendChanges() {\n delay++;\n if (Platform.isServer() && delay > 15 && network != null) {\n delay = 0;\n IEnergyGrid eg = network.getCache(IEnergyGrid.class);\n if (eg != null) {\n avgAddition = (long) (100.0 * eg.getAvgPowerInjection());\n powerUsag... |
"public String commitAction() {\n URIBuilder requestUri = MMSUtils.getServiceOrgsUri(project);\n if (requestUri == null) {\n return null;\n }\n JFrame selectionDialog = new JFrame();\n String org = JOptionPane.showInputDialog(selectionDialog, \"String_Node_Str\");\n if (org == null) {\n ... |
"private void buildParameterFromElements(String partElement, ParameterInfo parameterRoot) {\n String parameterName = parameterRoot.getName();\n if (parameterName == null) {\n return;\n }\n parametersName.add(parameterName);\n Iterator<XmlSchemaElement> elementsItr = allXmlSchemaElement.iterator();... |
"private void setQueryExpression(String expression) {\n if (ChartUIConstants.QUERY_VALUE.equals(queryType)) {\n if (!(context.getChartType() instanceof GanttChart) && !context.getDataServiceProvider().checkState(IDataServiceProvider.SHARE_QUERY) && context.getDataServiceProvider().checkState(IDataServiceProvi... |
"private void setConnectionState(final AbstractAnalysisMetadataPage masterPage, final DataManager dataManager) {\n DataManager newDataManager = dataManager;\n final DataManager fianlDataManager;\n if (newDataManager != null) {\n if (newDataManager.eIsProxy()) {\n newDataManager = (DataManager... |
"public NBTTagCompound fixTagCompound(NBTTagCompound compound) {\n String oldName = compound.getString(\"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n if (oldName.startsWith(\"String_Node_Str\")) {\n String remappedName = MigrationHelper.getRemappedTileName(oldName);\n if (... |
"public void testUploadServeOnlyFiles() throws Exception {\n MockServer server = new MockServer();\n FileInfo loadInfo = new FileInfo(\"String_Node_Str\", 1232, false, false, null);\n String loadInfoContents = \"String_Node_Str\";\n FileInfo serveInfo = new FileInfo(\"String_Node_Str\", 1232, false, true, n... |
"public void initFrame(AppProperties props) {\n m_props = props;\n m_rootapp = new JRootApp();\n if (m_rootapp.initApp(m_props)) {\n if (\"String_Node_Str\".equals(props.getProperty(\"String_Node_Str\"))) {\n try {\n m_instmanager = new InstanceManager(this);\n } cat... |
"private void updateMaxExpandHeight() {\n mSelfInitiatedLayout = true;\n ViewGroup.LayoutParams lp = getLayoutParams();\n int oldHeight = lp.height;\n lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;\n setLayoutParams(lp);\n measure(View.MeasureSpec.makeMeasureSpec(getWidth(), View.MeasureSpec.EXACTLY... |
"public void finalizeRun() {\n if (entityManager.isDirty()) {\n entityManager.get().removeEntity(this);\n if (!isRemoved()) {\n entityManager.getLive().addEntity(this);\n }\n }\n if (isRemoved()) {\n removeObserver();\n for (Component component : values()) {\n ... |
"protected boolean isHttpMethodMatch() {\n if (StrUtil.isNotBlank(httpMethod) && httpMethod.equalsIgnoreCase(Request.getServletRequest().getMethod()) == false) {\n if (HuluSetting.isDevMode) {\n StaticLog.warn(\"String_Node_Str\", requestPath, method, httpMethod);\n }\n return false;\... |
"public ChemComp getChemComp(String recordName) {\n recordName = recordName.toUpperCase().trim();\n if (recordName.equals(\"String_Node_Str\")) {\n return null;\n }\n try {\n if (!fileExists(recordName)) {\n checkDoFirstInstall();\n }\n if (!fileExists(recordName)) {\n... |
"private ObjectName registerEjbModuleAndItsComponents(final ObjectName parentMBean, final MetadataImpl meta, final com.sun.enterprise.config.serverbeans.Application appConfig, final EjbBundleDescriptor ejbBundleDescriptor) {\n final String xmlDesc = getDeploymentDescriptor(ejbBundleDescriptor);\n if (xmlDesc != n... |
"private boolean isLocalEnum(final CppClass classObject, final CppVar member) {\n boolean result = false;\n for (CEnum enumElement : classObject.getEnums(Cpp.PUBLIC)) {\n if (enumElement.getName().equals(typeName)) {\n result = true;\n }\n }\n return result;\n}\n"
|
"private boolean replaceExtension(RawPacket pkt) {\n if (!pkt.getExtensionBit())\n return false;\n byte[] buf = pkt.getBuffer();\n int extensionOffset = pkt.getOffset();\n extensionOffset += RawPacket.FIXED_HEADER_SIZE;\n extensionOffset += pkt.getCsrcCount() * 4;\n if (buf.length < extensionOf... |
"public void write(Record record) {\n this.held = true;\n int sz = varOffset;\n for (int i = 0, n = strCols.size(); i < n; i++) {\n sz += record.getStrLen(strCols.getQuick(i)) * 2 + 4;\n }\n if (sz > size) {\n alloc(sz);\n }\n int varOffset = this.varOffset;\n for (int i = 0, n = t... |
"private void init() {\n dimensionGroups = new HashSet<ADimensionGroupData>();\n assignIDCategories();\n if (contentIDCategory == null || storageIDCategory == null) {\n throw new IllegalStateException(\"String_Node_Str\" + toString() + \"String_Node_Str\" + contentIDCategory + \"String_Node_Str\" + stor... |
"public void initialize() throws BirtException {\n IPageContent pageContent = (IPageContent) content;\n if (context.getEngineTaskType() == IEngineTask.TASK_RENDER) {\n if (context.isReserveDocumentPageNumbers()) {\n long number = pageContent.getPageNumber();\n if (number > 0) {\n ... |
"public TreeNode buildTree(Uri uri, Uri parentUri) {\n final TreeNode tree = new TreeNode(uri, parentUri);\n long containerId = hasContainer(uri);\n if (containerId <= 0) {\n return tree;\n }\n addTracksUnderContainer(String.valueOf(containerId), tree);\n String[] containers = findChildrenUnder... |
"protected boolean requirePackaging() {\n if (this.requirePackaging == null) {\n List<? extends INode> generatedNodes = process.getGeneratingNodes();\n try {\n for (INode node : generatedNodes) {\n if (node.getComponent() != null && \"String_Node_Str\".equals(node.getComponent... |
"private static void store(Bundle bundle, HashSet<Badge> badges) {\n int count = 0;\n String[] names = new String[badges.size()];\n for (Badge badge : badges) {\n names[count++] = badge.toString();\n }\n bundle.put(BADGES, names);\n}\n"
|
"public void setNode(ConfigurationNode node) {\n String[] path = node.getPathElements();\n if (path == null || path.length == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n ConfigurationNode parent = null;\n ConfigurationNodeSource oldParent = this;\n for (String item : p... |
"public void join(String peer) throws Exception {\n LOG.debug(\"String_Node_Str\");\n try {\n LOG.debug(\"String_Node_Str\", peer);\n Message query = MessageBuilder.buildQueryLeader();\n MessageTuple tuple = null;\n while (true) {\n try {\n sendMessage(peer, q... |
"private Row createPreviewRow(ElementLayout horizontalSpacing, ElementLayout verticalSpacing) {\n PathwayVertexRep vertexRep = node.getPathwayVertexRep();\n List<IDataDomain> dataDomains = DataDomainManager.get().getDataDomainsByType(\"String_Node_Str\");\n List<GeneticDataDomain> geneticDataDomains = new Arra... |
"public String getColumnType(String columnType, Boolean autoIncrement) {\n if (columnType.startsWith(\"String_Node_Str\")) {\n return columnType.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n String type = super.getColumnType(columnType, autoIncrement);\n if (type.startsWith(\"String_Node_S... |
"public ItemStack tryTeleportEntity(ItemStack is, EntityPlayer player, Entity entity) {\n if (entity.isRiding() || entity.riddenByEntity != null)\n return is;\n GemData gemData = GemData.loadFromItemStack(is);\n if (gemData.isLinked() && entity.dimension == gemData.getDimension()) {\n int itemDam... |
"public List<? extends Network> searchForNetworks(ListNetworksCmd cmd) {\n Long id = cmd.getId();\n String keyword = cmd.getKeyword();\n Long zoneId = cmd.getZoneId();\n Account caller = UserContext.current().getCaller();\n Long domainId = cmd.getDomainId();\n String accountName = cmd.getAccountName()... |
"public synchronized void close() throws IOException {\n if (fileChannel == null || !fileChannel.isOpen()) {\n log.info(\"String_Node_Str\" + fileName + \"String_Node_Str\");\n return;\n }\n long endPosition = writeBuffer.getFileChannelPosition();\n if (xidIdentMap.size() > 0) {\n log.i... |
"public boolean isValid() {\n if (conf.getStatus().equals(ChannelStatus.CLOSED) || conf.getStatus().equals(ChannelStatus.INVALID))\n return false;\n return tps() >= 1 && priority() >= 1;\n}\n"
|
"public void addQuantity(int quantity) {\n this.quantity += Math.abs(quantity);\n}\n"
|
"protected RecyclerView.Adapter instantiateAdapter() {\n adapter = new FlexibleAdapter<>(abstractFlexibleItemList, context, false);\n adapter.addListener(this);\n return adapter;\n}\n"
|
"public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n set = in.readBoolean();\n if (set) {\n minX = in.readDouble();\n minY = in.readDouble();\n maxX = in.readDouble();\n maxY = in.readDouble();\n }\n}\n"
|
"private void loadSdcardImage() {\n mNetworkImageView.setImageUrl(SelfImageLoader.RES_SDCARD + Environment.getExternalStorageDirectory() + \"String_Node_Str\", mImageLoader);\n}\n"
|
"private FeedbackResponseComment buildResponseComment(String giverName, String recipientName, FeedbackQuestionAttributes question, FeedbackResponseAttributes response, FeedbackResponseCommentAttributes frcAttributes) {\n boolean isInstructorGiver = instructor.email.equals(frcAttributes.giverEmail);\n boolean isIn... |
"public static String getStackType(String t) {\n if (t == null || t.length() < 1) {\n throw new IllegalArgumentException(\"String_Node_Str\" + t);\n }\n switch(t.charAt(0)) {\n case 'Z':\n case 'C':\n case 'B':\n case 'S':\n return \"String_Node_Str\";\n def... |
"private void resumeLoading() {\n if (this.isMainActivityLoading || this.isLoading)\n return;\n if (this.currentLoadingWebview != null && this.currentLoadingUrl != null) {\n context.runOnUiThread(new Runnable() {\n public void run() {\n currentLoadingWebview.loadUrl(current... |
"protected void populateItem(final ListItem<WorkflowFormPropertyTO> item) {\n final WorkflowFormPropertyTO prop = item.getModelObject();\n Label label = new Label(\"String_Node_Str\", prop.getName() == null ? prop.getId() : prop.getName());\n item.add(label);\n FieldPanel field = null;\n switch(prop.getT... |
"public void actionPerformed(ActionEvent actionEvent) {\n final Product product = virtualBand.getProduct();\n if (product != null && product.isMultiSize()) {\n virtualBand = null;\n final Product resampledProduct = MultiSizeIssue.maybeResample(product);\n if (resampledProduct != null) {\n ... |
"public void testJava7_3() {\n if (complianceLevel >= ClassFileConstants.JDK1_7)\n return;\n String[] sources = { \"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\... |
"public void iterate(MinAggState state, Object columnValue) {\n if (state.compareValue(columnValue) == 1) {\n state.value = columnValue;\n }\n}\n"
|
"public Service deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n ObjectMapper mapper = (ObjectMapper) p.getCodec();\n ObjectNode obj = mapper.readTree(p);\n if (isImageService(obj)) {\n return mapper.treeToValue(obj, ImageService.class);\n }\n ... |
"public void onViewBind(View view, Cursor cr, ODataRow row) {\n int to_read = cr.getInt(cr.getColumnIndex(\"String_Node_Str\"));\n view.setBackgroundResource(background_resources[to_read]);\n ImageView imgStarred = (ImageView) view.findViewById(R.id.img_starred_mlist);\n int is_fav = 0;\n is_fav = cr.get... |
"public void determineAccessRights(String page, State currentState) {\n if (currentState.getCaseID() == 1) {\n if (currentState.isSiteAdministrator() == true) {\n currentState.setMode(GwtModesType.ReadWrite);\n } else if (currentState.getUserProjectRole() == ProjectRole.Acquisition_Organizat... |
"public void addRemoveListenerConcurrency() {\n final Realm realm = looperThread.getRealm();\n final AtomicInteger counter1 = new AtomicInteger(0);\n final AtomicInteger counter2 = new AtomicInteger(0);\n final AtomicInteger counter3 = new AtomicInteger(0);\n final RealmChangeListener<Realm> listener1 = ... |
"public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {\n throw new UnsupportedOperationException();\n}\n"
|
"public void upstreamFinished() {\n runningHandles.decrementAndGet();\n int remaining = remainingUpstreams.decrementAndGet();\n emit();\n LOGGER.trace(\"String_Node_Str\", hashCode, remaining, stillRunning);\n if (remaining == 0) {\n LOGGER.trace(\"String_Node_Str\", hashCode);\n downstream... |
"public String getRawText(Key key) throws BookException {\n checkActive();\n String charset = getBookMetaData().getModuleCharset();\n Verse verse = KeyUtil.getVerse(key);\n try {\n int testament = SwordConstants.getTestament(verse);\n int index = SwordConstants.getIndex(verse);\n if (co... |
"public void widgetSelected(SelectionEvent e) {\n IIndicatorNode indicatorNode = ((IIndicatorNode) e.item.getData(INDICATORITEM));\n if (indicatorNode == null) {\n purposeLabel.setText(PURPOSE + ((TreeItem) e.item).getText());\n descriptionLabel.setText(DESCRIPTION + ((TreeItem) e.item).getText());\... |
"public void init(GLAutoDrawable drawable) {\n GLSupport.checkAndPrintGLError(drawable.getGL());\n this.drawable = drawable;\n gl = drawable.getGL().getGL3();\n String renderer = gl.glGetString(GL.GL_RENDERER);\n String version = gl.glGetString(GL.GL_VERSION);\n int[] buff = new int[2];\n gl.glGetI... |
"public IValue foldConstants() {\n if (this.field != null && this.field.hasModifier(Modifiers.CONST)) {\n IValue v = this.field.getValue();\n return v != null && v.isConstantOrField() ? v : this;\n }\n if (this.instance != null) {\n this.instance = this.instance.foldConstants();\n }\n ... |
"private boolean trySimpleMatch(Chain seqRes, Chain atomRes) {\n List<Group> seqResGroups = seqRes.getAtomGroups();\n List<Group> atmResGroups = atomRes.getAtomGroups();\n if (DEBUG) {\n System.err.println(\"String_Node_Str\" + atomRes.getChainID() + \"String_Node_Str\" + atmResGroups.size() + \"String_... |
"public CartridgeBean[] getSubscribedCartridges() throws RestAPIException {\n int tenantId = getTenantId();\n if (!subscribedCartridges.containsKey(tenantId) && !subscribedCartridges.containsKey(PUBLIC_DEFINITION)) {\n Collection<CartridgeBean> cartridges = new HashMap<String, CartridgeBean>().values();\n ... |
"public void testThatInputChangesCauseRuleKeyChanges() {\n SourcePathResolver pathResolver = new SourcePathResolver(new BuildRuleResolver());\n BuildTarget target = BuildTargetFactory.newInstance(\"String_Node_Str\");\n BuildRuleParams params = BuildRuleParamsFactory.createTrivialBuildRuleParams(target);\n ... |
"private SortedMap<ArtifactDescriptor, Set<PluginClass>> getPluginsInArtifact(Table table, Id.Artifact artifactId, Predicate<PluginClass> filter) {\n SortedMap<ArtifactDescriptor, Set<PluginClass>> result = new TreeMap<>();\n ArtifactCell parentCell = new ArtifactCell(artifactId);\n byte[] parentDataBytes = ta... |
"public String getToken(String serviceAddress, String caCertData, boolean skipTlsVerify) {\n try {\n return FileUtils.readFileToString(new File(SERVICEACCOUNT_TOKEN_PATH));\n } catch (IOException e) {\n return null;\n }\n}\n"
|
"private void stopmodule(DashboardModule module) {\n IViewPart ivp = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(ActiveModuleBrowserView.ID);\n ActiveModuleBrowserView ambv = (ActiveModuleBrowserView) ivp;\n GraphTreeNode graphNode;\n DashboardGraphData graphData;\n if (... |
"public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n PersonManager pManager = new PersonManagerSession();\n AccountManager aManager = new AccountManagerSession();\n ArrayList<Person> availablePersons = new ArrayList<Person>();\n try {\n ... |
"public void testMapRemoveWithWriteBehindMapStore() {\n Config c = new Config();\n TestMapStore mapStore = new TestMapStore();\n mapStore.setLoadAllKeys(false);\n for (int i = 1; i < 6; i++) {\n mapStore.store(i, \"String_Node_Str\" + i);\n }\n c.getMapConfig(\"String_Node_Str\").setMapStoreCon... |
"public void testAddZhaoFeatures() {\n CoNLL09Sentence sent = getSpanishConll09Sentence1();\n Alphabet<String> alphabet = new Alphabet<String>();\n CorpusStatisticsPrm csPrm = new CorpusStatisticsPrm();\n csPrm.useGoldSyntax = true;\n CorpusStatistics cs = new CorpusStatistics(csPrm);\n cs.init(Utilit... |
"protected void agents() {\n Random randomGenerator = new Random();\n for (int i = 0; i < 10; i++) {\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, randomGenerator.nextDouble(), randomGenerator.nextDouble()));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.TFT, randomGenerator.nextDouble... |
"private void placeComponents() {\n {\n GridLayout glContent = new GridLayout();\n glContent.numColumns = 2;\n glContent.marginHeight = 2;\n glContent.marginWidth = 4;\n this.setLayout(glContent);\n }\n grpLeaderLine = new Group(this, SWT.NONE);\n {\n GridData gdGRP... |
"public void allocate() {\n logger.fine(\"String_Node_Str\" + numThreads);\n if (numThreads > 1) {\n mailbox = new Mailbox();\n semaphore = new Semaphore();\n for (int i = 0; i < (numThreads - 1); i++) {\n Thread t = new ScoringThread();\n t.start();\n }\n }\n}... |
"public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n if (Processor.class.isAssignableFrom(method.getDeclaringClass())) {\n invokeMethod = method;\n invokeParameters = Arrays.copyOf(objects, objects.length);\n } else {\n throw new ODataRuntimeException(\"String... |
"protected void cycleProxy(SdlDisconnectedReason disconnectedReason) {\n if (_cycling)\n return;\n synchronized (CYCLE_LOCK) {\n try {\n _cycling = true;\n cleanProxy(disconnectedReason);\n initializeProxy();\n if (!SdlDisconnectedReason.LEGACY_BLUETOOTH_M... |
"public void fire() throws IllegalActionException {\n String expr = expression.getExpression();\n _expression.setExpression(expr);\n Director dir = getDirector();\n if (dir == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n _time.setToken(new DoubleToken(dir.getCurr... |
"public Object coerceToBean(Object val, Component comp, BindContext ctx) {\n Set<Object> vals = new LinkedHashSet<Object>();\n if (val != null) {\n final Tree tree = (Tree) comp;\n final TreeModel<?> model = tree.getModel();\n final Set<Treeitem> items = (Set<Treeitem>) Classes.coerce(LinkedH... |
"public void parse(Node node) throws SAXException {\n parse(node, null, null);\n}\n"
|
"public void start(Stage stage) {\n stage.setTitle(\"String_Node_Str\");\n BorderPane borderPane = new BorderPane();\n borderPane.setLayoutY(10);\n borderPane.setLayoutX(10);\n Scene scene = new Scene(borderPane);\n stage.setScene(scene);\n WebView view = new WebView();\n engine = view.getEngine... |
"public void onServerKick(ServerKickEvent event) {\n if (event.getPlayer() != null && event.getPlayer().getServer() != null) {\n BungeeWeb.log(plugin, event.getPlayer(), 5, event.getPlayer().getServer().getInfo().getName() + \"String_Node_Str\" + BaseComponent.toPlainText(event.getKickReasonComponent()));\n ... |
"protected boolean executeRefreshToken() throws IOException {\n if (refreshToken != null) {\n RefreshTokenGrant request = new RefreshTokenGrant(transport, jsonFactory, authorizationServerUrl, clientId, clientSecret, refreshToken);\n try {\n setAccessToken(request.execute().accessToken);\n ... |
"private int getValueByCount(int blackCount, int whiteCount, Color color) {\n int ONE = 4;\n int TWO = 20;\n int THREE = 40;\n int FOUR = 90;\n float weight = 1.0f;\n int valueWhite = 0;\n if (blackCount == 0) {\n if (whiteCount == 1)\n valueWhite += ONE;\n if (whiteCount =... |
"private void matureCaterpillar() {\n maturationTime++;\n ITree tree = getTree();\n boolean wasDestroyed = isDestroyed(tree, damage);\n damage += caterpillar.getGenome().getMetabolism();\n IButterflyGenome caterpillarGenome = caterpillar.getGenome();\n int caterpillarMatureTime = Math.round((float) ca... |
"public void render(GLRenderer renderer, RenderProps props, int flags) {\n GL2 gl = renderer.getGL2();\n offsetMag = 1.0 * renderer.centerDistancePerPixel();\n renderer.getZDirection();\n Vector3d offDir = new Vector3d(renderer.getZDirection());\n double scale = offsetMag / offDir.norm();\n offDir.sca... |
"public void testUri() {\n ImageItemDesign image = new ImageItemDesign();\n image.setImageUri(Expression.newConstant(\"String_Node_Str\"));\n assertEquals(image.getImageUri().getValue(), \"String_Node_Str\");\n assertEquals(image.getImageSource(), ImageItemDesign.IMAGE_URI);\n image.setImageUri(Expressio... |
"public static List getSelectValueList(Expression expression, DataSetHandle dataSetHandle, boolean useDataSetFilter) throws BirtException {\n ScriptExpression expr = null;\n DataSetHandle targetHandle = dataSetHandle;\n Map appContext = new HashMap();\n DataSetPreviewer previewer = null;\n try {\n ... |
"public void end(IReportContent report) {\n engine.complete();\n if (writer == null) {\n writer = new ExcelWriter(out, context, isRTLSheet, pageHeader, pageFooter, orientation, engine);\n }\n try {\n writer.start(report, engine.getStyleMap(), engine.getAllBookmarks());\n outputCacheData... |
"private void testAllFeatures(final boolean includeSource, final boolean compact, final boolean includeContext) throws IOException, JsonParseException, JsonMappingException {\n final Log4jLogEvent expected = LogEventFixtures.createLogEvent();\n final XMLLayout layout = XMLLayout.createLayout(Boolean.toString(incl... |
"public String getQualifiedName() {\n if (identifierValue != null)\n return identifierValue + \"String_Node_Str\" + this.getQualifiedName();\n else\n return this.qualifiedName;\n}\n"
|
"public void newEntityPolySeq(EntityPolySeq epolseq) {\n Entity e = getEntity(epolseq.getEntity_id());\n if (e == null) {\n System.err.println(\"String_Node_Str\" + epolseq.getEntity_id() + \"String_Node_Str\");\n return;\n }\n Chain entityChain = getEntityChain(epolseq.getEntity_id());\n A... |
"public Boolean doInJCR(JCRSessionWrapper session) throws RepositoryException {\n workflowService.startProcess(Arrays.asList(from.getNode(session).getIdentifier()), session, \"String_Node_Str\", \"String_Node_Str\", args, null);\n return true;\n}\n"
|
"public boolean handle(Object receive) throws Exception {\n if (receive instanceof HttpResponse) {\n return false;\n } else if (receive instanceof PartMessage) {\n PartMessage part = (PartMessage) receive;\n boolean done = part.isLast();\n if (done == false) {\n notifyStep(p... |
"public String[] next() {\n if (!headerReturned) {\n headerReturned = true;\n return header;\n }\n String[] result = new String[indexes.length];\n for (int i = 0; i < indexes.length; i++) {\n result[i] = row[indexes[i]];\n if (!dataTypes[i].isValid(result[i])) {\n if (... |
"protected void onHandleIntent(Intent intent) {\n receiver = intent.getParcelableExtra(\"String_Node_Str\");\n long startTime = System.currentTimeMillis();\n String errmsg = \"String_Node_Str\";\n try {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.