idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,540,697
public void updatedPinholeModel(int width, int height, double fov) {<NEW_LINE>final boolean shapeChanged = camWidth != width || camHeight != height;<NEW_LINE>this.camWidth = width;<NEW_LINE>this.camHeight = height;<NEW_LINE>this.hfov = fov;<NEW_LINE>synchronized (imageLock) {<NEW_LINE>if (shapeChanged) {<NEW_LINE>panel...
pinhole.reshape(camWidth, camHeight);
1,589,577
private ImmutableMap<CommissionShare, I_C_Commission_Share> syncShareRecords(@NonNull final ImmutableList<CommissionShare> shares, @NonNull final CommissionInstanceId commissionInstanceId, @NonNull final OrgId orgId, @NonNull final CommissionStagingRecords records) {<NEW_LINE>final ImmutableList<I_C_Commission_Share> s...
share, commissionInstanceId, orgId, shareRecordOrNull);
212,125
private void startImportOperation(@ImportType int backupType, Uri uri) {<NEW_LINE>// Start batch ops service<NEW_LINE>Intent intent = new Intent(activity, BatchOpsService.class);<NEW_LINE>BatchOpsManager.Result input = new BatchOpsManager.Result(Collections.emptyList());<NEW_LINE>intent.putStringArrayListExtra(BatchOps...
BatchOpsService.EXTRA_OP, BatchOpsManager.OP_IMPORT_BACKUPS);
1,393,069
protected JRTemplateGenericPrintElement createInteractiveElement(String chunkId, boolean floatingHeaders) {<NEW_LINE>// TODO lucianc cache<NEW_LINE>JRTemplateGenericElement genericElementTemplate = new JRTemplateGenericElement(getElementOrigin(), defaultStyleProvider, CROSSTAB_INTERACTIVE_ELEMENT_TYPE);<NEW_LINE>JRTemp...
= crosstabFiller.lastColumnIndex - crosstabFiller.startColumnIndex;
300,819
final AssociateWebACLResult executeAssociateWebACL(AssociateWebACLRequest associateWebACLRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateWebACLRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,447,473
private static void seedProducts() throws StripeException {<NEW_LINE>Stripe.apiKey = System.getenv("STRIPE_SECRET_KEY");<NEW_LINE>List<Map> productsToAdd = new ArrayList<Map>();<NEW_LINE>// Add Increment Magazine<NEW_LINE>Map<String, Object> incrementMagazine = new <MASK><NEW_LINE>incrementMagazine.put("id", "increment...
HashMap<String, Object>();
1,120,205
public void writeProperties(java.util.Properties p) {<NEW_LINE>// better to version settings since initial version as advocated at<NEW_LINE>// http://wiki.apidesign.org/wiki/PropertyFiles<NEW_LINE>p.setProperty("version", "1.0");<NEW_LINE>ProbeSettings ps = new ProbeSettings();<NEW_LINE>ps.xyzXDistance = getDouble(this...
ps.zOffset = getDouble(zProbeOffset);
1,704,950
public static boolean showCustomizer() {<NEW_LINE>JSTestDriverCustomizerPanel panel = new JSTestDriverCustomizerPanel();<NEW_LINE>DialogDescriptor descriptor = new DialogDescriptor(panel, org.openide.util.NbBundle.getMessage(JSTestDriverCustomizerPanel.class, "MSG_CONFIGURE"));<NEW_LINE>panel.setDescriptor(descriptor);...
getText()) == -1);
1,718,853
private void handleJoinRequest(JoinRequest joinRequest, JoinHelper.JoinCallback joinCallback) {<NEW_LINE>assert Thread.holdsLock(mutex) == false;<NEW_LINE>assert getLocalNode().isMasterEligibleNode() : getLocalNode() + " received a join but is not master-eligible";<NEW_LINE>LOGGER.trace("handleJoinRequest: as {}, handl...
sendValidateJoinRequest(stateForJoinValidation, joinRequest, joinCallback);
219,811
final GetInsightResultsResult executeGetInsightResults(GetInsightResultsRequest getInsightResultsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInsightResultsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
invoke(request, responseHandler, executionContext);
1,261,812
public boolean onPreferenceClick(Preference preference) {<NEW_LINE>AlertDialog.Builder b = new AlertDialog.Builder(requireActivity(), R.style.MyceliumSettings_Dialog_Small);<NEW_LINE>b.setTitle(getString<MASK><NEW_LINE>b.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {<NEW_LINE><NEW_LINE>@Override...
(R.string.ledger_set_unplugged_aid_title));
85,539
final DeleteOpsMetadataResult executeDeleteOpsMetadata(DeleteOpsMetadataRequest deleteOpsMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteOpsMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
128,262
public FailWorkflowExecutionFailedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FailWorkflowExecutionFailedEventAttributes failWorkflowExecutionFailedEventAttributes = new FailWorkflowExecutionFailedEventAttributes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_...
class).unmarshall(context));
1,471,179
public static int comparePartSpecBound(List<RexNode> exprValRexNodes, PartitionStrategy strategy, PartitionBoundSpec boundSpec, PartitionInfo partInfo, ExecutionContext executionContext) {<NEW_LINE>String schemaName = partInfo.getTableSchema();<NEW_LINE>String logTbName = partInfo.getTableName();<NEW_LINE>if (strategy ...
partInfo, exprValRexNodes, PartKeyLevel.PARTITION_KEY);
538,200
public <T> T execute(RequestDetails theRequestDetails, TransactionDetails theTransactionDetails, TransactionCallback<T> theCallback, Runnable theOnRollback) {<NEW_LINE>for (int i = 0; ; i++) {<NEW_LINE>try {<NEW_LINE>return doExecuteCallback(theCallback);<NEW_LINE>} catch (ResourceVersionConflictException | DataIntegri...
getMessage(), e, oo);
914,391
public void onClick(View v) {<NEW_LINE>String newValue = newValueEditText.getText().toString().trim();<NEW_LINE>if (newValue == null || newValue.equals("")) {<NEW_LINE>Toast.makeText(ConfigFileEditorActivity.this, "New value is empty", Toast.LENGTH_LONG).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (currentValue == ...
Toast.LENGTH_LONG).show();
1,456,056
public void readFrom(MiniDump dump, Builder builder, Object addressSpace, IAbstractAddressSpace memory, boolean is64Bit) throws IOException {<NEW_LINE>// get the thread ID of the failing thread<NEW_LINE>long tid = -1;<NEW_LINE>if (null != dump._j9rasReader) {<NEW_LINE>try {<NEW_LINE>tid = dump._j9rasReader.getThreadID(...
= 0xFFFFFFFFL & dump.coreReadInt();
1,841,051
// TODO always validate on construction, then make this method private<NEW_LINE>public Candidate validateNonStockCandidate() {<NEW_LINE>switch(type) {<NEW_LINE>case DEMAND:<NEW_LINE>case STOCK_UP:<NEW_LINE>Check.errorIf(businessCaseDetail == null, "If type={}, then the given businessCaseDetail may not be null; this={}"...
"The given paramters businessCase and businessCaseDetail don't match; businessCase={}; businessCaseDetail={}; this={}", businessCase, businessCaseDetail, this);
702,537
protected synchronized void read() {<NEW_LINE>File file = new File(path);<NEW_LINE>long newLastModified = file.exists() <MASK><NEW_LINE>long newFileSize = file.exists() ? file.length() : 0;<NEW_LINE>if (userToPassword == null || newLastModified != lastModified || newFileSize != lastFileSize) {<NEW_LINE>HashMap<String, ...
? file.lastModified() : 0;
1,390,940
public boolean step() {<NEW_LINE>// TODO: These shouldn't be done here, nor so strongly tied to the world renderer<NEW_LINE>LocalPlayer localPlayer = new LocalPlayer();<NEW_LINE>localPlayer.setRecordAndReplayClasses(context.get(DirectionAndOriginPosRecorderList.class), context.get(RecordAndReplayCurrentStatus.class));<...
.getInfo().getReflectionHeight();
430,922
public int compare(PatchOperation<T> o1, PatchOperation<T> o2) {<NEW_LINE>if (o1.index != o2.index) {<NEW_LINE>return CompareUtils.sCompare(o1.index, o2.index);<NEW_LINE>}<NEW_LINE>int o1OrderId;<NEW_LINE>switch(o1.op) {<NEW_LINE>case PatchOperation.OP_DEL:<NEW_LINE>o1OrderId = 0;<NEW_LINE>break;<NEW_LINE>case PatchOpe...
IllegalStateException("unexpected patch operation code: " + o1.op);
1,030,563
public BExpressionValue evaluate() throws EvaluationException {<NEW_LINE>try {<NEW_LINE>// Calls a remote method of a client object. This works the same as a method call expression, except that<NEW_LINE>// it is used for a client object method with the remote qualifier.<NEW_LINE>BExpressionValue result = objectExpressi...
context, result.getJdiValue());
863,094
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Card card = game.getCard(source.getSourceId());<NEW_LINE>if (player == null || card == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent hauntedCreature = game.getPermanent(targetPoin...
).toString(), game);
749,285
protected String processReport(ActionReporter ar) {<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>String des = ar.getActionDescription();<NEW_LINE>// check for no description, make it blank<NEW_LINE>if (des == null) {<NEW_LINE>des = "";<NEW_LINE>}<NEW_LINE>final String message = ResourceUtil.encodeStrin...
()).append(HEADING_END);
1,456,290
public TypeVariableBinding[] createTypeVariables(TypeParameter[] typeParameters, Binding declaringElement) {<NEW_LINE>// https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level.<NEW_LINE>if (typeParameters == null || typeParameters.length == 0)<NE...
AbstractMethodDeclaration sourceMethod = methodBinding.sourceMethod();
1,264,235
private void updateUsersPowerToolsFormat() {<NEW_LINE>if (doneFile.getBoolean("updateUsersPowerToolsFormat", false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final File userdataFolder = new File(ess.getDataFolder(), "userdata");<NEW_LINE>if (!userdataFolder.exists() || !userdataFolder.isDirectory()) {<NEW_LINE>return;<NE...
config.setRaw("powertools", powertools);
432,008
private static int putMediaInfo(final serverObjects prop, final String[] wordArray, int c, final Map<AnchorURL, String> media, final String type, boolean dark, final String agentName) {<NEW_LINE>int i = 0;<NEW_LINE>for (final Map.Entry<AnchorURL, String> entry : media.entrySet()) {<NEW_LINE>// the name attribute<NEW_LI...
.getKey().getNameProperty();
475,166
public static CodegenExpression codegen(ExprRelationalOpNodeForge forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>ExprForge lhs = forge.getForgeRenderable().getChildNodes()[0].getForge();<NEW_LINE>ExprForge rhs = forge.getForgeRenderable()...
), ExprRelationalOpNodeForgeEval.class, codegenClassScope);
100,792
public void upgradeSchema(CaseDbSchemaVersionNumber dbSchemaVersion, Connection connection) throws CentralRepoException, SQLException {<NEW_LINE>if (dbSchemaVersion.compareTo(new CaseDbSchemaVersionNumber(1, 6)) < 0) {<NEW_LINE>try (Statement statement = connection.createStatement()) {<NEW_LINE>CentralRepoPlatforms sel...
(), instance_type_dbname, instance_type_dbname));
1,179,788
private static Triple<List<RexNode>, List<RexNode>, List<RexNode>> splitFilters(final RexBuilder rexBuilder, final DruidQuery input, final List<RexNode> validPreds, final List<RexNode> nonValidPreds, final int timestampFieldIdx) {<NEW_LINE>final List<RexNode> <MASK><NEW_LINE>final List<RexNode> pushableNodes = new Arra...
timeRangeNodes = new ArrayList<>();
945,913
public static void main(String[] args) throws IOException, NoSuchAlgorithmException, InvalidKeyException {<NEW_LINE>try {<NEW_LINE>// MinioClient minioClient =<NEW_LINE>// MinioClient.builder()<NEW_LINE>// .endpoint("https://s3.amazonaws.com")<NEW_LINE>// .credentials("YOUR-ACCESSKEY", "YOUR-SECRETACCESSKEY")<NEW_LINE>...
add(new DeleteObject("my-objectname1"));
799,732
// private methods .........................................................<NEW_LINE>private void readNBS() throws ParseException, IOException {<NEW_LINE>if (source == null) {<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>InputStreamReader r = new InputStreamReader(inputStream);<NEW_LINE>reader = new ...
nbsLanguage.getParser(), input);
545,248
private void renderProperties(StringBuilder sb, int indent, boolean mutable, Set<String> rendered) {<NEW_LINE>for (String key : _state._membersByName.keySet()) {<NEW_LINE>if (rendered.contains(key)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>rendered.add(key);<NEW_LINE>sb.append('\n');<NEW_LINE>IJsonType type = _state._m...
.getTypeAttributes().getWriteOnly();
425,635
final PurchaseHostReservationResult executePurchaseHostReservation(PurchaseHostReservationRequest purchaseHostReservationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purchaseHostReservationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
879,594
public static <O> void recomputeCovarianceMatrices(Relation<? extends O> relation, WritableDataStore<double[]> probClusterIGivenX, List<? extends EMClusterModel<? super O, ?>> models, double prior) {<NEW_LINE>final int k = models.size();<NEW_LINE>boolean needsTwoPass = false;<NEW_LINE>for (EMClusterModel<?, ?> m : mode...
) + prior * k - k);
456,198
public static DescribeSuspEventQuaraFilesResponse unmarshall(DescribeSuspEventQuaraFilesResponse describeSuspEventQuaraFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSuspEventQuaraFilesResponse.setRequestId(_ctx.stringValue("DescribeSuspEventQuaraFilesResponse.RequestId"));<NEW_LINE>describeSuspEventQuaraF...
(_ctx.integerValue("DescribeSuspEventQuaraFilesResponse.CurrentPage"));
397,535
void retryOnException() {<NEW_LINE>Predicate<Throwable> rateLimitPredicate = rle -> (rle instanceof RateLimitExceededException) && "RL-101".equals(((RateLimitExceededException) rle).getErrorCode());<NEW_LINE>RetryConfig config = RetryConfig.custom().maxAttempts(3).waitDuration(Duration.of(1, SECONDS)).retryOnException(...
System.out.println(flights);
1,355,594
public InvokeResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InvokeResult invokeResult = new InvokeResult();<NEW_LINE>if (context.isStartOfDocument()) {<NEW_LINE>if (context.getHeader("X-Amz-Function-Error") != null) {<NEW_LINE>context.setCurrentHeader("X-Amz-Function-Error");<NEW_LINE>in...
.getHttpResponse().getContent();
1,419,642
private void check(APICreateDataVolumeMsg msg, Map<String, Quota.QuotaPair> pairs) {<NEW_LINE>String currentAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>String resourceTargetOwnerAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>long dataVolumeNumQuota = pairs.get(VmQuotaConstant.DATA_VOLUME_NUM).g...
VmQuotaConstant.VOLUME_SIZE).getValue();
66,817
private static void writeDualExtractions(PrintWriter out, Extraction e1, CRFExtractor extor1, Extraction e2, CRFExtractor extor2, int start, int end, boolean showLattice) {<NEW_LINE>writeHeader(out);<NEW_LINE>for (int i = start; i < end; i++) {<NEW_LINE>DocumentExtraction doc1 = e1.getDocumentExtraction(i);<NEW_LINE>Do...
i, doc2, extor2, showLattice);
432,083
public void addConstraint(ToolbarConstraints tc) {<NEW_LINE>ToolbarConstraints current = name2constraint.get(tc.getName());<NEW_LINE>if (null != current) {<NEW_LINE>constraints.remove(current);<NEW_LINE>// NOI18N<NEW_LINE>Logger.getLogger(ToolbarRow.class.getName()).// NOI18N<NEW_LINE>log(// NOI18N<NEW_LINE>Level.FINE,...
"Duplicate toolbar defintion " + tc.getName());
490,854
public static void residuals_Control3(DMatrixRMaj L_full, DMatrixRMaj y, double[] beta, double[] r) {<NEW_LINE>// @formatter:off<NEW_LINE>double b0 = beta[0], b1 = beta[1], b2 = beta[2];<NEW_LINE>final double[] ld = L_full.data;<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>double residual = -y.data[i];<NEW_LINE>int ...
[li++] * b1 * b1;
433,479
private static void statDocument(JsonWriter out, Context context, Uri uri) throws Exception {<NEW_LINE>try (Cursor c = context.getContentResolver().query(uri, null, null, null, null)) {<NEW_LINE>if (c == null || c.getCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>c.moveToNext();<NEW_LINE>out.beginObject();<NEW_LI...
(DocumentsContract.Document.COLUMN_MIME_TYPE));
1,727,915
private ReconnectDecision makeReconnectDecision(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>logger.warn(String.format("[Host Tracker]: unable track host[uuid:%s], %s", uuid, reply.getError()));<NEW_LINE>return ReconnectDecision.DoNothing;<NEW_LINE>}<NEW_LINE>PingHostReply r = reply.castReply();<NE...
("stop pinging host[uuid:%s, hypervisorType:%s] because it's disconnected and connection.autoReconnectOnError is false", uuid, hypervisorType));
366,138
public void marshall(GetAnomaliesRequest getAnomaliesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getAnomaliesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(getAnomaliesRequest.getMoni...
getAnomaliesRequest.getNextPageToken(), NEXTPAGETOKEN_BINDING);
140,432
public void insertLocalityInfo(int objectType, long objectId, String primaryZone, String locality) {<NEW_LINE>try {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>();<NEW_LINE>MetaDbUtil.setParameter(1, params, ParameterMethod.setInt, objectType);<NEW_LINE>MetaDbUtil.setParameter(2, params, ParameterMeth...
params, ParameterMethod.setString, locality);
525,821
final ListBuildBatchesForProjectResult executeListBuildBatchesForProject(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBuildBatchesForProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
81,547
void jbInit() throws Exception {<NEW_LINE>this.setLayout(borderLayout1);<NEW_LINE>textF.setEditable(false);<NEW_LINE>textF.setText(text);<NEW_LINE>cancelB.setMaximumSize(new Dimension(120, 26));<NEW_LINE>cancelB.setMinimumSize(new Dimension(80, 26));<NEW_LINE>cancelB.setPreferredSize(new Dimension(120, 26));<NEW_LINE>c...
new Dimension(120, 26));
1,711,113
protected void initDirectly(List<File> sourcepath, List<File> classpath) {<NEW_LINE>classpath = removeDups(classpath);<NEW_LINE>if (classpath.equals(_classpath)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>_classpath = classpath;<NEW_LINE>List<IDirectory> cp = createDefaultClassPath();<NEW_LINE>cp.addAll(classpath.stream()....
collect(Collectors.toList());
696,907
private void convertGrailsProject(IProject project, SubMonitor sub) throws Exception {<NEW_LINE>// nature<NEW_LINE>IProjectDescription description = project.getDescription();<NEW_LINE>String[] ids = description.getNatureIds();<NEW_LINE>List<String> newIds = new ArrayList<String>(ids.length);<NEW_LINE>for (int i = 0; i ...
(new String[0]));
673,381
public void marshall(CreateUserPoolClientRequest createUserPoolClientRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createUserPoolClientRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre...
createUserPoolClientRequest.getWriteAttributes(), WRITEATTRIBUTES_BINDING);
599,311
private static Object convert(Object value, Type targetType, List<TypeValuePair> unresolvedValues, boolean allowAmbiguity, BTypedesc t) {<NEW_LINE>if (value == null) {<NEW_LINE>if (targetType.isNilable()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>return createError(VALUE_LANG_LIB_CONVERSION_ERROR, BLangExceptionHelpe...
createConversionError(value, targetType, errors);
1,176,569
// Select the number of masters per AZ (Used in kubernetes).<NEW_LINE>public static void selectNumMastersAZ(PlacementInfo pi, int numTotalMasters) {<NEW_LINE>Queue<PlacementAZ> zones = new LinkedList<>();<NEW_LINE>int numRegionsCompleted = 0;<NEW_LINE>int idx = 0;<NEW_LINE>// We currently only support one cloud per dep...
.azList.get(idx));
644,511
protected void paintButtonPressed(Graphics g, AbstractButton b) {<NEW_LINE>if (XPStyle.getXP() == null && b.isContentAreaFilled()) {<NEW_LINE>Color oldColor = g.getColor();<NEW_LINE>Color c1 = b.getBackground();<NEW_LINE>Color c2 = UIManager.getColor("ToggleButton.highlight");<NEW_LINE>if (c1 != cachedBackgroundColor |...
, g2 = c2.getGreen();
377,917
final DescribeRecommendationExportJobsResult executeDescribeRecommendationExportJobs(DescribeRecommendationExportJobsRequest describeRecommendationExportJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRecommendationExportJobsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,108,638
public TBigDecimal add(TBigDecimal augend, TMathContext mc) {<NEW_LINE>// operand with the largest unscaled value<NEW_LINE>TBigDecimal larger;<NEW_LINE>// operand with the smallest unscaled value<NEW_LINE>TBigDecimal smaller;<NEW_LINE>TBigInteger tempBI;<NEW_LINE>long diffScale = (long) this.scale - augend.scale;<NEW_L...
(TBigInteger.valueOf(largerSignum));
1,625,955
private static List<ZoneOffsetTransition> buildTransitionsFromRules(List<ZoneOffsetTransition> transitions, ZoneId zone, ZoneRules rules, long minSecond, long maxSecond) {<NEW_LINE>List<ZoneOffsetTransitionRule> transitionRules = rules.getTransitionRules();<NEW_LINE>if (transitionRules.isEmpty()) {<NEW_LINE>return tran...
lastTransitionFromMinYear = rule.createTransition(minYear);
1,597,546
public void applyUpdate(StepFunction function, INDArray params, INDArray updates, double alpha) {<NEW_LINE>try {<NEW_LINE>// nullify given updates first<NEW_LINE>Nd4j.getMemoryManager().memset(updates);<NEW_LINE>// updates.assign(0.0);<NEW_LINE>int cnt = 0;<NEW_LINE>while (!messages.get(index.get()).isEmpty()) {<NEW_LI...
).bitmapDecode(compressed, updates);
852,146
private SeekableStreamDataSourceMetadata<String, String> createDataSourceMetadataWithClosedOrExpiredPartitions(SeekableStreamDataSourceMetadata<String, String> currentMetadata, Set<String> terminatedPartitionIds, String terminationMarker) {<NEW_LINE>final KinesisDataSourceMetadata dataSourceMetadata = (KinesisDataSourc...
>) old).getExclusivePartitions();
326,143
private PoolImpl newPoolImpl(VertxInternal vertx, List<? extends SqlConnectOptions> databases, PoolOptions options, CloseFuture closeFuture) {<NEW_LINE>OracleConnectOptions baseConnectOptions = OracleConnectOptions.wrap(databases.get(0));<NEW_LINE>QueryTracer tracer = vertx.tracer() == null ? null : new QueryTracer(ver...
options, afterAcquire, beforeRecycle, closeFuture);
517,093
private void createFacts_PurchasingReceiptLine(final Fact fact, final DocLine_InOut line) {<NEW_LINE>// Skip not stockable (e.g. service products) because they have no cost<NEW_LINE>if (!line.isItem()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AcctSchema as = fact.getAcctSchema();<NEW_LINE>final CostAmount costs = l...
).setDetailMessage("DR not created: " + line);
450,514
private I_M_Movement createMovementHeader() {<NEW_LINE>final I_M_Movement movement = <MASK><NEW_LINE>movement.setDocStatus(IDocument.STATUS_Drafted);<NEW_LINE>movement.setDocAction(IDocument.ACTION_Complete);<NEW_LINE>//<NEW_LINE>// Org and Document Type<NEW_LINE>final ClientAndOrgId clientAndOrgId = request.getClientA...
InterfaceWrapperHelper.newInstance(I_M_Movement.class);
1,804,856
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject result = new JSONObject();<NEW_LINE>String groupName = call.get("group", null);<NEW_LINE>String grouppBaseRole = call.get("role", "anonymo...
("group_members", new JSONObject());
494,514
public DescribeByoipCidrsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeByoipCidrsResult describeByoipCidrsResult = new DescribeByoipCidrsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOf...
XMLEvent xmlEvent = context.nextEvent();
1,266,465
private boolean identifiedCoreFile(ArrayList<ManagedImageSource> candidates, ImageInputStream iis) throws IOException {<NEW_LINE>if (FileSniffer.isCoreFile(iis, filesize)) {<NEW_LINE>ManagedImageSource candidate = new ManagedImageSource(managedFile.getName(), ImageSourceType.CORE);<NEW_LINE>candidate.setPath(managedFil...
setPath(meta.getPath());
594,004
public void clusterSetSlot(RedisClusterNode node, int slot, AddSlots mode) {<NEW_LINE>Assert.notNull(node, "Node must not be null.");<NEW_LINE>Assert.notNull(mode, "AddSlots mode must not be null.");<NEW_LINE>RedisClusterNode nodeToUse = topologyProvider.getTopology().lookup(node);<NEW_LINE>String nodeId = nodeToUse.ge...
client.clusterSetSlotNode(slot, nodeId);
1,221,124
private void registerForPavement(Consumer<FinishedRecipe> consumer, String color, Item mainInput) {<NEW_LINE>String baseName = color + LibBlockNames.PAVEMENT_SUFFIX;<NEW_LINE>Block base = Registry.BLOCK.getOptional(prefix(baseName)).get();<NEW_LINE>Block stair = Registry.BLOCK.getOptional(prefix(baseName + LibBlockName...
("botania:pavement_slab").save(consumer);
992,453
public Container iand(RunContainer x) {<NEW_LINE>// could probably be replaced with return iand(x.toBitmapOrArrayContainer());<NEW_LINE>final int card = x.getCardinality();<NEW_LINE>if (-1 != cardinality && card <= ArrayContainer.DEFAULT_MAX_SIZE) {<NEW_LINE>// no point in doing it in-place, unless it's a lazy operatio...
this.bitmap, start, MAX_CAPACITY);
466,049
public void run() {<NEW_LINE>boolean successful;<NEW_LINE>ParserQuery parserQuery = parser.parserQuery();<NEW_LINE>try {<NEW_LINE>successful = parserQuery.parse(sentence);<NEW_LINE>} catch (Exception e) {<NEW_LINE>stopProgressMonitor();<NEW_LINE>JOptionPane.showMessageDialog(ParserPanel.this, "Could not parse selected ...
"Could not parse selected sentence", null, JOptionPane.ERROR_MESSAGE);
1,542,286
private String assertFilepathInConfigOptions(File file) {<NEW_LINE>// if it is already in the options, we do nothing<NEW_LINE>if (prettierConfigOptions.contains("\"filepath\"") || prettierConfigOptions.contains("\"parser\"")) {<NEW_LINE>return prettierConfigOptions;<NEW_LINE>}<NEW_LINE>// if the file has no name, we c...
prettierConfigOptions.substring(startOfConfigOption + 1);
1,236,439
public void onReceive(Context context, Intent intent) {<NEW_LINE>if (context.getResources().getBoolean(R.bool.opentasks_support_local_lists)) {<NEW_LINE>// The database was just created, insert a local task list<NEW_LINE>ContentValues listValues = new ContentValues(5);<NEW_LINE>listValues.put(TaskLists.LIST_NAME, conte...
put(TaskLists.SYNC_ENABLED, 1);
1,261,178
public void store(DomRepresentation mailRep) throws IOException {<NEW_LINE>// Configure the XML Schema used for validation<NEW_LINE>Representation mailXsd = new ClientResource(LocalReference.createClapReference(getClass().getPackage()) + "/Mail.xsd").get();<NEW_LINE>mailRep.setSchema(mailXsd);<NEW_LINE>mailRep.setError...
subject = mailRep.getText("/rmep:mail/:subject");
1,839,969
public void doPost(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>try {<NEW_LINE>String message = request.getParameter("msg");<NEW_LINE>String severity = request.getParameter("severity");<NEW_LINE>String version = request.getParameter("v");<NEW_LINE>String <MASK><NEW_LINE>String userAgent = reques...
stack = request.getParameter("stack");
465,274
public void removeRecord(FileTab fileTab, Class<? extends Model> modelKlass, List<Object> recordList, List<FileTab> fileTabList) throws ClassNotFoundException {<NEW_LINE>JpaRepository<? extends Model> modelRepo = JpaRepository.of(modelKlass);<NEW_LINE>for (FileTab tab : fileTabList) {<NEW_LINE>Map<String, Object> jsonC...
(Collectors.joining(","));
1,044,124
public DirContext obtainDirContext(CallbackHandler handler, ReferralMode mode) throws NamingException {<NEW_LINE>NameCallback nameCallback = new NameCallback("Principal Name");<NEW_LINE>PasswordCallback passwordCallback = new PasswordCallback("Password", false);<NEW_LINE>try {<NEW_LINE>handler.handle(new Callback[] { n...
throw new RuntimeException("Could not obtain credential", e);
382,928
private boolean hasNonNullable(Element property, @Nullable VariableElement field, @Nullable AnnotationMirror dslAnn) {<NEW_LINE>if (dslAnn != null) {<NEW_LINE>Map<? extends ExecutableElement, ? extends AnnotationValue> values = dslAnn.getElementValues();<NEW_LINE>for (ExecutableElement ee : values.keySet()) {<NEW_LINE>...
get(ee).getValue();
1,826,953
public void resIdsExist(Element element, Res res, FallbackStrategy fallbackStrategy, ElementValidation valid) {<NEW_LINE>String annotationName = idAnnotationHelper.getTarget();<NEW_LINE>int[] resIds = <MASK><NEW_LINE>if (idAnnotationHelper.defaultResIdValue(resIds)) {<NEW_LINE>String[] resNames = idAnnotationHelper.ext...
idAnnotationHelper.extractAnnotationResIdValueParameter(element, annotationName);
419,398
public static PackageRootException create(PathFragment execPath, BuildFileNotFoundException e) {<NEW_LINE>FailureDetails.FailureDetail failureDetail = e<MASK><NEW_LINE>FailureDetails.IncludeScanning.Code code = e.hasExplicitDetailedExitCode() ? DetailedExitCode.getExitCode(failureDetail).isInfrastructureFailure() ? Fai...
.getDetailedExitCode().getFailureDetail();
24,473
public static ComplexResourceKey<?, ?> fixUpComplexKeySingletonArray(ComplexResourceKey<?, ?> complexResourceKey) {<NEW_LINE>RecordTemplate key = complexResourceKey.getKey();<NEW_LINE>DataMap dataMap = key.data();<NEW_LINE>List<RecordDataSchema.Field> fields = key.schema() == null ? Collections.<RecordDataSchema.Field>...
dataMap.put(fieldName, list);
425,919
public void onEvents(Player player, Events events) {<NEW_LINE>if (events.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>maybeAddSessions(events);<NEW_LINE>for (String session : playbackStatsTrackers.keySet()) {<NEW_LINE>Pair<EventTime, Boolean> eventTimeAndBelongsToPlayback = findBestEventTime(events, session);<NE...
tracker = playbackStatsTrackers.get(session);
738,825
public Request<DescribeNotificationConfigurationsRequest> marshall(DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest) {<NEW_LINE>if (describeNotificationConfigurationsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LI...
request.addParameter("Version", "2011-01-01");
114,216
public // d406994.2<NEW_LINE>void // d406994.2<NEW_LINE>startedApplication(// d406994.2<NEW_LINE>JPAApplInfo applInfo) throws RuntimeWarning {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, <MASK><NEW_LINE>// To save footprin...
"startedApplication : " + applInfo.getApplName());
1,515,439
private void syncForPolarDbX() {<NEW_LINE>synchronized (OptimizerContext.getContext(schemaName)) {<NEW_LINE>GmsTableMetaManager oldSchemaManager = (GmsTableMetaManager) OptimizerContext.getContext(schemaName).getLatestSchemaManager();<NEW_LINE>TableMeta currentMeta = oldSchemaManager.getTableWithNull(primaryTableName);...
.hashCode(), schemaName));
701,306
private Mono<Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String hanaInstanceName, 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 IllegalArg...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,568,153
public void onClick(View view) {<NEW_LINE>switch(view.getId()) {<NEW_LINE>case R.id.orientation:<NEW_LINE>startActivity(new Intent(getContext(), OrientationActivity.class));<NEW_LINE>break;<NEW_LINE>case R.id.rotation_and_videosize:<NEW_LINE>startActivity(new Intent(getContext(), RotationVideoSizeActivity.class));<NEW_...
(), ScreenRotateActivity.class));
1,192,828
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Log.v("MainActivity", "onCreate");<NEW_LINE>activityMainBinding = DataBindingUtil.setContentView(<MASK><NEW_LINE>NavHostFragment navHostFragment = (NavHostFragment) getSupportFragmentManager().findFragmentById(R.id.n...
this, R.layout.activity_main);
59,351
public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (targetPlayer == null || sourceO...
" exiled by " + controller.getName());
725,212
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.tweetui_activity_main);<NEW_LINE>ActionBar actionBar = getSupportActionBar();<NEW_LINE>if (actionBar != null) {<NEW_LINE>actionBar.setTitle(R.string.kit_tweetui);<NEW_LINE>}<NEW_LINE>final ...
this, RtlTimelineActivity.class)));
676,787
protected Map<Control, IDialogueControlDescriptor> createManagedControls(Composite parent) {<NEW_LINE>Composite baseCommandArea = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayoutFactory.fillDefaults().numColumns(1).applyTo(baseCommandArea);<NEW_LINE>GridDataFactory.fillDefaults().applyTo(baseCommandArea);<NEW_LINE>...
controls = new HashMap<>();
1,797,543
public void marshall(CreateTaskSetRequest createTaskSetRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createTaskSetRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocol...
createTaskSetRequest.getService(), SERVICE_BINDING);
632,369
public float[] eval(float[] input) throws IOException {<NEW_LINE>// This involves linear interpolation based on a set of sample points.<NEW_LINE>// Theoretically it's not that difficult ... see section 3.9.1 of the PDF Reference.<NEW_LINE>float[] sizeValues = getSize().toFloatArray();<NEW_LINE>int bitsPerSample = getBi...
(2, bitsPerSample) - 1.0);
120,120
private void imageIconToGtkWidget(PopupMenuPeer peer, ImageIcon ii) {<NEW_LINE>BufferedImage bi = getBufferedImage(ii);<NEW_LINE>if (bi == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] pixels = bi.getRGB(0, 0, bi.getWidth(), bi.getHeight(), null, 0, bi.getWidth());<NEW_LINE>peer.gtkImageBuffer = new Memory(pixels....
>>> 16 & 0xFF));
995,407
public void run() {<NEW_LINE>peers_changed = false;<NEW_LINE>GlobalManager gm = CoreFactory.getSingleton().getGlobalManager();<NEW_LINE>swarm_peers = tv.getDataSources();<NEW_LINE>final Map<PEPeerManager, int[]> done_pms = new HashMap<>();<NEW_LINE>List<DownloadManager> <MASK><NEW_LINE>for (PEPeer peer : swarm_peers) {...
dms = new ArrayList<>();
584,512
public static void main(String[] args) {<NEW_LINE>String commandName = AzureTokenResetTool.class.getSimpleName();<NEW_LINE>try {<NEW_LINE>VerifiableProperties <MASK><NEW_LINE>String clusterName = verifiableProperties.getString(ClusterMapConfig.CLUSTERMAP_CLUSTER_NAME);<NEW_LINE>CloudConfig cloudConfig = new CloudConfig...
verifiableProperties = ToolUtils.getVerifiableProperties(args);
841,296
public byte[] decrypt(byte[] data) throws InvalidKeyCipher {<NEW_LINE>// data to decrypt must be a whole number of blocks and have room for a<NEW_LINE>// checksum<NEW_LINE>Preconditions.checkArgument(data.length >= Rijndael.BLOCK_SIZE);<NEW_LINE>Preconditions.checkArgument(data.length % Rijndael.BLOCK_SIZE == 0);<NEW_L...
sha256(plaintext).getBytes();
739,892
private boolean initAsTermMulOrDivFactor(String termString) {<NEW_LINE>int bracketChecker = 0;<NEW_LINE>for (int i = 0; i < termString.length(); i++) {<NEW_LINE>if (termString.charAt(i) == '(') {<NEW_LINE>bracketChecker++;<NEW_LINE>}<NEW_LINE>if (termString.charAt(i) == ')') {<NEW_LINE>bracketChecker--;<NEW_LINE>}<NEW_...
= new Factor(rightSubString, parser);
1,816,969
public void writeRecords(final List<? extends OIdentifiable> resultSet, final int limit, final OCallable<Object, OIdentifiable> iAfterDump) {<NEW_LINE>final Map<String, Integer> columns = parseColumns(resultSet, limit);<NEW_LINE>if (columnSorting != null) {<NEW_LINE>Collections.sort(resultSet, new Comparator<Object>() ...
) value1).compareTo(value2);
984,731
RequestOptions buildRequestOptions() throws URISyntaxException, MalformedURLException {<NEW_LINE>int port;<NEW_LINE>String host;<NEW_LINE>String protocol;<NEW_LINE>Boolean ssl;<NEW_LINE>String uri;<NEW_LINE>if (absoluteUri != null) {<NEW_LINE>uri = absoluteUri.expandToString(templateParams(), client.options.getTemplate...
uri = (String) this.uri;
650,223
public void createFieldEditors() {<NEW_LINE>Link link = new Link(getFieldEditorParent(), SWT.NONE);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>link.setText("<a>https://www.alphavantage.co/support/#api-key</a>");<NEW_LINE>link.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false<MASK><NEW_LINE>link.addSelectionListener(new Selecti...
, false, 3, 1));
1,401,907
public void marshall(InAppMessageCampaign inAppMessageCampaign, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (inAppMessageCampaign == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(inAppMessageCampaign.get...
inAppMessageCampaign.getPriority(), PRIORITY_BINDING);