idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
840,518
public static DescribeNetworkAnalyticsPacketLossResponse unmarshall(DescribeNetworkAnalyticsPacketLossResponse describeNetworkAnalyticsPacketLossResponse, UnmarshallerContext context) {<NEW_LINE>describeNetworkAnalyticsPacketLossResponse.setRequestId(context.stringValue("DescribeNetworkAnalyticsPacketLossResponse.Reque...
("DescribeNetworkAnalyticsPacketLossResponse.PacketLossInfos[" + i + "].Province.ProvinceEn"));
872,297
public void logModifiers(Logger useLogger) {<NEW_LINE>String methodName = "logModifiers";<NEW_LINE>useLogger.logp(Level.FINER, CLASS_NAME, methodName, "Modifiers: BEGIN");<NEW_LINE>Object[] logParms = new Object[] { null, null };<NEW_LINE>Map<String, Integer> i_mapToIterate = ((i_modifiers == null) ? Collections.<Strin...
Integer>emptyMap() : i_modifiers);
487,534
public ListCommitsRequest.Response listCommits(ListCommitsRequest request, RepositoryFunction getRepository, boolean ascending) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>RepositoryEntity repository = getRepository.apply(session);<NEW_LINE>va...
collect(Collectors.toList());
800,098
private void prepareJob(AgentIdentifier agentIdentifier, SCMExtension scmExtension) {<NEW_LINE>goPublisher.reportPreparing();<NEW_LINE>createWorkingDirectoryIfNotExist(workingDirectory);<NEW_LINE>if (!assignment.shouldFetchMaterials()) {<NEW_LINE>goPublisher.taggedConsumeLineWithPrefix(DefaultGoPublisher.PREP, "Skippin...
consumer, workingDirectory, agentIdentifier, scmExtension);
193,528
protected void onBindDialogView(View view) {<NEW_LINE>super.onBindDialogView(view);<NEW_LINE>// Cache the indices so they don't get overwritten by the OnItemSelectedListener handlers.<NEW_LINE>final int category = mCategoryIndex;<NEW_LINE>final int variant = mVariantIndex;<NEW_LINE>mCategory.setAdapter(new ResourceIdLi...
) getContext(), categories));
1,460,017
private void createTransition() {<NEW_LINE>if (!getSkinnable().isIndeterminate())<NEW_LINE>return;<NEW_LINE>final Paint initialColor = arc.getStroke();<NEW_LINE>if (initialColor == null) {<NEW_LINE>arc.setStroke(blueColor);<NEW_LINE>}<NEW_LINE>KeyFrame[] blueFrame = getKeyFrames(0, 0, initialColor == null ? blueColor :...
(), Interpolator.LINEAR));
1,553,485
public static void splitDatafiles(Text midRow, double splitRatio, Map<TabletFile, FileUtil.FileInfo> firstAndLastRows, SortedMap<StoredTabletFile, DataFileValue> datafiles, SortedMap<StoredTabletFile, DataFileValue> lowDatafileSizes, SortedMap<StoredTabletFile, DataFileValue> highDatafileSizes, List<StoredTabletFile> h...
.getValue().getSize();
1,584,543
public void marshall(ListGeofenceResponseEntry listGeofenceResponseEntry, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (listGeofenceResponseEntry.getCreateTime() != null) {<NEW_LINE>java.util.Date createTime = listGeofenceResponseEntry.getCreateTime();<NEW_LINE>jsonWriter....
(DateUtils.formatISO8601Date(createTime));
1,267,884
public static boolean canBeUsedForAuthentication(X509Certificate cert, boolean client) {<NEW_LINE>// KeyUsage is an optional extension which may be used to restrict<NEW_LINE>// the way the key can be used.<NEW_LINE>// https://tools.ietf.org/html/rfc5280#section-4.2.1.3<NEW_LINE>// If this extension is used, we check if...
), client ? "client" : "server");
1,549,847
public JSONObject updateByQuery(String index, JSONObject queryJson, JSONObject updateJson) throws Exception {<NEW_LINE>queryJson = getQueryGrammar.get(queryJson);<NEW_LINE>JSONObject scriptJson = new JSONObject();<NEW_LINE>scriptJson.put("script", new JSONObject());<NEW_LINE>scriptJson.getJSONObject("script").put("para...
, getUpdateScriptSource(updateJson, null));
1,368,819
public void beginFind(String searchString, boolean regex, boolean ignoreCase, FileSystemItem directory, JsArrayString includeFilePatterns, boolean useGitGrep, boolean excludeGitIgnore, JsArrayString excludeFilePatterns, ServerRequestCallback<String> requestCallback) {<NEW_LINE>JSONArray params = new JSONArray();<NEW_LI...
, JSONBoolean.getInstance(ignoreCase));
705,328
private int createSession() throws RuntimeException {<NEW_LINE>String installLocation = String.valueOf(PreferencesHelper.getInstance(getContext()).getInstallLocation());<NEW_LINE>ArrayList<Shell.Command> commandsToAttempt = new ArrayList<>();<NEW_LINE>String customInstallCreateCommand = DbgPreferencesHelper.getInstance...
command = args.remove(0);
701,690
void createBuildContent(String groupId, String version) throws IOException {<NEW_LINE>final String buildContent = getModel().getBuildContent();<NEW_LINE>StringBuilder res = new StringBuilder(buildContent);<NEW_LINE>if (!buildContent.contains("id(\"io.quarkus\")")) {<NEW_LINE>res.append("plugins {");<NEW_LINE>res.append...
()).append("}");
1,630,148
private void newCompact(@Nonnull PersistentHashMapValueStorage newStorage) throws IOException {<NEW_LINE>long started = System.currentTimeMillis();<NEW_LINE>final List<CompactionRecordInfo> infos = new ArrayList<>(10000);<NEW_LINE>traverseAllRecords(new PersistentEnumerator.RecordsProcessor() {<NEW_LINE><NEW_LINE>@Over...
() - started) + " ms");
939,661
// used by union and above<NEW_LINE>static final HllSketch writableWrap(final WritableMemory srcWmem, final boolean checkRebuild) {<NEW_LINE>final int lgConfigK = extractLgK(srcWmem);<NEW_LINE>final TgtHllType tgtHllType = extractTgtHllType(srcWmem);<NEW_LINE>final long minBytes = getMaxUpdatableSerializationBytes(lgCo...
final CurMode curMode = checkPreamble(srcWmem);
446,453
public void visitInsn(final int opcode) {<NEW_LINE>// adds the instruction to the bytecode of the method<NEW_LINE>this.code.putByte(opcode);<NEW_LINE>// update currentBlock<NEW_LINE>// Label currentBlock = this.currentBlock;<NEW_LINE>if (this.currentBlock != null) {<NEW_LINE>if (this.compute == FRAMES) {<NEW_LINE>this....
stackSize + Frame.SIZE[opcode];
1,845,001
public static IndexOrdinalsFieldData build(final IndexReader indexReader, IndexOrdinalsFieldData indexFieldData, CircuitBreakerService breakerService, Logger logger, Function<SortedSetDocValues, ScriptDocValues<?>> scriptFunction) throws IOException {<NEW_LINE>assert indexReader.leaves().size() > 1;<NEW_LINE>long start...
leaves().size()];
884,278
public static QueryRmsDataTopksResponse unmarshall(QueryRmsDataTopksResponse queryRmsDataTopksResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRmsDataTopksResponse.setRequestId(_ctx.stringValue("QueryRmsDataTopksResponse.RequestId"));<NEW_LINE>queryRmsDataTopksResponse.setResultCode(_ctx.stringValue("QueryRmsDataTop...
(_ctx.stringValue("QueryRmsDataTopksResponse.Response.Query"));
70,968
public static BottomTabOptions parse(Context context, TypefaceLoader typefaceManager, JSONObject json) {<NEW_LINE>BottomTabOptions options = new BottomTabOptions();<NEW_LINE>if (json == null)<NEW_LINE>return options;<NEW_LINE>options.text = TextParser.parse(json, "text");<NEW_LINE>options.textColor = ThemeColour.parse(...
, json.optJSONObject("selectedIconColor"));
58,735
protected List<ExtensionsRegistry> loadRegistries() {<NEW_LINE>// there is no identity linked hash map/set, using separate map and list<NEW_LINE>IdentityHashMap<ExtensionsRegistry, Object> registrySet = new IdentityHashMap<>();<NEW_LINE>List<ExtensionsRegistry> allRegistries = new ArrayList<>();<NEW_LINE>List<ClassLoad...
log.debug("Loading JasperReports extension properties resource " + url);
385,320
public static InstanceDefinitions<deque> definitions() {<NEW_LINE>return new InstanceDefinitions<deque>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public <T, R> Functor<deque> functor() {<NEW_LINE>return DequeXInstances.functor();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public <T> Pure<deque> unit() {<NEW_LINE>...
some(DequeXInstances.monadPlus());
490,226
public void sendKeys(CharSequence... keysToSend) {<NEW_LINE>if (keysToSend == null || keysToSend.length == 0) {<NEW_LINE>throw new IllegalArgumentException("Keys to send should be a not null CharSequence");<NEW_LINE>}<NEW_LINE>for (CharSequence cs : keysToSend) {<NEW_LINE>if (cs == null) {<NEW_LINE>throw new IllegalArg...
(Collectors.joining("\n"));
1,459,179
public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>pw.item(RelDrdsWriter.REL_NAME, "MemSort");<NEW_LINE>assert fieldExps.size() == collation.getFieldCollations().size();<NEW_LINE>if (pw.nest()) {<NEW_LINE>pw.item("collation", collation);<NEW_LINE>} else {<NEW_LINE>List<String> sortList = new ArrayList<Str...
>(fieldExps.size());
1,225,028
public void marshall(Stage stage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (stage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(stage.getAccessLogSettings(), ACCESSLOGSETTINGS_BINDING);<NEW_LINE>pr...
stage.getLastUpdatedDate(), LASTUPDATEDDATE_BINDING);
1,721,443
final CreateChangeSetResult executeCreateChangeSet(CreateChangeSetRequest createChangeSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createChangeSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,534,196
public static double distance(String s1, String s2, WeightEstimator weight) {<NEW_LINE>int s1len = s1.length();<NEW_LINE>if (s1len == 0)<NEW_LINE>return estimateCharacters(s2, weight);<NEW_LINE>if (s2.length() == 0)<NEW_LINE>return estimateCharacters(s1, weight);<NEW_LINE>// we use a flat array for better performance. ...
, s2.charAt(ix2));
231,412
public void read(org.apache.thrift.protocol.TProtocol prot, getTableConfiguration_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(2);<NEW_LINE>if (incom...
>(2 * _map80.size);
374,633
private static void annotateBytecode(InputStream is, OutputStream os, MethodParamAnnotations nonnullParams, MethodReturnAnnotations nullableReturns, String nullableDesc, String nonnullDesc) throws IOException {<NEW_LINE>ClassReader cr = new ClassReader(is);<NEW_LINE>ClassWriter cw = new ClassWriter(0);<NEW_LINE>ClassNo...
visitParameterAnnotation(paramNum, nonnullDesc, visible);
1,202,650
private static void putMineral(CommandContext<CommandSourceStack> context, ColumnPos pos) {<NEW_LINE>CommandSourceStack sender = context.getSource();<NEW_LINE>MineralMix mineral = context.getArgument("mineral", MineralMix.class);<NEW_LINE>int radius = IntegerArgumentType.getInteger(context, "radius");<NEW_LINE>if (mine...
).dimension(), vein);
140,786
private void initTables() {<NEW_LINE>// Create custom tablerow-sorter for sorting certain table rows that<NEW_LINE>// might contain german umlauts<NEW_LINE>setCustomTableRowSorter(jTableAuthors, 0);<NEW_LINE>setCustomTableRowSorter(jTableKeywords, 0);<NEW_LINE>setCustomTableRowSorter(jTableTitles, 1);<NEW_LINE>setCusto...
setGridColor(settings.getTableGridColor());
1,291,504
public void initialize() {<NEW_LINE>try {<NEW_LINE>program = new GlUtil.Program(context, /* vertexShaderFilePath= */<NEW_LINE>"bitmap_overlay_video_processor_vertex.glsl", /* fragmentShaderFilePath= */<NEW_LINE>"bitmap_overlay_video_processor_fragment.glsl");<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new Illega...
.GL_TEXTURE_2D, textures[0]);
1,605,686
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>// TODO final String todo64 = "";<NEW_LINE>TranslationHelpers.checkTranslationArguments(<MASK><NEW_LINE>final IOperandTreeNode targetR...
environment, instruction, instructions, "ll");
1,686,625
public static void main(String[] args) throws Exception {<NEW_LINE>FlameGraph fg = new FlameGraph(args);<NEW_LINE>if (fg.input == null) {<NEW_LINE>System.out.println("Usage: java " + jfr2flame.class.getName() + " [options] input.jfr [output.html]");<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("options in...
.threadStates, "STATE_RUNNABLE") : -1;
1,115,957
private List<String> printJsBundleData(TreeLogger logger, SourceWriter w, ConnectorBundle bundle, String methodName) {<NEW_LINE>SplittingSourceWriter writer = new <MASK><NEW_LINE>Set<Property> needsProperty = bundle.getNeedsProperty();<NEW_LINE>for (Property property : needsProperty) {<NEW_LINE>writer.println("var data...
SplittingSourceWriter(w, methodName, 30000);
83,661
public DoubleArray presentValueSensitivityModelParamsHullWhite(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider) {<NEW_LINE>validate(swaption, ratesProvider, hwProvider);<NEW_LINE>ResolvedSwap swap = swaption.getUnderlying();<NEW_LINE>LocalDate exp...
] discountedCashFlow = new double[nPayments];
526,063
private static void processMasterNoDataNode(Terminal terminal, Path[] dataPaths, Environment env) throws IOException {<NEW_LINE>NodeEnvironment.NodePath[] nodePaths = toNodePaths(dataPaths);<NEW_LINE>terminal.println(Terminal.Verbosity.VERBOSE, "Collecting shard data paths");<NEW_LINE>List<Path> shardDataPaths = NodeEn...
Path> indexPaths = uniqueParentPaths(shardDataPaths);
1,477,996
public FindName FindName(String name, int hashVal, short maxResult) {<NEW_LINE>Pointer p = Ole32.INSTANCE.CoTaskMemAlloc((name.length() + 1L) * Native.WCHAR_SIZE);<NEW_LINE>WTypes.LPOLESTR olestr = new WTypes.LPOLESTR(p);<NEW_LINE>olestr.setValue(name);<NEW_LINE>ULONG lHashVal = new ULONG(hashVal);<NEW_LINE>USHORTByRef...
Ole32.INSTANCE.CoTaskMemFree(p);
820,626
public static GetPredictiveJobGroupResponse unmarshall(GetPredictiveJobGroupResponse getPredictiveJobGroupResponse, UnmarshallerContext context) {<NEW_LINE>getPredictiveJobGroupResponse.setRequestId<MASK><NEW_LINE>getPredictiveJobGroupResponse.setSuccess(context.booleanValue("GetPredictiveJobGroupResponse.Success"));<N...
(context.stringValue("GetPredictiveJobGroupResponse.RequestId"));
1,096,292
private boolean processPayment(HttpServletRequest request, Properties ctx, MPayment payment, WebUser wu, WebOrder wo) {<NEW_LINE>boolean ok = processParameter(request, ctx, payment, wu);<NEW_LINE>if (ok) {<NEW_LINE>// if negative amount - make it positive<NEW_LINE>if (payment.getPayAmt().compareTo(Env.ZERO) < 0)<NEW_LI...
ctx, payment, wu, wo);
57,427
private Range calculateRangeBinaryOp(Node leftNode, Node rightNode, NumericalBinaryOps op, TransferInput<CFValue, CFStore> p) {<NEW_LINE>if (TypesUtils.isIntegralPrimitive(leftNode.getType()) && TypesUtils.isIntegralPrimitive(rightNode.getType())) {<NEW_LINE>Range leftRange = getIntRange(leftNode, p);<NEW_LINE>Range <M...
rightRange = getIntRange(rightNode, p);
1,095,422
public void marshall(ProvisionedProductPlanSummary provisionedProductPlanSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (provisionedProductPlanSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
provisionedProductPlanSummary.getPlanType(), PLANTYPE_BINDING);
318,398
private boolean applyObject(String[] row, FileTab fileTab, boolean isConfig, int linesToIgnore, boolean isTabConfig) throws AxelorException {<NEW_LINE>int rowIndex = isConfig ? (isTabConfig ? 1 : 0) : 0;<NEW_LINE>if (isTabConfig && row[0] != null) {<NEW_LINE>rowIndex = 0;<NEW_LINE>isTabWithoutConfig = true;<NEW_LINE>}<...
.get(IExceptionMessage.ADVANCED_IMPORT_4));
737,025
public void run() {<NEW_LINE>JTextComponent lastFocused = EditorRegistry.lastFocusedComponent();<NEW_LINE>if (lastFocused != null) {<NEW_LINE>// NOI18N<NEW_LINE>lastFocused.getDocument().putProperty(SimpleValueNames.TEXT_LINE_WRAP, "");<NEW_LINE>// NOI18N<NEW_LINE>lastFocused.getDocument().<MASK><NEW_LINE>// NOI18N<NEW...
putProperty(SimpleValueNames.TAB_SIZE, "");
1,837,687
public EncryptionConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EncryptionConfig encryptionConfig = new EncryptionConfig();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
int originalDepth = context.getCurrentDepth();
1,704,181
public HeartbeatSvgGraph display(HeartbeatReport report, String ip) {<NEW_LINE>if (report == null) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>Machine machine = report.getMachines().get(ip);<NEW_LINE>if (machine == null) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>List<Period> periods = machine.getPeriods();<NEW_LINE>i...
.getValue().getValue();
1,048,634
public void saveGraph() {<NEW_LINE>soundMeter.csvLogger.prepareLogFile();<NEW_LINE>soundMeter.csvLogger.writeMetaData(getResources().getString(R.string.lux_meter));<NEW_LINE>soundMeter.csvLogger.writeCSVFile(CSV_HEADER);<NEW_LINE>for (SoundData soundData : soundMeter.recordedSoundData) {<NEW_LINE>soundMeter.csvLogger.w...
Bitmap b = view.getDrawingCache();
1,771,632
private ComplexEventChunk<StreamEvent> createAggregateSelectionEventChunk(ComplexEventChunk<StreamEvent> complexEventChunkToHoldMatches, List<ExpressionExecutor> outputExpressionExecutors) {<NEW_LINE>ComplexEventChunk<StreamEvent> aggregateSelectionComplexEventChunk = new ComplexEventChunk<>();<NEW_LINE><MASK><NEW_LINE...
StreamEvent resetEvent = streamEventFactoryForTableMeta.newInstance();
1,394,815
/*<NEW_LINE>* CPython's version of this accepts any object and casts, but all Python-level callers use<NEW_LINE>* argument clinic to convert the name first. The only exeption is<NEW_LINE>* PyImport_ImportFrozenModuleObject, which we don't expose as C API and handle differently_<NEW_LINE>*/<NEW_LINE>private static Froze...
module = FrozenModules.lookup(name);
399,644
// --------<NEW_LINE>private static ShexSchema parse$(ShExJavacc parser, String sourceURI, String baseURI, Context context) {<NEW_LINE>ParserProfile profile = new ParserProfileStd(RiotLib.factoryRDF(), ErrorHandlerFactory.errorHandlerStd, IRIxResolver.create(baseURI).build(), PrefixMapFactory.create(<MASK><NEW_LINE>// ...
), context, false, false);
682,102
public static void main(String[] args) {<NEW_LINE>CircularBinarySearch cbs = new CircularBinarySearch();<NEW_LINE>int[] arr = { 7, 10, 8, 5, 2, 3, 5 };<NEW_LINE>System.out.print(cbs.search(arr));<NEW_LINE>int[] arr1 = { 5, 8, 10, 7, 5, 3, 2 };<NEW_LINE>System.out.print(cbs.search(arr1));<NEW_LINE>int[] arr2 = { 3, 5, 7...
(cbs.search(arr3));
1,806,151
private boolean internalDisconnect(final int reason) {<NEW_LINE>userDisconnected = true;<NEW_LINE>initialConnection = false;<NEW_LINE>ready = false;<NEW_LINE>final BluetoothGatt gatt = bluetoothGatt;<NEW_LINE>if (gatt != null) {<NEW_LINE>final boolean wasConnected = connected;<NEW_LINE>connectionState = BluetoothGatt.S...
-> o.onDeviceDisconnecting(device));
316,694
public void visitTag(Tag parseTag, IParseDictionary parseDictionary) throws LogParseException {<NEW_LINE>String currentMethod = null;<NEW_LINE>String holder = null;<NEW_LINE>List<Tag<MASK><NEW_LINE>for (Tag child : allChildren) {<NEW_LINE>String tagName = child.getName();<NEW_LINE>Map<String, String> attrs = child.getA...
> allChildren = parseTag.getChildren();
1,193,007
private static Map<String, Object> flatten(Map<String, Object> map, List<String> required, String parentName) {<NEW_LINE>Map<String, Object> result = new TreeMap<>();<NEW_LINE>for (Map.Entry<String, Object> current : map.entrySet()) {<NEW_LINE>Map<String, Object> finalValue = (Map<String, Object>) current.getValue();<N...
Object>) current.getValue();
996,002
public void characters(char[] ch, int start, int length) throws SAXException {<NEW_LINE>String text = new String(ch, start, length);<NEW_LINE>if (length == 1) {<NEW_LINE>if (StringUtils.equals("&", text)) {<NEW_LINE>char[] escape = "&amp;".toCharArray();<NEW_LINE>super.characters(escape, start, escape.length);<NEW_LINE...
] escape = "&gt;".toCharArray();
332,557
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");
896,549
public Request<DescribeLanguageModelRequest> marshall(DescribeLanguageModelRequest describeLanguageModelRequest) {<NEW_LINE>if (describeLanguageModelRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeLanguageModelRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeLangu...
setContent(new StringInputStream(snippet));
1,233,399
private void populateAttributes() {<NEW_LINE>this.addedAttributes = new JdiModelTargetAttributesContainer(this, "Attributes");<NEW_LINE>Map<String, Object> attrs = new HashMap<>();<NEW_LINE>attrs.put("isEnumConstant", field.isEnumConstant());<NEW_LINE>attrs.put("isFinal", field.isFinal());<NEW_LINE>try {<NEW_LINE>attrs...
"isVolatile", field.isVolatile());
594,359
protected Map<String, GroupInfo> createGroupInfos() {<NEW_LINE>HashMap<String, GroupInfo> groupInfos <MASK><NEW_LINE>groupInfos.put("aggregate_report_min", createMinGroupInfo());<NEW_LINE>groupInfos.put("aggregate_report_max", createMaxGroupInfo());<NEW_LINE>groupInfos.put("aggregate_report_median", createMedianGroupIn...
= new HashMap<>(8);
1,270,371
protected List<Element> expandDateMonth(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp <MASK><NEW_LINE>Matcher reMatcher = reMonth.matcher(s);<NEW_LINE>boolean found = reMatcher.find();<NEW_LINE>// month == (0)1, (0)2, ... , 12<NEW_LINE>int monthType = 1;<NEW_LINE>if (!found) {<NEW_LINE>reMatcher = reMonthwo...
= new ArrayList<Element>();
160,025
private boolean canSetEnableSetupConfig(VirtualMachineMO vmMo, VirtualMachineTO virtualMachine) {<NEW_LINE>if (virtualMachine.isEnterHardwareSetup()) {<NEW_LINE>VirtualMachineBootOptions bootOptions = new VirtualMachineBootOptions();<NEW_LINE>VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();<NEW_L...
, virtualMachine.getName()));
899,441
private Mono<Response<CertificateInner>> updateWithResponseAsync(String resourceGroupName, String name, CertificatePatchResource certificateEnvelope, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requi...
this.client.mergeContext(context);
1,706,538
private IMaterial loadMaterial(ResourceLocation materialId, JsonObject jsonObject, Map<MaterialId, MaterialId> redirects) {<NEW_LINE>try {<NEW_LINE>MaterialJson materialJson = GSON.fromJson(jsonObject, MaterialJson.class);<NEW_LINE>// condition<NEW_LINE>ICondition condition = materialJson.getCondition();<NEW_LINE>if (c...
equals(materialJson.getCraftable());
228,009
static PartitionSchema pbToPartitionSchema(Common.PartitionSchemaPB pb, Schema schema) {<NEW_LINE>List<Integer> rangeColumns = pbToIds(pb.<MASK><NEW_LINE>PartitionSchema.RangeSchema rangeSchema = new PartitionSchema.RangeSchema(rangeColumns);<NEW_LINE>ImmutableList.Builder<PartitionSchema.HashBucketSchema> hashBucketSc...
getRangeSchema().getColumnsList());
281,541
public static void init(String[] args) {<NEW_LINE>magiskVersionCode = Integer.parseInt(args[0]);<NEW_LINE>magiskTmpfsPath = args[1];<NEW_LINE>if (args.length > 2) {<NEW_LINE>originalNativeBridge = args[2];<NEW_LINE>} else {<NEW_LINE>originalNativeBridge = "0";<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>isSELinuxEnforcing = has...
(magiskDir, "system/lib"), magiskDir);
4,155
public void processElement(ProcessContext context) {<NEW_LINE>FailsafeElement<String, String> element = context.element();<NEW_LINE>String jsonString = element.getPayload();<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>JsonNode rowObj;<NEW_LINE>try {<NEW_LINE>rowObj = mapper.readTree(jsonString);<NEW_LIN...
LOG.debug("Output Data: {}", jsonString);
1,820,928
private static boolean areFieldSetsTheSame(List<Set<ExecutableNormalizedField>> listOfSets) {<NEW_LINE>if (listOfSets.size() == 0 || listOfSets.size() == 1) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Set<ExecutableNormalizedField> first = listOfSets.get(0);<NEW_LINE>Iterator<Set<ExecutableNormalizedField><MASK><NEW_LI...
> iterator = listOfSets.iterator();
1,388,877
GraphQLEnumType buildEnumType(BuildContext buildCtx, EnumTypeDefinition typeDefinition) {<NEW_LINE>GraphQLEnumType.Builder builder = GraphQLEnumType.newEnum();<NEW_LINE>builder.definition(typeDefinition);<NEW_LINE>builder.name(typeDefinition.getName());<NEW_LINE>builder.description(buildDescription(typeDefinition, type...
, buildCtx.getComparatorRegistry()));
733,171
static Component onCreateLayout(ComponentContext c, @State boolean shown) {<NEW_LINE>return Row.create(c).heightPercent(100).child(Row.create(c).child(SolidColor.create(c).widthDip(90).heightDip(40).transitionKey(YELLOW_KEY).color(Color.YELLOW)).child(SolidColor.create(c).widthDip(90).heightDip(40).transitionKey(BLUE_K...
YogaAlign.FLEX_START).build();
154,703
//<NEW_LINE>private void showRequestValues(HttpServletRequest servletRequest, HttpServletResponse servletResponse, PrintWriter responseWriter) {<NEW_LINE>Enumeration<String> headerNames = servletRequest.getHeaderNames();<NEW_LINE>while (headerNames.hasMoreElements()) {<NEW_LINE>String headerName = headerNames.nextEleme...
headerName + " ] [ " + headerValue + " ]");
1,476,404
private boolean isDropAcceptable(final DropTargetDropEvent event, int dropAction) {<NEW_LINE>if (!event.isDataFlavorSupported(MindMapNodesSelection.mindMapNodeObjectsFlavor))<NEW_LINE>return dropAction != DnDConstants.ACTION_LINK;<NEW_LINE>final List<NodeModel> droppedNodes;<NEW_LINE>try {<NEW_LINE>final Transferable t...
.getNodeView().getModel();
804,826
//<NEW_LINE>@Override<NEW_LINE>public int processFromScratch(ClassSource_Streamer streamer) throws ClassSource_Exception {<NEW_LINE>String methodName = "processFromScratch";<NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.logp(Level.FINER, CLASS_NAME, methodName, "[ {0} ] ENTER", getHashText());<NEW_LINE...
scan(streamer, i_nextClassName, nextResourceName);
297,083
public static DescribeRecordsResponse unmarshall(DescribeRecordsResponse describeRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRecordsResponse.setRequestId(_ctx.stringValue("DescribeRecordsResponse.RequestId"));<NEW_LINE>describeRecordsResponse.setPageSize(_ctx.longValue("DescribeRecordsResponse.PageSiz...
(_ctx.stringValue("DescribeRecordsResponse.NextStartTime"));
296,256
// LongFloatVector<NEW_LINE>private static void serializeLongFloatVector(ByteBuf out, LongFloatVector vector) {<NEW_LINE>LongFloatVectorStorage storage = vector.getStorage();<NEW_LINE>if (storage.isSparse()) {<NEW_LINE>serializeInt(out, SPARSE_STORAGE_TYPE);<NEW_LINE>serializeInt(out, storage.size());<NEW_LINE>ObjectIt...
getStorage().getClass());
369,449
public Map<String, StorageAlertInfo> sortAlertInfos(Map<String, StorageAlertInfo> alertInfos) {<NEW_LINE>Map<String, StorageAlertInfo> results = new LinkedHashMap<String, StorageAlertInfo>();<NEW_LINE>for (Entry<String, StorageAlertInfo> entry : alertInfos.entrySet()) {<NEW_LINE>StorageAlertInfo alertInfo = entry.getVa...
(results, new MinuteComparator());
1,311,149
void drawMessage(Graphics2D g2d) {<NEW_LINE>if (promptMsg == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>g2d.setFont(fontMsg);<NEW_LINE>g2d.setColor(new Color(1f, 1f, 1f, 1));<NEW_LINE>int sw = g2d.getFontMetrics().stringWidth(promptMsg);<NEW_LINE>int sh = g2d.getFontMetrics().getMaxAscent();<NEW_LINE>Rectangle ubound...
drawString(promptMsg, cx, cy);
97,499
private static ResultCursor handleExplainSimple(ExecutionContext executionContext, ExecutionPlan executionPlan) {<NEW_LINE>String logicalPlanString = RelOptUtil.dumpPlan("", executionPlan.getPlan(), <MASK><NEW_LINE>if (executionPlan.getAst() != null) {<NEW_LINE>if (SqlKind.SUPPORT_DDL.contains(executionPlan.getAst().ge...
SqlExplainFormat.TEXT, SqlExplainLevel.NO_ATTRIBUTES);
1,206,974
private void addDeprecationHeaders(SparkSpringController controller) {<NEW_LINE>boolean isDeprecated = controller.getClass().isAnnotationPresent(DeprecatedAPI.class);<NEW_LINE>if (!isDeprecated) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DeprecatedAPI deprecated = controller.getClass().getAnnotation(DeprecatedAPI.class);<N...
(req, res, deprecated));
183,689
public JsonArrayBuilder handleDirectory(DataverseRequest dataverseRequest, File dir, ImportUtil.ImportType importType, PrintWriter validationLog, PrintWriter cleanupLog, Boolean createDV) throws ImportException {<NEW_LINE>JsonArrayBuilder status = Json.createArrayBuilder();<NEW_LINE>Dataverse owner = dataverseService.f...
file, importType, validationLog, cleanupLog);
1,662,926
private void buildCommonVitalityImages() {<NEW_LINE>boolean canBuildStandalone = canBuildStandAlone();<NEW_LINE>if (canBuildStandalone && viPopout == null) {<NEW_LINE>// clone-able/popout-able<NEW_LINE>viPopout = addVitalityImage("popout_window");<NEW_LINE>viPopout.setToolTip(MessageText.getString("label.pop.out"));<NE...
SWT.MAX | SWT.DIALOG_TRIM);
1,319,666
final void fireFileDeletedEvent(final boolean expected) {<NEW_LINE>Statistics.StopWatch stopWatch = Statistics.getStopWatch(Statistics.LISTENERS_CALLS);<NEW_LINE>stopWatch.start();<NEW_LINE>FileObject p = getExistingParent();<NEW_LINE>// getExistingParent();<NEW_LINE>final BaseFileObj parent = (BaseFileObj) ((p instanc...
parent, this, expected, 0);
1,005,916
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>final int themeRes = nightMode ? R.style<MASK><NEW_LINE>mainView = View.inflate(new ContextThemeWrapper(getContext(), themeRes), R.layout.fragment_marker_add_group_bottom_sheet_dialog, null);<NEW_LINE>final RecyclerView recyclerView = mainView.findViewBy...
.OsmandDarkTheme : R.style.OsmandLightTheme;
650,705
public List<Chapter> parseChapter(String html, Comic comic, Long sourceComic) {<NEW_LINE>List<Chapter> list = new LinkedList<>();<NEW_LINE>try {<NEW_LINE>int k = 0;<NEW_LINE>for (Node node : new Node(ChapterHtml).list("div.catalog-list > ul > li")) {<NEW_LINE>String title = node.text("a");<NEW_LINE>String path = node.a...
, sourceComic, title, path));
668,055
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.springframework.hateoas.MethodLinkBuilderFactory#linkTo(java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public WebMvcLinkBuilder linkTo(Object invocationValue) {<NEW_LINE>Function<String, UriComponentsBuilder> builderFactory = mapping -> UriComponentsBuilderFact...
getBuilder().path(mapping);
1,575,960
private Optional<RepresentationModel<?>> doWithReferencedProperty(RootResourceInformation resourceInformation, Serializable id, String propertyPath, Function<ReferencedProperty, RepresentationModel<?>> handler, HttpMethod method) throws Exception {<NEW_LINE>ResourceMetadata metadata = resourceInformation.getResourceMet...
getProperty(property), accessor));
1,078,196
public void update(short siteId, long contentId, Long userId, List<CmsContentProduct> products) {<NEW_LINE>Set<Long> <MASK><NEW_LINE>if (CommonUtils.notEmpty(products)) {<NEW_LINE>for (CmsContentProduct entity : products) {<NEW_LINE>if (null != entity.getId()) {<NEW_LINE>update(entity.getId(), entity, ignoreProperties)...
idList = new HashSet<>();
1,477,478
public static StreamingOutput buildResponseOfDomLR(final File storagePath, final List<String> availableRes) {<NEW_LINE>final StreamingOutput sOutput = new StreamingOutput() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void write(final OutputStream output) throws IOException, WebApplicationException {<NEW_LINE>Documen...
createCollectionElementDBs(storagePath, availableRes, document);
1,098,218
public static void refinePage(Page page) {<NEW_LINE>logger.debug("PageStep.refinePage");<NEW_LINE>final SystemInfo firstSystem = page.getFirstSystem();<NEW_LINE>// Across systems within a single page, the partnering slur is the left extension<NEW_LINE>final SlurAdapter systemSlurAdapter = (SlurInter slur<MASK><NEW_LINE...
) -> slur.getExtension(LEFT);
1,250,568
public boolean shouldRun() {<NEW_LINE>total = 0;<NEW_LINE>badDataCount.clear();<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>List<Map<String, String>> result;<NEW_LINE>Logger.debug(MaintenanceUtil.class, "Task 20: Checking for orphan entries");<NEW_LINE>for (String asset : assetNames) {<NEW_LINE>Inode.Type asset...
"Task 20: Checking orphan tree entries (parent) for " + asset + ": " + treesToDeleteParent);
1,578,294
public void applyBrand(int mainColor, int textColor) {<NEW_LINE>applyBrandToPrimaryToolbar(activityBinding.appBar, activityBinding.searchToolbar);<NEW_LINE>applyBrandToFAB(mainColor, textColor, activityBinding.fabCreate);<NEW_LINE><MASK><NEW_LINE>binding.appName.setTextColor(textColor);<NEW_LINE>activityBinding.progres...
binding.headerView.setBackgroundColor(mainColor);
1,406,194
public static <K, V> Map<K, V> CreateMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) {<NEW_LINE>Map map = new HashMap<K, V>();<NEW_LINE>map.put(k1, v1);<NEW_LINE>map.put(k2, v2);<NEW_LINE>map.put(k3, v3);<NEW_LINE>map.put(k4, v4);<NEW_LINE>ma...
map.put(k8, v8);
1,552,755
public void marshall(AlarmModelVersionSummary alarmModelVersionSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (alarmModelVersionSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(alarmModelVe...
e.getMessage(), e);
44,714
private void buildTagConfigs(List<BusinessItem> items, Map<String, BusinessReportConfig> configs, Map<String, Map<String, CustomConfig>> customConfigs, Map<String, Set<String>> businessItemConfigs) {<NEW_LINE>for (BusinessItem item : items) {<NEW_LINE>String domain = item.getDomain();<NEW_LINE>String itemId = item.getI...
configs.put(domain, config);
1,835,988
public void run() {<NEW_LINE>InputStream inputStream = null;<NEW_LINE>BufferedImage image = null;<NEW_LINE>try {<NEW_LINE>FileObject fileObject = dataObject.getPrimaryFile();<NEW_LINE>if (fileObject == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>inputStream = fileObject.getInputStream();<NEW_LINE>if (inputStream == nu...
(ImageNavigatorPanel.class, "ERR_IOFile"));
80,625
public static Set<ItemStack> filterByEnergyValue(Map<WrappedStack, EnergyValue> valueMap, Collection<ItemStack> itemStacks, EnergyValue valueBound, ValueFilterType filterType, Comparator<ItemStack> comparator) {<NEW_LINE>Set<ItemStack> filteredSet = (comparator != null ? new TreeSet<>(comparator) : new TreeSet<MASK><NE...
<>(Comparators.DISPLAY_NAME_COMPARATOR));
1,123,397
static void create(DatabaseAdminClient dbAdminClient, DatabaseId db) {<NEW_LINE>OperationFuture<Database, CreateDatabaseMetadata> op = dbAdminClient.createDatabase(db.getInstanceId().getInstance(), db.getDatabase(), Arrays.asList("CREATE TABLE Players(\n" + " PlayerId INT64 NOT NULL,\n" + " PlayerName STRING(2048) NO...
Database dbOperation = op.get();
958,274
public static Spanned formatHtml(@Nullable String html, ImageGetter imageGetter, ClickableTableSpan clickableTableSpan, DrawTableLinkSpan drawTableLinkSpan, TagClickListenerProvider tagClickListenerProvider, float indent, boolean removeTrailingWhiteSpace) {<NEW_LINE>final HtmlTagHandler htmlTagHandler = new HtmlTagHand...
html = htmlTagHandler.overrideTags(html);
987,302
// -- Parsing --<NEW_LINE>// [<scheme>:]<scheme-specific-part>[#<fragment>]<NEW_LINE>//<NEW_LINE>void parse(boolean rsa) throws URISyntaxException {<NEW_LINE>requireServerAuthority = rsa;<NEW_LINE>int n = input.length();<NEW_LINE>int p = scan(0, n, "/?#", ":");<NEW_LINE>if ((p >= 0) && at(p, n, ':')) {<NEW_LINE>if (p =...
substring(p + 1, n);
515,985
private JMethod addInnerBuilder(JDefinedClass jclass, JType propertyType, JFieldVar field) {<NEW_LINE>Optional<JDefinedClass> builderClass = StreamSupport.stream(Spliterators.spliteratorUnknownSize(jclass.classes(), Spliterator.ORDERED), false).filter(definedClass -> definedClass.name().equals(getBuilderClassName(jclas...
_return(JExpr._this());
1,792,193
public Request<RecordHandlerProgressRequest> marshall(RecordHandlerProgressRequest recordHandlerProgressRequest) {<NEW_LINE>if (recordHandlerProgressRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RecordHandlerProgressRequest> request = n...
(recordHandlerProgressRequest.getResourceModel()));
108,826
public ListSecretsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSecretsResult listSecretsResult = new ListSecretsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
)).unmarshall(context));