idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,097,540
public void initialize(Python3Core core) {<NEW_LINE>super.initialize(core);<NEW_LINE>ArrayList<String> haveFunctions = new ArrayList<>();<NEW_LINE>Collections.addAll(haveFunctions, "HAVE_FACCESSAT", "HAVE_FCHDIR", "HAVE_FCHMOD", "HAVE_FCHMODAT", "HAVE_FDOPENDIR", "HAVE_FSTATAT", "HAVE_FTRUNCATE", "HAVE_FUTIMES", "HAVE_...
.lookupType(PythonBuiltinClassType.OSError));
761,785
public DescribeReplicationInstancesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeReplicationInstancesResult describeReplicationInstancesResult = new DescribeReplicationInstancesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
int originalDepth = context.getCurrentDepth();
230,684
public List<Environment> listEnvironments(@NonNull final Cluster cluster, final String environmentNamePrefix) throws InternalServiceException {<NEW_LINE>try {<NEW_LINE>final DynamoDBQueryExpression<EnvironmentDDBRecord> queryExpression = new DynamoDBQueryExpression<EnvironmentDDBRecord>().withHashKeyValues(EnvironmentD...
.toString()), e);
1,714,588
protected void loadData() {<NEW_LINE>data = new LinkedHashMap<String, Vector>();<NEW_LINE>for (MWMInOutBoundLine inBoundline : getInOutBoundLines()) {<NEW_LINE>inBoundline.setMovementQty(Env.ZERO);<NEW_LINE>inBoundline.saveEx();<NEW_LINE>}<NEW_LINE>for (MWMInOutBoundLineMA inBoundlineMA : getDocumentLines()) {<NEW_LINE...
String key = product.getValue();
1,041,156
protected void forward(int offset, ChronoUnit unit, boolean focusDayCell, boolean withAnimation) {<NEW_LINE>if (withAnimation) {<NEW_LINE>if (tempImageTransition == null || tempImageTransition.getStatus() == Status.STOPPED) {<NEW_LINE>Pane monthContent = (Pane) calendarPlaceHolder.getChildren().get(0);<NEW_LINE>this.ge...
snapShotparams.setFill(Color.TRANSPARENT);
889,002
private void createRangeIndexForColumn(SegmentDirectory.Writer segmentWriter, ColumnMetadata columnMetadata, RangeIndexCreatorProvider indexCreatorProvider) throws IOException {<NEW_LINE>File indexDir = _segmentMetadata.getIndexDir();<NEW_LINE>String segmentName = _segmentMetadata.getName();<NEW_LINE>String columnName ...
handleNonDictionaryBasedColumn(segmentWriter, columnMetadata, indexCreatorProvider);
290,477
public EmojiPopup build(@NonNull final EditText editText) {<NEW_LINE>EmojiManager.getInstance().verifyInstalled();<NEW_LINE>checkNotNull(editText, "EditText can't be null");<NEW_LINE>if (recentEmoji == null) {<NEW_LINE>recentEmoji = new <MASK><NEW_LINE>}<NEW_LINE>final EmojiPopup emojiPopup = new EmojiPopup(this, editT...
RecentEmojiManager(rootView.getContext());
1,702,662
private static void parseCurve(Element plotElem, ProductPlot plotObj) {<NEW_LINE>ProductCurve curve = null;<NEW_LINE>NodeList childElements = plotElem.getElementsByTagName("curve");<NEW_LINE>if (childElements != null && childElements.getLength() > 0) {<NEW_LINE>for (int i = 0; i < childElements.getLength(); i++) {<NEW_...
Element) childElements.item(i);
626,596
protected void computeWeightedScore(int c_x, int c_y) {<NEW_LINE>// compute the score for each angle in the histogram<NEW_LINE>for (int y = rect.y0; y < rect.y1; y++) {<NEW_LINE>int indexX = derivX.startIndex + derivX.stride * y + rect.x0;<NEW_LINE>int indexY = derivY.startIndex + derivY.stride * y + rect.x0;<NEW_LINE>...
+ angleRound) / angleDiv) % numAngles;
1,367,713
private void generateReleaseNotes(Project project, ProjectLayout layout, TaskContainer tasks, GradleDocumentationExtension extension) {<NEW_LINE>TaskProvider<RenderMarkdown> releaseNotesMarkdown = tasks.register("releaseNotesMarkdown", RenderMarkdown.class, task -> {<NEW_LINE>task.setGroup("release notes");<NEW_LINE>ta...
().file("release-notes/release-notes.html"));
768,578
public void asyncReadEntry(ReadHandle lh, long firstEntry, long lastEntry, boolean isSlowestReader, final ReadEntriesCallback callback, Object ctx) {<NEW_LINE>lh.readAsync(firstEntry, lastEntry).thenAcceptAsync(ledgerEntries -> {<NEW_LINE>List<Entry> entries = Lists.newArrayList();<NEW_LINE>long totalSize = 0;<NEW_LINE...
callback.readEntriesComplete(entries, ctx);
658,084
private DeployInheritInfo createInfo(Class<?> cls) {<NEW_LINE>DeployInheritInfo info = new DeployInheritInfo(cls);<NEW_LINE>Class<?> parent = findParent(cls);<NEW_LINE>if (parent != null) {<NEW_LINE>info.setParent(parent);<NEW_LINE>}<NEW_LINE>Inheritance ia = AnnotationUtil.typeGet(cls, Inheritance.class);<NEW_LINE>if ...
setColumnLength(da.length());
1,203,300
public void run(@Nonnull final ProgressIndicator indicator) {<NEW_LINE>myIndicator = indicator;<NEW_LINE>long startCompilationStamp = System.currentTimeMillis();<NEW_LINE>indicator.setIndeterminate(false);<NEW_LINE>myBuildViewService.onStart(mySessionId, startCompilationStamp, () -> {<NEW_LINE>}, indicator);<NEW_LINE>f...
onEnd(mySessionId, myExitStatus, myEndCompilationStamp);
1,491,970
private boolean httpPostSend(String successCode, String urlPrefix, String content) {<NEW_LINE>URL url = null;<NEW_LINE>InputStream in = null;<NEW_LINE>OutputStreamWriter writer = null;<NEW_LINE>URLConnection conn = null;<NEW_LINE>boolean sendSuccess = false;<NEW_LINE>try {<NEW_LINE>url = new URL(urlPrefix);<NEW_LINE>co...
OutputStreamWriter(conn.getOutputStream());
1,476,592
public int compareTo(@Nonnull GuildChannel o) {<NEW_LINE><MASK><NEW_LINE>// if bucket matters<NEW_LINE>if (getType().getSortBucket() != o.getType().getSortBucket())<NEW_LINE>return Integer.compare(getType().getSortBucket(), o.getType().getSortBucket());<NEW_LINE>// if position matters<NEW_LINE>if (o instanceof IPositio...
Checks.notNull(o, "Channel");
1,568,850
private void processBean(boolean register, Object bean) {<NEW_LINE>U.notNull(bean, "bean");<NEW_LINE>U.must(!((bean instanceof Class<?>)), "The bean must be an instance, not a class!");<NEW_LINE>Class<?> clazz = bean.getClass();<NEW_LINE>if (!Cls.isAppBeanType(clazz)) {<NEW_LINE>throw new RuntimeException("Expected a b...
"class", clazz, "instance", bean);
1,175,951
public void done(IJobChangeEvent event) {<NEW_LINE>if (imageData[0] != null) {<NEW_LINE>UIUtils.getDisplay().asyncExec(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>Image image = new Image(UIUtils.getDisplay(), imageData[0]);<NEW_LINE>if (image != null) {<NEW_LINE>// Scale the image to 48x48 in case ...
ImageData scaledImageData = image.getImageData();
834,111
final DescribeClientVpnRoutesResult executeDescribeClientVpnRoutes(DescribeClientVpnRoutesRequest describeClientVpnRoutesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClientVpnRoutesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
604,556
/*<NEW_LINE>* Recover syntax on invalid qualified name.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected Object syntaxRecoverQualifiedName(int primitiveToken) throws InvalidInputException {<NEW_LINE>if (this.cursorLocation == ((int) this.identifierPositionStack[this.identifierPtr])) {<NEW_LINE>// special case of compl...
this.tagSourceStart, this.tagSourceEnd);
1,650,959
private static double[][] sparseMeans(List<? extends DBIDs> clusters, double[][] means, Relation<? extends SparseNumberVector> relation) {<NEW_LINE>final int k = means.length;<NEW_LINE>double[][] newMeans <MASK><NEW_LINE>for (int i = 0; i < k; i++) {<NEW_LINE>DBIDs list = clusters.get(i);<NEW_LINE>if (list.isEmpty()) {...
= new double[k][];
50,359
public void run(Result result, SchedulerEvent event) {<NEW_LINE>// remove the last occurrences - the CSL caches the last found occurences for us<NEW_LINE>range2Attribs = null;<NEW_LINE>if (cancelled) {<NEW_LINE>cancelled = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Preferences node = MarkOccurencesSettings.getCurrentN...
localRange2Attribs = new HashMap<>();
1,144,662
public void execute(AdminCommandContext context) {<NEW_LINE>final ActionReport report = context.getActionReport();<NEW_LINE>final String target = "default template";<NEW_LINE>try {<NEW_LINE>HashMap<String, String> props = null;<NEW_LINE>props = (HashMap<String, String>) loggingConfigFactory.provide().getLoggingProperti...
, props.get(name));
1,499,084
public String replyAjax(@PathVariable String id, @PathVariable(required = false) String title, HttpServletRequest req, HttpServletResponse res, Model model) throws IOException {<NEW_LINE>if (!utils.isFeedbackEnabled()) {<NEW_LINE>return "redirect:" + HOMEPAGE;<NEW_LINE>}<NEW_LINE>Post showPost = pc.read(id);<NEW_LINE>P...
, new Reply(), "body");
1,276,500
public boolean process(List<Point2D_I32> contour) {<NEW_LINE>// Reset internal book keeping variables<NEW_LINE>reset();<NEW_LINE>if (loops) {<NEW_LINE>// Reject pathological case<NEW_LINE>if (contour.size() < 3)<NEW_LINE>return false;<NEW_LINE>if (!findInitialTriangle(contour))<NEW_LINE>return false;<NEW_LINE>} else {<...
bestPolyline = polylines.get(i);
509,315
public void export(JasperPrint jp, String fileName, HttpServletResponse response) throws JRException, IOException {<NEW_LINE>ByteArrayOutputStream baos = new ByteArrayOutputStream();<NEW_LINE>// Create a JRXlsExporter instance<NEW_LINE>JRXlsExporter exporter = new JRXlsExporter();<NEW_LINE>// Here we assign the paramet...
JRXlsAbstractExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
174,759
public static void init(String[] args, ClientBaseConfig config, boolean createEndpoint) throws IOException {<NEW_LINE>CommandLine cmd = new CommandLine(config);<NEW_LINE>config.register(cmd);<NEW_LINE>try {<NEW_LINE>ParseResult result = cmd.parseArgs(args);<NEW_LINE>if (result.isVersionHelpRequested()) {<NEW_LINE>Strin...
System.out.println(" --auth: values");
522,384
public SortClusterConfig load() {<NEW_LINE>HttpGet httpGet = null;<NEW_LINE>try {<NEW_LINE>String clusterName = this.context.getString(CommonPropertiesHolder.KEY_CLUSTER_ID);<NEW_LINE>String url = ManagerUrlHandler.getSortClusterConfigUrl() + "?apiVersion=1.0&clusterName=" + clusterName + "&md5=";<NEW_LINE>if (StringUt...
), clusterResponse.getMsg());
1,833,684
private void initView() {<NEW_LINE>setContentView(R.layout.activity_video_divide);<NEW_LINE>mPreview = findViewById(R.id.preview);<NEW_LINE>mPlaybackButton = <MASK><NEW_LINE>mFrameListParent = findViewById(R.id.recycler_parent);<NEW_LINE>mFrameList = findViewById(R.id.recycler_frame_list);<NEW_LINE>mScrollViewParent = ...
findViewById(R.id.pause_playback);
1,416,127
private void updateTabVisibility(ModelItem mi) {<NEW_LINE>int index = 0;<NEW_LINE>// Header - always visible<NEW_LINE>boolean showHeaders = mi != null;<NEW_LINE>index = showHideTab(jHeadersPanel, showHeaders, index);<NEW_LINE>// Request Data:<NEW_LINE>boolean postDataVisible = mi != null && mi.hasPostData();<NEW_LINE>i...
showHideTab(jFramesPanel, hasFrames, index);
1,117,559
private static String metadataCompleteFalse(String project, String thisApplicationClassName) throws Exception {<NEW_LINE>Class<?> thisApplication = Class.forName(thisApplicationClassName);<NEW_LINE>try (ScanResult scanResult = new ClassGraph().enableAnnotationInfo().whitelistPackages(thisApplication.getPackage().getNam...
append("<display-name>" + project + "</display-name>");
79,145
public void draw(UShape shape) {<NEW_LINE>final double x = translate.getDx();<NEW_LINE>final double y = translate.getDy();<NEW_LINE>if (shape instanceof URectangle) {<NEW_LINE>final URectangle rect = (URectangle) shape;<NEW_LINE>if (mode == CompressionMode.ON_X) {<NEW_LINE>final double x2 = ct(x + rect.getWidth());<NEW...
(x2 - ct(x));
978,982
public boolean upgrade(Request request, HttpFields.Mutable responseFields) {<NEW_LINE>if (HttpMethod.PRI.is(request.getMethod())) {<NEW_LINE>getParser().directUpgrade();<NEW_LINE>} else {<NEW_LINE>HttpField settingsField = request.getFields().getField(HttpHeader.HTTP2_SETTINGS);<NEW_LINE>if (settingsField == null)<NEW_...
"Missing " + HttpHeader.HTTP2_SETTINGS + " header");
291,256
final GetGroupsForCapacityReservationResult executeGetGroupsForCapacityReservation(GetGroupsForCapacityReservationRequest getGroupsForCapacityReservationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupsForCapacityReservationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
542,111
public static IQueryParameterAnd<?> parseQueryParams(FhirContext theContext, RestSearchParameterTypeEnum paramType, String theUnqualifiedParamName, List<QualifiedParamList> theParameters) {<NEW_LINE>QueryParameterAndBinder binder;<NEW_LINE>switch(paramType) {<NEW_LINE>case COMPOSITE:<NEW_LINE>throw new UnsupportedOpera...
class, Collections.emptyList());
241,684
public static void handleDeleteVariableInstanceEntityCount(VariableInstanceEntity variableInstance, boolean fireDeleteEvent, TaskServiceConfiguration taskServiceConfiguration) {<NEW_LINE>if (variableInstance.getTaskId() != null && isTaskRelatedEntityCountEnabledGlobally(taskServiceConfiguration)) {<NEW_LINE>CountingTas...
), taskServiceConfiguration.getEngineName());
1,439,210
/* *<NEW_LINE>* Checks a Web document.<NEW_LINE>*<NEW_LINE>* @throws IOException if loading of the URL fails for some reason<NEW_LINE>*/<NEW_LINE>public void checkHttpURL(String document, String userAgent, ErrorHandler errorHandler) throws IOException, SAXException {<NEW_LINE>CookieHandler.setDefault(new CookieManager(...
(-1, true, errorHandler);
1,736,489
private void addReaderWriterForType(AdditionalReaderWriter additionalReaderWriter, Type paramType) {<NEW_LINE>DotName dotName = paramType.name();<NEW_LINE>if (dotName.equals(JSONP_JSON_NUMBER) || dotName.equals(JSONP_JSON_VALUE) || dotName.equals(JSONP_JSON_STRING)) {<NEW_LINE>additionalReaderWriter.add(JsonValueHandle...
javax.json.JsonStructure.class);
59,577
private ClientLifecycleEventListener updateAndGetEventListener() {<NEW_LINE>boolean contains = false;<NEW_LINE>ClientLifecycleEventListener eventListener = null;<NEW_LINE>for (final Map.Entry<String, ClientLifecycleEventListener> pluginEventListenerEntry : eventListeners.getPluginEventListenersMap().entrySet()) {<NEW_L...
ClientLifecycleEventListener listener = pluginEventListenerEntry.getValue();
1,078,526
public Request<ListSecurityProfilePermissionsRequest> marshall(ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) {<NEW_LINE>if (listSecurityProfilePermissionsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListSecurityProfilePermissionsRequest)...
request.setHttpMethod(HttpMethodName.GET);
98,604
protected static BundleEntryComponent provider(Bundle bundle, Provider provider) {<NEW_LINE>org.hl7.fhir.dstu3.model.Organization organizationResource = new org.hl7.fhir.dstu3.model.Organization();<NEW_LINE>List<CodeableConcept> organizationType <MASK><NEW_LINE>organizationType.add(mapCodeToCodeableConcept(new Code("ht...
= new ArrayList<CodeableConcept>();
1,689,366
private void processConfig(Map<String, Object> props) {<NEW_LINE>if (props == null || props.isEmpty())<NEW_LINE>return;<NEW_LINE>if ((Boolean) props.get(KEY_ENABLED)) {<NEW_LINE>id = (String) props.get(KEY_ID);<NEW_LINE>className = (<MASK><NEW_LINE>invokeBeforeSSO = (Boolean) props.get(KEY_INVOKE_BEFORE_SSO);<NEW_LINE>...
String) props.get(KEY_CLASS_NAME);
718,144
public boolean applyFirewallRules(Network network, List<? extends FirewallRule> rules) throws ResourceUnavailableException {<NEW_LINE>// Find the external firewall in this zone<NEW_LINE>long zoneId = network.getDataCenterId();<NEW_LINE>DataCenterVO <MASK><NEW_LINE>ExternalFirewallDeviceVO fwDeviceVO = getExternalFirewa...
zone = _dcDao.findById(zoneId);
1,158,501
public OptExpression visitPhysicalDistribution(OptExpression exchangeExpr, DecodeContext context) {<NEW_LINE>visitProjectionBefore(exchangeExpr, context);<NEW_LINE>OptExpression childExpr = exchangeExpr.inputAt(0);<NEW_LINE>context.hasEncoded = false;<NEW_LINE>OptExpression newChildExpr = childExpr.getOp().accept(this,...
exchangeExpr.setChild(0, newChildExpr);
232,298
public void process(Page page) {<NEW_LINE>// http://progressdaily.diandian.com/post/2013-01-24/40046867275<NEW_LINE>List<String> requests = page.getHtml().xpath("//a[@class=\"area_link flat_btn\"]/@href").all();<NEW_LINE>if (requests.size() > 2) {<NEW_LINE>requests = requests.subList(0, 2);<NEW_LINE>}<NEW_LINE>page.add...
("(.*/restaurant/[^#]+)").all());
653,391
public static DescribeHealthCheckListResponse unmarshall(DescribeHealthCheckListResponse describeHealthCheckListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeHealthCheckListResponse.setRequestId(_ctx.stringValue("DescribeHealthCheckListResponse.RequestId"));<NEW_LINE>List<HealthCheckItem> healthCheckList <MASK...
= new ArrayList<HealthCheckItem>();
608,051
private List<MaterialRevision> createFinalRevisionsForScmChildren(PipelineTimelineEntry latestRootNodeInstance, List<RootFanInNode> scmChildren, List<DependencyFanInNode> depChildren) {<NEW_LINE>Set<FaninScmMaterial> scmMaterialsFromDepChildren = scmMaterialsOfDepChildren(depChildren);<NEW_LINE>List<MaterialRevision> f...
findLatestRevisions(new MaterialConfigs(materialConfig));
582,315
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>StructureDataType struct = new StructureDataType(getCommandName(), 0);<NEW_LINE>struct.add(DWORD, "cmd", null);<NEW_LINE>struct.add(DWORD, "cmdsize", null);<NEW_LINE>if (is32bit) {<NEW_LINE>struct.add(DWORD, "vmaddr", null);<NEW_LINE>str...
add(QWORD, "fileoff", null);
1,299,430
private void checkRealmAdminManagementRoles(RealmModel realm) {<NEW_LINE>// don't need to do this for master realm<NEW_LINE>if (realm.getName().equals(Config.getAdminRealm())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String realmAdminClientId = getRealmAdminClientId(realm);<NEW_LINE>ClientModel <MASK><NEW_LINE>RoleModel ...
realmAdminClient = realm.getClientByClientId(realmAdminClientId);
1,500,740
public boolean doAlert(AlertConfigWithParams alertConfig, AlertTemplate alertTemplate) throws AlertException {<NEW_LINE>AlertLarkParams alertLarkParams = alertConfig.getLarkParams();<NEW_LINE>if (alertLarkParams.getIsAtAll()) {<NEW_LINE>alertTemplate.setAtAll(true);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// format markdown...
body.put("sign", sign);
76,077
public void onError(Exception exception) {<NEW_LINE>if (!this.openFuture.isDone()) {<NEW_LINE>this.onOpenComplete(exception);<NEW_LINE>}<NEW_LINE>if (this.getIsClosingOrClosed()) {<NEW_LINE>if (!this.closeFuture.isDone()) {<NEW_LINE>TRACE_LOGGER.info("Closing internal send link '{}' of requestresponselink to {} failed....
onInnerLinksClosed(this.linkGeneration, exception);
1,549,243
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serviceName, String serviceRegistryName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
704,776
// Needs to run before the main correction code or it can move the player into blocks<NEW_LINE>// This is counteracted by the main collision code pushing them out<NEW_LINE>@Override<NEW_LINE>public void beforeCorrectPosition(int x, int y, int z, BoundingBox playerCollision) {<NEW_LINE>// In Bedrock, snow layers round d...
0, boxMaxY - playerMinY, 0);
417,561
public void remove() {<NEW_LINE>byte[] currentLeafKey = getCurrentLeafNode().getKeyBytes();<NEW_LINE>Toolkit toolkit = art.removeSpecifyKey(art.getRoot(), currentLeafKey, 0);<NEW_LINE>if (toolkit == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (containers != null) {<NEW_LINE>containers.remove(toolkit.matchedContaine...
oldEntry = stack[depth - 1];
858,816
private I_C_OrderLine createChargeOrderLine(final I_C_Order newOrder, final I_C_Contract_Change changeConditions, final BigDecimal additionalCharge) {<NEW_LINE>final MOrderLine chargeOlPO = new MOrderLine((MOrder) InterfaceWrapperHelper.getPO(newOrder));<NEW_LINE>final de.metas.interfaces.I_C_OrderLine chargeOl = Inter...
chargeOlPO.setQtyOrdered(BigDecimal.ONE);
208,711
public CreateQuantumTaskResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateQuantumTaskResult createQuantumTaskResult = new CreateQuantumTaskResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
class).unmarshall(context));
3,661
final DescribeTransitGatewayVpcAttachmentsResult executeDescribeTransitGatewayVpcAttachments(DescribeTransitGatewayVpcAttachmentsRequest describeTransitGatewayVpcAttachmentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTransitGatewayVpcAttachmentsRequest);<NEW_LINE>AWSRequestMet...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTransitGatewayVpcAttachments");
426,506
private static boolean isEqual(TableValueImpl lhsTable, TableValueImpl rhsTable, List<ValuePair> checkedValues) {<NEW_LINE>ValuePair compValuePair = new ValuePair(lhsTable, rhsTable);<NEW_LINE>if (checkedValues.contains(compValuePair)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>checkedValues.add(compValuePair);<NEW_LI...
.getFieldNames().length > 0;
1,245,926
protected void registerMathStubs(GraalHotSpotVMConfig hotSpotVMConfig, HotSpotProviders providers, OptionValues options) {<NEW_LINE>if (GraalArithmeticStubs.getValue(options)) {<NEW_LINE>link(new AMD64MathStub(SIN, options, providers, registerStubCall(SIN.foreignCallSignature, LEAF, REEXECUTABLE, COMPUTES_REGISTERS_KIL...
REEXECUTABLE, COMPUTES_REGISTERS_KILLED, NO_LOCATIONS)));
426,444
private void executeQuery(HttpServletRequest request, HttpServletResponse response, String query, Map<String, Object> variables, String operationName) throws IOException {<NEW_LINE>GraphQLContext context = new GraphQLContext.Builder().of("request", request).of("response", response).of("bindingContext", bindingContext)....
ExecutionInput executionInput = contextBuilder.build();
1,548,358
public void visit(InvocationExpr expr) {<NEW_LINE>ClassReader cls = context.getClassSource().get(expr.getMethod().getClassName());<NEW_LINE>if (cls != null) {<NEW_LINE>InteropUtil.processInclude(cls.getAnnotations(), includes);<NEW_LINE>MethodReader method = cls.getMethod(expr.getMethod().getDescriptor());<NEW_LINE>if ...
), expr.getArguments());
1,584,232
public Optional<PlanNode> visitGroupId(GroupIdNode node, Map<VariableReferenceExpression, VariableReferenceExpression> context) {<NEW_LINE>Optional<PlanNode> source = node.getSource().accept(this, context);<NEW_LINE>if (!source.isPresent()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>ImmutableMap.Builder<Va...
node.getGroupIdVariable(), groupId);
511,875
private void checkNameCollisions(Multimap<String, MemberDescriptor> jsMembersByName, Member member) {<NEW_LINE>checkOverrideConsistency(member);<NEW_LINE>if (member.isNative()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = member.getDescriptor().getSimpleJsName();<NEW_LINE>Set<MemberDescriptor> potentiallyCollid...
member.getDescriptor()::isSameMember);
820,571
public static Set<StoredConfigKey> changedValues(final StoredConfiguration originalConfiguration, final StoredConfiguration modifiedConfiguration) {<NEW_LINE>final Instant startTime = Instant.now();<NEW_LINE>final Predicate<StoredConfigKey> hashTester = key -> {<NEW_LINE>final Optional<String> hash1 = originalConfigura...
).map(StoredValue::valueHash);
167,296
private Problem reallyUndoRefactoring(boolean saveAfterDone) {<NEW_LINE>try {<NEW_LINE>ListIterator it = internalList.listIterator(internalList.size());<NEW_LINE>fireProgressListenerStart(0, internalList.size() + 1);<NEW_LINE>ArrayList<RefactoringElementImplementation> fileChanges = SPIAccessor.DEFAULT.getFileChanges(b...
(RefactoringElementImplementation) it.previous();
244,317
private void enableLiveUpdates(boolean enable) {<NEW_LINE>if (!Algorithms.isEmpty(adapter.mapsList)) {<NEW_LINE>AlarmManager alarmMgr = (AlarmManager) app.getSystemService(Context.ALARM_SERVICE);<NEW_LINE>List<LocalIndexInfo> mapsToUpdate = getMapsToUpdate(adapter.mapsList, settings);<NEW_LINE>for (LocalIndexInfo li : ...
String fileName = li.getFileName();
1,614,448
final CreateWorkspaceResult executeCreateWorkspace(CreateWorkspaceRequest createWorkspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createWorkspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Create...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,025,352
public static void fromMappingsGem(ValueMappingsGem mappingsGem, ExecutableElement method, FormattingMessager messager, List<ValueMappingOptions> mappings) {<NEW_LINE>boolean anyFound = false;<NEW_LINE>for (ValueMappingGem mappingGem : mappingsGem.value().get()) {<NEW_LINE>ValueMappingOptions mapping = fromMappingGem(m...
source().get());
1,029,972
private void stop(boolean swallowException) {<NEW_LINE>log.trace("Stopping the schema registry group member.");<NEW_LINE>// Interrupt any outstanding poll calls<NEW_LINE>if (client != null) {<NEW_LINE>client.wakeup();<NEW_LINE>}<NEW_LINE>// Wait for processing thread to complete<NEW_LINE>if (executor != null) {<NEW_LIN...
closeQuietly(coordinator, "coordinator", firstException);
1,453,242
public void trigger(DelegateExecution execution, String triggerName, Object triggerData) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);<NEW_LINE>ExecutionEntity...
getActivityInstanceEntityManager().recordActivityStart(outgoingFlowExecution);
1,605,748
public void registerDependency(GradleCoordinate coordinate, DependencyType type) {<NEW_LINE>if (type != DependencyType.IMPLEMENTATION) {<NEW_LINE>throw new UnsupportedOperationException("Unsupported dependency type in Blaze: " + type);<NEW_LINE>}<NEW_LINE>BlazeProjectData blazeProjectData = BlazeProjectDataManager.getI...
fileEditorManager = FileEditorManager.getInstance(project);
5,622
public void populateFromParamsMap(Map<String, String[]> params) {<NEW_LINE>if (params.containsKey(Params.NAME.getValue()))<NEW_LINE>setName(params.get(Params.NAME.getValue())[0]);<NEW_LINE>if (params.containsKey(Params.MEETING_ID.getValue()))<NEW_LINE>setMeetingID(params.get(Params.MEETING_ID.getValue())[0]);<NEW_LINE>...
getValue())[0]);
218,052
public static QueryRegistrantProfilesResponse unmarshall(QueryRegistrantProfilesResponse queryRegistrantProfilesResponse, UnmarshallerContext context) {<NEW_LINE>queryRegistrantProfilesResponse.setRequestId(context.stringValue("QueryRegistrantProfilesResponse.RequestId"));<NEW_LINE>queryRegistrantProfilesResponse.setTo...
("QueryRegistrantProfilesResponse.RegistrantProfiles[" + i + "].RealNameStatus"));
718,240
public void run() {<NEW_LINE>try {<NEW_LINE>SevenZFile sevenZFile = new SevenZFile(new File(filePath));<NEW_LINE>SevenZArchiveEntry entry = sevenZFile.getNextEntry();<NEW_LINE>while (entry != null) {<NEW_LINE>if (entry.isDirectory()) {<NEW_LINE>entry = sevenZFile.getNextEntry();<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>S...
= new FileOutputStream(fileDir + childName);
812,196
public void addPet(Pet body, final Response.Listener<String> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the required parameter ...
0 ? contentTypes[0] : "application/json";
1,253,836
private boolean S4U2SelfTest(StringBuffer sb) {<NEW_LINE>boolean pass = false;<NEW_LINE>try {<NEW_LINE>if (krb5conf != null && krb5Keytab != null) {<NEW_LINE>setSystemProperty("KRB5_KTNAME", krb5Keytab);<NEW_LINE>setSystemProperty("java.security.krb5.conf", krb5conf);<NEW_LINE>}<NEW_LINE>String token = SpnegoHelper.bui...
writeLine(sb, "Spnego token:" + token);
1,065,693
private List<Rule> buildMapValidation(Map map, List<Map> entries) throws Exception {<NEW_LINE>List<Rule> rules = new ArrayList<>(2);<NEW_LINE>List<String> required = entries.stream().filter(this::isRequired).map(entry -> {<NEW_LINE>try {<NEW_LINE>return readNotNull(entry, String.class, MAP_ENTRY_KEY_KEY);<NEW_LINE>} ca...
new ExclusiveRule(exclusiveSets, required));
710,990
public Request<ModifyVpnTunnelCertificateRequest> marshall(ModifyVpnTunnelCertificateRequest modifyVpnTunnelCertificateRequest) {<NEW_LINE>if (modifyVpnTunnelCertificateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyVpnTunnelCertif...
request.setHttpMethod(HttpMethodName.POST);
509,774
protected IRODSFileSystem configure(final IRODSFileSystem client) {<NEW_LINE>final SettableJargonProperties properties = new SettableJargonProperties(client.getJargonProperties());<NEW_LINE>properties.<MASK><NEW_LINE>final PreferencesReader preferences = new HostPreferences(host);<NEW_LINE>final int timeout = Connectio...
setEncoding(host.getEncoding());
1,745,179
private void computeRemainingRows(int row0, int row1, WorkSpace ws) {<NEW_LINE>int disparityMax = Math.min(left.width, this.disparityMax);<NEW_LINE>for (int row = row0 + regionHeight; row < row1; row++) {<NEW_LINE>int oldRow = (row - row0) % regionHeight;<NEW_LINE>// subtract first row from vertical score<NEW_LINE>fina...
radiusX, ws.rightRow, 0);
413,323
public LinearGraphAnswer performAction(@Nonnull ActionContext context) {<NEW_LINE>CollapsedGraph.Modification modification <MASK><NEW_LINE>modification.removeAdditionalEdges();<NEW_LINE>modification.resetNodesVisibility();<NEW_LINE>LinearGraph delegateGraph = context.getDelegatedGraph();<NEW_LINE>for (int nodeIndex = 0...
= context.myCollapsedGraph.startModification();
440,593
private void exportCollectedHUsIfRequired(@NonNull final Collection<ExportHUCandidate> huCandidates) {<NEW_LINE>if (huCandidates.isEmpty()) {<NEW_LINE>Loggables.withLogger(logger, Level<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!externalSystemConfigRepo.isAnyConfigActive(getExternalSystemType())) {<NEW_LINE>Loggab...
.DEBUG).addLog("HuId list to sync empty! No action is performed!");
296,957
static ReusablePort create(int port) throws IOException {<NEW_LINE>// Why not upgrading TonY to Java 9+ given port reuse is supported in Java 9+?<NEW_LINE>// - In Linkedin, as of now(2020/08), only Java 8 and 11 are officially supported, but Java 11<NEW_LINE>// introduces incompatibility with Play version tony-portal<N...
LOG.debug("Starting process " + socketBindingProcess);
1,405,383
public static int vkEnumerateDeviceExtensionProperties(VkPhysicalDevice physicalDevice, @Nullable @NativeType("char const *") CharSequence pLayerName, @NativeType("uint32_t *") int[] pPropertyCount, @Nullable @NativeType("VkExtensionProperties *") VkExtensionProperties.Buffer pProperties) {<NEW_LINE>long __functionAddr...
, memAddressSafe(pProperties), __functionAddress);
1,070,896
public void testBasicPassivation() throws Exception {<NEW_LINE>SessionIdCache.clearAll();<NEW_LINE>final InitialContext ic = new InitialContext();<NEW_LINE>StatefulSessionBeanLocal sBean = (StatefulSessionBeanLocal) ic.lookup(BeanName);<NEW_LINE>assertNotNull(sBean);<NEW_LINE>final String beanId = sBean.getSessionId();...
.passivateList.contains(beanId));
1,082,718
public static void configureJavaDocTask(@Nullable String featureName, SourceSet sourceSet, TaskContainer tasks, @Nullable JavaPluginExtension javaPluginExtension) {<NEW_LINE>String javadocTaskName = sourceSet.getJavadocTaskName();<NEW_LINE>if (!tasks.getNames().contains(javadocTaskName)) {<NEW_LINE>tasks.register(javad...
: "'" + featureName + "' feature."));
1,061,595
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>String trackingId = System.getenv("GA_TRACKING_ID");<NEW_LINE>HttpClient client = HttpClientBuilder.create().build();<NEW_LINE>URIBuilder builder = new URIBuilder();<NEW_LINE>// API Version.<NEW_LINE>buil...
getWriter().println("Event tracked.");
103,689
final DescribeDataIngestionJobResult executeDescribeDataIngestionJob(DescribeDataIngestionJobRequest describeDataIngestionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDataIngestionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,783,806
private void initKeys(String json) {<NEW_LINE>try {<NEW_LINE>org.jose4j.jwk.JsonWebKeySet jwkSet = new org.jose4j.jwk.JsonWebKeySet(json);<NEW_LINE>for (JsonWebKey jwkKey : jwkSet.getJsonWebKeys()) {<NEW_LINE>if (isSupportedJwkKey(jwkKey)) {<NEW_LINE>if (jwkKey.getKeyId() != null) {<NEW_LINE>keysWithKeyId.put(jwkKey.ge...
) jwkKey).getX509CertificateSha1Thumbprint(calculateThumbprintIfMissing);
64,055
public static SslContext createSSLContext(boolean isServer) throws SSLException, CertificateException {<NEW_LINE>SslContext sslCtx;<NEW_LINE>SelfSignedCertificate ssc = new SelfSignedCertificate();<NEW_LINE>if (isServer) {<NEW_LINE>sslCtx = SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey()).sslProvider(Ss...
.HTTP_2)).build();
1,511,654
public Block parseBlock(RawBlock rawBlock) throws BlockHashNotConnectingException, BlockHeightNotConnectingException {<NEW_LINE><MASK><NEW_LINE>int blockHeight = rawBlock.getHeight();<NEW_LINE>log.trace("Parse block at height={} ", blockHeight);<NEW_LINE>validateIfBlockIsConnecting(rawBlock);<NEW_LINE>daoStateService.o...
long startTs = System.currentTimeMillis();
1,071,473
public void addAnomalyTS(CombinedDomainXYPlot plot, DataSequence observedSeries, DataSequence expectedSeries) {<NEW_LINE>// Compute the time-series of errors.<NEW_LINE>HashMap<String, ArrayList<Float>> allErrors = aes.initAnomalyErrors(observedSeries, expectedSeries);<NEW_LINE>Float sDAutoSensitivity = (float) 0.0;<NEW...
(config.getProperty("AUTO_SENSITIVITY_ANOMALY_PCNT"));
1,141,807
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String labPlanName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumen...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,021,482
public void onScriptCallbackEvent(ScriptCallbackEvent scriptCallbackEvent) {<NEW_LINE>switch(scriptCallbackEvent.getEventName()) {<NEW_LINE>case "confirmFriendsChatKick":<NEW_LINE>{<NEW_LINE>if (!config.confirmKicks() || kickConfirmed) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>// Set a flag so the script doesn't instantly ...
] intStack = client.getIntStack();
1,222,661
protected static boolean putInt(ContentResolver cr, String name, int value) {<NEW_LINE>boolean changed = !Objects.equals(get(cr).put(name, value), value);<NEW_LINE>if (Settings.Secure.LOCATION_MODE.equals(name)) {<NEW_LINE>if (RuntimeEnvironment.getApiLevel() <= P) {<NEW_LINE>// do this after setting location mode but ...
cr, LocationManager.NETWORK_PROVIDER, network);
193,971
public void upload2() {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.cryptography.EncryptedBlobAsyncClient.uploadWithResponse#Flux-ParallelTransferOptions-BlobHttpHeaders-Map-AccessTier-BlobRequestConditions<NEW_LINE>BlobHttpHeaders headers = new BlobHttpHeaders().setContentMd5("data".getBytes(StandardCharsets...
().minusDays(3));
965,082
protected Element createSectionRoot(FOConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) throws Docx4JException {<NEW_LINE>Element pageSequence = document.createElementNS(XSL_FO, "page-sequence");<NEW_LINE>int pageNumberInitial = sectionWrapper.getPag...
, Integer.toString(pageNumberInitial));
1,650,839
public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>try {<NEW_LINE>Set<SpringFactory> springFactories = loadSpringFactories(context);<NEW_LINE>FactoriesCodeContributors contributors = new FactoriesCodeContributors(aotOptions);<NEW_LINE>CodeGenerator codeGenerator = contributors.createCodeGene...
(codeGenerator.generateStaticSpringFactories()));
1,077,260
private int createInternal(String path, long mode, FuseFileInfo fi) {<NEW_LINE>final AlluxioURI <MASK><NEW_LINE>if (uri.getName().length() > MAX_NAME_LENGTH) {<NEW_LINE>LOG.error("Failed to create {}: file name longer than {} characters", path, MAX_NAME_LENGTH);<NEW_LINE>return -ErrorCodes.ENAMETOOLONG();<NEW_LINE>}<NE...
uri = mPathResolverCache.getUnchecked(path);
399,199
// from java.hints/src/org/netbeans/modules/java/hints/errors/Utilities.java:<NEW_LINE>private static TypeMirror resolveCapturedType(CompilationInfo info, TypeMirror tm) {<NEW_LINE>if (tm == null) {<NEW_LINE>return tm;<NEW_LINE>}<NEW_LINE>if (tm.getKind() == TypeKind.ERROR) {<NEW_LINE>tm = info.getTrees().getOriginalTy...
? null : te.asType();
1,521,643
public boolean execute(CtElement element) {<NEW_LINE>ControlFlowBuilder builder = new ControlFlowBuilder();<NEW_LINE>ControlFlowGraph graph = builder.build(element);<NEW_LINE>graph.simplify();<NEW_LINE>// System.out.println(graph.toGraphVisText());<NEW_LINE>// System.out.println(graph.toGraphVisText());<NEW_LINE>List<C...
edges = graph.incomingEdgesOf(n);