content stringlengths 40 137k |
|---|
"protected IStatus run(IProgressMonitor monitor) {\n AtsClientService.getNotifyEndpoint().sendNotifications(notifications);\n return Status.OK_STATUS;\n}\n"
|
"public AttributeDataset remove(String... cols) {\n HashSet<String> remains = new HashSet<>();\n for (Attribute attr : attributes) {\n remains.add(attr.getName());\n }\n for (String col : cols) {\n remains.remove(col);\n }\n Attribute[] attrs = new Attribute[remains.size()];\n int[] i... |
"public static short[][] max(short[][] image, int windowsize) {\n int w = image.length;\n int h = image[0].length;\n short[][] imgMax = new short[w][h];\n short max;\n short val;\n for (int i = 0; i < w; i++) for (int j = 0; j < h; j++) {\n max = Short.MIN_VALUE;\n Neigborhood neigh = ne... |
"public Set<Post> find(Map<Enum, Object> fieldsMap) throws IOException {\n Set<Post> foundSet = new HashSet<Post>();\n EnumSet<Post._Fields> dateFields = EnumSet.of(Post._Fields.posted_at_millis);\n if (fieldsMap == null || fieldsMap.isEmpty()) {\n return foundSet;\n }\n StringBuilder statementStr... |
"public void testScheduleAndLaunch() throws IOException {\n Map<String, File> iniParams = exportWorkflowInis();\n String localhost = ITUtility.getLocalhost();\n Log.info(\"String_Node_Str\" + localhost);\n Map<String, Integer> wr_accessions = new HashMap<String, Integer>();\n for (Entry<String, File> e :... |
"public void handle(HttpExchange httpExchange) throws IOException {\n this.httpExchange = httpExchange;\n this.responseContentType = MediaType.APPLICATION_JSON;\n String rawUrl = httpExchange.getRequestURI().getQuery();\n HashMap<String, String> paramMap;\n int statusCode;\n try {\n paramMap = ... |
"private static Map<String, String> parseResult(byte[] data, String nonce, int keyHandle) throws YubiHSMCommandFailedException, YubiHSMErrorException {\n Map<String, String> result = new HashMap<String, String>();\n if (data[10] == Defines.YSM_STATUS_OK) {\n byte[] aead = Utils.rangeOfByteArray(data, Defin... |
"public void resourceWithSlashRequest() throws Exception {\n this.environmentRepository.setSearchLocations(\"String_Node_Str\");\n MockHttpServletRequest request = new MockHttpServletRequest();\n request.setRequestURI(\"String_Node_Str\" + \"String_Node_Str\");\n String resource = this.controller.resolve(\"... |
"static int copy(final CharSequence source, final int offset, final CharBuffer destination) {\n final int length = Math.min(source.length() - offset, destination.remaining());\n final char[] array = destination.array();\n final int start = destination.position();\n source.getChars(offset, offset + length, a... |
"public ExtendedTestCaseResult read(final Resource resource) {\n checkNotNull(resource);\n RLOGTestCaseResult test = RLOGTestCaseResultReader.create().read(resource);\n SimpleAnnotationSet annotationSet = SimpleAnnotationSet.create();\n Set<Property> excludesProperties = ImmutableSet.of(RLOG.level, RLOG.res... |
"private Object getThisVm() {\n if (thisVm == null) {\n synchronized (this) {\n if (thisVm == null) {\n try {\n MonitoredHost localHost = MonitoredHost.getMonitoredHost(\"String_Node_Str\");\n VmIdentifier vmIdent = new VmIdentifier(\"String_Node... |
"private void startAnimationToState(StackScrollState finalState) {\n if (mChildHierarchyDirty) {\n generateChildHierarchyEvents();\n mChildHierarchyDirty = false;\n }\n if (!mAnimationEvents.isEmpty()) {\n mStateAnimator.startAnimationForEvents(mAnimationEvents, mCurrentStackScrollState);\... |
"public void accept(Visitor visitor) {\n if (obj == null) {\n return;\n }\n TypeInfo<?> objTypeInfo = new TypeInfo<Object>(objType);\n if (exclusionStrategy.shouldSkipClass(objTypeInfo.getTopLevelClass())) {\n return;\n }\n if (ancestors.contains(obj)) {\n throw new IllegalStateEx... |
"public void testGetEdges() {\n this.sqlgGraph.tx().normalBatchModeOn();\n Vertex root = this.sqlgGraph.addVertex(T.label, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Vertex god = this.sqlgGraph.addVertex(T.label, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Edge s... |
"public synchronized void onBackPressed() {\n mTabLayout.clearDisappearingChildren();\n showActionBar();\n if (mCurrentView.canGoBack()) {\n if (!mCurrentView.isShown()) {\n onHideCustomView();\n } else {\n mCurrentView.goBack();\n }\n } else {\n if (!mCurre... |
"private void _handleDeclaration(ASTNode node, List bodyDeclarations, TypeAnalyzerState state) {\n Class currentClass = state.getCurrentClass();\n Class parent = currentClass.getSuperclass();\n List newMethods = new LinkedList();\n List newFields = new LinkedList();\n AST ast = node.getAST();\n Compil... |
"public void enqueue(MovingMessage msg) {\n Iterator iterator = msg.getRecipientIterator();\n StringBuilder tos = new StringBuilder();\n while (iterator.hasNext()) {\n MailAddress username = (MailAddress) iterator.next();\n if (tos.length() > 0) {\n tos += \"String_Node_Str\";\n ... |
"public boolean execute(LocalDataArea lda) {\n if (lda.stack.isEmpty()) {\n return false;\n }\n Object value = lda.localVariables.get(EcmaScript.toString(lda.pop()));\n if (value == null) {\n value = Undefined.INSTANCE;\n }\n lda.stack.push(value);\n return true;\n}\n"
|
"public boolean applies(UUID sourceId, Ability source, Game game) {\n Card card = game.getCard(sourceId);\n if (card != null) {\n if (!card.getCardType().contains(CardType.LAND) && card.getOwnerId().equals(source.getControllerId())) {\n return card.getSpellAbility().isInUseableZone(game, card, f... |
"public void visitDirectory(File directory, String relativePath) throws IOException {\n if (relativePath.isEmpty()) {\n return;\n }\n String entryName = relativePath.replace('\\\\', '/') + \"String_Node_Str\";\n if (alreadyAddedEntries.contains(entryName)) {\n return;\n }\n JarEntry entr... |
"public static MsgIntegrityViolationWrapper readMsgIntegrityViolationFromTrace(String jobId, String taskId, long superstepNo) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException {\n FileSystem fs = ServerUtils.getFileSystem();\n String traceFilePath = ServerUtils.getIntegrit... |
"private void processFrameInternal(short[] frame, int offset, int length, float windowDuration) {\n float currentRms = rms(frame, offset, length);\n float currentDbfs = rms2dbfs(currentRms, 1e-10F, 1F);\n currentDbfs = energyObserver.smooth(currentDbfs);\n boolean currentState = trigger.state(currentDbfs);\... |
"public List getCorruptRanges(InputStream is) throws IOException {\n LOG.trace(\"String_Node_Str\");\n List ret = new ArrayList();\n int n = log2Ceil((int) FILE_SIZE) - DEPTH;\n int nodeSize = 1 << n;\n List fileHashes = createTTNodes(nodeSize, FILE_SIZE, is);\n int minSize = Math.min(fileHashes.size(... |
"private void tidyRevisions(String path, Populate populate) throws Exception {\n TimeTask timer = new TimeTask();\n log(\"String_Node_Str\");\n boolean delete = ((AutoCleanImpl) populate).isDelete();\n boolean replace = ((AutoCleanImpl) populate).isReplace();\n String[] base = { \"String_Node_Str\", \"St... |
"public AnnotationIndexTypes getFieldObject() {\n return realmGetter$fieldObject();\n}\n"
|
"public Article get(int wpId) {\n try {\n Connection conn = connect();\n DSLContext context = DSL.using(conn, SQLDialect.H2);\n Record record = context.select().from(Tables.ARTICLE).where(Tables.ARTICLE.ID.equal(wpId)).fetchOne();\n Article a = new Article(record.getValue(Tables.ARTICLE.I... |
"protected String getFullyQualifiedTableName(Column column) {\n final ColumnSet columnSetOwner = ColumnHelper.getColumnSetOwner(column);\n return dbmsLanguage.toQualifiedName(null, ColumnSetHelper.getParentCatalogOrSchema(columnSetOwner).getName(), columnSetOwner.getName());\n}\n"
|
"public void encode(Object requestBody, Type bodyType, RequestTemplate request) throws EncodeException {\n if (requestBody != null) {\n Class<?> requestType = requestBody.getClass();\n Collection<String> contentTypes = request.headers().get(\"String_Node_Str\");\n MediaType requestContentType = ... |
"public String toString() {\n return \"String_Node_Str\" + platform + \"String_Node_Str\" + name + \"String_Node_Str\" + slot + \"String_Node_Str\" + dependencies + \"String_Node_Str\" + archives + \"String_Node_Str\";\n}\n"
|
"public static <P, S, E extends BooleanExpression> boolean isEquivalent(SAFA<P, S> laut, SAFA<P, S> raut, BooleanAlgebra<P, S> ba, BooleanExpressionFactory<E> boolexpr) throws TimeoutException {\n SAFARelation similar = new SATRelation();\n LinkedList<Pair<Pair<E, E>, List<S>>> worklist = new LinkedList<>();\n ... |
"public static <V> V adapt(Object object, Class<V> target) {\n if (object == null)\n return null;\n if (target.isInstance(object))\n return (V) object;\n if (object instanceof IAdaptable)\n return Utils.getAdapter(((IAdaptable) object), target);\n return null;\n}\n"
|
"public String getInternalName() {\n if (this.upperBound != null) {\n return this.upperBound.getInternalName();\n }\n if (this.upperBounds != null && !this.upperBounds.isEmpty()) {\n return this.upperBounds.get(0).getInternalName();\n }\n return \"String_Node_Str\";\n}\n"
|
"public static String extractImdb(File file) {\n String ret = extract(file, IMDB_REG);\n if (!StringUtils.isEmpty(ret) && ret.startsWith(\"String_Node_Str\") && ret.length() > 2) {\n ret = ret.substring(2);\n }\n return ret;\n}\n"
|
"public Dataset<Row> getDataset() {\n if (ds == null && (vc.getDbms() instanceof DbmsSpark2)) {\n return ((DbmsSpark2) vc.getDbms()).emptyDataset();\n } else {\n return ds;\n }\n}\n"
|
"public void onClick(View view) {\n EditText newSubjectField = (EditText) findViewById(R.id.subject_create_name);\n String currentSubjectName = newSubjectField.getText().toString();\n createSubject(currentSubjectName);\n Spinner spinner = (Spinner) findViewById(R.id.subject_list_dropdown);\n populateSpin... |
"private boolean shouldShowRenameFolderMenu(RepositoryNode node) {\n boolean show = false;\n if (node instanceof AnalysisSubFolderRepNode) {\n AnalysisSubFolderRepNode anaSubFolderNode = (AnalysisSubFolderRepNode) node;\n show = !anaSubFolderNode.isVirtualFolder();\n } else if (node instanceof Re... |
"public char[] getCompletionProposalAutoActivationCharacters() {\n return new char[] { START };\n}\n"
|
"public void submitPledgeViaHTTP() throws Exception {\n backend.shutdown();\n initCoreState();\n peerGroup.setMinBroadcastConnections(2);\n Triplet<Transaction, Transaction, LHProtos.Pledge> data = TestUtils.makePledge(project, to, project.getGoalAmount());\n Transaction stubTx = data.getValue0();\n T... |
"private boolean addAppInfo(String type, String value) {\n if (declaration != null) {\n if (declaration.getAnnotation() == null) {\n declaration.setAnnotation(annotation);\n }\n } else if (complexTypeDef != null && type.startsWith(\"String_Node_Str\")) {\n if (complexTypeDef.getAnn... |
"private void archive(final WalletAccount account) {\n CurrencyBasedBalance balance = Preconditions.checkNotNull(account.getCurrencyBasedBalance());\n final WalletAccount linkedAccount = getLinkedAccount(account);\n new AlertDialog.Builder(getActivity()).setTitle(R.string.archiving_account_title).setMessage(Ht... |
"public void onComponentTag(final Component component, final ComponentTag tag) {\n tag.put(\"String_Node_Str\", kind);\n}\n"
|
"protected void handleTCPConnectBackRequest(TCPConnectBackVendorMessage tcp, Connection source) {\n final int portToContact = tcp.getConnectBackPort();\n InetAddress sourceAddr = source.getInetAddress();\n Message msg = new TCPConnectBackRedirect(sourceAddr, portToContact);\n int sentTo = 0;\n List<Manag... |
"public void validateInvoiceModel() {\n Invoice invoice = transformer.toModel(testFile);\n ConformanceLevel conformanceLevel = invoice.getContext().getGuideline().getConformanceLevel();\n Class<?>[] validationGroups = resolveIntoValidationGroups(conformanceLevel);\n Set<ConstraintViolation<Invoice>> validat... |
"public boolean execute() {\n if (session.getRollbackResults() != null && session.getRollbackResults().size() > 0) {\n Util.sendMessage(sender, \"String_Node_Str\");\n return true;\n }\n SearchParser parser = null;\n try {\n parser = new SearchParser(player, args);\n parser.loc =... |
"public List<String> getVideoFilterOptions(DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException {\n List<String> videoFilterOptions = new ArrayList<>();\n ArrayList<String> filterChain = new ArrayList<>();\n ArrayList<String> scalePadFilterChain = new ArrayList<>();\n final Render... |
"private void applyState(TurboIssue issue) throws QualifierApplicationException {\n if (!content.isPresent()) {\n throw new QualifierApplicationException(\"String_Node_Str\");\n }\n if (content.get().toLowerCase().contains(\"String_Node_Str\")) {\n issue.setOpen(true);\n } else if (content.get... |
"public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {\n if (newState == BluetoothProfile.STATE_CONNECTED && status == gatt.GATT_SUCCESS) {\n Log.i(TAG, \"String_Node_Str\");\n mBluetoothGatt = gatt;\n html = new StringBuilder(\"String_Node_Str\");\n if (VERS... |
"public static Map<String, Map<Class<?>, Double>> parseDisambiguationResults(String fileName, Class<?> clazz, String packageNameDisambiguator) throws IOException, URISyntaxException, ClassNotFoundException {\n Map<String, Map<Class<?>, Double>> results = new HashMap<>();\n List<String> lines = FileUtils.readRelev... |
"protected static void appendHtmlTable(final Writer writer, final Map<String, String> entries) throws IOException {\n writer.append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str\");\n for (final Entry<String, String> entry : entries.entrySet()) {\n writer.append(\"String_Node_St... |
"private void removeSelectedElements(final Tree newTree) {\n TreeItem[] selection = newTree.getSelection();\n for (TreeItem item : selection) {\n ModelElementIndicator meIndicator = (ModelElementIndicator) item.getData(MODELELEMENT_INDICATOR_KEY);\n IndicatorUnit indicatorUnit = (IndicatorUnit) item... |
"private void updateAllIntervals(final long deltaInNanos) {\n for (Entry<TimeUnit, Histogram> entry : this.intervals.entrySet()) {\n long delta = entry.getKey().convert(deltaInNanos, TimeUnit.NANOSECONDS);\n LOGGER.info(\"String_Node_Str\", entry.getKey(), delta);\n LOGGER.info(\"String_Node_Str... |
"public String getColumnText(Object element, int columnIndex) {\n if (element instanceof RuleCollection) {\n if (columnIndex == 1) {\n RuleGroup rg = (RuleGroup) element;\n String label = rg.label();\n return standardized(label, rg.ruleCount());\n }\n return colu... |
"public void close() throws BirtException {\n if (resultIterator != null)\n resultIterator.close();\n}\n"
|
"public void onGlobalLayout() {\n createShader();\n setMaskScale(1.0f);\n if (mCallback != null) {\n mCallback.onSetupAnimation(SpotlightView.this);\n }\n Utils.removeOnGlobalLayoutListenerCompat(SpotlightView.this, this);\n}\n"
|
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == GameEvent.EventType.CAST_SPELL) {\n Permanent enchantment = game.getPermanent(source.getSourceId());\n if (enchantment != null && enchantment.getAttachedTo() != null) {\n Player player = game.getPl... |
"private void populateRequest(List<Artifact> artifacts, DataRightInput request) {\n if (request.isEmpty()) {\n List<Artifact> allArtifacts = new ArrayList<>();\n if (recurseChildren || (renderer.getBooleanOption(RECURSE_ON_LOAD) && !renderer.getBooleanOption(\"String_Node_Str\"))) {\n for (A... |
"public void createPartControl(Composite parent) {\n Composite body = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout(1, false);\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n layout.horizontalSpacing = 0;\n layout.verticalSpacing = 0;\n layout.numColumns = 1;\n bod... |
"public Collection<InjectionPlan<?>> getChildren() {\n return (Collection) Collections.unmodifiableCollection(Arrays.asList(this.alternatives));\n}\n"
|
"private void retrieveTypeFromParameter(AstNode methodDeclaration) {\n AstNode parameterList = methodDeclaration.getFirstChild(PHPGrammar.PARAMETER_LIST);\n if (parameterList != null) {\n for (AstNode parameter : parameterList.getChildren(PHPGrammar.PARAMETER)) {\n AstNode classType = parameter.... |
"private void addPendingStep(Description description, String stringStep) {\n testCases++;\n Description testDescription = Description.createSuiteDescription(getJunitSafeString(\"String_Node_Str\" + stringStep));\n description.addChild(testDescription);\n}\n"
|
"public View create(Element elem) {\n Object o = elem.getAttributes().getAttribute(StyleConstants.NameAttribute);\n if (o instanceof HTML.Tag) {\n HTML.Tag kind = (HTML.Tag) o;\n if (Objects.equals(kind, HTML.Tag.IMG)) {\n return new ImageView(elem) {\n public URL getImageU... |
"public void widgetSelected(SelectionEvent e) {\n remainDBTypeList.clear();\n remainDBTypeList.addAll(allDBTypeList);\n for (Expression expression : tempExpression) {\n String language = expression.getLanguage();\n String languageName = PatternLanguageType.findNameByLanguage(language);\n r... |
"public void setInStack(ItemStack stack) {\n if (stack != null) {\n if (inStack == null)\n applyDiff(stack.stackSize);\n else\n applyDiff(stack.stackSize - inCount);\n }\n inStack = null;\n syncInStack();\n syncOutStack();\n}\n"
|
"private DeclaredTypeOperator getPointerTypeOperator(TypeReference type) {\n if (type.isPrimitiveType()) {\n return new DeclaredTypeOperator(language.getPrimitive(type));\n } else {\n IClass klass = cha.lookupClass(type);\n if (klass == null) {\n return new DeclaredTypeOperator(BOT... |
"public OrderStatusLogsBean transformToOrderStatusLogsFormBean(OrderStatusLogs entity) {\n OrderStatusLogsBean formBean = new OrderStatusLogsBean();\n formBean.setCreatedTimestamp(entity.getCreatedTimestamp());\n formBean.setStatus(entity.getStatus());\n formBean.setCreatedBy(entity.getCreatedBy());\n fo... |
"protected boolean tmpDirIsEmpty() {\n return tmpDir().listFiles().length == 0;\n}\n"
|
"public List<Node> getChildren() {\n Set<Node> users = new HashSet<Node>();\n if (owner == null)\n return Collections.emptyList();\n for (Node l : owner.getWhereUsedHandler().getWhereUsed(true)) if (l instanceof LibraryNode && !l.isDeleted())\n users.add(new LibraryUserNode((LibraryNode) l, owner... |
"private void runGroovyScript(Object groovyScriptEngine, String scriptName, Object groovyBinding) throws ShellException {\n try {\n Method runMethod = groovyScriptEngine.getClass().getMethod(\"String_Node_Str\", String.class, groovyBinding.getClass());\n runMethod.invoke(groovyScriptEngine, scriptName ... |
"public void characters(char[] ch, int start, int lenght) throws SAXException {\n String trimmed = new String(ch, start, lenght).trim();\n if (!trimmed.isEmpty() && !tagStack.empty()) {\n tagStack.peek().appendContent(trimmed);\n }\n}\n"
|
"public LongMonitoringCounter increment() {\n return this;\n}\n"
|
"private void checkMethod(IMethod m) {\n Name name = m.getName();\n if (name == Name.equals) {\n if (m.parameterCount() == 1 && m.getParameter(0).getType().equals(Types.OBJECT)) {\n this.methods |= EQUALS;\n }\n return;\n }\n if (name == Name.hashCode) {\n if (m.parame... |
"public boolean apply(Diff input) {\n final Object value;\n if (input instanceof ReferenceChange) {\n value = ((ReferenceChange) input).getValue();\n } else if (input instanceof AttributeChange) {\n value = ((AttributeChange) input).getValue();\n } else {\n return false;\n }\n if ... |
"public void fire(final DescribeSensorsResponse msg) {\n try {\n final Iterable<String> uuidList = Iterables.transform(VmInstances.list(VmState.RUNNING), VmInstances.toInstanceUuid());\n for (final SensorsResourceType sensorData : msg.getSensorsResources()) {\n if (!RESOURCE_TYPE_INSTANCE.eq... |
"public void onPluginDirectorySearched(PluginStore.OnPluginDirectorySearched event) {\n if (mSearchQuery == null || !mSearchQuery.equals(event.searchTerm)) {\n return;\n }\n if (event.isError()) {\n AppLog.e(AppLog.T.PLUGINS, \"String_Node_Str\" + event.error.type + \"String_Node_Str\" + event.er... |
"public NumberFormatter getNumberFormatter(String pattern, String locale) {\n String key = pattern + \"String_Node_Str\" + locale;\n NumberFormatter fmt = numberFormatters.get(key);\n if (fmt == null) {\n fmt = new NumberFormatter(pattern, locale == null ? ulocale : new ULocale(locale));\n number... |
"private void requestPageContentIfNeeded() {\n if (getWidth() > 0 && getHeight() > 0 && !mContentRequested && mProvider != null && !mNeedsLayout) {\n mContentRequested = true;\n mProvider.getPageContent(new RenderSpec(getWidth(), getHeight(), mAttributes), this);\n }\n}\n"
|
"public void testIgnoreAndExclude() {\n select().from(User.class).exclude(\"String_Node_Str\").one();\n select().from(User.class).exclude(User::getAge).one();\n}\n"
|
"private void renderOverviewRelations(GL gl) {\n if (setsToCompare == null || setsToCompare.size() == 0)\n return;\n float alpha = 0.6f;\n ContentSelectionManager contentSelectionManager = useCase.getContentSelectionManager();\n ContentVirtualArray contentVALeft = setsToCompare.get(0).getContentVA(Co... |
"public int getBlocksRemaining() {\n if (currentBlock != null && rowIndex < currentBlock.getEndIndex()) {\n return masterSequence.getBlockCount(atomicCount) - blockCount + 1;\n } else {\n return masterSequence.getBlockCount(atomicCount) - blockCount;\n }\n}\n"
|
"protected BigDecimal convertObjectToBigDecimal(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String && ((String) sourceObject).length() > 0 && ((String) sourceObject).charAt(0) == PLUS) {\n return super.convertObjectToBigDecimal(((String) sourceObject).substring(1));\n }\... |
"public static void addBiomsOPlentyBiomes() {\n for (int i = 0; i < BIOMES_OPLENTY_CATACOMBS_BIOMES.length; i++) {\n if (BIOMES_OPLENTY_CATACOMBS_BIOMES[i] != null) {\n CATACOMBS_BIOMES.add(BIOMES_OPLENTY_CATACOMBS_BIOMES[i].biomeID);\n } else {\n unNamedBiomeError(BIOMES_OPLENTY_... |
"public static boolean isReferenceElement(DesignElementHandle handle) {\n return isLinkedElement(handle);\n}\n"
|
"private void decode() throws AndrolibException {\n try {\n baksmali.disassembleDexFile(mApkFile.getAbsolutePath(), new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null, null, null, false, true, true, true, false, false, mDebug ? main.DIFFPRE : 0, false, false, null);\n } catch (IOException ex) {\... |
"public int getAlignedResIndex(Group g, Chain c) {\n boolean contained = false;\n for (Chain member : getChains()) {\n if (c.getChainID().equals(member.getChainID())) {\n contained = true;\n break;\n }\n }\n if (!contained)\n throw new IllegalArgumentException(\"St... |
"private GroupLevelNetworkPartitionContext getGroupLevelNetworkPartitionContext(String groupId, String appId, Instance parentInstanceContext) {\n GroupLevelNetworkPartitionContext groupLevelNetworkPartitionContext;\n ChildPolicy policy = PolicyManager.getInstance().getDeploymentPolicyByApplication(appId).getChild... |
"private List<PointTextContainer> processFourPointGreedy(List<PointTextContainer> labels, List<SymbolContainer> symbols, List<PointTextContainer> areaLabels, int tileSize) {\n List<PointTextContainer> resolutionSet = new ArrayList<PointTextContainer>();\n ReferencePosition[] refPos = new ReferencePosition[(labels... |
"public float getPercent(Interpolation i) {\n float percent;\n if (complete) {\n percent = 1;\n } else {\n percent = time / duration;\n if (i != null)\n percent = i.getInterpolation().apply(percent);\n }\n return (reverse ? 1 - percent : percent);\n}\n"
|
"public void getRegionsToBeCompacted(HttpRequest request, HttpResponder responder) {\n if (!initializePruningDebug(responder)) {\n return;\n }\n try {\n Method method = debugClazz.getMethod(\"String_Node_Str\", Integer.class);\n method.setAccessible(true);\n Object response = method... |
"public String submitRequest(RequestInfo requestInfo) throws IOException {\n log.debug(\"String_Node_Str\");\n String updateUrl = requestInfo.getUpdateUrl();\n StringBuilder builder = new StringBuilder(updateUrl);\n Map<String, Object> requestParams = requestInfo.getRequestParams();\n if (requestParams !... |
"public List<String> getWailaBody(ItemStack itemStack, List<String> list, IWailaDataAccessor dataAccessor, IWailaConfigHandler configHandler) {\n Block block = dataAccessor.getBlock();\n TileEntity te = dataAccessor.getTileEntity();\n if (block != null && block instanceof BlockCrop && te != null && te instance... |
"private String getJavaTypeForProperty(Property property) {\n if (property.isMany() || ((SDOType) property.getType()).isXsdList()) {\n return \"String_Node_Str\";\n } else {\n SDOType propertyType = property.getType();\n Class instanceClass = propertyType.getInstanceClass();\n if (Clas... |
"public int[] getImageBuf(int required, int requested, int nPixels) {\n int requiredBytes = required;\n int requestedBytes = requested;\n int size = requestedBytes;\n if (size > imageBufIdealSize)\n size = imageBufIdealSize;\n if (size < requiredBytes)\n size = requiredBytes;\n if (image... |
"public ExecutionResult createFileInVR(String routerIp, String filePath, String fileName, String content) {\n VmwareManager mgr = getServiceContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME);\n File keyFile = mgr.getSystemVMKeyFile();\n try {\n SshHelper.scpTo(routerIp, 3922, \"String_Node_Str\"... |
"private String getSelectClause() {\n StringBuilder clause = new StringBuilder(\"String_Node_Str\");\n if (selectedIModelFields.isEmpty()) {\n clause.append(\"String_Node_Str\");\n } else {\n Iterator<ModelField> it = selectedIModelFields.iterator();\n while (it.hasNext()) {\n c... |
"public static void loadWorld(World world) {\n if (world == null) {\n return;\n }\n Set<String> worlds;\n if (config.contains(\"String_Node_Str\")) {\n worlds = config.getConfigurationSection(\"String_Node_Str\").getKeys(false);\n } else {\n worlds = new HashSet<String>();\n }\n ... |
"public boolean isEnabled() {\n return !eventManager.isEventClosed(item.getModelObject());\n}\n"
|
"public void outboxURLShouldBeReturnedWhenTheDecisionTreesAreComplete() {\n ivrContext.callState(CallState.ALL_TREES_COMPLETED);\n String patientId = \"String_Node_Str\";\n tamaIVRContextForTest.patientId(patientId);\n when(voiceOutboxService.getNumberPendingMessages(patientId)).thenReturn(3);\n assertEq... |
"private void register(SimonSuperMXBean simonMxBean) {\n String name = constructObjectName(simonMxBean);\n try {\n ObjectName objectName = new ObjectName(name);\n if (mBeanServer.isRegistered(objectName)) {\n mBeanServer.unregisterMBean(objectName);\n } else {\n register... |
"protected List<TdColumn> extractColumns(DatabaseMetaData dbMetaData, IMetadataConnection metadataConnection, String databaseType, String catalogName, String schemaName, String tableName) {\n MappingTypeRetriever mappingTypeRetriever = null;\n columnIndex = 0;\n List<TdColumn> metadataColumns = new ArrayList<T... |
"public void datasetLineage(HttpRequest request, HttpResponder responder, String namespaceId, String datasetId, long start, long end, int levels) throws Exception {\n checkArguments(start, end, levels);\n Id.DatasetInstance datasetInstance = Id.DatasetInstance.from(namespaceId, datasetId);\n Lineage lineage = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.