idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
96,838
private Object generateRandomValue(final Field field, final RandomizationContext context) {<NEW_LINE>Class<?> fieldType = field.getType();<NEW_LINE>Type fieldGenericType = field.getGenericType();<NEW_LINE>if (isArrayType(fieldType)) {<NEW_LINE>return arrayPopulator.getRandomArray(fieldType, context);<NEW_LINE>} else if...
optionalPopulator.getRandomOptional(field, context);
1,343,041
protected Query doToQuery(QueryShardContext context) throws QueryShardException, IOException {<NEW_LINE>final int maxAllowedRegexLength = context<MASK><NEW_LINE>if (value.length() > maxAllowedRegexLength) {<NEW_LINE>throw new IllegalArgumentException("The length of regex [" + value.length() + "] used in the Regexp Quer...
.getIndexSettings().getMaxRegexLength();
1,205,433
private static Map<?, ?> mediaMetadata2raw(MediaMetadataCompat mediaMetadata) {<NEW_LINE>if (mediaMetadata == null)<NEW_LINE>return null;<NEW_LINE>MediaDescriptionCompat description = mediaMetadata.getDescription();<NEW_LINE>Map<String, Object> raw = new HashMap<>();<NEW_LINE>raw.put("id", description.getMediaId());<NE...
(mediaMetadata, MediaMetadataCompat.METADATA_KEY_ALBUM));
1,724,526
final ListMobileSdkReleasesResult executeListMobileSdkReleases(ListMobileSdkReleasesRequest listMobileSdkReleasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMobileSdkReleasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "WAFV2");
181,637
private void showEventInfo(EventInfo event) {<NEW_LINE>if (mShowEventDetailsWithAgenda) {<NEW_LINE>FragmentManager fragmentManager = getFragmentManager();<NEW_LINE>FragmentTransaction ft = fragmentManager.beginTransaction();<NEW_LINE>mEventInfoFragment = new EventInfoFragment(this, event.id, event.startTime.toMillis(),...
setClass(this, EventInfoActivity.class);
1,572,126
public void onActivityResult(final int reqCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(reqCode, resultCode, data);<NEW_LINE>if ((data == null && reqCode != TAKE_PHOTO && reqCode != RECORD_VIDEO && reqCode != SMS_DEFAULT) || (resultCode != RESULT_OK && reqCode != SMS_DEFAULT)) {<NEW_LINE>return;<...
this, data.getData());
180,428
protected Node[] createNodes(String key) {<NEW_LINE>if (LAYER.equals(key)) {<NEW_LINE>Node nd = NodeFactoryUtils.createLayersNode(project);<NEW_LINE>if (nd != null) {<NEW_LINE>DataObject dobj = nd.getLookup().lookup(DataObject.class);<NEW_LINE>if (dobj != null) {<NEW_LINE>FileObject fo = dobj.getPrimaryFile();<NEW_LINE...
.weakFileChangeListener(layerfcl, fo));
409,819
public void doStop() throws Exception {<NEW_LINE>if (_lease != null)<NEW_LINE>_lease.close();<NEW_LINE>super.doStop();<NEW_LINE>// Mark this instance as stopped.<NEW_LINE>int size <MASK><NEW_LINE>// Offer the STOP task to all waiting reserved threads.<NEW_LINE>for (int i = 0; i < size; ++i) {<NEW_LINE>// Yield to wait ...
= _count.getAndSetLo(-1);
782,898
public ProfiledInterval profile(Thread threadToProfile, long initialDelayNanos) {<NEW_LINE>long capturedSampleIntervalNanos = sampleIntervalNanos.get();<NEW_LINE>long baseline = System.nanoTime();<NEW_LINE>Thread samplerThread = new Thread(SAMPLER_GROUP, () -> {<NEW_LINE>long nextSleepBaseline = initialDelayNanos > 0 ?...
k -> new Sample(null));
212,576
private void defineMethodVariables(Parameter[] paras, boolean isInStaticContext) {<NEW_LINE>Label startLabel = new Label();<NEW_LINE>thisStartLabel = startLabel;<NEW_LINE>controller.<MASK><NEW_LINE>makeLocalVariablesOffset(paras, isInStaticContext);<NEW_LINE>for (Parameter para : paras) {<NEW_LINE>String name = para.ge...
getMethodVisitor().visitLabel(startLabel);
159,365
private void applyFocusMode(@Nonnull Segment focusRange) {<NEW_LINE>EditorColorsScheme scheme = ObjectUtils.notNull(myEditor.getColorsScheme(), EditorColorsManager.getInstance().getGlobalScheme());<NEW_LINE><MASK><NEW_LINE>// noinspection UseJBColor<NEW_LINE>ColorValue foreground = TargetAWT.from(Registry.getColor(Colo...
ColorValue background = scheme.getDefaultBackground();
297,821
public void addMetadata(QuickTimeDirectory directory) {<NEW_LINE>// Get creation/modification times<NEW_LINE>directory.setDate(TAG_CREATION_TIME, DateUtil.get1Jan1904EpochDate(creationTime));<NEW_LINE>directory.setDate(TAG_MODIFICATION_TIME, DateUtil.get1Jan1904EpochDate(modificationTime));<NEW_LINE>// Get duration and...
setDouble(TAG_PREFERRED_VOLUME, preferredVolumeInteger + preferredVolumeFraction);
1,081,939
final DisableSagemakerServicecatalogPortfolioResult executeDisableSagemakerServicecatalogPortfolio(DisableSagemakerServicecatalogPortfolioRequest disableSagemakerServicecatalogPortfolioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disableSagemakerServicecatalogPortfolioRequest);<NEW_LIN...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisableSagemakerServicecatalogPortfolio");
1,827,092
public org.python.Object __mul__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bool) {<NEW_LINE>boolean other_bool = ((org.python.types.Bool) other).value;<NEW_LINE>if (other_bool) {<NEW_LINE>return this;<NEW_LINE>} else {<NEW_LINE>return new ByteArray();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (o...
other.typeName() + "'");
876,655
public static XMLStreamReader createXMLStreamReader(InputSource src) {<NEW_LINE>String sysId = src.getSystemId() == null ? null : src.getSystemId();<NEW_LINE>String pubId = src.getPublicId() == null ? null : src.getPublicId();<NEW_LINE>if (src.getByteStream() != null) {<NEW_LINE>final <MASK><NEW_LINE>if (src.getEncodin...
InputStream is = src.getByteStream();
1,617,551
protected JComponent createLeftTop() {<NEW_LINE>TrickFileFilter simRunFileFilter = new TrickFileFilter(TrickFileFilter.SIM_RUN);<NEW_LINE>String simDirList = trickProperties.getProperty("TRICK_DP_SIM_DIRS");<NEW_LINE>if (simDirList != null) {<NEW_LINE>String[] simDirs = simDirList.split(",");<NEW_LINE>// Arrays.sort( s...
"refreshSelected", "openSelected", "closeSelected", "removeSelectedNodes" };
1,038,285
private QueryResult prepareAndRun(SearchJob searchJob, Query query) {<NEW_LINE>final QueryBackend<? extends GeneratedQueryContext> backend = getQueryBackend(query);<NEW_LINE>LOG.debug("[{}] Using {} to generate query", <MASK><NEW_LINE>// with all the results done, we can execute the current query and eventually complet...
query.id(), backend);
717,801
public static ListSmartAGByAccessPointResponse unmarshall(ListSmartAGByAccessPointResponse listSmartAGByAccessPointResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSmartAGByAccessPointResponse.setRequestId(_ctx.stringValue("ListSmartAGByAccessPointResponse.RequestId"));<NEW_LINE>listSmartAGByAccessPointResponse.setTo...
("ListSmartAGByAccessPointResponse.SmartAccessGateways[" + i + "].SmartAGName"));
1,732,110
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_audio_player);<NEW_LINE>mLoadingView = findViewById(R.id.LoadingView);<NEW_LINE>mAudioPath = getIntent().getStringExtra("videoPath");<NEW_LINE>mAVOptions = new AVOptions();<NEW_LIN...
setInteger(AVOptions.KEY_MEDIACODEC, codec);
1,486,091
final void executeDeprecateWorkflowType(DeprecateWorkflowTypeRequest deprecateWorkflowTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deprecateWorkflowTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.start...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
481,074
protected static void load(String path, String name) {<NEW_LINE>String libroot = "/META-INF/lib";<NEW_LINE>String libpath = null;<NEW_LINE>String libfile = null;<NEW_LINE>boolean arch64 = System.getProperty("os.arch").indexOf("64") != -1;<NEW_LINE>boolean linux = System.getProperty("os.name").toLowerCase().indexOf("lin...
throw new RuntimeException("File cannot be created: " + file);
1,286,179
public void onClick(View view) {<NEW_LINE>Intent compose;<NEW_LINE>if (!secondAcc) {<NEW_LINE>compose = new Intent(context, ComposeActivity.class);<NEW_LINE>} else {<NEW_LINE>compose = new Intent(context, ComposeSecAccActivity.class);<NEW_LINE>String text = context.getString(R.string.using_second_account).replace(<MASK...
"%s", "@" + settings.secondScreenName);
257,521
private void defineFold(String bundle, String key, Tree expr) {<NEW_LINE>final ClassPath cp = ClassPath.getClassPath(anchor, ClassPath.SOURCE);<NEW_LINE>FileObject bundleFile = cp != null ? cp.findResource(bundle + ".properties") : null;<NEW_LINE>SourcePositions spos = info.getTrees().getSourcePositions();<NEW_LINE>int...
new ResourceStringFoldInfo(bundle, key));
1,020,376
public Info findSplit(Relation<? extends NumberVector> relation, int dims, ArrayModifiableDBIDs sorted, DBIDArrayMIter iter, int left, int right, SortDBIDsBySingleDimension comp) {<NEW_LINE>double[] minmax = Util.minmaxRange(dims, relation, iter, left, right);<NEW_LINE>final int dim = Util.argmaxdiff(minmax);<NEW_LINE>...
+ " < " + r + " < " + right;
1,633,458
private void implementList(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor) {<NEW_LINE>MethodCreator methodCreator = classCreator.getMethodCreator("list", Uni.class, Page.class, Sort.class);<NEW_LINE>ResultHandle page = methodCreator.getMethodParam(0);<NEW_LINE>ResultHandle <MASK><NEW_LINE>Result...
sort = methodCreator.getMethodParam(1);
839,328
private UserInfo.Username parseUsername(Optional<String> authHeader) {<NEW_LINE>if (!authHeader.isPresent()) {<NEW_LINE>throw new AuthenticationException("Null Authentication Header is not supported");<NEW_LINE>}<NEW_LINE>if (!authHeader.or(SPACE).contains(BASIC)) {<NEW_LINE>throw new AuthenticationException("Only Basi...
.valueOf(fields[0]);
1,581,453
final CreateReplicationSubnetGroupResult executeCreateReplicationSubnetGroup(CreateReplicationSubnetGroupRequest createReplicationSubnetGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReplicationSubnetGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,668,098
public void write(org.apache.thrift.protocol.TProtocol oprot, NimbusSummary struct) throws org.apache.thrift.TException {<NEW_LINE>struct.validate();<NEW_LINE>oprot.writeStructBegin(STRUCT_DESC);<NEW_LINE>if (struct.nimbusMaster != null) {<NEW_LINE>oprot.writeFieldBegin(NIMBUS_MASTER_FIELD_DESC);<NEW_LINE><MASK><NEW_LI...
struct.nimbusMaster.write(oprot);
1,359,608
private ArrayList<LSCompletionItem> moduleNameContextCompletions(BallerinaCompletionContext context, String orgName) {<NEW_LINE>ArrayList<LSCompletionItem> completionItems = new ArrayList<>();<NEW_LINE>List<String> addedPkgNames = new ArrayList<>();<NEW_LINE>LanguageServerContext serverContext = context.languageServerc...
(serverContext).getAllVisiblePackages(context);
664,763
private void openMediaFilesInExternalProgram(List<File> fileList, String pathToPlayerProgram) {<NEW_LINE>int i = 0;<NEW_LINE>String args = " ";<NEW_LINE>String[] cmdarray = new String[fileList.size() + 1];<NEW_LINE>cmdarray[i++] = pathToPlayerProgram;<NEW_LINE>for (File file : fileList) {<NEW_LINE>args += "\"" + file.g...
++] = file.getAbsolutePath();
386,003
protected void beforeDelivery(MessageEndpoint endpoint) throws ResourceException {<NEW_LINE>final String methodName = "beforeDelivery";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>endpoint.beforeDelivery...
endpoint }, null), exception);
273,086
protected RecordSetInner prepareForUpdate(RecordSetInner resource) {<NEW_LINE>if (innerModel().mxRecords() != null && !innerModel().mxRecords().isEmpty()) {<NEW_LINE>if (resource.mxRecords() == null) {<NEW_LINE>resource.withMxRecords<MASK><NEW_LINE>}<NEW_LINE>resource.mxRecords().addAll(innerModel().mxRecords());<NEW_L...
(new ArrayList<>());
442,960
protected void initializePolymorphicQualifiers(@UnderInitialization DefaultQualifierKindHierarchy this) {<NEW_LINE>for (DefaultQualifierKind qualifierKind : qualifierKinds) {<NEW_LINE>Class<? extends Annotation> clazz = qualifierKind.getAnnotationClass();<NEW_LINE>PolymorphicQualifier polyMetaAnno = clazz.getAnnotation...
Collections.singleton(qualifierKind.top);
1,499,893
GraphQLEnumType buildEnumType(BuildContext buildCtx, EnumTypeDefinition typeDefinition) {<NEW_LINE>GraphQLEnumType.Builder builder = GraphQLEnumType.newEnum();<NEW_LINE>builder.definition(buildCtx.isCaptureAstDefinitions() ? typeDefinition : null);<NEW_LINE>builder.name(typeDefinition.getName());<NEW_LINE>builder.descr...
buildCtx, builder.build());
1,498,504
public void start() throws Exception {<NEW_LINE>EventBus eb = vertx.eventBus();<NEW_LINE>vertx.setPeriodic(1000, v -> {<NEW_LINE>// Send two messages expecting replies<NEW_LINE>Single<Message<Integer>> reply1 = eb.<Integer>rxRequest("heatsensor1", "ping");<NEW_LINE>Single<Message<Integer>> reply2 = eb.<Integer>rxReques...
("heat sensor 2 is highest " + heats[1]);
782,310
private static JPanel createTypePanels(final JFrame parent, final CGraphModel model, final TypeManager typeManager) {<NEW_LINE>final JPanel typePanel = new JPanel(new BorderLayout());<NEW_LINE>final JPanel typeEditorPanel = TypeEditorPanel.CreateDefaultTypeEditor(parent, typeManager);<NEW_LINE>if (isFunctionFlowgraph(m...
add(typeEditorPanel, BorderLayout.CENTER);
1,662,298
private static List<Pair<String, List<String>>> computeCallbacksRequiredByMultipleModules(@NotNull ErlangFile file) {<NEW_LINE>List<String> orderedCallbacks = new SmartList<>();<NEW_LINE>final MultiMap<String, String> callbacksToOwners = MultiMap.create();<NEW_LINE>Set<String> distinctBehaviours = new HashSet<>();<NEW_...
callbackOwners = callbacksToOwners.get(callback);
986,398
// public Op transform(OpSequence opSequence, List<Op> elts)<NEW_LINE>@Override<NEW_LINE>public Op transform(OpLeftJoin opLeftJoin, Op opLeft, Op opRight) {<NEW_LINE>// Test whether we can do an indexed substitute into the right if possible.<NEW_LINE>boolean canDoLinear = LeftJoinClassifier.isLinear(opLeftJoin);<NEW_LI...
transform(opLeftJoin, opLeft, opRight);
1,718,690
public int compare(RefModel o1, RefModel o2) {<NEW_LINE>// sort remote heads last, otherwise sort by name<NEW_LINE>// this is so we can insert a break on the refs panel<NEW_LINE>// [head][branch][branch][tag][tag]<NEW_LINE>// [remote][remote][remote]<NEW_LINE>boolean remote1 = o1.displayName.startsWith(Constants.R_REMO...
displayName.startsWith(Constants.R_REMOTES);
914,076
public final ConstantContext constant() throws RecognitionException {<NEW_LINE>ConstantContext _localctx = new ConstantContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 508, RULE_constant);<NEW_LINE>try {<NEW_LINE>setState(3337);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case PLUS...
_errHandler.reportError(this, re);
86,179
public void marshall(Api api, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (api == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(api.getApiEndpoint(), APIENDPOINT_BINDING);<NEW_LINE>protocolMarshaller.mar...
api.getVersion(), VERSION_BINDING);
917,419
static TableMetadata createTableMetadata() {<NEW_LINE>ImmutableList.Builder<ColumnMetadata> columnBuilder = ImmutableList.builder();<NEW_LINE>columnBuilder.add(new ColumnMetadata(COL_NODE, Schema.NODE, "Node", true, false));<NEW_LINE>columnBuilder.add(new ColumnMetadata(COL_VRF, Schema.STRING, "VRF", true, false));<NEW...
, "Names of passive interfaces", false, true));
190,013
private void loadNode1242() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_BrowseCount, new QualifiedName(0, "BrowseCount"), new LocalizedText("en", "BrowseCount"), LocalizedText.NULL_VALUE, UInte...
.expanded(), false));
1,354,591
private void updateControlButtonRangeStyles(boolean needsMonth) {<NEW_LINE>if (focusedDate == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (needsMonth) {<NEW_LINE>Date prevMonthDate = (Date) focusedDate.clone();<NEW_LINE>removeOneMonth(prevMonthDate);<NEW_LINE>R month = <MASK><NEW_LINE>if (!isDateInsideRange(prevMon...
getResolution(VAbstractCalendarPanel.this::isMonth);
279,265
final ListReportsForReportGroupResult executeListReportsForReportGroup(ListReportsForReportGroupRequest listReportsForReportGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReportsForReportGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,548,185
public int nextAbsentValue(char fromValue) {<NEW_LINE>int index = BufferUtil.advanceUntil(content<MASK><NEW_LINE>if (index >= cardinality) {<NEW_LINE>return fromValue;<NEW_LINE>}<NEW_LINE>if (index == cardinality - 1) {<NEW_LINE>return fromValue == content.get(cardinality - 1) ? fromValue + 1 : fromValue;<NEW_LINE>}<NE...
, -1, cardinality, fromValue);
1,419,484
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> <MASK><NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("knowledgeId"), convLabelName("Knowledge...
errors = new ArrayList<>();
318,836
private void loadNode585() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.ServerStatusType_CurrentTime, new QualifiedName(0, "CurrentTime"), new LocalizedText("en", "CurrentTime"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Varian...
.expanded(), false));
1,391,639
public NodeFrameworkAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NodeFrameworkAttributes nodeFrameworkAttributes = new NodeFrameworkAttributes();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
int originalDepth = context.getCurrentDepth();
552,061
public void init(String title) {<NEW_LINE>assert !htmldoc.getDocumentElement().hasChildNodes();<NEW_LINE>// head<NEW_LINE>Element head = htmldoc.createElement(HTMLUtil.HTML_HEAD_TAG);<NEW_LINE>head.appendChild(htmldoc.createComment(MODIFICATION_WARNING));<NEW_LINE>htmldoc.getDocumentElement().appendChild(head);<NEW_LIN...
HTML_TITLE_TAG)).setTextContent(title);
1,448,884
private void processOne(Op02WithProcessedDataAndRefs op, List<Op02WithProcessedDataAndRefs> op2list, int idx) {<NEW_LINE>Op02WithProcessedDataAndRefs next = op.getTargets().get(0);<NEW_LINE>if (next != op2list.get(idx + 1))<NEW_LINE>return;<NEW_LINE>if (next.getSources().size() != 1)<NEW_LINE>return;<NEW_LINE>if (next....
() + iinc2.getSecond();
384,457
public String summaryDescription() {<NEW_LINE>// 5Y USD 2mm Rec USD-LIBOR-6M / Pay 1% : 21Jan17-21Jan22<NEW_LINE><MASK><NEW_LINE>buf.append(SummarizerUtils.datePeriod(getStartDate().getUnadjusted(), getEndDate().getUnadjusted()));<NEW_LINE>buf.append(' ');<NEW_LINE>if (getLegs().size() == 2 && getPayLeg().isPresent() &...
StringBuilder buf = new StringBuilder(64);
435,612
private List<String> calculateEnabledInstancesForSegment(String segment, List<String> onlineInstancesForSegment, Set<String> unavailableSegments) {<NEW_LINE>List<String> enabledInstancesForSegment = new ArrayList<>(onlineInstancesForSegment.size());<NEW_LINE>for (String onlineInstance : onlineInstancesForSegment) {<NEW...
offlineInstancesForSegment = _segmentToOfflineInstancesMap.get(segment);
1,581,487
private void serialize(Server server, Query query, List<Result> results, OutputStream outputStream) throws IOException {<NEW_LINE>JsonGenerator g = jsonFactory.createGenerator(outputStream, JsonEncoding.UTF8);<NEW_LINE>g.writeStartObject();<NEW_LINE>g.writeArrayFieldStart("counters");<NEW_LINE>g.writeEndArray();<NEW_LI...
("value", (Integer) value);
568,888
public PartitionGetResult partitionGet(PartitionGetParam partParam) {<NEW_LINE>PartSampleParam param = (PartSampleParam) partParam;<NEW_LINE>KeyPart keyPart = param.getIndicesPart();<NEW_LINE>int sampleType = param.getSampleType();<NEW_LINE>long[] nodeIds = ((ILongKeyPartOp) keyPart).getKeys();<NEW_LINE>Long2IntOpenHas...
nodeIdToSizes.size()][];
803,700
public void updateManagedBeanName(WizardDescriptor.Panel panel) {<NEW_LINE>String targetName = null;<NEW_LINE>Component gui = panel.getComponent();<NEW_LINE>try {<NEW_LINE>// XXX JavaTargetChooserPanel should introduce new API to get current contents<NEW_LINE>// of its component JavaTargetChooserPanelGUI (see Issue#154...
String name = component.getManagedBeanName();
814,960
private static Object parseColorHSLIncreaseDecrease(int hslIndex, boolean increase, List<String> params, Function<String, String> resolver, boolean reportError) {<NEW_LINE>String colorStr = params.get(0);<NEW_LINE>int amount = parsePercentage(params.get(1));<NEW_LINE>boolean relative = false;<NEW_LINE>boolean autoInver...
increase, amount, relative, autoInverse);
750,578
public Collection<Node> parse(String source) throws ParserTrialFailedException {<NEW_LINE>ExecutorService executor = Executors.newFixedThreadPool(1);<NEW_LINE>Future<?> future = executor.submit(() -> processSource(source));<NEW_LINE>executor.shutdown();<NEW_LINE>try {<NEW_LINE>future.get(getTimeOutDurationMs(), TimeUni...
throw new ParserTrialFailedException("syntax " + errorMessage);
1,138,799
private static Branch load(ScannerReport.Metadata metadata, Project project, DbClient dbClient) {<NEW_LINE>String targetBranchName = StringUtils.<MASK><NEW_LINE>String branchName = StringUtils.trimToNull(metadata.getBranchName());<NEW_LINE>String projectUuid = StringUtils.trimToNull(project.getUuid());<NEW_LINE>if (nul...
trimToNull(metadata.getTargetBranchName());
1,050,791
public WindowsAuditLogCreateConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WindowsAuditLogCreateConfiguration windowsAuditLogCreateConfiguration = new WindowsAuditLogCreateConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
class).unmarshall(context));
935,352
/* ------------- CRAFTING ------------- */<NEW_LINE>@Override<NEW_LINE>public void onCraftedBy(ItemStack stack, Level world, Player player) {<NEW_LINE>if (stack.isEmpty() || player == null)<NEW_LINE>return;<NEW_LINE>String uuid = player<MASK><NEW_LINE>if (specialRevolvers.containsKey(uuid)) {<NEW_LINE>ArrayList<Special...
.getUUID().toString();
228,045
public DatabaseSet adapt(DatabaseSet original) {<NEW_LINE>if (connectionStrings == null || connectionStrings.isEmpty())<NEW_LINE>return original;<NEW_LINE>if (original instanceof DefaultDatabaseSet) {<NEW_LINE>try {<NEW_LINE>boolean dbShardingDisabled = true;<NEW_LINE>boolean tableShardingDisabled = true;<NEW_LINE>Stri...
&= !checkMultiHosts(connUrl, masterConnUrl);
172,596
public ConfigurationFile forUri(URI javaFile) {<NEW_LINE>if (javaFile == null)<NEW_LINE>return null;<NEW_LINE>cacheClear();<NEW_LINE>ConfigurationFile result = uriCache.get(javaFile);<NEW_LINE>if (result == null) {<NEW_LINE>URI uri = javaFile.normalize();<NEW_LINE>if (!uri.isAbsolute())<NEW_LINE>uri = URI.create("file:...
result = ConfigurationFile.forDirectory(directory);
658,467
public ExitStatus run(String... args) throws Exception {<NEW_LINE>try {<NEW_LINE>int index = (args.length != 0) ? Integer.parseInt(args<MASK><NEW_LINE>List<String> arguments = new ArrayList<>(args.length);<NEW_LINE>for (int i = 2; i < args.length; i++) {<NEW_LINE>arguments.add(args[i]);<NEW_LINE>}<NEW_LINE>String start...
[0]) - 1 : 0;
238,481
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(...
.nextDouble(0) * 1609.34);
1,416,665
static MongoDatabase createMongoDatabase(JaversMongoProperties properties, Optional<MongoClientSettings> mongoClientSettings) {<NEW_LINE>if (properties.getMongodb().getUri() != null) {<NEW_LINE>ConnectionString connectionString = new ConnectionString(properties.getMongodb().getUri());<NEW_LINE>MongoClient mongoClient =...
throw new JaversException(JaversExceptionCode.MALFORMED_JAVERS_MONGODB_PROPERTIES);
1,783,679
private String mockInterface(ClassInfo declaringClass, BuildProducer<GeneratedClassBuildItem> generatedClass, IndexView index) {<NEW_LINE>// we have an interface, we have to call a default method on it, we generate a (very simplistic) implementation:<NEW_LINE>return interfaceMocks.computeIfAbsent(declaringClass, classI...
addAll(declaringClass.methods());
359,919
private void updateRows(Integer tableID, Integer untilRow, List<Object[]> rows) {<NEW_LINE>String sql = "UPDATE " + TABLE_NAME + " SET " + VALUE_1 + "=?," + VALUE_2 + "=?," + VALUE_3 + "=?," + VALUE_4 + "=?," + VALUE_5 + "=?" + WHERE + TABLE_ID + "=?" + AND + SERVER_UUID + "=?" + AND + TABLE_ROW + "=?";<NEW_LINE>execut...
1 + valueIndex, Types.VARCHAR);
642,659
public VerifyDomainDkimResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>VerifyDomainDkimResult verifyDomainDkimResult = new VerifyDomainDkimResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
().unmarshall(context));
674,748
private void createColumns() {<NEW_LINE>for (DiskColumnEnum column : DiskColumnEnum.values()) {<NEW_LINE>TableViewerColumn c = createTableViewerColumn(column.getTitle(), column.getWidth(), column.getAlignment(), column.isResizable(), column.isMoveable(<MASK><NEW_LINE>ColumnLabelProvider labelProvider = null;<NEW_LINE>s...
), column.isNumber());
807,315
void makeInventoryList() {<NEW_LINE>inventoryList.add(new MakePurchaseAdapter.Item(getText(R.string.header_fuel_your_ride), MakePurchaseAdapter.VIEW_TYPE_HEADER));<NEW_LINE>inventoryList.add(new MakePurchaseAdapter.Item(TrivialDriveRepository.SKU_GAS, MakePurchaseAdapter.VIEW_TYPE_ITEM));<NEW_LINE>inventoryList.add(new...
header_subscribe), MakePurchaseAdapter.VIEW_TYPE_HEADER));
1,783,030
private void extractBindTargets(ExpressionNode node, Map<FunctionReference, ExpressionFunction> functions, Set<String> bindTargets, Set<String> arguments, List<OnnxModel> onnxModels, Map<String, OnnxModel> onnxModelsInUse) {<NEW_LINE>if (isFunctionReference(node)) {<NEW_LINE>FunctionReference reference = FunctionRefere...
toString()).get();
1,682,578
public static ListTaskFlowInstanceResponse unmarshall(ListTaskFlowInstanceResponse listTaskFlowInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTaskFlowInstanceResponse.setRequestId(_ctx.stringValue("ListTaskFlowInstanceResponse.RequestId"));<NEW_LINE>listTaskFlowInstanceResponse.setErrorCode(_ctx.stringValue...
(_ctx.stringValue("ListTaskFlowInstanceResponse.ErrorMessage"));
83,448
public static LanguageKey ofString(@NonNull final String languageInfo) {<NEW_LINE>final String separator = languageInfo.contains("-") ? "-" : "_";<NEW_LINE>final String[] localeParts = languageInfo.trim().split(separator);<NEW_LINE>if (localeParts.length == 0) {<NEW_LINE>// shall not happen<NEW_LINE>throw new IllegalAr...
LanguageKey(language, country, variant);
357,636
public IJobXMLSource loadJSL(String id) {<NEW_LINE>IJobXMLSource jobXML = null;<NEW_LINE>if (preferredJobXmlLoader != null && !preferredJobXmlLoader.getClass().equals(this.getClass())) {<NEW_LINE>jobXML = preferredJobXmlLoader.loadJSL(id);<NEW_LINE>} else {<NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger...
"Loaded job xml with " + id + " from " + PREFIX);
1,762,490
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
= (registerOperand1.getValue());
400,917
void extractMonoFiles() throws IOException {<NEW_LINE>String filesDir = getFilesDir().getAbsolutePath();<NEW_LINE>AssetManager am = getAssets();<NEW_LINE>String[] amRootFiles = am.list("");<NEW_LINE>// Skip if extracted has is the same as in the package<NEW_LINE>String hashFile = "hash.txt";<NEW_LINE>File monoHashFile ...
Log.i("Flax", "Extracting Mono files");
1,748,971
public void marshall(CreateProvisionedProductPlanRequest createProvisionedProductPlanRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createProvisionedProductPlanRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco...
createProvisionedProductPlanRequest.getProvisionedProductName(), PROVISIONEDPRODUCTNAME_BINDING);
1,265,334
public String toDebugString(String svcName) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Profile2 ");<NEW_LINE>sb.append(" svcName=").append(svcName);<NEW_LINE>sb.append(" discardType=").append(discardType);<NEW_LINE>sb.append(" objHash=").append<MASK><NEW_LINE>sb.append(" svc=").append(servic...
(Hexa32.toString32(objHash));
1,581,010
public static void run(String instanceId, String databaseId, String prefix) {<NEW_LINE>final String tableName = prefix + "_Singers";<NEW_LINE>final String changeStreamName = prefix + "_ChangeStreamSingers";<NEW_LINE>final SpannerOptions options = SpannerOptions.newBuilder().build();<NEW_LINE>final <MASK><NEW_LINE>final...
Spanner spanner = options.getService();
1,247,258
static String responseToXml(String endpointName, ApiResponse response) throws ApiException {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>DocumentBuilder docBuilder = docFactory.newDocumentBuilder();<NEW_LINE>Document doc = docBuilder.newDocument();<NEW_LINE>Element rootElement = doc.createElement(endpointName);<NEW_LINE>do...
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
986,651
protected void layoutChildren(final double x, final double y, final double w, final double h) {<NEW_LINE>final double labelOffset = getLabelOffset();<NEW_LINE>final CheckBox checkBox = getSkinnable();<NEW_LINE>final double boxWidth = snapSize(box.prefWidth(-1));<NEW_LINE>final double boxHeight = snapSize(box.prefHeight...
maxHeight, checkBox.getAlignment());
223,761
protected void doLoad(Accumulator<CommentRowObject> accumulator, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (listing == null) {<NEW_LINE>// no active program<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AddressIterator commentIterator = listing.getCommentAddressIterator(getProgram(<MASK><NEW_LINE>while (comme...
).getMemory(), true);
273,425
public AnimClip buildAnimation(HasLocalTransform target) {<NEW_LINE>Set<Float> times = new TreeSet<>();<NEW_LINE>for (int frameI = 0; ; ++frameI) {<NEW_LINE>float time = frameI / fps;<NEW_LINE>if (time > duration) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>times.add(time);<NEW_LINE>}<NEW_LINE>times.addAll(rotations.keySet()...
] timeArray = new float[numFrames];
899,300
private void addFlattenedRecords(List<Map<String, String>> records) {<NEW_LINE>int numRecords = records.size();<NEW_LINE>Preconditions.checkState(_nextFlattenedDocId + numRecords >= 0, "Got more than %s flattened records", Integer.MAX_VALUE);<NEW_LINE>for (int i = 0; i < numRecords; i++) {<NEW_LINE>_docIdMapping.add(_n...
()).add(_nextFlattenedDocId);
1,159,413
protected TupleIterable makeIterable(Evaluator evaluator) {<NEW_LINE>Calc[] calcs = getCalcs();<NEW_LINE>ListCalc lcalc = (ListCalc) calcs[0];<NEW_LINE>BooleanCalc bcalc = (BooleanCalc) calcs[1];<NEW_LINE>TupleList members = lcalc.evaluateList(evaluator);<NEW_LINE>// Not mutable, must create new list<NEW_LINE>TupleList...
members.size() / 2);
422,726
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.ws.rs.ext.MessageBodyReader#readFrom(java.lang.Class,<NEW_LINE>* java.lang.reflect.Type, java.lang.annotation.Annotation[],<NEW_LINE>* javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap,<NEW_LINE>* java.io.InputStream)<NEW_LINE>*/<NEW_LINE>@Override<...
unmarshaller.unmarshalEntry(entityStream, type);
704,862
private void trackResponseTimeMetrics(boolean error, String operationName, long durationNanos, String operationType, boolean trackMetricsByOperationName) {<NEW_LINE>if (trackMetricsByOperationName) {<NEW_LINE>metricRegistry.timer(getResponseTimeMetricName(operationName, operationType)).update(durationNanos, NANOSECONDS...
operationType)).mark(0);
1,676,762
private String format(String message, Object[] params) {<NEW_LINE>if (params == null) {<NEW_LINE>return message;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int index = 0;<NEW_LINE>while (index < message.length()) {<NEW_LINE>int next = message.indexOf('{', index);<NEW_LINE>if (next < 0) {<NEW_L...
next = digits(paramStart, message);
1,027,350
protected Map defineNamespaces(final Element element, final Map namespaces) {<NEW_LINE>Map answer = null;<NEW_LINE>String prefix = element.getPrefix();<NEW_LINE>if (prefix != null && prefix.length() > 0 && !namespaces.containsKey(prefix)) {<NEW_LINE>answer = new HashMap(namespaces);<NEW_LINE>defineNamespace(answer, pre...
prefix, attribute.getNamespaceURI());
55,312
public ListDeliverabilityTestReportsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDeliverabilityTestReportsResult listDeliverabilityTestReportsResult = new ListDeliverabilityTestReportsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
class).unmarshall(context));
1,086,549
final DescribeStateMachineResult executeDescribeStateMachine(DescribeStateMachineRequest describeStateMachineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStateMachineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
125,799
public String encodePath(String input) {<NEW_LINE>if (input == null) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>// from DefaultCodegen.java<NEW_LINE>// remove \t, \n, \r<NEW_LINE>// replace \ with \\<NEW_LINE>// replace " with \"<NEW_LINE>// outer unescape to retain the original multi-byte characters<NEW_LINE>// fina...
.replace("\\", "\\\\"));
1,280,243
private void scanForInvalidGetters(Set<String> getters, Set<String> allowableGetters, CaseTree caseTree, ImmutableList<Symbol> receiverSymbolChain, VisitorState state) {<NEW_LINE>new SuppressibleTreePathScanner<Void, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void visitMethodInvocation(MethodInvocationTree ...
methodName)).build());
23,577
public static String retrieveGoVersion(@NotNull String sdkPath) {<NEW_LINE>try {<NEW_LINE>VirtualFile sdkRoot = VirtualFileManager.getInstance().findFileByUrl(VfsUtilCore.pathToUrl(sdkPath));<NEW_LINE>if (sdkRoot != null) {<NEW_LINE>String cachedVersion = sdkRoot.getUserData(ZVERSION_DATA_KEY);<NEW_LINE>if (cachedVersi...
findFileByRelativePath("src/" + GoConstants.GO_VERSION_NEW_FILE_PATH);
343,014
public void caseIdentityStmt(IdentityStmt stmt) {<NEW_LINE>TypeNode left = hierarchy.typeNode(((Local) stmt.getLeftOp()).getType());<NEW_LINE>Value r = stmt.getRightOp();<NEW_LINE>if (!(r instanceof CaughtExceptionRef)) {<NEW_LINE>TypeNode right = hierarchy.typeNode(r.getType());<NEW_LINE>if (!left.hasDescendantOrSelf(...
Type t = typeIt.next();
366,064
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Deletes a group", code = 204)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 404, message = "The group could not be found") })<NEW_LINE>@PermissionRequired(Permissions.Constants.ACCESS_MANAGEM...
getObjectByUuid(OidcGroup.class, uuid);
54,195
private Object execGraph(Object o, Class type, Object ctx, VariableResolverFactory factory) {<NEW_LINE>if (o instanceof List) {<NEW_LINE>ArrayList list = new ArrayList(((List) o).size());<NEW_LINE>for (Object item : (List) o) {<NEW_LINE>list.add(execGraph(item, type, ctx, factory));<NEW_LINE>}<NEW_LINE>return list;<NEW...
).getName(), e);
731,723
final RegisterContainerInstanceResult executeRegisterContainerInstance(RegisterContainerInstanceRequest registerContainerInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerContainerInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
872,989
public void runAssertion(RegressionEnvironment env, String createSchemaEPL, Consumer<NullableObject<String[]>> sender) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy(createSchemaEPL, path);<NEW_LINE>env.compileDeploy("@name('s0') select * from LocalEvent", path).addListener("s0");<NEW...
(new String[0]));