idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
636,250 | public Node createNode(Label... labels) {<NEW_LINE>var ktx = kernelTransaction();<NEW_LINE>try {<NEW_LINE>TokenWrite tokenWrite = ktx.tokenWrite();<NEW_LINE>int[] labelIds = new int[labels.length];<NEW_LINE>String[] labelNames = new String[labels.length];<NEW_LINE>for (int i = 0; i < labelNames.length; i++) {<NEW_LINE>... | throw new ConstraintViolationException("Unable to add label.", e); |
1,417,113 | public ASTNode visitCreateDefaultShardingStrategy(final CreateDefaultShardingStrategyContext ctx) {<NEW_LINE><MASK><NEW_LINE>String shardingAlgorithmName = null;<NEW_LINE>if (null != shardingStrategyContext.shardingAlgorithm().existingAlgorithm()) {<NEW_LINE>shardingAlgorithmName = getIdentifierValue(shardingStrategyCo... | ShardingStrategyContext shardingStrategyContext = ctx.shardingStrategy(); |
1,593,304 | protected ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>logger.debug(effectivePerson, "flag:{}.", flag);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance(... | class, generalFile.getStorage()); |
749,622 | private X509Certificate[] openCaReply() {<NEW_LINE>X509Certificate[] certs = null;<NEW_LINE>try {<NEW_LINE>// get clip board contents, but only string types, not files<NEW_LINE>Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();<NEW_LINE>Transferable <MASK><NEW_LINE>if (t.isDataFlavorSupported(DataF... | t = clipboard.getContents(null); |
6,352 | private static void log(Connector c, Map<String, Argument> args) {<NEW_LINE>LogRecord record = new LogRecord(Level.INFO, "USG_DEBUG_ATTACH_JPDA");<NEW_LINE>record.setResourceBundle(NbBundle.getBundle(ConnectPanel.class));<NEW_LINE>// NOI18N<NEW_LINE>record.setResourceBundleName(ConnectPanel.class.getPackage().getName()... | params.size()])); |
1,836,967 | public File postFilesId(String fileId, FilesFileIdBody1 body, List<String> fields) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'fileId' is set<NEW_LINE>if (fileId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'fileId' when ca... | String[] localVarContentTypes = { "application/json" }; |
1,630,102 | public void marshall(AwsElbLoadBalancerDetails awsElbLoadBalancerDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsElbLoadBalancerDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsElbLoa... | awsElbLoadBalancerDetails.getSubnets(), SUBNETS_BINDING); |
1,248,257 | private void generateBridgeMethod(Type[] actualGenericTypes, soot.Type[] unboxedTypes, String[][] targetMethodAnnotations, ClassWriter cw) {<NEW_LINE>List<Type> genericParamTypes = new ArrayList<>();<NEW_LINE>genericParamTypes.add(new SootTypeType<MASK><NEW_LINE>genericParamTypes.add(new SootTypeType(org_robovm_objc_Ob... | (LongType.v())); |
907,536 | public void decodeTerm(DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute) throws IOException {<NEW_LINE>final IntBlockTermState termState = (IntBlockTermState) _termState;<NEW_LINE>final boolean fieldHasPositions = fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITI... | compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0; |
1,659,146 | protected void releaseVipOnBackend(Completion completion) {<NEW_LINE>List<String> vrs = proxy.getVrUuidsByNetworkService(VipVO.class.getSimpleName(<MASK><NEW_LINE>if (vrs == null || vrs.isEmpty()) {<NEW_LINE>completion.success();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String vrUuid = vrs.get(0);<NEW_LINE>final VirtualRou... | ), self.getUuid()); |
1,676,357 | public int compare(MediaItem leftItem, MediaItem rightItem) {<NEW_LINE>if (leftItem.getGlobalSegmentList() != null || rightItem.getGlobalSegmentList() != null) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>if (mOrderType == ORDER_ASCENDANT) {<NEW_LINE>MediaItem tmpItem = leftItem;<NEW_LINE>leftItem = rightItem;<NEW_LINE>rig... | parseInt(rightItem.getBitrate()); |
1,741,439 | private void updateFooter() {<NEW_LINE>List<ListItem> items = miniTable.getItems();<NEW_LINE>Iterator<ListItem> it = items.iterator();<NEW_LINE>BigDecimal periodActual = new BigDecimal(0.0);<NEW_LINE>BigDecimal periodBudget = new BigDecimal(0.0);<NEW_LINE>BigDecimal periodVariance = new BigDecimal(0.0);<NEW_LINE>BigDec... | toString().trim()); |
1,310,292 | private void copy(Route src, Route it) {<NEW_LINE>Route.Before before = Optional.ofNullable(it.getBefore()).map(filter -> Optional.ofNullable(src.getBefore()).map(filter::then).orElse(filter)).orElseGet(src::getBefore);<NEW_LINE>Route.Decorator decorator = Optional.ofNullable(it.getDecorator()).map(filter -> Optional.o... | setProduces(src.getProduces()); |
950,090 | public Bitmap makeIcon() {<NEW_LINE>int measureSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);<NEW_LINE>mContainer.measure(measureSpec, measureSpec);<NEW_LINE>int measuredWidth = mContainer.getMeasuredWidth();<NEW_LINE>int measuredHeight = mContainer.getMeasuredHeight();<NEW_LINE>mContainer.la... | r.eraseColor(Color.TRANSPARENT); |
683,292 | protected void preindex(EditDist editDist) {<NEW_LINE>TYPE editType = edit.getType();<NEW_LINE>if (!(editType == TYPE.DEL || editType == TYPE.DEL_SUBTREE || editType == TYPE.DEL_LEAF))<NEW_LINE>continue;<NEW_LINE>HashMap<Integer, Integer> alignment = editDist.getAlign1to2();<NEW_LINE>for (Integer postOrderIdx : alignme... | questionPOIdx = alignment.get(postOrderIdx); |
1,046,759 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String monitorName, String ruleSetName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be n... | error(new IllegalArgumentException("Parameter monitorName is required and cannot be null.")); |
100,792 | public void upgradeSchema(CaseDbSchemaVersionNumber dbSchemaVersion, Connection connection) throws CentralRepoException, SQLException {<NEW_LINE>if (dbSchemaVersion.compareTo(new CaseDbSchemaVersionNumber(1, 6)) < 0) {<NEW_LINE>try (Statement statement = connection.createStatement()) {<NEW_LINE>CentralRepoPlatforms sel... | .getSavedDbChoice().getDbPlatform(); |
527,463 | public List<PropertyDeclaration> buildDeclarations(CSSName cssName, List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed) {<NEW_LINE>checkValueCount(cssName, 1, values.size());<NEW_LINE>CSSPrimitiveValue value = values.get(0);<NEW_LINE>checkInheritAllowed(value, inheritAllowed);<NEW_LINE>if... | "0%"), important, origin)); |
103,107 | protected double expectedAndEmpiricalCountsAndValueForADoc(double[][] E, double[][] Ehat, int docIndex) {<NEW_LINE>int[][][] docData = data[docIndex];<NEW_LINE>double[][][] featureVal3DArr = null;<NEW_LINE>if (featureVal != null) {<NEW_LINE>featureVal3DArr = featureVal[docIndex];<NEW_LINE>}<NEW_LINE>// make a clique tr... | Ehat, docData, featureVal3DArr, cliqueTreeNoisyLabel); |
765,924 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>String text = "@name('s0') select * from SupportRecogBean " + "match_recognize (" + " measures A.theString as string, A.value as value" + " all matches pattern (A) " + " define " + " A as PREV(A.theString, 1) = theString" + ")";<NEW_LI... | fields = "string,value".split(","); |
303,171 | public static DescribeIpControlPolicyItemsResponse unmarshall(DescribeIpControlPolicyItemsResponse describeIpControlPolicyItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIpControlPolicyItemsResponse.setRequestId(_ctx.stringValue("DescribeIpControlPolicyItemsResponse.RequestId"));<NEW_LINE>describeIpControlP... | ("DescribeIpControlPolicyItemsResponse.IpControlPolicyItems[" + i + "].ModifiedTime")); |
179,521 | String build(String projectId) {<NEW_LINE>String token;<NEW_LINE>Algorithm algorithm;<NEW_LINE>try {<NEW_LINE>Security.addProvider(new BouncyCastleProvider());<NEW_LINE>Reader reader = new InputStreamReader(ClassLoader.getSystemResourceAsStream("ec_private.pem"));<NEW_LINE>PEMParser pemParser = new PEMParser(reader);<N... | Date oneHourFromNow = cal.getTime(); |
1,457,384 | public MethodInfo addMethodInfo(short accessFlags, String methodName, MethodDescriptor methodMd) {<NEW_LINE>int parameterCount = Mod.isStatic(accessFlags) ? 0 : 1;<NEW_LINE>for (String fd : methodMd.parameterFds) parameterCount += Descriptor.size(fd);<NEW_LINE>// JVMS8 4.3.3<NEW_LINE>// See https://github.com/janino-co... | this.methodInfos.add(mi); |
432,712 | private void addMatches(Matcher matcher, int fieldIndex, int hashCode, IntList results) {<NEW_LINE>int hashIntCode = HashCodes.hashInt(hashCode);<NEW_LINE>int bucket = hashIntCode & (hashedFieldKeys[fieldIndex].length - 1);<NEW_LINE>while (hashedFieldKeys[fieldIndex][bucket] != ORDINAL_NONE) {<NEW_LINE>int chainIndex =... | int) hashedFieldKeyChains.get(chainIndex); |
1,211,404 | public static RecognizeLabelResponse unmarshall(RecognizeLabelResponse recognizeLabelResponse, UnmarshallerContext _ctx) {<NEW_LINE>recognizeLabelResponse.setCode(_ctx.stringValue("RecognizeLabelResponse.Code"));<NEW_LINE>recognizeLabelResponse.setSuccess(_ctx.booleanValue("RecognizeLabelResponse.Success"));<NEW_LINE>r... | (_ctx.stringValue("RecognizeLabelResponse.Response.Url")); |
1,315,099 | protected Lock obtainFSLock(FSDirectory dir, String lockName) throws IOException {<NEW_LINE>Path lockDir = dir.getDirectory();<NEW_LINE>// Ensure that lockDir exists and is a directory.<NEW_LINE>// note: this will fail if lockDir is a symlink<NEW_LINE>Files.createDirectories(lockDir);<NEW_LINE>Path lockFile = lockDir.r... | throw new LockObtainFailedException("Lock held by this virtual machine: " + realPath); |
281,662 | public void draw(Canvas canvas) {<NEW_LINE>if (_minkoWebViewRenderer == null) {<NEW_LINE>super.draw(canvas);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Returns canvas attached to OpenGL texture to draw on<NEW_LINE>Canvas glAttachedCanvas = _minkoWebViewRenderer.onDrawViewBegin();<NEW_LINE>if (glAttachedCanvas != null) {<N... | (), -getScrollY()); |
1,794,674 | protected void convertAgg(Blackboard bb, SqlSelect select, List<SqlNode> orderExprList) {<NEW_LINE>final boolean distinct = select.isDistinct();<NEW_LINE>assert bb.root != null : "precondition: child != null";<NEW_LINE>SqlNodeList groupList = select.getGroup();<NEW_LINE>SqlNodeList selectList = select.getSelectList();<... | having = sqlValidator.validatedExpandingHaving(select); |
1,559,119 | protected void onEvent(String path, Trigger c) {<NEW_LINE>eventCallbacks.put(path, new EventCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@AsyncThread<NEW_LINE>protected void run(Map tokens, Object data) {<NEW_LINE>GarbageCollectorVO vo = dbf.findByUuid(uuid, GarbageCollectorVO.class);<NEW_LINE>if (vo == null) {<N... | , NAME, uuid, path)); |
311,416 | public Page[] sliceAndRetainPagesTo(long to) {<NEW_LINE>if (to > capacity) {<NEW_LINE>throw new IndexOutOfBoundsException("can't slice a channel buffer with capacity [" + capacity + "], with slice parameters to [" + to + "]");<NEW_LINE>} else if (to == 0) {<NEW_LINE>return EMPTY_BYTE_PAGE_ARRAY;<NEW_LINE>}<NEW_LINE>lon... | ByteBuffer firstBuffer = firstPage.byteBuffer(); |
961,576 | private void createCacheDirectoryField(Composite container) {<NEW_LINE>Label label = new Label(container, SWT.NONE);<NEW_LINE>label.setText("Cac&he directory:");<NEW_LINE>cacheDirectoryField = new Text(container, SWT.SINGLE | <MASK><NEW_LINE>cacheDirectoryField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, fal... | SWT.BORDER | SWT.READ_ONLY); |
948,082 | private Map<String, Object> processErrors(ExecutionResult result, List<GraphQLError> errors) {<NEW_LINE>Map<String, Object> resultMap = new HashMap<>();<NEW_LINE>resultMap.put(DATA, result.getData());<NEW_LINE>boolean hasErrors = false;<NEW_LINE>for (GraphQLError error : errors) {<NEW_LINE>if (error instanceof Exceptio... | addError(resultMap, error, cause); |
1,052,178 | protected String executorCommand(Config config, Config runtime, int containerIndex) {<NEW_LINE>Map<ExecutorPort, String> ports = new HashMap<>();<NEW_LINE>ports.put(ExecutorPort.SERVER_PORT, String.valueOf(freePorts.get(0)));<NEW_LINE>ports.put(ExecutorPort.TMANAGER_CONTROLLER_PORT, String.valueOf(freePorts.get(1)));<N... | freePorts.get(5))); |
1,009,086 | private void copyDataCAVLC(ByteBuffer is, ByteBuffer os, BitReader reader, BitWriter writer) {<NEW_LINE>int wLeft = 8 - writer.curBit();<NEW_LINE>if (wLeft != 0)<NEW_LINE>writer.writeNBit(reader.readNBit(wLeft), wLeft);<NEW_LINE>writer.flush();<NEW_LINE>// Copy with shift<NEW_LINE>int shift = reader.curBit();<NEW_LINE>... | inp = reader.readNBit(mShift); |
922,247 | public boolean open(SchemaNegotiator negotiator) {<NEW_LINE>// Result set loader setup<NEW_LINE>String tempDirPath = negotiator.drillConfig().getString(ExecConstants.DRILL_TMP_DIR);<NEW_LINE>HttpUrl url = buildUrl();<NEW_LINE>logger.debug("Final URL: {}", url);<NEW_LINE>CustomErrorContext errorContext = new ChildErrorC... | ImplicitColumns(resultSetLoader.writer()); |
645,862 | private static void retrieveMultipleItemsBatchGet() {<NEW_LINE>try {<NEW_LINE>TableKeysAndAttributes forumTableKeysAndAttributes = new TableKeysAndAttributes(forumTableName);<NEW_LINE>// Add a partition key<NEW_LINE>forumTableKeysAndAttributes.addHashOnlyPrimaryKeys("Name", "Amazon S3", "Amazon DynamoDB");<NEW_LINE>Tab... | outcome = dynamoDB.batchGetItemUnprocessed(unprocessed); |
524,950 | public static InputStream openInputStream(URI object, String userName, PasswordProvider passwordProvider, long offset) throws IOException {<NEW_LINE>final URLConnection urlConnection = object.toURL().openConnection();<NEW_LINE>if (!Strings.isNullOrEmpty(userName) && passwordProvider != null) {<NEW_LINE>String userPass ... | (StringUtils.toUtf8(userPass)); |
1,810,254 | public static void loadPropertiesFromResources(String path) throws IOException {<NEW_LINE>if (instance == null) {<NEW_LINE>instance = getConfigInstance();<NEW_LINE>}<NEW_LINE>ClassLoader loader = Thread.currentThread().getContextClassLoader();<NEW_LINE>Enumeration<URL> <MASK><NEW_LINE>if (!resources.hasMoreElements()) ... | resources = loader.getResources(path); |
1,707,240 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("testMethod");<NEW_LINE><MASK><NEW_LINE>out.println("Starting " + test + "<br>");<NEW_LINE>System.out.println("-----> " + test + " starting");<NEW_LINE>try {<... | PrintWriter out = response.getWriter(); |
57,898 | private void createNewFiltersAndCursors(ItemStream itemStream) throws SIResourceException, MessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createNewFiltersAndCursors", itemStream);<NEW_LINE>LockingCursor cursor = null;<NEW_LINE>// Instantiate a... | [i].setLockingCursor(cursor); |
1,670,344 | // CHECKSTYLE:OFF<NEW_LINE>private List<MavenArtifact> parseDependenciesNode(Node dependenciesNode) {<NEW_LINE>// CHECKSTYLE:ON<NEW_LINE>final List<MavenArtifact> deps = new ArrayList<>();<NEW_LINE>final NodeList dependencyNodes = dependenciesNode.getChildNodes();<NEW_LINE>for (int j = 0; j < dependencyNodes.getLength(... | String nodeName = childDependencyNode.getNodeName(); |
1,704,460 | public Message request(Message msg, long timeout) throws RequestTimeoutException, MQClientException, RemotingException, MQBrokerException, InterruptedException {<NEW_LINE>long beginTimestamp = System.currentTimeMillis();<NEW_LINE>prepareSendRequest(msg, timeout);<NEW_LINE>final String correlationId = msg.getProperty(Me... | = System.currentTimeMillis() - beginTimestamp; |
791,615 | private void loadNode1250() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionSecurityDiagnostics_SessionId, new QualifiedName(0, "SessionId"), new LocalizedText("en", "SessionId"), LocalizedText.NULL_VALUE, UIn... | this.nodeManager.addNode(node); |
973,191 | // -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public Trade parseTrade(FpmlDocument document, XmlElement tradeEl) {<NEW_LINE>// supported elements:<NEW_LINE>// 'buyerPartyReference'<NEW_LINE>// 'sellerPartyReference'<NEW_LINE>// 'adjustedTerminationDate'<NEW_LIN... | ) indexes.get(0)); |
380,586 | public static IntegrationFlowBuilder from(IntegrationFlow other) {<NEW_LINE>Map<Object, String> integrationComponents = other.getIntegrationComponents();<NEW_LINE>Assert.notNull(integrationComponents, () -> "The provided integration flow to compose from '" + other + "' must be declared as a bean in the application cont... | ConsumerEndpointFactoryBean) lastIntegrationComponentFromOther).getHandler(); |
748,655 | public static CLCapabilities createPlatformCapabilities(long cl_platform_id) {<NEW_LINE>Set<String> supportedExtensions = new HashSet<>(32);<NEW_LINE>// Parse PLATFORM_EXTENSIONS string<NEW_LINE>CL.addExtensions(getPlatformInfoStringASCII(cl_platform_id, CL_PLATFORM_EXTENSIONS), supportedExtensions);<NEW_LINE>// Enumer... | CL.addExtensions(extensionsString, supportedExtensions); |
753,068 | protected AstNode visitQuery(final Query node, final C context) {<NEW_LINE>final Optional<AstNode> result = plugin.apply(node, new Context<>(context, this));<NEW_LINE>if (result.isPresent()) {<NEW_LINE>return result.get();<NEW_LINE>}<NEW_LINE>final Select select = (Select) rewriter.apply(node.getSelect(), context);<NEW... | apply(exp, context))); |
722,023 | public void initialize(WizardDescriptor wizard) {<NEW_LINE>wiz = wizard;<NEW_LINE>delegateIterator.initialize(wizard);<NEW_LINE>superclassPanelCurrent = false;<NEW_LINE>if (superclassPanel == null && specifySuperclass) {<NEW_LINE>superclassPanel = new SuperclassWizardPanel();<NEW_LINE>ResourceBundle bundle = NbBundle.g... | newContentData, 0, contentData.length); |
1,234,663 | public Map<String, Object> toKarateJson() {<NEW_LINE>Map<String, Object> map = new HashMap();<NEW_LINE>// these first few are only for the ease of reports<NEW_LINE>// note that they are not involved in the reverse fromKarateJson()<NEW_LINE>map.put("durationMillis", getDurationMillis());<NEW_LINE>List<String> tags = sce... | map.put("stepResults", list); |
1,797,803 | public RoleList requestUserRoles(Long userId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'userId' is set<NEW_LINE>if (userId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'userId' when calling requestUs... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
984,681 | public Integer localESAInstall() {<NEW_LINE>data.put(ACTION_RESULT, OK);<NEW_LINE>data.put(ACTION_INSTALL_RESULT, null);<NEW_LINE>data.put(ACTION_ERROR_MESSAGE, null);<NEW_LINE>data.put(ACTION_EXCEPTION_STACKTRACE, null);<NEW_LINE>try {<NEW_LINE>InstallKernelImpl installKernel = (InstallKernelImpl) this.installKernel;<... | String) data.get(TO_EXTENSION); |
1,565,143 | public void registerMetrics(MetricsCollector metricsCollector) {<NEW_LINE>SystemConfig systemConfig = (SystemConfig) SingletonRegistry.INSTANCE.getSingleton(SystemConfig.HERON_SYSTEM_CONFIG);<NEW_LINE>int interval = (int) systemConfig.getHeronMetricsExportInterval().getSeconds();<NEW_LINE>metricsCollector.registerMetri... | registerMetric("__jvm-buffer-pool", jvmBufferPoolMemoryUsage, interval); |
714,042 | public static DescribeAccountListResponse unmarshall(DescribeAccountListResponse describeAccountListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAccountListResponse.setRequestId(_ctx.stringValue("DescribeAccountListResponse.RequestId"));<NEW_LINE>describeAccountListResponse.setMessage<MASK><NEW_LINE>describeA... | (_ctx.stringValue("DescribeAccountListResponse.Message")); |
284,484 | private ArrayResultCursor showCreateView(String schemaName, String tableName, SqlShowCreateTable showCreateTable) {<NEW_LINE>ViewManager viewManager;<NEW_LINE>if (InformationSchema.NAME.equalsIgnoreCase(schemaName)) {<NEW_LINE>viewManager = InformationSchemaViewManager.getInstance();<NEW_LINE>} else if (RelUtils.inform... | , createView, "utf8", "utf8_general_ci" }); |
1,594,137 | protected void playImpl() {<NEW_LINE>if (isVideo) {<NEW_LINE>if (component == null && nativePlayer) {<NEW_LINE>// Mass source of confusion. If getVideoComponent() has been called, then<NEW_LINE>// we can't use the native player.<NEW_LINE>if (uri != null) {<NEW_LINE>moviePlayerPeer = nativeInstance.createNativeVideoCom... | nativeInstance.createNativeVideoComponent(data, onCompletionCallbackId); |
730,939 | private static List<Object> dataBagToRepeatedField(Builder containingMessageBuilder, FieldDescriptor fieldDescriptor, DataBag bag) {<NEW_LINE>ArrayList<Object> bagContents = new ArrayList<Object>((<MASK><NEW_LINE>Iterator<Tuple> bagIter = bag.iterator();<NEW_LINE>while (bagIter.hasNext()) {<NEW_LINE>Tuple tuple = bagIt... | int) bag.size()); |
135,953 | public void handleInsert(@NotNull InsertionContext context, LookupElement item) {<NEW_LINE>Editor editor = context.getEditor();<NEW_LINE>CharSequence documentText = context.getDocument().getImmutableCharSequence();<NEW_LINE>int offset = skipWhiteSpaces(editor.getCaretModel().getOffset(), documentText);<NEW_LINE>if (doc... | getCaretModel().moveToOffset(offset); |
1,347,190 | private void startLoadTask() {<NEW_LINE>if (disposable != null) {<NEW_LINE>disposable.dispose();<NEW_LINE>}<NEW_LINE>setListShown(false);<NEW_LINE>disposable = Observable.fromCallable(() -> {<NEW_LINE>GpodnetService service = new GpodnetService(AntennapodHttpClient.getHttpClient(), SynchronizationCredentials.getHosturl... | getListView().setEmptyView(txtvError); |
869,458 | static SSLProtocol valueOfString(String value) throws SQLServerException {<NEW_LINE>SSLProtocol protocol = null;<NEW_LINE>if (value.toLowerCase(Locale.ENGLISH).equalsIgnoreCase(SSLProtocol.TLS.toString())) {<NEW_LINE>protocol = SSLProtocol.TLS;<NEW_LINE>} else if (value.toLowerCase(Locale.ENGLISH).equalsIgnoreCase(SSLP... | ), null, 0, false); |
1,583,254 | public void emitPackagesIndex(APIDiff apiDiff, int indexType) {<NEW_LINE>// Add all the names of packages to a new list, to be sorted later<NEW_LINE>// Index[]<NEW_LINE>packageNames = new ArrayList();<NEW_LINE>boolean hasRemovals = false;<NEW_LINE>if (apiDiff.packagesRemoved.size() != 0)<NEW_LINE>hasRemovals = true;<NE... | oldsw = emitPackageIndexEntry(pkg, oldsw); |
1,771,412 | protected Subtitle decode(byte[] bytes, int length, boolean reset) throws SubtitleDecoderException {<NEW_LINE>parsableByteArray.reset(bytes, length);<NEW_LINE>String cueTextString = readSubtitleText(parsableByteArray);<NEW_LINE>if (cueTextString.isEmpty()) {<NEW_LINE>return Tx3gSubtitle.EMPTY;<NEW_LINE>}<NEW_LINE>// At... | int requestedVerticalPlacement = parsableByteArray.readUnsignedShort(); |
139,867 | private void migrateCountsStore(RecordDatabaseLayout directoryLayout, RecordDatabaseLayout migrationLayout, RecordFormats oldFormat, CursorContext cursorContext, MemoryTracker memoryTracker) throws IOException {<NEW_LINE>// Just read from the old store (nodes, relationships, highLabelId, highRelationshipTypeId). This w... | , oldFormat, new ScanOnOpenReadOnlyIdGeneratorFactory()); |
878,197 | private void addColumnRangePredicateToBuilder(Field field, KuduScannerBuilder scannerBuilder, String columnName, String value, String identifier) {<NEW_LINE>Type type = KuduDBValidationClassMapper.<MASK><NEW_LINE>ColumnSchema column = new ColumnSchema.ColumnSchemaBuilder(columnName, type).build();<NEW_LINE>KuduPredicat... | getValidTypeForClass(field.getType()); |
1,282,362 | public void dump_object_statistics() {<NEW_LINE>final String methodName = "dump_object_statistics()";<NEW_LINE>try {<NEW_LINE>OutputStreamWriter out = new OutputStreamWriter(System.out);<NEW_LINE>out.write("========================================================================");<NEW_LINE>out.write("-----------------... | object_cache.dump_htod_stats(out, true); |
518,434 | public final void quit() {<NEW_LINE>AgentInstanceContext agentInstanceContext = evalFollowedByNode.getContext().getAgentInstanceContext();<NEW_LINE>agentInstanceContext.getInstrumentationProvider().qPatternFollowedByQuit(evalFollowedByNode.factoryNode);<NEW_LINE>agentInstanceContext.getAuditProvider().patternInstance(f... | .getStatementContext().getPatternSubexpressionPoolSvc(); |
162,435 | protected void addLabel(IParameterEditor editor, Composite parent) {<NEW_LINE>if (editor == null || parent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>String parameterName = getControlLabelWithKeyboardShortcut(parameter.getName());<NEW_LINE>Label parameterNameLabel = new Label(parent, SWT.READ_ONLY)... | ICommandParameterDescriptor parameter = editor.getParameterDescriptor(); |
200,666 | public void write(org.apache.thrift.protocol.TProtocol prot, waitForFlush_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.isSe... | oprot.writeBinary(struct.startRow); |
1,088,879 | final PredictResult executePredict(PredictRequest predictRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(predictRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques... | (super.beforeMarshalling(predictRequest)); |
1,582,809 | /*<NEW_LINE>* We use a factory method here because we will not be using the same buffer specified for this method, so we<NEW_LINE>* require a bit of processing before actually calling a constructor (not that this could not be done at the<NEW_LINE>* constructor, but it gives us higher flexibility this way. Maybe in the ... | operatorOffset, newBuffer, nameLen, operatorLen); |
577,273 | public void deleteMedicalTranscriptionJob(DeleteMedicalTranscriptionJobRequest deleteMedicalTranscriptionJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMedicalTranscriptionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetr... | DeleteMedicalTranscriptionJobRequestMarshaller().marshall(deleteMedicalTranscriptionJobRequest); |
887,622 | final ListConnectionsResult executeListConnections(ListConnectionsRequest listConnectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | endClientExecution(awsRequestMetrics, request, response); |
342,652 | final PutJobFailureResultResult executePutJobFailureResult(PutJobFailureResultRequest putJobFailureResultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putJobFailureResultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
710,976 | public void checkPackage() {<NEW_LINE>if (epack == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EPUBVersion version = epack.getVersion();<NEW_LINE>if (version != null && version.equals(EPUBVersion.VERSION_3)) {<NEW_LINE>factory.newInstance(report, ValidationType.<MASK><NEW_LINE>factory.newInstance(report, ValidationTyp... | RENDITION, epack).validate(); |
127,963 | private void searchUsages(@Nonnull final AtomicBoolean findStartedBalloonShown) {<NEW_LINE>ProgressIndicator indicator = ProgressWrapper.unwrap(ProgressManager.<MASK><NEW_LINE>assert indicator != null : "must run find usages under progress";<NEW_LINE>TooManyUsagesStatus.createFor(indicator);<NEW_LINE>Alarm findUsagesSt... | getInstance().getProgressIndicator()); |
1,588,289 | private JComponent createDragger() {<NEW_LINE>// NOI18N<NEW_LINE>String className = UIManager.getString("Nb.MainWindow.Toolbar.Dragger");<NEW_LINE>if (null != className) {<NEW_LINE>try {<NEW_LINE>Class klzz = Lookup.getDefault().lookup(ClassLoader.class).loadClass(className);<NEW_LINE>Object inst = klzz.newInstance();<... | .getPredefinedCursor(Cursor.MOVE_CURSOR)); |
1,638,958 | public static KeyValuePart[] split(MatrixMeta matrixMeta, Vector vector) {<NEW_LINE>switch(vector.getType()) {<NEW_LINE>case T_DOUBLE_SPARSE:<NEW_LINE>case T_DOUBLE_DENSE:<NEW_LINE>return splitIntDoubleVector(matrixMeta, (IntDoubleVector) vector);<NEW_LINE>case T_FLOAT_SPARSE:<NEW_LINE>case T_FLOAT_DENSE:<NEW_LINE>retu... | "Unsupport vector type " + vector.getType()); |
1,819,248 | public void search() {<NEW_LINE>String query = getQuery().trim();<NEW_LINE>if (StringUtil.isBlank(query)) {<NEW_LINE>dialogService.notify(Localization.lang("Please enter a search string"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (stateManager.getActiveDatabase().isEmpty()) {<NEW_LINE>dialogService.notify<MASK><NEW_LIN... | (Localization.lang("Please open or start a new library before searching")); |
448,197 | public static int updateFeatures(LiteSession trainSession, String modelName, List<FeatureMap> featureMaps) {<NEW_LINE>if (trainSession == null || featureMaps == null || modelName == null || modelName.isEmpty()) {<NEW_LINE>logger.severe(Common.addTag("trainSession,featureMaps modelName cannot be null"));<NEW_LINE>return... | allocateDirect(by.remaining()); |
26,740 | private Mono<Response<Flux<ByteBuffer>>> powerOffWithResponseAsync(String resourceGroupName, String vmName, Boolean skipShutdown, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nu... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,304,068 | public static void zdemo7(int rows, int columns, boolean print) {<NEW_LINE>// for reliable benchmarks, call this method twice: once with small dummy parameters to "warm up" the jitter, then with your real work-load<NEW_LINE>System.out.println("\n\n");<NEW_LINE>System.out.println("now initializing... ");<NEW_LINE>final ... | .jet.math.Functions.functions; |
111,512 | protected Object doInBackground(Object... params) {<NEW_LINE>// Get accounts<NEW_LINE>mListAccount = new ArrayList<CharSequence>();<NEW_LINE>AccountManager accountManager = AccountManager.get(ActivityApp.this);<NEW_LINE>mAccounts = accountManager.getAccounts();<NEW_LINE>mSelection = new boolean[mAccounts.length];<NEW_L... | mAccounts[i].type)); |
1,159,159 | private Tuple2<int[], Order[]> parseOrder(String orderClause, String[] inputColNames) {<NEW_LINE>String[] <MASK><NEW_LINE>int[] orderIndices = new int[orders.length];<NEW_LINE>Order[] orderTypes = new Order[orders.length];<NEW_LINE>for (int i = 0; i < orders.length; i++) {<NEW_LINE>String[] localOrder = orders[i].trim(... | orders = orderClause.split(","); |
779,950 | final CreateBucketAccessKeyResult executeCreateBucketAccessKey(CreateBucketAccessKeyRequest createBucketAccessKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBucketAccessKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
463,256 | final GetRegistrationCodeResult executeGetRegistrationCode(GetRegistrationCodeRequest getRegistrationCodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRegistrationCodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,380,457 | // doIt<NEW_LINE>private String createFormat(MTable table) throws Exception {<NEW_LINE>log.info("Table Name:" + table.getTableName());<NEW_LINE>MColumn[] cols = table.getColumns(true);<NEW_LINE>String unique = null;<NEW_LINE>boolean fieldname = false;<NEW_LINE>for (MColumn col : cols) {<NEW_LINE>if (col.isIdentifier() ... | (MEXPFormat) sql.first(); |
1,791,061 | private void showTestResults(final boolean resultOk, @NonNull final String message, @NonNull final ExampleLocation location) {<NEW_LINE>app.runInUIThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>testResultsContainer.setVisibility(View.VISIBLE);<NEW_LINE>ImageView ivImage = tes... | (R.drawable.ic_action_alert)); |
986,180 | public void draw(@NonNull Canvas canvas) {<NEW_LINE>if (mNum < 3)<NEW_LINE>return;<NEW_LINE>final Rect rect = getBounds();<NEW_LINE>float r = rect.right / 2;<NEW_LINE>float x = r;<NEW_LINE>float y = r;<NEW_LINE>Path path = new Path();<NEW_LINE>for (int i = 0; i <= mNum; i++) {<NEW_LINE>float alpha = Double.valueOf(((2f... | canvas.drawPath(path, mPaint); |
1,118,710 | private TenantAddress updateTenantInfoAddress(Inspector insp, TenantAddress oldAddress) {<NEW_LINE>if (!insp.valid())<NEW_LINE>return oldAddress;<NEW_LINE>TenantAddress address = TenantAddress.empty().withCountry(getString(insp.field("country"), oldAddress.country())).withRegion(getString(insp.field("stateRegionProvinc... | , oldAddress.address())); |
72,120 | public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(this, "SipResolverTcpTransport: complete: entry: id=" + hashCode());<NEW_LINE>if (c_logger.isTraceDebugEnabled())<NEW_LINE>c_logger.traceDebug("SipResolverTcpTransport: c... | .getBuffer().flip(); |
1,408,291 | public void actionPerformed(ActionEvent arg0) {<NEW_LINE>UiUtils.submitUiMachineTask(() -> {<NEW_LINE>// Need to keep current focus owner so that the space bar can be<NEW_LINE>// used after the initial click. Otherwise, button focus is lost<NEW_LINE>// when table is updated<NEW_LINE>Component comp = MainFrame.get().get... | getSelection().getLocation()); |
73,609 | private void freeFloatingReferenceRecords(GCLogTrace trace, String line) {<NEW_LINE>if (collectionTypeForwardReference == GarbageCollectionTypes.Young) {<NEW_LINE>forwardReference = new G1Young(timeStampForwardReference, gcCauseForwardReference, trace.getPauseTime());<NEW_LINE>} else if (collectionTypeForwardReference ... | .add(extractPrintReferenceGC(line)); |
1,314,708 | public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select (select id from SupportBean_S0#length(1000) where p00=s1.p10 and p00=s3.p30) as ids0 " + "from SupportBean_S1#keepall as s1, SupportBean_S2#keepall as s2, SupportBean_S3#keepall as s3 where s1.id = s2.id and s2.id = s3.id";<NEW_... | assertEqualsNew("s0", "ids0", null); |
588,405 | public void initializeState(FunctionInitializationContext context) throws Exception {<NEW_LINE>Preconditions.checkState(this.checkpointedState == null, "The " + getClass().getSimpleName() + " has already been initialized.");<NEW_LINE>this.checkpointedState = context.getOperatorStateStore().getListState(new ListStateDes... | globalModificationTime = retrievedStates.get(0); |
497,016 | private int findOffset(IFile file, int line, int column) {<NEW_LINE>int[] lineOffsets = getResFileToContent().computeIfAbsent(file, f -> {<NEW_LINE>try {<NEW_LINE>String content = getFileContent();<NEW_LINE>ArrayList<Integer> lineOffsetList = new ArrayList<>();<NEW_LINE>lineOffsetList.add(0);<NEW_LINE>for (int index = ... | ] = lineOffsetList.get(i); |
168,198 | public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> superobjs) {<NEW_LINE>List<String> <MASK><NEW_LINE>for (Map.Entry<String, ModelsMap> modelEntry : superobjs.entrySet()) {<NEW_LINE>// process enum in models<NEW_LINE>List<ModelMap> models = modelEntry.getValue().getModels();<NEW_LINE>for (ModelMa... | toRemove = new ArrayList<>(); |
532,671 | @Operation(summary = "List measurement events for multiple assignments", description = "List measurement events for multiple assignments")<NEW_LINE>public Response listMeasurementsForAssignments(@Parameter(description = "Page number", required = false) @QueryParam("page") @DefaultValue("1") int page, @Parameter(descrip... | UUID> ids = getDeviceAssignmentIds(bulk); |
710,440 | public void writeTagValuePayload(ByteBuffer buf) {<NEW_LINE>long value = this.value.longValue();<NEW_LINE>if (value < 0xff) {<NEW_LINE>buf.writeByte((int) value);<NEW_LINE>} else if (value <= 0xffFF) {<NEW_LINE>buf.writeShort((int) value);<NEW_LINE>} else if (value <= 0xffFFff) {<NEW_LINE>buf.writeByte((int) (value >> ... | ) (value >> 32)); |
136,046 | private static void assignInitializer(FieldSpec.Builder fieldBuilder, SpecModel specModel, PropModel prop, PropDefaultModel propDefault) {<NEW_LINE>SpecElementType type = specModel.getSpecElementType();<NEW_LINE>if (isKotlinPropDefaultWithGetterMethod(specModel, propDefault)) {<NEW_LINE>final String propName = prop.get... | ), prop.getName()); |
1,413,495 | private void unpackAotProxyHint(AnnotationNode typeInfo, HintDeclaration ch) {<NEW_LINE>List<Object> values = typeInfo.values;<NEW_LINE>String targetClassName = "java.lang.Object";<NEW_LINE>List<org.objectweb.asm.Type> interfaces = new ArrayList<>();<NEW_LINE>List<String> interfaceNames = new ArrayList<>();<NEW_LINE>in... | String intfaceName = intface.getClassName(); |
1,681,952 | public static DetectIPCPedestrianResponse unmarshall(DetectIPCPedestrianResponse detectIPCPedestrianResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectIPCPedestrianResponse.setRequestId(_ctx.stringValue("DetectIPCPedestrianResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<ImageInfoListItem> imageI... | + "].Boxes[" + k + "]")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.