idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,340,099 | @Description("Retrieve statistical data about the current database. Valid sections are '" + Sections.GRAPH_COUNTS + "', '" + Sections.TOKENS + "', '" + Sections.QUERIES + "', '" + Sections.META + "'")<NEW_LINE>@Procedure(name = "db.stats.retrieve", mode = Mode.READ)<NEW_LINE>public Stream<RetrieveResult> retrieve(@Name... | .of(config).maxInvocations); |
1,648,467 | public ExportTask unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ExportTask exportTask = new ExportTask();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (t... | int xmlEvent = context.nextEvent(); |
454,428 | private synchronized V _put(byte[] key, V value, MODE m) {<NEW_LINE>ByteArrayKeyLinkedEntry[] tab = table;<NEW_LINE>int index = hash(key) % tab.length;<NEW_LINE>for (ByteArrayKeyLinkedEntry<V> e = tab[index]; e != null; e = e.next) {<NEW_LINE>if (CompareUtil.equals(e.key, key)) {<NEW_LINE>V old = e.value;<NEW_LINE>e.va... | header.link_prev, header, e); |
460,239 | private void writeMap(Map map, XMLWriter w, String wp) throws IOException {<NEW_LINE>// w.writeDocType("map", null, "http://mapeditor.org/dtd/1.0/map.dtd");<NEW_LINE>w.startElement("map");<NEW_LINE>w.writeAttribute("version", "1.2");<NEW_LINE>if (!map.getTiledversion().isEmpty()) {<NEW_LINE>w.writeAttribute(<MASK><NEW_... | "tiledversion", map.getTiledversion()); |
156,393 | private void showNotification() {<NEW_LINE>Intent toLaunch = new Intent(getApplicationContext(), MonitorActivity.class);<NEW_LINE>toLaunch.setAction(Intent.ACTION_MAIN);<NEW_LINE>toLaunch.addCategory(Intent.CATEGORY_LAUNCHER);<NEW_LINE>toLaunch.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_LINE>PendingIntent resultPendi... | 0, toLaunch, PendingIntent.FLAG_UPDATE_CURRENT); |
1,354,872 | final UpdateFlowMediaStreamResult executeUpdateFlowMediaStream(UpdateFlowMediaStreamRequest updateFlowMediaStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFlowMediaStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,105,585 | private AttrInfo findAttribute(int attribute) {<NEW_LINE>for (DebugInfoEntry die : fragments) {<NEW_LINE>DWARFAttributeValue[] dieAttrValues = die.getAttributes();<NEW_LINE>DWARFAttributeSpecification[] attrDefs = die.getAbbreviation().getAttributes();<NEW_LINE>for (int i = 0; i < attrDefs.length; i++) {<NEW_LINE>DWARF... | DWARFIndirectAttribute) attrVal).getValue(); |
1,840,458 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE><MASK><NEW_LINE>startGetSummariesFromFiles_result result = new startGetSummariesFromFiles_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException) {... | org.apache.thrift.TSerializable msg; |
1,072,154 | public final void programHeading() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST programHeading_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case PROGRAM:<NEW_LINE>{<NEW_LINE>PascalAST tmp3_AST = null;<NEW_LINE>tmp3_AST = ... | programHeading_AST = (PascalAST) currentAST.root; |
329,972 | /* public boolean checkAndLoadResource(Object resource, Object pool, String resourceType, String resourceName,<NEW_LINE>String raName)<NEW_LINE>throws ConnectorRuntimeException {<NEW_LINE>String resname = ConnectorAdminServiceUtils.getOriginalResourceName(resourceName);<NEW_LINE>if(_logger.isLoggable(Level.FINE)) {<... | loadDeferredResources(defResConfig.getResourceAdapterConfig()); |
320,176 | public static void onCrashEmail(Context c, String msg, String title) {<NEW_LINE>final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);<NEW_LINE>String string = c.getResources().getString(R.string.my_email).replace("<u>", "").replace("</u>", "");<NEW_LINE>final String[] aEmailList = { string };<NEW_L... | content.Intent.EXTRA_EMAIL, aEmailList); |
1,433,722 | private static // }<NEW_LINE>void normalizeNames(PresetsModel model) {<NEW_LINE>Map<String, Integer> names = new HashMap();<NEW_LINE>for (int i = 0; i < model.getSize(); i++) {<NEW_LINE>ProfilerPreset preset = (ProfilerPreset) model.getElementAt(i);<NEW_LINE>names.put(preset.getName(), 0);<NEW_LINE>}<NEW_LINE>for (int ... | newName = normalizeName(presetName, nameCounts); |
1,107,111 | private DefineCommand parseAlterView() {<NEW_LINE>boolean ifExists = readIfExists(false);<NEW_LINE>String viewName = readIdentifierWithSchema();<NEW_LINE>Schema schema = getSchema();<NEW_LINE>Table tableView = schema.findTableOrView(session, viewName);<NEW_LINE>if (!(tableView instanceof TableView) && !ifExists) {<NEW_... | AlterTableRename(session, getSchema()); |
853,329 | @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, YUGABYTEDB })<NEW_LINE>public static <R extends Record, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> MergeKeyStep12<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> mergeInto(Table<R> table, Field<T1> field1, Field<T2> field2, Field<T3... | field9, field10, field11, field12); |
1,141,559 | public void onChange(final boolean selfChange, Uri uri) {<NEW_LINE>if (uri == null) {<NEW_LINE>// for sdk version 15 and below we cannot detect which exact data was changed. This will<NEW_LINE>// return all data for this module<NEW_LINE>uri = mTrayUri.builder().setModule(getModuleName()).build();<NEW_LINE>}<NEW_LINE>//... | Handler handler = entry.getValue(); |
1,640,270 | private void sweep() {<NEW_LINE>if (!incomingMessages.isEmpty()) {<NEW_LINE>final long start = ClockUtil.nanoRealtime();<NEW_LINE>final long oldestAllowed = start - TimeUnit.MILLISECONDS.toNanos(exchangeLifetime);<NEW_LINE>int size = incomingMessages.size();<NEW_LINE>int queueSize = 0;<NEW_LINE>int missingExchanges = 0... | exchange = incomingMessages.get(key); |
709,555 | public void addFormForAddAccount() {<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>InputTextField holderNameInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.account.owner"));<NEW_LINE>holderNameInputTextField.setValidator(inputValidator);<NEW_LINE>holderNameInputTextField.textProperty... | setHolderName(newValue.trim()); |
89,233 | public ResponseData<Integer> addTransaction(TransactionArgs transactionArgs) {<NEW_LINE>if (StringUtils.isEmpty(transactionArgs.getRequestId())) {<NEW_LINE>logger.error("[redis->add] the id of the data is empty.");<NEW_LINE>return new ResponseData<Integer>(FAILED_STATUS, KEY_INVALID);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE... | logger.error("[redis->add] add the data error.", e); |
1,602,723 | static long findSegmentSize(final long length, final int initialSplit, final long segmentThreshold, final long segmentSizeMaximum, final long segmentCountLimit) {<NEW_LINE>// Make segments<NEW_LINE>long parts, segmentSize, nextParts = initialSplit;<NEW_LINE>// find segment size<NEW_LINE>// starting with part count of q... | min(nextParts * 2, segmentCountLimit); |
1,833,777 | public boolean visit(RecordDeclaration node) {<NEW_LINE>ASTNode javadoc = getChildNode(node, RecordDeclaration.JAVADOC_PROPERTY);<NEW_LINE>if (javadoc != null) {<NEW_LINE>javadoc.accept(this);<NEW_LINE>}<NEW_LINE>visitList(node, RecordDeclaration.MODIFIERS2_PROPERTY, String.valueOf(' '), Util.EMPTY_STRING, String.value... | , String.valueOf(',')); |
1,820,098 | private void writeProcessInformations(ProcessInformations processInformations) throws IOException {<NEW_LINE>write("<td>");<NEW_LINE>write(htmlEncode(processInformations.getUser()));<NEW_LINE>final String newColumnRight = "</td><td align='right'>";<NEW_LINE>final String newColumn = "</td><td>";<NEW_LINE>write(newColumn... | (processInformations.getCommand())); |
956,160 | public void run(RegressionEnvironment env) {<NEW_LINE>String joinStatement = "@name('s0') select * from " + "SupportMarketDataBean(symbol='IBM')#length(3) s0, " + "SupportMarketDataBean(symbol='CSCO')#length(3) s1" + " where s0.volume=s1.volume";<NEW_LINE>env.compileDeployAddListenerMileZero(joinStatement, "s0");<NEW_L... | (env, setTwo[1]); |
128,076 | private void handleShowLoadWarningsFromURL(ShowLoadWarningsStmt showWarningsStmt, URL url) throws AnalysisException {<NEW_LINE>String host = url.getHost();<NEW_LINE>int port = url.getPort();<NEW_LINE><MASK><NEW_LINE>Backend be = infoService.getBackendWithHttpPort(host, port);<NEW_LINE>if (be == null) {<NEW_LINE>throw n... | SystemInfoService infoService = Env.getCurrentSystemInfo(); |
1,420,108 | public void write(SAML11RequestType request) throws ProcessingException {<NEW_LINE>StaxUtil.writeStartElement(writer, PROTOCOL_PREFIX, SAML11Constants.REQUEST, namespace);<NEW_LINE>StaxUtil.writeNameSpace(writer, PROTOCOL_PREFIX, namespace);<NEW_LINE>StaxUtil.writeNameSpace(<MASK><NEW_LINE>StaxUtil.writeDefaultNameSpac... | writer, ASSERTION_PREFIX, SAML11Constants.ASSERTION_11_NSURI); |
1,236,930 | protected final void processEnd(String id, OutputWriter writer) {<NEW_LINE>checkSleepiness();<NEW_LINE>visitor.resetVisitor();<NEW_LINE>Iterator<OutputProcessor<MASK><NEW_LINE>while (it.hasNext()) {<NEW_LINE>OutputProcessor proc = it.next();<NEW_LINE>proc.sequenceEnd(id, visitor);<NEW_LINE>if (proc instanceof NotifyFin... | > it = currentProcessors.iterator(); |
1,828,945 | public void testCompletionStageRxInvoker_post4WithExecutorService(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Exec... | newBuilder().executorService(executorService); |
1,184,097 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UntagResourceRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
432,923 | private void handleFieldSet(DependencyAgent agent, MethodDependency method) {<NEW_LINE>CallLocation location = new <MASK><NEW_LINE>DependencyNode classValueNode = agent.linkMethod(getFields).addLocation(location).getVariable(0).getClassValueNode();<NEW_LINE>classValueNode.addConsumer(reflectedType -> {<NEW_LINE>if (ref... | CallLocation(method.getReference()); |
1,813,734 | public ListPermissionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPermissionsResult listPermissionsResult = new ListPermissionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =... | String currentParentElement = context.getCurrentParentElement(); |
1,257,775 | private void attachMethodInstances(@NotNull PsiElement target, @NotNull String serviceName, @NotNull Method method, int parameterIndex, @NotNull ProblemsHolder holder) {<NEW_LINE>Parameter[] constructorParameter = method.getParameters();<NEW_LINE>if (parameterIndex >= constructorParameter.length) {<NEW_LINE>return;<NEW... | .getFQN(), target)); |
297,685 | private static String expandResources(String text) {<NEW_LINE>// resource ids are of the form !key.x...[arg1,arg2...]!<NEW_LINE>if (!text.contains("!")) {<NEW_LINE>return (text);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Pattern p = RegExUtil.getCachedPattern("BPVBC:resource", "!([^\\s]+)!");<NEW_LINE>Matcher m = p.matcher(te... | .decode(params[0]); |
11,538 | public static void main(String[] args) throws Exception {<NEW_LINE>// Configure SSL.<NEW_LINE>final SslContext sslCtx = SslContextBuilder.forClient().trustManager(InsecureTrustManagerFactory.INSTANCE).applicationProtocolConfig(new // NO_ADVERTISE is currently the only mode supported by both OpenSsl and JDK providers.<N... | GET, "", Unpooled.EMPTY_BUFFER); |
101,346 | protected Node[] createNodes(KEY key) {<NEW_LINE>if (key == KEY.LOCAL) {<NEW_LINE>Children children = new MethodChildren(this, cpInfo, ejbModule, controller, model, true, ejbModule.getDeploymentDescriptor());<NEW_LINE>MethodsNode n = new MethodsNode(ejbClass, ejbModule, children, MethodsNode.ViewType.LOCAL);<NEW_LINE>n... | children, MethodsNode.ViewType.REMOTE); |
1,782,661 | private void init() {<NEW_LINE>setBorder(BorderFactory.createTitledBorder("Resolve Conflict"));<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>headerLabel = new GDHtmlLabel(" ");<NEW_LINE>headerLabel.setHorizontalAlignment(SwingConstants.CENTER);<NEW_LINE>add(headerLabel, BorderLayout.NORTH);<NEW_LINE>rowComps = new ... | DEFAULT_TOP, DEFAULT_LEFT, DEFAULT_BOTTOM, DEFAULT_RIGHT); |
252,131 | protected static boolean verifyRebalanceState(AdminClient adminClient, Collection<Node> nodes) {<NEW_LINE>boolean success = true;<NEW_LINE>logger.info("Checking server states on all nodes");<NEW_LINE>for (Node node : nodes) {<NEW_LINE>Integer nodeId = node.getId();<NEW_LINE>Versioned<String> stateVersioned = adminClien... | error("Node " + nodeId + " Server state is not normal"); |
661,231 | void addIndexEntry(char[] category, char[] key, String documentName) {<NEW_LINE>HashtableOfObject referenceTable;<NEW_LINE>if (documentName.equals(this.lastDocumentName))<NEW_LINE>referenceTable = this.lastReferenceTable;<NEW_LINE>else {<NEW_LINE>// assumed a document was removed before its reindexed<NEW_LINE>reference... | .allWords.add(key)); |
117,560 | // Call to show the changelog dialog<NEW_LINE>public void show() {<NEW_LINE>// Get resources<NEW_LINE>String _PackageName = fActivity.getPackageName();<NEW_LINE>Resources _Resource;<NEW_LINE>try {<NEW_LINE>_Resource = fActivity.getPackageManager().getResourcesForApplication(_PackageName);<NEW_LINE>} catch (NameNotFound... | _Title = _Resource.getString(_resID); |
239,872 | public static List<DqRuleInputEntry> transformInputEntry(List<DqRuleInputEntry> ruleInputEntryList) {<NEW_LINE>for (DqRuleInputEntry dqRuleInputEntry : ruleInputEntryList) {<NEW_LINE>Map<String, Object> valuesMap = JSONUtils.toMap(dqRuleInputEntry.getValuesMap(), <MASK><NEW_LINE>if (valuesMap != null) {<NEW_LINE>if (va... | String.class, Object.class); |
1,303,609 | @NoCache<NEW_LINE>public void raiseRequiredActionPriority(@PathParam("alias") String alias) {<NEW_LINE>auth.realm().requireManageRealm();<NEW_LINE>RequiredActionProviderModel model = realm.getRequiredActionProviderByAlias(alias);<NEW_LINE>if (model == null) {<NEW_LINE>throw new NotFoundException("Failed to find require... | getUri()).success(); |
1,548,083 | public static INDArrayIndex fromIndexArr(INDArray index) {<NEW_LINE>int idx = index.getInt(0);<NEW_LINE>if (idx == POINT_TYPE) {<NEW_LINE>int getPoint = index.getInt(3);<NEW_LINE>return NDArrayIndex.point(getPoint);<NEW_LINE>} else if (idx == INTERVAL_TYPE) {<NEW_LINE>int start = index.getInt(3);<NEW_LINE>int <MASK><NE... | end = index.getInt(4); |
1,370,943 | public static org.python.Object __lt__(org.python.Object v, org.python.Object w) {<NEW_LINE>org.python.Object result = org.python.types.NotImplementedType.NOT_IMPLEMENTED;<NEW_LINE>boolean reflectedChecked = v.type() != w.type() && ((org.python.types.Bool) org.Python.isinstance(w, v.type())).value;<NEW_LINE>boolean v_b... | , w.typeName())); |
355,247 | private static void ping(SparkPlatform platform, CommandSender sender, CommandResponseHandler resp, Arguments arguments) {<NEW_LINE>PingStatistics pingStatistics = platform.getPingStatistics();<NEW_LINE>if (pingStatistics == null) {<NEW_LINE>resp.replyPrefixed(text("Ping data is not available on this platform."));<NEW_... | RollingAverage average = pingStatistics.getPingAverage(); |
1,333,989 | private static void tryInitialize() {<NEW_LINE>try {<NEW_LINE>System.loadLibrary(LIB_NAME);<NEW_LINE>} catch (UnsatisfiedLinkError e) {<NEW_LINE>if (context == null) {<NEW_LINE>throw e;<NEW_LINE>}<NEW_LINE>int sdk = Build.VERSION.SDK_INT;<NEW_LINE>boolean tryFallback = (sdk >= Build.VERSION_CODES.JELLY_BEAN) && (sdk <=... | = context.getApplicationInfo().sourceDir; |
709,207 | public static void gradientInner(GrayS32 ii, double tl_x, double tl_y, double samplePeriod, int regionSize, double kernelSize, int[] derivX, int[] derivY) {<NEW_LINE>// add 0.5 to c_x and c_y to have it round when converted to an integer pixel<NEW_LINE>// this is faster than the straight forward method<NEW_LINE>tl_x +=... | p9 = ii.data[indexSrc4]; |
533,406 | /*<NEW_LINE>* Redrive a failed requestFlush (and any scheduled rejects)<NEW_LINE>*<NEW_LINE>* This method must be called while _streamStatus is held<NEW_LINE>*/<NEW_LINE>private void redriveFailedRequestFlush() throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LI... | SibTr.entry(tc, "redriveFailedRequestFlush"); |
970,958 | public void read(org.apache.thrift.protocol.TProtocol iprot, ContainsResult struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.... | struct.debugInfo = new ContainsDebugInfo(); |
42,722 | public BotAliasLocaleSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BotAliasLocaleSettings botAliasLocaleSettings = new BotAliasLocaleSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
1,329,819 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayerOrPlaneswalkerController(source.getFirstTarget());<NEW_LINE>if (targetPlayer == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>targetPlayer.damage(amount.calculate(game, source, this), source.getSourceId(), source, game);... | getControllerId(), source, game); |
557,046 | public void createService() throws IOException {<NEW_LINE>serviceType = ((Integer) wiz.getProperty(WizardProperties.WEB_SERVICE_TYPE));<NEW_LINE>// Use Progress API to display generator messages.<NEW_LINE>// NOI18N<NEW_LINE>final ProgressHandle handle = ProgressHandleFactory.createHandle(NbBundle.getMessage(JaxWsServic... | getDefault().notify(nd); |
793,592 | public ExchangeCodeForTokenResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExchangeCodeForTokenResult exchangeCodeForTokenResult = new ExchangeCodeForTokenResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | class).unmarshall(context)); |
1,280,150 | public CompatibleEnvironmentTemplate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CompatibleEnvironmentTemplate compatibleEnvironmentTemplate = new CompatibleEnvironmentTemplate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | class).unmarshall(context)); |
432,284 | private static List<CompletionItem> createAttributesCompletion(AttachConfigurations attachConfigurations, Map<String, Object> currentAttributes) {<NEW_LINE>List<CompletionItem> completionItems = null;<NEW_LINE>ConfigurationAttributes currentConfiguration = attachConfigurations.findConfiguration(currentAttributes);<NEW_... | String attrName = entry.getKey(); |
239,590 | public void run() {<NEW_LINE>try {<NEW_LINE>// Await the shutdown time<NEW_LINE>Uninterruptibles.sleepUninterruptibly(CONSUMER_SHUTDOWN_DELAY_MILLIS, TimeUnit.MILLISECONDS);<NEW_LINE>// Shutdown all consumers that have not been re-acquired<NEW_LINE>synchronized (KafkaStreamLevelConsumerManager.class) {<NEW_LINE>LOGGER.... | System.currentTimeMillis(), releaseTime); |
1,032,999 | protected void configure() {<NEW_LINE>bind(SystemMessageService.class<MASK><NEW_LINE>bind(AlertService.class).to(AlertServiceImpl.class);<NEW_LINE>bind(NotificationService.class).to(NotificationServiceImpl.class);<NEW_LINE>bind(IndexFailureService.class).to(IndexFailureServiceImpl.class);<NEW_LINE>bind(NodeService.clas... | ).to(SystemMessageServiceImpl.class); |
395,400 | public void readNode(org.w3c.dom.Node node, java.util.Map namespacePrefixes) {<NEW_LINE>if (node.hasAttributes()) {<NEW_LINE>org.w3c.dom.NamedNodeMap attrs = node.getAttributes();<NEW_LINE>org.w3c.dom.Attr attr;<NEW_LINE>java.lang.String attrValue;<NEW_LINE>boolean firstNamespaceDef = true;<NEW_LINE>for (int attrNum = ... | (String) entry.getValue(); |
1,400,544 | public static ReaderComment fromJson(JSONObject json, long blogId) {<NEW_LINE>if (json == null) {<NEW_LINE>throw new IllegalArgumentException("null json comment");<NEW_LINE>}<NEW_LINE>ReaderComment comment = new ReaderComment();<NEW_LINE>comment.blogId = blogId;<NEW_LINE>comment.commentId = json.optLong("ID");<NEW_LINE... | JSONUtils.getJSONChild(json, "meta/data/likes"); |
241,591 | // Spotbugs issue #432<NEW_LINE>@SuppressFBWarnings("OBL_UNSATISFIED_OBLIGATION")<NEW_LINE>private static String extract(final String name) {<NEW_LINE>final String suffix = name.substring(name.lastIndexOf('.'));<NEW_LINE>final File file;<NEW_LINE>try {<NEW_LINE>final File dir = new File(EXTRACT_DIR);<NEW_LINE>if (!dir.... | in = cl.getResourceAsStream(name); |
432,187 | // This is called when connecting to a Chromecast from this activity. It will tell BaseActivity<NEW_LINE>// to launch the video that was playing on the Chromecast.<NEW_LINE>@Override<NEW_LINE>protected void returnToMainAndResume() {<NEW_LINE>Bundle bundle = new Bundle();<NEW_LINE>bundle.putSerializable(YOUTUBE_VIDEO, f... | ().getVideoUrl())); |
687,188 | public KGKeyPairIds unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>KGKeyPairIds kGKeyPairIds = new KGKeyPairIds();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>... | ().unmarshall(context)); |
1,804,590 | // Returns the vertex iterator that allows iteration through all vertices of<NEW_LINE>// all paths of all geometries.<NEW_LINE>// If bSkipMultiPoints is true, then the iterator will skip the Multi_point<NEW_LINE>// vertices<NEW_LINE>VertexIterator queryVertexIterator(boolean b_skip_multi_points) {<NEW_LINE>int geometry... | vertex, first_vertex, index, b_skip_multi_points); |
19,700 | public void onEnd(AttributesBuilder attributes, Context context, String s, @Nullable Object result, @Nullable Throwable error) {<NEW_LINE>if (result == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Unwrap ListenableFuture (if present)<NEW_LINE>if (result instanceof ListenableFuture) {<NEW_LINE>try {<NEW_LINE>result =... | "twilio.sid", message.getSid()); |
129,238 | public void updateViews(AlLinkPreviewModel linkPreviewModel) {<NEW_LINE>if (linkPreviewModel != null && linkPreviewModel.hasLinkData()) {<NEW_LINE>urlLoadLayout.setVisibility(View.VISIBLE);<NEW_LINE>if (linkPreviewModel.hasImageOnly()) {<NEW_LINE>toggleImageOnlyVisibility(true);<NEW_LINE>Glide.with(context).load(linkPr... | ()).into(imageOnlyView); |
1,789,424 | final GetRecoveryGroupReadinessSummaryResult executeGetRecoveryGroupReadinessSummary(GetRecoveryGroupReadinessSummaryRequest getRecoveryGroupReadinessSummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecoveryGroupReadinessSummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
694,320 | private void loadArmor(String armorType, List<Material> materialList) {<NEW_LINE>if (needsUpdate) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConfigurationSection armorSection = config.getConfigurationSection(armorType);<NEW_LINE>if (armorSection == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> armorConfigSet = a... | armorMaterial = Material.matchMaterial(armorName); |
1,119,850 | public DomainInfos unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DomainInfos domainInfos = new DomainInfos();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok... | int originalDepth = context.getCurrentDepth(); |
1,158,323 | public CompletionStage<AuthenticationResponse> authenticate(ProviderRequest providerRequest) {<NEW_LINE>CompletionStage<AtnResponse> result = CompletableFuture.<MASK><NEW_LINE>for (Atn providerConfig : providers) {<NEW_LINE>// go through all providers and validate each response, collecting successes<NEW_LINE>result = r... | completedFuture(new AtnResponse(ABSTAIN_RESPONSE)); |
391,411 | public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) {<NEW_LINE>Authentication authentication = SecurityContextHolder.getContext().getAuthentication();<NEW_LINE>if (authentication == null) {<NEW_LINE>return null;<NE... | findMethodAnnotation(AuthenticationPrincipal.class, parameter); |
570,216 | // getClass<NEW_LINE>private final Class<?> findModelClassByTableName(final String tableName) {<NEW_LINE>if (Check.isEmpty(tableName, true) || tableName.endsWith("_Trl")) {<NEW_LINE>return NO_CLASS;<NEW_LINE>}<NEW_LINE>// Import Tables (Name conflict)<NEW_LINE>if (tableName.startsWith("I_")) {<NEW_LINE>final Class<?> c... | (tableName, "_", "")); |
1,715,065 | public void write(Writer writer, Object inst) throws IOException {<NEW_LINE>if (!(inst instanceof ToolbarConfiguration))<NEW_LINE>return;<NEW_LINE>BufferedWriter w = new BufferedWriter(writer);<NEW_LINE>// NOI18N<NEW_LINE>w.write("<?xml version=\"1.0\"?>");<NEW_LINE>w.newLine();<NEW_LINE>// NOI18N<NEW_LINE>w.write("<!D... | isVisible() ? "true" : "false"); |
260,435 | final UpdateThingRuntimeConfigurationResult executeUpdateThingRuntimeConfiguration(UpdateThingRuntimeConfigurationRequest updateThingRuntimeConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThingRuntimeConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
856,045 | public SerializableVoid runTask(EvictConfig config, SerializableVoid args, RunTaskContext context) throws Exception {<NEW_LINE>long blockId = config.getBlockId();<NEW_LINE>String localHostName = NetworkAddressUtils.getConnectHost(ServiceType.<MASK><NEW_LINE>List<BlockWorkerInfo> workerInfoList = context.getFsContext().... | WORKER_RPC, ServerConfiguration.global()); |
1,562,647 | public void writeTo(DexFile file, AnnotatedOutput out) {<NEW_LINE>boolean annotates = out.annotates();<NEW_LINE>TypeIdsSection typeIds = file.getTypeIds();<NEW_LINE>int classIdx = typeIds.indexOf(thisClass);<NEW_LINE>int superIdx = (superclass == null) ? -1 : typeIds.indexOf(superclass);<NEW_LINE>int <MASK><NEW_LINE>in... | interOff = OffsettedItem.getAbsoluteOffsetOr0(interfaces); |
468,358 | public void init(int WindowNo, FormFrame frame) {<NEW_LINE>m_WindowNo = WindowNo;<NEW_LINE>m_frame = frame;<NEW_LINE>// Layout<NEW_LINE>frame.getContentPane().add(this, BorderLayout.CENTER);<NEW_LINE>this.setLayout(new BorderLayout());<NEW_LINE>this.add(tabbedPane, BorderLayout.CENTER);<NEW_LINE>this.<MASK><NEW_LINE>ta... | add(confirmPanel, BorderLayout.SOUTH); |
1,829,098 | public static CompositeIndexQuery makeSubordinate(boolean isNWOnTrigger, int numOuterStreams, ExprEvaluator hashEval, QueryGraphValueEntryRange[] rangeEvals) {<NEW_LINE>// construct chain<NEW_LINE>List<CompositeIndexQuery> queries = new ArrayList<CompositeIndexQuery>();<NEW_LINE>if (hashEval != null) {<NEW_LINE>queries... | -1, numOuterStreams, hashEval)); |
1,840,463 | public JPanel createComponent(final ComponentDelegate delegate) {<NEW_LINE>return new CN1JPanel() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void setBounds(int x, int y, int w, int h) {<NEW_LINE>super.setBounds(x, y, w, h);<NEW_LINE>delegate.boundsChanged(x, y, w, h);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LIN... | d.width, d.height); |
804,947 | public void sqlApiPerf(CounterBasket pw) {<NEW_LINE>MeterSQL sql = MeterSQL.getInstance();<NEW_LINE>MeterAPI api = MeterAPI.getInstance();<NEW_LINE>PerfCounterPack p = pw.getPack(TimeTypeEnum.REALTIME);<NEW_LINE>long elapsed = sql.getAvgTime(30);<NEW_LINE>float tps = sql.getTps(30);<NEW_LINE>float errRate = sql.getErro... | pw.getPack(TimeTypeEnum.FIVE_MIN); |
1,140,155 | public static boolean updateUsername(String ApplicationRoot, String userName, String newUsername) {<NEW_LINE>log.debug("*** Setter.updateUsername ***");<NEW_LINE>boolean result = false;<NEW_LINE>log.debug(<MASK><NEW_LINE>CallableStatement callstmnt;<NEW_LINE>try {<NEW_LINE>Connection conn = Database.getCoreConnection(A... | "Preparing username change call from username " + userName + " to " + newUsername); |
202,574 | public AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference) {<NEW_LINE>SpecifierContext currentContext = _batfish.specifierContext(_batfish.getSnapshot());<NEW_LINE>Multimap<String, String> currentFilters = getSpecifiedFilters(currentContext, _question.getNodeSpecifier(), _question.getFilterSpe... | ), _question.getIgnoreComposites()); |
469,352 | public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {<NEW_LINE>CombatInvocationsNotify notif = CombatInvocationsNotify.parseFrom(payload);<NEW_LINE>for (CombatInvokeEntry entry : notif.getInvokeListList()) {<NEW_LINE>switch(entry.getArgumentType()) {<NEW_LINE>case CombatEvtBeingHit:<... | setLastMoveReliableSeq(moveInfo.getReliableSeq()); |
589,544 | public void run() throws IOException {<NEW_LINE>Log.info("Generating classification model from %s", input);<NEW_LINE>FastTextClassifierTrainer trainer = FastTextClassifierTrainer.builder().epochCount(epochCount).learningRate(learningRate).lossType(lossType).quantizationCutOff(cutOff).minWordCount(minWordCount).threadCo... | Path parent = output.getParent(); |
999,874 | private ParserContextFunctionNode createParserContextFunctionNode(final IdentNode ident, final long functionToken, final FunctionNode.Kind kind, final int functionLine, final List<IdentNode> parameters) {<NEW_LINE>// Build function name.<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>final ParserContex... | append(ident.getName()); |
1,019,829 | private void assembleRecentObject(String uuid, BlackboardArtifact artifact, List<JsonElement> output) throws TskCoreException {<NEW_LINE>Trace export = new Trace(uuid).addBundle(new Application().setApplicationIdentifier(getValueIfPresent(artifact, StandardAttributeTypes.TSK_PROG_NAME)));<NEW_LINE>WindowsRegistryValue ... | (artifact, StandardAttributeTypes.TSK_NAME)); |
549,307 | public PlacementGroup unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PlacementGroup placementGroup = new PlacementGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<N... | ().unmarshall(context)); |
1,287,326 | private void runAssertionLateConsume(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window MyVDW.test:vdwwithparam() as SupportBean", path);<NEW_LINE>SupportVirtualDW window = (SupportVirtualDW) getFromContext(env, "/virtualdw/MyVDW");<NEW_LI... | "MyVDW", base.getNamedWindowName()); |
1,517,652 | void signAuthnRequest(SAMLObject authnRequest, Credential signingCredential) throws SamlException {<NEW_LINE>SsoConfig samlConfig = ssoService.getConfig();<NEW_LINE>// QName qName = Signature.DEFAULT_ELEMENT_NAME;<NEW_LINE>if (authnRequest instanceof SignableSAMLObject && signingCredential != null) {<NEW_LINE>SignableS... | builderFactory.getBuilder(Signature.DEFAULT_ELEMENT_NAME); |
1,414,162 | public RelatedEntitiesResult findRelatedEntities(@Nullable final String sourceType, @Nonnull final Filter sourceEntityFilter, @Nullable final String destinationType, @Nonnull final Filter destinationEntityFilter, @Nonnull final List<String> relationshipTypes, @Nonnull final RelationshipFilter relationshipFilter, final ... | ().getTotalHits().value; |
552,163 | protected long extract(long power, boolean simulate) {<NEW_LINE>if (power > 0) {<NEW_LINE>if (pipe.getFlow() instanceof IFlowItems) {<NEW_LINE>IFlowItems flow = (IFlowItems) pipe.getFlow();<NEW_LINE>int maxItems = (int) (power / BCTransportConfig.mjPerItem);<NEW_LINE>if (maxItems > 0) {<NEW_LINE>int extracted = extract... | return power - extracted * BCTransportConfig.mjPerItem; |
1,342,718 | public final <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> InsertImpl columns(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Fiel... | , field16, field17, field18 }); |
1,114,915 | protected void readNodeChildren(org.w3c.dom.Node node, java.util.Map namespacePrefixes) {<NEW_LINE>org.w3c.dom.NodeList children = node.getChildNodes();<NEW_LINE>for (int i = 0, size = children.getLength(); i < size; ++i) {<NEW_LINE>org.w3c.dom.Node childNode = children.item(i);<NEW_LINE>if (!(childNode instanceof org.... | .getFirstChild().getNodeValue(); |
1,547,933 | protected void done() {<NEW_LINE>try {<NEW_LINE>super.done();<NEW_LINE>List<CorrelationAttributeInstance<MASK><NEW_LINE>DataResultViewerTable table = new DataResultViewerTable();<NEW_LINE>Collection<DataResultViewer> viewers = new ArrayList<>(1);<NEW_LINE>viewers.add(table);<NEW_LINE>AllCasesSearchNode searchNode = new... | > correlationInstances = this.get(); |
528,286 | protected void updateContent() {<NEW_LINE>ImageView icon = (ImageView) view.findViewById(R.id.warning_img);<NEW_LINE>TextView warningTitle = (TextView) view.findViewById(R.id.warning_title);<NEW_LINE>TextView warningLink = (TextView) view.findViewById(R.id.warning_link);<NEW_LINE>if (imageDrawable != null) {<NEW_LINE>i... | warningLink.setVisibility(View.VISIBLE); |
661,927 | Object str(VirtualFrame frame, PBaseException self, @Cached BaseExceptionAttrNode attrNode, @Cached BaseExceptionBuiltins.StrNode baseStrNode, @Cached PyObjectReprAsJavaStringNode reprNode) {<NEW_LINE>// TODO: missing windows code<NEW_LINE>final Object filename = attrNode.<MASK><NEW_LINE>final Object filename2 = attrNo... | get(self, IDX_FILENAME, OS_ERROR_ATTR_FACTORY); |
1,677,317 | final ListServiceSpecificCredentialsResult executeListServiceSpecificCredentials(ListServiceSpecificCredentialsRequest listServiceSpecificCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceSpecificCredentialsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
227,606 | private SelectBuilder.SelectWhere selectBuilder(Collection<SqlIdentifier> keyColumns) {<NEW_LINE>Table table = getTable();<NEW_LINE>List<Expression> columnExpressions = new ArrayList<>();<NEW_LINE>List<Join> joinTables = new ArrayList<>();<NEW_LINE>for (PersistentPropertyPath<RelationalPersistentProperty> path : mappin... | ).equals(join.parentId); |
98,786 | private static String[] parseArray(String strArray) {<NEW_LINE>if (strArray == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (strArray.startsWith("[")) {<NEW_LINE>strArray = strArray.substring(1);<NEW_LINE>}<NEW_LINE>if (strArray.endsWith("]")) {<NEW_LINE>strArray = strArray.substring(0, <MASK><NEW_LINE>}<NEW_LI... | strArray.length() - 1); |
689,979 | public void execute(PostJobContext context) {<NEW_LINE>try {<NEW_LINE>if (!gitLabPluginConfiguration.isEnabled()) {<NEW_LINE>LOG.info("GitLab plugin is disabled");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File baseDir = fileFromProperty(context, SONAR_PROJECT_BASE_DIR);<NEW_LINE>if (baseDir == null) {<NEW_LINE>throw Messag... | sonarFacade.init(baseDir, workDir); |
830,108 | protected Set<String> mapKnownAttributesToOmrs(Classification omasClassification, InstanceProperties omrsClassificationProperties) {<NEW_LINE>Confidentiality confidentiality = (Confidentiality) omasClassification;<NEW_LINE>String stringValue = repositoryHelper.getStringProperty(genericHandler.getServiceName(), "steward... | ), "confidence", omrsClassificationProperties, ""); |
703,616 | public void onRun() throws Throwable {<NEW_LINE>OkHttpOAuthConsumer consumer = new OkHttpOAuthConsumer("NQ4ucS4F0RpQO1byUQB5JA", Strings.GetOSM());<NEW_LINE>consumer.setTokenWithSecret(PreferenceHelper.getInstance().getOSMAccessToken(), PreferenceHelper.getInstance().getOSMAccessTokenSecret());<NEW_LINE>OkHttpClient cl... | ResponseBody body = response.body(); |
1,532,781 | private static void edgeSplitMoveExceptionsAndResults(SsaMethod ssaMeth) {<NEW_LINE>ArrayList<SsaBasicBlock> blocks = ssaMeth.getBlocks();<NEW_LINE>for (int i = blocks.size() - 1; i >= 0; i--) {<NEW_LINE>SsaBasicBlock block = blocks.get(i);<NEW_LINE>if (!block.isExitBlock() && block.getPredecessors().cardinality() > 1 ... | .getPredecessors().clone(); |
452,008 | private HBox buildControlButtons(Scene scene) {<NEW_LINE>HBox hboxControls = new HBox();<NEW_LINE>hboxControls.setSpacing(10);<NEW_LINE>hboxControls.setAlignment(Pos.CENTER_LEFT);<NEW_LINE>hboxControls.setPadding(new Insets(4, 4, 0, 8));<NEW_LINE>btnZoomIn = new Button("Zoom In");<NEW_LINE>btnZoomOut = new Button("Zoom... | UserInterfaceUtil.getSnapshotButton(scene, "CodeCache"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.