idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
937,911
public void marshall(ModelPackage modelPackage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (modelPackage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(modelPackage.getModelPackageName(), MODELPACKAGE...
modelPackage.getModelPackageStatus(), MODELPACKAGESTATUS_BINDING);
1,622,884
private void predTemp4x4(Frame[][] refs, int mbX, int mbY, MvList x, int blk4x4) {<NEW_LINE>int mbWidth = sh.sps.picWidthInMbsMinus1 + 1;<NEW_LINE>Frame picCol = refs[1][0];<NEW_LINE>int blkIndX = blk4x4 & 3;<NEW_LINE>int blkIndY = blk4x4 >> 2;<NEW_LINE>int blkPosX = (mbX << 2) + blkIndX;<NEW_LINE>int blkPosY = (mbY <<...
(), -128, 127);
1,306,442
protected static void createKinesisStream() {<NEW_LINE>kinesis = KinesisClient.builder().credentialsProvider(CREDENTIALS_PROVIDER_CHAIN).region(Region.US_WEST_2).build();<NEW_LINE>kinesis.createStream(CreateStreamRequest.builder().streamName(KINESIS_STREAM_NAME).shardCount(1).build());<NEW_LINE>StreamDescription descri...
build()).streamDescription();
510,988
public EBPFProfilingTree buildAnalyzeResult() {<NEW_LINE>// all nodes add to single-level list (such as flat), work for parallel calculating<NEW_LINE>LinkedList<Tuple2<EBPFProfilingStackElement, EBPFProfilingStackNode>> <MASK><NEW_LINE>int idGenerator = 1;<NEW_LINE>EBPFProfilingStackElement root = buildElement(idGenera...
nodeMapping = new LinkedList<>();
1,368,979
private String dynamicTranslate(String className) {<NEW_LINE>String zkName = null;<NEW_LINE>String tail = null;<NEW_LINE>// null check<NEW_LINE>if (className == null || className.trim().length() == 0)<NEW_LINE>return null;<NEW_LINE>// Westfalia: Rules -> no check. (Rules start with "@script:") }<NEW_LINE>final String ...
tail.substring(lastdot + 1);
179,066
public DesktopPanel showDesktopPanel(ModelItem modelItem) {<NEW_LINE>PanelBuilder<ModelItem> panelBuilder = PanelBuilderRegistry.getPanelBuilder(modelItem);<NEW_LINE>if (modelItemToInternalFrameMap.containsKey(modelItem)) {<NEW_LINE>JInternalFrame frame = modelItemToInternalFrameMap.get(modelItem);<NEW_LINE>try {<NEW_L...
modelItemToInternalFrameMap.put(modelItem, frame);
314,134
public static String decodeFileName(String encoded) {<NEW_LINE>String str;<NEW_LINE>try {<NEW_LINE>str = URLDecoder.decode(encoded.replace("+", "%2B"), "UTF-8");<NEW_LINE>} catch (Exception e) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>char[<MASK><NEW_LINE>for (int i = 0; i < ch.length; i++) {<NEW...
] ch = encoded.toCharArray();
1,212,330
public ReadableShoppingCart removeShoppingCartItem(String cartCode, Long productId, MerchantStore merchant, Language language, boolean returnCart) throws Exception {<NEW_LINE>Validate.notNull(cartCode, "Shopping cart code must not be null");<NEW_LINE>Validate.notNull(productId, "product id must not be null");<NEW_LINE>...
model.shoppingcart.ShoppingCartItem>();
1,265,616
private void actionsUpdated(boolean forced, @Nonnull List<? extends AnAction> newVisibleActions) {<NEW_LINE>if (forced || !newVisibleActions.equals(myVisibleActions)) {<NEW_LINE>boolean shouldRebuildUI = newVisibleActions.isEmpty() || myVisibleActions.isEmpty();<NEW_LINE>myVisibleActions = newVisibleActions;<NEW_LINE>D...
AUTO_LAYOUT_POLICY && myOrientation == SwingConstants.HORIZONTAL);
571,161
private void pushBeanPropertyReference(ClassWriter classWriter, GeneratorAdapter staticInit, BeanPropertyData beanPropertyData) {<NEW_LINE>staticInit.newInstance(Type.getType<MASK><NEW_LINE>staticInit.dup();<NEW_LINE>pushCreateArgument(beanType.getClassName(), introspectionType, classWriter, staticInit, beanPropertyDat...
(AbstractInitializableBeanIntrospection.BeanPropertyRef.class));
1,811,456
public void process(T image) {<NEW_LINE>Objects.requireNonNull(norm_to_pixel, "You must set norm_to_pixel first");<NEW_LINE>BoofMiscOps.checkTrue(width != <MASK><NEW_LINE>frameID++;<NEW_LINE>observedID.clear();<NEW_LINE>dropped.clear();<NEW_LINE>spawned.clear();<NEW_LINE>spawnable.reset();<NEW_LINE>for (int cloudIdx = ...
0 && height != 0, "You must specify width and height");
5,082
private static SearchSourceBuilder buildExpandSearchSourceBuilder(InnerHitBuilder options, CollapseBuilder innerCollapseBuilder) {<NEW_LINE>SearchSourceBuilder groupSource = new SearchSourceBuilder();<NEW_LINE>groupSource.from(options.getFrom());<NEW_LINE>groupSource.size(options.getSize());<NEW_LINE>if (options.getSor...
).forEach(groupSource::storedField);
295,604
protected String doIt() throws Exception {<NEW_LINE>Optional<MProjectType> projectTypeFromOptiional = Optional.of(new MProjectType(getCtx(), getProjectTypeId(), get_TrxName()));<NEW_LINE>projectTypeFromOptiional.ifPresent(projectTypeFrom -> {<NEW_LINE>projectTypeFrom.getPhases().stream().forEach(fromPhase -> {<NEW_LINE...
setName(fromPhase.getName());
1,703,420
private void upgradeToTls(TunnelRequest tunnelRequest) throws IOException {<NEW_LINE>Platform platform = Platform.get();<NEW_LINE>// Make an SSL Tunnel on the first message pair of each SSL + proxy connection.<NEW_LINE>if (requiresTunnel()) {<NEW_LINE>makeTunnel(tunnelRequest);<NEW_LINE>}<NEW_LINE>// Create the wrapper...
sslSocket, route.address.uriHost);
1,346,925
public void init() throws IOException {<NEW_LINE>LOG.info("Test Inputs: ");<NEW_LINE>LOG.info(" Test Operation: " + operation);<NEW_LINE>LOG.info(" Start time: " + sdf.format(new Date(startTime)));<NEW_LINE>if (!local) {<NEW_LINE>LOG.info(" Number of maps: " + numberOfMaps);<NEW_LINE>}...
config.set("test.nnbench.controldir.name", CONTROL_DIR_NAME);
942,015
public InputConfigurationRequest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputConfigurationRequest inputConfigurationRequest = new InputConfigurationRequest();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
1,317,437
private static Pair<TensorType, TensorAddress> readFirstTensorAddress(TokenBuffer buffer, TensorType sparseType, TensorType originalType) {<NEW_LINE>var typeBuilder = new TensorType.Builder(sparseType.valueType());<NEW_LINE>var rawAddress = new HashMap<String, String>();<NEW_LINE>expectObjectStart(buffer.currentToken()...
dimension(dimension.get());
172,250
private static PackageExport[] parseExportedPackages(final String exportsS) {<NEW_LINE>PackageExport[] exportedPackages = null;<NEW_LINE>if (exportsS.trim().equals("-")) {<NEW_LINE>// NOI18N<NEW_LINE>exportedPackages = EMPTY_EXPORTED_PACKAGES;<NEW_LINE>} else {<NEW_LINE>// NOI18N<NEW_LINE>StringTokenizer tok = new Stri...
String piece = tok.nextToken();
1,191,550
public void play() {<NEW_LINE>try {<NEW_LINE>intro();<NEW_LINE>writer.println("WELCOME TO THE ROULETTE TABLE\n" + "DO YOU WANT INSTRUCTIONS");<NEW_LINE>String instr = reader.readLine();<NEW_LINE>if (!instr.toUpperCase().startsWith("N"))<NEW_LINE>instructions();<NEW_LINE>while (betAndSpin()) {<NEW_LINE>// returns true i...
nextInt(100) + 1));
364,777
public static ListDeviceModelsResponse unmarshall(ListDeviceModelsResponse listDeviceModelsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeviceModelsResponse.setRequestId(_ctx.stringValue("ListDeviceModelsResponse.RequestId"));<NEW_LINE>List<Result> deviceModels = new ArrayList<Result>();<NEW_LINE>for (int i = 0; ...
("ListDeviceModelsResponse.DeviceModels[" + i + "].Description"));
1,730,852
private void runOnNodeWithTaskIfPossible(Task thisTask, GetTaskRequest request, ActionListener<GetTaskResponse> listener) {<NEW_LINE>TransportRequestOptions.Builder builder = TransportRequestOptions.builder();<NEW_LINE>if (request.getTimeout() != null) {<NEW_LINE>builder.withTimeout(request.getTimeout());<NEW_LINE>}<NE...
, ThreadPool.Names.SAME));
1,337,631
// add a structure from a specified path<NEW_LINE>private void addFromFile(J9DDRStructureStore store) throws IOException, StructureMismatchError {<NEW_LINE>String directoryName = opts.get("-d");<NEW_LINE>String structureName = opts.get("-f");<NEW_LINE>String keyString = opts.get("-k");<NEW_LINE>String supersetName = op...
StructureKey key = new StructureKey(keyString);
1,097,057
protected void paintChildren(Graphics g, Rectangle alloc) {<NEW_LINE>int viewAllocX = alloc.x;<NEW_LINE>int viewAllocY = alloc.y;<NEW_LINE>// int viewAllocWidth = alloc.width;<NEW_LINE>// int viewAllocHeight = alloc.height;<NEW_LINE>// get the clip - reuse alloc variable<NEW_LINE>alloc = g.getClipBounds(alloc);<NEW_LIN...
alloc = getChildCoreAllocation(i, alloc);
1,533,798
public Pair<Gradient, INDArray> backpropGradient(INDArray epsilon, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(true);<NEW_LINE>INDArray z = preOutput(true, workspaceMgr);<NEW_LINE>// Shape: [mb, vector, seqLength]<NEW_LINE>INDArray delta = layerConf().getActivationFn().backprop(z, epsilon).getFirst();<NEW...
permute(0, 2, 1);
213,744
protected boolean readSupport(final SocketChannel sc) throws IOException {<NEW_LINE>int len = sc.read(buffer);<NEW_LINE>if (len == 0) {<NEW_LINE>return (false);<NEW_LINE>} else if (len == -1) {<NEW_LINE>throw (new IOException("Connection closed"));<NEW_LINE>}<NEW_LINE>if (buffer.hasRemaining()) {<NEW_LINE>return (true)...
buffer.get()) & 0xff;
1,277,204
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsFo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
751,449
public final void addButton(final ToolWindowStripeButton button, @Nonnull WindowInfoImpl info, @Nonnull Comparator<ToolWindowStripeButton> comparator) {<NEW_LINE>final WindowInfoImpl copiedInfo = info.copy();<NEW_LINE>myId2Button.put(copiedInfo.getId(), (DesktopStripeButton) button);<NEW_LINE>myButton2Info.put((Desktop...
((DesktopStripeButton) button, comparator);
1,150,412
public void markupAsDeletion(org.docx4j.wml.SdtContentBlock cbLeft, javax.xml.transform.Result result, String author, java.util.Calendar date, RelationshipsPart docPartRelsRight) {<NEW_LINE>Writer diffxResult = new StringWriter();<NEW_LINE>try {<NEW_LINE>// Now marshall it<NEW_LINE>JAXBContext jc = Context.jc;<NEW_LINE...
doc, xsltMarkupDelete, transformParameters, result);
161,107
public static synchronized void moveQuickSearch(int fromPosition, int toPosition) {<NEW_LINE>if (fromPosition == toPosition) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean reverse = fromPosition > toPosition;<NEW_LINE><MASK><NEW_LINE>int limit = reverse ? fromPosition - toPosition + 1 : toPosition - fromPosition + 1;<N...
int offset = reverse ? toPosition : fromPosition;
219,631
public void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE>setContentView(R.layout.act_hostlist);<NEW_LINE>setTitle(R.string.title_hosts_list);<NEW_LINE>mListView = findViewById(R.id.list);<NEW_LINE>mListView.setHasFixedSize(true);<NEW_LINE>mListView.setLayoutManager(new LinearLayoutManager(this));...
PreferenceConstants.STICKY_MODIFIERS, PreferenceConstants.YES);
431,279
final GetSchemaResult executeGetSchema(GetSchemaRequest getSchemaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSchemaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,694,532
protected void parseCreateField(ParseContext context, List<IndexableField> fields) throws IOException {<NEW_LINE>XContentParser parser = context.parser();<NEW_LINE>Object value;<NEW_LINE>Number numericValue = null;<NEW_LINE>if (context.externalValueSet()) {<NEW_LINE>value = context.externalValue();<NEW_LINE>} else if (...
(), docValued, stored));
1,475,475
public TargetedSentimentDetectionJobFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TargetedSentimentDetectionJobFilter targetedSentimen...
().unmarshall(context));
1,033,740
private static Map<String, SpanDecorator> loadDecorators() {<NEW_LINE>Map<String, SpanDecorator> result = new HashMap<>();<NEW_LINE>result.put("ahc", new HttpSpanDecorator());<NEW_LINE>result.put("ampq", new MessagingSpanDecorator("ampq"));<NEW_LINE>result.put("aws-s3", new S3SpanDecorator());<NEW_LINE>result.put("aws-...
("vm", new InternalSpanDecorator());
603,155
private Object serializeItem(@Nullable Object value, Object context, @Nonnull SerializationFilter filter) {<NEW_LINE>if (value == null) {<NEW_LINE>LOG.warn("Collection " + myAccessor + " contains 'null' object");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Binding binding = XmlSerializerImpl.getBinding(value.getClass());...
serialize(value, context, filter);
381,642
public static ObjectMetadata parseObjectMetadata(Map<String, String> headers) throws Exception {<NEW_LINE>try {<NEW_LINE>ObjectMetadata objectMetadata = new ObjectMetadata();<NEW_LINE>for (Iterator<String> it = headers.keySet().iterator(); it.hasNext(); ) {<NEW_LINE>String key = it.next();<NEW_LINE>if (key.indexOf(OSSH...
pe.getMessage(), pe);
1,841,984
private void loadNode906() {<NEW_LINE>ServerDiagnosticsSummaryTypeNode node = new ServerDiagnosticsSummaryTypeNode(this.context, Identifiers.ServerType_ServerDiagnostics_ServerDiagnosticsSummary, new QualifiedName(0, "ServerDiagnosticsSummary"), new LocalizedText("en", "ServerDiagnosticsSummary"), LocalizedText.NULL_VA...
.expanded(), true));
1,502,711
public boolean intersects(BoundingBox b) {<NEW_LINE>if (!isValid())<NEW_LINE>return false;<NEW_LINE>// test using SAT (separating axis theorem)<NEW_LINE>float lx = Math.abs(this.cnt.x - b.cnt.x);<NEW_LINE>float sumx = (this.dim.x / 2.0f) + (b.dim.x / 2.0f);<NEW_LINE>float ly = Math.abs(this.cnt.y - b.cnt.y);<NEW_LINE>f...
b.dim.z / 2.0f);
1,568,002
public List<JoinDirectBufferBo> decodeValues(Buffer valueBuffer, ApplicationStatDecodingContext decodingContext) {<NEW_LINE>final <MASK><NEW_LINE>final long baseTimestamp = decodingContext.getBaseTimestamp();<NEW_LINE>final long timestampDelta = decodingContext.getTimestampDelta();<NEW_LINE>final long initialTimestamp ...
String id = decodingContext.getApplicationId();
16,580
private static void loadEnchantments() {<NEW_LINE>int origin = Enchantment.values().length;<NEW_LINE>int size = ForgeRegistries.ENCHANTMENTS<MASK><NEW_LINE>putBool(Enchantment.class, "acceptingNew", true);<NEW_LINE>for (net.minecraft.world.item.enchantment.Enchantment enc : ForgeRegistries.ENCHANTMENTS) {<NEW_LINE>try ...
.getEntries().size();
330,629
protected Object[] asArray() {<NEW_LINE>E.checkState(this.name != null, "User name can't be null");<NEW_LINE>E.checkState(this.password != null, "User password can't be null");<NEW_LINE>List<Object> list = new ArrayList<>(18);<NEW_LINE>list.add(T.label);<NEW_LINE><MASK><NEW_LINE>list.add(P.NAME);<NEW_LINE>list.add(this...
list.add(P.USER);
1,541,537
private List<ByteBuffer> extractVpsSpsPpsFromH265(ByteBuffer csd0byteBuffer) {<NEW_LINE>List<ByteBuffer> byteBufferList = new ArrayList<>();<NEW_LINE>int vpsPosition = -1;<NEW_LINE>int spsPosition = -1;<NEW_LINE>int ppsPosition = -1;<NEW_LINE>int contBufferInitiation = 0;<NEW_LINE>int length = csd0byteBuffer.remaining(...
- ppsPosition] = csdArray[i];
899,253
public boolean deleteProperty(IdentificationType id, String key) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE><MASK><NEW_LINE>MetadataPropertyMappingEntity.LabelMappingId id0 = MetadataPropertyMappingEntity.createId(id, key);<NEW_LINE>MetadataPropertyMappingEntity exi...
var transaction = session.beginTransaction();
354,756
public Comic parseInfo(String html, Comic comic) {<NEW_LINE>Node body = new Node(html);<NEW_LINE>String title = body.text("#ct > div.detail_info > a._btnInfo > p.subj");<NEW_LINE>String cover = body.src("#_episodeList > li > a > div.row > div.pic > img");<NEW_LINE>String update = body.text("#_episodeList > li > a > div...
(body.text("#_informationLayer > div.info_update"));
1,412,196
public static LockedExternalTaskDto fromLockedExternalTask(LockedExternalTask task) {<NEW_LINE>LockedExternalTaskDto dto = new LockedExternalTaskDto();<NEW_LINE>dto.activityId = task.getActivityId();<NEW_LINE>dto.activityInstanceId = task.getActivityInstanceId();<NEW_LINE>dto.errorMessage = task.getErrorMessage();<NEW_...
.priority = task.getPriority();
617,040
protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Dimension dim = getSize();<NEW_LINE>Color c1 = UIManager.getColor("Label.disabledShadow");<NEW_LINE>Color c2 = UIManager.getColor("Label.disabledForeground");<NEW_LINE>ComponentOrientation orientation = getComponentOrientation();<NEW...
int height = dim.height -= 3;
364,547
PNone lutimes(VirtualFrame frame, PosixPath path, Object times, Object ns, int dirFd, @SuppressWarnings("unused") boolean followSymlinks, @Cached UtimeArgsToTimespecNode timespecNode, @Cached SysModuleBuiltins.AuditNode auditNode, @CachedLibrary("getPosixSupport()") PosixSupportLibrary posixLib) {<NEW_LINE>Timeval[] ti...
ns), dirFdForAudit(dirFd));
1,522,006
public void didOpen(DidOpenTextDocumentParams params) {<NEW_LINE>log.info("change arrived: " + params.getTextDocument().getVersion());<NEW_LINE>TextDocumentItem docId = params.getTextDocument();<NEW_LINE>String url = docId.getUri();<NEW_LINE>LanguageId languageId = LanguageId.of(docId.getLanguageId());<NEW_LINE>int ver...
TextDocumentContentChangeEvent change = new TextDocumentContentChangeEvent(text);
1,692,399
public boolean visit(String typeName, JFREvent event) {<NEW_LINE>if (JFRSnapshotGcViewProvider.EVENT_SURVIVOR_CONFIGURATION.equals(typeName)) {<NEW_LINE>// NOI18N<NEW_LINE>try {<NEW_LINE>final StringBuilder s = new StringBuilder();<NEW_LINE>s.append("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");<NE...
))).append("</td></tr>");
1,233,174
public void execute(String[] args, Console console) {<NEW_LINE>if (args.length > 0) {<NEW_LINE>String subCommand = args[0];<NEW_LINE>switch(subCommand) {<NEW_LINE>case SUBCMD_PLAY:<NEW_LINE>if (args.length > 1) {<NEW_LINE>play((String[]) ArrayUtils.subarray(args, 1<MASK><NEW_LINE>} else {<NEW_LINE>console.println("Spec...
, args.length), console);
1,565,278
private String buildStarRegisterPathData(RegisterInfo registerInfo) {<NEW_LINE>Map<String, String<MASK><NEW_LINE>String group = resolveGroup(registerInfo);<NEW_LINE>String version = resolveVersion(registerInfo);<NEW_LINE>StargateURI.Builder builder = new StargateURI.Builder("star", registerInfo.getHost(), registerInfo....
> extraOptions = registerInfo.getExtra();
1,506,122
final StopAppReplicationResult executeStopAppReplication(StopAppReplicationRequest stopAppReplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopAppReplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,445,702
private SortedMap<String, VendorConfiguration> parseVendorConfigurations(NetworkSnapshot snapshot, List<Map<String, String>> keyedConfigurationTexts, ParseVendorConfigurationAnswerElement answerElement, ConfigurationFormat expectedFormat) {<NEW_LINE>_logger.info("\n*** PARSING VENDOR CONFIGURATION FILES ***\n");<NEW_LI...
_settings.getHaltOnParseError(), "Parse configurations");
1,200,563
final DBCluster executeModifyDBCluster(ModifyDBClusterRequest modifyDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,815,852
public ListIdentityResolutionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListIdentityResolutionJobsResult listIdentityResolutionJobsResult = new ListIdentityResolutionJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
)).unmarshall(context));
1,545,307
public Subscriber<Message<String>> createSubscriber(WhiteboxSubscriberProbe<Message<String>> probe) {<NEW_LINE>// Pick a kafka topic name<NEW_LINE>String topicName = "kafka-subscriber-test-" + ++testNo + "-" + testName;<NEW_LINE>// Create the subscriber<NEW_LINE>Map<String, Object> config = new HashMap<>();<NEW_LINE>co...
kafkaAdapterFactory, topicName, "fakeChannelName", kafkaProducer);
1,518,602
public Table executionDisplay(@ShellOption(help = "the job execution id") long id) {<NEW_LINE>JobExecutionResource jobExecutionResource = jobOperations().jobExecution(id);<NEW_LINE>TableModelBuilder<Object> modelBuilder = new TableModelBuilder<>();<NEW_LINE>modelBuilder.addRow().addValue("Key ").addValue("Value ");<NEW...
getJobExecution().getEndTime());
35,573
private JSONObject removed() {<NEW_LINE>JSONArray cards = new JSONArray();<NEW_LINE>JSONArray notes = new JSONArray();<NEW_LINE>JSONArray decks = new JSONArray();<NEW_LINE>Pair<String, Object[]> limAndArgs = usnLim();<NEW_LINE>try (Cursor cur = mCol.getDb().query("SELECT oid, type FROM graves WHERE " + limAndArgs.first...
execute("UPDATE graves SET usn=" + mMaxUsn + " WHERE usn=-1");
619,284
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>mBinding.restaurantButtonBack.setOnClickListener(this);<NEW_LINE>mBinding.fabShowRatingDialog.setOnClickListener(this);<NEW_LINE>String restaurantId = RestaurantDetailFra...
recyclerRatings.setVisibility(View.VISIBLE);
761,230
public void display(boolean verbose, PrintWriter pw) {<NEW_LINE>final NumberFormat nf = new DecimalFormat("0.00");<NEW_LINE>final Set<CollinsRelation> cats = Generics.newHashSet();<NEW_LINE>final Random rand = new Random();<NEW_LINE>cats.addAll(precisions.keySet());<NEW_LINE>cats.<MASK><NEW_LINE>Map<Double, CollinsRela...
addAll(recalls.keySet());
523,695
private double[] calculateProjectionOnRoutePoint(RoutingHelper helper, RotatedTileBox box) {<NEW_LINE>double[] projectionXY = null;<NEW_LINE>Location ll = helper.getLastFixedLocation();<NEW_LINE>RouteCalculationResult route = helper.getRoute();<NEW_LINE>List<Location> locs = route.getImmutableAllLocations();<NEW_LINE>i...
double[] { rX, rY };
1,251,419
public ListDevEndpointsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDevEndpointsResult listDevEndpointsResult = new ListDevEndpointsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,114,899
public AssertStatement convert(org.eclipse.jdt.internal.compiler.ast.AssertStatement statement) {<NEW_LINE>AssertStatement assertStatement <MASK><NEW_LINE>final Expression assertExpression = convert(statement.assertExpression);<NEW_LINE>Expression searchingNode = assertExpression;<NEW_LINE>assertStatement.setExpression...
= new AssertStatement(this.ast);
1,548,329
public void handleMessage(final Message message) {<NEW_LINE>switch(message.what) {<NEW_LINE>case MSG_UPDATE:<NEW_LINE>((BaseObservable) message.obj).sendUpdate();<NEW_LINE>break;<NEW_LINE>case MSG_FIRST_ADDED:<NEW_LINE>((BaseObservable) message.obj).observableActivated();<NEW_LINE>break;<NEW_LINE>case MSG_LAST_REMOVED:...
message.obj).observableDeactivated();
389,816
public void printControlProps(Properties fileProps) {<NEW_LINE>String printme = "";<NEW_LINE>StringBuffer printmebuf = new StringBuffer();<NEW_LINE>printmebuf.append("\n{");<NEW_LINE>for (java.util.Map.Entry<Object, Object> entry : entrySet()) {<NEW_LINE>if (entry.getKey().toString().equals("--password")) {<NEW_LINE>pr...
getValue().toString());
1,490,002
protected Optional<PlanNodeStatsEstimate> doCalculate(TableScanNode node, StatsProvider sourceStats, Lookup lookup, Session session, TypeProvider types) {<NEW_LINE>if (isStatisticsPrecalculationForPushdownEnabled(session) && node.getStatistics().isPresent()) {<NEW_LINE>return node.getStatistics();<NEW_LINE>}<NEW_LINE>/...
outputSymbolStats = new HashMap<>();
1,359,795
public RefactoringPlugin createInstance(AbstractRefactoring refactoring) {<NEW_LINE>if (!(refactoring instanceof WhereUsedQuery)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TreePathHandle handle = refactoring.getRefactoringSource().lookup(TreePathHandle.class);<NEW_LINE>if (handle == null) {<NEW_LINE>return null;<NEW_...
"binary file of no particular interest: {0}", fo.toURI());
64,628
public static void main(String[] args) throws Exception {<NEW_LINE>List<Server> servers = Lists.newArrayList(new Server("www.google.com:80"), new Server("www.examples.com:80"), new Server("www.wikipedia.org:80"));<NEW_LINE>BaseLoadBalancer lb = LoadBalancerBuilder.newBuilder().buildFixedServerListLoadBalancer(servers);...
CountDownLatch(servers.size());
1,200,849
protected void initViews() {<NEW_LINE>super.initViews();<NEW_LINE>avatarImageView.setOnClickListener(view -> {<NEW_LINE>avatarImageView.setEnabled(false);<NEW_LINE>if (ChatSDK.profilePictures() != null) {<NEW_LINE>ChatSDK.profilePictures().startProfilePicturesActivity(this, currentUser.getEntityID());<NEW_LINE>} else {...
addOnOffsetChangedListener(new ProfileViewOffsetChangeListener(avatarImageView));
266,078
public void readRuntimeDeploymentDescriptor(ReadableArchive archive, Application descriptor) throws IOException, SAXParseException {<NEW_LINE>if (descriptor != null) {<NEW_LINE>// each modules first...<NEW_LINE>for (ModuleDescriptor md : descriptor.getModules()) {<NEW_LINE>Archivist archivist = archivistFactory.get().g...
setRuntimeXMLValidationLevel(this.getRuntimeXMLValidationLevel());
721,318
public static URL register(String serviceId) {<NEW_LINE>URL serviceUrl = null;<NEW_LINE>try {<NEW_LINE>registry = SingletonServiceFactory.getBean(Registry.class);<NEW_LINE>if (registry == null)<NEW_LINE>throw new RuntimeException("Could not find registry instance in service map");<NEW_LINE>ServerConfig serverConfig = g...
parameters = new HashMap<>();
1,557,874
public JSONObject searchService(HttpServletRequest request) {<NEW_LINE>String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, StringUtils.EMPTY);<NEW_LINE>String expr = WebUtils.optional(request, "expr", StringUtils.EMPTY);<NEW_LINE>boolean responsibleOnly = Boolean.parseBoolean(WebUtils.optional(re...
"count", services.size());
364,175
public void rotateKey() {<NEW_LINE>KeyAsyncClient keyAsyncClient = createAsyncClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.keys.KeyAsyncClient.rotateKey#String<NEW_LINE>keyAsyncClient.rotateKey("keyName").subscribe(key -> System.out.printf("Rotated key with name: %s and version:%s%n", key.getName(), key.get...
().getVersion()));
852,146
private SeekableStreamDataSourceMetadata<String, String> createDataSourceMetadataWithClosedOrExpiredPartitions(SeekableStreamDataSourceMetadata<String, String> currentMetadata, Set<String> terminatedPartitionIds, String terminationMarker) {<NEW_LINE>final KinesisDataSourceMetadata dataSourceMetadata = (KinesisDataSourc...
newPartitionSequenceNumberMap = new HashMap<>();
1,702,445
final GetBackupPlanFromJSONResult executeGetBackupPlanFromJSON(GetBackupPlanFromJSONRequest getBackupPlanFromJSONRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBackupPlanFromJSONRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(getBackupPlanFromJSONRequest));
1,351,186
public void allow(final int limit) {<NEW_LINE>if (limit == Integer.MAX_VALUE || limit < 0) {<NEW_LINE>this.unlimited = true;<NEW_LINE>this.limit = -1;<NEW_LINE>} else {<NEW_LINE>this.unlimited = false;<NEW_LINE>this.limit = limit;<NEW_LINE>}<NEW_LINE>this.flowController.stopProcessing <MASK><NEW_LINE>if (this.overflowS...
= (this.limit == 0);
1,617,574
public final PrimaryContext namedArgPrimary() throws RecognitionException {<NEW_LINE>PrimaryContext _localctx = new PrimaryContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 254, RULE_namedArgPrimary);<NEW_LINE>try {<NEW_LINE>setState(1542);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LIN...
_errHandler.reportError(this, re);
71,437
public static double[][] rref(double[][] matrix) {<NEW_LINE>double[][] rref = new <MASK><NEW_LINE>for (int i = 0; i < matrix.length; i++) {<NEW_LINE>rref[i] = Arrays.copyOf(matrix[i], matrix[i].length);<NEW_LINE>}<NEW_LINE>int r = 0;<NEW_LINE>for (int c = 0; c < rref[0].length && r < rref.length; c++) {<NEW_LINE>int j ...
double[matrix.length][];
712,981
protected int run(String[] args) {<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>builder.setSpout("spout", new SolrSpout());<NEW_LINE>builder.setBolt("partitioner", new URLPartitionerBolt()).shuffleGrouping("spout");<NEW_LINE>builder.setBolt("fetch", new FetcherBolt()).fieldsGrouping("partitioner",...
localOrShuffleGrouping("indexer", Constants.StatusStreamName);
1,837,500
protected void recordNullReferenceWithAnnotationStatus(LocalVariableBinding local, ASTNode expression, int checkType, FlowInfo nullInfo, NullAnnotationMatching nullAnnotationStatus) {<NEW_LINE>if (this.nullCount == 0) {<NEW_LINE>this.nullLocals = new LocalVariableBinding[5];<NEW_LINE>this.nullReferences = new ASTNode[5...
], 0, this.nullCount);
1,796,511
public static DescribeVmBackupPlansResponse unmarshall(DescribeVmBackupPlansResponse describeVmBackupPlansResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVmBackupPlansResponse.setRequestId(_ctx.stringValue("DescribeVmBackupPlansResponse.RequestId"));<NEW_LINE>describeVmBackupPlansResponse.setSuccess(_ctx.boolean...
+ "].VmInfos[" + j + "].HypervisorId"));
436,630
private static void pack_h_h(ByteList result, ByteList lCurElemString, int occurrences) {<NEW_LINE>int currentByte = 0;<NEW_LINE>int padLength = 0;<NEW_LINE>if (occurrences > lCurElemString.length()) {<NEW_LINE>padLength = occurrences - lCurElemString.length() + 1;<NEW_LINE>occurrences = lCurElemString.length();<NEW_LI...
length() + padLength / 2);
702,713
public StepExecutionFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StepExecutionFilter stepExecutionFilter = new StepExecutionFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
307,793
public Collection<MetadataChangeProposal> apply(@Nonnull final DataJobUpdateInput dataJobUpdateInput, @Nonnull final Urn actor) {<NEW_LINE>final Collection<MetadataChangeProposal> proposals = new ArrayList<>(3);<NEW_LINE>final UpdateMappingHelper updateMappingHelper = new UpdateMappingHelper(DATA_JOB_ENTITY_NAME);<NEW_...
setTime(System.currentTimeMillis());
1,693,231
public void consume(ConnectionContext context, HandshakeMessage message, ByteBuffer buffer) throws IOException {<NEW_LINE>// The consuming happens in client side only.<NEW_LINE>ClientHandshakeContext chc = (ClientHandshakeContext) context;<NEW_LINE>// In response to "max_fragment_length" extension request only<NEW_LINE...
fatal(Alert.ILLEGAL_PARAMETER, "The maximum fragment length response is not requested");
209,605
private static long[] extractTimespec(ThreadContext context, IRubyObject value) {<NEW_LINE>long[] timespec = new long[2];<NEW_LINE>if (value instanceof RubyFloat) {<NEW_LINE>timespec[0] = Platform.IS_32_BIT ? RubyNumeric.num2int(value) : RubyNumeric.num2long(value);<NEW_LINE>double fraction = ((RubyFloat) <MASK><NEW_LI...
value).getDoubleValue() % 1.0;
1,688,029
private Node balance(Node node) {<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!isRed(node)) {<NEW_LINE>if (isRed(node.right)) {<NEW_LINE>node = rotateLeft(node);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>if (isRed(node.left)) {<NEW_LINE>node = rotateLeft(node);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>...
1 + size(node.right);
1,504,683
public StackMapFrame duplicate() {<NEW_LINE>Map<VerificationTypeInfo, VerificationTypeInfo> cache = new HashMap<VerificationTypeInfo, VerificationTypeInfo>();<NEW_LINE>int length = this.locals.length;<NEW_LINE>StackMapFrame result = new StackMapFrame(length);<NEW_LINE>result.numberOfLocals = -1;<NEW_LINE>result.numberO...
] = getCachedValue(cache, verificationTypeInfo);
1,594,419
public void applyParams() {<NEW_LINE>super.applyParams();<NEW_LINE>int lightCount = mLights.size();<NEW_LINE>int dirCount = 0, spotCount = 0, attCount = 0;<NEW_LINE>for (int i = 0; i < lightCount; i++) {<NEW_LINE>ALight light = mLights.get(i);<NEW_LINE>int t = light.getLightType();<NEW_LINE>GLES20.glUniform3fv(muLightC...
light.getColor(), 0);
1,690,039
public String generateCode(UUID playerUuid) {<NEW_LINE>// delete an already existing code if one exists<NEW_LINE>if (getLinkingCodes().values().stream().anyMatch(playerUuid::equals)) {<NEW_LINE>try (final PreparedStatement statement = connection.prepareStatement("delete from " + codesTable + " where `uuid` = ?")) {<NEW...
String.format("%04d", numbers);
825,342
private static void emitSingleNodeEvents(PerStateParams params, List<Event> events, ContentCluster cluster, ClusterState fromState, ClusterState toState, Node n) {<NEW_LINE>final NodeState nodeFrom = fromState.getNodeState(n);<NEW_LINE>final NodeState nodeTo = toState.getNodeState(n);<NEW_LINE>if (!nodeTo.equals(nodeFr...
params.maxMaintenanceGracePeriodTimeMs), params));
931,696
final DescribeContactFlowResult executeDescribeContactFlow(DescribeContactFlowRequest describeContactFlowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeContactFlowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(describeContactFlowRequest));
1,203,604
private static void showLog(int page, boolean specificUser, Sender sender, Paginated<LoggedAction> log) {<NEW_LINE>int maxPage = log.getMaxPages(ENTRIES_PER_PAGE);<NEW_LINE>if (maxPage == 0) {<NEW_LINE>Message.LOG_NO_ENTRIES.send(sender);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (page < 1 || page > maxPage) {<NEW_LINE>M...
log.getPage(page, ENTRIES_PER_PAGE);
589,612
protected void rebalanceForBroker(Broker broker, ClusterModel clusterModel, Set<Goal> optimizedGoals, OptimizationOptions optimizationOptions) {<NEW_LINE>LOG.debug("Rebalancing broker {} [limits] lower: {} upper: {}.", broker.id(), _balanceLowerLimit, _balanceUpperLimit);<NEW_LINE>int numLeaderReplicas = broker.leaderR...
().size() > 0;
1,289,140
public boolean isAvailable() {<NEW_LINE>final int adClientId = Env.getAD_Client_ID(Env.getCtx());<NEW_LINE>if (!Services.get(ISysConfigBL.class).getBooleanValue("UI_EnableBPartnerContextMenu", true, adClientId)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final VEditor editor = getEditor();<NEW_LINE>final <MASK><NEW_L...
GridField gridField = editor.getField();
952,254
public int claim(final LogBufferPartition partition, final int activePartitionId, final ClaimedFragment claim, final int length, final int streamId, final Runnable onComplete) {<NEW_LINE>final int partitionSize = partition.getPartitionSize();<NEW_LINE>final int framedMessageLength = claimedFragmentLength(length);<NEW_L...
onEndOfPartition(partition, frameOffset, activePartitionId);
654,457
private void generateStringsAndDoExperiments(int numberOfStrings, int numberOfCharacters, char[] randomItemsGivenValues) {<NEW_LINE>StdOut.printf("%26s %27s %15s\n", "Random string type | ", "Sort type | ", "Rightmost character accessed");<NEW_LINE>String[] sortAlgorithms = { "Most-Significant-Digit", "3-way string qui...
, sortAlgorithms[MSD_SORT_ID], rightmostCharacterAccessedMSD);
307,208
public boolean wordPattern(String pattern, String s) {<NEW_LINE>String[] ss = s.split(" ");<NEW_LINE>int n = pattern.length();<NEW_LINE>if (n != ss.length) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Map<Character, String> <MASK><NEW_LINE>Map<String, Character> str2c = new HashMap<>();<NEW_LINE>for (int i = 0; i < n; ...
c2str = new HashMap<>();
1,387,050
public static GetStructSyncOrderDetailResponse unmarshall(GetStructSyncOrderDetailResponse getStructSyncOrderDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getStructSyncOrderDetailResponse.setRequestId(_ctx.stringValue("GetStructSyncOrderDetailResponse.RequestId"));<NEW_LINE>getStructSyncOrderDetailResponse.setSu...
(_ctx.stringValue("GetStructSyncOrderDetailResponse.StructSyncOrderDetail.SourceType"));
1,380,413
protected IndentData calculateAlignmentAnchorIndent(@Nonnull Context context) {<NEW_LINE>LeafBlockWrapper offsetResponsibleBlock = context.<MASK><NEW_LINE>if (offsetResponsibleBlock == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final WhiteSpace whiteSpace = offsetResponsibleBlock.getWhiteSpace();<NEW_LINE>if (wh...
alignment.getOffsetRespBlockBefore(context.targetBlock);