idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,656,380
public void executeOnEvent(ClientPolicyContext context) throws ClientPolicyException {<NEW_LINE>switch(context.getEvent()) {<NEW_LINE>case TOKEN_REQUEST:<NEW_LINE>case SERVICE_ACCOUNT_TOKEN_REQUEST:<NEW_LINE>case TOKEN_REFRESH:<NEW_LINE>case TOKEN_REVOKE:<NEW_LINE>case TOKEN_INTROSPECT:<NEW_LINE>case LOGOUT_REQUEST:<NE...
).getContextObject(HttpRequest.class);
1,272,837
private void parseBytes(byte[] weightBytes) {<NEW_LINE>int userId = weightBytes[0] & 0xFF;<NEW_LINE>// 0x00 male; 0x01 female<NEW_LINE>int gender = weightBytes[1] & 0xFF;<NEW_LINE>// 10 ~ 99<NEW_LINE>int age = weightBytes[2] & 0xFF;<NEW_LINE>// 0 ~ 255<NEW_LINE>int height = weightBytes[3] & 0xFF;<NEW_LINE>// kg<NEW_LIN...
fromUnsignedInt16Be(weightBytes, 10) / 10.0f;
1,689,274
public void format() throws IOException {<NEW_LINE>if (textContent != null && !textContent.getParagraphs().isEmpty()) {<NEW_LINE>boolean isFirstParagraph = true;<NEW_LINE>for (Paragraph paragraph : textContent.getParagraphs()) {<NEW_LINE>if (wrapLines) {<NEW_LINE>List<Line> lines = paragraph.getLines(appearanceStyle.ge...
newLineAtOffset(horizontalOffset + startOffset, verticalOffset);
1,469,789
private void initializeActiveElement() {<NEW_LINE>if (activeElement == null) {<NEW_LINE>// if handle was not passed in the constructor, try to obtain<NEW_LINE>// it from the html source task<NEW_LINE>activeElement = HtmlEditorSourceTask.getElement();<NEW_LINE>}<NEW_LINE>if (activeElement == null) {<NEW_LINE>// still no...
(WebUIUtils.toHexCode(tagColor));
1,700,930
private void addClassAnnotation(ClassWriter cw) {<NEW_LINE>AnnotationVisitor annotationVisitor = cw.visitAnnotation("Lorg/glowroot/agent/plugin/api/weaving/Pointcut;", true);<NEW_LINE>annotationVisitor.visit("className", config.className());<NEW_LINE>annotationVisitor.visit("classAnnotation", config.classAnnotation());...
(annotationVisitor.visitArray("methodParameterTypes"));
1,356,667
public void marshall(Launch launch, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (launch == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(launch.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.marshal...
launch.getRandomizationSalt(), RANDOMIZATIONSALT_BINDING);
742,951
protected Element generateCloud(final Cloud cloud) {<NEW_LINE>final Element eCloud = new Element("cloud", getFeedNamespace());<NEW_LINE>final String domain = cloud.getDomain();<NEW_LINE>if (domain != null) {<NEW_LINE>eCloud.setAttribute(new Attribute("domain", domain));<NEW_LINE>}<NEW_LINE>final int port = cloud.getPor...
String.valueOf(port)));
1,458,676
public void maybeExportToJson() {<NEW_LINE>if (dumpBlockchainData && daoStateService.isParseBlockChainComplete()) {<NEW_LINE>// We store the data we need once we write the data to disk (in the thread) locally.<NEW_LINE>// Access to daoStateService is single threaded, we must not access daoStateService from the thread.<...
error(throwable.toString());
182,722
public void visitType(JavacNode typeNode, JCClassDecl type) {<NEW_LINE>AnnotationValues<FieldDefaults> fieldDefaults = null;<NEW_LINE>JavacNode source = typeNode;<NEW_LINE>boolean levelIsExplicit = false;<NEW_LINE>boolean makeFinalIsExplicit = false;<NEW_LINE>FieldDefaults fd = null;<NEW_LINE>for (JavacNode jn : typeNo...
? fd.makeFinal() : defaultToFinal;
1,363,065
public byte[] encrypt(byte[] nonce, byte[] message) {<NEW_LINE>checkLength(nonce, XSALSA20_POLY1305_SECRETBOX_NONCEBYTES);<NEW_LINE>byte[] msg = org.libsodium.jni.crypto.Util.prependZeros(ZERO_BYTES, message);<NEW_LINE>byte[] ct = org.libsodium.jni.crypto.Util.zeros(msg.length);<NEW_LINE>isValid(sodium().crypto_secretb...
ciphertext, 0, nonce.length);
1,367,336
final PutEmailIdentityMailFromAttributesResult executePutEmailIdentityMailFromAttributes(PutEmailIdentityMailFromAttributesRequest putEmailIdentityMailFromAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putEmailIdentityMailFromAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRe...
(super.beforeMarshalling(putEmailIdentityMailFromAttributesRequest));
1,819,239
public void localize(ProcessInstance processInstance, String locale, boolean withLocalizationFallback) {<NEW_LINE>ExecutionEntity processInstanceExecution = (ExecutionEntity) processInstance;<NEW_LINE>processInstanceExecution.setLocalizedName(null);<NEW_LINE>processInstanceExecution.setLocalizedDescription(null);<NEW_L...
setLocalizedName(languageNameNode.asText());
744,916
private Query cidrQuery(String term, SearchExecutionContext context) {<NEW_LINE>Tuple<InetAddress, Integer> cidr = InetAddresses.parseCidr(term);<NEW_LINE>InetAddress addr = cidr.v1();<NEW_LINE>int prefixLength = cidr.v2();<NEW_LINE>// create the lower value by zeroing out the host portion, upper value by filling it wi...
name(), lowerBytes, upperBytes);
1,286,179
public void onClick(View view) {<NEW_LINE>Intent compose;<NEW_LINE>if (!secondAcc) {<NEW_LINE>compose = new Intent(context, ComposeActivity.class);<NEW_LINE>} else {<NEW_LINE>compose = new Intent(context, ComposeSecAccActivity.class);<NEW_LINE>String text = context.getString(R.string.using_second_account).replace("%s",...
putExtra("id", holder.tweetId);
510,451
public AdminEnableUserResult adminEnableUser(AdminEnableUserRequest adminEnableUserRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminEnableUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMet...
new JsonResponseHandler<AdminEnableUserResult>(unmarshaller);
1,581,440
private void genVirtualCall(BIRTerminator.Call callIns, boolean isBuiltInModule, int localVarOffset) {<NEW_LINE>// load self<NEW_LINE>BIRNode.BIRVariableDcl selfArg = callIns.args.get(0).variableDcl;<NEW_LINE>this.loadVar(selfArg);<NEW_LINE>this.mv.visitTypeInsn(CHECKCAST, B_OBJECT);<NEW_LINE>// load the strand<NEW_LIN...
.visitLdcInsn((long) j);
1,021,080
public void populateAssignmentsMetadata(User.ID userID, Application.Name appName, Context context, ExperimentBatch experimentBatch, Optional<Map<Experiment.ID, Boolean>> allowAssignments, PrioritizedExperimentList prioritizedExperimentList, Map<Experiment.ID, com.intuit.wasabi.experimentobjects.Experiment> experimentMa...
appName, context, prioritizedExperimentList, experimentMap);
157,211
public void onConnectReceived(WearableConnection connection, String nodeId, Connect connect) {<NEW_LINE>for (ConnectionConfiguration config : getConfigurations()) {<NEW_LINE>if (config.nodeId.equals(nodeId)) {<NEW_LINE>if (config.nodeId != nodeId) {<NEW_LINE>config.nodeId = connect.id;<NEW_LINE>configDatabase.putConfig...
Log.w(TAG, e);
652,910
public void outASTLabeledBlockNode(ASTLabeledBlockNode node) {<NEW_LINE>String outerLabel = node.get_Label().toString();<NEW_LINE>if (outerLabel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String innerLabel = null;<NEW_LINE>ASTLabeledBlockNode secondLabeledBlockNode = isLabelWithinLabel(node);<NEW_LINE>if (secondLa...
List) subBodies.get(0);
264,508
public Map<String, TF_Tensor> recastInputs(Map<String, TF_Tensor> inputs, List<String> inputOrder, Map<String, TensorDataType> inputDataTypes) {<NEW_LINE>if (inputDataTypes == null || inputDataTypes.isEmpty()) {<NEW_LINE>inputDataTypes = new LinkedHashMap<>();<NEW_LINE>for (int i = 0; i < inputOrder.size(); i++) {<NEW_...
()[TF_TensorType(currInput)];
653,453
public static DescribeLiveDomainLimitResponse unmarshall(DescribeLiveDomainLimitResponse describeLiveDomainLimitResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveDomainLimitResponse.setRequestId<MASK><NEW_LINE>List<LiveDomainLimit> liveDomainLimitList = new ArrayList<LiveDomainLimit>();<NEW_LINE>for (int i = 0...
(_ctx.stringValue("DescribeLiveDomainLimitResponse.RequestId"));
109,648
final GetGroupResult executeGetGroup(GetGroupRequest getGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,759,521
protected boolean onExecute(String verb, String parameter, MissionInit missionInit) {<NEW_LINE>if (verb.equalsIgnoreCase(InventoryCommand.SWAP_INVENTORY_ITEMS.value())) {<NEW_LINE>if (parameter != null && parameter.length() != 0) {<NEW_LINE>List<Object> params <MASK><NEW_LINE>if (getParameters(parameter, params)) {<NEW...
= new ArrayList<Object>();
760,729
public static DescribeTemplateResponse unmarshall(DescribeTemplateResponse describeTemplateResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTemplateResponse.setRequestId(_ctx.stringValue("DescribeTemplateResponse.RequestId"));<NEW_LINE>describeTemplateResponse.setId(_ctx.stringValue("DescribeTemplateResponse.Id")...
(_ctx.stringValue("DescribeTemplateResponse.Mp4"));
1,002,874
protected void configure(HttpSecurity http) throws Exception {<NEW_LINE>http.<MASK><NEW_LINE>// define user login page<NEW_LINE>// if login success<NEW_LINE>http.formLogin().loginPage("/user/require").loginProcessingUrl("/user/login").usernameParameter("username").passwordParameter("password").permitAll().// if login s...
exceptionHandling().accessDeniedHandler(jsonAccessDeniedHandler);
1,762,416
public static CustomCommandLine.Builder defaultSingleJarCommandLine(Artifact outputJar, String javaMainClass, ImmutableList<String> deployManifestLines, Iterable<Artifact> buildInfoFiles, ImmutableList<Artifact> classpathResources, NestedSet<Artifact> runtimeClasspath, boolean includeBuildData, Compression compress, Ar...
args.addExecPaths("--classpath_resources", classpathResources);
1,274,872
public void writeQueryData(final ChannelHandlerContext context, final BackendConnection backendConnection, final QueryCommandExecutor queryCommandExecutor, final int headerPackagesCount) throws SQLException {<NEW_LINE>if (ResponseType.QUERY != queryCommandExecutor.getResponseType() || !context.channel().isActive()) {<N...
.getResourceLock().doAwait();
610,586
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NE...
get(300, TimeUnit.SECONDS);
625,934
private void commonSupportingFiles() {<NEW_LINE>supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));<NEW_LINE>if (getLibrary().equals(MULTIPLATFORM)) {<NEW_LINE>supportingFiles.add(new SupportingFile("build.gradle.kts.mustache", "", "build.gradle.kts"));<NEW_LINE>supportingFiles.add(new Supporti...
("settings.gradle.kts.mustache", "", "settings.gradle.kts"));
1,220,446
public static ListCallTaskResponse unmarshall(ListCallTaskResponse listCallTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCallTaskResponse.setRequestId(_ctx.stringValue("ListCallTaskResponse.RequestId"));<NEW_LINE>listCallTaskResponse.setCode<MASK><NEW_LINE>listCallTaskResponse.setPageNumber(_ctx.longValue("Lis...
(_ctx.stringValue("ListCallTaskResponse.Code"));
1,426,677
public void addCertificates(ActionRequest request, ActionResponse response) throws AxelorException {<NEW_LINE>Context context = request.getContext();<NEW_LINE>EbicsBank ebicsBank = (EbicsBank) context.get("ebicsBank");<NEW_LINE>ebicsBank = Beans.get(EbicsBankRepository.class).find(ebicsBank.getId());<NEW_LINE>try {<NEW...
, I18n.get("Error in adding bank certificate"));
147,174
public Set<PotionMixData> load(Object input) {<NEW_LINE>List<ItemMapping> ingredients = new ArrayList<>();<NEW_LINE>ingredients.add(getNonNull("minecraft:nether_wart"));<NEW_LINE>ingredients.add(getNonNull("minecraft:redstone"));<NEW_LINE>ingredients.add(getNonNull("minecraft:glowstone_dust"));<NEW_LINE>ingredients.add...
.add(getNonNull("minecraft:ghast_tear"));
849,570
private Point[] sortPoints(Point[] src) {<NEW_LINE>ArrayList<Point> srcPoints = new ArrayList<>(Arrays.asList(src));<NEW_LINE>Point[] result = { null, null, null, null };<NEW_LINE>Comparator<Point> sumComparator = (lhs, rhs) -> Double.valueOf(lhs.y + lhs.x).compareTo(rhs.y + rhs.x);<NEW_LINE>Comparator<Point> diffCompa...
Collections.max(srcPoints, diffComparator);
319,430
private void adjustFrameBufferMatrix(MapPosition mapPositionFrameBuffer, Dimension mapViewDimension, double scaleFactor, LatLong pivot) {<NEW_LINE>MapPosition mapViewPosition = this.model.mapViewPosition.getMapPosition();<NEW_LINE>long mapSize = MercatorProjection.getMapSize(mapPositionFrameBuffer.zoomLevel, model.disp...
(2, mapPositionFrameBuffer.zoomLevel));
248,786
public void initGradientsView() {<NEW_LINE>try (MemoryWorkspace ws = Nd4j.getMemoryManager().scopeOutOfWorkspaces()) {<NEW_LINE>if (layers == null)<NEW_LINE>init();<NEW_LINE>int nLayers = layers.length;<NEW_LINE>// First: Work out total length of params<NEW_LINE>long paramLength = 0;<NEW_LINE>val nParamsPerLayer = new ...
[i].setBackpropGradientsViewArray(thisLayerGradView);
1,019,033
public static boolean lz4wpack(String prev, String fin, String fout) {<NEW_LINE>// better to remove output file for lz4w<NEW_LINE>FileUtil.delete(fout, false);<NEW_LINE>// build complete command line<NEW_LINE>final String[] cmd = new String[] { "java", "-jar", FileUtil.adjustPath(sgdk.rescomp.Compiler.currentDir, "lz4w...
) + fin, fout, "-s" };
190,434
public ApplicationFleetAssociation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ApplicationFleetAssociation applicationFleetAssociation = new ApplicationFleetAssociation();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
int originalDepth = context.getCurrentDepth();
282,216
static org.batfish.datamodel.hsrp.HsrpGroup toHsrpGroup(HsrpGroup hsrpGroup, Set<Integer> trackMethodIds, @Nullable ConcreteInterfaceAddress sourceAddress, Configuration c) {<NEW_LINE><MASK><NEW_LINE>// HSRP track uses negated value of referenced TrackMethod<NEW_LINE>SortedMap<String, TrackAction> trackActions = hsrpGr...
Ip groupIp = hsrpGroup.getIp();
1,799,106
public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>// taking input array<NEW_LINE>System.out.println("Enter size of array:");<NEW_LINE>int size = sc.nextInt();<NEW_LINE>float[] arr = new float[size];<NEW_LINE>System.out.println("Enter array elements:");<NEW_LINE>for (int i =...
System.out.println("Array after Bucket sort:");
77,721
final DescribeGeofenceCollectionResult executeDescribeGeofenceCollection(DescribeGeofenceCollectionRequest describeGeofenceCollectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeGeofenceCollectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Location");
578,233
public static ImmutableMap<Payment, PointSensitivityBuilder> cashFlowEquivalentAndSensitivityFixedLeg(ResolvedSwapLeg fixedLeg, RatesProvider ratesProvider) {<NEW_LINE>ArgChecker.isTrue(fixedLeg.getType().equals(SwapLegType.FIXED), "Leg type should be FIXED");<NEW_LINE>ArgChecker.isTrue(fixedLeg.getPaymentEvents().isEm...
getRateComputation()).getRate();
1,468,367
private static TriangleTreeNode build(List<IndexableField> fields, Extent extent) {<NEW_LINE>final byte[] scratch = new byte[7 * Integer.BYTES];<NEW_LINE>if (fields.size() == 1) {<NEW_LINE>final TriangleTreeNode triangleTreeNode = new TriangleTreeNode(toDecodedTriangle(fields.get(0), scratch));<NEW_LINE>extent.addRecta...
size() - 1, true);
1,738,087
public void run() {<NEW_LINE>List<TransportRouteResult> res = null;<NEW_LINE>String error = null;<NEW_LINE>try {<NEW_LINE>res = calculateRouteImpl(params, lib);<NEW_LINE>if (res != null && !params.calculationProgress.isCancelled) {<NEW_LINE>calculateWalkingRoutes(res);<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LI...
params.resultListener.onRouteCalculated(res);
707,279
private File downloadFile(String fileToDownload, String urlToDownload) throws IOException {<NEW_LINE>long range = 0;<NEW_LINE>String path = cacheDir + "/" + fileToDownload;<NEW_LINE>File outputFile = new File(path);<NEW_LINE>if (outputFile.isFile()) {<NEW_LINE>range = outputFile.length();<NEW_LINE>} else {<NEW_LINE>rem...
long fileLength = con.getContentLength();
1,170,707
public ResponseEntity<CreationResponse> createReservation(@PathVariable("slug") String eventSlug, @RequestBody ReservationCreationRequest reservationCreationRequest, Principal principal) {<NEW_LINE>var bindingResult = new BeanPropertyBindingResult(reservationCreationRequest, "reservation");<NEW_LINE>var optionalEvent =...
var event = optionalEvent.get();
723,900
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = getTargetPointer().getFirstTargetPermanentOrLKI(game, source);<NEW_LINE>if (permanent != null) {<NEW_LINE>Effect effect = new CreateTokenCopyTargetEffect();<NEW_LINE>effect.setTargetPointer(getTargetPointer());<NEW_LINE>effect.apply(game, ...
playersSaidYes = new HashSet<>();
696,624
public Integer save(SinkRequest request, String operator) {<NEW_LINE>LOGGER.info("begin to save sink info: {}", request);<NEW_LINE>this.checkParams(request);<NEW_LINE>// Check if it can be added<NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>groupCheckService.checkGroupStatus(groupId, operator);<NEW_LIN...
, sinkName, groupId, streamId));
859,146
private static Throwable appendSteps(List<StepResult> steps, StringBuilder sb) {<NEW_LINE>Throwable error = null;<NEW_LINE>for (StepResult sr : steps) {<NEW_LINE>int length = sb.length();<NEW_LINE>sb.append(sr.getStep().getPrefix());<NEW_LINE>sb.append(' ');<NEW_LINE>sb.append(sr.<MASK><NEW_LINE>sb.append(' ');<NEW_LIN...
getStep().getText());
596,693
Hash hashHeader(final BlockHeader header) {<NEW_LINE>final BytesValueRLPOutput out = new BytesValueRLPOutput();<NEW_LINE>// Encode header without nonce and mixhash<NEW_LINE>out.startList();<NEW_LINE>out.writeBytes(header.getParentHash());<NEW_LINE>out.writeBytes(header.getOmmersHash());<NEW_LINE>out.writeBytes(header.g...
writeBytes(header.getReceiptsRoot());
639,922
public void actionPerformed(ActionEvent e) {<NEW_LINE>// Preference<NEW_LINE>if (e.getActionCommand().equals(ValuePreference.NAME)) {<NEW_LINE>if (MRole.getDefault().isShowPreference())<NEW_LINE>ValuePreference.start(m_mField, <MASK><NEW_LINE>return;<NEW_LINE>} else if (e.getActionCommand().equals(RecordInfo.CHANGE_LOG...
getValue(), getDisplay());
169,298
public static ZSuperInstr decode(IRReaderDecoder d) {<NEW_LINE>if (RubyInstanceConfig.IR_READING_DEBUG)<NEW_LINE>System.out.println("decoding call");<NEW_LINE>int callTypeOrdinal = d.decodeInt();<NEW_LINE>CallType callType = CallType.fromOrdinal(callTypeOrdinal);<NEW_LINE>if (RubyInstanceConfig.IR_READING_DEBUG)<NEW_LI...
(argsCount + 1)) : argsCount;
1,291,161
final MergePullRequestByFastForwardResult executeMergePullRequestByFastForward(MergePullRequestByFastForwardRequest mergePullRequestByFastForwardRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(mergePullRequestByFastForwardRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
endClientExecution(awsRequestMetrics, request, response);
1,713,395
public Object fromMessage(Message message) throws MessageConversionException {<NEW_LINE>Object content = null;<NEW_LINE>MessageProperties properties = message.getMessageProperties();<NEW_LINE>if (properties != null) {<NEW_LINE>String contentType = properties.getContentType();<NEW_LINE>if (contentType != null && content...
message.getBody(), encoding);
43,814
private void initLocalizedMapping() {<NEW_LINE>mSegmentLocalizedMapping = new HashMap<>();<NEW_LINE>mSegmentLocalizedMapping.put(SponsorSegment.CATEGORY_SPONSOR, R.string.content_block_sponsor);<NEW_LINE>mSegmentLocalizedMapping.put(SponsorSegment.CATEGORY_INTRO, R.string.content_block_intro);<NEW_LINE>mSegmentLocalize...
CATEGORY_PREVIEW_RECAP, R.string.content_block_preview_recap);
889,936
private void verifyParameterDescriptors(Operation operation) {<NEW_LINE>Set<<MASK><NEW_LINE>Set<String> expectedParameters = new HashSet<>();<NEW_LINE>for (Entry<String, ParameterDescriptor> entry : this.descriptorsByName.entrySet()) {<NEW_LINE>if (!entry.getValue().isOptional()) {<NEW_LINE>expectedParameters.add(entry...
String> actualParameters = extractActualParameters(operation);
1,706,097
public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jfieldID = context.getPointerArg(2);<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(16);<NEW_LINE>buffer.order(ByteOrder.LITTLE_ENDIAN);...
getField(jfieldID.toIntPeer());
993,298
protected void onCreate(Bundle bundle) {<NEW_LINE>super.onCreate(bundle);<NEW_LINE>mServiceBridge = new ServiceBridge();<NEW_LINE>Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);<NEW_LINE>intent.putExtra("calling_package", /*RecognizerIntent.EXTRA_CALLING_PACKAGE*/<NEW_LINE>getApplicationContext()....
bundle.getString(RecognizerIntent.EXTRA_LANGUAGE);
468,684
public void testAuthenticateMethodFL_ProtectedServlet2() throws Exception {<NEW_LINE>METHODS = "testMethod=login,logout_once,authenticate";<NEW_LINE>String url = "http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/formlogin/ProgrammaticAPIServlet?" + METHODS + "&user=" + managerUser + "&password=" ...
, response.indexOf("ENDTEST1"));
288,519
private static void doJavaCompletion(CompilationContext ccontext, PrefixMatcher pm, final int offset, final List<CompletionProposal> proposals) throws IOException {<NEW_LINE>CompilationController cc = (CompilationController) ccontext.info();<NEW_LINE>String packName = pm.getPrefix();<NEW_LINE>// NOI18N<NEW_LINE>int dot...
.substring(0, dotIndex));
261,248
private static void addColors(Map<String, AttributeSet> colorsMap, Language l, ResourceBundle bundle) {<NEW_LINE>if (l.getParser() == null)<NEW_LINE>return;<NEW_LINE>Map<String, AttributeSet> defaultsMap = getDefaultColors();<NEW_LINE>List<Feature> list = l.getFeatureList().getFeatures(COLOR);<NEW_LINE>Iterator<Feature...
def.substring(i + 1);
77,491
private // ============================================================<NEW_LINE>void addToChart(Derivation deriv, Ingredient ingredient, BackPointer bp1, BackPointer bp2) {<NEW_LINE>if (Parser.opts.verbose >= 3)<NEW_LINE>LogInfo.logs("addToChart %s %s: %s", ingredient.parentCell, deriv.value, deriv);<NEW_LINE>ensureEx...
denotationToData.get(deriv.value);
61,152
static Object executeVariableExpression(final IExpressionContext context, final VariableExpression expression, final IStandardVariableExpressionEvaluator expressionEvaluator, final StandardExpressionExecutionContext expContext) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("[THYMELEAF][{}] Evaluating ...
"types are not trusted in the context of this expression, including Strings or any other " + "object that could be rendered as a text literal. A typical case is HTML attributes for event handlers (e.g. " + "\"onload\"), in which textual data from variables should better be output to \"data-*\" attributes and then " + "...
1,753,781
Object doCached(PolyglotLanguageContext languageContext, Object receiver, Object[] args, @CachedLibrary("receiver") InteropLibrary iterators, @Cached PolyglotToHostNode toHost, @Cached BranchProfile error, @Cached BranchProfile stop) {<NEW_LINE>TriState lastHasNext = (TriState) args[ARGUMENT_OFFSET];<NEW_LINE>try {<NEW...
languageContext, receiver, cache.valueType);
619,348
// </editor-fold>//GEN-END:initComponents<NEW_LINE>@Messages({ "AutopsyOptionsPanel_tempDirectoryBrowseButtonActionPerformed_onInvalidPath_title=Path cannot be used", "# {0} - path", "AutopsyOptionsPanel_tempDirectoryBrowseButtonActionPerformed_onInvalidPath_description=Unable to create temporary directory within speci...
OptionsPanelController.PROP_CHANGED, null, null);
598,391
public void testCriteriaQuery_Float(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert...
cq.from(Entity0009.class);
820,013
public SnapshotVisitResult visitEntry(FileSystemLocationSnapshot snapshot, RelativePathSupplier relativePath) {<NEW_LINE>snapshot.accept(new FileSystemLocationSnapshotVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitRegularFile(RegularFileSnapshot fileSnapshot) {<NEW_LINE>HashCode normalizedContentHas...
, missingSnapshot.getAbsolutePath()));
348,987
ExecuteResult execute(final KsqlPlan plan, final boolean restoreInProgress) {<NEW_LINE>if (!plan.getQueryPlan().isPresent()) {<NEW_LINE>final String ddlResult = plan.getDdlCommand().map(ddl -> executeDdl(ddl, plan.getStatementText(), false, Collections.emptySet(), restoreInProgress)).orElseThrow(() -> new IllegalStateE...
of(ddlResult.get());
262,792
public okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}".re...
final String[] localVarContentTypes = {};
1,041,046
protected void configure() {<NEW_LINE>bind(ChartBuilderRepository.class).to(ChartBuilderRepo.class);<NEW_LINE>bind(ActionBuilderRepository.class).to(ActionBuilderRepo.class);<NEW_LINE>bind(MenuBuilderRepository.class).to(MenuBuilderRepo.class);<NEW_LINE>bind(DashboardBuilderRepository.class).to(DashboardBuilderRepo.cla...
).to(AppBuilderRepo.class);
794,012
// @AroundInvoke, defined in xml<NEW_LINE>Object aroundInvoke(InvocationContext invCtx) throws Exception {<NEW_LINE>CheckInvocation.getInstance().recordCallInfo("AroundInvoke", "Interceptor03.aroundInvoke", this);<NEW_LINE>svLogger.info("Interceptor03.aroundInvoke: this=" + this);<NEW_LINE>for (Iterator<Entry<String, O...
svLogger.info("Interceptor03.aroundInvoke: getParameters=" + parameterStr);
610,792
final TransactGetItemsResult executeTransactGetItems(TransactGetItemsRequest transactGetItemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(transactGetItemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
responseHandler, executionContext, cachedEndpoint, null);
723,174
public AnnotatedTextFieldMapper build(BuilderContext context) {<NEW_LINE>if (fieldType().indexOptions() == IndexOptions.NONE) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>if (positionIncrementGap != POSITION_INCREMENT_GAP_USE_ANALYZER) {<NEW_LINE>if (fieldType.indexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND...
IllegalArgumentException("[" + CONTENT_TYPE + "] fields must be indexed");
919,040
protected void saveSelectionDetail() {<NEW_LINE>// publish for Callout to read<NEW_LINE>Integer ID = getSelectedRowKey();<NEW_LINE>Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, "M_Product_ID", ID == null ? "0" : ID.toString());<NEW_LINE>if (fPriceList_ID.getValue() != null) {<NEW_LINE>String pickPL = ((Integer...
getValue()).toString();
668,199
private void createUi() {<NEW_LINE>contentPanel.setLayout(new FormLayout(new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormS...
contentPanel.add(lblNewLabel_1, "2, 4, right, default");
868,579
final ListTransformJobsResult executeListTransformJobs(ListTransformJobsRequest listTransformJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTransformJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
false), new ListTransformJobsResultJsonUnmarshaller());
1,731,908
public void perform() {<NEW_LINE>OutputLogger logger = getLogger();<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>logger.outputInRed(NbBundle.getMessage(CreateTagAction.class, "MSG_CREATE_TITLE"));<NEW_LINE>// NOI18N<NEW_LINE>logger.outputInRed(NbBundle.getMessage<MASK><NEW_LINE>// NOI18N<NEW_LINE>logger.output(NbBundle.g...
(CreateTagAction.class, "MSG_CREATE_TITLE_SEP"));
277,228
public io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerStatus result = new io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerStatus(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>in...
.lastScaleTime_ = lastScaleTimeBuilder_.build();
1,011,683
private boolean markMessageLocally(CounterDao counterDao, Message message) {<NEW_LINE>boolean unreadIncrease = false;<NEW_LINE>if (!TextUtils.isEmpty(mLabelId)) {<NEW_LINE>message.addLabels(Collections.singletonList(mLabelId));<NEW_LINE>removeOldFolderIds(message);<NEW_LINE>}<NEW_LINE>if (!message.isRead()) {<NEW_LINE>...
MessageLocationType.LABEL_FOLDER.getMessageLocationTypeValue());
716,972
public FTPFile parseFTPEntry(final String line) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Parse %s", line));<NEW_LINE>}<NEW_LINE>if (current != null) {<NEW_LINE>final FTPFile parsed = current.parseFTPEntry(line);<NEW_LINE>if (null != parsed) {<NEW_LINE>return parsed;<NEW_LINE>}<NEW_LINE>i...
.format("Failure parsing line %s", line));
1,715,831
public <T> CompletableFuture<T> asyncCall(Callable<T> callable) {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>setAttachment(ASYNC_KEY, Boolean.TRUE.toString());<NEW_LINE>final T o = callable.call();<NEW_LINE>// local invoke will return directly<NEW_LINE>if (o != null) {<NEW_LINE>if (o instanceof CompletableFuture) {<NEW_LIN...
exceptionFuture = new CompletableFuture<>();
340,353
public UserModel authenticate(String username, char[] password) {<NEW_LINE>ConnectorConfig config = new ConnectorConfig();<NEW_LINE>config.setUsername(username);<NEW_LINE>config.setPassword(new String(password));<NEW_LINE>try {<NEW_LINE>PartnerConnection connection = Connector.newConnection(config);<NEW_LINE>GetUserInf...
logger.error("Failed to authenticate", e);
708,969
public void notifyTextAvailable(@Nonnull String line, @Nonnull Key outputType) {<NEW_LINE>if (outputType == ProcessOutputTypes.STDERR) {<NEW_LINE>LOG.warn(line);<NEW_LINE>}<NEW_LINE>if (outputType != ProcessOutputTypes.STDOUT) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (LOG.isTraceEnabled())<NEW_LINE>LOG.trace(">> " + l...
notifyOnFailure(line, NotificationListener.URL_OPENING_LISTENER);
281,757
public Request<ListSecurityProfilesRequest> marshall(ListSecurityProfilesRequest listSecurityProfilesRequest) {<NEW_LINE>if (listSecurityProfilesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListSecurityProfilesRequest)");<NEW_LINE>}<NEW_LINE>Request<ListSecurityProfil...
(listSecurityProfilesRequest.getMaxResults()));
615,954
public GenotypeAlleleCounts genotypeAlleleCountsAt(final int index) {<NEW_LINE>Utils.validateArg(index >= 0 && index < genotypeCount, () -> "invalid likelihood index: " + index + " >= " + genotypeCount + " (genotype count for nalleles = " + alleleCount + " and ploidy " + ploidy);<NEW_LINE>if (index < GenotypeLikelihood...
index - GenotypeLikelihoodCalculators.MAXIMUM_STRONG_REF_GENOTYPE_PER_PLOIDY + 1);
1,178,023
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {<NEW_LINE>super.<MASK><NEW_LINE>try {<NEW_LINE>if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {<NEW_LINE>CropImage.ActivityResult result = CropImage.getActivityResult(intent);<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LIN...
onActivityResult(requestCode, resultCode, intent);
1,465,422
private void sendPayerApprovalRequestEmail(@NonNull final PaymentReservation reservation, @NonNull final URL payerApproveUrl, @NonNull final MailTemplateId mailTemplateId) {<NEW_LINE>final MailTextBuilder mailTextBuilder = mailService.newMailTextBuilder(mailTemplateId);<NEW_LINE>mailTextBuilder.bpartnerContact(reservat...
(reservation.getAmount()));
1,535,708
private <T extends EhcacheEntityResponse> void fireResponseEvent(T response) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<ResponseListener<T>> responseListeners = (List) this.responseListeners.get(response.getClass());<NEW_LINE>if (responseListeners == null) {<NEW_LINE>LOGGER.warn("Ignoring the response {} a...
), response.getClass());
452,149
final DeleteTimeSeriesResult executeDeleteTimeSeries(DeleteTimeSeriesRequest deleteTimeSeriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTimeSeriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
responseHandler, executionContext, null, endpointTraitHost);
1,566,318
final ListAvailableManagedRuleGroupVersionsResult executeListAvailableManagedRuleGroupVersions(ListAvailableManagedRuleGroupVersionsRequest listAvailableManagedRuleGroupVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAvailableManagedRuleGroupVersionsRequest);<NEW_LINE>AWSReque...
false), new ListAvailableManagedRuleGroupVersionsResultJsonUnmarshaller());
1,360,513
private JPanel createCommandBarPanel() {<NEW_LINE>YBoxPanel panel = new YBoxPanel();<NEW_LINE>panel.setBorder(BorderFactory.createTitledBorder(Translator.get("preview")));<NEW_LINE>panel.add(Box.createRigidArea(new Dimension(0, 5)));<NEW_LINE>YBoxPanel listsPanel = new YBoxPanel();<NEW_LINE>listsPanel.add(commandBarBut...
Dimension(0, 5)));
37,756
final ResetParameterGroupResult executeResetParameterGroup(ResetParameterGroupRequest resetParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resetParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,275,259
private void emitLoopBegin(final LoopBeginNode loopBeginNode) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.OpenCL, "visiting emitLoopBegin %s", loopBeginNode);<NEW_LINE>final Block block = (Block) gen.getCurrentBlock();<NEW_LINE>final Block currentBlockDominator = block.getDominator();<NEW_LINE>final LIR lir = getGen...
.asAllocatable(operandForPhi(phi));
437,677
public static String findLicenseByMavenProjectContent(String url) {<NEW_LINE>// try to match the project's license URL and the mavenLicenseURL attribute of license template<NEW_LINE>// NOI18N<NEW_LINE>FileObject licensesFO = FileUtil.getConfigFile("Templates/Licenses");<NEW_LINE>if (licensesFO == null) {<NEW_LINE>retur...
"Bad license file name {0} (expected to start with ''license-'' prefix)", fo.getName());
327,212
private boolean testngXmlExistsInJar(File jarFile, List<String> classes) throws IOException {<NEW_LINE>try (JarFile jf = new JarFile(jarFile)) {<NEW_LINE>Enumeration<JarEntry> entries = jf.entries();<NEW_LINE>File file = java.nio.file.Files.createTempDirectory("testngXmlPathInJar-").toFile();<NEW_LINE>String suitePath ...
.add(constructClassName(je));
1,218,174
private Variable createStackVariable(final String name, final int offset, DataType dt, MessageLog log) {<NEW_LINE>StackFrame stackFrame = function.getStackFrame();<NEW_LINE>Variable variable = stackFrame.getVariableContaining(offset);<NEW_LINE>try {<NEW_LINE>if (variable == null || variable.getStackOffset() != offset) ...
clearVariable(variable.getStackOffset());
1,337,392
public Pair<IterOutcome, BatchStatusWrappper> next() {<NEW_LINE>while (!batchStatusStack.isEmpty()) {<NEW_LINE>BatchStatusWrappper topStatus = batchStatusStack.peek();<NEW_LINE>if (topStatus.prefetched) {<NEW_LINE>topStatus.prefetched = false;<NEW_LINE>batchMemoryManager.update(topStatus.batch, topStatus.inputIndex);<N...
.format("Unexpected state %s", outcome));
45,414
public void methodReferenceSwingsBothWays(ReferenceExpression expression, MethodBinding instanceMethod, MethodBinding nonInstanceMethod) {<NEW_LINE>char[] selector = instanceMethod.selector;<NEW_LINE>TypeBinding receiverType = instanceMethod.declaringClass;<NEW_LINE>StringBuilder buffer1 = new StringBuilder();<NEW_LINE...
expression.sourceStart, expression.sourceEnd);
253,992
public static void filterNonIngestNodesIfNeeded(Settings settings, Log log) {<NEW_LINE>if (!settings.getNodesIngestOnly()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RestClient bootstrap = new RestClient(settings);<NEW_LINE>try {<NEW_LINE>String message = "Ingest-only routing specified but no ingest nodes with HTTP-enabled...
discoveredOrDeclaredNodes(settings), ddNodes));
7,483
final UpdateAccountResult executeUpdateAccount(UpdateAccountRequest updateAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
20,193
public void onGlobalLayout() {<NEW_LINE>Rect visibleDisplayFrame = new Rect();<NEW_LINE>buttonsHeight = getResources().<MASK><NEW_LINE>shadowHeight = getResources().getDimensionPixelSize(R.dimen.bottom_sheet_top_shadow_height);<NEW_LINE>scrollView = getView().findViewById(R.id.scroll_view);<NEW_LINE>scrollView.getWindo...
getDimensionPixelSize(R.dimen.dialog_button_ex_height);