idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
217,943 | public void prepare() throws Exception {<NEW_LINE>// The task ID is different for local and cluster executions<NEW_LINE>// So including that in the log can help associate the log to the run<NEW_LINE>LOG.info("Task ID is {}", mBaseParameters.mId);<NEW_LINE>// Prepare block IDs to use for this test<NEW_LINE>// We prepare... | mConf)).build()); |
762,315 | public void run(FlowTrigger trigger, Map data) {<NEW_LINE>ApplianceVmVO avo = (ApplianceVmVO) chain.getData().get(ApplianceVmVO.class.getSimpleName());<NEW_LINE>final ApplianceVmInventory inv = ApplianceVmInventory.valueOf(avo);<NEW_LINE>StartNewCreatedApplianceVmMsg msg = new StartNewCreatedApplianceVmMsg();<NEW_LINE>... | nicSpecs = new ArrayList<>(); |
136,451 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String clientId = config.getValue("client.clientId", String.class);<NEW_LINE>String clientSecret = config.getValue("client.clientSecret", String.class);<NEW_LINE>JsonObject actualTokenResponse ... | , actualTokenResponse.getString("refresh_token")); |
1,182,624 | public void produceRedisClient(RedisClientRecorder recorder, BeanArchiveIndexBuildItem indexBuildItem, BuildProducer<SyntheticBeanBuildItem> syntheticBeans, VertxBuildItem vertxBuildItem) {<NEW_LINE>Set<String> clientNames = new HashSet<>();<NEW_LINE>clientNames.add(RedisClientUtil.DEFAULT_CLIENT);<NEW_LINE>IndexView i... | (createMutinyRedisSyntheticBean(recorder, clientName)); |
483,300 | public void add(int index, E element) {<NEW_LINE>ensureIsMutable();<NEW_LINE>if (index < 0 || index > size) {<NEW_LINE>throw new IndexOutOfBoundsException(makeOutOfBoundsExceptionMessage(index));<NEW_LINE>}<NEW_LINE>if (size < array.length) {<NEW_LINE>// Shift everything over to make room<NEW_LINE>System.arraycopy(arra... | 0, newArray, 0, index); |
509,143 | public UnsuccessfulInstanceCreditSpecificationItem unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>UnsuccessfulInstanceCreditSpecificationItem unsuccessfulInstanceCreditSpecificationItem = new UnsuccessfulInstanceCreditSpecificationItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<... | ().unmarshall(context)); |
1,755,350 | public Response addTopLevelGroup(GroupRepresentation rep) {<NEW_LINE>auth.groups().requireManage();<NEW_LINE>GroupModel child;<NEW_LINE>Response.ResponseBuilder builder = Response.status(204);<NEW_LINE>String groupName = rep.getName();<NEW_LINE>if (ObjectUtil.isBlank(groupName)) {<NEW_LINE>return ErrorResponse.error("G... | realm.moveGroup(child, null); |
501,388 | public byte[] encrypt(byte[] key, byte[] data) {<NEW_LINE>if (key == null) {<NEW_LINE>LOGGER.severe(Common.addTag("Key is null"));<NEW_LINE>return new byte[0];<NEW_LINE>}<NEW_LINE>if (data == null) {<NEW_LINE>LOGGER.severe(Common.addTag("data is null"));<NEW_LINE>return new byte[0];<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>b... | = new SecretKeySpec(key, ALGORITHM); |
131,897 | public boolean clearAccounting(MAcctSchema accountSchema, I_M_CostType costType, PO model, int productId, Timestamp dateAcct) {<NEW_LINE>// check if costing type need reset accounting<NEW_LINE>if (!accountSchema.getCostingMethod().equals(costType.getCostingMethod())) {<NEW_LINE>MProduct product = MProduct.get(accountSc... | ), model.get_TrxName()); |
1,095,958 | private void addJumpValue(int from, int target) {<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("Set jump entry at " + methodName + ":" + target + " pc to " + stack + " : " + lvValues);<NEW_LINE>}<NEW_LINE>if (from >= target) {<NEW_LINE>backwardsBranch = true;<NEW_LINE>}<NEW_LINE>List<Item> atTarget = jumpEntries.g... | setJumpInfoChangedByBackwardBranch("stack", from, target); |
128,578 | public static String encodedDigest(String code_verifier, String algorithm, String charset) {<NEW_LINE>MessageDigest md;<NEW_LINE>String output = null;<NEW_LINE>if (code_verifier != null && code_verifier.length() > 0) {<NEW_LINE>try {<NEW_LINE>md = MessageDigest.getInstance(algorithm);<NEW_LINE>md.update(code_verifier.g... | throw new RuntimeException("Exception converting String object : " + uee); |
923,120 | private int init() throws IOException {<NEW_LINE>if (null == fileChannel) {<NEW_LINE>if (!segmentFile.exists()) {<NEW_LINE>if (epochClock.time() > connectDeadlineMs) {<NEW_LINE>onError("recording segment not found " + segmentFile);<NEW_LINE>}<NEW_LINE>return 0;<NEW_LINE>} else {<NEW_LINE>final long startTermBasePositio... | replayPosition & (termLength - 1)); |
1,286,903 | public <RET extends List<?>> RET objectCommand(String iCommand, Object... iArgs) {<NEW_LINE>checkOpenness();<NEW_LINE>convertParameters(iArgs);<NEW_LINE>final OResultSet result = underlying.command(iCommand, iArgs);<NEW_LINE>if (result == null)<NEW_LINE>return null;<NEW_LINE>try {<NEW_LINE>final List<Object> resultPojo... | .getElement().get(); |
220,231 | private void initSwitchLineAction() {<NEW_LINE>final KeyStroke keyLinesDown = KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, Event.SHIFT_MASK);<NEW_LINE>final KeyStroke keyLinesUp = KeyStroke.getKeyStroke(KeyEvent.VK_UP, Event.SHIFT_MASK);<NEW_LINE>aSwitchLinesDownAction = new SwitchAction("switchLinesDown", keyLinesDown, th... | ).put(keyLinesDown, "none"); |
186,371 | public CreateStreamingImageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateStreamingImageResult createStreamingImageResult = new CreateStreamingImageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | JsonToken token = context.getCurrentToken(); |
336,498 | private void loadColumnsStrategies() {<NEW_LINE>JPanel strategiesPanel = new JPanel();<NEW_LINE>strategiesPanel.setLayout(new MigLayout("fillx"));<NEW_LINE>if (duplicateGroups != null && duplicateGroups.size() > 0) {<NEW_LINE>strategiesPanel.add(new JLabel(NbBundle.getMessage(MergeNodeDuplicatesUI.class, "MergeNodeDupl... | nodes = duplicateGroups.get(0); |
720,070 | public static // the given uri. Defaults to mpeg video for indeterminate local uris.<NEW_LINE>DLNAResource autoMatch(String uri, String name) {<NEW_LINE>try {<NEW_LINE>uri = URLDecoder.decode(uri, "UTF-8");<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>boolean isweb = uri.match... | LOGGER.error("URL decoding error ", e); |
168,370 | public void printResponseParts(Object response, String testName, String additionalMessage) throws Exception {<NEW_LINE>Log.info(thisClass, testName, StringUtils.center(" Start Response Content ", 150, PRINT_DELIMITER_REQUEST_PARTS));<NEW_LINE>if (response == null) {<NEW_LINE>Log.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_L... | info(thisClass, testName, "The response is null - nothing to print"); |
452,492 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "a_string,b_string,c_string,d_string".split(",");<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#keepall " + "match_recognize (" + " measures A.theString as a_string, B.theString as b_string, C.theString as c_string, D.theStrin... | (text).addListener("s0"); |
890,830 | final AssociatePrincipalWithPortfolioResult executeAssociatePrincipalWithPortfolio(AssociatePrincipalWithPortfolioRequest associatePrincipalWithPortfolioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associatePrincipalWithPortfolioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | (super.beforeMarshalling(associatePrincipalWithPortfolioRequest)); |
993,742 | private void doChangePlan(final DefaultSubscriptionBase subscription, final EntitlementSpecifier spec, final DateTime effectiveDate, final CallContext context) throws SubscriptionBaseApiException, CatalogApiException {<NEW_LINE>final InternalCallContext internalCallContext = createCallContextFromBundleId(subscription.g... | SUB_CHANGE_INVALID, subscription.getId()); |
592,601 | public static void destroy(String userName, String password, String appId) throws SaturnJobConsoleException {<NEW_LINE>String urlStr = SaturnEnvProperties.VIP_SATURN_DCOS_REST_URI + API_VERSION_DES + appId;<NEW_LINE>CloseableHttpClient httpClient = HttpClients.createDefault();<NEW_LINE>try {<NEW_LINE>HttpDelete httpDel... | e.getMessage(), e); |
1,048,700 | public void marshall(GatewayInfo gatewayInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (gatewayInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(gatewayInfo.getGatewayId(), GATEWAYID_BINDING);<NEW... | gatewayInfo.getEc2InstanceRegion(), EC2INSTANCEREGION_BINDING); |
409,071 | protected Sheet createSheet() {<NEW_LINE>Sheet sheet = super.createSheet();<NEW_LINE>Sheet.Set ps = sheet.get(Sheet.PROPERTIES);<NEW_LINE>if (ps == null) {<NEW_LINE>ps = Sheet.createPropertiesSet();<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>ps.put(createProperty(AnnotationTypes.PROP_BACKGROUND_DRAWING, boolean.class));<NE... | .PROP_SHOW_GLYPH_GUTTER, boolean.class)); |
603,938 | protected LineIndentResult determineIndent(IDocument doc, BlockHeuristicsScannner bhscanner, final int line, final int editOffset) throws BadLocationException {<NEW_LINE>IRegion lineRegion = doc.getLineInformation(line);<NEW_LINE>final int lineStart = lineRegion.getOffset();<NEW_LINE>assertTrue(lineStart <= editOffset ... | , "", new BlockBalanceResult()); |
1,182,494 | private QueryBuilder buildQueryString(@Nonnull String path, @Nonnull Map<String, String> requestMap, boolean isGroupQuery) {<NEW_LINE>final int browseDepthVal = getPathDepth(path) + 1;<NEW_LINE>final BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();<NEW_LINE>queryBuilder.mustNot(QueryBuilders.termQuery(REMOVED... | BROWSE_PATH_DEPTH).gt(browseDepthVal)); |
1,549,420 | public void vp8_loop_filter_update_sharpness(int sharpness_lvl) {<NEW_LINE>int i;<NEW_LINE>block_inside_limit = filt_lvl >> (<MASK><NEW_LINE>block_inside_limit = block_inside_limit >> (sharpness_lvl > 4 ? 1 : 0);<NEW_LINE>if (sharpness_lvl > 0) {<NEW_LINE>if (block_inside_limit > (9 - sharpness_lvl)) {<NEW_LINE>block_i... | sharpness_lvl > 0 ? 1 : 0); |
771,410 | public Optional<ContentType> tryMatch(final String mimeType, final Host currentHost, final User user) throws DotSecurityException, DotDataException {<NEW_LINE>final List<ContentType> dotAssetContentTypes = APILocator.getContentTypeAPI(user).findByType(BaseContentType.DOTASSET);<NEW_LINE>if (UtilMethods.isSet(dotAssetCo... | put(mimeTypeItem, contentTypeMimeType.contentType); |
1,784,162 | String makeUniqueTokenForMachine(final SessionLabel sessionLabel, final TokenMachine machine) throws PwmUnrecoverableException, PwmOperationalException {<NEW_LINE>String tokenKey = null;<NEW_LINE>int attempts = 0;<NEW_LINE>final int maxUniqueCreateAttempts = Integer.parseInt(pwmDomain.getConfig()<MASK><NEW_LINE>while (... | .readAppProperty(AppProperty.TOKEN_MAX_UNIQUE_CREATE_ATTEMPTS)); |
356,895 | private AmazonS3 createAmazonS3Client(Configuration hadoopConfig, ClientConfiguration clientConfig) {<NEW_LINE>Optional<EncryptionMaterialsProvider> encryptionMaterialsProvider = createEncryptionMaterialsProvider(hadoopConfig);<NEW_LINE>AmazonS3Builder<? extends AmazonS3Builder, ? extends AmazonS3> clientBuilder;<NEW_L... | withRegion(region.getName()); |
1,775,590 | public static <T> ServerServiceDefinition useMarshalledMessages(final ServerServiceDefinition serviceDef, final MethodDescriptor.Marshaller<T> marshaller) {<NEW_LINE>List<ServerMethodDefinition<?, ?>> wrappedMethods = new ArrayList<>();<NEW_LINE>List<MethodDescriptor<?, ?>> wrappedDescriptors = new ArrayList<>();<NEW_L... | marshaller, marshaller).build(); |
1,193,653 | public void testTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String <MASK><NEW_LINE>String timeout = param.get("timeout");<NEW_LINE>long longTimeout = 0L;<NEW_LINE>String res = null;<NEW_LINE>ClientBuilder cb = ClientBuilder.newBuilder();<NEW_LINE>Cl... | serverPort = param.get("serverPort"); |
1,716,367 | public MycatRel compileQuery(OptimizationContext optimizationContext, SchemaPlus plus, DrdsSql drdsSql) {<NEW_LINE>RelNode logPlan;<NEW_LINE>RelNodeContext relNodeContext = null;<NEW_LINE>{<NEW_LINE>relNodeContext = getRelRoot(plus, drdsSql);<NEW_LINE>logPlan = relNodeContext.getRoot().rel;<NEW_LINE>optimizationContext... | rboLogPlan, Collections.emptyList()); |
429,659 | private static void printNode(Node n, String sp, java.io.PrintStream out, boolean instances) {<NEW_LINE>int i;<NEW_LINE>Iterator it;<NEW_LINE>Class type = n.getType();<NEW_LINE>out.print(sp);<NEW_LINE>// NOI18N<NEW_LINE>out.println("Node for: " + type + "\t" + ((type == null) ? null : type.getClassLoader()));<NEW_LINE>... | n.items).iterator(); |
335,360 | public void valueExprToString(StringBuilder out, int indent) {<NEW_LINE>if (inListConstantsOnly != null) {<NEW_LINE>out.append("constant values, ").append(inListConstantsOnly.length).append(" entries").append(NEWLINE);<NEW_LINE>for (int i = 0; i < inListConstantsOnly.length; i++) {<NEW_LINE>out.append(Indent.indent(ind... | (" entries").append(NEWLINE); |
1,841,935 | public static void horizontal5(Kernel1D_S32 kernel, GrayS16 image, GrayI16 dest, int divisor) {<NEW_LINE>final short[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final ... | dataSrc[indexSrc++]) * k3; |
1,041,780 | public static String randomJsStringFromRanges(SortedListOfRanges ranges, int length) {<NEW_LINE>Random random = new Random(System.currentTimeMillis());<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>int rangeIndex = random.nextInt(ranges.size());<NEW_LINE>int lo = ranges.getLo(rangeIndex);<NEW_LIN... | StringBuilder stringBuilder = new StringBuilder(length); |
709,654 | final BatchPutMessageResult executeBatchPutMessage(BatchPutMessageRequest batchPutMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchPutMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,267,864 | private Mono<Response<Flux<ByteBuffer>>> refreshWithResponseAsync(String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (deviceName == null) {<NEW_LINE>return M... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,615,486 | protected void logCommon(TraceComponent logger) {<NEW_LINE>ContainerData useImmediateContainerData = getImmediateContainerData();<NEW_LINE>Tr.debug(logger, MessageFormat.format(" Immediate container [ {0} ] [ {1} ]", useImmediateContainerData.name, useImmediateContainerData.container));<NEW_LINE>ContainerData useAppli... | <ContainerData> useLibrariesContainerData = getApplicationLibrariesContainerData(); |
1,201,292 | protected JenaConnection connect(Properties props, int compatibilityLevel) throws SQLException {<NEW_LINE>String location = props.getProperty(PARAM_LOCATION);<NEW_LINE>if (location == null)<NEW_LINE>throw new SQLException("Required connection parameter " + PARAM_LOCATION + " is not present in the connection URL or the ... | ) : TDBFactory.createDataset(location); |
857,023 | public static DescribeColumnsResponse unmarshall(DescribeColumnsResponse describeColumnsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeColumnsResponse.setRequestId(_ctx.stringValue("DescribeColumnsResponse.RequestId"));<NEW_LINE>List<Column> items = new ArrayList<Column>();<NEW_LINE>for (int i = 0; i < _ctx.len... | ("DescribeColumnsResponse.Items[" + i + "].DBClusterId")); |
441,690 | public void init(IBatchConfig batchConfig) throws BatchContainerServiceException {<NEW_LINE>logger.log(Level.CONFIG, "Entering CLASSNAME.init(), batchConfig ={0}", batchConfig);<NEW_LINE>this.batchConfig = batchConfig;<NEW_LINE>schema = batchConfig.getDatabaseConfigurationBean().getSchema();<NEW_LINE>jndiName = batchCo... | Level.CONFIG, "JNDI name = {0}", jndiName); |
1,229,288 | private Properties createJavaMailProperties() {<NEW_LINE>Properties javaMailProperties = new Properties();<NEW_LINE>String protocol = this.config.getSmtpProtocol();<NEW_LINE>javaMailProperties.put("mail.transport.protocol", protocol);<NEW_LINE>javaMailProperties.put(MAIL_PROP + protocol + ".host", this.config.getSmtpHo... | ".proxy.port", config.getProxyPort()); |
930,125 | final RunJobFlowResult executeRunJobFlow(RunJobFlowRequest runJobFlowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(runJobFlowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,346,012 | private List<Rectangle> processCodeAreas(Parent pane) {<NEW_LINE>var nodes = pane.lookupAll("ContentEditor");<NEW_LINE>ArrayList<Rectangle> <MASK><NEW_LINE>for (Node node : nodes) {<NEW_LINE>ArrayList<TextBoundingBox> bboxes = new ArrayList<>();<NEW_LINE>var area = ((ContentEditor) node).getCodeArea();<NEW_LINE>LiveLis... | result = new ArrayList<>(); |
1,427,734 | public void sendTextCommand(String destAddress, Command command) throws Exception {<NEW_LINE>if (Context.getSmsManager() != null) {<NEW_LINE>if (command.getType().equals(Command.TYPE_CUSTOM)) {<NEW_LINE>Context.getSmsManager().sendMessageSync(destAddress, command.getString(Command.KEY_DATA), true);<NEW_LINE>} else if (... | String) textCommandEncoder.encodeCommand(command); |
1,430,296 | final UpdatePipelineResult executeUpdatePipeline(UpdatePipelineRequest updatePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,664,986 | private int computeGeneralPoints(DMatrix leftPoint, DMatrix rightView, double[] input, int observationIndex, int viewIndex, SceneStructureCommon.Camera camera, int cameraParamStartIndex) {<NEW_LINE>SceneObservations.View obsView = observations.views.get(viewIndex);<NEW_LINE>SceneStructureMetric.View strView = structure... | leftPoint, rightView, strView, columnOfPointInJac); |
425,091 | private String format(String input, IParseNode parseResult, int indentationLevel, boolean isSelection) throws Exception {<NEW_LINE>int spacesCount = -1;<NEW_LINE>if (isSelection) {<NEW_LINE>spacesCount = countLeftWhitespaceChars(input);<NEW_LINE>}<NEW_LINE>final FormatterDocument document = createFormatterDocument(inpu... | (getInt(HTMLFormatterConstants.WRAP_COMMENTS_LENGTH)); |
1,034,315 | public TOTorrent selectHybridHashType(int type) throws TOTorrentException {<NEW_LINE>if (torrent_type != TT_V1_V2) {<NEW_LINE>throw (new TOTorrentException("Torrent isn't hybrid", TOTorrentException.RT_CREATE_FAILED));<NEW_LINE>}<NEW_LINE>TOTorrent clone = TOTorrentFactory.deserialiseFromBEncodedByteArray(serialiseToBy... | put(TorrentUtils.TORRENT_AZ_PROP_HYBRID_HASH_V2, 1L); |
1,132,369 | final GetApplicationComponentStrategiesResult executeGetApplicationComponentStrategies(GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getApplicationComponentStrategiesRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
333,313 | String tag(String namespace, String local, int type, boolean localIsQname) {<NEW_LINE>String prefix = ns.get(namespace);<NEW_LINE>if (type != FAST && type != FASTATTR) {<NEW_LINE>if ((!localIsQname) && !XMLChar.isValidNCName(local))<NEW_LINE>return splitTag(namespace + local, type);<NEW_LINE>if (namespace.equals(RDFNS)... | cookUpAttribution(type, namespace, local); |
1,587,253 | final GetFaceSearchResult executeGetFaceSearch(GetFaceSearchRequest getFaceSearchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFaceSearchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetFaceSearch"); |
1,291,926 | protected String doIt() throws Exception {<NEW_LINE>// Instance current Payment Selection<NEW_LINE>MPaySelection paySelection = new MPaySelection(getCtx(), getRecord_ID(), get_TrxName());<NEW_LINE>sequence.set(paySelection.getLastLineNo());<NEW_LINE>// Loop for keys<NEW_LINE>getSelectionKeys().forEach(key -> {<NEW_LINE... | sourceAmount = getSelectionAsBigDecimal(key, "HRM_Amount"); |
1,768,253 | public RbacTokenResponse queryToken(RbacTokenRequest request) {<NEW_LINE>try {<NEW_LINE>HttpResponse response = httpClient.postHttpRequestAbsoluteUrl("/v4/token", null, HttpUtils.serialize(request));<NEW_LINE>if (response.getStatusCode() == HttpStatus.SC_OK) {<NEW_LINE>RbacTokenResponse result = HttpUtils.deserialize(r... | setStatusCode(response.getStatusCode()); |
357,674 | static FillingSchedule create(int holeStart, int holeEnd, int[] counts, int[][] leftoverHoles) {<NEW_LINE>List<ScheduleEntry> schedule = new ArrayList<>();<NEW_LINE>if (leftoverHoles == EMPTY_INT_ARRAY_ARRAY) {<NEW_LINE>// packing static fields is not as interesting as instance fields: the array<NEW_LINE>// created<NEW... | holeStart, holeEnd, counts, schedule); |
1,709,218 | public List<String> fakeFiles(final List<Integer> expectedTiles, final int[] expectedCycles, final IlluminaFileUtil.SupportedIlluminaFormat format) {<NEW_LINE>if (tileIndex == null) {<NEW_LINE>return Collections.singletonList("Tile index(" + <MASK><NEW_LINE>}<NEW_LINE>final List<String> ret = tileIndex.verify(expectedT... | bci.getAbsolutePath() + ") does not exist!"); |
528,186 | private Map<String, Object> navToMap(final NavResult nav, final int maxDepth, final int currentDepth) throws Exception {<NEW_LINE>final Map<String, Object> navMap = new HashMap<String, Object>();<NEW_LINE>navMap.put("title", nav.getTitle());<NEW_LINE>navMap.put("target", nav.getTarget());<NEW_LINE>navMap.put("code", na... | child, maxDepth, ++startDepth)); |
165,670 | public DataFlowInfo createDataFlow(InlongGroupInfo groupInfo, SinkResponse sinkResponse) {<NEW_LINE>String groupId = sinkResponse.getInlongGroupId();<NEW_LINE>String streamId = sinkResponse.getInlongStreamId();<NEW_LINE>// TODO Support all source type, include AUTO_PUSH.<NEW_LINE>List<SourceResponse> sourceList = strea... | getFieldList(), sourceFields, sinkFields); |
1,168,307 | private BufferSet appendInvertedGeometry(IntBuffer indicesAsInt, DoubleBuffer verticesAsDouble, FloatBuffer normalsAsFloat, IntBuffer colorIndices) {<NEW_LINE>indicesAsInt.position(0);<NEW_LINE>normalsAsFloat.position(0);<NEW_LINE>ByteBuffer newVerticesByteBuffer = ByteBuffer.allocate(verticesAsDouble.capacity() * 16);... | capacity(), index1 + nrVertices); |
743,720 | private void runBatfish(BindPortFutures bindPortFutures) throws ExecutionException, InterruptedException {<NEW_LINE>String batfishArgs = String.format("%s -%s %s -%s %s -%s %s -%s %s", _settings.getBatfishArgs(), org.batfish.config.Settings.ARG_RUN_MODE, _settings.getBatfishRunMode(), org.batfish.config.Settings.ARG_CO... | Driver.main(argArray, _logger); |
391,747 | private void initializeDefaultVirtualNetworkModels() {<NEW_LINE>List<TrafficType> types <MASK><NEW_LINE>types.add(TrafficType.Management);<NEW_LINE>types.add(TrafficType.Storage);<NEW_LINE>types.add(TrafficType.Control);<NEW_LINE>List<NetworkVO> dbNets = findManagedNetworks(types);<NEW_LINE>for (NetworkVO net : dbNets)... | = new ArrayList<TrafficType>(); |
614,676 | public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.LED_STRIP_CONFIGURATION__CHIPTYPE:<NEW_LINE>return CHIPTYPE_EDEFAULT == null ? chiptype != null : !CHIPTYPE_EDEFAULT.equals(chiptype);<NEW_LINE>case ModelPackage.LED_STRIP_CONFIGURATION__FRAMEDURATION:<NEW_LINE>return FRAMEDU... | : !FRAMEDURATION_EDEFAULT.equals(frameduration); |
555,238 | public void onRestoreInstanceState(Parcelable state) {<NEW_LINE>if (state instanceof Bundle) {<NEW_LINE>Bundle bundle = (Bundle) state;<NEW_LINE>Serializable brand = bundle.getSerializable(BootstrapBrand.KEY);<NEW_LINE>if (brand instanceof BootstrapBrand) {<NEW_LINE>bootstrapBrand = (BootstrapBrand) brand;<NEW_LINE>}<N... | userProgress = bundle.getInt(KEY_USER_PROGRESS); |
171,280 | public static // FIXME: Proxy could just pass the pk index here which is much faster.<NEW_LINE>long createRowWithPrimaryKey(Table table, long primaryKeyColumnIndex, @Nullable Object primaryKeyValue) {<NEW_LINE>RealmFieldType type = table.getColumnType(primaryKeyColumnIndex);<NEW_LINE>final <MASK><NEW_LINE>if (type == R... | OsSharedRealm sharedRealm = table.getSharedRealm(); |
1,155,333 | public static Component copyComponentProperties(Component source, Component target) throws Throwable {<NEW_LINE>if (!source.getClass().equals(target.getClass())) {<NEW_LINE>throw new IllegalArgumentException("Source and target classes must be identical");<NEW_LINE>}<NEW_LINE>final Class componentClass = source.getClass... | propertySetterMethod.getParameterTypes()[0]; |
476,184 | protected void checkTopics() {<NEW_LINE>if (this.containerProperties.isMissingTopicsFatal() && this.containerProperties.getTopicPattern() == null) {<NEW_LINE>Map<String, Object> configs = this.consumerFactory.getConfigurationProperties().entrySet().stream().filter(entry -> AdminClientConfig.configNames().contains(entry... | collect(Collectors.toList()); |
1,772,802 | private static void downloadData() throws Exception {<NEW_LINE>// Create directory if required<NEW_LINE>File directory = new File(DATA_PATH);<NEW_LINE>if (!directory.exists())<NEW_LINE>directory.mkdir();<NEW_LINE>// Download file:<NEW_LINE>String archizePath = DATA_PATH + "aclImdb_v1.tar.gz";<NEW_LINE><MASK><NEW_LINE>S... | File archiveFile = new File(archizePath); |
343,043 | final ValidateSecurityProfileBehaviorsResult executeValidateSecurityProfileBehaviors(ValidateSecurityProfileBehaviorsRequest validateSecurityProfileBehaviorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(validateSecurityProfileBehaviorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,320,612 | public static DescribeEventCountCurveResponse unmarshall(DescribeEventCountCurveResponse describeEventCountCurveResponse, UnmarshallerContext context) {<NEW_LINE>describeEventCountCurveResponse.setRequestId<MASK><NEW_LINE>describeEventCountCurveResponse.setSuccess(context.booleanValue("DescribeEventCountCurveResponse.S... | (context.stringValue("DescribeEventCountCurveResponse.RequestId")); |
217,790 | private void configurePorts(Instance instance) {<NEW_LINE>BitWidth dataWid = instance.getAttributeValue(StdAttr.WIDTH);<NEW_LINE>int data = dataWid == null ? 32 : dataWid.getWidth();<NEW_LINE>int shift = 1;<NEW_LINE>while ((1 << shift) < data) shift++;<NEW_LINE>instance.getAttributeSet().setValue(SHIFT_BITS_ATTR, shift... | 10, Port.INPUT, shift); |
1,407,205 | protected void addDefaultClientScopes(RealmModel realm, Stream<ClientModel> newClients) {<NEW_LINE>Set<ClientScopeModel> defaultClientScopes = realm.getDefaultClientScopesStream(true).filter(clientScope -> Objects.equals(getId(), clientScope.getProtocol())).collect(Collectors.toSet());<NEW_LINE>Set<ClientScopeModel> no... | collect(Collectors.toSet()); |
1,461,268 | public void clear(int startIndex, int endIndex) {<NEW_LINE>assert startIndex >= 0 && startIndex < numBits : "startIndex=" + startIndex + ", numBits=" + numBits;<NEW_LINE>assert endIndex >= 0 && endIndex <= numBits : "endIndex=" + endIndex + ", numBits=" + numBits;<NEW_LINE>if (endIndex <= startIndex) {<NEW_LINE>return;... | = -1L >>> -endIndex; |
412,461 | /*@Override<NEW_LINE>public String getMenuName() {//KS TODO not implemented<NEW_LINE>return getString(R.string.snooze_alert);<NEW_LINE>}*/<NEW_LINE>public void addListenerOnButton() {<NEW_LINE>buttonSnooze = (Button) findViewById(R.id.button_snooze);<NEW_LINE>// low alerts<NEW_LINE>disableLowAlerts = (Button) findViewB... | findViewById(R.id.button_disable_high_alerts); |
867,693 | void checkConcreteInheritedMethod(MethodBinding concreteMethod, MethodBinding[] abstractMethods) {<NEW_LINE>// Remember that interfaces can only define public instance methods<NEW_LINE>if (concreteMethod.isStatic())<NEW_LINE>// Cannot inherit a static method which is specified as an instance method by an interface<NEW_... | ().modifiers |= ExtraCompilerModifiers.AccLocallyUsed; |
1,046,453 | private void startTests(final MaplyTestCase[] tests, final int index) {<NEW_LINE>if (tests.length != index) {<NEW_LINE>final MaplyTestCase head = tests[index];<NEW_LINE>if (ConfigOptions.getTestState(getApplicationContext(), head.getTestName()) == ConfigOptions.TestState.Selected) {<NEW_LINE>head.setOptions(ConfigOptio... | ), ConfigOptions.TestState.Executing); |
967,646 | public static void createCluster(String destZkString, String destClusterName, VcrHelixConfig config) {<NEW_LINE>HelixZkClient destZkClient = getHelixZkClient(destZkString);<NEW_LINE>HelixAdmin destAdmin = new ZKHelixAdmin(destZkClient);<NEW_LINE>if (ZKUtil.isClusterSetup(destClusterName, destZkClient)) {<NEW_LINE>error... | helixClusterProperties = new HashMap<>(); |
957,583 | public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final InterceptorScopeInvocation invoca... | final CommandContext commandContext = (CommandContext) attachment; |
1,529,177 | public void execute(FreezeBalanceParam param, Repository repo) {<NEW_LINE>// calculate expire time<NEW_LINE><MASK><NEW_LINE>long nowInMs = dynamicStore.getLatestBlockHeaderTimestamp();<NEW_LINE>long expireTime = nowInMs + param.getFrozenDuration() * FROZEN_PERIOD;<NEW_LINE>byte[] ownerAddress = param.getOwnerAddress();... | DynamicPropertiesStore dynamicStore = repo.getDynamicPropertiesStore(); |
47,584 | public com.squareup.okhttp.Call endpointCertificatesGetCall(String xWSO2Tenant, String alias, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path an... | final String[] localVarContentTypes = {}; |
564,520 | public static String generateTokenImagePath(CardDownloadData card) {<NEW_LINE>if (card.isToken()) {<NEW_LINE>String filePath = getTokenImagePath(card);<NEW_LINE>if (pathCache.containsKey(card)) {<NEW_LINE>if (filePath.equals(pathCache.get(card))) {<NEW_LINE>return pathCache.get(card);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>TFi... | " Name: " + card.getName()); |
637,527 | final DeletePermissionPolicyResult executeDeletePermissionPolicy(DeletePermissionPolicyRequest deletePermissionPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePermissionPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
450,418 | public void validatePeriods(final I_C_Flatrate_Term term) {<NEW_LINE>if (term.getStartDate() != null && !term.isProcessed()) {<NEW_LINE>Services.get(IFlatrateBL.class).updateNoticeDateAndEndDate(term);<NEW_LINE>setMasterEndDate(term);<NEW_LINE>}<NEW_LINE>final Properties ctx = InterfaceWrapperHelper.getCtx(term);<NEW_L... | term.getEndDate(), trxName); |
1,666,299 | public boolean runPlugin(final PathPlugin<BufferedImage> plugin, final String arg, final boolean doInteractive) throws Exception {<NEW_LINE>// try {<NEW_LINE>// TODO: Check safety...<NEW_LINE>if (doInteractive && plugin instanceof PathInteractivePlugin) {<NEW_LINE>PathInteractivePlugin<BufferedImage> pluginInteractive ... | map = GeneralTools.parseArgStringValues(arg); |
1,788,741 | public void encryptionSample() {<NEW_LINE>CosmosClientBuilder builder = new CosmosClientBuilder();<NEW_LINE>CosmosAsyncClient client = builder.key("key").endpoint("endpoint").buildAsyncClient();<NEW_LINE>// creating container with client encryption policy<NEW_LINE>createContainerWithClientEncryptionPolicy(client);<NEW_... | .randomUUID().toString(); |
1,565,351 | public DevicePoolCompatibilityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DevicePoolCompatibilityResult devicePoolCompatibilityResult = new DevicePoolCompatibilityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth... | String currentParentElement = context.getCurrentParentElement(); |
1,773,767 | public static PointDescription deserializeFromString(String s, LatLon l) {<NEW_LINE>PointDescription pd = null;<NEW_LINE>if (s != null && s.length() > 0) {<NEW_LINE>int in = s.indexOf('#');<NEW_LINE>if (in >= 0) {<NEW_LINE>int ii = s.indexOf('#', in + 1);<NEW_LINE>String name;<NEW_LINE>String icon = null;<NEW_LINE>if (... | s.substring(0, in); |
601,214 | public GetMedicalVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetMedicalVocabularyResult getMedicalVocabularyResult = new GetMedicalVocabularyResult();<NEW_LINE><MASK><NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String name = reader.nextName();... | AwsJsonReader reader = context.getReader(); |
173,616 | private void registerItemConfig(MqttitudeItemConfig itemConfig) {<NEW_LINE>if (itemConfig == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>String topic = itemConfig.getTopic();<NEW_LINE>// get the consumer for this broker/topic (might not exist)<NEW_LINE>MqttitudeConsumer consumer = getConsumer(broker, t... | String broker = itemConfig.getBroker(); |
24,262 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* listDeviceStatuses(com.sitewhere.grpc.service.GListDeviceStatusesRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void lis... | (DeviceModelConverter.asGrpcDeviceStatus(apiType)); |
250,963 | public AltererResult<G, C> alter(final Seq<Phenotype<G, C>> population, final long generation) {<NEW_LINE>final double p = pow(_probability, 1.0 / 3.0);<NEW_LINE>final IntRef alterations = new IntRef(0);<NEW_LINE>final MSeq<Phenotype<G, C>> pop = MSeq.of(population);<NEW_LINE>indexes(RandomRegistry.random(), pop.size()... | Phenotype.of(mgt, generation); |
669,939 | @SchedulerSupport(SchedulerSupport.NONE)<NEW_LINE>public static <@NonNull T> Observable<T> just(@NonNull T item1, @NonNull T item2, @NonNull T item3, @NonNull T item4, @NonNull T item5, @NonNull T item6, @NonNull T item7, @NonNull T item8, @NonNull T item9) {<NEW_LINE>Objects.requireNonNull(item1, "item1 is null");<NEW... | Objects.requireNonNull(item5, "item5 is null"); |
1,700,291 | private boolean isResourceReferenceEnabled(ResourceInfo resourceInfo) {<NEW_LINE>String enabled = "false";<NEW_LINE>if (ConnectorsUtil.isModuleScopedResource(resourceInfo) || ConnectorsUtil.isApplicationScopedResource(resourceInfo)) {<NEW_LINE>ApplicationRef appRef = getServer().getApplicationRef(resourceInfo.getApplic... | getResourceRef(resourceInfo.getName()); |
657,247 | private void testPollCache(String key, Object expectedValue) throws Exception {<NEW_LINE>byte[] expectedBytes = expectedValue == null ? null : toBytes(expectedValue);<NEW_LINE>System.out.println("testPollCache cache entry " + key + " should eventually have value: " + expectedValue);<NEW_LINE>System.out.println("as a by... | hazelcastConfigLoc = InitialContext.doLookup("hazelcast/configlocation"); |
1,131,513 | private BlobServiceClientBuilder applyLocationMode(final BlobServiceClientBuilder builder, final AzureStorageSettings settings) {<NEW_LINE>final StorageConnectionString storageConnectionString = StorageConnectionString.create(settings.getConnectString(), logger);<NEW_LINE>final StorageEndpoint endpoint = storageConnect... | LocationMode locationMode = settings.getLocationMode(); |
547,647 | private void manageFilePattern() {<NEW_LINE>// disable custom filter text box when 'Custom Filter' is not selected<NEW_LINE>showDivIf(divCustomFilter_, listPresetFilePatterns_.getSelectedIndex() == Include.CustomFilter.ordinal());<NEW_LINE>// disable 'Package' option when chosen directory is not a package<NEW_LINE>if (... | ).setAttribute("disabled", "disabled"); |
1,260,512 | void addHistoryItem(@NonNull WikivoyageSearchHistoryItem item) {<NEW_LINE>String travelBook = item.getTravelBook(context);<NEW_LINE>if (travelBook == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SQLiteConnection conn = openConnection(false);<NEW_LINE>if (conn != null) {<NEW_LINE>try {<NEW_LINE>conn.execSQL("INSERT INTO... | , item.lastAccessed, travelBook }); |
563,326 | public void addAssertions(TestSuiteChromosome suite) {<NEW_LINE>setupClassLoader(suite);<NEW_LINE>if (!Properties.hasTargetClassBeenLoaded()) {<NEW_LINE>// Need to load class explicitly since it was re-instrumented<NEW_LINE>Properties.getTargetClassAndDontInitialise();<NEW_LINE>if (!Properties.hasTargetClassBeenLoaded(... | numTest, suite.size()); |
164,647 | private SessionMetadata prepareSession(io.helidon.config.Config config, ConnectionFactory factory) throws JMSException {<NEW_LINE>Optional<String> sessionGroupId = config.get(SESSION_GROUP_ID_ATTRIBUTE).asString().asOptional();<NEW_LINE>if (sessionGroupId.isPresent() && sessionRegister.containsKey(sessionGroupId.get())... | connection.createSession(transacted, acknowledgeMode); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.