idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
935,148
public StartSessionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartSessionResult startSessionResult = new StartSessionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
1,109,464
public void write(FloatBuffer value, String name, FloatBuffer defVal) throws IOException {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element el = appendElement(name);<NEW_LINE>el.setAttribute("size", String.valueOf<MASK><NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>int pos = value...
(value.limit()));
20,504
void copy(ConstraintWidgetContainer src, ConstraintWidgetContainer dest) {<NEW_LINE>ArrayList<ConstraintWidget> children = src.getChildren();<NEW_LINE>HashMap<ConstraintWidget, ConstraintWidget> map = new HashMap<>();<NEW_LINE>map.put(src, dest);<NEW_LINE>dest.getChildren().clear();<NEW_LINE><MASK><NEW_LINE>for (Constr...
dest.copy(src, map);
740,555
final DefineExpressionResult executeDefineExpression(DefineExpressionRequest defineExpressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(defineExpressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudSearch");
1,810,499
public CompletableFuture<V> put(K key, V value) {<NEW_LINE>MapUpdate<K, V> update = updates.get(key);<NEW_LINE>if (update != null && update.type() != Type.REMOVE_IF_VERSION_MATCH) {<NEW_LINE>updates.put(key, MapUpdate.<K, V>builder().withType(update.type()).withKey(key).withValue(value).withVersion(update.version()).bu...
()).build());
1,648,636
protected Map<String, Object> convertMap(Map<String, Object> obj, long features, Set<String> ignoreProperty) {<NEW_LINE>if (ignoreProperty.isEmpty()) {<NEW_LINE>return obj;<NEW_LINE>}<NEW_LINE>boolean cover = ToString.Feature.hasFeature(features, coverIgnoreProperty);<NEW_LINE>boolean isNullPropertyToEmpty = ToString.F...
value = coverStringConvert.apply(value);
1,114,875
final GetEntityResult executeGetEntity(GetEntityRequest getEntityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEntityRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetEntityRequest> request = null;<NEW_LINE>Response<GetEntit...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,752,888
public IRubyObject nsWait(ThreadContext context, IRubyObject[] args) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>if (args.length > 1) {<NEW_LINE>throw runtime.newArgumentError(args.length, 1);<NEW_LINE>}<NEW_LINE>Double timeout = null;<NEW_LINE>if (args.length > 0 && !args[0].isNil()) {<NEW_LINE>timeout = args[...
.convertToFloat().getDoubleValue();
1,058,064
private boolean addJVMProxyOptions(EditableProperties prop, String proxyHost, String proxyPort) {<NEW_LINE>String jvmOptions = prop.getProperty(AppClientProjectProperties.RUN_JVM_ARGS);<NEW_LINE>boolean modif = false;<NEW_LINE>// NOI18N<NEW_LINE>String localHosts = "localhost";<NEW_LINE>try {<NEW_LINE>localHosts = Inet...
+= ' ' + PROXY_HOST_OPTION + '=' + proxyHost;
1,037,213
public void load() {<NEW_LINE>try {<NEW_LINE>FileExportSettings settings = FileExportSettings.load();<NEW_LINE>if (settings != null) {<NEW_LINE>Path path = settings.getFilesRootDirectory();<NEW_LINE>if (path != null) {<NEW_LINE>tbRootDirectory.setText(path.toString());<NEW_LINE>}<NEW_LINE>path = settings.getReportsRoot...
"Unable to load rule settings: {0}", ex.getMessage());
1,020,847
final CreateEndpointAccessResult executeCreateEndpointAccess(CreateEndpointAccessRequest createEndpointAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEndpointAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,791,600
private Registries insertAllChecked(List<NamedToken> tokens, Registries registries) {<NEW_LINE>MutableObjectIntMap<String> uniquePublicNames = new ObjectIntHashMap<>();<NEW_LINE>MutableObjectIntMap<String> uniqueInternalNames = new ObjectIntHashMap<>();<NEW_LINE>MutableIntSet uniqueIds = new IntHashSet();<NEW_LINE>for ...
checkNameUniqueness(uniquePublicNames, token, registries);
905,527
public static CodegenExpression codegenCoerce(CodegenExpression expression, EPType exprType, EPType targetType, boolean alwaysCast) {<NEW_LINE>if (targetType == null || targetType == EPTypeNull.INSTANCE || exprType == null || exprType == EPTypeNull.INSTANCE) {<NEW_LINE>return expression;<NEW_LINE>}<NEW_LINE>EPTypeClass...
coercer.coerceCodegen(expression, exprClass);
326,280
public void save(Map<String, Object> optionMap) {<NEW_LINE>if (CollectionUtils.isEmpty(optionMap)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Option> optionKeyMap = ServiceUtils.convertToMap(listAll(), Option::getKey);<NEW_LINE>List<Option> <MASK><NEW_LINE>List<Option> optionsToUpdate = new LinkedList<>();<NEW_...
optionsToCreate = new LinkedList<>();
672,513
protected FetchResult fetch(Git git, String label) {<NEW_LINE>FetchCommand fetch = git.fetch();<NEW_LINE>fetch.setRemote("origin");<NEW_LINE>fetch.setTagOpt(TagOpt.FETCH_TAGS);<NEW_LINE>fetch.setRemoveDeletedRefs(this.deleteUntrackedBranches);<NEW_LINE>if (this.refreshRate > 0) {<NEW_LINE>this.setLastRefresh(System.cur...
getString("remote", "origin", "url");
450,797
public MethodDeclaration createStaticConstructor(AccessLevel level, String name, EclipseNode type, Collection<EclipseNode> fields, ASTNode source) {<NEW_LINE>int pS = source.sourceStart, pE = source.sourceEnd;<NEW_LINE>long p = (long) pS << 32 | pE;<NEW_LINE>MethodDeclaration constructor = new MethodDeclaration(((Compi...
(TypeDeclaration) type.get();
1,671,670
protected ServerHello generate13HelloRetryRequest(ClientHello clientHello) throws IOException {<NEW_LINE>// TODO[tls13] In future there might be other reasons for a HelloRetryRequest.<NEW_LINE>if (retryGroup < 0) {<NEW_LINE>throw new TlsFatalAlert(AlertDescription.internal_error);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Pr...
SecurityParameters securityParameters = tlsServerContext.getSecurityParametersHandshake();
1,366,616
private void addSourceJobDataPoint(final MetricData datapoint) {<NEW_LINE>final String sourceJobId = datapoint.getJobId();<NEW_LINE>final <MASK><NEW_LINE>String sourceWorkerKey = sourceJobId + ":" + workerIndex;<NEW_LINE>WorkerMetrics workerMetrics = sourceJobWorkersMap.get(sourceWorkerKey);<NEW_LINE>if (workerMetrics ...
int workerIndex = datapoint.getWorkerIndex();
912,198
public static long parseLong(final CharSequence s) {<NEW_LINE>if (s == null)<NEW_LINE>throw new NumberFormatException("Null string");<NEW_LINE>// Check for a sign.<NEW_LINE>long num = 0;<NEW_LINE>long sign = -1;<NEW_LINE>final <MASK><NEW_LINE>final char ch = s.charAt(0);<NEW_LINE>if (ch == '-') {<NEW_LINE>if (len == 1)...
int len = s.length();
541,918
public static DescribeIPv6TranslatorsResponse unmarshall(DescribeIPv6TranslatorsResponse describeIPv6TranslatorsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIPv6TranslatorsResponse.setRequestId(_ctx.stringValue("DescribeIPv6TranslatorsResponse.RequestId"));<NEW_LINE>describeIPv6TranslatorsResponse.setPageSize...
("DescribeIPv6TranslatorsResponse.Ipv6Translators[" + i + "].EndTime"));
230,731
public String prettyPrint() {<NEW_LINE>StringBuilder sb = new StringBuilder(shortSummary());<NEW_LINE>sb.append('\n');<NEW_LINE>if (!this.keepTaskList) {<NEW_LINE>sb.append("No task info kept");<NEW_LINE>} else {<NEW_LINE>sb.append("---------------------------------------------\n");<NEW_LINE>sb.append("ns % ...
NumberFormat nf = NumberFormat.getNumberInstance();
529,466
public static void parse(ArrayList<SSTNode> formatStringParts, String text, boolean isRawString, int partOffsetInSource, int textOffsetInSource, Source source, FStringExprParser exprParser, ParserErrorCallback errorCallback, PythonSSTNodeFactory nodeFactory) {<NEW_LINE>int estimatedTokensCount = 1;<NEW_LINE>for (int i ...
= new ArrayList<>(estimatedTokensCount);
1,356,633
private ExportResult<ContactsModelWrapper> doExport(TokensAndUrlAuthData authData, String url) {<NEW_LINE>Request.Builder graphReqBuilder = new Request.Builder().url(url);<NEW_LINE>graphReqBuilder.header("Authorization", "Bearer " + authData.getAccessToken());<NEW_LINE>try (Response graphResponse = client.newCall(graph...
String(body.bytes());
1,834,496
public static void main(String[] args) {<NEW_LINE>TokenCredential tokenCredential = <MASK><NEW_LINE>LogsQueryClient logsQueryClient = new LogsQueryClientBuilder().credential(tokenCredential).httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)).buildClient();<NEW_LINE>LogsQueryResult que...
new DefaultAzureCredentialBuilder().build();
1,403,389
final GetRuleResult executeGetRule(GetRuleRequest getRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetRuleRequest> request = null;<NEW_LINE>Response<GetRuleResult> respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
128,612
public CodegenMethod make(CodegenMethodScope parent, CodegenClassScope classScope) {<NEW_LINE>int size = filterTypes.size() + arrayEventTypes.size();<NEW_LINE>CodegenMethod method = parent.makeChild(EventBean.EPTYPEARRAY, this.getClass(), classScope).addParam(MatchedEventMap.EPTYPE, "mem");<NEW_LINE>if (size == 0 || (s...
ref("mem"), "getMatchingEvents"));
1,451,991
private void handleExecException(Exception execException) throws SQLException {<NEW_LINE>// TODO (bullman): This is terrible. There has to be a better way.<NEW_LINE>log.debug("Handling Exception from Statement method.", execException);<NEW_LINE>Connection conn = delegate.getConnection(<MASK><NEW_LINE>if (conn.isClosed(...
).unwrap(Connection.class);
1,769,677
public static void main(String[] args) {<NEW_LINE>if (args.length < 3) {<NEW_LINE>System.out.println("paramters not specified.");<NEW_LINE>System.out.println("H2Control <h2 command> <h2 host> <h2 port> <h2 home> <redirect output>");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>H2Control h2Control = null;<NEW_LINE>if (a...
1], args[2]);
1,062,170
public CodegenExpression evaluateCodegen(CodegenMethodScope parent, ExprSubselectEvalMatchSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>if (subselect.getEvaluationType() == EPTypeNull.INSTANCE) {<NEW_LINE>return constantNull();<NEW_LINE>}<NEW_LINE>CodegenExpressionField eventToPublic = TableDeployTimeResolve...
EPTYPE, "filtered", constantNull());
601,976
public final <K> Map<K, ?> toMap(Supplier<? extends K> keySupplier1, Supplier<? extends K> keySupplier2, Supplier<? extends K> keySupplier3, Supplier<? extends K> keySupplier4, Supplier<? extends K> keySupplier5, Supplier<? extends K> keySupplier6, Supplier<? extends K> keySupplier7, Supplier<? extends K> keySupplier8,...
keySupplier8.get(), v8);
781,308
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.group_edit);<NEW_LINE>setTitle(R.string.add_group_title);<NEW_LINE>ImageButton iconButton = (ImageButton) findViewById(R.id.icon_button);<NEW_LINE>iconButton.setOnClickListener(new View.OnC...
intent.putExtra(KEY_NAME, name);
17,378
public static QueryMsConfigResourcesResponse unmarshall(QueryMsConfigResourcesResponse queryMsConfigResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMsConfigResourcesResponse.setRequestId(_ctx.stringValue("QueryMsConfigResourcesResponse.RequestId"));<NEW_LINE>queryMsConfigResourcesResponse.setResultCode(_ct...
(_ctx.longValue("QueryMsConfigResourcesResponse.PageNum"));
754,542
Intent createTwitterIntent() {<NEW_LINE>final Intent intent = new Intent(Intent.ACTION_SEND);<NEW_LINE>final StringBuilder builder = new StringBuilder();<NEW_LINE>if (!TextUtils.isEmpty(this.text)) {<NEW_LINE>builder.append(this.text);<NEW_LINE>}<NEW_LINE>if (this.uri != null) {<NEW_LINE>if (builder.length() > 0) {<NEW...
EXTRA_TEXT, builder.toString());
199,804
public static ListDataStreamsResponse unmarshall(ListDataStreamsResponse listDataStreamsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataStreamsResponse.setRequestId(_ctx.stringValue("ListDataStreamsResponse.RequestId"));<NEW_LINE>Headers headers = new Headers();<NEW_LINE>headers.setXManagedCount(_ctx.integerValu...
= new ArrayList<ResultItem>();
178,393
private TipoDado geraTipoResultante() {<NEW_LINE>TipoDado tipoOpEsquerdo = operandoEsquerdo.getTipoResultante();<NEW_LINE>TipoDado tipoOpDireito = operandoDireito.getTipoResultante();<NEW_LINE>if (tipoOpEsquerdo != tipoOpDireito) {<NEW_LINE>try {<NEW_LINE>return TabelaCompatibilidadeTiposPortugol.INSTANCE.obterTipoReto...
Level.SEVERE, null, ex);
20,669
private void recursivePush(IRubyObject list, IRubyObject obj, IRubyObject paired_obj) {<NEW_LINE>IRubyObject pair_list;<NEW_LINE>Ruby runtime = this.runtime;<NEW_LINE>final ThreadContext context = runtime.getCurrentContext();<NEW_LINE>if (paired_obj == null) {<NEW_LINE>((RubyHash) list).op_aset(context, obj, runtime.ge...
op_aset(context, obj, pair_list);
740,619
public void addAndConsumeAdvancedQueryClauses(ExtendedLuceneClauseBuilder builder, String theResourceType, SearchParameterMap theParams, ISearchParamRegistry theSearchParamRegistry) {<NEW_LINE>// copy the keys to avoid concurrent modification error<NEW_LINE>ArrayList<String> paramNames = Lists.newArrayList(theParams.ke...
removeByNameAndModifier(nextParam, Constants.PARAMQUALIFIER_STRING_EXACT);
1,331,318
public void begin() throws SIIncorrectCallException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "begin");<NEW_LINE>// Are we currently in use? do we have work<NEW_LINE>// we still need to commit?<NEW_LINE>if (_state == TransactionState.STATE_ACTIVE && _work...
exit(this, tc, "begin");
1,764,338
public void runRat() {<NEW_LINE>ReportConfiguration reportConfiguration = new ReportConfiguration();<NEW_LINE>reportConfiguration.setAddingLicenses(true);<NEW_LINE>List<IHeaderMatcher> matchers = new ArrayList<>();<NEW_LINE>matchers.add(Defaults.createDefaultMatcher());<NEW_LINE>// BSD 4-clause stuff (is disallowed bel...
("ALLZ4", "Apache LZ4-Java", "Copyright 2020 Adrien Grand and the lz4-java contributors"));
869,246
final ApplySecurityGroupsToClientVpnTargetNetworkResult executeApplySecurityGroupsToClientVpnTargetNetwork(ApplySecurityGroupsToClientVpnTargetNetworkRequest applySecurityGroupsToClientVpnTargetNetworkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(applySecurityGroupsToClientVpnTargetNetw...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,630,370
public void calibrateZ(ReferenceNozzleTip nt) throws Exception {<NEW_LINE>if (nt != getCalibrationNozzleTip()) {<NEW_LINE>throw new Exception("Nozzle " + getName() + " has not nozzle tip " + nt.getName() + " loaded.");<NEW_LINE>}<NEW_LINE>if (nt == null) {<NEW_LINE>throw new Exception("Nozzle " + getName() + " has no n...
getName() + " Z calibration offset " + offsetZ);
589,525
final UpdateJobPriorityResult executeUpdateJobPriority(UpdateJobPriorityRequest updateJobPriorityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobPriorityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
updateJobPriorityRequest.getAccountId(), "AccountId");
1,522,314
private void emptyCourtesyMeasure() {<NEW_LINE>MeasureStack lastStack = system.getLastStack();<NEW_LINE>Measure topMeasure = lastStack.getFirstMeasure();<NEW_LINE>// Check it is a short measure with no ending barline<NEW_LINE>if (topMeasure.getRightPartBarline() != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int minSt...
).toPixels(constants.minStandardWidth);
1,717,331
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(<MASK><NEW_LINE>if ((state & PlaybackService.FLAG_NO_MEDIA) != 0) {<NEW_LINE>views.setViewVisibility(R.id.play_p...
), R.layout.four_long_widget);
1,102,437
public ArtifactConfigOutput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ArtifactConfigOutput artifactConfigOutput = new ArtifactConfigOutput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
1,636,916
public void registerMetrics(MeterRegistry registry) {<NEW_LINE>Gauge.builder(METRICS_GC_STARTED, metricValues, v -> v.getLastCollect().getStarted()).description("Timestamp GC file collection cycle started").register(registry);<NEW_LINE>Gauge.builder(METRICS_GC_FINISHED, metricValues, v -> v.getLastCollect().getFinished...
("Timestamp GC WAL collection cycle started").register(registry);
1,735,290
public ApiResponse<ExtendedUser> usersPostWithHttpInfo(CreateUserRequest createUserRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = createUserRequest;<NEW_LINE>// verify the required parameter 'createUserRequest' is set<NEW_LINE>if (createUserRequest == null) {<NEW_LINE>throw new ApiException(400, "Mis...
= new String[] { "oauth2" };
1,411,481
public void marshall(ControlMappingSource controlMappingSource, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (controlMappingSource == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(controlMappingSource.get...
controlMappingSource.getSourceDescription(), SOURCEDESCRIPTION_BINDING);
1,280,810
final ClaimDevicesByClaimCodeResult executeClaimDevicesByClaimCode(ClaimDevicesByClaimCodeRequest claimDevicesByClaimCodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(claimDevicesByClaimCodeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
402,630
protected void appendDataWithoutCache(Key key, @Nonnull final BufferExposingByteArrayOutputStream bytes) {<NEW_LINE>myEnumerator.lockStorage();<NEW_LINE>try {<NEW_LINE>long previousRecord;<NEW_LINE>final int id;<NEW_LINE>if (myDirectlyStoreLongFileOffsetMode) {<NEW_LINE>previousRecord = ((PersistentBTreeEnumerator<Key>...
bytes.toByteArraySequence(), previousRecord);
918,892
public InstanceInfo instanceConfig() {<NEW_LINE>String namespace = properties.getNamespace();<NEW_LINE>String itemId = properties.getItemId();<NEW_LINE>String port = environment.getProperty("server.port", "8080");<NEW_LINE>String applicationName = environment.getProperty("spring.dynamic.thread-pool.item-id");<NEW_LINE>...
append(CLIENT_IDENTIFICATION_VALUE).toString();
483,423
public void bindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) {<NEW_LINE>if (viewHolder instanceof ArticleTravelVH) {<NEW_LINE>final ArticleTravelVH holder = (ArticleTravelVH) viewHolder;<NEW_LINE>final String url = TravelArticle.getImageUrl(article.getImageTitle(), false);<NEW_LINE>Boolean loaded = picasso.i...
), article.getLang());
80,536
public void init() {<NEW_LINE>DefaultDateMetadata disabled = DefaultDateMetadata.builder().disabled(true).styleClass("tst-disabled").build();<NEW_LINE>DefaultDateMetadata begin = DefaultDateMetadata.builder().styleClass("tst-begin").build();<NEW_LINE>DefaultDateMetadata end = DefaultDateMetadata.builder().styleClass("t...
.plusDays(2), disabled);
1,520,485
private List<Cctop901991V> createCctop901991VList(final List<EDICctop901991VType> xmlCctop901991VList, final DecimalFormat decimalFormat) {<NEW_LINE>final List<Cctop901991V> cctop901991VList = new ArrayList<>();<NEW_LINE>for (final EDICctop901991VType xmlCctop901991V : xmlCctop901991VList) {<NEW_LINE>final Cctop901991V...
add(xmlCctop901991V.getTaxBaseAmt());
1,333,526
public static void main(String[] args) {<NEW_LINE>int[] array = { -4, -1, 1, 2, 2, 2, 2, 2, 2, 2, 4, 5 };<NEW_LINE>Exercise23_BinarySearchWithDuplicates exercise23_binarySearchWithDuplicates = new Exercise23_BinarySearchWithDuplicates();<NEW_LINE>// First rank tests<NEW_LINE>int firstRankElement1 = exercise23_binarySea...
exercise23_binarySearchWithDuplicates.firstRank(array, 5);
25,636
public DeviceMinutes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeviceMinutes deviceMinutes = new DeviceMinutes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
588,689
void handleTimeout() throws VpnNetworkException {<NEW_LINE>if (!this.enabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Timber.d("handleTimeout: Milliseconds elapsed between last receive and sent: %dms", (this<MASK><NEW_LINE>// Receive really timed out<NEW_LINE>if (this.lastPacketReceived < this.lastPacketSent && this.las...
.lastPacketReceived - this.lastPacketSent));
267,869
public void zoomToBoundingBox(final BoundingBoxE6 boundingBox) {<NEW_LINE>final BoundingBoxE6 currentBox = getBoundingBox();<NEW_LINE>// Calculated required zoom based on latitude span<NEW_LINE>final double maxZoomLatitudeSpan = mZoomLevel == getMaxZoomLevel() ? currentBox.getLatitudeSpanE6() : currentBox.getLatitudeSp...
2, getMaxZoomLevel() - mZoomLevel);
1,276,567
public List<OrderAttachmentRow> buildRowsFor(@NonNull final AttachmentEntry attachmentEntry) {<NEW_LINE>final TableRecordReference purchaseOrderRecordRef = TableRecordReference.of(I_C_Order.<MASK><NEW_LINE>final Set<TableRecordReference> matchingRecordReferences = attachmentEntry.getLinkedRecords().stream().filter(tabl...
Table_Name, purchaseOrderId.getRepoId());
1,519,007
private void refreshKeys() {<NEW_LINE>List<HudsonJob> jobs = new ArrayList<HudsonJob>();<NEW_LINE>HudsonView view = instance.getPrimaryView();<NEW_LINE>String selectedView = instance.prefs().get(SELECTED_VIEW, null);<NEW_LINE>if (selectedView != null) {<NEW_LINE>for (HudsonView v : instance.getViews()) {<NEW_LINE>if (v...
, HudsonFolder>createFirst(job));
563,959
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (additionalProperties.containsKey("modelNamePrefix")) {<NEW_LINE>supportingFiles.clear();<NEW_LINE>supportingFiles.add(new SupportingFile("helpers-header.mustache", sourceFolder + MODEL_DIR, modelNamePrefix + "Helpers.h"));<NEW_LINE>supportingFiles.a...
+ MODEL_DIR, modelNamePrefix + "Enum.h"));
1,189,206
public void check(Database database, DatabaseChangeLog changeLog, ChangeSet changeSet, ChangeExecListener changeExecListener) throws PreconditionFailedException, PreconditionErrorException {<NEW_LINE>CustomPrecondition customPrecondition;<NEW_LINE>try {<NEW_LINE>// System.out.println(classLoader.toString());<NEW_LINE>t...
" on custom precondition " + className, changeLog, this);
96,206
void propagate_parentage_alternate_(Treap aet, int treeNode, int edge, int leftEdge, int twinEdge, int edgeChain, int edgeChainParent, int twinHalfEdgeChain) {<NEW_LINE>// Now do specific sweep calculations<NEW_LINE>// This one is done when we are doing a topological operation.<NEW_LINE><MASK><NEW_LINE>int geometryID =...
int geometry = m_shape.getFirstGeometry();
1,514,976
public static void processAnnotation(LoggingFramework framework, AnnotationValues<? extends java.lang.annotation.Annotation> annotation, Annotation source, EclipseNode annotationNode) {<NEW_LINE>EclipseNode owner = annotationNode.up();<NEW_LINE>switch(owner.getKind()) {<NEW_LINE>case TYPE:<NEW_LINE>IdentifierName logFi...
.readConfiguration(ConfigurationKeys.LOG_ANY_FIELD_IS_STATIC));
564,383
public static void main(String[] args) throws IOException {<NEW_LINE>Cmd cmd = MainUtils.parseArguments(args, FLAGS);<NEW_LINE>if (cmd.argsLength() < 2) {<NEW_LINE>MainUtils.printHelpArgs(FLAGS, new String[] { "input.wav", "output.wav" });<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>WavFile wavFile = new WavInput.Wav...
filterTransfer(source, filter, sink);
1,585,872
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>String verifier = params[0].getString(PARAM_VERIFIER);<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>HttpsURLConnection httpsURLConnection = (HttpsURLConnection) url.openConnection();<NEW_LINE>httpsURLConnection.setRequestMeth...
URL url = new URL(mTokenURLString);
1,808,293
public void visitMethodInsn(int opcode, String owner, String name, String descriptor, boolean isInterface) {<NEW_LINE>super.visitMethodInsn(opcode, owner, name, descriptor, isInterface);<NEW_LINE>// if current instruction is a call to ASM ClassWriter.toByteArray() insert call to<NEW_LINE>// our lambda transformer<NEW_L...
), "transform", "([BLjava/lang/String;Ljava/lang/Class;)[B", false);
1,223,814
public String renderMessage(ChatInstance chat, ChatMessage message) {<NEW_LINE>List<StyleRange> ranges = new ArrayList<>();<NEW_LINE>String msg = BuddyPluginViewBetaChat.renderMessage(null, chat, message, message.getMessage(), message.getMessageType(), 0, ranges, null, null, null, null);<NEW_LINE>StringBuilder new_msg ...
substring(start, start + length);
381,388
final ResumeSessionResult executeResumeSession(ResumeSessionRequest resumeSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resumeSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
341,742
public LibvirtVMDef createVMFromSpec(final VirtualMachineTO vmTO) {<NEW_LINE>s_logger.debug(String.format("Creating VM from specifications [%s]", vmTO.toString()));<NEW_LINE>LibvirtVMDef vm = new LibvirtVMDef();<NEW_LINE>vm.setDomainName(vmTO.getName());<NEW_LINE>String uuid = vmTO.getUuid();<NEW_LINE>uuid = getUuid(uu...
, vmTO.toString()));
1,348,433
public void mergeKnownValuesWith(IsNullValueFrame otherFrame) {<NEW_LINE>assert trackValueNumbers;<NEW_LINE>if (IsNullValueAnalysis.DEBUG) {<NEW_LINE><MASK><NEW_LINE>System.out.println(" " + this);<NEW_LINE>System.out.println(" with" + otherFrame);<NEW_LINE>}<NEW_LINE>Map<ValueNumber, IsNullValue> replaceMap = new ...
System.out.println("merge");
1,615,500
final UpdateSubnetChangeProtectionResult executeUpdateSubnetChangeProtection(UpdateSubnetChangeProtectionRequest updateSubnetChangeProtectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSubnetChangeProtectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
(super.beforeMarshalling(updateSubnetChangeProtectionRequest));
1,542,792
public void registerMap() {<NEW_LINE>// 0 - Particle ID<NEW_LINE>map(Type.INT);<NEW_LINE>// 1 - Long Distance<NEW_LINE>map(Type.BOOLEAN);<NEW_LINE>// 2 - X<NEW_LINE>map(Type.FLOAT, Type.DOUBLE);<NEW_LINE>// 3 - Y<NEW_LINE>map(Type.FLOAT, Type.DOUBLE);<NEW_LINE>// 4 - Z<NEW_LINE>map(Type.FLOAT, Type.DOUBLE);<NEW_LINE>//...
.passthrough(Type.FLAT_VAR_INT_ITEM));
325,511
public ResetPersonalPINResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResetPersonalPINResult resetPersonalPINResult = new ResetPersonalPINResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
().unmarshall(context));
1,819,360
public int[] findMatchingBlock(int offset, boolean simpleSearch) throws BadLocationException {<NEW_LINE>int[] r_value = null;<NEW_LINE>TokenItem token = getItemAtOrBefore((offset < getDocument().getLength()) ? offset + 1 : offset);<NEW_LINE>if (token != null) {<NEW_LINE>// do we need to match jsp comment?<NEW_LINE>if (...
super.findMatchingBlock(offset, simpleSearch);
889,281
private static FunctionEx<Iterable<Object[]>, Traverser<Object[]>> joinFn(@Nonnull JetJoinInfo joinInfo, @Nonnull IMap<Object, Object> map, @Nonnull KvRowProjector.Supplier rightRowProjectorSupplier, @Nonnull ExpressionEvalContext context) {<NEW_LINE>Projection<Entry<Object, Object>, Object[]> projection = QueryUtil.to...
rows = new ArrayList<>();
1,445,912
public ScenarioRuntime handleUpload(JobChunk<ScenarioRuntime> chunk, File upload) {<NEW_LINE>ScenarioRuntime runtime = chunk.getValue();<NEW_LINE>File jsonFile = JobUtils.getFirstFileMatching(upload, n -> n<MASK><NEW_LINE>if (jsonFile == null) {<NEW_LINE>logger.warn("no karate json found in job executor result");<NEW_L...
.endsWith(Constants.KARATE_JSON_SUFFIX));
1,127,399
public SRenderEnginePluginConfiguration convertToSObject(RenderEnginePluginConfiguration input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SRenderEnginePluginConfiguration result = new SRenderEnginePluginConfiguration();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(inpu...
1 : settingsVal.getOid());
216,679
private Expr rewriteWhereClause(Expr expr, CompoundPredicate predicate, List<PartitionRange.PartitionSingle> newRangeList) {<NEW_LINE>if (expr == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!(expr instanceof CompoundPredicate)) {<NEW_LINE>return expr;<NEW_LINE>}<NEW_LINE>if (expr.equals(predicate)) {<NEW_LINE...
(i), predicate, newRangeList);
757,688
public AgentConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AgentConfiguration agentConfiguration = new AgentConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
888,829
private void addV3OnionServicesToTorrc(StringBuffer torrc, ContentResolver contentResolver) {<NEW_LINE>try {<NEW_LINE>var onionServices = contentResolver.query(V3_ONION_SERVICES_CONTENT_URI, V3_ONION_SERVICE_PROJECTION, OnionService.ENABLED + "=1", null, null);<NEW_LINE>if (onionServices != null) {<NEW_LINE>while (onio...
TAG, e.getLocalizedMessage());
1,688,557
public List<CallLogEntry> readCallLog() {<NEW_LINE>if (instrumentation.getTargetContext().checkCallingOrSelfPermission(Manifest.permission.READ_CALL_LOG) == PackageManager.PERMISSION_GRANTED) {<NEW_LINE>List<CallLogEntry> logs = new ArrayList<CallLogEntry>();<NEW_LINE>Cursor managedCursor = instrumentation.getTargetCon...
callType = managedCursor.getString(type);
991,917
public RecommendedOptionProjectedMetric unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecommendedOptionProjectedMetric recommendedOptionProjectedMetric = new RecommendedOptionProjectedMetric();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
)).unmarshall(context));
514,621
private void patchTimerImplementation() {<NEW_LINE>SootClass sc = Scene.v().getSootClassUnsafe("java.util.Timer");<NEW_LINE>if (sc == null || sc.resolvingLevel() < SootClass.SIGNATURES)<NEW_LINE>return;<NEW_LINE>sc.setLibraryClass();<NEW_LINE>SootMethod smSchedule1 = sc.getMethodUnsafe("void schedule(java.util.TimerTas...
.addTag(new FlowDroidEssentialMethodTag());
1,032,224
protected void instanceCallbackInfo(final Callback callback, String id, String desc, boolean store) {<NEW_LINE>this.lastId = id;<NEW_LINE>this.lastDesc = desc;<NEW_LINE>this.callbackInfoVar = callback.marshalVar();<NEW_LINE>this.callbackInfoClass = callback.target.getCallbackInfoClass();<NEW_LINE>// If we were going to...
, true, !store, head);
759,818
public void updateCommandAttributes(Command cmd, IFactory factory) {<NEW_LINE>parser().updateSeparator(interpolator.interpolate(cmd.separator()));<NEW_LINE>updateExitCodeOnSuccess(cmd.exitCodeOnSuccess());<NEW_LINE>updateExitCodeOnUsageHelp(cmd.exitCodeOnUsageHelp());<NEW_LINE>updateExitCodeOnVersionHelp(cmd.exitCodeOn...
updateAddMethodSubcommands(cmd.addMethodSubcommands());
1,190,956
private void generateMovements() {<NEW_LINE>log.info("DD_Order_ID=" + m_DD_Order_ID);<NEW_LINE>log.info("MovementDate" + m_MovementDate);<NEW_LINE>String trxName = Trx.createTrxName("IOG");<NEW_LINE>// trx needs to be committed too<NEW_LINE>Trx trx = Trx.get(trxName, true);<NEW_LINE>// prevents from being called twice<...
Properties m_ctx = Env.getCtx();
1,110,033
public Expr apply(Expr expr, Analyzer analyzer, ExprRewriter.ClauseType clauseType) throws AnalysisException {<NEW_LINE>SlotRef queryColumnSlotRef;<NEW_LINE>Column mvColumn;<NEW_LINE>// meet the condition<NEW_LINE>if (!(expr instanceof FunctionCallExpr)) {<NEW_LINE>return expr;<NEW_LINE>}<NEW_LINE>FunctionCallExpr fnEx...
SlotRef) castExpr.getChild(0);
490,388
public void init() throws ServletException {<NEW_LINE>format = getServletConfig().getInitParameter("outputFormat");<NEW_LINE>if (format == null || format.trim().isEmpty()) {<NEW_LINE>throw new ServletException("Invalid outputFormat setting.");<NEW_LINE>}<NEW_LINE>String spacingStr = getServletConfig().getInitParameter(...
ners.put(classifier, model);
1,248,656
public static byte[] digest(char[] plainBytes, byte[] salt, String algorithm, int iteration, int length) throws InvalidPasswordCipherException {<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.fine("algorithm : " + algorithm + " iteration : " + iteration);<NEW_LINE>logger.fine("input length: " + plainByte...
= System.nanoTime() - begin;
1,074,711
final DescribeJobResult executeDescribeJob(DescribeJobRequest describeJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
481,747
private static void addWebXmlOAuthArtifacts(FileObject ddFo, String parentClassName, String packageName) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>String[] servletNames = new String[] { "OAuthLoginServlet", "OAuthCallbackServlet" };<NEW_LINE>// NOI18N<NEW_LINE>String[] urlPatterns = new String[] { "/OAuthLogin",...
getDefault().getDDRoot(ddFo);
560,312
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>CommonLayoutParams.adjustChildrenLayoutParams(this, widthMeasureSpec, heightMeasureSpec);<NEW_LINE>int measureWidth = 0;<NEW_LINE>int measureHeight = 0;<NEW_LINE>int width = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int widthMode = M...
Math.max(measureHeight, tempHeight);
1,777,141
private void fill(Block block, BlockResult result) {<NEW_LINE>Metric metric = profiler.start(Profiler.PROFILING_TYPE.FILLING_EXECUTED_BLOCK);<NEW_LINE>BlockHeader header = block.getHeader();<NEW_LINE>block.setTransactionsList(result.getExecutedTransactions());<NEW_LINE>boolean isRskip126Enabled = activationConfig.isAct...
RSKIP126, block.getNumber());
447,814
protected void replaceStructureBlock(StructureBlockInfo info, Level world, BlockPos actualPos, boolean mirrored, Direction clickDirection, Vec3i offsetFromMaster) {<NEW_LINE>BlockState state = baseState.get();<NEW_LINE>if (!offsetFromMaster.equals(Vec3i.ZERO))<NEW_LINE>state = state.<MASK><NEW_LINE>world.setBlockAndUpd...
setValue(IEProperties.MULTIBLOCKSLAVE, true);
1,559,849
public void deleteProjectTag(DeleteProjectTag request, StreamObserver<DeleteProjectTag.Response> responseObserver) {<NEW_LINE>try {<NEW_LINE>final var response = futureProjectDAO.deleteTags(DeleteProjectTags.newBuilder().setId(request.getId()).addTags(request.getTag()).setDeleteAll(false).build()).thenCompose(unused ->...
).build(), executor);
130,234
protected void convertResultToContextUOMIfNeeded(@NonNull final IPricingResult result, @NonNull final IPricingContext pricingCtx) {<NEW_LINE>// We are asked to keep the prices in context's UOM, so do nothing<NEW_LINE>if (!pricingCtx.isConvertPriceToContextUOM()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (pricingCtx.get...
pricingCtx.getUomId(), productPricePrecision);
186,088
protected void loadLocationPaths(Compiler compiler, int opPos, int count) throws javax.xml.transform.TransformerException {<NEW_LINE>// TODO: Handle unwrapped FilterExpr<NEW_LINE>int steptype = compiler.getOp(opPos);<NEW_LINE>if (steptype == OpCodes.OP_LOCATIONPATH) {<NEW_LINE>loadLocationPaths(compiler, compiler.getNe...
(opPos), count + 1);
592,050
private TrackEntry trackEntry(int trackIndex, Animation animation, boolean loop, @Null TrackEntry last) {<NEW_LINE><MASK><NEW_LINE>entry.trackIndex = trackIndex;<NEW_LINE>entry.animation = animation;<NEW_LINE>entry.loop = loop;<NEW_LINE>entry.holdPrevious = false;<NEW_LINE>entry.eventThreshold = 0;<NEW_LINE>entry.attac...
TrackEntry entry = trackEntryPool.obtain();
1,811,784
public static void updateQueue(String projectId, String locationId, String queueId) throws Exception {<NEW_LINE>try (CloudTasksClient client = CloudTasksClient.create()) {<NEW_LINE>// TODO(developer): Uncomment these lines and replace with your values.<NEW_LINE>// String projectId = "your-project-id";<NEW_LINE>// Strin...
(10)).build();