idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,165,854 | public void run(TaskSource taskSource, Schema schema, FileInput input, PageOutput pageOutput) {<NEW_LINE>final PluginTask task = loadPluginTaskFromTaskSource(taskSource);<NEW_LINE>final ConfigSource originalConfig = task.getOriginalConfig();<NEW_LINE>final int guessParserSampleBufferBytes = task.getGuessParserSampleBuf... | guessed = addAssumedDecoderConfigs(originalConfig, guessed); |
1,588,767 | public void rol(AsmMemoryOperand dst, int imm) {<NEW_LINE>int code;<NEW_LINE>if (imm == 1) {<NEW_LINE>if (dst.size == MemoryOperandSize.QWORD) {<NEW_LINE>code = Code.ROL_RM64_1;<NEW_LINE>} else if (dst.size == MemoryOperandSize.DWORD) {<NEW_LINE>code = Code.ROL_RM32_1;<NEW_LINE>} else if (dst.size == MemoryOperandSize.... | Mnemonic.ROL, dst, imm); |
297,793 | private void put(List<Object[]> args, List<Object[]> overflowArgs) {<NEW_LINE>if (!overflowArgs.isEmpty()) {<NEW_LINE>if (config.overflowMigrationState() == OverflowMigrationState.UNSTARTED) {<NEW_LINE>conns.get().insertManyUnregisteredQuery("/* INSERT_OVERFLOW */" + " INSERT INTO " + config.singleOverflowTable() + " (... | throw new KeyAlreadyExistsException("primary key violation", e); |
357,481 | public List<AppListModel> load(@NonNull CategoryIndex index) {<NEW_LINE>AppListItemDescriptionComposer composer = new AppListItemDescriptionComposer(context);<NEW_LINE>ThanosManager thanos = ThanosManager.from(context);<NEW_LINE>if (!thanos.isServiceInstalled()) {<NEW_LINE>return Lists.newArrayListWithCapacity(0);<NEW_... | res = new ArrayList<>(); |
244,844 | public void initVariableTypes() {<NEW_LINE>if (variableTypes == null) {<NEW_LINE>variableTypes = new DefaultVariableTypes();<NEW_LINE>if (customPreVariableTypes != null) {<NEW_LINE>for (VariableType customVariableType : customPreVariableTypes) {<NEW_LINE>variableTypes.addType(customVariableType);<NEW_LINE>}<NEW_LINE>}<... | .addType(new DoubleType()); |
640,478 | public long offer(final DirectBufferVector[] vectors, final ReservedValueSupplier reservedValueSupplier) {<NEW_LINE>final int length = DirectBufferVector.validateAndComputeLength(vectors);<NEW_LINE>long newPosition = CLOSED;<NEW_LINE>if (!isClosed) {<NEW_LINE>final long limit = positionLimit.getVolatile();<NEW_LINE>fin... | length, maxPayloadLength, reservedValueSupplier, termId); |
850,455 | final UpdateVPCEConfigurationResult executeUpdateVPCEConfiguration(UpdateVPCEConfigurationRequest updateVPCEConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVPCEConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateVPCEConfiguration"); |
851,037 | private QueryDataSet constructDataSet(List<AggregateResult> aggregateResultList, AggregationPlan plan) {<NEW_LINE>SingleDataSet dataSet;<NEW_LINE>RowRecord record = new RowRecord(0);<NEW_LINE>if (plan.isGroupByLevel()) {<NEW_LINE>Map<String, AggregateResult> groupPathsResultMap = plan.groupAggResultByLevel(aggregateRes... | ), resultData.getResultDataType()); |
281,929 | final ListBackupPlansResult executeListBackupPlans(ListBackupPlansRequest listBackupPlansRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBackupPlansRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | false), new ListBackupPlansResultJsonUnmarshaller()); |
1,827,742 | static URI normalizeSyntax(final URI uri) throws URISyntaxException {<NEW_LINE>if (uri.isOpaque() || uri.getAuthority() == null) {<NEW_LINE>// opaque and file: URIs<NEW_LINE>return uri;<NEW_LINE>}<NEW_LINE>Args.check(uri.isAbsolute(), "Base URI must be absolute");<NEW_LINE>final URIBuilder builder = new URIBuilder(uri)... | .toLowerCase(Locale.ROOT)); |
1,738,919 | final UpdateAutoScalingGroupResult executeUpdateAutoScalingGroup(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAutoScalingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAutoScalingGroup"); |
701,639 | private void convertSetting(final StoredConfiguration inputConfig, final StoredConfigurationModifier modifier, final StoredConfigKey key) {<NEW_LINE>final PwmSetting pwmSetting = key.toPwmSetting();<NEW_LINE>final List<String> targetProfiles = StoredConfigurationUtil.profilesForSetting(key.getDomainID(), pwmSetting, in... | , valueMetaData.orElse(null)); |
1,361,160 | ActionResult<Wo> execute(HttpServletRequest request, HttpServletResponse response, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>if (BooleanUtils.isFalse(Config.collect().getEnable())) {<NEW_LINE>throw new ExceptionDisabl... | post(url, null, map); |
1,071,642 | private String createBody(String prefix) {<NEW_LINE>variable = stmt.getVariable();<NEW_LINE>dataSource = stmt.getDataSource();<NEW_LINE>if (variable.equals("")) {<NEW_LINE>// NOI18N<NEW_LINE>variable = JspPaletteUtilities.CARET;<NEW_LINE>} else if (dataSource.equals("")) {<NEW_LINE>// NOI18N<NEW_LINE>dataSource = JspPa... | SQLStmt.scopes[scopeIndex] + "\""; |
77,549 | public static int[] stringToGradientPalette(String str, String gradientScaleType) {<NEW_LINE>boolean isSlope = "gradient_slope_color".equals(gradientScaleType);<NEW_LINE>if (Algorithms.isBlank(str)) {<NEW_LINE>return isSlope ? RouteColorize.SLOPE_COLORS : RouteColorize.COLORS;<NEW_LINE>}<NEW_LINE>String[] arr = str.spl... | .parseColor(arr[i]); |
1,185,910 | public static AsymmetricKeyParameter generatePublicKeyParameter(PublicKey key) throws InvalidKeyException {<NEW_LINE>if (key instanceof ECPublicKey) {<NEW_LINE>ECPublicKey k = (ECPublicKey) key;<NEW_LINE>ECParameterSpec s = k.getParameters();<NEW_LINE>return new ECPublicKeyParameters(k.getQ(), new ECDomainParameters(s.... | , s.getSeed())); |
818,634 | private void processValidator(ServletContext sc, NodeList validator, TagLibraryImpl taglibrary, String name) {<NEW_LINE>if (validator != null && validator.getLength() > 0) {<NEW_LINE>String validatorId = null;<NEW_LINE>String handlerClass = null;<NEW_LINE>for (int i = 0, ilen = validator.getLength(); i < ilen; i++) {<N... | putValidator(name, validatorId, clazz); |
1,238,752 | private Optional<SimpleTransformation> computeSnatTransformation(Snat snat) {<NEW_LINE>// // Perform SNAT if source IP is in range<NEW_LINE>// Retrieve pool of addresses to which sourceIP may be translated<NEW_LINE>String snatPoolName = snat.getSnatpool();<NEW_LINE>if (snatPoolName == null) {<NEW_LINE>// Cannot transla... | snatPool = _snatPools.get(snatPoolName); |
1,631,392 | public static ListFlowResponse unmarshall(ListFlowResponse listFlowResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowResponse.setRequestId(_ctx.stringValue("ListFlowResponse.RequestId"));<NEW_LINE>listFlowResponse.setSuccess(_ctx.booleanValue("ListFlowResponse.Success"));<NEW_LINE>listFlowResponse.setCode(_ctx.str... | ("ListFlowResponse.Model[" + i + "].ChildStatus")); |
1,371,881 | private static void parameters(ParserContext ctx, OperationExt operation, List<Map<String, Object>> parameters) {<NEW_LINE>for (int i = 0; i < parameters.size(); i++) {<NEW_LINE>Map<String, Object> parameterMap = parameters.get(i);<NEW_LINE>String name = (String) parameterMap.get("name");<NEW_LINE>io.swagger.v3.oas.mod... | parameterMap, "allowEmptyValue", parameter::setAllowEmptyValue); |
584,177 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String clusterName, String databaseName, 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 ... | this.client.mergeContext(context); |
1,818,685 | public void changeRoleOfStorageNode(String instanceId, String replica, StorageRole newRole) {<NEW_LINE>assert StringUtils.isNotEmpty(replica);<NEW_LINE>StorageInstHaContext storageNode = null;<NEW_LINE>if (instanceId.equals(metaDbStorageHaCtx.storageInstId)) {<NEW_LINE>storageNode = metaDbStorageHaCtx;<NEW_LINE>} else ... | .format("could not find instance %s", instanceId)); |
215,343 | public void processSyncUnit(SyncUnit syncOrder) {<NEW_LINE>AbstractDocumentComponent targetComponent = <MASK><NEW_LINE>if (targetComponent == null) {<NEW_LINE>throw new IllegalArgumentException("sync unit should not be null");<NEW_LINE>}<NEW_LINE>// skip target component whose some ancestor removed in previous processe... | (AbstractDocumentComponent) syncOrder.getTarget(); |
669,113 | private void loadExtensions(IExtensionRegistry registry) {<NEW_LINE>{<NEW_LINE>IConfigurationElement[] extConfigs = registry.getConfigurationElementsFor(WebServiceDescriptor.EXTENSION_ID);<NEW_LINE>for (IConfigurationElement ext : extConfigs) {<NEW_LINE>// Load webServices<NEW_LINE>if (TAG_SERVICE.equals(ext.getName())... | add(new WebServiceDescriptor(ext)); |
317,128 | public void put(Collection<Map.Entry<Cell, Value>> data) {<NEW_LINE>List<Object[]> args = new ArrayList<>(data.size());<NEW_LINE>List<Object[]> overflowArgs = new ArrayList<>();<NEW_LINE>for (Map.Entry<Cell, Value> entry : data) {<NEW_LINE>Cell cell = entry.getKey();<NEW_LINE><MASK><NEW_LINE>if (val.getContents().lengt... | Value val = entry.getValue(); |
521,069 | private void checkUfsMode(AlluxioURI alluxioPath, OperationType opType) throws AccessControlException, InvalidPathException {<NEW_LINE>MountTable.Resolution resolution = mMountTable.resolve(alluxioPath);<NEW_LINE>try (CloseableResource<UnderFileSystem> ufsResource = resolution.acquireUfsResource()) {<NEW_LINE>UnderFile... | (ufs.getPhysicalStores())); |
702,608 | public GATKReportTable generateReportTable(final String covariateNames) {<NEW_LINE>GATKReportTable argumentsTable;<NEW_LINE>argumentsTable = new GATKReportTable("Arguments", "Recalibration argument collection values used in this run", 2, GATKReportTable.Sorting.SORT_BY_COLUMN);<NEW_LINE>argumentsTable.addColumn("Argume... | argumentsTable.addRowID("deletions_default_quality", true); |
309,588 | private static ArtifactStoreService initializeArtifactStore(MDBArtifactStoreConfig mdbArtifactStoreConfig) throws ModelDBException, IOException {<NEW_LINE>// ------------- Start Initialize Cloud storage base on configuration ------------------<NEW_LINE>ArtifactStoreService artifactStoreService;<NEW_LINE>if (mdbArtifact... | getArtifactEndpoint().getStoreArtifact()); |
788,206 | public UserVm resetVMSSHKey(ResetVMSSHKeyCmd cmd) throws ResourceUnavailableException, InsufficientCapacityException {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>Account owner = _accountMgr.finalizeOwner(caller, cmd.getAccountName(), cmd.getDomainId(), cmd.getProjectId());<NEW_LINE>Lo... | findByIdIncludingRemoved(userVm.getTemplateId()); |
652,017 | public void filter() {<NEW_LINE>final String filter = getFilter();<NEW_LINE>if (filter != null && filter.length() > 0) {<NEW_LINE>if (!myExpansionMonitor.isFreeze()) {<NEW_LINE>myExpansionMonitor.freeze();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>IntentionSettingsTree.this.filter<MASK><NEW_LINE>if (myTree != null) {<NEW_LINE>Lis... | (filterModel(filter, true)); |
492,280 | public static void showHeadlineDialog(final String headlineFilterPattern, final Activity activity, final EditText text) {<NEW_LINE>SearchOrCustomTextDialog.DialogOptions dopt2 = new SearchOrCustomTextDialog.DialogOptions();<NEW_LINE>baseConf(activity, dopt2);<NEW_LINE>dopt2.positionCallback = (result) -> StringUtils.se... | SearchOrCustomTextDialog.showMultiChoiceDialogWithSearchFilterUI(activity, dopt2); |
1,210,145 | private void sendResponse(ChannelHandlerContext ctx, String tableNameWithType, long queryArrivalTimeMs, byte[] serializedDataTable) {<NEW_LINE>long sendResponseStartTimeMs = System.currentTimeMillis();<NEW_LINE>int queryProcessingTimeMs = (int) (sendResponseStartTimeMs - queryArrivalTimeMs);<NEW_LINE>ctx.writeAndFlush(... | (int) (sendResponseEndTimeMs - sendResponseStartTimeMs); |
817,318 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>requireCertificateChBox = new javax.swing.JCheckBox();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(requireCertificateChBox, org.openide.util.NbBundle.get... | , 0, 0, 0)); |
752,667 | public EntityModel<Command> toModel(final Command command) {<NEW_LINE>final String id = command.getId().orElseThrow(IllegalArgumentException::new);<NEW_LINE>final EntityModel<Command> commandModel = EntityModel.of(command);<NEW_LINE>try {<NEW_LINE>commandModel.add(WebMvcLinkBuilder.linkTo(WebMvcLinkBuilder.methodOn(Com... | id)).withSelfRel()); |
1,233,743 | 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... | 1, parser.next()); |
1,659,617 | public static ListContactsResponse unmarshall(ListContactsResponse listContactsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listContactsResponse.setRequestId(_ctx.stringValue("ListContactsResponse.RequestId"));<NEW_LINE>listContactsResponse.setTotalCount(_ctx.integerValue("ListContactsResponse.TotalCount"));<NEW_LINE... | ("ListContactsResponse.Contacts[" + i + "].ContactId")); |
650,378 | public void increment(String event, Attrs extraDimensions) {<NEW_LINE>Objects.requireNonNull(event);<NEW_LINE>Objects.requireNonNull(extraDimensions);<NEW_LINE>if (counts.containsKey(event)) {<NEW_LINE>// TODO(carl-mastrangelo): make this throw IllegalStateException after verifying this doesn't happen.<NEW_LINE>logger.... | ()).withTags(dimTags); |
57,113 | private void launchFile(String filePath) {<NEW_LINE>File file = new File(filePath);<NEW_LINE>if (file.exists()) {<NEW_LINE>Intent intent = new Intent(Intent.ACTION_VIEW);<NEW_LINE>intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);<NEW_LINE>intent.addCategory("android.intent.category.DEFAULT");<NEW_LINE>Uri uri = null;<N... | intent.setDataAndType(uri, "application/pdf"); |
1,691,717 | public static RexProgram createIdentity(RelDataType rowType, RelDataType outputRowType) {<NEW_LINE>if (rowType != outputRowType && !Pair.right(rowType.getFieldList()).equals(Pair.right(outputRowType.getFieldList()))) {<NEW_LINE>throw new IllegalArgumentException("field type mismatch: " + rowType + " vs. " + outputRowTy... | projectRefs = new ArrayList<>(); |
1,167,047 | public void run() {<NEW_LINE>try {<NEW_LINE>logCount %= 10;<NEW_LINE>if (logCount == 0) {<NEW_LINE>Loggers.PERFORMANCE_LOG.info("PERFORMANCE:|serviceCount|ipCount|subscribeCount|maxPushCost|avgPushCost|totalPushCount|failPushCount");<NEW_LINE>Loggers.PERFORMANCE_LOG.info("DISTRO:|V1SyncDone|V1SyncFail|V2SyncDone|V2Sync... | .getIpCountMonitor().get(); |
1,211,226 | private static SnapshotShardFailure constructSnapshotShardFailure(Object[] args) {<NEW_LINE>String index = (String) args[0];<NEW_LINE>String indexUuid = (String) args[1];<NEW_LINE>final String nodeId = (String) args[2];<NEW_LINE>String reason = (String) args[3];<NEW_LINE>Integer intShardId = (Integer) args[4];<NEW_LINE... | nodeId, shardId, nonNullReason, restStatus); |
344,848 | public void methodThree() {<NEW_LINE>List<StackFrame> stackTrace = StackWalker.getInstance().walk(this::walkExample);<NEW_LINE>printStackTrace(stackTrace);<NEW_LINE>System.out.println("---------------------------------------------");<NEW_LINE>stackTrace = StackWalker.getInstance().walk(this::walkExample2);<NEW_LINE>pri... | ).walk(this::walkExample); |
1,693,471 | protected void init0() {<NEW_LINE>for (Parameter parameter : info.getParameters()) {<NEW_LINE>Name parameterRoutineName = name(parameter.getSpecificCatalog(), parameter.getSpecificSchema(), parameter.getSpecificPackage(<MASK><NEW_LINE>if (specificName.equals(parameterRoutineName)) {<NEW_LINE>DataTypeDefinition type = n... | ), parameter.getSpecificName()); |
1,800,890 | final ListReadinessChecksResult executeListReadinessChecks(ListReadinessChecksRequest listReadinessChecksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReadinessChecksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,853,979 | public static Map<String, Object> createFieldParameters(FileObject targetJspFO, final String entityClass, final String managedBean, final String managedBeanProperty, final boolean collectionComponent, final boolean initValueGetters, JsfLibrariesSupport jls) throws IOException {<NEW_LINE>final Map<String, Object> params... | .lastIndexOf(".") + 1); |
1,344,140 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("append" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (!param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQExceptio... | MessageManager mm = EngineMessage.get(); |
704,379 | public void flatMap(BaseRow input, Collector<BaseRow> out) throws Exception {<NEW_LINE>GenericRow genericRow = (GenericRow) input;<NEW_LINE>Map<String, Object> inputParams = Maps.newHashMap();<NEW_LINE>for (Integer conValIndex : sideInfo.getEqualValIndex()) {<NEW_LINE>Object equalObj = genericRow.getField(conValIndex);... | columnName, equalObj.toString()); |
351,132 | final RestoreWorkspaceResult executeRestoreWorkspace(RestoreWorkspaceRequest restoreWorkspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreWorkspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,077,789 | public void transformReferences(RefTransformer visitor) {<NEW_LINE>// Make sure to rewrite the refMap first so that fixupAttrs works correctly.<NEW_LINE>refMap.ifPresent(m <MASK><NEW_LINE>int offset = 0;<NEW_LINE>while (offset < nodeBuf.limit()) {<NEW_LINE>int type = nodeBuf.getShort(offset);<NEW_LINE>if (type == XML_S... | -> m.visitReferences(visitor)); |
1,188,067 | public MetaContact findMetaContactByContact(Contact protoContact) {<NEW_LINE>// first go through the contacts that are direct children of this method.<NEW_LINE>Iterator<MetaContact> contactsIter = getChildContacts();<NEW_LINE>while (contactsIter.hasNext()) {<NEW_LINE>MetaContact mContact = contactsIter.next();<NEW_LINE... | ), protoContact.getProtocolProvider()); |
584,664 | protected boolean matchesSafely(String content) {<NEW_LINE>try {<NEW_LINE>JsonNode contentAsJsonNode = JsonLoader.fromString(content);<NEW_LINE>JsonSchemaFactory jsonSchemaFactory = instanceSettings.jsonSchemaFactory();<NEW_LINE>Schema loadedSchema = loadSchema(schema, instanceSettings);<NEW_LINE>final JsonSchema jsonS... | getClass().getName()); |
1,764,638 | private void resolveParentDependenciesRecursively(List<Pom> pomAncestry) {<NEW_LINE>Pom pom = pomAncestry.get(0);<NEW_LINE>for (Profile profile : pom.getProfiles()) {<NEW_LINE>if (profile.isActive(activeProfiles)) {<NEW_LINE>mergeDependencyManagement(profile.getDependencyManagement(), pom);<NEW_LINE>mergeRequestedDepen... | pomAncestry.add(0, parentPom); |
307,519 | protected CommonFuncToggleAppListFilterViewModel.ListModelLoader onCreateListModelLoader() {<NEW_LINE>return index -> {<NEW_LINE>AppListItemDescriptionComposer composer = new AppListItemDescriptionComposer(thisActivity());<NEW_LINE>ThanosManager thanos = ThanosManager.from(getApplicationContext());<NEW_LINE>if (!thanos... | composer.getAppItemDescription(appInfo))); |
1,244,469 | public PhotonDoc address(Map<String, String> address) {<NEW_LINE>if (address != null) {<NEW_LINE>extractAddress(address, AddressType.STREET, "street");<NEW_LINE>extractAddress(address, AddressType.CITY, "city");<NEW_LINE>extractAddress(<MASK><NEW_LINE>extractAddress(address, AddressType.LOCALITY, "neighbourhood");<NEW_... | address, AddressType.DISTRICT, "suburb"); |
621,404 | final StartLoggingResult executeStartLogging(StartLoggingRequest startLoggingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startLoggingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
568,550 | public static LocalDBLoggerSettings fromConfiguration(final AppConfig appConfig) {<NEW_LINE>final Set<Flag> flags = EnumSet.noneOf(Flag.class);<NEW_LINE>if (appConfig.isDevDebugMode()) {<NEW_LINE>flags.add(Flag.DevDebug);<NEW_LINE>}<NEW_LINE>final int maxEvents = (int) appConfig.readSettingAsLong(PwmSetting.EVENTS_PWMD... | .readAppProperty(AppProperty.LOCALDB_LOGWRITER_MAX_TRIM_SIZE)); |
1,191,327 | final BulkPublishResult executeBulkPublish(BulkPublishRequest bulkPublishRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(bulkPublishRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "BulkPublish"); |
724,787 | public static Map<String, Object> generateControllerConf(String zkAddress, String clusterName, String controllerHost, String controllerPort, String dataDir, ControllerConf.ControllerMode controllerMode, boolean tenantIsolation) throws SocketException, UnknownHostException {<NEW_LINE>if (StringUtils.isEmpty(zkAddress)) ... | controllerHost : NetUtils.getHostAddress()); |
591,620 | public static void broadcastEvent(final String name, final String data, final boolean authenticated, final boolean anonymous) {<NEW_LINE>if (anonymous == true && authenticated == true) {<NEW_LINE>broadcastEvent(name, data);<NEW_LINE>} else if (anonymous == true) {<NEW_LINE>// account for multiple open tabs/connections ... | shouldReceive = checkedSessionIds.get(sessionId); |
629,910 | public Node newNode(Object object) {<NEW_LINE>if (object == null) {<NEW_LINE>return new NullNode();<NEW_LINE>} else if (object instanceof Map) {<NEW_LINE>return new ObjectNode((Map<String, Object>) object, this);<NEW_LINE>} else if (object instanceof Number) {<NEW_LINE>return <MASK><NEW_LINE>} else if (object instanceo... | new NumberNode((Number) object); |
823,315 | final SetAlarmStateResult executeSetAlarmState(SetAlarmStateRequest setAlarmStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setAlarmStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,507,231 | protected String accessPageNoChallenge(HttpClient client, String location, int expectedStatusCode, String servletName) {<NEW_LINE>String methodName = "accessPageNoChallenge";<NEW_LINE>Log.info(logClass, methodName, "accessPageNoChallenge: location = " + location + " expectedStatusCode =" + expectedStatusCode);<NEW_LIN... | , content.contains(servletName)); |
1,376,004 | public static void process(GrayU8 orig, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final byte[] data = orig.data;<NEW_LINE>final short[] imgX = derivX.data;<NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height = orig.getHeight() - 1;<NEW_LINE>// CONCURRENT_BEL... | - width - 1] & 0xFF); |
410,498 | public Dialog onCreateDialog(Bundle savedInstanceBundle) {<NEW_LINE>LayoutInflater inflater = getActivity().getLayoutInflater();<NEW_LINE>nameView = inflater.inflate(R.layout.name_variable_view, null);<NEW_LINE>mNameEditText = (EditText) nameView.findViewById(R.id.name);<NEW_LINE>mNameEditText.setText(mVariable);<NEW_L... | AlertDialog.Builder(getActivity()); |
1,170,491 | private List<Long> listVMInTransitionStateWithRecentReportOnUpHost(final long hostId, final Date cutTime) {<NEW_LINE>final String sql = "SELECT i.* FROM vm_instance as i, host as h WHERE h.status = 'UP' " + "AND h.id = ? AND i.power_state_update_time > ? AND i.host_id = h.id " + "AND (i.state ='Starting' OR i.state='St... | pstmt = txn.prepareAutoCloseStatement(sql); |
1,112,217 | public static byte[] encode(Object input) {<NEW_LINE>Value val = new Value(input);<NEW_LINE>if (val.isList()) {<NEW_LINE>List<Object<MASK><NEW_LINE>if (inputArray.isEmpty()) {<NEW_LINE>return encodeLength(inputArray.size(), OFFSET_SHORT_LIST);<NEW_LINE>}<NEW_LINE>byte[] output = ByteUtil.EMPTY_BYTE_ARRAY;<NEW_LINE>for ... | > inputArray = val.asList(); |
1,262,042 | public void apply(ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) {<NEW_LINE>AnnotationAppender annotationAppender = new AnnotationAppender.Default(new AnnotationAppender.Target.OnType(classVisitor));<NEW_LINE>AnnotationAppender.ForTypeAnnotations.ofTypeVariable... | Generic interfaceTypes = instrumentedType.getInterfaces(); |
1,361,970 | Map<String, Object> callWithExecutionId(final String host, final int port, final String action, final Integer executionId, final String user, final DispatchMethod dispatchMethod, final Optional<Integer> httpTimeout, final Pair<String, String>... params) throws ExecutorManagerException {<NEW_LINE>try {<NEW_LINE>final Li... | (Arrays.asList(params)); |
1,685,052 | public void createIfNotExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.blob.BlobContainerClient.createIfNotExists<NEW_LINE>boolean result = client.createIfNotExists();<NEW_LINE>System.out.println("Create completed: " + result);<NEW_LINE>// END: com.azure.storage.blob.BlobContainerClient.createIfNotExists<NE... | "Create completed with status %d%n", response.getStatusCode()); |
117,712 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>descTextArea = <MASK><NEW_LINE>tableScrollPane = new javax.swing.JScrollPane();<NEW_LINE>table = new javax.swing.JTable();<... | new javax.swing.JTextArea(); |
406,035 | final DescribeDBClusterParametersResult executeDescribeDBClusterParameters(DescribeDBClusterParametersRequest describeDBClusterParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBClusterParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | DescribeDBClusterParametersResult>(new DescribeDBClusterParametersResultStaxUnmarshaller()); |
588,526 | public static NeuralNetwork assembleNeuralNetwork() {<NEW_LINE>Layer inputLayer = new Layer();<NEW_LINE>inputLayer.addNeuron(new Neuron());<NEW_LINE>inputLayer.addNeuron(new Neuron());<NEW_LINE>Layer hiddenLayerOne = new Layer();<NEW_LINE>hiddenLayerOne.addNeuron(new Neuron());<NEW_LINE>hiddenLayerOne.addNeuron(new Neu... | ann.setNetworkType(NeuralNetworkType.MULTI_LAYER_PERCEPTRON); |
1,765,363 | private boolean prepareInvocation() {<NEW_LINE>synchronized (this) {<NEW_LINE>if (transformedSubject != null) {<NEW_LINE>// Already have a result, no need to execute<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (!artifact.getFileSource().isFinalized()) {<NEW_LINE>// No input artifact yet, should execute<NEW... | getFailure().get()); |
1,274,481 | final CancelAuditTaskResult executeCancelAuditTask(CancelAuditTaskRequest cancelAuditTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelAuditTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT"); |
1,724,629 | public void createInitializrModel(IProgressMonitor monitor) {<NEW_LINE>InitializrModel initializrModel = null;<NEW_LINE>Exception error = null;<NEW_LINE>String url = urlField.getValue();<NEW_LINE>try {<NEW_LINE>writeToMonitor(monitor, "Getting Boot project...");<NEW_LINE>ISpringBootProject bootProject = getBootProject(... | setValue(bootProject.getBootVersion()); |
1,502,671 | public void cacheFile(String type, String key, File file) throws FileCacheException {<NEW_LINE>if (StringUtils.isEmpty(key)) {<NEW_LINE>throw new FileCacheException("cache key is empty ");<NEW_LINE>}<NEW_LINE>File <MASK><NEW_LINE>if (cacheFile.exists()) {<NEW_LINE>throw new FileCacheException("file cache alerady exist:... | cacheFile = getLocalCacheFile(type, key); |
1,487,553 | public ReferenceBinding[] memberTypes() {<NEW_LINE>if (this.memberTypes == null) {<NEW_LINE>try {<NEW_LINE>// the originalMemberTypes are already sorted by name so there<NEW_LINE>// is no need to sort again in our copy - names are not affected by type parameters<NEW_LINE>ReferenceBinding[] originalMemberTypes <MASK><NE... | = this.type.memberTypes(); |
777,852 | private BinaryEntry readBinary(IndexInput meta) throws IOException {<NEW_LINE>final BinaryEntry entry = new BinaryEntry();<NEW_LINE>entry.dataOffset = meta.readLong();<NEW_LINE>entry.dataLength = meta.readLong();<NEW_LINE>entry.docsWithFieldOffset = meta.readLong();<NEW_LINE>entry.docsWithFieldLength = meta.readLong();... | long numAddresses = entry.numDocsWithField + 1L; |
1,854,168 | public DataSource createDataSource(Configuration dbConfig) throws PropertyVetoException, SQLException {<NEW_LINE>HikariDataSource ds = new HikariDataSource();<NEW_LINE>ds.setDriverClassName(dbConfig.getProperty("db.driver"));<NEW_LINE>ds.setJdbcUrl(dbConfig.getProperty("db.url"));<NEW_LINE>ds.setUsername(dbConfig.getPr... | (dbConfig.getProperty("db.pass")); |
1,261,991 | private InputStream assembleNextMessage() {<NEW_LINE>InputStream message;<NEW_LINE>int numBlocks = nextCompleteMessageEnd;<NEW_LINE>nextCompleteMessageEnd = 0;<NEW_LINE>int numBytes = 0;<NEW_LINE>if (numBlocks == 1) {<NEW_LINE>// Single block.<NEW_LINE>TransactionData <MASK><NEW_LINE>numBytes = data.numBytes;<NEW_LINE>... | data = queuedTransactionData.remove(0); |
102,285 | public static Integer appendGlobalEdgeComment(final AbstractSQLProvider provider, final INaviEdge edge, final String commentText, final Integer userId) throws CouldntSaveDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00482: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(edge,... | appendCommentFunction.setInt(6, userId); |
1,635,938 | public void renameElement(String path, String newName) throws Exception {<NEW_LINE>if (path.lastIndexOf('/') == -1) {<NEW_LINE>throw new Exception(mm.getMessage("xmlfile.renameroot", xmlFile));<NEW_LINE>}<NEW_LINE>Node nd = getTerminalNode(path, Node.ELEMENT_NODE);<NEW_LINE>Node pp = nd.getParentNode();<NEW_LINE>NodeLi... | NamedNodeMap childAttr = nd.getAttributes(); |
883,794 | public static boolean areEntriesOfLedgerStoredInTheBookie(long ledgerId, BookieId bookieAddress, LedgerManager ledgerManager) {<NEW_LINE>try {<NEW_LINE>LedgerMetadata ledgerMetadata = ledgerManager.readLedgerMetadata(ledgerId)<MASK><NEW_LINE>return areEntriesOfLedgerStoredInTheBookie(ledgerId, bookieAddress, ledgerMeta... | .get().getValue(); |
475,884 | public void processView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic) {<NEW_LINE>generateRemoveStreamJustOnce(isGenerateSynthetic, false);<NEW_LINE>if (newData != null) {<NEW_LINE>for (EventBean aNewData : newData) {<NEW_LINE>EventBean[] eventsPerStream = new EventBean[] { aNewData };<NEW_LINE>... | mk, eventsPerStream, true, isGenerateSynthetic); |
915,292 | private Mono<ResourceResponse<UserDefinedFunction>> createUserDefinedFunctionInternal(String collectionLink, UserDefinedFunction udf, RequestOptions options, DocumentClientRetryPolicy retryPolicyInstance) {<NEW_LINE>// we are using an observable factory here<NEW_LINE>// observable will be created fresh upon subscriptio... | collectionLink, udf.getId()); |
881,978 | public void generateOptimizedBoolean(BlockScope currentScope, CodeStream codeStream, BranchLabel trueLabel, BranchLabel falseLabel, boolean valueRequired) {<NEW_LINE>if ((this.constant != Constant.NotAConstant) && (this.constant.typeID() == TypeIds.T_boolean)) {<NEW_LINE>super.generateOptimizedBoolean(currentScope, cod... | codeStream, trueLabel, falseLabel, valueRequired); |
99,492 | private void createActiveDataPort() throws IOException {<NEW_LINE>// create data socket and bind it to free port available<NEW_LINE>this.DataSocketActive = new ServerSocket(0);<NEW_LINE>this.DataSocketActive.setSoTimeout(getTimeout());<NEW_LINE>// read http://www.cisco.com/warp/public/105/38.shtml<NEW_LINE>this.DataSoc... | "," + (DataPort & 0x00ff)); |
462,983 | public static DescribeApiTrafficControlsResponse unmarshall(DescribeApiTrafficControlsResponse describeApiTrafficControlsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeApiTrafficControlsResponse.setRequestId(_ctx.stringValue("DescribeApiTrafficControlsResponse.RequestId"));<NEW_LINE>describeApiTrafficControlsRe... | (_ctx.integerValue("DescribeApiTrafficControlsResponse.TotalCount")); |
782,308 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>if (sources != null && sources.length > 0) {<NEW_LINE>final SecurityContext securityContext = ctx.getSecurityContext();<NEW_LINE>final ConfigurationProvider config = StructrApp.getConfiguration... | sources, ctx.isJavaScriptContext()); |
600,498 | public synchronized int recordBootstrapMethod(String slashedClassName, Handle bsm, Object[] bsmArgs) {<NEW_LINE>if (bsmmap == null) {<NEW_LINE>bsmmap = new HashMap<String, BsmInfo[]>();<NEW_LINE>}<NEW_LINE>BsmInfo[] bsminfo = bsmmap.get(slashedClassName);<NEW_LINE>if (bsminfo == null) {<NEW_LINE>bsminfo = new BsmInfo[1... | bsmmap.put(slashedClassName, bsminfo); |
1,586,140 | static void writeObjects(String elt, XMLWriter writer, java.util.List<ObjectDescriptor> objects, java.util.List<PropertyDescriptor> properties) throws java.io.IOException {<NEW_LINE>for (ObjectDescriptor p : objects) {<NEW_LINE>java.util.List<String[]> attributes = new java.util.LinkedList<>();<NEW_LINE>String strId = ... | writer.writeElement(elt, attributes); |
731,779 | private Map<String, Object> fillSpecProps(Distribution distribution, Map<String, Object> props, DockerSpec spec) throws PackagerProcessingException {<NEW_LINE>List<Artifact> artifacts = Collections.singletonList(spec.getArtifact());<NEW_LINE>Map<String, Object> newProps = fillProps(distribution, props);<NEW_LINE>newPro... | (spec.getName())); |
1,101,079 | protected void initScene() {<NEW_LINE>// set the direction<NEW_LINE>mLight = new DirectionalLight(0, -0.2f, -1.0f);<NEW_LINE>mLight.setColor(1.0f, 1.0f, 1.0f);<NEW_LINE>mLight.setPower(2);<NEW_LINE>getCurrentScene().addLight(mLight);<NEW_LINE>getCurrentCamera().setY(1);<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>LoaderMD5... | getCurrentCamera().setZ(6); |
303,610 | private static synchronized void load(WebAppModel model, IntPredicate action) {<NEW_LINE>captureLatch = new CountDownLatch(1);<NEW_LINE>thrown.set(null);<NEW_LINE>Platform.runLater(() -> {<NEW_LINE>// zoom should only be factored on raster prints<NEW_LINE>pageZoom = model.getZoom();<NEW_LINE>pageWidth = model.getWebWid... | load(model.getSource()); |
763,597 | public void visitProgramClass(ProgramClass programClass) {<NEW_LINE>lambdaExpressionMap.clear();<NEW_LINE>programClass.accept(new LambdaExpressionCollector(lambdaExpressionMap));<NEW_LINE>if (!lambdaExpressionMap.isEmpty()) {<NEW_LINE>logger.debug("LambdaExpressionConverter: converting lambda expressions in [{}]", prog... | extraDataEntryNameMap.addExtraClassToClass(programClass, lambdaClass); |
1,573,542 | private void handle(APIDetachEipMsg msg) {<NEW_LINE>final APIDetachEipEvent evt = new APIDetachEipEvent(msg.getId());<NEW_LINE>final EipVO vo = dbf.findByUuid(msg.<MASK><NEW_LINE>VmNicVO nicvo = dbf.findByUuid(vo.getVmNicUuid(), VmNicVO.class);<NEW_LINE>VmNicInventory nicInventory = VmNicInventory.valueOf(nicvo);<NEW_L... | getUuid(), EipVO.class); |
1,697,518 | public static void generateMov(final ITranslationEnvironment environment, final long baseOffset, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>Preconditions.checkNotNull(environment, "Error: Argument environment can't be null");<NEW_LINE>Precond... | Preconditions.checkNotNull(instructions, "Error: Argument instructions can't be null"); |
191,013 | protected void handleSmsReceived(Intent intent) {<NEW_LINE>String body;<NEW_LINE>Bundle bundle = intent.getExtras();<NEW_LINE>Message msg = new Message();<NEW_LINE>log("handleSmsReceived() bundle " + bundle);<NEW_LINE>if (bundle != null) {<NEW_LINE>SmsMessage[] messages = getMessagesFromIntent(intent);<NEW_LINE>if (mes... | [i].getMessageBody()); |
1,776,908 | static DataPack build(@Nonnull List<? extends GraphCommit<Integer>> commits, @Nonnull Map<VirtualFile, CompressedRefs> refs, @Nonnull Map<VirtualFile, VcsLogProvider> providers, @Nonnull final VcsLogStorage hashMap, boolean full) {<NEW_LINE>RefsModel refsModel;<NEW_LINE>PermanentGraph<Integer> permanentGraph;<NEW_LINE>... | refsModel, permanentGraph, providers, full); |
601,208 | public Pair<Integer, Integer> updatePlanManagementInfo(long lastExecuteUnixTime, double executionTimeInSeconds, Throwable ex) {<NEW_LINE>if (!executionContext.getParamManager().getBoolean(ConnectionParams.ENABLE_SPM)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (executionContext.getExplain() != null) {<NEW_LINE>retu... | ExecutionPlan executionPlan = executionContext.getFinalPlan(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.