idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,803,511 | private void exportTheEmptyBinaryNamespaceAt(Node atNode, AddAt addAt, NodeTraversal t) {<NEW_LINE>if (currentScript.declareLegacyNamespace) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String binaryNamespaceString = currentScript.getBinaryNamespace();<NEW_LINE>AstFactory.Type moduleType = type(currentScript.rootNode);<NEW_L... | astFactory.createName(binaryNamespaceString, moduleType); |
1,720,262 | final CancelJobResult executeCancelJob(CancelJobRequest cancelJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | invoke(request, responseHandler, executionContext); |
1,224,070 | private void zoneFailurePathToSlime(Cursor object, CapacityChecker.HostFailurePath failurePath) {<NEW_LINE>object.setLong("totalHosts", capacityChecker.getHosts().size());<NEW_LINE>object.setLong("couldLoseHosts", failurePath.hostsCausingFailure.size());<NEW_LINE>failurePath.failureReason.host.ifPresent(host -> object.... | ), failurePath.failureReason.allocationFailures); |
898,855 | public int encodeString(KrollDict args) {<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_DEST)) {<NEW_LINE>throw new IllegalArgumentException("dest was not specified for encodeString");<NEW_LINE>}<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_SOURCE) || args.get(TiC.PROPERTY_SOURCE) == null) {<NEW_LINE>throw new IllegalArgu... | args.get(TiC.PROPERTY_DEST); |
671,078 | public ValidateResult validate(Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return SUCCESS;<NEW_LINE>}<NEW_LINE>if (value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof BigInteger || value instanceof AtomicInteger || value instanceof AtomicLo... | "const not match, expect %s, but %s", this.value, value); |
1,844,233 | protected Node visitShowRoles(ShowRoles node, Void context) {<NEW_LINE>Optional<String> catalog = processRoleCommandCatalog(metadata, session, node, node.getCatalog().map(c -> c.getValue().toLowerCase(ENGLISH)));<NEW_LINE>if (node.isCurrent()) {<NEW_LINE>accessControl.checkCanShowCurrentRoles(session.toSecurityContext(... | getIdentity().getEnabledRoles()); |
148,018 | public void run() {<NEW_LINE>try {<NEW_LINE>ThreadMXBean bean = ManagementFactory.getThreadMXBean();<NEW_LINE>for (int i = 0; i < repeat; i++) {<NEW_LINE>List<String> list = new ArrayList<>();<NEW_LINE>int deadLockedCount = bean.findDeadlockedThreads() == null ? 0 : bean.findDeadlockedThreads().length;<NEW_LINE>list.ad... | Servers.centerServer.dump(writer); |
618,069 | public final void run() {<NEW_LINE>if (!Display.getInstance().isEdt()) {<NEW_LINE>throw new IllegalStateException("This method should not be invoked by external code!");<NEW_LINE>}<NEW_LINE>if (styleListenerArray) {<NEW_LINE>Object[] <MASK><NEW_LINE>fireStyleChangeSync((StyleListener[]) iPending, (String) p[0], (Style)... | p = (Object[]) iPendingEvent; |
487,988 | public StepExecutionResult execute(ExecutionContext context) throws IOException {<NEW_LINE>Path inputFile = filesystem.getPathForRelativePath(inputPath);<NEW_LINE>Path outputFile = filesystem.getPathForRelativePath(outputPath);<NEW_LINE>try (ZipInputStream in = new ZipInputStream(new BufferedInputStream(Files.newInputS... | CustomZipEntry customEntry = new CustomZipEntry(entry); |
398,802 | public void begin(int timeout) throws NotSupportedException, SystemException {<NEW_LINE>// Check if tx already exists<NEW_LINE>if (transactions.get() != null) {<NEW_LINE>throw new NotSupportedException(sm.getString("enterprise_distributedtx.notsupported_nested_transaction"));<NEW_LINE>}<NEW_LINE>setDelegate();<NEW_LINE... | (sm.getString("enterprise_distributedtx.notsupported_nested_transaction")); |
159,724 | public void submit() throws LinkisClientRuntimeException {<NEW_LINE>StringBuilder infoBuilder = new StringBuilder();<NEW_LINE>infoBuilder.append("connecting to linkis gateway:").append(getJobOperator().getServerUrl());<NEW_LINE>LogUtils.getInformationLogger().info(infoBuilder.toString());<NEW_LINE>data.updateByOperResu... | info(infoBuilder.toString()); |
1,329,761 | public List<Integer> execute(final ConcurrentSkipListSet<Integer> workersOnDisabledVms, final int numRunningWorkers, final int totalNumWorkers, final long lastWorkerMigrationTimestamp) {<NEW_LINE>if (lastWorkerMigrationTimestamp > (clock.now() - configuration.getIntervalMs())) {<NEW_LINE>return Collections.emptyList();... | int numWorkersOnDisabledVM = workersOnDisabledVms.size(); |
1,294,111 | protected void initGoalState(ClusterModel clusterModel, OptimizationOptions optimizationOptions) throws OptimizationFailureException {<NEW_LINE>_brokersAllowedReplicaMove = GoalUtils.aliveBrokersNotExcludedForReplicaMove(clusterModel, optimizationOptions);<NEW_LINE>if (_brokersAllowedReplicaMove.isEmpty()) {<NEW_LINE>/... | > excludedTopics = optimizationOptions.excludedTopics(); |
829,878 | String parseString() throws IOException {<NEW_LINE>final String dataString;<NEW_LINE>int totalLength = 0;<NEW_LINE>byte partialLength = stream.readByte();<NEW_LINE>int numBytes = 0;<NEW_LINE>while ((partialLength & 0x80) > 0) {<NEW_LINE>totalLength += (partialLength & 0x7F) << (7 * numBytes);<NEW_LINE>partialLength = s... | ] stringBytes = new byte[totalLength]; |
1,822,417 | private void compareAndWriteQuota(String bundle, ResourceQuota oldQuota, ResourceQuota newQuota) throws Exception {<NEW_LINE>boolean needUpdate = true;<NEW_LINE>if (!oldQuota.getDynamic() || (Math.abs(newQuota.getMsgRateIn() - oldQuota.getMsgRateIn()) < RESOURCE_QUOTA_MIN_MSGRATE_IN && Math.abs(newQuota.getMsgRateOut()... | bundle, newQuota).join(); |
514,496 | public StandardResponseDocument saveLocation(LocationDocument req) throws XFireFault {<NEW_LINE>authenticate(webServiceName, "saveLocation");<NEW_LINE>StandardResponseDocument ret = StandardResponseDocument.Factory.newInstance();<NEW_LINE>StandardResponse resp = ret.addNewStandardResponse();<NEW_LINE>Location rloc = re... | setC_Country_ID(rloc.getCCountryID()); |
1,478,211 | public static Application toV4Application(final com.netflix.genie.common.dto.Application v3Application) throws IllegalArgumentException {<NEW_LINE>final ApplicationMetadata.Builder metadataBuilder = new ApplicationMetadata.Builder(v3Application.getName(), v3Application.getUser(), v3Application.getVersion(), toV4Applica... | ).ifPresent(metadataBuilder::withType); |
933,645 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>if (sentence.equals("AA55,HB")) {<NEW_LINE>if (channel != null) {<NEW_LINE>channel.writeAndFlush(new NetworkMessage("55AA,HB,OK\r\n", remoteAddress));<NEW_LINE>}<NEW_LIN... | setTime(parser.nextDateTime()); |
266,307 | public static PasswdRuleConfig parse(JSONObject config) {<NEW_LINE>Short min = config.getShort("min");<NEW_LINE>Short max = config.getShort("max");<NEW_LINE>Short letter = config.getShort("letter");<NEW_LINE>Short digit = config.getShort("digit");<NEW_LINE>Short upperCase = config.getShort("upperCase");<NEW_LINE>Short ... | throw new IllegalArgumentException("Invalid password rule config: letter = " + minLetter); |
596,041 | public void init() throws TaskInitException {<NEW_LINE>super.init();<NEW_LINE>if (Util.isNullOrNil(config.getApkPath())) {<NEW_LINE>throw new TaskInitException(TAG + "---APK-FILE-PATH can not be null!");<NEW_LINE>}<NEW_LINE>Log.i(TAG, "inputPath:%s", config.getApkPath());<NEW_LINE>inputFile = new File(config.getApkPath... | config.getApkPath() + "' is not exist!"); |
1,757,099 | private void outputAllRowsPerMatch(PageBuilder pageBuilder, MatchResult matchResult, int searchStart, int searchEnd) {<NEW_LINE>// window functions are not allowed with ALL ROWS PER MATCH<NEW_LINE>checkState(windowFunctions.isEmpty(), "invalid node: window functions specified with ALL ROWS PER MATCH");<NEW_LINE>ArrayVi... | exclusions.get(index + 1); |
1,730,605 | private String runProcess(final ProcessInfo pi) throws Exception {<NEW_LINE>log.debug("Run process: {}", pi);<NEW_LINE>final ProcessExecutionResult result = // .switchContextWhenRunning() // NOTE: not needed, context was already switched in caller method<NEW_LINE>ProcessExecutor.builder(pi).executeSync().getResult();<N... | (result.getPinstanceId())); |
978,167 | public void underlineText(int color, float width, AnnotationType type) {<NEW_LINE>if (ctr == null || ctr.getDocumentController() == null || ctr.getDocumentModel() == null) {<NEW_LINE>LOG.d("Can't underlineText");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int first = ctr.getDocumentController().getFirstVisiblePage();<N... | .right, rect.top)); |
555,070 | public void marshall(JournalKinesisStreamDescription journalKinesisStreamDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (journalKinesisStreamDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.... | journalKinesisStreamDescription.getExclusiveEndTime(), EXCLUSIVEENDTIME_BINDING); |
1,048,482 | public static void validateGsiColumns(String schemaName, String sourceTableName, boolean isSingle, boolean isBroadcast, SqlNode dbPartitionBy, SqlNode tablePartitionBy, ExecutionContext executionContext) {<NEW_LINE>List<TableMeta> gsiTableMeta = GlobalIndexMeta.getIndex(sourceTableName, schemaName, IndexStatus.ALL, exe... | TddlRuntimeException(ErrorCode.ERR_PARTITION_GSI_MISSING_COLUMN, errMsg); |
624,343 | public static void execute(ManagerConnection c) {<NEW_LINE>ByteBufferHolder buffer = c.allocate();<NEW_LINE>IPacketOutputProxy proxy = PacketOutputProxyFactory.getInstance().createProxy(c, buffer);<NEW_LINE>proxy.packetBegin();<NEW_LINE>// write header<NEW_LINE>proxy = header.write(proxy);<NEW_LINE>// write fields<NEW_... | proxy = lastEof.write(proxy); |
1,748,478 | private List<ValidationEvent> validateResource(Model model, ResourceShape resource) {<NEW_LINE>List<ValidationEvent> events = new ArrayList<>();<NEW_LINE>// Note: Whether or not these use a valid bindings is validated in ResourceIdentifierBindingValidator.<NEW_LINE>resource.getPut().flatMap(model::getShape).flatMap(Sha... | ).ifPresent(events::add); |
275,091 | private static void sub(final int[] result, final int[] x, final int[] y) {<NEW_LINE>int index;<NEW_LINE>int borrow;<NEW_LINE>// Subtract y from x to generate the intermediate result.<NEW_LINE>borrow = 0;<NEW_LINE>for (index = 0; index < NUM_LIMBS_255BIT; ++index) {<NEW_LINE>borrow = x[index] - y[index] - ((borrow >> 2... | ) & 0x01)) & 19); |
525,637 | public void onScrolled(@NonNull final RecyclerView rv, final int dx, final int dy) {<NEW_LINE>boolean currentlyAtBottom = !rv.canScrollVertically(1);<NEW_LINE>boolean currentlyAtZoomScrollHeight = isAtZoomScrollHeight();<NEW_LINE>int positionId = getHeaderPositionId();<NEW_LINE>if (currentlyAtBottom && !wasAtBottom) {<... | composeDivider, 50, View.INVISIBLE); |
988,006 | private void addOrUpdateClickHouseSinkFunction(DataFlowInfo dataFlowInfo) throws Exception {<NEW_LINE>long dataFlowId = dataFlowInfo.getId();<NEW_LINE>SinkInfo sinkInfo = dataFlowInfo.getSinkInfo();<NEW_LINE>if (!(sinkInfo instanceof ClickHouseSinkInfo)) {<NEW_LINE>LOG.error("SinkInfo type {} of dataFlow {} doesn't mat... | clickHouseSinkFunction.setRuntimeContext(getRuntimeContext()); |
539,737 | public void visitToken(DetailAST ast) {<NEW_LINE>if (isInTypeBlock(ast)) {<NEW_LINE>final DetailAST modifiers = <MASK><NEW_LINE>switch(ast.getType()) {<NEW_LINE>case TokenTypes.ENUM_DEF:<NEW_LINE>if (violateImpliedStaticOnNestedEnum && modifiers.findFirstToken(TokenTypes.LITERAL_STATIC) == null) {<NEW_LINE>log(ast, MSG... | ast.findFirstToken(TokenTypes.MODIFIERS); |
619,863 | public void announceSegments(Iterable<DataSegment> segments) throws IOException {<NEW_LINE>SegmentZNode segmentZNode = new SegmentZNode(makeServedSegmentPath());<NEW_LINE>Set<DataSegment> <MASK><NEW_LINE>List<DataSegmentChangeRequest> changesBatch = new ArrayList<>();<NEW_LINE>int byteSize = 0;<NEW_LINE>int count = 0;<... | batch = new HashSet<>(); |
642,787 | public RelNode visit(QueryOperation other) {<NEW_LINE>if (other instanceof PlannerQueryOperation) {<NEW_LINE>return ((PlannerQueryOperation) other).getCalciteTree();<NEW_LINE>} else if (other instanceof DataStreamQueryOperation) {<NEW_LINE>return convertToDataStreamScan((DataStreamQueryOperation<?>) other);<NEW_LINE>} ... | = (JavaDataStreamQueryOperation<?>) other; |
486,301 | public static QueryDeviceResponse unmarshall(QueryDeviceResponse queryDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceResponse.setRequestId<MASK><NEW_LINE>queryDeviceResponse.setSuccess(_ctx.booleanValue("QueryDeviceResponse.Success"));<NEW_LINE>queryDeviceResponse.setCode(_ctx.stringValue("QueryDeviceR... | (_ctx.stringValue("QueryDeviceResponse.RequestId")); |
486,908 | private boolean performVersionCheck(final MetaModel meta, final Component component) {<NEW_LINE>final UnirestInstance ui = UnirestFactory.getUnirestInstance();<NEW_LINE>final String url = String.format(baseUrl + VERSION_QUERY_URL, component.getPurl().getName().toLowerCase());<NEW_LINE>try {<NEW_LINE>final HttpResponse<... | "accept", "application/json").asJson(); |
718,290 | public void derivByGaussGausThenDeriv() {<NEW_LINE>System.out.println("Dx*(G*(G*I))");<NEW_LINE>ImageGradient<T, T> funcDeriv = FactoryDerivative.three(imageType, imageType);<NEW_LINE>T blur = GeneralizedImageOps.createSingleBand(imageType, width, height);<NEW_LINE>T blur2 = GeneralizedImageOps.createSingleBand(imageTy... | createSingleBand(imageType, width, height); |
997,405 | public static boolean verifySignature(InputStream imgIn, X509Certificate cert) {<NEW_LINE>try {<NEW_LINE>// Read the header for size<NEW_LINE>byte[] hdr = new byte[BOOT_IMAGE_HEADER_SIZE_MAXIMUM];<NEW_LINE>if (fullRead(imgIn, hdr) != hdr.length) {<NEW_LINE>System.err.println("Unable to read image header");<NEW_LINE>ret... | System.err.println("Signature is VALID"); |
183,486 | private void resetBinaryColumn(int i, ResultSetMetaData md, int bufferSize, TColumn col) throws SQLException {<NEW_LINE>col.nulls.clear();<NEW_LINE>switch(md.getColumnType(i)) {<NEW_LINE>case java.sql.Types.TINYINT:<NEW_LINE>case java.sql.Types.SMALLINT:<NEW_LINE>case java.sql.Types.INTEGER:<NEW_LINE>case java.sql.Type... | .data.real_col.clear(); |
396,881 | public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>mUri = sampleUris().createSampleUri(ImageUriProvider.ImageSize.L, ImageUriProvider.Orientation.LANDSCAPE);<NEW_LINE>mFullDraweeView = (SimpleDraweeView) view.findViewById(R.id.drawee_view_full);<NEW_LINE>mFullDraweeView.setContro... | (R.id.btn_resize_parent_bounds)); |
1,317,085 | public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>final LayoutTreeComponent treeComponent = myArtifactEditor.getLayoutTreeComponent();<NEW_LINE>final LayoutTreeSelection selection = treeComponent.getSelection();<NEW_LINE>final CompositePackagingElement<?> parent = selection.getCommonParentElement();<NEW_... | ), dialog.getArtifactType()); |
1,178,418 | private static byte[] MFcrypt(byte[] P, byte[] S, int N, int r, int p, int dkLen) {<NEW_LINE>int MFLenBytes = r * 128;<NEW_LINE>byte[] bytes = SingleIterationPBKDF2(<MASK><NEW_LINE>int[] B = null;<NEW_LINE>try {<NEW_LINE>int BLen = bytes.length >>> 2;<NEW_LINE>B = new int[BLen];<NEW_LINE>Pack.littleEndianToInt(bytes, 0... | P, S, p * MFLenBytes); |
847,648 | private EntityDef addDisplayDataFieldEntity() {<NEW_LINE>final String guid = "46f9ea33-996e-4c62-a67d-803df75ef9d4";<NEW_LINE>final String name = "DisplayDataField";<NEW_LINE>final String description = "A data display field.";<NEW_LINE>final String descriptionGUID = null;<NEW_LINE>final String superTypeName = "SchemaAt... | (superTypeName), description, descriptionGUID); |
1,273,974 | public static Bitmap centerCrop(@NonNull BitmapPool pool, @NonNull Bitmap inBitmap, int width, int height) {<NEW_LINE>if (inBitmap.getWidth() == width && inBitmap.getHeight() == height) {<NEW_LINE>return inBitmap;<NEW_LINE>}<NEW_LINE>// From ImageView/Bitmap.createScaledBitmap.<NEW_LINE>final float scale;<NEW_LINE>fina... | m.setScale(scale, scale); |
1,130,428 | public void commitBlobBlocks(String container, String blob, BlockList blockList, CommitBlobBlocksOptions options) throws ServiceException {<NEW_LINE>String path = createPathFromContainer(container);<NEW_LINE>WebResource webResource = getResource(options).path(path).path(blob).queryParam("comp", "blocklist");<NEW_LINE>B... | builder, options.getMetadata()); |
1,078,302 | public ThemeValue unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThemeValue themeValue = new ThemeValue();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | class).unmarshall(context)); |
1,457,069 | // Submit a group of tasks to timed invokeAny, where all are able to complete successfully.<NEW_LINE>// Verify that invokeAny returns the result of one of the successful tasks.<NEW_LINE>@Test<NEW_LINE>public void testInvokeAnyTimedAllSuccessful() throws Exception {<NEW_LINE>PolicyExecutor executor = provider.create("te... | duration + "ns", duration < TIMEOUT_NS); |
1,796,009 | protected boolean prepareStart(SimpleTypeInformation<V> in) {<NEW_LINE>if (scalingreference == ScalingReference.MINMAX && minima.length != 0 && maxima.length != 0) {<NEW_LINE>dimensionality = minima.length;<NEW_LINE>scalingreferencevalues = new double[dimensionality];<NEW_LINE>randomPerAttribute = new Random[dimensiona... | return (scalingreferencevalues.length == 0); |
356,356 | public void update(DefinitionLoader loader) throws Exception {<NEW_LINE>definitionCache = reinit(container);<NEW_LINE>String baseUri = loader.getBaseURI();<NEW_LINE>definitionCache.setType(DefinitionCacheTypeConfig.TEXT);<NEW_LINE>Map<String, XmlObject> urls = SchemaUtils.getDefinitionParts(loader);<NEW_LINE>definition... | DocumentFragment) domNode).getFirstChild(); |
274,185 | private void printInterleaveAverage(AutoTypeImage imageIn) {<NEW_LINE><MASK><NEW_LINE>String outputName = imageIn.getSingleBandName();<NEW_LINE>out.print("\t/**\n" + "\t * Converts a {@link " + inputName + "} into a {@link " + outputName + "} by computing the average value of each pixel\n" + "\t * across all the bands.... | String inputName = imageIn.getInterleavedName(); |
1,613,585 | private void acquire0(T object, CompletableFuture<T> res) {<NEW_LINE>if (object != null) {<NEW_LINE>idleCount.decrementAndGet();<NEW_LINE>if (isTestOnAcquire()) {<NEW_LINE>factory.validate(object).whenComplete((state, throwable) -> {<NEW_LINE>if (!isPoolActive()) {<NEW_LINE>res.completeExceptionally(POOL_SHUTDOWN);<NEW... | getObjectCount() + getCreationInProgress()); |
1,620,153 | final GetPermissionPolicyResult executeGetPermissionPolicy(GetPermissionPolicyRequest getPermissionPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPermissionPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | invoke(request, responseHandler, executionContext); |
1,313,482 | public boolean visit(SQLSetStatement x) {<NEW_LINE>print0(ucase ? "SET " : "set ");<NEW_LINE>SQLSetStatement.<MASK><NEW_LINE>if (option != null) {<NEW_LINE>print(option.name());<NEW_LINE>print(' ');<NEW_LINE>}<NEW_LINE>List<SQLAssignItem> items = x.getItems();<NEW_LINE>for (int i = 0; i < items.size(); i++) {<NEW_LINE>... | Option option = x.getOption(); |
1,247,004 | public static FitData<Circle2D_F64> averageCircle_F64(List<Point2D_F64> points, @Nullable DogArray_F64 optional, @Nullable FitData<Circle2D_F64> outputStorage) {<NEW_LINE>if (outputStorage == null) {<NEW_LINE>outputStorage = new FitData<>(new Circle2D_F64());<NEW_LINE>}<NEW_LINE>if (optional == null) {<NEW_LINE>optiona... | x = sumX / (double) N; |
605,852 | // End of method isNeedleSafe<NEW_LINE>private void printPositions() {<NEW_LINE>int column = 1;<NEW_LINE>// Loop iterator<NEW_LINE>int ii = 0;<NEW_LINE>int numSpaces = 0;<NEW_LINE>int row = 1;<NEW_LINE>// Begin loop through all rows<NEW_LINE>for (row = 1; row <= MAX_NUM_ROWS; row++) {<NEW_LINE>numSpaces = 9;<NEW_LINE>/... | System.out.print("*"); |
981,980 | private static String addCommentsToDDL(DBRProgressMonitor monitor, OracleTableBase object, String ddl) {<NEW_LINE>StringBuilder ddlBuilder = new StringBuilder(ddl);<NEW_LINE>String objectFullName = object.getFullyQualifiedName(DBPEvaluationContext.DDL);<NEW_LINE>String objectComment = object.getComment(monitor);<NEW_LI... | ).append(SQLConstants.DEFAULT_STATEMENT_DELIMITER); |
954,113 | public static void boot(boolean cli) {<NEW_LINE>// delete files in the temp folder<NEW_LINE>cleanupAsync();<NEW_LINE>// shutdown hooks<NEW_LINE>Runtime.getRuntime().addShutdownHook(new Thread(() -> {<NEW_LINE>for (Process proc : createdProcesses) proc.destroy();<NEW_LINE>SettingsSerializer.saveSettings();<NEW_LINE>clea... | File(s) }, true); |
522,216 | private void handle(APIGetCandidateBackupStorageForCreatingImageMsg msg) {<NEW_LINE>PrimaryStorageVO ps;<NEW_LINE>if (msg.getVolumeUuid() != null) {<NEW_LINE>String sql = "select ps from PrimaryStorageVO ps, VolumeVO vol where ps.uuid = vol.primaryStorageUuid" + " and vol.uuid = :uuid";<NEW_LINE>TypedQuery<PrimaryStora... | setParameter("bsState", BackupStorageState.Enabled); |
310,282 | public Object evaluate(DeferredObject[] arg0) throws HiveException {<NEW_LINE>Set<InspectableObject> objects = new TreeSet<InspectableObject>();<NEW_LINE>for (int i = 0; i < arg0.length; ++i) {<NEW_LINE>Object undeferred = arg0[i].get();<NEW_LINE>for (int j = 0; j < listInspectorArr[i].getListLength(undeferred); ++j) {... | inspObj.o, inspObj.oi); |
771,687 | public Object calculate(Context ctx) {<NEW_LINE>Machines mcHS = new Machines();<NEW_LINE>String path = null;<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("sync" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Obj... | getLeafExpression().calculate(ctx); |
513,949 | public float[] demodulate(float[] i, float[] q) {<NEW_LINE>VectorUtilities.checkComplexArrayLength(i, q, VECTOR_SPECIES);<NEW_LINE>if (mIBuffer.length != (i.length + BUFFER_OVERLAP)) {<NEW_LINE>mIBuffer = new float[i.length + BUFFER_OVERLAP];<NEW_LINE>mQBuffer = new float[q.length + BUFFER_OVERLAP];<NEW_LINE>}<NEW_LINE... | fromArray(VECTOR_SPECIES, mIBuffer, bufferPointer); |
948,366 | public static void generateMipMaps(Image image) {<NEW_LINE>int width = image.getWidth();<NEW_LINE>int height = image.getHeight();<NEW_LINE>Image current = image;<NEW_LINE>ArrayList<ByteBuffer> output = new ArrayList<>();<NEW_LINE>int totalSize = 0;<NEW_LINE>while (height >= 1 || width >= 1) {<NEW_LINE>output.add(curren... | image.setData(0, combinedData); |
567,893 | public static DescribeAntChainMiniAppBrowserQRCodeAuthorizedUsersV2Response unmarshall(DescribeAntChainMiniAppBrowserQRCodeAuthorizedUsersV2Response describeAntChainMiniAppBrowserQRCodeAuthorizedUsersV2Response, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainMiniAppBrowserQRCodeAuthorizedUsersV2Response.setReques... | = new ArrayList<AuthorizedUserListItem>(); |
1,708,922 | public static void doCopy(File repository, File sourceFile, File destFile, boolean bAfter, OutputLogger logger) throws HgException {<NEW_LINE>if (repository == null)<NEW_LINE>return;<NEW_LINE>List<String> command = new ArrayList<String>();<NEW_LINE>command.add(getHgCommand());<NEW_LINE>command.add(HG_COPY_CMD);<NEW_LIN... | .length() + 1)); |
832,849 | public Message createMessage(BlockFactory blockFactory, RLPList list) {<NEW_LINE>RLPList message = (RLPList) RLP.decode2(list.get(1).getRLPData()).get(0);<NEW_LINE>byte[] rlpId = list.get(0).getRLPData();<NEW_LINE>long id = rlpId == null ? 0 : BigIntegers.fromUnsignedByteArray(rlpId).longValue();<NEW_LINE>RLPList param... | new BlockIdentifier((RLPList) param); |
284,193 | private String buildAndGetRuleParams(final CreateUpdateRuleDetails ruleDetails, final String ruleUUID, final boolean isCreatedNew) {<NEW_LINE>Map<String, Object> newJobParams;<NEW_LINE>try {<NEW_LINE>newJobParams = mapper.readValue(ruleDetails.getRuleParams(), new TypeReference<Map<String, Object>>() {<NEW_LINE>});<NEW... | "ruleType", ruleDetails.getRuleType()); |
944,091 | private void drawMap() {<NEW_LINE>System.out.println("MAP OF THE CITY OF HYATTSVILLE");<NEW_LINE>System.out.println();<NEW_LINE>System.out.println(" -----1-----2-----3-----4-----");<NEW_LINE>int k = 3;<NEW_LINE>for (int i = 1; i < 5; i++) {<NEW_LINE>System.out.println("-");<NEW_LINE>System.out.println("-");<NEW_LINE><M... | System.out.println("-"); |
72,982 | public static ClientMessage encodeRequest(java.lang.String name, @Nullable java.util.Collection<com.hazelcast.client.impl.protocol.task.dynamicconfig.ListenerConfigHolder> listenerConfigs, int readBatchSize, boolean statisticsEnabled, java.lang.String topicOverloadPolicy, @Nullable com.hazelcast.internal.serialization.... | StringCodec.encode(clientMessage, topicOverloadPolicy); |
854,397 | public void paint(Graphics g) {<NEW_LINE>for (int i = 0; i < Main.height * rectSize; i += rectSize) {<NEW_LINE>for (int j = 0; j < Main.width * rectSize; j += rectSize) {<NEW_LINE>g.setColor(Color.DARK_GRAY);<NEW_LINE>if (i / rectSize == snakeHead.getX() && j / rectSize == snakeHead.getY())<NEW_LINE>g.setColor(Color.wh... | g.setColor(Color.black); |
1,642,096 | private void executeCommand(String slicePath) {<NEW_LINE>if (exec == null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>String[] newArr = new String[exec.length + 1];<NEW_LINE>System.arraycopy(exec, 0, newArr, 0, exec.length);<NEW_LINE>newArr[exec.length] = slicePath;<NEW_LINE>ProcessWrapper pw = new ProcessWrapper(newArr,... | (pw.getOut())); |
1,426,181 | private Request buildRequest(JsonNode requestNode, String name) {<NEW_LINE>Request request = new Request();<NEW_LINE>request.setName(name);<NEW_LINE>if (isV2Collection) {<NEW_LINE>request.setHeaders(buildHeaders(requestNode.path("header")));<NEW_LINE>if (requestNode.has("body") && requestNode.path("body").has("raw")) {... | path("variables").asText(); |
1,519,705 | private void unnestOperands(Analyzer analyzer) throws AnalysisException {<NEW_LINE>if (operands.size() == 1) {<NEW_LINE>// ValuesStmt for a single row.<NEW_LINE>allOperands_.add(operands.get(0));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// find index of first ALL operand<NEW_LINE>int firstAllIdx = operands.size();<NEW_LINE... | , operands.get(i)); |
984,910 | private void registerTranslations() {<NEW_LINE>final TranslationRegistry translationRegistry = TranslationRegistry.create(Key.key("velocity", "translations"));<NEW_LINE>translationRegistry.defaultLocale(Locale.US);<NEW_LINE>try {<NEW_LINE>FileSystemUtils.visitResources(VelocityServer.class, path -> {<NEW_LINE>logger.in... | getFileName().toString()); |
1,494,019 | public boolean doIWantToQuit(MissionInit missionInit) {<NEW_LINE>this.quitCode = "";<NEW_LINE>List<Entity> caughtEntities = RewardForCatchingMobImplementation.getCaughtEntities();<NEW_LINE>for (Entity ent : caughtEntities) {<NEW_LINE>// Do we care about this entity?<NEW_LINE>for (MobWithDescription mob : this.qcmparams... | player.posY, player.posZ); |
868,147 | public void region(float tl_x, float tl_y, GrayF32 output) {<NEW_LINE>if (tl_x < 0 || tl_y < 0 || tl_x + output.width > orig.width || tl_y + output.height > orig.height) {<NEW_LINE>throw new IllegalArgumentException("Region is outside of the image");<NEW_LINE>}<NEW_LINE>int xt = (int) tl_x;<NEW_LINE>int yt = (int) tl_y... | + a2 * xy + a3 * Xy; |
179,373 | public void signVerify() throws NoSuchAlgorithmException {<NEW_LINE>CryptographyAsyncClient cryptographyAsyncClient = createAsyncClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.keys.cryptography.CryptographyAsyncClient.sign#SignatureAlgorithm-byte<NEW_LINE>byte[] data = new byte[100];<NEW_LINE>new Random(0x123... | , signResult.getAlgorithm())); |
343,363 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>View layout = inflater.inflate(R.layout.feeditem_pager_fragment, container, false);<NEW_LINE>toolbar = layout.fi... | savedInstanceState.getInt(KEY_PAGER_ID, 0); |
213,344 | public void showError(String title, String message, Throwable ex) {<NEW_LINE>final Alert alert = new Alert(Alert.AlertType.ERROR);<NEW_LINE>final Scene scene = alert.getDialogPane().getScene();<NEW_LINE>BrandUtil.applyBrand(injector, stage, scene);<NEW_LINE>alert.setHeaderText(title);<NEW_LINE>alert.setContentText(mess... | textArea.setMaxHeight(Double.MAX_VALUE); |
634,544 | public void validateSystemTag(String resourceUuid, Class resourceType, String systemTag) {<NEW_LINE>String target = LoadBalancerSystemTags.HEALTH_TARGET.getTokenByTag(systemTag, LoadBalancerSystemTags.HEALTH_TARGET_TOKEN);<NEW_LINE>String[] ts = target.split(":");<NEW_LINE>if (ts.length != 2) {<NEW_LINE>throw new Opera... | , protocol, LoadBalancerConstants.HEALTH_CHECK_TARGET_PROTOCOLS)); |
171,086 | public void show(View anchor, float anchorOverlap) {<NEW_LINE>updateItems();<NEW_LINE>if (mSystemUiVisibilityHelper != null)<NEW_LINE>mSystemUiVisibilityHelper.copyVisibility(getContentView());<NEW_LINE>// don't steal the focus, this will prevent the keyboard from changing<NEW_LINE>setFocusable(false);<NEW_LINE>// draw... | anchor.getHeight() * anchorOverlap); |
1,811,543 | public void reset(final Context context) {<NEW_LINE>final Config config = Config.get(context);<NEW_LINE>key_symbol_color = config.getColor("key_symbol_color");<NEW_LINE>hilited_key_symbol_color = config.getColor("hilited_key_symbol_color");<NEW_LINE>mShadowColor = config.getColor("shadow_color");<NEW_LINE>mSymbolSize =... | .getKeyboard().getPopupKeyPressEnabled(); |
1,074,421 | protected Response exchangeStoredToken(UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) {<NEW_LINE>FederatedIdentityModel model = session.users().getFederatedIdentity(authorizedClient.getRealm(), tokenSubject, getConfig().getAlias());<NEW_LINE... | getRealm(), tokenSubject, model); |
674,192 | private void resize() {<NEW_LINE>if (buckets == null) {<NEW_LINE>throw new IllegalStateException("Someone must be doing something ugly with reflection -- I have no buckets.");<NEW_LINE>}<NEW_LINE>final int oldCapacity = capacity;<NEW_LINE>final int oldSize = size;<NEW_LINE>final T[] oldBuckets = buckets;<NEW_LINE>final... | , Object> keyFunc = toKey(); |
1,046,191 | private void saveOrUpdateJobRankDistribution(List<JobStatistics> jobList, String zkBsKey) {<NEW_LINE>try {<NEW_LINE>Map<Integer, Integer> jobDegreeCountMap = new HashMap<>();<NEW_LINE>for (JobStatistics jobStatistics : jobList) {<NEW_LINE>int jobDegree = jobStatistics.getJobDegree();<NEW_LINE>Integer count = jobDegreeC... | jobDegreeMapString = JSON.toJSONString(jobDegreeCountMap); |
1,348,237 | public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {<NEW_LINE>if (node.isInterface()) {<NEW_LINE>return data;<NEW_LINE>}<NEW_LINE>Set<String> methodsUsedByAnnotations = methodsUsedByAnnotations(node);<NEW_LINE>Map<MethodNameDeclaration, List<NameOccurrence>> methods = node.getScope().getEnclosingScop... | ) + mnd.getParameterDisplaySignature()); |
1,576,337 | public boolean visit(TryStatement node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>int level = node.getAST().apiLevel();<NEW_LINE>if (level >= JLS4_INTERNAL) {<NEW_LINE>StructuralPropertyDescriptor desc = level < JLS9_INTERNAL ? INTERN... | int pos = node.getStartPosition(); |
972,403 | private void insertDefault(SQLiteDatabase db) {<NEW_LINE>ContentValues screenValues = new ContentValues();<NEW_LINE>screenValues.put(DB_KEY_SCREEN_COLORS, 32);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_RESOLUTION, 1);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_WIDTH, 1024);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_HEIGHT, 76... | performanceValues.put(DB_KEY_PERFORMANCE_MENU_ANIMATIONS, 0); |
1,727,801 | V remove(Object key, int hash) {<NEW_LINE>lock();<NEW_LINE>try {<NEW_LINE>long now = map.ticker.read();<NEW_LINE>preWriteCleanup(now);<NEW_LINE>int newCount = this.count - 1;<NEW_LINE>AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;<NEW_LINE>int index = hash & (table.length() - 1);<NEW_LINE>ReferenceEntry... | K entryKey = e.getKey(); |
54,098 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>DeviceSession deviceS... | ().equals("F")); |
448,663 | public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>matrixStack.push();<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>GL11.glDisable(GL11.GL_DEPTH_TEST);<NEW_LINE>GL11.glDepthMask(false);<NEW_LINE>GL11.glEnable(GL11.GL... | drawEndOfLine(matrixStack, end, camPos); |
1,145,070 | final CreateDatasetResult executeCreateDataset(CreateDatasetRequest createDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
531,666 | public synchronized void start() {<NEW_LINE>String id = getID();<NEW_LINE>if (id != null) {<NEW_LINE>log.info("Starting Speed Layer {}", id);<NEW_LINE>}<NEW_LINE>streamingContext = buildStreamingContext();<NEW_LINE>log.info("Creating message stream from topic");<NEW_LINE>JavaInputDStream<ConsumerRecord<K, M>> kafkaDStr... | log.error("Error while consuming updates", t); |
1,064,097 | private void mark(TokenSequence ts) {<NEW_LINE>ts.move(startOffset1);<NEW_LINE>if (!ts.moveNext())<NEW_LINE>return;<NEW_LINE>Token token = ts.token();<NEW_LINE>TokenSequence ts2 = ts.embedded();<NEW_LINE>if (ts2 == null)<NEW_LINE>return;<NEW_LINE>String mimeTypeOut = ts.language().mimeType();<NEW_LINE>String mimeTypeIn... | addAttribute(StyleConstants.Background, c); |
1,042,012 | protected void performAction(Node[] activatedNodes) {<NEW_LINE>for (Node n : activatedNodes) {<NEW_LINE>final JavaComponentInfo ci = n.getLookup(<MASK><NEW_LINE>if (ci != null) {<NEW_LINE>final FieldInfo fieldInfo = ci.getField();<NEW_LINE>if (fieldInfo != null) {<NEW_LINE>GoToSourceAction.RP.post(new Runnable() {<NEW_... | ).lookup(JavaComponentInfo.class); |
1,734,773 | public static Optional<RequestBodyExt> requestBody(ParserContext ctx, MethodNode node) {<NEW_LINE>List<MethodInsnNode> instructions = StreamSupport.stream(Spliterators.spliteratorUnknownSize(node.instructions.iterator(), Spliterator.ORDERED), false).filter(MethodInsnNode.class::isInstance).map(MethodInsnNode.class::cas... | ).ifPresent(body::setContent); |
653,289 | public Taint unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Taint taint = new Taint();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | class).unmarshall(context)); |
1,651,906 | public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ) {<NEW_LINE>if (super.onBlockActivated(world, pos, state, player, side, hitX, hitY, hitZ)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>TileEntity tile = world.getTileEnt... | ItemStack current = player.getCurrentEquippedItem(); |
710,790 | private void bitrv216(float[] a, int offa) {<NEW_LINE>float x1r, x1i, x2r, x2i, x3r, x3i, x4r, x4i, x5r, x5i, x7r, x7i, x8r, x8i, x10r, x10i, x11r, x11i, x12r, x12i, x13r, x13i, x14r, x14i;<NEW_LINE>x1r = a[offa + 2];<NEW_LINE>x1i = a[offa + 3];<NEW_LINE>x2r = a[offa + 4];<NEW_LINE>x2i = a[offa + 5];<NEW_LINE>x3r = a[o... | a[offa + 15] = x14i; |
709,002 | private void notifyDeviceDisconnected(@NonNull final BluetoothDevice device, final int status) {<NEW_LINE>final boolean wasConnected = connected;<NEW_LINE>connected = false;<NEW_LINE>servicesDiscovered = false;<NEW_LINE>serviceDiscoveryRequested = false;<NEW_LINE>deviceNotSupported = false;<NEW_LINE>mtu = 23;<NEW_LINE>... | -> c.onLinkLossOccurred(device)); |
1,754,781 | public Object instanceCreate() throws IOException, ClassNotFoundException {<NEW_LINE>try {<NEW_LINE>Document doc = XMLUtil.parse(new InputSource(obj.getPrimaryFile().toURL().toString()), true, false, XMLUtil.defaultErrorHandler(), EntityCatalog.getDefault());<NEW_LINE>Element el = doc.getDocumentElement();<NEW_LINE>if ... | mergeS = el.getAttribute("merge"); |
1,847,029 | // build reset offset info<NEW_LINE>private List<Tuple3<String, Integer, Long>> buildOffsetResetInfo(Set<String> topicSet) {<NEW_LINE>MessageStore store = null;<NEW_LINE>List<Tuple3<String, Integer, Long>> result = new ArrayList<>();<NEW_LINE>MessageStoreManager storeManager = broker.getStoreManager();<NEW_LINE>// get ... | >> topicPartMap = getTopicPartitions(topicSet); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.