idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
872,175
public List<Artifact> findAdditionalInputs(CppCompileAction action, ActionExecutionContext actionExecutionContext, IncludeScanningHeaderData includeScanningHeaderData) throws ExecException, InterruptedException {<NEW_LINE>Preconditions.checkNotNull(includeScannerSupplier, action);<NEW_LINE>Set<Artifact> includes = Sets...
addAll(includeScanningHeaderData.getSystemIncludeDirs());
83,483
// TODO: Move this to a more appropriate mixin<NEW_LINE>@Inject(method = "render", at = @At("RETURN"))<NEW_LINE>public void iris$displayBigSodiumWarning(PoseStack poseStack, float tickDelta, CallbackInfo ci) {<NEW_LINE>if (Iris.isSodiumInstalled() || Minecraft.getInstance().options.renderDebug || !Iris.getCurrentPack()...
int y = 2 + lineHeight * i;
1,322,202
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String mobileNetworkName, String dataNetworkName, 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...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,469,541
private void createUI() {<NEW_LINE>VisTable rightTable = new VisTable(true);<NEW_LINE>rightTable.add(hBar).row();<NEW_LINE>rightTable.add(sBar).row();<NEW_LINE>rightTable.add(vBar).row();<NEW_LINE>rightTable.add();<NEW_LINE>rightTable.row();<NEW_LINE>rightTable.add(rBar).row();<NEW_LINE>rightTable.add(gBar).row();<NEW_...
sizes.scaleFactor).top();
1,494,034
public static Set<String> processTranscriptList(final Set<String> rawTranscriptSet) {<NEW_LINE>if (rawTranscriptSet.size() == 1) {<NEW_LINE>final String filePathString = rawTranscriptSet.iterator().next();<NEW_LINE>try (final BufferedReader bufferedReader = Files.newBufferedReader(IOUtils.getPath(filePathString))) {<NE...
transcriptIdSet = new HashSet<>();
543,810
public void doAdapter() {<NEW_LINE>mSwipeRefreshLayout.post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>mSwipeRefreshLayout.setRefreshing(true);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>posts = new SubredditNames(where, getContext(), SubredditListView.this);<NEW_LINE>adapter = new Subred...
getContext(), true, where);
970,302
public static DescribeDirQuotasResponse unmarshall(DescribeDirQuotasResponse describeDirQuotasResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDirQuotasResponse.setRequestId(_ctx.stringValue("DescribeDirQuotasResponse.RequestId"));<NEW_LINE>describeDirQuotasResponse.setTotalCount(_ctx.integerValue("DescribeDirQuo...
+ "].UserQuotaInfos[" + j + "].UserType"));
481,063
public void initBuffersWithMetaInfo(DbusEventBufferMetaInfo mi) throws DbusEventBufferMetaInfo.DbusEventBufferMetaInfoException {<NEW_LINE>if (mi.isValid()) {<NEW_LINE>_head.setPosition(mi<MASK><NEW_LINE>_tail.setPosition(mi.getLong(DbusEventBufferMetaInfo.BUFFER_TAIL));<NEW_LINE>_currentWritePosition.setPosition(mi.ge...
.getLong(DbusEventBufferMetaInfo.BUFFER_HEAD));
296,405
public static String printFullMessage(ThreadContext context, IRubyObject exception, IRubyObject opts) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>IRubyObject optArg = ArgsUtil.getOptionsArg(runtime, opts);<NEW_LINE>boolean highlight = false;<NEW_LINE>boolean reverse = false;<NEW_LINE>if (!optArg.isNil()) {<NEW_...
, (RubyHash) optArg, FULL_MESSAGE_KEYS);
1,394,250
final CreateByteMatchSetResult executeCreateByteMatchSet(CreateByteMatchSetRequest createByteMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createByteMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
462,057
private Document LoadProjectFileFromController() throws IhcExecption {<NEW_LINE>try {<NEW_LINE>WSProjectInfo projectInfo = getProjectInfo();<NEW_LINE>int numberOfSegments = controllerService.getProjectNumberOfSegments();<NEW_LINE>int segmentationSize = controllerService.getProjectSegmentationSize();<NEW_LINE>logger.deb...
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
381,768
public void eval() {<NEW_LINE>out.buffer = string.buffer;<NEW_LINE>// invalid length.<NEW_LINE>if (length.value == 0 || string.end <= string.start) {<NEW_LINE>out<MASK><NEW_LINE>} else {<NEW_LINE>// Do 1st scan to counter # of character in string.<NEW_LINE>final int charCount = org.apache.drill.exec.expr.fn.impl.String...
.start = out.end = 0;
623,472
public void generateOptimizedStringConcatenation(BlockScope blockScope, CodeStream codeStream, int typeID) {<NEW_LINE>// keep implementation in sync with BinaryExpression and Expression<NEW_LINE>// #generateOptimizedStringConcatenation<NEW_LINE>if (this.referencesTable == null) {<NEW_LINE>super.generateOptimizedStringC...
cursor.implicitConversion & TypeIds.COMPILE_TYPE_MASK);
1,175,285
public static String stableAccumulated(int totalWaitTimeMillis, final long sleepDurationMs) throws InterruptedException, TimeoutException {<NEW_LINE>// We force a unique log entry, and wait for it to ensure the content from the local thread has been flushed.<NEW_LINE>String forcedLogEntry = "forced log entry to help fo...
.current().nextLong();
1,447,276
public CreateCloudFormationChangeSetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateCloudFormationChangeSetResult createCloudFormationChangeSetResult = new CreateCloudFormationChangeSetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
class).unmarshall(context));
1,708,781
public static DescribeGatherLogResultResponse unmarshall(DescribeGatherLogResultResponse describeGatherLogResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatherLogResultResponse.setRequestId(_ctx.stringValue("DescribeGatherLogResultResponse.RequestId"));<NEW_LINE>describeGatherLogResultResponse.setCode(_ct...
("DescribeGatherLogResultResponse.GatherLogResult.InstanceResults[" + i + "].InstanceId"));
1,542,878
public static TraceSchedule parse(String spec) {<NEW_LINE>String[] parts = spec.split(":", 2);<NEW_LINE>if (parts.length > 2) {<NEW_LINE>throw new AssertionError();<NEW_LINE>}<NEW_LINE>final long snap;<NEW_LINE>final Sequence ticks;<NEW_LINE>final Sequence pTicks;<NEW_LINE>try {<NEW_LINE>snap = Long.decode(parts[0]);<N...
.parse(subs[1]);
925,866
public static void assertPeriodCounts(Timeline timeline, int... expectedPeriodCounts) {<NEW_LINE>int windowCount = timeline.getWindowCount();<NEW_LINE>assertThat(windowCount).isEqualTo(expectedPeriodCounts.length);<NEW_LINE>int[] accumulatedPeriodCounts = new int[windowCount + 1];<NEW_LINE>accumulatedPeriodCounts[0] = ...
[i] + expectedPeriodCounts[i];
91,003
public static void init(Context context) {<NEW_LINE>if (sInited) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>InputStream is = context.getAssets().open(COLOR_PATH);<NEW_LINE>byte[] itemData = new byte[is.available()];<NEW_LINE>is.read(itemData);<NEW_LINE>is.close();<NEW_LINE>String json = new String(itemData);...
lip_color = parseJson(jsonObject, "lip_color");
257,482
public void handleMessage(ResourceDeliveryMessage theMessage) throws MessagingException {<NEW_LINE>CanonicalSubscription subscription = theMessage.getSubscription();<NEW_LINE>// Interceptor call: SUBSCRIPTION_BEFORE_REST_HOOK_DELIVERY<NEW_LINE>HookParams params = new HookParams().add(CanonicalSubscription.class, subscr...
> headers = subscription.getHeaders();
731,322
@Description("apoc.mongodb.first(host-or-key,db,collection,query,[compatibleValues=false|true],[extractReferences=false|true],[objectIdAsMap=true|false]) yield value - perform a first operation on mongodb collection")<NEW_LINE>public Stream<MapResult> first(@Name("host") String hostOrKey, @Name("db") String db, @Name("...
+ compatibleValues + "]", e));
976,008
private PackedLongArray performIntervalSample(final PackedLongArray arrayToRecycle) {<NEW_LINE>PackedLongArray inactiveArray = arrayToRecycle;<NEW_LINE>try {<NEW_LINE>recordingPhaser.readerLock();<NEW_LINE>// Make sure we have an inactive version to flip in:<NEW_LINE>if (inactiveArray == null) {<NEW_LINE>if (activeArra...
long now = System.currentTimeMillis();
1,253,501
private void verify(Map<String, Object> result) {<NEW_LINE>LOG.debug("Verifying result...");<NEW_LINE>// domains<NEW_LINE>Map<String, Map<String, Object>> domains = (Map<String, Map<String, Object>>) result.get("domains");<NEW_LINE>for (String domain : domains.keySet()) {<NEW_LINE>Map<String, Object> mBeans = domains.g...
(cache.get(key));
753,925
final BatchGetAccountStatusResult executeBatchGetAccountStatus(BatchGetAccountStatusRequest batchGetAccountStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetAccountStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(batchGetAccountStatusRequest));
863,330
protected void postProcessClass(MetaClass metaClass) {<NEW_LINE>for (MetaProperty property : metaClass.getOwnProperties()) {<NEW_LINE>postProcessProperty(metaClass, property);<NEW_LINE>}<NEW_LINE>Collection<MetaClass> missingDescendants = new HashSet<>(1);<NEW_LINE>findMissingDescendants(metaClass, missingDescendants);...
) metaClass).addAncestor(ancestorMetaClass);
27,272
private static ButtonOptions parseJson(Context context, JSONObject json) {<NEW_LINE>ButtonOptions button = new ButtonOptions();<NEW_LINE>button.id = take(json.optString("id"), "btn" + CompatUtils.generateViewId());<NEW_LINE>button.accessibilityLabel = TextParser.parse(json, "accessibilityLabel");<NEW_LINE>button.text =...
FractionParser.parse(json, "fontSize");
1,240,829
public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>if (callback == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean ok = false;<NEW_LINE>boolean cancelled = false;<NEW_LINE>if (requestCode == IMAGE_PICK_RESULT) {<NEW_LINE>if (resultCode == Activity.RESULT_OK && data != null) {<NEW...
returnCursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);
1,783,794
static String parseFieldsInGeneralPurpose(String rawInformation) throws NotFoundException {<NEW_LINE>if (rawInformation.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Processing 2-digit AIs<NEW_LINE>if (rawInformation.length() < 2) {<NEW_LINE>throw NotFoundException.getNotFoundInstance();<NEW_LINE>}<NEW_LINE...
rawInformation.substring(0, 3);
1,147,320
private void createExtraViewControls() {<NEW_LINE>if (logViewer != null) {<NEW_LINE>logViewer.dispose();<NEW_LINE>logViewer = null;<NEW_LINE>}<NEW_LINE>if (variablesViewer != null) {<NEW_LINE>variablesViewer.dispose();<NEW_LINE>variablesViewer = null;<NEW_LINE>}<NEW_LINE>if (outputViewer != null) {<NEW_LINE>outputViewe...
= new SQLVariablesPanel(folder, this);
1,297,502
public void executeTestLogic(TestExecutionContext ctx) {<NEW_LINE>TestExecutionResources testExecResources = null;<NEW_LINE>try {<NEW_LINE>String beanName = getEnvDefinedBeanName();<NEW_LINE>if (beanName != null && !beanName.trim().isEmpty()) {<NEW_LINE>ctx.getProperties().put("managed.resource.name", beanName);<NEW_LI...
Assert.fail("CMTEJBTestVehicle Caught Exception: " + t);
1,108,283
private static void validateClientAuthenticationOAuth(KafkaClientAuthenticationOAuth auth) {<NEW_LINE>boolean accessTokenCase = auth.getAccessToken() != null;<NEW_LINE>boolean refreshTokenCase = auth.getTokenEndpointUri() != null && auth.getClientId() != null && auth.getRefreshToken() != null;<NEW_LINE>boolean clientSe...
errors = new ArrayList<>();
958,244
public Object execute(final NodeModel node, PrintStream outStream, IFreeplaneScriptErrorHandler errorHandler, ScriptContext scriptContext) {<NEW_LINE>try {<NEW_LINE>if (errorsInScript != null && compileTimeStrategy.canUseOldCompiledScript()) {<NEW_LINE>throw new ExecuteScriptException(errorsInScript.getMessage(), error...
.getCurrentController().getSelection();
516,447
public void loadAnswers(JCas jcas) {<NEW_LINE>List<double[]> values = new <MASK><NEW_LINE>for (Answer a : JCasUtil.select(jcas, Answer.class)) {<NEW_LINE>AnswerFV fv = new AnswerFV(a);<NEW_LINE>values.add(fv.getValues());<NEW_LINE>}<NEW_LINE>for (double[] val : values) for (int i = 0; i < sd.length; i++) sd[i] += Math....
LinkedList<double[]>();
1,069,733
public BatchListIncomingTypedLinksResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchListIncomingTypedLinksResponse batchListIncomingTypedLinksResponse = new BatchListIncomingTypedLinksResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
class).unmarshall(context));
1,136,840
public void dealWithSwitchNode(ASTSwitchNode node) {<NEW_LINE>List<Object> indexList = node.getIndexList();<NEW_LINE>Map<Object, List<Object>> index2BodyList = node.getIndex2BodyList();<NEW_LINE>Iterator<Object> it = indexList.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>// going through all the cases of the sw...
Iterator itBody = body.iterator();
1,588,314
private void openStream() throws IOException {<NEW_LINE>try (AmazonS3Reference clientReference = blobStore.clientReference()) {<NEW_LINE>final GetObjectRequest getObjectRequest = new GetObjectRequest(blobStore.bucket(), blobKey);<NEW_LINE>getObjectRequest.setRequestMetricCollector(blobStore.getMetricCollector);<NEW_LIN...
.currentStream = s3Object.getObjectContent();
1,527,674
protected IDeserializationConverter createInternalConverter(String type) {<NEW_LINE>switch(type.toUpperCase(Locale.ENGLISH)) {<NEW_LINE>case "BOOL":<NEW_LINE>case "BOOLEAN":<NEW_LINE>return val -> new BooleanColumn(Boolean.parseBoolean(val.toString()));<NEW_LINE>case "INT8":<NEW_LINE>case "TINYINT":<NEW_LINE>return val...
((byte[]) val);
1,366,600
public void forceBiome(CompoundTag data, BiomeRegistry.BiomeIdentifier biome) {<NEW_LINE>Integer dataVersion = Helper.intFromCompound(data, "DataVersion");<NEW_LINE>if (dataVersion == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (dataVersion >= 2834) {<NEW_LINE>ListTag<CompoundTag> sections = LegacyHelper.getSection...
level.putIntArray("Biomes", biomes);
1,639,401
private void addStaticInitializer(ClassWriter cw) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_STATIC, "<clinit>", "()V", null, null);<NEW_LINE>mv.visitCode();<NEW_LINE>if (pluginId != null) {<NEW_LINE>mv.visitLdcInsn(pluginId);<NEW_LINE>mv.visitMethodInsn(INVOKESTATIC, "org/glowroot/agent/plugin/api/Agent", "getCo...
"org/glowroot/agent/plugin/api/config/ConfigService", "getBooleanProperty", "(Ljava/lang/String;)Lorg/glowroot/agent/plugin/api/config/BooleanProperty;", true);
1,326,254
private ArrayList<MatOfPoint> findContours(Mat src) {<NEW_LINE>Mat grayImage = null;<NEW_LINE>Mat cannedImage = null;<NEW_LINE>Mat resizedImage = null;<NEW_LINE>double ratio = src.size().height / 500;<NEW_LINE>int height = Double.valueOf(src.size().height / ratio).intValue();<NEW_LINE>int width = Double.valueOf(src.siz...
grayImage, cannedImage, 75, 200);
1,468,405
private void addApplicationCallbackMethods() {<NEW_LINE>if (!this.callbackFunctions.containsKey(applicationClass))<NEW_LINE>return;<NEW_LINE>// Do not try to generate calls to methods in non-concrete classes<NEW_LINE>if (applicationClass.isAbstract())<NEW_LINE>return;<NEW_LINE>if (applicationClass.isPhantom()) {<NEW_LI...
.v().newNopStmt();
1,239,845
public PageResult<ProjectModel> findPageByParam(ProjectByPageRequest model) {<NEW_LINE>Page pageRequest = new Page(model.getPageNo(), model.getPageSize());<NEW_LINE>QueryWrapper<Project> queryWrapper = new QueryWrapper<>();<NEW_LINE>if (StringUtils.isNotEmpty(model.getName())) {<NEW_LINE>queryWrapper.like("name", model...
= new PageResult<ProjectModel>();
143,115
private List<PathElement> parse(String path) {<NEW_LINE>if (path == null) {<NEW_LINE>throw new NullPointerException("path");<NEW_LINE>}<NEW_LINE>final String[] split = path.split(Pattern.quote("."));<NEW_LINE>final List<PathElement> elements = new ArrayList<PathElement>();<NEW_LINE>for (String element : split) {<NEW_LI...
element.substring(index + 1);
1,196,904
public static <E> DiffResult<List<E>> diff(Collection<E> first, Collection<E> second) {<NEW_LINE>if ((first == null || first.isEmpty()) && (second == null || second.isEmpty())) {<NEW_LINE>return new DiffResult<List<E>>(new ArrayList<E>(), new ArrayList<E>());<NEW_LINE>}<NEW_LINE>if (first == null || first.isEmpty()) {<...
new ArrayList<E>(first);
1,216,804
public FlowRegistrar stubFlowRegistrar(ConfigurableListableBeanFactory beanFactory, BatchStubRunner batchStubRunner) {<NEW_LINE>Map<StubConfiguration, Collection<Contract>> contracts = batchStubRunner.getContracts();<NEW_LINE>for (Entry<StubConfiguration, Collection<Contract>> entry : contracts.entrySet()) {<NEW_LINE>S...
abs(matchingContracts.hashCode());
1,146,037
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>boolean isWin32 = "win32".equals(SWT.getPlatform());<NEW_LINE>GridLayoutFactory.fillDefaults().extendedMargins(isWin32 ? 0 : 3, 3, 2, 2).applyTo(composite);<...
items.get(0)));
163,911
public void draw(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, double x, double y) {<NEW_LINE>double h = getHeight(g2);<NEW_LINE>for (Object o : this.markers) {<NEW_LINE>IntervalMarker marker = (IntervalMarker) o;<NEW_LINE>double start = Math.max(marker.getStartValue(), this.axis.getRange().getLowerBound()...
setPaint(marker.getPaint());
180,478
private void validateTensorCell() {<NEW_LINE>wrapIOException(() -> {<NEW_LINE>assertCurrentTokenIs(JsonToken.START_OBJECT);<NEW_LINE>List<String> fieldNameCandidates = new ArrayList<>(Arrays<MASK><NEW_LINE>for (int i = 0; i < 2; i++) {<NEW_LINE>assertNextTokenIs(JsonToken.FIELD_NAME);<NEW_LINE>String fieldName = parser...
.asList(FIELD_ADDRESS, FIELD_VALUE));
1,686,301
private void checkStoredGlassPane() {<NEW_LINE>// remember current glass pane to set back at end of dragging over this compoment<NEW_LINE>if (!DropGlassPane.isOriginalPaneStored() || dropPane == null) {<NEW_LINE>if (DropGlassPane.isOriginalPaneStored()) {<NEW_LINE>// Original panel is stored, but dropPane == null, see ...
comp, comp.isVisible());
1,278,673
public String toJSONString() {<NEW_LINE>JSONObject data = new JSONObject();<NEW_LINE>data.put("shipBaseType", this.getShippingBasisType().name());<NEW_LINE>data.put("shipOptionPriceType", this.getShippingOptionPriceType().name());<NEW_LINE>data.put("shipType", this.getShippingType().name());<NEW_LINE>data.put("shipPack...
put("taxOnShipping", this.taxOnShipping);
1,359,855
public void translate(float velocityX, float velocityY) {<NEW_LINE>if ((velocityX * velocityX + velocityY * velocityY) < EPSILON)<NEW_LINE>return;<NEW_LINE>final float x = getX() + getWidth() / 2f;<NEW_LINE>final float y = getY() + getHeight() / 2f;<NEW_LINE>particleCollided = false;<NEW_LINE>startPoint.set(x, y);<NEW_...
super.translate(velocityX, velocityY);
301,902
public PacketHandler worldDataTrackerHandler(int nbtIndex) {<NEW_LINE>return wrapper -> {<NEW_LINE>EntityTracker tracker = tracker(wrapper.user());<NEW_LINE>CompoundTag registryData = wrapper.get(Type.NBT, nbtIndex);<NEW_LINE>Tag height = registryData.get("height");<NEW_LINE>if (height instanceof IntTag) {<NEW_LINE>int...
.setCurrentWorldSectionHeight(blockHeight >> 4);
1,557,510
char[] nullAnnotatedReadableName(CompilerOptions options) {<NEW_LINE><MASK><NEW_LINE>if (isMemberType()) {<NEW_LINE>nameBuffer.append(enclosingType().nullAnnotatedReadableName(options, false));<NEW_LINE>nameBuffer.append('.');<NEW_LINE>appendNullAnnotation(nameBuffer, options);<NEW_LINE>nameBuffer.append(this.sourceNam...
StringBuffer nameBuffer = new StringBuffer(10);
806,885
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>// populate the tableSet set with the tables you want to operate on<NEW_LINE>final SortedSet<String> tableSet = new TreeSet<>();<NEW_LINE>if (cl.hasOption(optTablePattern.getOpt())) {<NEW_LINE>shellSta...
(optTableName.getOpt()));
1,004,658
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming SOAP Header:" + hdrText);<NEW_LINE>StringReader respMsg = ...
System.out.println("Incoming Client Request as a SOAPMessage:");
1,379,833
public int lastIndexOf(CharSequence subString, int start) {<NEW_LINE>final int subCount = subString.length();<NEW_LINE>start = Math.<MASK><NEW_LINE>if (start < 0) {<NEW_LINE>return INDEX_NOT_FOUND;<NEW_LINE>}<NEW_LINE>if (subCount == 0) {<NEW_LINE>return start;<NEW_LINE>}<NEW_LINE>final char firstChar = subString.charA...
min(start, length - subCount);
1,483,065
// Implementations for KotlinPropertyVisitor.<NEW_LINE>@Override<NEW_LINE>public void visitAnyType(Clazz clazz, KotlinTypeMetadata type) {<NEW_LINE>AssertUtil util = new AssertUtil("Type", reporter, programClassPool, libraryClassPool);<NEW_LINE>if (type.className != null) {<NEW_LINE>util.reportIfNullReference("class \"...
") and typeParamID (" + type.typeParamID + ")");
489,225
static void extractJsonResults(String jsonStr, List<String> topics, Map<String, TopicWorkload> workloads) {<NEW_LINE>try {<NEW_LINE>JSONObject <MASK><NEW_LINE>if (jsonObj == null) {<NEW_LINE>LOGGER.info("Failed to parse C3 result: " + jsonStr);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String topic : topics) {<NEW_LINE...
jsonObj = JSON.parseObject(jsonStr);
1,786,158
public void call(String[] args) throws CmdException {<NEW_LINE>if (args.length == 0)<NEW_LINE>throw new CmdSyntaxError();<NEW_LINE>if (!MC.player.getAbilities().creativeMode)<NEW_LINE>throw new CmdError("Creative mode only.");<NEW_LINE>ItemStack stack = MC.player.getInventory().getMainHandStack();<NEW_LINE>if (!(stack....
nbt.put("CustomPotionEffects", effects);
1,578,117
private List<String> calculateFilenamesForLocale(String basename, Locale locale) {<NEW_LINE>List<String> result = new ArrayList<>();<NEW_LINE>String language = locale.getLanguage();<NEW_LINE>String country = locale.getCountry();<NEW_LINE>String variant = locale.getVariant();<NEW_LINE>StringBuilder temp = new StringBuil...
0, temp.toString());
1,387,718
public void showArticlePwdForm(final RequestContext context) {<NEW_LINE>final String articleId = context.param("articleId");<NEW_LINE>if (StringUtils.isBlank(articleId)) {<NEW_LINE>context.sendError(404);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final JSONObject article = articleQueryService.getArticleById(articleId);<NEW_...
dataModel.put("articleId", articleId);
33,153
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite container = new Composite(composite, SWT.None);<NEW_LINE>GridDataFactory.fillDefaults().grab(true, true).hint(400, 300).applyTo(container);<NEW_LINE>GridLayoutFactory.fill...
Composite(container, SWT.NONE);
328,054
public void run() {<NEW_LINE>// register to Yarn RM<NEW_LINE>try {<NEW_LINE>register();<NEW_LINE>LOG.info("register to rm success");<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOG.fatal("register am to rm failed. " + e);<NEW_LINE>context.getEventHandler().handle(new InternalErrorEvent(context.getApplicationId(), "regist...
.getMessage(), false));
880,139
private static Expression rewriteArrayCreate(NewArray newArrayExpression) {<NEW_LINE>checkArgument(newArrayExpression.getArrayLiteral() == null);<NEW_LINE>if (newArrayExpression.getTypeDescriptor().isUntypedArray()) {<NEW_LINE>if (newArrayExpression.getDimensionExpressions().size() == 1) {<NEW_LINE>Expression dimension...
), newArrayExpression.getTypeDescriptor());
77,646
public static ReadyForServiceResponse unmarshall(ReadyForServiceResponse readyForServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>readyForServiceResponse.setRequestId(_ctx.stringValue("ReadyForServiceResponse.RequestId"));<NEW_LINE>readyForServiceResponse.setCode(_ctx.stringValue("ReadyForServiceResponse.Code"));<...
("ReadyForServiceResponse.Params[" + i + "]"));
874,439
private void initializeFabClickListener(boolean isActionMode) {<NEW_LINE>Intent intent = new Intent(getActivity(), NewConversationActivity.class);<NEW_LINE>if (isRelayingMessageContent(getActivity())) {<NEW_LINE>if (isActionMode) {<NEW_LINE>fab.setOnClickListener(v -> {<NEW_LINE>final Set<Long> selectedChats = getListA...
, getSharedText(getActivity()));
78,417
public void configure(TestElement el) {<NEW_LINE>super.configure(el);<NEW_LINE>ResponseAssertion model = (ResponseAssertion) el;<NEW_LINE>showScopeSettings(model, true);<NEW_LINE>if (model.getCustomFailureMessage() != null) {<NEW_LINE>alternativeFailureMessage.setText(model.getCustomFailureMessage());<NEW_LINE>}<NEW_LI...
setSelected(model.getAssumeSuccess());
1,375,711
public CreateKeyGroupResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateKeyGroupResult createKeyGroupResult = new CreateKeyGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument()) {<NE...
XMLEvent xmlEvent = context.nextEvent();
412,280
public static void createAsset(WebAsset webasset, String userId, Folder parent, boolean isLive) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>webasset.setModDate(new java.util.Date());<NEW_LINE>webasset.setModUser(userId);<NEW_LINE>// persists the webasset<NEW_LINE>HibernateUtil.saveOrUpda...
getIdentifierAPI().save(id);
508,640
public void runMonitorCaptureOnServerCapPoint(String captureId, CapturePhase phase, Map<String, Object> contextParams) {<NEW_LINE>long st = System.currentTimeMillis();<NEW_LINE>Monitor[] monitors = MonitorFactory.instance().getServerCapPointBindMonitors(captureId, phase);<NEW_LINE>if (monitors == null || monitors.lengt...
doCapture(captureId, context, phase);
1,709,058
private void loadLessThan8IntoXMMUnordered(CompilationResultBuilder crb, AMD64MacroAssembler asm, DataSection.Data maskTail, Register arr, Register lengthTail, Register vecArray, Register tmp, Register tmp2) {<NEW_LINE>// array is between 4 and 7 bytes long, load it into a YMM register via two DWORD loads<NEW_LINE>asm....
asm.movdq(vecArray, tmp);
394,441
private static Optional<CoreMap> findBestCoreferentEntityMention(CoreMap em, Annotation ann) {<NEW_LINE>// helper lambda<NEW_LINE>Function<Optional<CoreMap>, Integer> lengthOfOptionalEntityMention = (v) -> v.isPresent() ? v.get().get(CoreAnnotations.TextAnnotation.class).length() : -1;<NEW_LINE>// initialize return val...
get(CoreAnnotations.EntityMentionIndexAnnotation.class);
859,980
private void writeData(DataWriter out, Progress progress) throws IOException {<NEW_LINE>// write entry list<NEW_LINE>List<BundleEntry> entries = bundle.entries();<NEW_LINE>long baseOffset = out.position();<NEW_LINE>out.writeInt(entries.size());<NEW_LINE>List<BundleEntryInfo> entryInfos = new ArrayList<>(entries.size())...
out.position() - baseOffset);
937,928
public static FindAppVersionsResponse unmarshall(FindAppVersionsResponse findAppVersionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>findAppVersionsResponse.setRequestId(_ctx.stringValue("FindAppVersionsResponse.RequestId"));<NEW_LINE>AppVersionList appVersionList = new AppVersionList();<NEW_LINE>appVersionList.setTo...
("FindAppVersionsResponse.AppVersionList.Items[" + i + "].IsSilentUpgrade"));
166,602
public static AssemblyPatternBlock fromString(String str) {<NEW_LINE>if ("[]".equals(str)) {<NEW_LINE>return new AssemblyPatternBlock(0, new byte[0], new byte[0]);<NEW_LINE>}<NEW_LINE>int pos = 0;<NEW_LINE>int offset = 0;<NEW_LINE>// Compute the offset, byte consuming SS:<NEW_LINE>while (str.regionMatches(pos, SHIFT_ST...
] mask = new byte[length];
1,810,617
public void mergomatic(AccumuloClient client, String table, Text start, Text end, long goalSize, boolean force) throws MergeException {<NEW_LINE>try {<NEW_LINE>if (table.equals(MetadataTable.NAME)) {<NEW_LINE>throw new IllegalArgumentException("cannot merge tablets on the metadata table");<NEW_LINE>}<NEW_LINE>List<Size...
Size next = sizeIterator.next();
441,508
private static void removeAllForLocalFile(Context context, File file) {<NEW_LINE>file.delete();<NEW_LINE>String filename;<NEW_LINE>try {<NEW_LINE>filename = file.getCanonicalPath();<NEW_LINE>} catch (IOException e) {<NEW_LINE>Log.w(TAG, "Could not resolve path for " + file.getAbsolutePath(), e);<NEW_LINE>return;<NEW_LI...
long[idsList.size()];
1,132,052
private Optional<SqlType> validateWhenClauses(final List<WhenClause> whenClauses, final Context context) {<NEW_LINE>Optional<SqlType> previousResult = Optional.empty();<NEW_LINE>for (final WhenClause whenClause : whenClauses) {<NEW_LINE>process(whenClause.getOperand(), context);<NEW_LINE>final SqlType operandType = con...
previousResult = Optional.of(resultType);
827,886
public void flushToLocalPropertiesFile() {<NEW_LINE>LOCK.writeLock().lock();<NEW_LINE>// TODO: flush to local file as properties file.<NEW_LINE>try {<NEW_LINE>String agentConfParent = get(AgentConstants.AGENT_CONF_PARENT, AgentConstants.DEFAULT_AGENT_CONF_PARENT);<NEW_LINE>File sourceFile <MASK><NEW_LINE>File targetFil...
= new File(agentConfParent, DEFAULT_CONFIG_FILE);
454,356
private static Single<Response> request(final String method, final String uri, @Nullable final Parameters params, @Nullable final Parameters headers, @Nullable final File cacheFile) {<NEW_LINE>final Builder builder = new Builder();<NEW_LINE>if ("GET".equals(method)) {<NEW_LINE>final HttpUrl.Builder urlBuilder = HttpUrl...
OK_HTTP_CLIENT, builder.build());
594,960
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BpmnEdge.class, BPMNDI_ELEMENT_BPMN_EDGE).namespaceUri(BPMNDI_NS).extendsType(LabeledEdge.class).instanceProvider(new ModelTypeInstanceProvider<BpmnEdge>() {<NEW_LINE><NEW_LINE>public Bpmn...
BpmnLabel.class).build();
535,151
public AVBSFContext initVideoBitstreamFilter(AVCodecParameters codecParameters, AVRational timebase) {<NEW_LINE>AVBitStreamFilter bsfilter = av_bsf_get_by_name(bsfVideoName);<NEW_LINE>videoBsfFilterContext = new AVBSFContext(null);<NEW_LINE>int ret = av_bsf_alloc(bsfilter, videoBsfFilterContext);<NEW_LINE>if (ret < 0) ...
videoBsfFilterContext.par_in(), codecParameters);
432,284
private static List<CompletionItem> createAttributesCompletion(AttachConfigurations attachConfigurations, Map<String, Object> currentAttributes) {<NEW_LINE>List<CompletionItem> completionItems = null;<NEW_LINE>ConfigurationAttributes currentConfiguration = attachConfigurations.findConfiguration(currentAttributes);<NEW_...
CompletionItem ci = new CompletionItem(attrName);
828,859
private void initCatmullRomWayPoints(List<Vector3f> list) {<NEW_LINE>if (CRcontrolPoints == null) {<NEW_LINE>CRcontrolPoints = new ArrayList<Vector3f>();<NEW_LINE>} else {<NEW_LINE>CRcontrolPoints.clear();<NEW_LINE>}<NEW_LINE>int nb = list.size() - 1;<NEW_LINE>if (cycle) {<NEW_LINE>CRcontrolPoints.add(list.get(list.siz...
(list.get(1));
843,497
private final I_C_Order createCompesationOrder(@NonNull final I_C_Flatrate_Term currentTerm, @NonNull final I_C_Contract_Change changeConditions, final Timestamp changeDate) {<NEW_LINE>final I_C_OrderLine currentTermOl = currentTerm.getC_OrderLine_Term();<NEW_LINE>final <MASK><NEW_LINE>final String trxName = InterfaceW...
I_C_Order currentTermOrder = currentTermOl.getC_Order();
1,833,014
private Unit createUnit(Business business, PullResult result, Unit sup, Department org) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>Unit unit = new Unit();<NEW_LINE>emc.beginTransaction(Unit.class);<NEW_LINE>unit.setName(org.getName());<NEW_LINE>unit.setUnique(or...
setSuperior(sup.getId());
968,124
public Request<DisableKeyRequest> marshall(DisableKeyRequest disableKeyRequest) {<NEW_LINE>if (disableKeyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DisableKeyRequest)");<NEW_LINE>}<NEW_LINE>Request<DisableKeyRequest> request = new DefaultRequest<DisableKeyRequest>(d...
setContent(new StringInputStream(snippet));
521,927
public static ExprNode mathGetExpr(ParseTree ctx, Map<Tree, ExprNode> astExprNodeMap, Configuration configurationInformation) {<NEW_LINE>int count = 1;<NEW_LINE>ExprNode base = ASTExprHelper.exprCollectSubNodes(ctx.getChild(0), 0<MASK><NEW_LINE>while (true) {<NEW_LINE>int token = ASTUtil.getAssertTerminatedTokenType(ct...
, astExprNodeMap).get(0);
1,261,789
public Flux<Payload> requestStream(Payload payload) {<NEW_LINE>BinaryRoutingMetadata binaryRoutingMetadata = <MASK><NEW_LINE>GSVRoutingMetadata gsvRoutingMetadata;<NEW_LINE>Integer serviceId;<NEW_LINE>final boolean encodingMetadataIncluded;<NEW_LINE>if (binaryRoutingMetadata != null) {<NEW_LINE>gsvRoutingMetadata = GSV...
binaryRoutingMetadata(payload.metadata());
429,081
public AbstractRuntimeJobEntity copyJobInfo(AbstractRuntimeJobEntity copyToJob, AbstractRuntimeJobEntity copyFromJob) {<NEW_LINE>copyToJob.setDuedate(copyFromJob.getDuedate());<NEW_LINE>copyToJob.setEndDate(copyFromJob.getEndDate());<NEW_LINE>copyToJob.setExclusive(copyFromJob.isExclusive());<NEW_LINE>copyToJob.setExec...
setExceptionMessage(copyFromJob.getExceptionMessage());
1,174,401
private void registerTransactionListener(String beanName, Object bean) {<NEW_LINE>Class<?> clazz = AopProxyUtils.ultimateTargetClass(bean);<NEW_LINE>if (!RocketMQLocalTransactionListener.class.isAssignableFrom(bean.getClass())) {<NEW_LINE>throw new IllegalStateException(clazz + " is not instance of " + RocketMQLocalTra...
annotation.blockingQueueSize())));
437,350
public void exitSummary_address_is_stanza(Summary_address_is_stanzaContext ctx) {<NEW_LINE>Ip ip = toIp(ctx.ip);<NEW_LINE>Ip mask = toIp(ctx.mask);<NEW_LINE>Prefix prefix = Prefix.create(ip, mask);<NEW_LINE>RoutingProtocol sourceProtocol = RoutingProtocol.ISIS_L1;<NEW_LINE>IsisRedistributionPolicy r = new IsisRedistrib...
metric = toInteger(ctx.metric);
1,644,325
private boolean isTtlUpdateEntryValidWhenLatestStateIsDeleteAndRetention(StoreKey key, Offset indexSegmentStartOffset) throws StoreException {<NEW_LINE>boolean valid = false;<NEW_LINE>// A TTL update entry is "valid" if the corresponding PUT is still alive<NEW_LINE>// The PUT entry, if it exists, must be "before" this ...
"does not exist anymore", key, indexSegmentStartOffset, storeId);
909,042
public // 03917<NEW_LINE>MQuery createReportingQuery() {<NEW_LINE>final Properties ctx = getCtx();<NEW_LINE>final MQuery query;<NEW_LINE>//<NEW_LINE>// If we are reporting on a header tab (not detail) we shall use exactly the same items as the user is seeing in Tab (03917)<NEW_LINE>if (Check.isEmpty(getLinkColumnName()...
getWindowNo(), whereExtended, false);
216,920
private void removeClusterAlertsTasks(ClusterState clusterState, Consumer<ExporterResourceStatus> setupListener, List<Runnable> asyncActions, AtomicInteger pendingResponses, List<Exception> errors) {<NEW_LINE>if (canUseWatcher()) {<NEW_LINE>if (state.get() != State.TERMINATED) {<NEW_LINE>final IndexRoutingTable watches...
add(new ElasticsearchException("cannot manage cluster alerts because [.watches] index is not allocated"));
750,686
public void testSetMessageDrivenContext() throws Exception {<NEW_LINE>String deliveryID = "test08";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("MDBTimedCMTBean", 48);<NEW_LINE>// Add a FVTXAResourceImpl for this delivery.<NEW_...
System.out.println("Waiting for results ...");
1,171,166
final ListTargetedSentimentDetectionJobsResult executeListTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest listTargetedSentimentDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTargetedSentimentDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRe...
(super.beforeMarshalling(listTargetedSentimentDetectionJobsRequest));
201,965
public long addTokenBalance(byte[] address, byte[] tokenId, long value) {<NEW_LINE>byte[] <MASK><NEW_LINE>AccountCapsule accountCapsule = getAccount(address);<NEW_LINE>if (accountCapsule == null) {<NEW_LINE>accountCapsule = createAccount(address, Protocol.AccountType.Normal);<NEW_LINE>}<NEW_LINE>long balance = accountC...
tokenIdWithoutLeadingZero = ByteUtil.stripLeadingZeroes(tokenId);
1,831,123
public SRevision convertToSObject(Revision input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SRevision result = new SRevision();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.<MASK><NEW_LINE>result.setId(input.getId());<NEW_LINE>result.s...
setRid(input.getRid());
1,180,279
public void build(String name, ISchematic schematic, Vec3i origin) {<NEW_LINE>this.name = name;<NEW_LINE>this.schematic = schematic;<NEW_LINE>this.realSchematic = null;<NEW_LINE>if (!Baritone.settings().buildSubstitutes.value.isEmpty()) {<NEW_LINE>this.schematic = new SubstituteSchematic(this.schematic, Baritone.settin...
int x = origin.getX();