idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,815,560
final UpdateUserProfileResult executeUpdateUserProfile(UpdateUserProfileRequest updateUserProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,357,548
public com.amazonaws.services.iotjobsdataplane.model.InvalidRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotjobsdataplane.model.InvalidRequestException invalidRequestException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = c...
iotjobsdataplane.model.InvalidRequestException(null);
696,450
public DescribeDBProxiesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeDBProxiesResult describeDBProxiesResult = new DescribeDBProxiesResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 2;<NEW_L...
int originalDepth = context.getCurrentDepth();
985,584
public void addChangeToCorrespondingList(@Nonnull Change change, final VcsKey vcsKey) {<NEW_LINE>final String path = ChangesUtil.getFilePath(change).getPath();<NEW_LINE>LOG.debug("[addChangeToCorrespondingList] for change " + path + " type: " + change.getType() + " have before revision: " + (change.getBeforeRevision() ...
) myDefault).processChange(change);
1,842,795
// Undeploy any HA deploymentIDs now there is no quorum<NEW_LINE>private void undeployHADeployments() {<NEW_LINE>for (String deploymentID : deploymentManager.deployments()) {<NEW_LINE>Deployment dep = deploymentManager.getDeployment(deploymentID);<NEW_LINE>if (dep != null) {<NEW_LINE>if (dep.deploymentOptions().isHa())...
dep.verticleIdentifier() + " after quorum was re-attained");
1,071,079
final ListObjectPoliciesResult executeListObjectPolicies(ListObjectPoliciesRequest listObjectPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listObjectPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
false), new ListObjectPoliciesResultJsonUnmarshaller());
978,691
// Check if a given point and normal is facing away currently<NEW_LINE>static double checkPointAndNormFacing(Point3d dispLoc, Point3d norm, Matrix4d mat, Matrix4d normMat) {<NEW_LINE>Point4d pt = mat.multiply(new Point4d(dispLoc.getX(), dispLoc.getY(), dispLoc.getZ(), 1.0));<NEW_LINE>double x = pt.getX() / pt.getW();<N...
() / pt.getW();
1,693,384
protected void onDraw(Canvas canvas) {<NEW_LINE>super.onDraw(canvas);<NEW_LINE>if (isInEditMode())<NEW_LINE>setColors(Color.CYAN, Color.RED, Color.GREEN, Color.BLUE);<NEW_LINE>if (!paintInitialized)<NEW_LINE>throw new IllegalStateException("Paint has not actual color!");<NEW_LINE>float distance = getWidth() * DISTANCE_...
, true, colors[0]);
1,100,602
public DeleteNotificationRuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteNotificationRuleResult deleteNotificationRuleResult = new DeleteNotificationRuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
JsonToken token = context.getCurrentToken();
63,870
private boolean writePacket(ByteBuffer writeBuf, FLVTag pkt) {<NEW_LINE>int pktType = pkt.getType() == Type.VIDEO ? 0x9 : (pkt.getType() == Type.SCRIPT ? 0x12 : 0x8);<NEW_LINE>int dataLen = pkt.getData().remaining();<NEW_LINE>if (writeBuf.remaining() < 15 + dataLen)<NEW_LINE>return false;<NEW_LINE>writeBuf.putInt(write...
) (dataLen >> 8));
755,181
private // ;<NEW_LINE>PropertyValue function() throws IOException {<NEW_LINE>// System.out.println("function()");<NEW_LINE>PropertyValue result = null;<NEW_LINE>Token t = next();<NEW_LINE>if (t == Token.TK_FUNCTION) {<NEW_LINE>String f = getTokenValue(t);<NEW_LINE>skip_whitespace();<NEW_LINE>List<<MASK><NEW_LINE>t = ne...
PropertyValue> params = expr(false);
148,200
public void updateSalePrice(Product product, Company company) throws AxelorException {<NEW_LINE>BigDecimal managePriceCoef = (BigDecimal) productCompanyService.get(product, "managPriceCoef", company);<NEW_LINE>if ((BigDecimal) productCompanyService.get(product, "costPrice", company) != null) {<NEW_LINE>if (product.getP...
), ProductVariantValueRepository.APPLICATION_SALE_PRICE)));
1,613,420
public void produceMetadataChangeLog(@Nonnull final Urn urn, @Nonnull AspectSpec aspectSpec, @Nonnull final MetadataChangeLog metadataChangeLog) {<NEW_LINE>GenericRecord record;<NEW_LINE>try {<NEW_LINE>log.debug(String.format("Converting Pegasus snapshot to Avro snapshot urn %s\nMetadataChangeLog: %s", urn, metadataCha...
throw new ModelConversionException("Failed to convert Pegasus MAE to Avro", e);
623,012
public void paint(Graphics g, int x, int y, Bounds b) {<NEW_LINE>Bounds button = <MASK><NEW_LINE>g.setColor(Color.LIGHT_GRAY);<NEW_LINE>g.fillRect(button.getX(), button.getY(), button.getWidth(), button.getHeight());<NEW_LINE>g.setColor(Color.BLUE);<NEW_LINE>Font f = g.getFont();<NEW_LINE>g.setFont(StdAttr.DEFAULT_LABE...
getButtonLocation(x, y, b);
282,852
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>locationPanel = new javax.swing.JPanel();<NEW_LINE>locationLabel = new javax.swing.JLabel();<NEW_LINE>// NOI18N<NEW_LINE>setName(Util.THIS.getString(SchemaImportGUI.class, "PROP_sc...
swing.BorderFactory.createEtchedBorder());
950,071
public void show() {<NEW_LINE>if (manager == null || styleResId == null) {<NEW_LINE>Log.e("NumberPickerBuilder", "setFragmentManager() and setStyleResId() must be called.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FragmentTransaction ft = manager.beginTransaction();<NEW_LINE>final Fragment prev = manager.findFragmentByTag...
remove(prev).commit();
303,013
public Stat concurrentSpreadRate(String key) {<NEW_LINE>return concurrent.computeIfAbsent(key, k -> {<NEW_LINE>SpreadStat stat = new SpreadStat(key);<NEW_LINE>addDynamicCounter(key + ".rate", () -> stat.getRate().getAllTime());<NEW_LINE>addDynamicCounter(key + ".rate.3600", () -> stat.getRate().getHour());<NEW_LINE>add...
getSamples().getHour());
87,113
public static ListQuotaAlarmsResponse unmarshall(ListQuotaAlarmsResponse listQuotaAlarmsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQuotaAlarmsResponse.setRequestId(_ctx.stringValue("ListQuotaAlarmsResponse.RequestId"));<NEW_LINE>listQuotaAlarmsResponse.setTotalCount(_ctx.integerValue("ListQuotaAlarmsResponse.To...
("ListQuotaAlarmsResponse.QuotaAlarms[" + i + "].QuotaValue"));
1,276,425
public void onRestRequest(RestRequest req, RequestContext requestContext, Map<String, String> wireAttrs, NextFilter<RestRequest, RestResponse> nextFilter) {<NEW_LINE>final RestRequest newReq;<NEW_LINE>try {<NEW_LINE>newReq = QueryTunnelUtil.decode(req, requestContext);<NEW_LINE>} catch (MessagingException ex) {<NEW_LIN...
onResponse(errorResponse, requestContext, wireAttrs);
305,790
private static int queueSrcReferences(List<CodeBlockReference> blockRefQueue, CodeBlock destBlock, Address destAddr, Address srcAddr, FlowType flowType, TaskMonitor monitor) throws CancelledException {<NEW_LINE>CodeBlockModel model = destBlock.getModel();<NEW_LINE>if (model.allowsBlockOverlap()) {<NEW_LINE>CodeBlock[] ...
destBlock, flowType, destAddr, srcAddr);
1,083,454
public static DescribeApplicationGroupsResponse unmarshall(DescribeApplicationGroupsResponse describeApplicationGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeApplicationGroupsResponse.setRequestId(_ctx.stringValue("DescribeApplicationGroupsResponse.RequestId"));<NEW_LINE>describeApplicationGroupsResponse...
("DescribeApplicationGroupsResponse.Data[" + i + "].RunningInstances"));
1,655,796
public static void verticalInverse(BorderIndex1D border, WlBorderCoef<WlCoef_F32> inverseCoef, GrayF32 input, GrayF32 output) {<NEW_LINE><MASK><NEW_LINE>float[] trends = new float[output.height];<NEW_LINE>float[] details = new float[output.height];<NEW_LINE>boolean isLarger = input.height > output.height;<NEW_LINE>int ...
UtilWavelet.checkShape(output, input);
71,183
private void registerWindowSizeListener() {<NEW_LINE>addComponentListener(new ComponentAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentResized(ComponentEvent e) {<NEW_LINE>storeWindowPosition(e);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentMoved(ComponentEvent e) {<NEW_L...
FilterDialog.Y, loc.y);
1,842,742
protected boolean shouldHandle(FileObject refactoringSource) {<NEW_LINE>final boolean[] result = new boolean[] { false };<NEW_LINE>if (RefactoringUtil.isJavaFile(refactoringSource)) {<NEW_LINE>JavaSource <MASK><NEW_LINE>try {<NEW_LINE>source.runUserActionTask(new CancellableTask<CompilationController>() {<NEW_LINE><NEW...
source = JavaSource.forFileObject(refactoringSource);
39,322
public void listBlocks2() {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.BlockBlobClient.listBlocksWithResponse#BlockListType-String-Duration-Context<NEW_LINE>Context context <MASK><NEW_LINE>BlockList block = client.listBlocksWithResponse(BlockListType.ALL, leaseId, timeout, context).getValue();<NEW_LINE>Syste...
= new Context("key", "value");
277,502
private static void attachExternalSubtitlesFile(File subtitlesFile, DLNAMediaInfo media, List<String> suffixParts) {<NEW_LINE>LOGGER.trace("Attaching external subtitles file for {}", subtitlesFile.getName());<NEW_LINE>DLNAMediaSubtitle subtitles = new DLNAMediaSubtitle();<NEW_LINE>subtitles.setType(SubtitleType.valueOf...
language = Iso639.getISO639_2Code(part);
495,761
private Interface initRoutingInterface(Interface_idContext id) {<NEW_LINE>Map<String, Interface> interfaces;<NEW_LINE>InterfaceId interfaceId = new InterfaceId(id);<NEW_LINE>if (interfaceId.getNode() != null) {<NEW_LINE><MASK><NEW_LINE>NodeDevice nodeDevice = _configuration.getNodeDevices().computeIfAbsent(nodeDeviceNa...
String nodeDeviceName = interfaceId.getNode();
429,806
// getEnterpriseBeanClassName<NEW_LINE>@Override<NEW_LINE>public final Handle createHandle(BeanId id) throws RemoteException {<NEW_LINE>EJSWrapper wrapper = null;<NEW_LINE>homeEnabled();<NEW_LINE>// f111627; //p116577<NEW_LINE>wrapper = getWrapper(id).getRemoteWrapper();<NEW_LINE>if (!statelessSessionHome && !statefulS...
Tr.debug(tc, "createHandle():Creating non-portable EntityHandle");
1,307,996
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public @buseventtype create schema MyEvent(id string, value int);\n" + "insert into StreamWithAll select * from pattern[[4] me=MyEvent];\n" + "insert into StreamGreaterZero select me.where(v => v.value>0) @eventbean as megt from StreamWithAll;\n" + "i...
(epl).addListener("s0");
1,311,774
public void run() {<NEW_LINE>Service service = this.service;<NEW_LINE>if (Loggers.EVT_LOG.isDebugEnabled()) {<NEW_LINE>Loggers.EVT_LOG.debug("[CLIENT-BEAT] processing beat: {}", rsInfo.toString());<NEW_LINE>}<NEW_LINE>String ip = rsInfo.getIp();<NEW_LINE>String clusterName = rsInfo.getCluster();<NEW_LINE>int port = rsI...
"[CLIENT-BEAT] refresh beat: {}", rsInfo.toString());
1,203,977
private void addImpassableRoadInternal(@NonNull AvoidRoadInfo avoidRoadInfo, boolean showDialog, @Nullable MapActivity activity, @NonNull LatLon loc) {<NEW_LINE>boolean roadAdded = false;<NEW_LINE>for (RoutingConfiguration.Builder builder : app.getAllRoutingConfigs()) {<NEW_LINE>if (!builder.getImpassableRoadLocations(...
getSettings().updateImpassableRoadInfo(avoidRoadInfo);
45,870
public byte[] encode(final short[] samples, final int numSamples) throws AudioEncoderException {<NEW_LINE>Preconditions.checkArgument(samples.length >= numSamples, "Number of samples cannot exceed buffer size");<NEW_LINE>int samplesProcessed = 0;<NEW_LINE>int toWrite = 0;<NEW_LINE>final List<byte[]> encodedBytesList = ...
ArrayList<byte[]>();
854,333
private static <T> double[] estimateWidth(T[] x, int[] y, T[] centers, int[] clusterSize, Metric<T> distance, double r) {<NEW_LINE>int k = centers.length;<NEW_LINE>double[<MASK><NEW_LINE>for (int i = 0; i < x.length; i++) {<NEW_LINE>sigma[y[i]] += MathEx.pow2(distance.d(x[i], centers[y[i]]));<NEW_LINE>}<NEW_LINE>for (i...
] sigma = new double[k];
997,801
private void doResume(PendingWorkflowInvocation pending, String body) {<NEW_LINE>Workflow wf = pending.getWorkflow();<NEW_LINE>List<WorkflowStepData> stepsLeft = wf.getSteps().subList(pending.getPendingStepIdx(), wf.getSteps().size());<NEW_LINE>WorkflowStep pendingStep = createStep(stepsLeft.get(0));<NEW_LINE>WorkflowC...
pending.getPendingStepIdx() - 1);
376,309
public static void referenceAllTouchLocationsZ() throws Exception {<NEW_LINE>ReferenceNozzleTip templateNozzleTip = ReferenceNozzleTip.getTemplateNozzleTip();<NEW_LINE>if (templateNozzleTip == null) {<NEW_LINE>throw new Exception("No nozzle tip is marked as Template.");<NEW_LINE>}<NEW_LINE>// Always use the default noz...
ReferenceNozzleTip) nt).getTouchLocation();
147,566
public <V1, V2, V3, V4, V5> Promise<MultipleResultsN, OneReject<?>, MasterProgress> when(DeferredAsyncTask<Void, ?, V1> taskV1, DeferredAsyncTask<Void, ?, V2> taskV2, DeferredAsyncTask<Void, ?, V3> taskV3, DeferredAsyncTask<Void, ?, V4> taskV4, DeferredAsyncTask<Void, ?, V5> taskV5, DeferredAsyncTask<Void, ?, ?> task6,...
?> promise5 = when(taskV5);
1,257,686
private void validateUniqueness() {<NEW_LINE>TreeSet<String> values = new TreeSet<String>();<NEW_LINE>TreeSet<String> badValues = new TreeSet<String>();<NEW_LINE>// check for AD 'id' unique values<NEW_LINE>for (MetatypeAd ad : ads) {<NEW_LINE>String id = ad.getId();<NEW_LINE>if (id != null && !values.add(id))<NEW_LINE>...
String name = ad.getName();
675,157
public Problem prepare(RefactoringElementsBag refactoringElementsBag) {<NEW_LINE>if (!shouldHandle()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Problem result = null;<NEW_LINE>for (FileObject refactoringSource : getRefactoringSources()) {<NEW_LINE>Project <MASK><NEW_LINE>if (project == null) {<NEW_LINE>continue;<NEW_...
project = FileOwnerQuery.getOwner(refactoringSource);
1,151,022
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jPanel1 = new javax.swing.JPanel();<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>userAgentInput = new javax.swing.JTextField();<NEW_LINE>jLabel2 = new javax.swing.JLabel()...
new javax.swing.JButton();
33,708
public void showToolbar(boolean showToolbar) {<NEW_LINE>toolbarVisible_ = showToolbar;<NEW_LINE>outerPanel_.clear();<NEW_LINE>if (showToolbar) {<NEW_LINE>if (!hostedMode_) {<NEW_LINE>logoAnchor_.getElement().removeAllChildren();<NEW_LINE>logoAnchor_.getElement().appendChild(logoLarge_.getElement());<NEW_LINE>outerPanel...
set(headerPanel.getElement());
1,819,109
public void render(PoseStack transform, int mx, int my, float partialTicks) {<NEW_LINE>if (!visible)<NEW_LINE>return;<NEW_LINE>Font fr = gui.manual.fontRenderer();<NEW_LINE>int mmY = my - this.y;<NEW_LINE>transform.pushPose();<NEW_LINE>transform.scale(textScale, textScale, textScale);<NEW_LINE>transform.translate(x / t...
= gui.manual.getTextColour();
201,929
public void execute(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) {<NEW_LINE>CmmnEngineConfiguration engineConfiguration = CommandContextUtil.getCmmnEngineConfiguration(commandContext);<NEW_LINE>CmmnManagementService managementService = engineConfiguration.getCmmnManag...
throw new FlowableIllegalArgumentException("There is no batch with the id " + configuration);
980,883
final DeleteVPCEConfigurationResult executeDeleteVPCEConfiguration(DeleteVPCEConfigurationRequest deleteVPCEConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVPCEConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,657,712
public Subject combine(Subject another) {<NEW_LINE>Builder builder = Subject.builder().addPrincipal(this.principal);<NEW_LINE>// add this subject<NEW_LINE>principals.forEach(builder::addPrincipal);<NEW_LINE>privateCredentials.keys().forEach(key -> builder.addPrivateCredential(key, privateCredentials.getInstance(key)));...
publicCredentials.getInstance(key)));
571,210
public void init() {<NEW_LINE>photos = service.getPhotos();<NEW_LINE>responsiveOptions1 = new ArrayList<>();<NEW_LINE>responsiveOptions1.add(new ResponsiveOption("1024px", 5));<NEW_LINE>responsiveOptions1.add(new ResponsiveOption("768px", 3));<NEW_LINE>responsiveOptions1.add(new ResponsiveOption("560px", 1));<NEW_LINE>...
new ResponsiveOption("1024px", 3));
448,663
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>matrixStack.push();<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(<MASK><NEW_LINE>GL11.glDisable(GL11.GL_DEPTH_TEST);<NEW_LINE>GL11.glDepthMask(false);<NEW_LINE>GL11.glEnable(GL11.GL_LINE_SMOOTH);<NEW_LINE>RenderUtils.applyC...
GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
729,496
public void onSuccess(@Nullable Tuple2<Map<String, Long>, Map<String, Long>> result) {<NEW_LINE>UserThread.execute(() -> {<NEW_LINE>checkNotNull(result, "Result must not be null at getFees");<NEW_LINE>timeStampMap = result.first;<NEW_LINE>epochInSecondAtLastRequest = timeStampMap.get(Config.BTC_FEES_TS);<NEW_LINE>final...
map.get(Config.BTC_MIN_TX_FEE);
1,469,331
private static void runSequential(int size) {<NEW_LINE>long[] input = init(size);<NEW_LINE>long[] outputA = new long[size];<NEW_LINE>long[] outputB = new long[size];<NEW_LINE>long[] outputC = new long[size];<NEW_LINE>long[] outputD = new long[size];<NEW_LINE>long[] outputE = new long[size];<NEW_LINE>// Sequential<NEW_L...
d + "^5 = " + e + "^5");
961,990
protected void executeImpl() throws MojoExecutionException, MojoFailureException {<NEW_LINE>String iconPath = properties.getProperty("codename1.icon");<NEW_LINE>File iconFile = new File(iconPath);<NEW_LINE>if (!iconFile.isAbsolute()) {<NEW_LINE>iconFile = new File(getCN1ProjectDir(), iconFile.getPath());<NEW_LINE>}<NEW...
), iconImage, 16, 16);
1,058,739
public ListGlobalTablesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListGlobalTablesResult listGlobalTablesResult = new ListGlobalTablesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
)).unmarshall(context));
1,620,528
public PreKeyBundle bundle(final IqPacket bundle) {<NEW_LINE><MASK><NEW_LINE>if (bundleItem == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Element bundleElement = bundleItem.findChild("bundle");<NEW_LINE>if (bundleElement == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final ECPublicKey signedPreKeyPub...
final Element bundleItem = getItem(bundle);
1,239,837
protected void copyTemplateToTargetFilesystemStorageIfNeeded(VolumeInfo srcVolumeInfo, StoragePool srcStoragePool, DataStore destDataStore, StoragePool destStoragePool, Host destHost) {<NEW_LINE>if (srcVolumeInfo.getVolumeType() != Volume.Type.ROOT || srcVolumeInfo.getTemplateId() == null) {<NEW_LINE>return;<NEW_LINE>}...
srcVolumeInfo.getTemplateId(), sourceTemplateDataStore);
723,586
public static DescribeAllDataSourcesResponse unmarshall(DescribeAllDataSourcesResponse describeAllDataSourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAllDataSourcesResponse.setRequestId(_ctx.stringValue("DescribeAllDataSourcesResponse.RequestId"));<NEW_LINE>List<Table> tables = new ArrayList<Table>();<NEW...
("DescribeAllDataSourcesResponse.Columns[" + i + "].ColumnName"));
6,881
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UntagResourceRequest> request = null;<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,222,764
// The interface which DdlExecutor needs.<NEW_LINE>public void createDb(CreateDbStmt stmt) throws DdlException {<NEW_LINE>final String clusterName = stmt.getClusterName();<NEW_LINE>String fullDbName = stmt.getFullDbName();<NEW_LINE>Map<String, String> properties = stmt.getProperties();<NEW_LINE>long id = getNextId();<N...
reportDdlException(ErrorCode.ERR_CLUSTER_NO_SELECT_CLUSTER, clusterName);
1,044,989
protected void createAlgorithms() {<NEW_LINE>detectorSet.safe(() -> {<NEW_LINE>if (targetChanged)<NEW_LINE>detectorSet.detector = configurePanel.targetPanel.createSingleTargetDetector();<NEW_LINE>detectorSet.calibrator = new CalibrateMonoPlanar(<MASK><NEW_LINE>configurePanel.modelPanel.configureCalibrator(detectorSet.c...
detectorSet.detector.getLayout());
212,806
public static void main(String[] args) throws IOException {<NEW_LINE>// Process the command-line options<NEW_LINE>CommandOption.setSummary(RegressionImporter.class, "A tool for importing data suitable for linear and Poisson regression");<NEW_LINE>CommandOption.process(RegressionImporter.class, args);<NEW_LINE>ArrayList...
= new ArrayList<Pipe>();
785,816
private CorrectionsRect.Correction readCorrection(String value) {<NEW_LINE>if (value.length() == 0) {<NEW_LINE>throw new SyntaxException("Incorrect correction. Don't use empty values");<NEW_LINE>}<NEW_LINE>char symbol = value.charAt(0);<NEW_LINE>if (symbol == '-') {<NEW_LINE>return new CorrectionsRect.Correction(Intege...
), CorrectionsRect.Type.PLUS);
47,823
public boolean replaceEvent(GameEvent event, Ability source, Game game) {<NEW_LINE>Permanent permanent;<NEW_LINE>if (event instanceof EntersTheBattlefieldEvent) {<NEW_LINE>permanent = ((EntersTheBattlefieldEvent) event).getTarget();<NEW_LINE>} else {<NEW_LINE>permanent = game.getPermanent(event.getTargetId());<NEW_LINE...
getChoices().add(choice15);
1,483,303
public ValidationResult check(PageValidation pageValidation, String objectName, SpecDirectionPosition spec) throws ValidationErrorException {<NEW_LINE>PageElement mainObject = pageValidation.findPageElement(objectName);<NEW_LINE>checkAvailability(mainObject, objectName);<NEW_LINE>PageElement secondObject = pageValidati...
, spec.getObject()));
1,817,925
public static void main(String[] args) {<NEW_LINE>Map<Integer, Instance> instanceMap = new HashMap<>();<NEW_LINE>var messageManager = new RingMessageManager(instanceMap);<NEW_LINE>var instance1 = new <MASK><NEW_LINE>var instance2 = new RingInstance(messageManager, 2, 1);<NEW_LINE>var instance3 = new RingInstance(messag...
RingInstance(messageManager, 1, 1);
256,588
protected void updateContent() {<NEW_LINE>headerContainer = view.findViewById(R.id.header);<NEW_LINE>tvHeaderTitle = view.findViewById(R.id.title);<NEW_LINE>tvHeaderSubtitle = view.findViewById(R.id.subtitle);<NEW_LINE>chipsView = view.<MASK><NEW_LINE>tvDescription = view.findViewById(R.id.description);<NEW_LINE>checkB...
findViewById(R.id.selection_menu);
1,725,741
// IInteractionElement<NEW_LINE>@Override<NEW_LINE>public void onMouseClicked(int button) {<NEW_LINE>if (ref.canInteract && contains(gui.mouse) && button == 0) {<NEW_LINE>IStatementParameter param = get();<NEW_LINE>if (param == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StatementMouseClick clickEvent = new StatementM...
gui, this, this, possible);
833,768
int processPendingLoss() {<NEW_LINE>int workCount = 0;<NEW_LINE>final long changeNumber = endLossChange;<NEW_LINE>if (changeNumber != lastLossChangeNumber) {<NEW_LINE>final int termId = lossTermId;<NEW_LINE>final int termOffset = lossTermOffset;<NEW_LINE>final int length = lossLength;<NEW_LINE>MemoryAccess.acquireFence...
streamId, termId, termOffset, length);
331,617
protected byte @Nullable [] decodePayload(@NotNull final ClientConnection clientConnection, @NotNull final ByteBuf buf, final int payloadLength, @Nullable final Mqtt5PayloadFormatIndicator payloadFormatIndicator, final boolean validatePayloadFormat) {<NEW_LINE>final byte[] payload;<NEW_LINE>if (payloadLength > 0) {<NEW...
Mqtt5DisconnectReasonCode.PAYLOAD_FORMAT_INVALID, ReasonStrings.DISCONNECT_PAYLOAD_FORMAT_INVALID_PUBLISH);
634,315
protected Object createInstance(Message m) {<NEW_LINE>ProviderInfo<?> application = (ProviderInfo<?>) m.getExchange().getEndpoint().get(Application.class.getName());<NEW_LINE>Map<Class<?>, Object> mapValues = CastUtils.cast(application == null ? null : Collections.singletonMap(Application.class, application.getProvider...
.getName() + " can not be instantiated" + " due to IllegalAccessException";
1,638,073
final EnableAWSServiceAccessResult executeEnableAWSServiceAccess(EnableAWSServiceAccessRequest enableAWSServiceAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableAWSServiceAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
123,531
public void render(RenderContext ctx, Repainter repainter) {<NEW_LINE>if (expanded) {<NEW_LINE>ctx.setBackgroundColor(colors().titleBackground);<NEW_LINE>ctx.fillRect(0, 0, width, TITLE_HEIGHT);<NEW_LINE>ctx.setForegroundColor(colors().textMain);<NEW_LINE>ctx.drawIcon(arrowDown(ctx.theme), 0, 0, TITLE_HEIGHT);<NEW_LINE...
setForegroundColor(colors().panelBorder);
476,783
// create a single Genotype with GQ and DP annotations<NEW_LINE>@Override<NEW_LINE>Genotype createHomRefGenotype(final String sampleName, final boolean floorBlocks) {<NEW_LINE>final GenotypeBuilder gb = new GenotypeBuilder(sampleName, Collections.nCopies(getPloidy(), getRef()));<NEW_LINE>// clear all attributes<NEW_LIN...
GATKVCFConstants.MIN_DP_FORMAT_KEY, getMinDP());
148,545
private void assignExportedMethodsKeys(String moduleName, List<Map<String, Object>> exportedMethodsInfos) {<NEW_LINE>if (mExportedMethodsKeys.get(moduleName) == null) {<NEW_LINE>mExportedMethodsKeys.put(moduleName, new HashMap<String, Integer>());<NEW_LINE>}<NEW_LINE>if (mExportedMethodsReverseKeys.get(moduleName) == n...
"No method name in MethodInfo - " + methodInfo.toString());
583,390
public void onRequestFinish(MegaApiJava api, MegaRequest request, MegaError error) {<NEW_LINE>logDebug("onRequestFinish");<NEW_LINE>if (request.getType() == MegaRequest.TYPE_LOGIN) {<NEW_LINE>if (error.getErrorCode() != MegaError.API_OK) {<NEW_LINE>logWarning("Login failed with error code: " + error.getErrorCode());<NE...
getNodeByHandle(request.getNodeHandle());
699,755
private void writeBuffer() throws IOException {<NEW_LINE>if (0 == inBuffer) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int val = ((buffer[0] & 0x00FF) << 16) + ((buffer[1] & 0x00FF) << 8) + (buffer[2] & 0x00FF);<NEW_LINE>int c0 = <MASK><NEW_LINE>int c1 = (val >> 12) & 0x003F;<NEW_LINE>int c2 = (val >> 6) & 0x003F;<NEW_LINE...
(val >> 18) & 0x003F;
825,982
protected void refresh(VaadinRequest request) {<NEW_LINE>super.refresh(request);<NEW_LINE>boolean sessionIsAlive = true;<NEW_LINE>Connection connection = app.getConnection();<NEW_LINE>if (connection.isAuthenticated()) {<NEW_LINE>// Ping middleware session if connected<NEW_LINE>log.debug("Ping middleware session");<NEW_...
publish(new SessionHeartbeatEvent(app));
656,726
public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass revision = schema.getEClass("store", "Revision");<NEW_LINE>EClass concreteRevision = schema.getEClass("store", "ConcreteRevision");<NEW_LINE>EClass densityCollection = <MASK><NEW_LINE>EClass density = schema.createEClass("store", "Den...
schema.createEClass("store", "DensityCollection");
293,696
public static ElementSplitUtil.ElementSegment[][] doSplit(long[] elementCounts, int numSplits) {<NEW_LINE>Preconditions.checkArgument(elementCounts != null && allPositive(elementCounts), "element counts is null or contain illegal element! ");<NEW_LINE>Preconditions.checkArgument(numSplits > 0, "num splits is less than ...
= new ElementSplitUtil.ElementSegment[elementNums];
1,519,112
Path createSubpath(String path, String rawPath, Map<String, String> params) {<NEW_LINE>if (params == null) {<NEW_LINE>params = Collections.emptyMap();<NEW_LINE>}<NEW_LINE>if (absolutePath == null) {<NEW_LINE>HashMap<String, String> map = new HashMap<>(this.params.size() + params.size());<NEW_LINE>map.putAll(this.params...
= new HashMap<>(size);
1,478,909
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>if (sources[0] instanceof Geometry) {<NEW_LINE>final List<List<Double>> result = new LinkedList<>();<NEW_LINE>fina...
.x, c.y));
551,131
public CompletableFuture<HttpResponseStatus> modelChanged(Model model) {<NEW_LINE>synchronized (model.getModelName()) {<NEW_LINE>CompletableFuture<HttpResponseStatus> future = new CompletableFuture<>();<NEW_LINE>int minWorker = model.getMinWorkers();<NEW_LINE>int maxWorker = model.getMaxWorkers();<NEW_LINE>List<WorkerT...
future.complete(HttpResponseStatus.OK);
1,662,491
private static <T> ConstructorInjectionPoint<T> createConstructorInjectionPoint(ClassBinding<T> binding, Bean<T> bean, Collection<InjectionResolver> resolvers, BeanManager beanManager) {<NEW_LINE>final Class<T> bindingClass = binding.getImplementationType();<NEW_LINE>final AnnotatedType<T> annotatedType = beanManager.c...
).getBeanManager(), resolvers);
1,549,375
public List<PropertyDeclaration> buildDeclarations(CSSName cssName, List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed) {<NEW_LINE>checkValueCount(cssName, 1, values.size());<NEW_LINE>PropertyValue <MASK><NEW_LINE>checkInheritAllowed(value, inheritAllowed);<NEW_LINE>if (value.getCssValueT...
value = values.get(0);
1,631,441
public static File findTargetJavaHome(FileObject file) {<NEW_LINE>File buildDir = getBuildTargetDir(file);<NEW_LINE>if (buildDir != null) {<NEW_LINE>File candidate <MASK><NEW_LINE>if (candidate.isDirectory()) {<NEW_LINE>return candidate;<NEW_LINE>} else {<NEW_LINE>return new File(buildDir, "jdk");<NEW_LINE>}<NEW_LINE>}...
= new File(buildDir, "images/j2sdk-image");
149,027
final CreateHostResult executeCreateHost(CreateHostRequest createHostRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createHostRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,256,023
public static ListIndexTemplatesResponse unmarshall(ListIndexTemplatesResponse listIndexTemplatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listIndexTemplatesResponse.setRequestId(_ctx.stringValue("ListIndexTemplatesResponse.RequestId"));<NEW_LINE>List<ResultItem> result = new ArrayList<ResultItem>();<NEW_LINE>for ...
("ListIndexTemplatesResponse.Result[" + i + "].ilmPolicy"));
1,090,923
static void checkIfClusterNameInDataPaths(ClusterName clusterName, Path[] dataFiles) throws NodeValidationException {<NEW_LINE>final List<Path> existingPathsWithClusterName = Arrays.stream(dataFiles).map(p -> p.resolve(clusterName.value())).filter(Files::exists).collect(Collectors.toList());<NEW_LINE>if (existingPathsW...
collect(Collectors.toList());
290,165
public static Role fromJSON(JsonReader jsonReader) {<NEW_LINE>Role model;<NEW_LINE>String type = jsonReader.optString("type").orElse("");<NEW_LINE>if ("gocd".equals(type)) {<NEW_LINE>model = GoCDRoleConfigRepresenter.fromJSON<MASK><NEW_LINE>} else if ("plugin".equals(type)) {<NEW_LINE>model = PluginRoleConfigRepresente...
(jsonReader.readJsonObject("attributes"));
248,429
private UserConsentModel toConsentModel(RealmModel realm, UserConsentEntity entity) {<NEW_LINE>if (entity == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StorageId clientStorageId = null;<NEW_LINE>if (entity.getClientId() == null) {<NEW_LINE>clientStorageId = new StorageId(entity.getClientStorageProvider(), entity...
StorageId(entity.getClientId());
1,418,870
private static // private GenerateHelper helper = new GenerateHelper();<NEW_LINE>boolean configureNetbeans() {<NEW_LINE>String node = Preferences.userNodeForPackage(ResourceEditorView.class).get("netbeansInstall", null);<NEW_LINE>if (node == null) {<NEW_LINE>File f = new File("c:\\Program Files");<NEW_LINE>if (f.exists...
toLowerCase().contains("netbeans");
202,473
public ListProfileObjectsItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListProfileObjectsItem listProfileObjectsItem = new ListProfileObjectsItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
1,472,693
protected boolean handleOnDanmakuConfigChanged(DanmakuContext config, DanmakuConfigTag tag, Object[] values) {<NEW_LINE>boolean handled = false;<NEW_LINE>if (tag == null || DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN.equals(tag)) {<NEW_LINE>handled = true;<NEW_LINE>} else if (DanmakuConfigTag.DUPLICATE_MERGING_ENABLED.equa...
mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_DUPLICATE_FILTER);
371,143
private String findMainClass(IJavaProject javaProject) throws Exception {<NEW_LINE>ArrayList<IJavaElement> srcs = new ArrayList<IJavaElement>();<NEW_LINE>for (IClasspathEntry entry : javaProject.getResolvedClasspath(true)) {<NEW_LINE>if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {<NEW_LINE>for (IPackageFragme...
(IMethod) match.getElement();
1,755,550
private ObjectNode updateIntegrationResponse(OperationShape shape, Map<CorsHeader, String> corsHeaders, Set<String> deduced, ObjectNode response) {<NEW_LINE>Map<CorsHeader, String> responseHeaders = new HashMap<>(corsHeaders);<NEW_LINE>ObjectNode responseParams = response.getObjectMember(RESPONSE_PARAMETERS_KEY).orElse...
RESPONSE_PARAMETERS_KEY, builder.build());
443,216
public void prepareRuntimeVariables(Application application) {<NEW_LINE>try {<NEW_LINE>Class RuntimeVariablesClass = application.getClassLoader().loadClass("android.taobao.atlas.runtime.RuntimeVariables");<NEW_LINE>RuntimeVariablesClass.getDeclaredField("sRawClassLoader").set(RuntimeVariablesClass, <MASK><NEW_LINE>if (...
KernalBundle.class.getClassLoader());
189,076
public // lohith liberty change<NEW_LINE>void engineReloaded(Object objectSent) {<NEW_LINE>final JsMessagingEngine engine = (JsMessagingEngine) objectSent;<NEW_LINE>final String methodName = "engineReloaded";<NEW_LINE>if (TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, engine);<NEW_LINE>}<NEW_LI...
getUuid().toString());
43,907
protected Control createRadialButtons(Composite parent, ComboParameterDescriptor parameter) {<NEW_LINE>Composite buttonArea = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayoutFactory.fillDefaults().numColumns(getComboBoxLimit()).equalWidth(true).applyTo(buttonArea);<NEW_LINE>GridDataFactory.fillDefaults().grab(true,...
radialButtons.put(value, button);
441,826
public void draw() throws Exception {<NEW_LINE>node("DeployAppDeciderNode");<NEW_LINE>node("DeployAppCreateComponentNode");<NEW_LINE>node("DeployAppCreateResourceAddonNode");<NEW_LINE>node("DeployAppCreateCustomAddonNode");<NEW_LINE>node("DeployAppWaitComponentNode");<NEW_LINE>node("DeployAppWaitAddonNode");<NEW_LINE>n...
.COMPONENT_TYPE, ComponentTypeEnum.TRAIT_ADDON));
1,616,526
public FormRepresentation saveForm(String formId, FormSaveRepresentation saveRepresentation) {<NEW_LINE>String user = SecurityUtils.getCurrentUserId();<NEW_LINE>Model model = modelService.getModel(formId);<NEW_LINE>String formKey = saveRepresentation.getFormRepresentation().getKey();<NEW_LINE>ModelKeyRepresentation mod...
FormRepresentation result = new FormRepresentation(model);
739,483
private Object toJson(org.apache.calcite.rel.hint.RelHint relHint) {<NEW_LINE>final List<Integer> inheritPath = (List) jsonBuilder.list();<NEW_LINE>inheritPath.addAll(relHint.inheritPath);<NEW_LINE>final String hintName = relHint.hintName;<NEW_LINE>final List<String> listOptions = (List) jsonBuilder.list();<NEW_LINE>li...
put("kvOptions", (kvOptions));
1,261,800
public static void updateWidget(Context context, AppWidgetManager manager, Song song, int state) {<NEW_LINE>if (!sEnabled)<NEW_LINE>return;<NEW_LINE>RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.four_square_widget);<NEW_LINE>boolean playing = (state & PlaybackService.FLAG_PLAYING) != 0;<NEW_LIN...
R.id.play_pause, playResource);
929,920
public String tableRefToSql() {<NEW_LINE>String aliasSql = null;<NEW_LINE>String alias = getExplicitAlias();<NEW_LINE>if (alias != null)<NEW_LINE>aliasSql = ToSqlUtils.getIdentSql(alias);<NEW_LINE>// TODO(zc):<NEW_LINE>// List<String> path = rawPath_;<NEW_LINE>// if (resolvedPath_ != null) path = resolvedPath_.getFully...
) ? " " + aliasSql : "");
1,636,318
static void ensurePatternsAllowSuffix(Map<String, Feature> features) {<NEW_LINE>String suffixPattern = "*" + UPGRADED_INDEX_SUFFIX;<NEW_LINE>final List<String> descriptorsWithNoRoomForSuffix = features.entrySet().stream().flatMap(feature -> // The below filter & map are inside the enclosing flapMap so we have access to...
())).toList();