content stringlengths 40 137k |
|---|
"public void testUseCachedMeta1() throws BirtException {\n this.appContextMap.put(DataEngine.DATA_SET_CACHE_ROW_LIMIT, new Integer(1));\n this.genCache();\n myDataEngine = newDataEngine();\n IResultMetaData meta = myDataEngine.getCachedDataSetMetaData(dataSource, dataSet);\n assertTrue(meta != null);\n ... |
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n if (!(sender instanceof Player)) {\n return false;\n }\n Player player = (Player) sender;\n if (MyPetList.hasMyPet(player)) {\n MyPet myPet = MyPetList.getMyPet(player);\n if (MyPetConfig.a... |
"private List<Integer> sampleFeaturesForNodeStats(List<Integer> allFeatures, int sample) {\n List<Integer> features = new ArrayList<Integer>(sample);\n for (int i = 0; i < sample; i++) {\n features.add(allFeatures.get(i));\n }\n Random random = new Random();\n for (int i = sample; i < allFeatures.... |
"private void processGeneratedContent(final File generatedContentParam, final ExtendedDeploymentContext deploymentContext, final Logger logger) throws IOException {\n if (generatedContentParam == null) {\n return;\n }\n final File baseDir = deploymentContext.getScratchDir(\"String_Node_Str\").getParentF... |
"private void initializeTreeViewer(Composite tree) {\n fTreeViewer = new CheckboxTreeViewer(tree, SWT.NONE | SWT.MULTI);\n fTreeViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));\n fTreeViewer.setContentProvider(new TargetLocationContentProvider());\n fTreeViewer.setLabelProvider(new TargetLo... |
"protected String getConsumerUUID(final ConsumerConfig consumerConfig) throws Exception {\n String consumerUUID = null;\n if (consumerConfig.getConsumerId() != null) {\n consumerUUID = consumerConfig.getConsumerId();\n } else {\n consumerUUID = RemotingUtils.getLocalHost() + \"String_Node_Str\" +... |
"private void processResponse(ResponseEntity<String> response, HttpMethod verb, PrettyOutput... prettyOutput) throws Exception {\n HttpStatus responseStatus = response.getStatusCode();\n if (responseStatus == HttpStatus.ACCEPTED) {\n HttpHeaders headers = response.getHeaders();\n URI taskURI = heade... |
"public IReportDocument openReportDocument(String systemId, IDocArchiveReader archive, Map options) throws EngineException {\n ReportDocumentReader reader = new ReportDocumentReader(systemId, engine, archive);\n if (options == null) {\n options = new HashMap();\n }\n intializeModuleOptions(options);\... |
"public final static String getFtpDate(long millis) {\n StringBuffer sb = new StringBuffer(20);\n Calendar cal = new GregorianCalendar(TIME_ZONE_UTC);\n cal.setTimeInMillis(millis);\n sb.append(cal.get(Calendar.YEAR));\n int month = cal.get(Calendar.MONTH) + 1;\n if (month < 10) {\n sb.append('... |
"static void structuralCompose2(final CompoundTerm compound, final short index, final Statement statement, final short side, final DerivationContext nal) {\n if (compound.equals(statement.term[side])) {\n return;\n }\n Term sub = statement.getSubject();\n Term pred = statement.getPredicate();\n fi... |
"private void processAndSend(FormRecord[] records, final boolean syncAfterwards) {\n SharedPreferences settings = CommCareApplication._().getCurrentApp().getAppPreferences();\n int sendTaskId = syncAfterwards ? ProcessAndSendTask.SEND_PHASE_ID : -1;\n ProcessAndSendTask<CommCareHomeActivity> mProcess = new Pro... |
"private void createTargetProduct() {\n targetProduct = new Product(sourceProduct.getName(), sourceProduct.getProductType(), sourceProduct.getSceneRasterWidth(), sourceProduct.getSceneRasterHeight());\n final Band[] sourceBands = sourceProduct.getBands();\n for (Band srcBand : sourceBands) {\n if ((srcB... |
"private void loadRecents() {\n SharedPreferences prefs = getPreferences();\n String str = prefs.getString(PREF_RECENTS, \"String_Node_Str\");\n StringTokenizer tokenizer = new StringTokenizer(str, \"String_Node_Str\");\n while (tokenizer.hasMoreTokens()) {\n try {\n add(new Emojicon(token... |
"public IProjectPO readProject(URL url, ParamNameBPDecorator paramNameMapper, final IWritableComponentNameCache compNameCache, boolean assignNewGuid, boolean testResultNeeded, IProgressMonitor monitor, IProgressConsole io) throws JBVersionException, PMReadException, InterruptedException {\n SubMonitor subMonitor = S... |
"private void createCube(TabularCubeHandle cubeHandle, CubeMaterializer cubeMaterializer, Map appContext, StopSign stopSign) throws IOException, BirtException, DataException {\n List dataSetList = this.needCachedDataSetToEnhancePerformance(cubeHandle);\n Set involvedDataSet = new HashSet();\n for (int i = 0; i... |
"public void testCallAsynch() throws Exception {\n final IRemoteService service = registerAndGetRemoteService();\n System.out.println(\"String_Node_Str\");\n service.callAsynch(createRemoteConcat(\"String_Node_Str\", \"String_Node_Str\"), createRemoteCallListener());\n System.out.println(\"String_Node_Str\"... |
"public void redGel(Player player, Vector vector, Region region) {\n if (player.isSneaking()) {\n vector = vector.setX(0);\n vector = vector.setZ(0);\n } else {\n vector = vector.setX(vector.getX() * region.getDouble(RegionSetting.RED_GEL_VELOCITY_MULTIPLIER));\n vector = vector.setZ(v... |
"private final <TL extends TopLevel> void addTopLevel(TL newTopLevel, Map<URI, TL> instancesMap, String typeName, Map<URI, ? extends Identified>... maps) throws SBOLValidationException {\n boolean childrenCompliant = true;\n try {\n URIcompliance.isURIcompliant(newTopLevel);\n } catch (SBOLValidationExc... |
"public Response execute() {\n System.out.println(\"String_Node_Str\");\n DatabaseAccessor db = null;\n ProcessHandler processHandler;\n try {\n db = new DatabaseAccessor(DatabaseSettings.username, DatabaseSettings.password, DatabaseSettings.host, DatabaseSettings.database);\n processHandler =... |
"protected PersistenceWindow acquireWindow(int sPosition, OperationType type) {\n long position = makeUnsignedInt(sPosition);\n if (!isInRecoveryMode() && (position > getHighId() || !storeOk)) {\n throw new InvalidRecordException(\"String_Node_Str\" + position + \"String_Node_Str\" + getHighId() + \"String... |
"void setAsMaster() {\n logger.log(Level.FINEST, \"String_Node_Str\");\n masterAddress = address;\n logger.log(Level.FINEST, \"String_Node_Str\");\n clusterManager.addMember(address, getLocalNodeType());\n clusterImpl.setMembers(baseVariables.lsMembers);\n unlock();\n}\n"
|
"protected long incrementCount(String counterType, String association, long by) {\n String memcacheKey = memcacheKey(counterType, association);\n String concurrentIncrementKey = memcacheKey + \"String_Node_Str\";\n long numShards = shardCount(counterType, association);\n try {\n long currentAccesses ... |
"public void onPageFinished(WebView view, String url) {\n mainActivity.runOnUiThread(new Runnable() {\n public void run() {\n mainActivity.showWebview();\n }\n });\n UrlInspector.getInstance().inspectUrl(url);\n super.onPageFinished(view, url);\n Uri uri = Uri.parse(url);\n if... |
"public Response performUpdate(final Origin origin, final Update update, final String content, final Keyword keyword, final LoggerContext loggerContext, final HttpServletRequest request) {\n loggerContext.init(getRequestId(origin.getFrom()));\n try {\n final UpdateContext updateContext = new UpdateContext(... |
"public User getUserByUsername(String username) {\n org.openiot.lsm.security.oauth.mgmt.User user = null;\n String userURL = instancesPrefix + \"String_Node_Str\" + username;\n if (username.contains(instancesPrefix + \"String_Node_Str\")) {\n userURL = username;\n username = username.substring(us... |
"public Image decorateImage(Image image, Object element) {\n if (preventRecursion) {\n return null;\n }\n boolean isGroovyFile = false, noBaseImage = (image == null);\n if (element instanceof String && (isGroovyFile = isGroovyLikeFileName((String) element))) {\n image = getImage(new JavaElemen... |
"private static boolean evaluateSimpleExpression(String simpleExpression, List<? extends IElementParameter> listParam, ElementParameter currentParam) {\n boolean showParameter = false;\n String test = null;\n if (simpleExpression.contains(EQUALS)) {\n test = EQUALS;\n } else if (simpleExpression.cont... |
"void finishExit() {\n if (WindowManagerService.DEBUG_ANIM)\n Slog.v(TAG, \"String_Node_Str\" + this + \"String_Node_Str\" + mWin.mExiting + \"String_Node_Str\" + mWin.mRemoveOnExit + \"String_Node_Str\" + isWindowAnimating());\n final int N = mWin.mChildWindows.size();\n for (int i = 0; i < N; i++) {\n... |
"public void testAccessForImplements() {\n String source = \"String_Node_Str\" + \"String_Node_Str\";\n assertAccessRestriction(source, \"String_Node_Str\");\n}\n"
|
"private synchronized void sendChunk(int chunkX, int chunkZ) {\n try {\n if (!this.getSession().getPlayer().getWorld().getChunkAt(chunkX, chunkZ).isLoaded()) {\n this.getSession().getPlayer().getWorld().loadChunk(chunkX, chunkZ, true);\n }\n GlowChunkSnapshot chunk = this.getSession()... |
"public void complexIndexOfInWhereClauseTest() {\n EntityManager em = createEntityManager();\n beginTransaction(em);\n ExpertBeerConsumer consumer = new ExpertBeerConsumer();\n consumer.getDesignations().add(\"String_Node_Str\");\n consumer.getDesignations().add(\"String_Node_Str\");\n em.persist(cons... |
"protected void setupRenderOption() throws EngineException {\n ExtensionManager extManager = ExtensionManager.getInstance();\n if (renderOptions != null) {\n format = renderOptions.getOutputFormat();\n emitterID = renderOptions.getEmitterID();\n if (emitterID != null) {\n boolean v... |
"public ProcessState getProcessStateLocked(String packageName, int uid, String processName) {\n final PackageState pkgState = getPackageStateLocked(packageName, uid);\n ProcessState ps = pkgState.mProcesses.get(processName);\n if (ps != null) {\n return ps;\n }\n ProcessState commonProc = mProcess... |
"public boolean applies(Object obj, String condition) {\n boolean result = false;\n if (obj instanceof String) {\n String objAsString = (String) obj;\n if (objAsString.indexOf(':') != -1 || objAsString.startsWith(\"String_Node_Str\") == true) {\n Matcher m = NODE_REF_PATTERN.matcher(objAs... |
"public void onPlayerInteract(final PlayerInteractEvent event) {\n if (event.getAction().equals(Action.RIGHT_CLICK_AIR) && Control.CONTROL_ITEM.compare(event.getPlayer().getItemInHand()) && MyPetList.hasMyPet(event.getPlayer())) {\n MyPet myPet = MyPetList.getMyPet(event.getPlayer());\n if (myPet.getSt... |
"private void load(InputStream inputStream) throws ConfigError {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n Document document;\n try {\n DocumentBuilder builder = factory.newDocumentBuilder();\n document = builder.parse(inputStream);\n } catch (Throwable e) {\n ... |
"private void declareLHS(Scope declarationScope, Node lhs) {\n if (lhs.isStringKey()) {\n if (lhs.hasChildren()) {\n declareLHS(declarationScope, lhs.getFirstChild());\n } else {\n declareVar(declarationScope, lhs);\n }\n } else if (lhs.isName() || lhs.isRest()) {\n ... |
"public String sync() {\n try {\n UpdateClusterJson updateClusterJson = new UpdateClusterJson();\n updateClusterJson.setStatus(StatusRequest.SYNC);\n cloudbreakShellUtil.checkResponse(\"String_Node_Str\", shellContext.cloudbreakClient().clusterEndpoint().put(Long.valueOf(shellContext.getStackId(... |
"protected void prepareResponse() throws ReportServiceException, RemoteException {\n TOC toc = new TOC();\n List children = __node.getChildren();\n if (children != null && children.size() > 0) {\n TOC[] childTOCNodes = new TOC[children.size()];\n for (int i = 0; i < children.size(); i++) {\n ... |
"public T withVersion(final String version) {\n this.bVersion = StringUtils.isBlank(version) ? null : version;\n return (T) this;\n}\n"
|
"public static String createTempRootDir(String tempDir) {\n String rootDirStr = null;\n File tempDtEDir = null;\n tempDtEDir = new File(tempDir, \"String_Node_Str\" + System.currentTimeMillis() + cacheCounter1);\n cacheCounter1.add(1);\n int x = 0;\n while (tempDtEDir.exists()) {\n x++;\n ... |
"public void show(final int left, final int top) {\n for (final Action<T> action : actions) {\n display.setActionVisible(action, action.isApplicable(target));\n }\n display.show(left - WIDTH, top + Y_OFFSET);\n}\n"
|
"public void defaultValue() throws IllegalAccessException {\n activeOnly(\"String_Node_Str\", \"String_Node_Str\");\n SourceFile file = PHPAstScanner.scanSingleFile(TEST_FILE, check);\n checkMessagesVerifier.verify(file.getCheckMessages()).next().atLine(6).withMessage(\"String_Node_Str\").next().atLine(11).wit... |
"public boolean hasMonitors() {\n return this.aliasToActiveMonitorsMap != null || this.inactiveMonitorsList != null;\n}\n"
|
"private void updateTargetProductMetadata() {\n final MetadataElement abs = AbstractMetadata.getAbstractedMetadata(targetProduct);\n abs.getAttribute(AbstractMetadata.abs_calibration_flag).getData().setElemBoolean(true);\n final MetadataElement origProdRoot = AbstractMetadata.getOriginalProductMetadata(targetP... |
"public void processGlobalElements(Project project) {\n if (this.globalElements == null && this.localElements == null) {\n return;\n }\n List<ElementDeclaration> elements = new ArrayList<ElementDeclaration>();\n elements.addAll(this.localElements);\n elements.addAll(this.globalElements.values());\... |
"public String toString() {\n return new StringBuilder((responseString == null) ? \"String_Node_Str\" : responseString).append(',').append(responseUUID).append(',').append(responseBoolean).append(',').append(responseInteger).append(',').append(responseManaType).append(',').append(responseManaTypePlayerId).toString()... |
"public void prepare() {\n idRef = new Reference(new ReferenceIdent(SysNodesTableInfo.IDENT, SysNodesTableInfo.Columns.ID), RowGranularity.DOC, DataTypes.STRING);\n nameRef = new Reference(new ReferenceIdent(SysNodesTableInfo.IDENT, SysNodesTableInfo.Columns.ID), RowGranularity.DOC, DataTypes.STRING);\n hostna... |
"private static void initEnvModuleCrafting() {\n Object inkSac = Item.itemRegistry.getObjectById(351);\n String[] syringeMatcher = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n String[] pickMatcher = new String[] { \"String_Node_Str\" };\n ItemStack ironGolemSyringe = createMobSyringe(\"Strin... |
"public static void getTableXmlFileValue(Connection connection, String value, IElementParameter param, List<Map<String, Object>> tableInfo, IMetadataTable metaTable) {\n if (connection instanceof XmlFileConnection) {\n XmlFileConnection xmlConnection = (XmlFileConnection) connection;\n if (xmlConnectio... |
"private void assignParametersToQueryTree(QueryTreeNode queryTree) {\n QueryTreeIterator iter = queryTree.termIterator();\n while (iter.hasNext()) {\n QueryTerm term = iter.next();\n if (!term.isParametrized()) {\n continue;\n }\n String pName = term.getParamName();\n ... |
"public void addNetInternalInMegs(Long netInternalInMegs) {\n this.netInternalInMegs = plus(this.netInternalInMegs, netInternalInMegs);\n}\n"
|
"public void writeJump(MethodWriter writer, Label dest, IValue instance, IArguments arguments) throws BytecodeException {\n if ((this.modifiers & Modifiers.STATIC) != 0) {\n if (this.intrinsicOpcodes != null) {\n this.writeIntrinsic(writer, dest, instance, arguments);\n return;\n ... |
"private void realReport(final Measurement measurement) throws ReportingException {\n if (resultNames.isEmpty()) {\n presetResultNames(measurement);\n fileHeaders = getFileHeader(measurement);\n }\n if (attributesExpected) {\n if (MissingStrategy.SKIP.equals(missingStrategy)) {\n ... |
"public void setSelected(boolean selected) {\n checkBox.setValue(selected);\n}\n"
|
"public void resetRowHint() {\n if (!context.emptyPage) {\n hints.clear();\n hints.putAll(currentHints);\n currentHints.clear();\n }\n}\n"
|
"public static void addService(final ServiceTarget serviceTarget, final Bootstrap.Configuration configuration) {\n ServerService service = new ServerService(null, null);\n ServiceBuilder<?> serviceBuilder = serviceTarget.addService(Services.JBOSS_SERVER_CONTROLLER, service);\n serviceBuilder.install();\n}\n"
|
"protected JAXBContext getJAXBContext(Class<?> domainClass, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, ?> httpHeaders) throws JAXBException {\n JAXBContext jaxbContext = contextCache.get(domainClass);\n if (null != jaxbContext) {\n return jaxbContext;\n }\n ContextResolver<... |
"public WFSPTRCAPS call() throws XfsException {\n final String method = \"String_Node_Str\";\n final XfsInfoCommand<PtrInfoCommand> infoCommand = new XfsInfoCommand<>(ptrService, PtrInfoCommand.CAPABILITIES);\n final WFSResult wfsResult = infoCommand.call();\n try {\n final WFSPTRCAPS caps = new WFSP... |
"public Node generateNodeByJsonObject(JsonObject jsonObject, TabContent app) throws Exception {\n String type = jsonObject.getString(\"String_Node_Str\");\n Node node;\n JsonArray jsonArray = new JsonArray();\n switch(type == null ? \"String_Node_Str\" : type.toLowerCase()) {\n case \"String_Node_Str... |
"private void checkExpression(IAggrInfo aggrInfo, IBaseExpression argExpr) throws DataException {\n if (!isFunctionCount(aggrInfo) && isEmptyScriptExpression(argExpr)) {\n throw new DataException(ResourceConstants.EXPRESSION_CANNOT_BE_NULL_OR_BLANK);\n }\n}\n"
|
"public void onClick(View v) {\n switch(v.getId()) {\n case R.id.avatar_textview:\n case R.id.change_avatar_linearlayout:\n case R.id.avatar_imageview:\n changeAvatarOnClick();\n break;\n case R.id.changeFullNameRelativeLayout:\n changeFullNameOnClick();\n... |
"private void updateColorAlphas() {\n if (!Float.isNaN(mFillOpacity)) {\n mFillColor = applyAlpha(mFillColor, mFillOpacity);\n }\n if (!Float.isNaN(mStrokeOpacity)) {\n mStrokeColor &= 0x00FFFFFF;\n mStrokeColor |= ((int) (0xFF * mStrokeOpacity)) << 24;\n }\n}\n"
|
"protected Long decodeLong(IServiceProperties props, String name) {\n Object o = props.getPropertyString(name);\n if (o == null)\n return DEFAULT_LONG;\n if (o instanceof Long)\n return (Long) o;\n if (o instanceof Integer)\n return new Long(((Integer) o).longValue());\n if (o instan... |
"public double getElevation() {\n if (modifiedLevel != 0) {\n return modifiedLevel * STAGE_HEIGHT + elevation;\n } else {\n return level * STAGE_HEIGHT + elevation;\n }\n}\n"
|
"private void validateXmlValueFieldOrProperty(JavaClass cls, Property property, JavaClass ptype, String propName) {\n JavaClass parent = cls.getSuperclass();\n while (parent != null && !(parent.getQualifiedName().equals(\"String_Node_Str\"))) {\n TypeInfo parentTypeInfo = typeInfo.get(parent.getQualifiedNa... |
"public void TestBindingCreation() {\n String queryBindings = entityToQueryConverter.getPropertyBindings(resource, testEntityType, new HashMap<String, Object>(), MappingPolicyImpl.ALL_POLICY, false);\n String[] expected = expectedBindings.replaceAll(\"String_Node_Str\", \"String_Node_Str\").split(\"String_Node_St... |
"private Map<Class<? extends WorldFacet>, Border3D> determineBorders(ListMultimap<Class<? extends WorldFacet>, FacetProvider> providerChains) {\n Map<Class<? extends WorldFacet>, Border3D> borders = Maps.newHashMap();\n for (Class<? extends WorldFacet> facet : providerChains.keySet()) {\n ensureBorderCalcu... |
"public void run() {\n if (Constants.REMOVE_CONTACT_ASK) {\n String message = \"String_Node_Str\" + this.group.getGroupName() + \"String_Node_Str\";\n MessageDialog dialog = new MessageDialog(mainFrame, Messages.getI18NString(\"String_Node_Str\").getText(), message, Messages.getI18NString(\"String_Node... |
"private ReentrantLock lockId(int id) {\n int stripe = id % LOCK_STRIPE_COUNT;\n if (stripe < 0) {\n stripe *= -1;\n }\n ReentrantLock lock = loadLocks[stripe];\n lock.lock();\n return lock;\n}\n"
|
"public org.hl7.fhir.dstu2.model.DiagnosticOrder convertDiagnosticOrder(org.hl7.fhir.dstu3.model.DiagnosticRequest src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DiagnosticOrder tgt = new org.hl7.fhir.dstu2.model.DiagnosticOrder();\n copyDomainR... |
"public String applyColour(Color[] palette, Color oldBackground, Color oldForeground, boolean[] oldFormat, Color newBackground, Color newForeground, boolean[] newFormat) {\n StringBuilder rc = new StringBuilder();\n int colourindex1back = -1, colourindex2back = -1;\n int colourindex1fore = -1, colourindex2fore... |
"public void testAllProgramsLineage() throws Exception {\n String namespace = \"String_Node_Str\";\n Id.Application app = Id.Application.from(namespace, AllProgramsApp.NAME);\n Id.Flow flow = Id.Flow.from(app, AllProgramsApp.NoOpFlow.NAME);\n Id.Program mapreduce = Id.Program.from(app, ProgramType.MAPREDUCE... |
"public ArrayList<NodeGene> createSubstrateNodes(List<Substrate> subs) {\n ArrayList<NodeGene> newNodes = new ArrayList<NodeGene>();\n for (int i = 0; i < subs.size(); i++) {\n for (int j = 0; j < subs.get(i).size.t1; j++) {\n for (int k = 0; k < subs.get(i).size.t2; k++) {\n node... |
"public Set<MetadataRecord> getSnapshotBeforeTime(MetadataScope scope, final Set<Id.NamespacedId> entityIds, final long timeMillis) {\n Set<Metadata> metadataHistoryEntries = execute(new TransactionExecutor.Function<MetadataDataset, Set<Metadata>>() {\n\n public Set<MetadataHistoryEntry> apply(MetadataDataset... |
"private void setData(int count, float range) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n xVals.add((i) + \"String_Node_Str\");\n }\n ArrayList<Entry> yVals = new ArrayList<Entry>();\n for (int i = 0; i < count; i++) {\n float mult = (range +... |
"public LongWritable getState() {\n if (hllAgg == null) {\n return ZERO;\n } else {\n state.set(hllAgg.getState().getCountEstimate());\n }\n return state;\n}\n"
|
"private String getProtoInputListFileContents() {\n return Artifact.joinExecPaths(\"String_Node_Str\", getFilteredProtoSources());\n}\n"
|
"public boolean hasControl() {\n boolean control = false;\n if (window != null) {\n App2D app = window.getApp();\n if (app != null) {\n ControlArb arbiter = app.getControlArb();\n if (arbiter != null) {\n control = arbiter.hasControl();\n }\n }\... |
"public static String getMinecraftVersion() {\n if (!updated) {\n getManifestVersion();\n updated = true;\n }\n return minecraftVersion;\n}\n"
|
"private ReadOnlyMemory colB(int col) {\n return columns.getQuick(columnBase + col * 2 + 1);\n}\n"
|
"protected void addBranchEnum() {\n Role self = this.apigen.getSelf();\n EnumBuilder eb = this.ib.newMemberEnum(getBranchInterfaceEnumName(self, this.curr));\n eb.addModifiers(JavaBuilder.PUBLIC);\n eb.addInterfaces(ScribSocketGenerator.OPENUM_INTERFACE);\n this.curr.getTakeable().stream().forEach((a) ->... |
"public void onRemoteVideoTrackReceive(final QBRTCVideoTrack videoTrack, Integer userID) {\n if (getRemoteVideoView() == null) {\n videoTracksSetEnumMap.get(VideoTracks.REMOTE_VIDEO_TRACK).add(initRemoteVideoTrackTask(videoTrack));\n } else {\n initRemoteVideoTrack(videoTrack);\n }\n}\n"
|
"private void handleManagementCenterConfig(final Node node) {\n NamedNodeMap attrs = node.getAttributes();\n final Node enabledNode = attrs.getNamedItem(\"String_Node_Str\");\n boolean enabled = enabledNode != null && checkTrue(getTextContent(enabledNode));\n final Node intervalNode = attrs.getNamedItem(\"S... |
"private void compareXml(String t, String n, String fn1, String fn2) throws Exception {\n char sc = File.separatorChar;\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n dbf.setCoalescing(true);\n dbf.setIgnoringElementContentWhitespace(true);\n dbf.... |
"private void processAIP(IndexService index, ModelService model, StorageService storage, Report report, SimpleJobPluginInfo jobPluginInfo, Job job, AIP aip) {\n boolean aipFailed = false;\n List<String> passedFiles = new ArrayList<String>();\n Map<String, Pair<String, String>> failedFiles = new HashMap<>();\n ... |
"public boolean isEmpty() {\n return this.value == null;\n}\n"
|
"protected void getComponentLegendRightArea(Composite cmpLegRight) {\n Group grpOutline = new Group(cmpLegRight, SWT.NONE);\n {\n GridData gdGRPOutline = new GridData(GridData.FILL_HORIZONTAL);\n grpOutline.setLayoutData(gdGRPOutline);\n grpOutline.setLayout(new FillLayout());\n grpOut... |
"public MapFile.Reader getReader(final int partition) throws IOException {\n try {\n if (cachingEnabled) {\n log.info(\"String_Node_Str\" + partition + \"String_Node_Str\");\n return readerCache.get(partition);\n } else {\n log.info(\"String_Node_Str\" + partition + \"S... |
"protected void initPropDescriptor() {\n clearPropertyDescriptors();\n addPropertyDescriptor(new TextPropertyDescriptor(new ElementNameController(), Messages.IterateGUIPropertySourceName));\n super.initPropDescriptor();\n for (IParamDescriptionPO desc : getParamNode().getParameterList()) {\n Paramete... |
"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... |
"Optional<AnnotationMirror> findAnnotation(Element element, String stereotype) {\n Set<? extends AnnotationMirror> annotationMirrors = getAllAnnotationMirrors(element);\n for (AnnotationMirror ann : annotationMirrors) {\n DeclaredType annotationType = ann.getAnnotationType();\n if (stereotype.equals... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n findViewById(R.id.btn_start).setOnClickListener(this);\n findViewById(R.id.btn_pause).setOnClickListener(this);\n progressBar = (ProgressBar) findViewById(R.id.pb_downlo... |
"protected String safeBaseUrl(String baseUrl) {\n if (baseUrl.endsWith(\"String_Node_Str\")) {\n return \"String_Node_Str\" + baseUrl.subSequence(0, baseUrl.lastIndexOf(\"String_Node_Str\"));\n }\n return baseUrl;\n}\n"
|
"public static String getPrefix(IDocument document, int offset, char startCharacter, String blockingCharacters) {\n String result = null;\n if (offset == 0) {\n return null;\n }\n try {\n int currentOffset = offset - 1;\n while (currentOffset >= 0) {\n if (blockingCharacters.... |
"protected TreeOperation handleTreeMergeParagraph(TreeMergeParagraph op1) {\n if (op1.getPosition() == path.get(0)) {\n return new TreeMergeParagraph(op1.getSiteId(), op1.getPosition(), op1.leftSiblingChildrenNr, path.get(1) + (splitLeft ? 1 : 0));\n }\n if (op1.getPosition() == path.get(0) + 1) {\n ... |
"public List<Vendor> findAllShippingVendor() {\n log.debug(\"String_Node_Str\");\n try {\n log.debug(\"String_Node_Str\");\n Query query = getSessionFactory().getCurrentSession().createQuery(\"String_Node_Str\");\n query.setParameterList(\"String_Node_Str\", vendorTypeList);\n List<Ven... |
"public void removeWolf(final int entityid) {\n WolfTable wolfTable = plugin.getDatabase().find(WolfTable.class).where().eq(\"String_Node_Str\", entityid).findUnique();\n if (wolfTable != null) {\n inventory.remove(entityId);\n plugin.getDatabase().delete(wolfTable);\n }\n}\n"
|
"void doAsyncConnect(final String url, final Request request, final GrizzlyResponseFuture requestFuture, final CompletionHandler<Connection> connectHandler) throws IOException, ExecutionException, InterruptedException {\n final URI uri = AsyncHttpProviderUtils.createUri(url);\n ProxyServer proxy = getProxyServer(... |
"private Data getNextData() throws DataProcessingException {\n Data d = getPredecessor().getData();\n while (d != null && !(d instanceof DoubleData || d instanceof DataEndSignal || d instanceof DataStartSignal)) {\n outputQueue.add(d);\n d = getPredecessor().getData();\n }\n return d;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.