idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
277,544
private void writeTermsIndex(SortedSetDocValues values) throws IOException {<NEW_LINE>final long size = values.getValueCount();<NEW_LINE>meta.writeInt(Lucene80DocValuesFormat.TERMS_DICT_REVERSE_INDEX_SHIFT);<NEW_LINE>long start = data.getFilePointer();<NEW_LINE>long numBlocks = 1L + ((size + Lucene80DocValuesFormat.TER...
TermsEnum iterator = values.termsEnum();
1,113,975
public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>pw.item(RelDrdsWriter.REL_NAME, "MysqlSort");<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<S...
getCluster().getMetadataQuery());
377,353
public boolean validate() throws ContractValidateException {<NEW_LINE>if (this.any == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstant.CONTRACT_NOT_EXIST);<NEW_LINE>}<NEW_LINE>if (chainBaseManager == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstant.STORE_NOT_EXIST);<NEW_LINE>}<...
DynamicPropertiesStore dynamicStore = chainBaseManager.getDynamicPropertiesStore();
1,690,639
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String portalFlag) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Bu...
setData(widget.getMobileDataOrData());
1,028,492
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String resourceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (thi...
error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
1,754,935
public HttpDataSourceConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HttpDataSourceConfig httpDataSourceConfig = new HttpDataSourceConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
98,039
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "dmultu");<NEW_LINE>final String sourceRegister1 ...
String tempLoResult = environment.getNextVariableString();
821,891
private static void logInitial(@Nonnull Editor editor, @Nonnull int[] startOffsets, @Nonnull int[] endOffsets, int indentSymbolsToStrip, int firstLineStartOffset) {<NEW_LINE>if (!LOG.isDebugEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>Document document = editor....
buffer.length() - 1);
560,276
private String toJsonSendMsg(AlertMsg alertMsg) {<NEW_LINE>String jsonResult = "";<NEW_LINE>byte[] byt = StringUtils.getBytesUtf8(formatContent(alertMsg));<NEW_LINE>String contentResult = StringUtils.newStringUtf8(byt);<NEW_LINE>String userIdsToText = mkUserIds(org.apache.commons.lang3.StringUtils.isBlank<MASK><NEW_LIN...
(atUserIds) ? "all" : atUserIds);
593,546
private boolean matchPermission(String required) {<NEW_LINE>boolean valid;<NEW_LINE>RequiredPerm requiredPerm;<NEW_LINE>if (!required.startsWith(HugeAuthenticator.KEY_OWNER)) {<NEW_LINE>// Permission format like: "admin"<NEW_LINE>requiredPerm = new RequiredPerm();<NEW_LINE>requiredPerm.owner(required);<NEW_LINE>} else ...
assert owner.length() > prefixLen;
152,093
private // from https://android.googlesource.com/platform/frameworks/base/+/master/api/current.txt r.style section<NEW_LINE>void fetchSystemStyle() throws IOException {<NEW_LINE>String url = "https://android.googlesource.com/platform/frameworks/base/+/master/api/current.txt";<NEW_LINE>String html = getUrl(url);<NEW_LIN...
code.substring(begin, end);
1,342,131
public JMenuItem createAxisMenuItem(final IAxis<?> axis, final int axisDimension, final boolean adaptUI2Chart) {<NEW_LINE>final Chart2D chart = axis.getAccessor().getChart();<NEW_LINE>JMenuItem item;<NEW_LINE>// axis submenu<NEW_LINE>JMenuItem axisMenuItem;<NEW_LINE>if (adaptUI2Chart) {<NEW_LINE>axisMenuItem = new Prop...
getAccessor().toString());
1,340,896
public Map<HugeKeys, Object> writeIndexLabel(IndexLabel indexLabel) {<NEW_LINE>HugeGraph graph = indexLabel.graph();<NEW_LINE>assert graph != null;<NEW_LINE>Map<HugeKeys, Object> map = new LinkedHashMap<>();<NEW_LINE>map.put(HugeKeys.ID, indexLabel.id().asLong());<NEW_LINE>map.put(HugeKeys.NAME, indexLabel.name());<NEW...
()).name());
1,088,127
public static String generateOrgString(int content, int[] notesAndContent) {<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>LoremIpsum loremIpsum = new LoremIpsum();<NEW_LINE>OrgParserWriter parserWriter = new OrgParserWriter();<NEW_LINE>result.append(parserWriter.whiteSpacedFilePreface(loremIpsum.getWor...
(head, 1, false));
669,233
public void marshall(Provisioned provisioned, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (provisioned == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(provisioned.getBrokerNodeGroupInfo(), BROKERNODEGRO...
provisioned.getZookeeperConnectString(), ZOOKEEPERCONNECTSTRING_BINDING);
1,531,053
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String ddosCustomPolicyName, DdosCustomPolicyInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoin...
this.client.mergeContext(context);
676,963
public void receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps, ActionListener<Void> listener) {<NEW_LINE>final <MASK><NEW_LINE>RecoveryFilesInfoRequest request = new RecoveryFilesInfoRequest(recoveryId...
String action = PeerRecoveryTargetService.Actions.FILES_INFO;
1,170,508
public static Jackson2ConfigurationResolved from(Jackson2Configuration configuration, ClassLoader classLoader) {<NEW_LINE>final Jackson2ConfigurationResolved resolved = new Jackson2ConfigurationResolved();<NEW_LINE>resolved.fieldVisibility = configuration.fieldVisibility;<NEW_LINE>resolved.getterVisibility = configurat...
class, JsonFormat.Shape::valueOf);
691,865
private void createImageCache(final CreateImageCacheFromVolumeSnapshotMsg msg, final NoErrorCompletion completion) {<NEW_LINE>CreateImageCacheFromVolumeSnapshotReply reply = new CreateImageCacheFromVolumeSnapshotReply();<NEW_LINE>ImageInventory image = ImageInventory.valueOf(dbf.findByUuid(msg.getImageUuid(), ImageVO.c...
setLocationHostUuid(cr.getLocateHostUuid());
1,162,878
protected byte[] doInBackground(String... params) {<NEW_LINE>java.io.File javaFile = new java.io.File(params[0]);<NEW_LINE>FileInputStream stream = null;<NEW_LINE>try {<NEW_LINE>stream = new FileInputStream(javaFile);<NEW_LINE>byte[] result = new byte[(int) javaFile.length()];<NEW_LINE>DataInputStream dataInputStream =...
"Failed to close stream, IOException: " + e.getMessage());
897,235
public static String parseLocalDeadlock(String status, ExecutionContext executionContext) {<NEW_LINE>final Matcher matcher = DEADLOCK_LOG_PATTERN.matcher(status);<NEW_LINE>String deadlockLog = matcher.find() ? matcher.group(1) : null;<NEW_LINE>if (deadlockLog == null) {<NEW_LINE>return NO_DEADLOCKS_DETECTED;<NEW_LINE>}...
physicalToLogical.values(), executionContext);
657,333
private void init() {<NEW_LINE>byte[] magic = this.buffer.readByteArray(MAGIC.length);<NEW_LINE>if (CompareUtils.uArrCompare(magic, MAGIC) != 0) {<NEW_LINE>throw new IllegalStateException("bad dex patch file magic: " + Arrays.toString(magic));<NEW_LINE>}<NEW_LINE>this.version = this.buffer.readShort();<NEW_LINE>if (Com...
= this.buffer.readInt();
1,366,655
private void connectLastTermsIn(CompositeItem composite) {<NEW_LINE>int items = composite.items().size();<NEW_LINE>if (items < 2)<NEW_LINE>return;<NEW_LINE>Item nextToLast = composite.items().get(items - 2);<NEW_LINE>if (nextToLast instanceof AndSegmentItem) {<NEW_LINE>var subItems = ((AndSegmentItem) nextToLast).items...
subItems.size() - 1);
1,557,718
public SinglePassSamProgram makeInstance(final String outbase, final String outext, final File input, final File reference, final Set<MetricAccumulationLevel> metricAccumulationLevel, final File dbSnp, final File intervals, final File refflat, final Set<String> ignoreSequence) {<NEW_LINE>final CollectBaseDistributionBy...
= new File(outbase + PDF_EXTENSION);
1,361,703
public int update(Uri uri, ContentValues values, String where, String[] whereArgs) {<NEW_LINE>deferDaggerInit();<NEW_LINE>String projectId = getProjectId(uri);<NEW_LINE>logServerEvent(projectId, AnalyticsEvents.FORMS_PROVIDER_UPDATE);<NEW_LINE>FormsRepository formsRepository = getFormsRepository(projectId);<NEW_LINE>St...
(existingValues, formsPath, cachePath));
1,743,738
public GetFindingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetFindingsResult getFindingsResult = new GetFindingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
)).unmarshall(context));
587,699
private Span createWriteSpan(GenericType<?> type) {<NEW_LINE>Optional<SpanContext> parentSpan = spanContext();<NEW_LINE>if (!parentSpan.isPresent()) {<NEW_LINE>// we only trace write span if there is a parent<NEW_LINE>// (parent is either webserver HTTP Request span, or inherited span<NEW_LINE>// from request<NEW_LINE>...
parent(parentSpan.get());
375,419
protected void processLink(XMLElement e) {<NEW_LINE>String classAttribute = e.getAttribute("class");<NEW_LINE>if (classAttribute == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Property> properties = VocabUtil.parsePropertyList(classAttribute, ALTCSS_VOCABS, context, EPUBLocation.create(path, parser.getLineNumber()...
contains(AltStylesheetVocab.PROPERTIES.VERTICAL);
16,389
private static boolean promptToAddTMARowOrColumn(final ImageData<?> imageData, final TMAAddType type) {<NEW_LINE><MASK><NEW_LINE>if (imageData == null) {<NEW_LINE>Dialogs.showNoImageError(NAME);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (imageData.getHierarchy().getTMAGrid() == null) {<NEW_LINE>Dialogs.showErrorMes...
String NAME = type.commandName();
409,108
public void putDouble(long t, double v) {<NEW_LINE>if (writeCurArrayIndex == capacity) {<NEW_LINE>if (capacity >= CAPACITY_THRESHOLD) {<NEW_LINE>timeRet.<MASK><NEW_LINE>doubleRet.add(new double[capacity]);<NEW_LINE>writeCurListIndex++;<NEW_LINE>writeCurArrayIndex = 0;<NEW_LINE>} else {<NEW_LINE>int newCapacity = capaci...
add(new long[capacity]);
668,782
final DeleteStreamingDistributionResult executeDeleteStreamingDistribution(DeleteStreamingDistributionRequest deleteStreamingDistributionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStreamingDistributionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudFront");
65,677
private int readProcessId(int dft) throws IOException {<NEW_LINE>ByteBuffer bb = ByteBuffer.allocate(128);<NEW_LINE>fileChannel.position(0);<NEW_LINE>int len = fileChannel.read(bb);<NEW_LINE>fileChannel.position(0);<NEW_LINE>if (len == 0)<NEW_LINE>return dft;<NEW_LINE>if (len == 128)<NEW_LINE>// Too much.<NEW_LINE>retu...
pidStr = StrUtils.fromUTF8bytes(b);
1,206,744
protected static String handleMenu(String menuPrefix, Map<String, Object> submenus, List<String> items, Map<String, String> uuidToName) {<NEW_LINE>if (items == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>// Calculate indent from our current one<NEW_LINE>int spaces = menuPrefix.length() - menuPrefix.trim().length();...
String) props.get("name");
406,622
private void walk(TestDescriptor globalLockDescriptor, TestDescriptor testDescriptor, NodeExecutionAdvisor advisor) {<NEW_LINE>Set<ExclusiveResource> exclusiveResources = getExclusiveResources(testDescriptor);<NEW_LINE>if (exclusiveResources.isEmpty()) {<NEW_LINE>advisor.useResourceLock(testDescriptor, globalReadLock);...
= new HashSet<>(exclusiveResources);
944,348
private void writeSuperClasses(SplittingSourceWriter w, ConnectorBundle bundle) {<NEW_LINE>List<JClassType> needsSuperclass = new ArrayList<<MASK><NEW_LINE>// Emit in hierarchy order to ensure superclass is defined when<NEW_LINE>// referenced<NEW_LINE>Collections.sort(needsSuperclass, new Comparator<JClassType>() {<NEW...
>(bundle.getNeedsSuperclass());
811,151
public void run(RegressionEnvironment env) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String epl = "@name('s0') select irstream max(price) as maxVol" + " from SupportMarketDataBean#sort(1,volume desc) as s0, " + "SupportBean#keepall as s1 where s1.theString=s0.symbol " + "output every 1.0d seconds";<NEW_LINE>env.compileDep...
1].get("maxVol"));
931,402
private Mono<Response<VMExtensionPayloadInner>> vMHostPayloadWithResponseAsync(String resourceGroupName, String monitorName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
591,487
protected void onBindPreferenceViewHolder(Preference preference, PreferenceViewHolder holder) {<NEW_LINE>super.onBindPreferenceViewHolder(preference, holder);<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String key = preference.getKey();<NEW_LINE>if (RO...
.img_settings_device_bottom_dark : R.drawable.img_settings_device_bottom_light;
41,731
/*<NEW_LINE>* Open a non-asset file as if it were an asset.<NEW_LINE>*<NEW_LINE>* The "fileName" is the partial path starting from the application name.<NEW_LINE>*/<NEW_LINE>public Asset openNonAsset(final String fileName, AccessMode mode, Ref<Integer> outCookie) {<NEW_LINE>synchronized (mLock) {<NEW_LINE>// AutoMutex ...
).path.string());
564,244
public Map<String, Object> createParameterMap(NdbOpenJPADomainFieldHandlerImpl domainFieldHandler, QueryDomainType<?> queryDomainObject, Object oid) {<NEW_LINE>Map<String, Object> result = new HashMap<String, Object>();<NEW_LINE>Predicate predicate = null;<NEW_LINE>for (AbstractDomainFieldHandlerImpl localHandler : dom...
field = queryDomainObject.get(name);
1,566,287
final GetNamespaceResult executeGetNamespace(GetNamespaceRequest getNamespaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getNamespaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
(super.beforeMarshalling(getNamespaceRequest));
532,565
public int findElement(int ordinal, Object... hashKey) {<NEW_LINE>int hashCode = SetMapKeyHasher.hash(hashKey, keyDeriver.getFieldTypes());<NEW_LINE>HollowSetTypeDataElements currentData;<NEW_LINE>threadsafe: do {<NEW_LINE>long startBucket;<NEW_LINE>long endBucket;<NEW_LINE>do {<NEW_LINE>currentData = this.currentDataV...
(endBucket - startBucket - 1));
258,758
public void render(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle) throws JRException {<NEW_LINE>GraphicsNode rootNode = getRootNode(jasperReportsContext);<NEW_LINE>AffineTransform transform = ViewBox.getPreserveAspectRatioTransform(new float[] { 0, 0, (float) documentSize.getWidth(), ...
), rectangle.getY());
231,862
private void registerListener(AccessServiceConfig accessServiceConfigurationProperties, OMRSTopicConnector enterpriseOMRSTopicConnector, OMRSRepositoryConnector repositoryConnector, AuditLog auditLog) throws OMAGConfigurationErrorException {<NEW_LINE>Connection outTopicConnection = accessServiceConfigurationProperties....
accessServiceConfigurationProperties.getAccessServiceName(), auditLog);
95,410
private Method extractDefaultFallbackMethod(Invocation inv, String defaultFallback, Class<?>[] locationClass) {<NEW_LINE>if (StringUtil.isBlank(defaultFallback)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean mustStatic = locationClass != null && locationClass.length >= 1;<NEW_LINE>Class<?> clazz = mustStatic ? lo...
clazz, defaultFallback, originReturnType, paramTypeWithException);
627,389
private Mono<Response<ExtendedProductInner>> listDetailsWithResponseAsync(String resourceGroup, String registrationName, String productName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and c...
error(new IllegalArgumentException("Parameter resourceGroup is required and cannot be null."));
960,964
public static DescribeRdsAccountsResponse unmarshall(DescribeRdsAccountsResponse describeRdsAccountsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRdsAccountsResponse.setRequestId(_ctx.stringValue("DescribeRdsAccountsResponse.RequestId"));<NEW_LINE>describeRdsAccountsResponse.setCode(_ctx.integerValue("Describe...
= new ArrayList<AccountsItem>();
56,501
private void processRegisterRestClient(BeforeAnalysisContext context) {<NEW_LINE>Class<? extends Annotation> restClientAnnotation = (Class<? extends Annotation>) context.access().findClassByName(AT_REGISTER_REST_CLIENT);<NEW_LINE>if (null == restClientAnnotation) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>tracer.parsing<MA...
(() -> "Looking up annotated by " + AT_REGISTER_REST_CLIENT);
881,287
public CreateAppResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAppResult createAppResult = new CreateAppResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
1,046,830
public void initializeRequestQueueMetrics(Map<QuotaResource, LinkedList<RequestInfo>> readQueue, Map<QuotaResource, LinkedList<RequestInfo>> writeQueue) {<NEW_LINE>Supplier<Integer> readQueueSizeSupplier = () -> readQueue.entrySet().stream().flatMap(entry -> Stream.of(entry.getValue())).map(l -> l.size()).<MASK><NEW_LI...
reduce(0, Integer::sum);
1,604,168
public static void addGeoHash() {<NEW_LINE>// [START fs_geo_add_hash]<NEW_LINE>// Compute the GeoHash for a lat/lng point<NEW_LINE>double lat = 51.5074;<NEW_LINE>double lng = 0.1278;<NEW_LINE>String hash = GeoFireUtils.getGeoHashForLocation(new GeoLocation(lat, lng));<NEW_LINE>// Add the hash and the lat/lng to the doc...
updates.put("lat", lat);
1,016,005
public DisruptorAutobatcher<I, O> build() {<NEW_LINE>Preconditions.checkArgument(purpose != null, "purpose must be provided");<NEW_LINE>ImmutableEventHandlerParameters.Builder parametersBuilder = ImmutableEventHandlerParameters.builder();<NEW_LINE>bufferSize.ifPresent(parametersBuilder::batchSize);<NEW_LINE>parametersB...
timeoutOrchestrationContext.ifPresent(parametersBuilder::batchFunctionTimeoutContext);
1,459,325
public STATUS postAbstractInit(final PwmApplication pwmApplication, final DomainID domainID) throws PwmException {<NEW_LINE>final AppConfig config = pwmApplication.getConfig();<NEW_LINE>final String classNameString = config.readSettingAsString(PwmSetting.URL_SHORTENER_CLASS);<NEW_LINE>if (classNameString != null && cla...
theClass = Class.forName(classNameString);
233,292
private static List<String> makeCodeServerArgs(HostedModeOptions options, int port) {<NEW_LINE>List<String> args = new ArrayList<String>();<NEW_LINE>args.add("-noprecompile");<NEW_LINE>args.add("-port");<NEW_LINE>args.add(String.valueOf(port));<NEW_LINE>args.add("-sourceLevel");<NEW_LINE>args.add(String.valueOf<MASK><N...
(options.getSourceLevel()));
1,206,568
public Future<Vector[]> asyncGet(int[] rowIds, long[] indices) throws AngelException {<NEW_LINE>checkNotNull(rowIds, "rowIds");<NEW_LINE>checkNotNull(indices, "indices");<NEW_LINE>if (rowIds.length == 0) {<NEW_LINE>LOG.warn("parameter rowIds is empty, you should check it, just return a empty vector array now!!!");<NEW_...
result = new FutureResult<>();
1,710,351
public org.python.Object rfind(org.python.Object item, org.python.Object start, org.python.Object end) {<NEW_LINE>if (item == null) {<NEW_LINE>throw new org.python.exceptions.TypeError("rfind() takes at least 1 argument (0 given)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>org.python.Object st = (org.python.types.Str) item;<...
.Int.getInt(1));
1,438,154
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('typea') @public create schema TypeA()", path);<NEW_LINE>env.compileDeploy("@name('typeb') @public create schema TypeB()", path);<NEW_LINE>env.compileDeploy("@name('typec') @public create ...
.EVENTTYPE, "TypeA", c));
1,438,353
protected void expandDBID(DBIDRef id) {<NEW_LINE>clusterOrder.add(id);<NEW_LINE>PCAFilteredResult pca1 = localPCAs.get(id);<NEW_LINE>NumberVector dv1 = relation.get(id);<NEW_LINE>final int dim = dv1.getDimensionality();<NEW_LINE>DBIDArrayIter iter = tmpIds.iter();<NEW_LINE>for (; iter.valid(); iter.advance()) {<NEW_LIN...
prevdist = reachability.doubleValue(iter);
776,280
protected List<Element> expand(List<Element> tokens, String s, int type) {<NEW_LINE>if (tokens == null)<NEW_LINE>throw new NullPointerException("Received null argument");<NEW_LINE>if (tokens.isEmpty())<NEW_LINE>throw new IllegalArgumentException("Received empty list");<NEW_LINE>Document doc = ((Element) tokens.get(0))....
expanded = expandTimeHMS24(doc, s);
739,240
public Request<DescribeRiskConfigurationRequest> marshall(DescribeRiskConfigurationRequest describeRiskConfigurationRequest) {<NEW_LINE>if (describeRiskConfigurationRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeRiskConfigurationRequest)");<NEW_LINE>}<NEW_LINE>R...
.toString(content.length));
1,797,401
public void testPurgeMaxSize_10() throws Exception {<NEW_LINE>RemoteFile binaryLogDir = null;<NEW_LINE>RemoteFile binaryTraceDir = null;<NEW_LINE>NumberFormat nf = NumberFormat.getInstance();<NEW_LINE>server.updateServerConfiguration(new File(server.pathToAutoFVTTestFiles, "server-HPELPurgeMaxSizeTest_4.xml"));<NEW_LIN...
binaryTraceDir = server.getFileFromLibertyServerRoot("logs/tracedata");
374,784
ActionResult<JsonElement> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6, String path7) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Action...
), work.getId());
955,491
public CreateContactMethodResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateContactMethodResult createContactMethodResult = new CreateContactMethodResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>J...
String currentParentElement = context.getCurrentParentElement();
1,637,377
private List<Mutation> saveObject(Op op, Object object, Set<String> includeProperties) {<NEW_LINE>SpannerPersistentEntity<?> persistentEntity = this.spannerMappingContext.getPersistentEntity(object.getClass());<NEW_LINE>List<Mutation> mutations = new ArrayList<>();<NEW_LINE>Mutation.WriteBuilder writeBuilder = writeBui...
(op, child, includeProperties));
1,630,055
public Request<DistributeDatasetEntriesRequest> marshall(DistributeDatasetEntriesRequest distributeDatasetEntriesRequest) {<NEW_LINE>if (distributeDatasetEntriesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DistributeDatasetEntriesRequest)");<NEW_LINE>}<NEW_LINE>Reques...
setContent(new StringInputStream(snippet));
1,324,547
final DeleteApplicationInputProcessingConfigurationResult executeDeleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest deleteApplicationInputProcessingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationInputProcessing...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,794,059
private static PackageBufINf showLogSum(ManagerConnection c, ByteBuffer buffer, byte packetId) {<NEW_LINE>PackageBufINf bufINf = new PackageBufINf();<NEW_LINE>File[] logFiles = new File(SystemConfig.getHomePath(), "logs").listFiles();<NEW_LINE>String fileNames = "";<NEW_LINE>for (File f : logFiles) {<NEW_LINE>if (f.isF...
BufferedReader(new FileReader(file));
677,850
public void execute() {<NEW_LINE>if (stateManager.getActiveDatabase().isEmpty()) {<NEW_LINE>dialogService.notify(Localization.lang("This operation requires an open library."));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (stateManager.getSelectedEntries().size() != 1) {<NEW_LINE>dialogService.notify(Localization.lang("This...
getUndoManager().addEdit(ce);
334,674
public void addAdvancedMsgListener(MethodCall call, final MethodChannel.Result result) {<NEW_LINE>final String listenerUuid = CommonUtil.getParam(call, result, "listenerUuid");<NEW_LINE>listenerUuidList.add(listenerUuid);<NEW_LINE>final V2TIMAdvancedMsgListener advacedMessageListener = new V2TIMAdvancedMsgListener() {<...
getMessageManager().addAdvancedMsgListener(advacedMessageListener);
338,194
private void checkSnapshotCompatibility(Project project, FileCollection currentFiles, File previousDirectory, FileExtensionFilter filter, List<String> fileArgs) {<NEW_LINE>boolean isCheckRestSpecVsSnapshot = filter.getSuffix().equals(PegasusPlugin.IDL_FILE_SUFFIX);<NEW_LINE>for (File currentFile : currentFiles) {<NEW_L...
"Checking interface file: {}", currentFile.getPath());
787,596
public static StoredLtrQueryBuilder fromXContent(FeatureStoreLoader storeLoader, XContentParser parser) throws IOException {<NEW_LINE>storeLoader = Objects.requireNonNull(storeLoader);<NEW_LINE>final StoredLtrQueryBuilder builder = new StoredLtrQueryBuilder(storeLoader);<NEW_LINE>try {<NEW_LINE>PARSER.<MASK><NEW_LINE>}...
parse(parser, builder, null);
782,801
final DeleteComponentResult executeDeleteComponent(DeleteComponentRequest deleteComponentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteComponentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
10,852
public final <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> MergeImpl columns(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12>...
, field15, field16, field17));
1,364,224
public void onReceive(Context context, Intent intent) {<NEW_LINE>String action = intent.getAction();<NEW_LINE>Log.d(TAG, "intent: " + intent);<NEW_LINE>if (Intent.ACTION_POWER_CONNECTED.equals(action)) {<NEW_LINE>Intent cmd = new Intent(UploadService.INTENT_POWER_CONNECTED);<NEW_LINE>cmd.setClass(context, UploadService...
+ cmd.getStringExtra("SSID"));
303,107
Expr indexMethodField(Expr expr) {<NEW_LINE>if (expr == null) {<NEW_LINE>expr = map();<NEW_LINE>}<NEW_LINE>// Expr expr = map();<NEW_LINE>while (true) {<NEW_LINE>Tok tok = peek();<NEW_LINE>// expr [ expr ]<NEW_LINE>if (tok.sym == Sym.LBRACK) {<NEW_LINE>move();<NEW_LINE>Expr index = expr();<NEW_LINE>match(Sym.RBRACK);<N...
Index(expr, index, location);
81,347
final ListAssessmentRunAgentsResult executeListAssessmentRunAgents(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssessmentRunAgentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
82,970
public ListSentimentDetectionJobsResult listSentimentDetectionJobs(ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSentimentDetectionJobsRequest);<NEW_LINE>AWSRequestMetric...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
131,970
public void testCreateAndCancelBeforeExpirationNoTx() {<NEW_LINE>try {<NEW_LINE>svExpiredTimerInfos.clear();<NEW_LINE>ivBean.executeTestNoTx(TstName.TEST_CREATE_TIMER);<NEW_LINE>Collection<String> infos = ivBean.getInfoOfAllTimers();<NEW_LINE>assertEquals("Unexpected number of timers", 1, infos.size());<NEW_LINE>assert...
, infos.contains(DEFAULT_INFO));
419,234
protected void configure() {<NEW_LINE>// For each CliOption installed at runtime, bind a singleton instance and register the instance<NEW_LINE>// to JCommander for parsing.<NEW_LINE>ImmutableList.Builder<CliOption> cliOptions = ImmutableList.builder();<NEW_LINE>for (ClassInfo classInfo : scanResult.getClassesImplementi...
.loadClass(CliOption.class));
937,911
public void marshall(ModelPackage modelPackage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (modelPackage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(modelPackage.getModelPackageName(), MODELPACKAGE...
modelPackage.getApprovalDescription(), APPROVALDESCRIPTION_BINDING);
1,775,590
public static <T> ServerServiceDefinition useMarshalledMessages(final ServerServiceDefinition serviceDef, final MethodDescriptor.Marshaller<T> marshaller) {<NEW_LINE>List<ServerMethodDefinition<?, ?>> wrappedMethods = new ArrayList<>();<NEW_LINE>List<MethodDescriptor<?, ?>> wrappedDescriptors = new ArrayList<>();<NEW_L...
(wrapMethod(definition, wrappedMethodDescriptor));
451,112
final DeleteBackupVaultLockConfigurationResult executeDeleteBackupVaultLockConfiguration(DeleteBackupVaultLockConfigurationRequest deleteBackupVaultLockConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBackupVaultLockConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRe...
invoke(request, responseHandler, executionContext);
1,008,246
private Mono<Response<Flux<ByteBuffer>>> diagnoseVirtualNetworkWithResponseAsync(String resourceGroupName, String clusterName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<N...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
481,570
public // added by Gary - ghuang@cs.umass.edu<NEW_LINE>InstanceList sampleWithWeights(java.util.Random r, double[] weights) {<NEW_LINE>if (weights.length != size())<NEW_LINE>throw new IllegalArgumentException("length of weight vector must equal number of instances");<NEW_LINE>if (size() == 0)<NEW_LINE>return cloneEmpty...
= new double[size()];
1,088,804
final SearchResult executeSearch(SearchRequest searchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Sea...
false), new SearchResultJsonUnmarshaller());
784,454
private Expression<?> parseMapDefinitionExpression() {<NEW_LINE>TokenStream stream = this.parser.getStream();<NEW_LINE>// expect the opening brace and check for an empty map<NEW_LINE>stream.expect(Token.Type.PUNCTUATION, "{");<NEW_LINE>if (stream.current().test(Token.Type.PUNCTUATION, "}")) {<NEW_LINE>stream.next();<NE...
elements = new HashMap<>();
1,486,624
public void insertTodayRowIfNeeded() {<NEW_LINE>int len = mRowInfo.size();<NEW_LINE>int lastDay = -1;<NEW_LINE>int insertIndex = -1;<NEW_LINE>for (int index = 0; index < len; index++) {<NEW_LINE>RowInfo <MASK><NEW_LINE>if (row.mDay == mTodayJulianDay) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (row.mDay > mTodayJulianDa...
row = mRowInfo.get(index);
91,331
public static void loadModules(final ClasspathJrt jrt) {<NEW_LINE>Set<IModule> cache = ModulesCache.get(jrt.getKey());<NEW_LINE>if (cache == null) {<NEW_LINE>try {<NEW_LINE>final File imageFile <MASK><NEW_LINE>org.eclipse.jdt.internal.compiler.util.JRTUtil.walkModuleImage(imageFile, new org.eclipse.jdt.internal.compile...
= new File(jrt.zipFilename);
248,493
private void fillIDValues() {<NEW_LINE>for (X_I_Movement movementImport : getRecords(false, isImportOnlyNoErrors)) {<NEW_LINE>// if(movementImport.getAD_Org_ID()==0)<NEW_LINE>movementImport.setAD_Org_ID(getID(MOrg.Table_Name, "Value = ?", new Object[] { movementImport.getOrgValue() }));<NEW_LINE>if (movementImport.getM...
movementImport.getShipperName() }));
368,599
private static String createInsertDataQuery(final String table, final String tempTable, final String[] newCols, final String[] oldCols, final Map<String, String> colAliases, final String[] notNullCols, final OnConflict onConflict) {<NEW_LINE>final SQLInsertQuery.Builder qb = insertInto(onConflict, table);<NEW_LINE>fina...
colAliases.get(newCol) : null;
984,739
private void register() {<NEW_LINE>registry.register(MetricRegistry.name(NettyInternalMetrics.class, "NumberDirectArenas"), (Gauge<Integer>) this::getNumDirectArenas);<NEW_LINE>registry.register(MetricRegistry.name(NettyInternalMetrics.class, "NumberHeapArenas"), (Gauge<Integer>) this::getNumHeapArenas);<NEW_LINE>regis...
<Long>) this::getUsedDirectMemory);
1,322,080
private static SimpleSignature createSignature(Operation operation, MetaAccessProvider metaAccess) {<NEW_LINE>ResolvedJavaType objectHandleType = metaAccess.lookupJavaType(JNIObjectHandle.class);<NEW_LINE>ResolvedJavaType intType = metaAccess.lookupJavaType(int.class);<NEW_LINE>ResolvedJavaType returnType;<NEW_LINE>Lis...
.lookupJavaType(WordPointer.class));
640,176
public MessageReply call(final NeedReplyMessage msg) {<NEW_LINE>evaluateMessageTimeout(msg);<NEW_LINE>final MessageReply[] replies = new MessageReply[1];<NEW_LINE>replies[0] = null;<NEW_LINE>Envelope e = new Envelope() {<NEW_LINE><NEW_LINE><MASK><NEW_LINE><NEW_LINE>final Envelope self = this;<NEW_LINE><NEW_LINE>@Overri...
AtomicBoolean called = new AtomicBoolean(false);
687,189
Object execute(Object[] arguments, @Cached HPyAsContextNode asContextNode, @Cached HPyAsPythonObjectNode receiverAsPythonObjectNode, @Cached HPyAsPythonObjectNode keyAsPythonObjectNode, @Cached HPyAsHandleNode asHandleNode, @Cached FromCharPointerNode fromCharPointerNode, @Cached PInteropGetAttributeNode getAttributeNo...
(context, arguments[2]);
1,269,425
public boolean sendCurrentId(String collection, long id) {<NEW_LINE>try {<NEW_LINE>HttpPost post = new HttpPost(postURL);<NEW_LINE>post.addHeader("X-Auth-Service-Provider", SERVICE_PROVIDER);<NEW_LINE>post.addHeader("X-Verify-Credentials-Authorization", getAuthrityHeader(twitter));<NEW_LINE>JSONObject json = new JSONOb...
.getStatusLine().getStatusCode();
2,379
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('create') @public create window MyWindow#keepall as SupportBean;\n" + "insert into MyWindow select * from SupportBean", path);<NEW_LINE>// insert X rows<NEW_LINE>// for performance testing...
) ? "A" : "B", i);
122,206
// Get join two collection<NEW_LINE>private static void testUnion() {<NEW_LINE>Set<String> set1 = Sets.newHashSet("a1", "a2");<NEW_LINE>Set<String> set2 = Sets.newHashSet("a4");<NEW_LINE>MutableSet<String> mutableSet1 = UnifiedSet.newSetWith("a1", "a2");<NEW_LINE>MutableSet<String> mutableSet2 = UnifiedSet.newSetWith("...
Sets.union(set1, set2);
503,585
public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var <MASK><NEW_LINE>var response = MongoResponse.of(exchange);<NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (request.getDBName().isEmpty()) {<NEW_LINE>response.setInError(HttpStatus...
request = MongoRequest.of(exchange);
1,323,547
public void key(View view) {<NEW_LINE>String key = ((Button) view).getText().toString();<NEW_LINE>if (mUiToString.containsKey(key)) {<NEW_LINE>key = mUiToString.get(key);<NEW_LINE>}<NEW_LINE>switch(key) {<NEW_LINE>case "inv":<NEW_LINE>mIsInInverseMode = !mIsInInverseMode;<NEW_LINE>invertStrings(mIsInInverseMode);<NEW_L...
k++].setText(s);
249,348
void autoComplete(String text, EditText editText) {<NEW_LINE>if (mAutocompleteListView == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (text == null || text.length() == 0) {<NEW_LINE>mAutocompleteListView.setVisibility(View.GONE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int currentStart = editText.getSelectionStart();<...
int currentEnd = editText.getSelectionEnd();