idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
645,805
public CurrencyAmount presentValueFromCleanPriceWithZSpread(ResolvedCapitalIndexedBondTrade trade, RatesProvider ratesProvider, LegalEntityDiscountingProvider discountingProvider, ReferenceData refData, double cleanRealPrice, double zSpread, CompoundedRateType compoundedRateType, int periodsPerYear) {<NEW_LINE>validate...
trade, ratesProvider, discountingProvider, pvStandard);
1,117,334
public static <T extends TaskForm> T parseTaskForm(ObjectMapper objectMapper, WorkflowTaskEntity taskEntity, WorkflowProcess process) {<NEW_LINE>Preconditions.checkNotNull(taskEntity, "taskEntity cannot be null");<NEW_LINE>Preconditions.checkNotNull(process, "process cannot be null");<NEW_LINE>if (StringUtils.isEmpty(t...
constructType(userTask.getFormClass());
52,971
public Subscription updateSubscription(final String subscriptionId, final SubscriptionBase newValue) throws NoSuchSubscriptionException, SubscriptionUpdateConflictException {<NEW_LINE>checkFeatureTogglesForCreationAndUpdate(newValue);<NEW_LINE>final Subscription old = subscriptionDbRepository.getSubscription(subscripti...
setLabels(old.getLabels());
1,621,552
private void appendRequired(MethodSpec.Builder constructorBuilder, String[] required) {<NEW_LINE>if (required == null || required.length == 0) {<NEW_LINE>constructorBuilder.addStatement("required =null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < required.length; i++) {<NEW_LINE>String co...
constructorBuilder.addStatement("required = new $T<>()", ArrayMapName);
199,854
private FormulaNode parseSingleLetterVariableBlock(final String varBlock) {<NEW_LINE>return new FormulaNode("varblock", null, (objs, vars, ri) -> {<NEW_LINE>final ValueList varValues = new ValueList();<NEW_LINE>for (char l : varBlock.toCharArray()) {<NEW_LINE>final Value value = <MASK><NEW_LINE>if (value == null) {<NEW...
vars.call("" + l);
1,710,816
protected void updateBootstrapState() {<NEW_LINE>super.updateBootstrapState();<NEW_LINE>BootstrapBrand bootstrapBrand = getBootstrapBrand();<NEW_LINE>float cornerRadius = baselineCornerRadius;<NEW_LINE>float strokeWidth = baselineStrokeWidth;<NEW_LINE>final float fontSize = baselineFontSize * bootstrapSize;<NEW_LINE>se...
cornerRadius, viewGroupPosition, showOutline, roundedCorners);
1,006,520
public boolean isInFullDozeMode(Context context) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {<NEW_LINE>PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);<NEW_LINE>if (pm == null) {<NEW_LINE>LogManager.d(TAG, "Can't get PowerManager to check doze mode.");<NEW_LIN...
LogManager.d(TAG, "We can't be in doze mode as we are pre-Android M");
456,074
public okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{nam...
localVarHeaderParams.put("Accept", localVarAccept);
1,733,092
private void doStop(Throwable cause) {<NEW_LINE>long traceId = LoggerHelpers.traceEnterWithContext(log, traceObjectId, "doStop");<NEW_LINE>log.info("{}: Stopping.", this.traceObjectId);<NEW_LINE>CompletableFuture.allOf(Services.stopAsync(this.metadataCleaner, this.executor), Services.stopAsync(this.writer, this.executo...
this.writer, this.metadataCleaner);
1,666,755
protected IFarmerJoe.Result plant(@Nonnull IFarmer farm, @Nonnull BlockPos bc, @Nonnull IBlockState state) {<NEW_LINE>if (Prep.isValid(farm.takeSeedFromSupplies(bc, true)) && farm.checkAction(FarmingAction.PLANT, FarmingTool.HOE)) {<NEW_LINE>final ItemStack seedStack = farm.takeSeedFromSupplies(bc, false);<NEW_LINE>Ent...
(FarmingTool.HOE), bc);
724,510
public void exportBookmarksToSearch() {<NEW_LINE>// create array with export entries<NEW_LINE>int[] entries = createExportBookmarks();<NEW_LINE>// copy all bookmarked entry-numbers to that array<NEW_LINE>for (int cnt = 0; cnt < entries.length; cnt++) {<NEW_LINE>entries[cnt] = bookmarks.getBookmarkEntry(cnt);<NEW_LINE>}...
settings, acceleratorKeys, synonyms, bibtex);
189,512
public static void main(final String[] args) throws IOException {<NEW_LINE>// Type descriptor for the Bond struct Node<string>. Used to "fill in"<NEW_LINE>// the holes in the generated generic type with real types.<NEW_LINE>final StructBondType<Node<String>> nodeStringBondType = Node.BOND_TYPE.makeGenericType(BondTypes...
tree = deserializer.deserialize(reader);
1,428,213
long appendMembershipChangeEvent(final long leadershipTermId, final long timestamp, final int leaderMemberId, final int clusterSize, final ChangeType changeType, final int memberId, final String clusterMembers) {<NEW_LINE>final int fragmentedLength = computeMembershipChangeEventFragmentedLength(clusterMembers);<NEW_LIN...
.ENCODED_LENGTH + membershipChangeEventEncoder.encodedLength();
477,498
private void loadNode125() {<NEW_LINE>StateTypeNode node = new StateTypeNode(this.context, Identifiers.ExclusiveLimitStateMachineType_High, new QualifiedName(0, "High"), new LocalizedText("en", "High"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0)<MASK><NEW_LINE>node.addReference(new Reference(Ide...
, UByte.valueOf(0));
1,203,512
/*<NEW_LINE>* public void testClientBasicSSL_CustomizedSSLContext(Map<String, String> param, StringBuilder ret) {<NEW_LINE>* String res = "";<NEW_LINE>*<NEW_LINE>* String serverIP = param.get("hostname");<NEW_LINE>* String serverPort = param.get("secport");<NEW_LINE>*<NEW_LINE>* ClientBuilder cb = ClientBuilder.newBuil...
serverPort + "/" + moduleName + "/Test/BasicResource");
1,292,019
public static ClientMessage encodeIMapInvalidationEvent(@Nullable com.hazelcast.internal.serialization.Data key, java.util.UUID sourceUuid, java.util.UUID partitionUuid, long sequence) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage...
initialFrame.content, EVENT_I_MAP_INVALIDATION_SOURCE_UUID_FIELD_OFFSET, sourceUuid);
1,301,485
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String serverName, String communicationLinkName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,526,301
public JSONObject toJSONObject(SceneGraphImage img) {<NEW_LINE>JSONObject obj = new JSONObject();<NEW_LINE>obj.put("predicate", this.predicate);<NEW_LINE>if (this.region != null) {<NEW_LINE>obj.put("region", img.regions.indexOf(this.region) + 1);<NEW_LINE>}<NEW_LINE>obj.put("subject", img.objects.indexOf(this.subject))...
obj.put("text", text);
1,829,236
public void addRenderPartition(JobAddRenderPartRequest request, StreamObserver<JobAddRenderPartResponse> responseObserver) {<NEW_LINE>try {<NEW_LINE>setupJobData(request.getJob());<NEW_LINE>LocalHostAssignment lha = new LocalHostAssignment();<NEW_LINE>lha.setJobId(job.getId());<NEW_LINE>lha.setThreads(request.getThread...
("Failed to find suitable frames.").asRuntimeException());
1,338,995
public com.amazonaws.services.elasticmapreduce.model.InvalidRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.elasticmapreduce.model.InvalidRequestException invalidRequestException = new com.amazonaws.services.elasticmapreduce.model.InvalidRequest...
class).unmarshall(context));
1,297,658
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
294,289
public void marshall(AudioDescription audioDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (audioDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(audioDescription.getAudioNormalizati...
audioDescription.getAudioTypeControl(), AUDIOTYPECONTROL_BINDING);
889,206
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>super.configure(name, params);<NEW_LINE>LOGGER.debug("Configuring LDAP Manager");<NEW_LINE>messageBus.subscribe(AccountManager.MESSAGE_REMOVE_ACCOUNT_EVENT, new MessageSubscriber() {<NEW_LINE><NEW_LINE>@Override<N...
.findByIdIncludingRemoved((Long) args);
1,387,573
private static CoordinatePosition closeToHorizontal(Rectangle2D rectangle, Point2D point, double edgeTolerance) {<NEW_LINE>double yDistanceToUpper = Math.abs(point.getY(<MASK><NEW_LINE>double yDistanceToLower = Math.abs(point.getY() - rectangle.getMaxY());<NEW_LINE>boolean yCloseToUpper = yDistanceToUpper < edgeToleran...
) - rectangle.getMinY());
522,427
public void notify(Path path, PathChildrenCacheEvent event) {<NEW_LINE>try {<NEW_LINE>// Snapshot directoryListeners in case notification leads to new directoryListeners added<NEW_LINE>Set<Map.Entry<Path, PathChildrenCacheListener>> directoryListenerSnapshot = new HashSet<>(directoryListeners.entrySet());<NEW_LINE>for ...
childEvent(MockCuratorFramework.this, event);
1,116,170
static private CompletionCandidate[] checkForTypes(ASTNode node) {<NEW_LINE>List<VariableDeclarationFragment> vdfs = null;<NEW_LINE>switch(node.getNodeType()) {<NEW_LINE>case ASTNode.TYPE_DECLARATION:<NEW_LINE>return new CompletionCandidate[] { new CompletionCandidate((TypeDeclaration) node) };<NEW_LINE>case ASTNode.ME...
params.size() + 1];
1,502,276
protected HashMap<String, String> readSlic3rComments(BufferedInputStream buffer) throws IOException {<NEW_LINE>buffer.mark(4096);<NEW_LINE>HashMap<String, String> ret = new HashMap<String, String>();<NEW_LINE>String line;<NEW_LINE>StringBuilder lnBuilder = new StringBuilder(1024);<NEW_LINE>int i = 0;<NEW_LINE>while (bu...
parts[0].trim();
661,339
public Partner importContact(Person googlePerson, Boolean updateContactField) {<NEW_LINE>if (googlePerson.getNames() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Name nameGoogle = Mapper.toBean(Name.class, googlePerson.getNames().get(0));<NEW_LINE>if (Strings.isNullOrEmpty(nameGoogle.getFamilyName())) {<NEW_LIN...
importCompany(googlePerson, partner, updateContactField);
1,097,295
public void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {<NEW_LINE>if (msg instanceof HttpRequest) {<NEW_LINE>HttpRequest req = (HttpRequest) msg;<NEW_LINE>if (is100ContinueExpected(req)) {<NEW_LINE>ctx.write(new DefaultFullHttpResponse(HTTP_1_1, CONTINUE, Unpooled.EMPTY_BUFFER));<NEW_LINE>}<NE...
Date(), CharsetUtil.UTF_8);
408,209
public void init(int N, boolean isPixels, boolean planar) {<NEW_LINE>this.isPixels = isPixels;<NEW_LINE>// define the camera's motion<NEW_LINE>motion = new Se3_F64();<NEW_LINE>motion.getR().setTo(ConvertRotation3D_F64.eulerToMatrix(EulerType.XYZ, 0.5, -0.2, 0.15, null));<NEW_LINE>motion.getT().setTo(0.1, -0.2, 5);<NEW_...
observationCurrent = new ArrayList<>();
1,703,449
void updateIcon() {<NEW_LINE>final Object priorIcon = fFrame.getClientProperty(CACHED_FRAME_ICON_KEY);<NEW_LINE>if (priorIcon instanceof ImageIcon) {<NEW_LINE>setIcon((ImageIcon) priorIcon);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int width = fFrame.getWidth();<NEW_LINE>int height = fFrame.getHeight();<NEW_LINE>// Protect...
Graphics g = fImage.getGraphics();
980,030
public void propertyChange(final PropertyChangeEvent evt) {<NEW_LINE>if (calendar != null) {<NEW_LINE>if (evt.getPropertyName().equals(JDayChooser.DAY_PROPERTY)) {<NEW_LINE>calendar.set(Calendar.DAY_OF_MONTH, ((Integer) evt.getNewValue()).intValue());<NEW_LINE>} else if (evt.getPropertyName().equals(JMonthChooser.MONTH...
()).intValue());
568,438
public Builder mergeFrom(io.kubernetes.client.proto.V1Scheduling.PriorityClassList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1Scheduling.PriorityClassList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>if ...
items_.addAll(other.items_);
383,515
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller != null) {<NEW_LINE>Cards cardsToHand = new CardsImpl();<NEW_LINE>Target target = new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD);<NEW_LINE>target.setNotTarget(true);<NEW_L...
getPlayer(source.getControllerId());
948,280
public void marshall(FeatureSummary featureSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (featureSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(featureSummary.getArn(), ARN_BINDING);<NEW...
featureSummary.getCreatedTime(), CREATEDTIME_BINDING);
19,501
private void injectToObject(Object object, Field field, List<String> stepFieldNames, int step, Object value) throws Exception {<NEW_LINE>Class<?> fieldType = field.getType();<NEW_LINE>String fieldName = field.getName();<NEW_LINE>if (step + 1 >= stepFieldNames.size()) {<NEW_LINE>if (fieldType.equals(String.class) || Pri...
setObjectField(object, field, subObject);
385,893
public Map<String, Object> unpublishEvent(final String inode) throws PortalException, SystemException, DotDataException, DotSecurityException {<NEW_LINE>// DOTCMS-5199<NEW_LINE>final Map<String, Object> callbackData = new HashMap<>();<NEW_LINE>final List<String> eventUnpublishErrors = new ArrayList<>();<NEW_LINE>final ...
unpublish(ev, user, respectFrontendRoles);
776,589
public boolean apply(Game game, Ability source) {<NEW_LINE>int highestNumber = 0;<NEW_LINE>int number = 0;<NEW_LINE>Permanent menacingOgre = game.getPermanent(source.getSourceId());<NEW_LINE>String message = "Choose a number.";<NEW_LINE>Map<Player, Integer> numberChosen = new HashMap<>();<NEW_LINE>// players choose num...
player = game.getPlayer(playerId);
770,211
// B.3 pg 62<NEW_LINE>public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>SecP160R2FieldElement Y1 = (SecP160R2FieldElement) this.y;<NEW_LINE>if (Y1.isZero()) {<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>SecP160R2Fi...
x, t1, Y3.x);
1,851,851
public void establishPIN(final int pos) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(context);<NEW_LINE>int marginSmall = context.getResources().getDimensionPixelSize(R.dimen.activity_margin_small);<NEW_LINE>int marginMedium = context.getResources().getDimensionPixelSize(R.dimen.activity_margin_medi...
EditText input = new EditText(context);
642,379
public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>dest.writeLong(this.id);<NEW_LINE>dest.writeString(this.url);<NEW_LINE>dest.writeLong(this.pullRequestReviewId);<NEW_LINE>dest.writeString(this.diffHunk);<NEW_LINE>dest.writeString(this.path);<NEW_LINE>dest.writeInt(this.position);<NEW_LINE>dest.writeInt(this...
dest.writeString(this.pullRequestUrl);
326,459
public List<String> validateResponsesDetails(List<FeedbackResponseDetails> responses, int numRecipients) {<NEW_LINE>List<String> <MASK><NEW_LINE>boolean isMinOptionsEnabled = minOptionsToBeRanked != Const.POINTS_NO_VALUE;<NEW_LINE>boolean isMaxOptionsEnabled = maxOptionsToBeRanked != Const.POINTS_NO_VALUE;<NEW_LINE>Set...
errors = new ArrayList<>();
252,558
private List<String> replaceProperty(String name, String value, List<String> lines) {<NEW_LINE>List<String> retLines = new ArrayList<>();<NEW_LINE>for (int i = 0; i < lines.size(); i++) {<NEW_LINE>String <MASK><NEW_LINE>String trimmedLine = line.trim();<NEW_LINE>int eqIdx = trimmedLine.indexOf("=");<NEW_LINE>if (eqIdx ...
line = lines.get(i);
1,248,342
private static KeyVaultRoleDefinition roleDefinitionToKeyVaultRoleDefinition(RoleDefinition roleDefinition) {<NEW_LINE>List<KeyVaultPermission> <MASK><NEW_LINE>for (Permission permission : roleDefinition.getPermissions()) {<NEW_LINE>keyVaultPermissions.add(new KeyVaultPermission(permission.getActions(), permission.getN...
keyVaultPermissions = new ArrayList<>();
214,612
final StartPipelineReprocessingResult executeStartPipelineReprocessing(StartPipelineReprocessingRequest startPipelineReprocessingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startPipelineReprocessingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
570,257
public Contributor unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Contributor contributor = new Contributor();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok...
int originalDepth = context.getCurrentDepth();
411,063
void globalLayout() {<NEW_LINE>final int[] location = new int[2];<NEW_LINE>// Includes offset from status bar, *dumb*<NEW_LINE>mMotionLayout.getLocationInWindow(location);<NEW_LINE>Rect anchorRect = new Rect(location[0], location[1], location[0] + mMotionLayout.getWidth(), location[1] + mMotionLayout.getHeight());<NEW_...
.content).getLocationInWindow(location);
1,582,529
private Object resolve(Object objSource, String currKey, String value) {<NEW_LINE>Object obj = objSource;<NEW_LINE>if (currKey.equalsIgnoreCase("length") || currKey.equalsIgnoreCase(".length")) {<NEW_LINE>return obj;<NEW_LINE>}<NEW_LINE>String key = popKey(currKey);<NEW_LINE>String remainKey = popRemainKey(currKey);<NE...
currMap.put(key, currList);
631,160
public PublishBatchResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PublishBatchResult publishBatchResult = new PublishBatchResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>tar...
().unmarshall(context));
1,452,986
private Optional<Symbol> symbolWithErrorType(LSCompletionItem lsCItem) {<NEW_LINE>Predicate<Symbol> symbolPredicate = CommonUtil.getVariableFilterPredicate();<NEW_LINE>if (lsCItem.getType() != LSCompletionItem.CompletionItemType.SYMBOL || ((SymbolCompletionItem) lsCItem).getSymbol().isEmpty()) {<NEW_LINE>return Optiona...
.getSymbol().get();
561,554
public String replace(Parameters parameters) {<NEW_LINE>String value = item.replace(parameters);<NEW_LINE>if (!Item.checkReq(isRequired, value)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Settings settings = (Settings) parameters.getObject("settings");<NEW_LINE>if (settings == null) {<NEW_LINE>return isRequired ? null...
value2 = sub.replace(parameters);
1,786,886
static int writeB3SingleFormat(TraceContext context, long parentId, char[] result) {<NEW_LINE>int pos = 0;<NEW_LINE>long traceIdHigh = context.traceIdHigh();<NEW_LINE>if (traceIdHigh != 0L) {<NEW_LINE><MASK><NEW_LINE>pos += 16;<NEW_LINE>}<NEW_LINE>writeHexLong(result, pos, context.traceId());<NEW_LINE>pos += 16;<NEW_LI...
writeHexLong(result, pos, traceIdHigh);
1,215,347
public long readLong() {<NEW_LINE>if (dbg)<NEW_LINE>System.err.println("\nread");<NEW_LINE>if (!hasMore()) {<NEW_LINE>throw new NoSuchElementException();<NEW_LINE>}<NEW_LINE>readElementCount--;<NEW_LINE>if (repeatCount != 0) {<NEW_LINE>if (dbg)<NEW_LINE>System.err.println("next repeat count = " + repeatCount + " lastn ...
repeatCount = bitStream.readIntBits(REPEATED_DELTA_BITS);
1,302,908
final SetDefaultPolicyVersionResult executeSetDefaultPolicyVersion(SetDefaultPolicyVersionRequest setDefaultPolicyVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setDefaultPolicyVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
invoke(request, responseHandler, executionContext);
1,013,430
Pair<String, String> createWhereAndHavingClause(List<AbstractFilter> filters) {<NEW_LINE>final StringJoiner whereClause = new StringJoiner(" OR ", "(", ")");<NEW_LINE>final StringJoiner havingClause = new StringJoiner(" AND ", "(", ")");<NEW_LINE>// Capture all types by default.<NEW_LINE>ArtifactTypeFilter artifactType...
add(ArtifactDateRangeFilter.createAttributeTypeClause());
916,813
public void start(List<StructuredStreamingSource> sources, List<BaseSparkTransform> transforms, List<StructuredStreamingSink> sinks) throws Exception {<NEW_LINE>List<Dataset<Row>> datasetList = sources.stream().map(s -> SparkEnvironment.registerInputTempView(s, sparkEnvironment)).collect(Collectors.toList());<NEW_LINE>...
.streams().awaitAnyTermination();
1,608,187
public static DescribeBackupGatewayListResponse unmarshall(DescribeBackupGatewayListResponse describeBackupGatewayListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupGatewayListResponse.setRequestId(_ctx.stringValue("DescribeBackupGatewayListResponse.RequestId"));<NEW_LINE>describeBackupGatewayListResponse...
(_ctx.integerValue("DescribeBackupGatewayListResponse.HttpStatusCode"));
487,237
private void playIndeterminateAnimation(Boolean indeterminate, boolean playAnimation) {<NEW_LINE>if (indeterminate == null) {<NEW_LINE>indeterminate = false;<NEW_LINE>}<NEW_LINE>indeterminateTransition.setRate(indeterminate ? 1 : -1);<NEW_LINE>if (playAnimation) {<NEW_LINE>indeterminateTransition.play();<NEW_LINE>} els...
get(0).getRadii();
817,847
public AccessGroupDefinition composeGroupDefinitionFromDb(UUID groupId) {<NEW_LINE>return persistence.callInTransaction(em -> {<NEW_LINE>AccessGroupDefinitionBuilder groupDefinitionBuilder = AccessGroupDefinitionBuilder.create();<NEW_LINE>Group group = em.find(Group.class, groupId);<NEW_LINE>// noinspection ConstantCon...
>(group.getConstraints());
1,836,603
public Device unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Device device = new Device();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_...
String currentParentElement = context.getCurrentParentElement();
1,183,630
public void marshall(CatalogItem catalogItem, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (catalogItem == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(catalogItem.getCatalogItemId(), CATALOGITEMID_BINDI...
catalogItem.getWeightLbs(), WEIGHTLBS_BINDING);
1,811,249
protected void decode(@NotNull final ChannelHandlerContext ctx, @NotNull final ByteBuf in, @NotNull final List<Object> out) throws Exception {<NEW_LINE>// Needs minimum 5 bytes to be able to tell what it is.<NEW_LINE>if (in.readableBytes() < 11) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check for SSL bytes<NEW_LINE>fin...
pipeline().remove(this);
550,178
// @Background<NEW_LINE>public void refreshRemoteFeeds() {<NEW_LINE>// Connect to the last used server<NEW_LINE>IDaemonAdapter currentConnection = this.getCurrentConnection();<NEW_LINE>// remote rss not supported for this connection type<NEW_LINE>if (!(currentConnection instanceof RemoteRssSupplier)) {<NEW_LINE>return;...
currentConnection)).getRemoteRssChannels(log);
517,458
public boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len) {<NEW_LINE>toffset += offset;<NEW_LINE>byte[] ta = value;<NEW_LINE>int to = toffset;<NEW_LINE>byte[] pa = other.getBytes(charset);<NEW_LINE>int po = ooffset;<NEW_LINE>// Note: toffset, ooffset, or len might be near -1>>>1....
byte c2 = pa[po++];
1,123,796
public static DescribeCustomLineResponse unmarshall(DescribeCustomLineResponse describeCustomLineResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCustomLineResponse.setRequestId(_ctx.stringValue("DescribeCustomLineResponse.RequestId"));<NEW_LINE>describeCustomLineResponse.setId(_ctx.longValue("DescribeCustomLineR...
(_ctx.stringValue("DescribeCustomLineResponse.Code"));
765,243
private SendResult send(org.apache.rocketmq.common.message.Message mqMessage, MessageQueueSelector selector, Object args, Message<?> message) throws RemotingException, MQClientException, InterruptedException, MQBrokerException {<NEW_LINE>SendResult sendResult = new SendResult();<NEW_LINE>sendResult.setSendStatus(SendSt...
sendOneway(mqMessage, selector, args);
1,573,364
public static Map<String, String> readConfig(Path data) throws IOException {<NEW_LINE>File conf_dir = new File("conf");<NEW_LINE>Properties prop = new Properties();<NEW_LINE>prop.load(new FileInputStream(new File(conf_dir, "config.properties")));<NEW_LINE>Map<String, String> <MASK><NEW_LINE>for (Map.Entry<Object, Objec...
config = new HashMap<>();
561,059
protected void addManifestBitstream(Context context, Item item, METSManifest manifest) throws IOException, SQLException, AuthorizeException, PackageValidationException {<NEW_LINE>// We'll save the METS Manifest as part of the METADATA bundle.<NEW_LINE>Bundle mdBundle = bundleService.create(context, item, Constants.META...
fmtName, "application/xml", fmtName + " package manifest");
737,446
final CreateStreamResult executeCreateStream(CreateStreamRequest createStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateStream");
1,576,796
private static FileResource createRegularURI(String pathname, boolean asFile) {<NEW_LINE>URL url;<NEW_LINE>try {<NEW_LINE>// TODO NormalizedFile does too much - should leave uri: files as they are<NEW_LINE>// and make file:/a protocol to be file:///a so the second replace does not apply<NEW_LINE>pathname = pathname.rep...
asFile ? null : listFiles(pathname);
1,058,430
public String ListAllObjects(String bucketName) {<NEW_LINE>s3 = getClient();<NEW_LINE>long sizeLg;<NEW_LINE>Instant DateIn;<NEW_LINE>BucketItem myItem;<NEW_LINE>List bucketItems = new ArrayList<BucketItem>();<NEW_LINE>try {<NEW_LINE>ListObjectsRequest listObjects = ListObjectsRequest.builder().bucket(bucketName).build(...
(S3Object) iterVals.next();
756,475
protected DefaultMutableTreeNode buildTree() {<NEW_LINE>// "Examples");<NEW_LINE>DefaultMutableTreeNode root = new DefaultMutableTreeNode();<NEW_LINE>try {<NEW_LINE>// Get the list of Mode-specific examples, in the order the Mode wants<NEW_LINE>// to present them (i.e. Basics, then Topics, then Demos...)<NEW_LINE>File[...
(Language.text("examples.libraries"));
1,468,574
public // calls to clone(boolean, boolean) from falling through to Object3D<NEW_LINE>SkeletalAnimationChildObject3D clone(boolean copyMaterial, boolean cloneChildren) {<NEW_LINE>SkeletalAnimationChildObject3D clone = new SkeletalAnimationChildObject3D();<NEW_LINE>clone.setRotation(getOrientation());<NEW_LINE><MASK><NEW...
clone.setPosition(getPosition());
440,773
private void renderItem(PoseStack ms, ItemStack stack, float o, MultiBufferSource buffers, int combinedLight, int combinedOverlay) {<NEW_LINE>if (!stack.isEmpty()) {<NEW_LINE>ms.pushPose();<NEW_LINE>// move to center<NEW_LINE>ms.translate(0.5f, 0.5f + o, 0.5f);<NEW_LINE>ms.mulPose(new Quaternion(90, 0, 0, true));<NEW_L...
, null, new Random());
159,231
protected File download(String url, boolean verifyChecksum) throws IOException {<NEW_LINE>File file = downloadFile(url);<NEW_LINE>if (!verifyChecksum) {<NEW_LINE>return file;<NEW_LINE>}<NEW_LINE>File sha1File = null;<NEW_LINE>try {<NEW_LINE>sha1File = downloadFile(url + ".sha1");<NEW_LINE>} catch (IOException e) {<NEW_...
] buffer = new byte[1024];
504,370
public void beforeRequest(Request<?> request) {<NEW_LINE>AmazonWebServiceRequest originalRequest = request.getOriginalRequest();<NEW_LINE>if (originalRequest instanceof CopySnapshotRequest) {<NEW_LINE>String serviceName = "ec2";<NEW_LINE>CopySnapshotRequest originalCopySnapshotRequest = (CopySnapshotRequest) originalRe...
(originalCopySnapshotRequest.getDestinationRegion()));
1,298,252
final UpdateDashboardPermissionsResult executeUpdateDashboardPermissions(UpdateDashboardPermissionsRequest updateDashboardPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDashboardPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,183,751
public JPanel buildOverviewPanel(WsdlProject project) {<NEW_LINE>JPropertiesTable<WsdlProject> table = new JPropertiesTable<WsdlProject>("Project Properties", project);<NEW_LINE>if (project.isOpen()) {<NEW_LINE>table.addProperty("Name", "name", true);<NEW_LINE>table.addProperty("Description", "description", true);<NEW_...
table.addProperty("File", "path");
177,354
public Help create(CommandSpec commandSpec, ColorScheme colorScheme) {<NEW_LINE>return new Help(commandSpec, colorScheme) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String parameterList(List<PositionalParamSpec> positionalParams) {<NEW_LINE>int usageHelpWidth = commandSpec.usageMessage().width();<NEW_LINE>int longO...
usageMessage().adjustLineBreaksForWideCJKCharacters());
486,797
public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>if (!matcher.matches(tree, state)) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>Description.Builder description = buildDescription(tree);<NEW_LINE>MethodSymbol sym = ASTHelpers.getSymbol(tree);<NEW_LINE>des...
ifSource = state.getSourceForNode(enclosingIf);
128,173
public EncryptionConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EncryptionConfiguration encryptionConfiguration = new EncryptionConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken...
String currentParentElement = context.getCurrentParentElement();
542,197
public static ApiClient kubernetesApiClient() {<NEW_LINE>try {<NEW_LINE>// Assume we are running in a cluster<NEW_LINE>ApiClient apiClient = ClientBuilder<MASK><NEW_LINE>LOG.info("Created API client in the cluster.");<NEW_LINE>return apiClient;<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOG.info("Could not create the Ku...
.cluster().build();
378,924
private void triggerClearAllUnreadMessage() {<NEW_LINE>V2TIMManager.getMessageManager().markAllMessageAsRead(new V2TIMCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess() {<NEW_LINE>Log.i(TAG, "markAllMessageAsRead success");<NEW_LINE>ToastUtil.toastShortMessage(MainActivity.this.getString(R.strin...
convertIMError(code, desc)));
1,130,767
public static PhysicalPlan castAggProject(PhysicalPlan input, Map<Integer, ArrowType> aggIndexes) {<NEW_LINE>PhysicalPlan peek = input;<NEW_LINE>Schema schema = peek.schema();<NEW_LINE>List<Field> fields = schema.getFields();<NEW_LINE>boolean needCastProject = false;<NEW_LINE>ArrayList<Function> castFunctions = new Arr...
(column(columnIndex, schema));
223,405
public ListGroupsOlderThanOrderingIdResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListGroupsOlderThanOrderingIdResult listGroupsOlderThanOrderingIdResult = new ListGroupsOlderThanOrderingIdResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
class).unmarshall(context));
1,453,242
public void trigger(DelegateExecution execution, String triggerName, Object triggerData) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);<NEW_LINE><MASK><NEW_LINE...
ExecutionEntityManager executionEntityManager = processEngineConfiguration.getExecutionEntityManager();
1,766,433
private void reloadField(Object component, IssueField field) {<NEW_LINE>String newValue;<NEW_LINE>if (component instanceof JList) {<NEW_LINE>newValue = mergeValues<MASK><NEW_LINE>} else {<NEW_LINE>newValue = issue.getFieldValue(field);<NEW_LINE>}<NEW_LINE>boolean fieldDirty = unsavedFields.contains(field.getKey());<NEW...
(issue.getFieldValues(field));
1,808,284
public void translate(GeyserSession session, AnimatePacket packet) {<NEW_LINE>// Stop the player sending animations before they have fully spawned into the server<NEW_LINE>if (!session.isSpawned()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(packet.getAction()) {<NEW_LINE>case SWING_ARM -><NEW_LINE>// Delay so entity...
packet.getRowingTime() > 0.0);
9,553
// Add claims to authorization-url<NEW_LINE>private OAuth2AuthorizationRequest addClaims(HttpServletRequest httpServletRequest, OAuth2AuthorizationRequest oAuth2AuthorizationRequest) {<NEW_LINE>if (oAuth2AuthorizationRequest == null || httpServletRequest == null) {<NEW_LINE>return oAuth2AuthorizationRequest;<NEW_LINE>}...
httpSession = httpServletRequest.getSession(false);
500,658
private // takeBertyCharacteristics checks if the service has the two characteristics expected.<NEW_LINE>boolean takeBertyCharacteristics() {<NEW_LINE>mLogger.v(TAG, String.format("takeBertyCharacteristic called for device=%s", mLogger.sensitiveObject(getMACAddress())));<NEW_LINE>List<BluetoothGattCharacteristic> chara...
sensitiveObject(getMACAddress())));
1,241,099
private void dbUpdatePackageUOM(@NonNull final ImportRecordsSelection selection) {<NEW_LINE>StringBuilder sql;<NEW_LINE>int no;<NEW_LINE>sql = new StringBuilder("UPDATE ").append(targetTableName + " i ").append(" SET Package_UOM_ID = (SELECT C_UOM_ID FROM C_UOM u WHERE lower(u.uomsymbol)=lower(i.A00PGEINH) AND u.AD_Cli...
toString(), ITrx.TRXNAME_ThreadInherited);
1,652,298
public io.kubernetes.client.proto.V1beta1Authorization.SelfSubjectAccessReviewSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Authorization.SelfSubjectAccessReviewSpec result = new io.kubernetes.client.proto.V1beta1Authorization.SelfSubjectAccessReviewSpec(this);<NEW_LINE>int from_bitField0_ = bitField...
.nonResourceAttributes_ = nonResourceAttributesBuilder_.build();
1,819,975
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
1,536,595
public List<SFormatSerializerMap> listAvailableOutputFormats(Long poid) throws ServerException, UserException {<NEW_LINE>Map<String, SFormatSerializerMap> outputs = new HashMap<>();<NEW_LINE>try (DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.READ_ONLY)) {<NEW_LINE>Project project = ...
), OldQuery.getDefault());
1,528,200
protected void mapBlock(int[] block, int[] out, int blkIdx, int dctType, int chromaFormat) {<NEW_LINE>int stepVert = chromaFormat == Chroma420 && (blkIdx == 4 || blkIdx == 5) ? 0 : dctType;<NEW_LINE>int log2stride = blkIdx < 4 ? 4 : 4 - SQUEEZE_X[chromaFormat];<NEW_LINE>int blkIdxExt = blkIdx + (dctType << 4);<NEW_LINE...
= 1 << (log2stride + stepVert);
236,056
public List<JvmGcBo> decodeValues(Buffer valueBuffer, AgentStatDecodingContext decodingContext) {<NEW_LINE>final String agentId = decodingContext.getAgentId();<NEW_LINE>final long baseTimestamp = decodingContext.getBaseTimestamp();<NEW_LINE>final <MASK><NEW_LINE>final long initialTimestamp = baseTimestamp + timestampDe...
long timestampDelta = decodingContext.getTimestampDelta();
620,135
public CompletableFuture<NavigableMap<Address, byte[]>> readMemoryBlocks(TraceRecorder recorder, int blockBits, AddressSetView set, TaskMonitor monitor, boolean returnResult) {<NEW_LINE>// NOTE: I don't intend to warn about the number of requests.<NEW_LINE>// They're delivered in serial, and there's a cancel button tha...
blk.getMinAddress(), data);
1,252,115
public static void inject() {<NEW_LINE>if (injected) {<NEW_LINE>throw new IllegalStateException("Cannot inject CopperRegistries twice!");<NEW_LINE>}<NEW_LINE>injected = true;<NEW_LINE>try {<NEW_LINE>Field delegateField = WeatheringCopper.NEXT_BY_BLOCK.getClass().getDeclaredField("delegate");<NEW_LINE>delegateField.setA...
), waxed.get());
303,712
public void dispatch(ProtocolReply message) {<NEW_LINE>Callback callback = callbacks.remove(message.id());<NEW_LINE>if (callback != null) {<NEW_LINE>if (message.status() == ProtocolReply.Status.OK) {<NEW_LINE>callback.complete(message.payload());<NEW_LINE>} else if (message.status() == ProtocolReply.Status.ERROR_NO_HAN...
(new MessagingException.RemoteHandlerFailure());
1,360,516
public WebSocketConfigurer webSocketConfigurer(List<HandshakeInterceptor> handshakeInterceptor, WebSocketHandler webSocketHandler, @Autowired(required = false) SockJsServiceConfigurer sockJsServiceConfigurer) {<NEW_LINE>return registry -> {<NEW_LINE>WebSocketHandlerRegistration registration = registry.addHandler(webSoc...
] allowedOriginPatterns = webSocketProperties.getAllowedOriginPatterns();