idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
963,583
private Supplier<Pair<Integer, JsonNode>> handleAddOp(String path, JsonNode patchValue, PatchRequestScope requestScope, PatchAction action) {<NEW_LINE>try {<NEW_LINE>JsonApiDocument value = requestScope.getMapper().readJsonApiPatchExtValue(patchValue);<NEW_LINE>Data<Resource> data = value.getData();<NEW_LINE>if (data =...
(resources).setRelationships(null);
1,311,322
public void run() {<NEW_LINE>boolean addCloseTag;<NEW_LINE>int tag2Start;<NEW_LINE>int tagStart;<NEW_LINE>int tagEnd;<NEW_LINE>String tag;<NEW_LINE>String line = "";<NEW_LINE>try {<NEW_LINE>while (!m_ofx.equals("")) {<NEW_LINE>addCloseTag = false;<NEW_LINE><MASK><NEW_LINE>if (tagStart == -1) {<NEW_LINE>break;<NEW_LINE>...
tagStart = m_ofx.indexOf('<');
1,044,365
private void fillInOnlyRelevantValues(final ClientPerformanceSnapshot snapshot) {<NEW_LINE>List<ClientPerformanceSnapshot.Category<MASK><NEW_LINE>// header<NEW_LINE>LocalDate startDate = snapshot.getStartClientSnapshot().getTime();<NEW_LINE>String header = MessageFormat.format(Messages.PerformanceRelevantTransactionsHe...
> categories = snapshot.getCategories();
769,733
private String nodeToRankingExpression(LightGBMNode node) {<NEW_LINE>if (node.isLeaf()) {<NEW_LINE>return Double.toString(node.getLeaf_value());<NEW_LINE>} else {<NEW_LINE>String condition;<NEW_LINE>String feature = featureNames.get(node.getSplit_feature());<NEW_LINE>if (node.getDecision_type().equals("==")) {<NEW_LINE...
nodeToRankingExpression(node.getLeft_child());
1,745,136
final ListSamplesResult executeListSamples(ListSamplesRequest listSamplesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSamplesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new ListSamplesResultJsonUnmarshaller());
1,257,660
protected Set<HighlightFlag> evaluateFlags(final boolean shouldHandleMultiTermQuery, final boolean shouldHighlightPhrasesStrictly, final boolean shouldPassageRelevancyOverSpeed, final boolean shouldEnableWeightMatches) {<NEW_LINE>Set<HighlightFlag> highlightFlags = EnumSet.noneOf(HighlightFlag.class);<NEW_LINE>if (shou...
highlightFlags.add(HighlightFlag.MULTI_TERM_QUERY);
808,909
final DescribeOfferingResult executeDescribeOffering(DescribeOfferingRequest describeOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOfferingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
119,677
protected void fillPartitionToKeyData(Set<K> keys, Map<Integer, List<Data>> partitionToKeyData, Map<Object, Data> keyMap, Map<Data, Object> reverseKeyMap) {<NEW_LINE>ClientPartitionService partitionService <MASK><NEW_LINE>for (K key : keys) {<NEW_LINE>Data keyData = toData(key);<NEW_LINE>int partitionId = partitionServ...
= getContext().getPartitionService();
494,113
public List<FsContent> findFilesWhere(String sqlWhereClause) throws TskCoreException {<NEW_LINE><MASK><NEW_LINE>acquireSingleUserCaseReadLock();<NEW_LINE>Statement s = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>s = connection.createStatement();<NEW_LINE>// NON-NLS<NEW_LINE>rs = connection.executeQuery(...
CaseDbConnection connection = connections.getConnection();
497,383
public final DoctypedeclContext doctypedecl() throws RecognitionException {<NEW_LINE>DoctypedeclContext _localctx = new DoctypedeclContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 8, RULE_doctypedecl);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(59);<NEW_L...
_errHandler.reportError(this, re);
572,467
public static HttpResult httpPost(String url, List<String> headers, Map<String, String> paramValues, String encoding) {<NEW_LINE>try {<NEW_LINE>HttpPost httpost = new HttpPost(url);<NEW_LINE>RequestConfig requestConfig = RequestConfig.custom().setConnectionRequestTimeout(5000).setConnectTimeout(5000).setSocketTimeout(5...
HttpEntity entity = response.getEntity();
1,019,321
public String serialize(boolean prettyPrint, RequestDefinition... requestDefinitions) {<NEW_LINE>try {<NEW_LINE>if (requestDefinitions != null && requestDefinitions.length > 0) {<NEW_LINE>Object[] requestDefinitionDTOs <MASK><NEW_LINE>for (int i = 0; i < requestDefinitions.length; i++) {<NEW_LINE>if (requestDefinitions...
= new Object[requestDefinitions.length];
1,313,397
public void loadDefaultValues() {<NEW_LINE>setDefault(CommonClientConfigKey.MaxHttpConnectionsPerHost, getDefaultMaxHttpConnectionsPerHost());<NEW_LINE>setDefault(CommonClientConfigKey.MaxTotalHttpConnections, getDefaultMaxTotalHttpConnections());<NEW_LINE>setDefault(CommonClientConfigKey.EnableConnectionPool, getDefau...
getDefaultPoolKeepAliveTimeUnits().toString());
1,344,761
private List<String> findTsvFiles(Path LeappOutputDir) throws IngestModuleException {<NEW_LINE>List<String> allTsvFiles;<NEW_LINE>List<String> foundTsvFiles = new ArrayList<>();<NEW_LINE>try (Stream<Path> walk = Files.walk(LeappOutputDir)) {<NEW_LINE>allTsvFiles = walk.map(x -> x.toString()).filter(f -> f.toLowerCase()...
LeappOutputDir.toString(), e);
1,213,560
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.ScheduleManagementGrpc.ScheduleManagementImplBase#<NEW_LINE>* listSchedules(com.sitewhere.grpc.service.GListSchedulesRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void listSchedules(GListSchedulesRequest request, ...
(ScheduleModelConverter.asGrpcSchedule(api));
1,621,001
final DeleteClientVpnRouteResult executeDeleteClientVpnRoute(DeleteClientVpnRouteRequest deleteClientVpnRouteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteClientVpnRouteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,410,286
public void stop() {<NEW_LINE>this.active = false;<NEW_LINE>synchronized (this.connections) {<NEW_LINE>Iterator<Entry<String, TcpConnectionSupport>> iterator = this.connections.entrySet().iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>TcpConnectionSupport connection = iterator.next().getValue();<NEW_LINE>co...
-> sender.removeDeadConnection(connection));
1,310,283
public void notifyResponse(V8Request request, V8Response response) {<NEW_LINE>Pair<JSLineBreakpoint, Location> lbLoc;<NEW_LINE>synchronized (submittingBreakpoints) {<NEW_LINE>lbLoc = submittingBreakpoints.remove(request.getArguments());<NEW_LINE>}<NEW_LINE>if (lbLoc == null) {<NEW_LINE>LOG.log(Level.INFO, "Did not find...
removed = removeAfterSubmit.remove(lb);
699,301
public void restrictFormatting(List<String> allowedStyleNames, boolean removedNotAllowedFormatting, boolean autoFormatOverride, boolean styleLockTheme, boolean styleLockQFSet, String password, HashAlgorithm hashAlgo) throws Docx4JException {<NEW_LINE>if (getPkg().getMainDocumentPart() == null)<NEW_LINE>throw new Docx4J...
.getMainDocumentPart().getStyleDefinitionsPart();
789,884
public Object readResolve() throws InvalidRecipeConfigException {<NEW_LINE>if (disabled) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>super.readResolve();<NEW_LINE>if (!scaler.isPresent()) {<NEW_LINE>throw new InvalidRecipeConfigException("Missing <scaler> or <indexed>");<NEW_LINE>}<NEW_LINE>if (base == I...
.get().isValid();
1,680,817
public void marshall(ThingDocument thingDocument, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (thingDocument == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(thingDocument.getThingName(), THINGNAME_BINDI...
thingDocument.getThingGroupNames(), THINGGROUPNAMES_BINDING);
449,051
public static GetNodeGroupResponse unmarshall(GetNodeGroupResponse getNodeGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>getNodeGroupResponse.setRequestId(_ctx.stringValue("GetNodeGroupResponse.RequestId"));<NEW_LINE>getNodeGroupResponse.setSuccess(_ctx.booleanValue("GetNodeGroupResponse.Success"));<NEW_LINE>Data ...
(_ctx.stringValue("GetNodeGroupResponse.Data.JoinPermissionId"));
203,410
public static String exeWholeCmd(String cmd) {<NEW_LINE>// Common apache exec doesn't support piple operation.<NEW_LINE>// It's the shell (e.g. bash) that interprets the pipe and does special processing when you type that<NEW_LINE>// commandline into the shell.<NEW_LINE>// But we could use a ByteArrayInputStream to fee...
cmdLine = CommandLine.parse(cmd);
91,013
// Take a DNS queue + admin registrar id as input so that it can be called from the mapper as well<NEW_LINE>private static void softDeleteDomain(DomainBase domain, String registryAdminRegistrarId, DnsQueue localDnsQueue) {<NEW_LINE>DomainBase deletedDomain = domain.asBuilder().setDeletionTime(tm().getTransactionTime())...
setRegistrarId(registryAdminRegistrarId).build();
735,074
public boolean read(java.io.ObjectInputStream p_object_stream) {<NEW_LINE>try {<NEW_LINE>SavedAttributes saved_attributes = (SavedAttributes) p_object_stream.readObject();<NEW_LINE>this.snapshot_count = saved_attributes.snapshot_count;<NEW_LINE>this.list_model = saved_attributes.list_model;<NEW_LINE>this.list.setModel(...
this.setLocation(saved_attributes.location);
475,518
private void doUpdateRanges(int beforeChangedLine1, int beforeChangedLine2, int linesShift, int beforeTotalLines) {<NEW_LINE>LOG.assertTrue(!myReleased);<NEW_LINE>List<Range> <MASK><NEW_LINE>List<Range> rangesAfterChange = new ArrayList<>();<NEW_LINE>List<Range> changedRanges = new ArrayList<>();<NEW_LINE>sortRanges(be...
rangesBeforeChange = new ArrayList<>();
766,718
public void write(final Path file, final Distribution configuration, final LoginCallback prompt) throws BackgroundException {<NEW_LINE>final Path container = containerService.getContainer(file);<NEW_LINE>try {<NEW_LINE>if (StringUtils.isNotBlank(configuration.getIndexDocument())) {<NEW_LINE>session.getClient().updateCo...
, configuration.getIndexDocument()));
1,805,819
public void write(DataOutput out) throws IOException {<NEW_LINE>// ATTN: must write type first<NEW_LINE>Text.writeString(out, dataSourceType.name());<NEW_LINE>out.writeLong(id);<NEW_LINE>Text.writeString(out, name);<NEW_LINE>Text.writeString(out, clusterName);<NEW_LINE>out.writeLong(dbId);<NEW_LINE>out.writeLong(tableI...
out, entry.getKey());
245,080
public static ListSlotResponse unmarshall(ListSlotResponse listSlotResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSlotResponse.setRequestId<MASK><NEW_LINE>listSlotResponse.setSuccess(_ctx.booleanValue("ListSlotResponse.Success"));<NEW_LINE>listSlotResponse.setCode(_ctx.stringValue("ListSlotResponse.Code"));<NEW_LIN...
(_ctx.stringValue("ListSlotResponse.RequestId"));
113,378
static boolean maybeLogLastMountStart(@Nullable MountStartupLoggingInfo loggingInfo, LithoView lithoView) {<NEW_LINE>if (loggingInfo != null && LithoStartupLogger.isEnabled(loggingInfo.startupLogger) && loggingInfo.firstMountLogged != null && loggingInfo.firstMountLogged[0] && loggingInfo.lastMountLogged != null && !lo...
LithoStartupLogger.START, loggingInfo.startupLoggerAttribution);
1,147,214
public Request<ModifyDBProxyEndpointRequest> marshall(ModifyDBProxyEndpointRequest modifyDBProxyEndpointRequest) {<NEW_LINE>if (modifyDBProxyEndpointRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyDBProxyEndpointRequest> request = n...
request.addParameter("Action", "ModifyDBProxyEndpoint");
1,498,759
private ReplacedElement replaceImage(Element elem, String uri, int width, int height, UserAgentCallback uac) {<NEW_LINE>ReplacedElement replaced = _sizedImageCache.get(new SizedImageCacheKey(uri, width, height));<NEW_LINE>if (replaced != null) {<NEW_LINE>return replaced;<NEW_LINE>}<NEW_LINE>XRLog.log(Level.FINE, LogMes...
FSImage awtfsImage = ir.getImage();
1,621,643
public OsStats osStats() {<NEW_LINE>final long uptime = -1L;<NEW_LINE>final double systemLoadAverage = ManagementFactory.getOperatingSystemMXBean().getSystemLoadAverage();<NEW_LINE>final double[] loadAverage = systemLoadAverage < 0.0d ? new double[0] : new double[] { systemLoadAverage };<NEW_LINE>final Processor proces...
1, (short) -1);
708,701
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Filter filter = call.rel(0);<NEW_LINE>final List<RexNode> expList = Lists.newArrayList(filter.getCondition());<NEW_LINE>RexNode newConditionExp;<NEW_LINE>boolean reduced;<NEW_LINE>final RelMetadataQuery mq = call.getMetadataQuery();<NEW_LINE>final RelOptPredicat...
call, filter, newConditionExp, reverse);
1,256,415
private void parseDocument(boolean updateWebApp) throws IOException {<NEW_LINE>WebAppProxy webAppProxy = (WebAppProxy) webApp;<NEW_LINE>try {<NEW_LINE>// preparsing<NEW_LINE>SAXParseException error = WebParseUtils.parse(new InputSource(createReader()), new EnterpriseCatalog());<NEW_LINE>setSaxError(error);<NEW_LINE>Str...
(), version), version);
11,390
public void run() {<NEW_LINE>try {<NEW_LINE>final Pair<URI, ElementHandle<TypeElement><MASK><NEW_LINE>if (handlePair != null) {<NEW_LINE>final FileObject target = URLMapper.findFileObject(handlePair.first().toURL());<NEW_LINE>if (target != null) {<NEW_LINE>final JavaSource targetJs = JavaSource.forFileObject(target);<N...
> handlePair = becomesHandle.get();
420,267
public List<StoragePoolJoinVO> searchByIds(Long... spIds) {<NEW_LINE>// set detail batch query size<NEW_LINE>int DETAILS_BATCH_SIZE = 2000;<NEW_LINE>String batchCfg = _configDao.getValue("detail.batch.query.size");<NEW_LINE>if (batchCfg != null) {<NEW_LINE>DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);<NEW_LINE>}<NEW...
] ids = new Long[batch_size];
1,198,103
public void logGeneralColumns(File file) {<NEW_LINE>if (file == null) {<NEW_LINE>sb.append("MediaInfo parsing results for null:\n");<NEW_LINE>} else {<NEW_LINE>sb.append("MediaInfo parsing results for \"").append(file.getAbsolutePath()).append("\":\n");<NEW_LINE>}<NEW_LINE>if (mI == null) {<NEW_LINE>sb.append("ERROR: L...
, "StereoscopicLayout"), true, true);
821,445
final UpdateSourceLocationResult executeUpdateSourceLocation(UpdateSourceLocationRequest updateSourceLocationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSourceLocationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Updat...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,630,388
private void configure() {<NEW_LINE>try {<NEW_LINE>Files.createDirectories(configFile.getParent());<NEW_LINE>Files.createDirectories(confPathRepo);<NEW_LINE>Files.createDirectories(confPathData);<NEW_LINE>Files.createDirectories(confPathLogs);<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new UncheckedIOException(e...
("sharedData").toString());
526,618
public static RemoveVServerGroupBackendServersResponse unmarshall(RemoveVServerGroupBackendServersResponse removeVServerGroupBackendServersResponse, UnmarshallerContext _ctx) {<NEW_LINE>removeVServerGroupBackendServersResponse.setRequestId(_ctx.stringValue("RemoveVServerGroupBackendServersResponse.RequestId"));<NEW_LIN...
("RemoveVServerGroupBackendServersResponse.BackendServers[" + i + "].ServerIp"));
1,105,039
public void run() {<NEW_LINE>try {<NEW_LINE>String providerData = NetUtils.getContent(new URL(providerListUrl), 5000);<NEW_LINE>ObjectNode provider = objectMapper.readValue(providerData, ObjectNode.class);<NEW_LINE>ArrayNode arryaNode = (ArrayNode) provider.get("services");<NEW_LINE>for (JsonNode jsonNode : arryaNode) ...
("provider").asText());
1,767,971
public void write(Fields fields, NormsProducer norms) throws IOException {<NEW_LINE>Map<PostingsFormat, <MASK><NEW_LINE>// Write postings<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>for (Map.Entry<PostingsFormat, FieldsGroup> ent : formatToGroups.entrySet()) {<NEW_LINE>PostingsFormat format = ent.getKey()...
FieldsGroup> formatToGroups = buildFieldsGroupMapping(fields);
79,924
public void migrateHomeWorkParkingToFavorites() {<NEW_LINE>OsmandSettings settings = app.getSettings();<NEW_LINE>FavouritesHelper favorites = app.getFavoritesHelper();<NEW_LINE>SettingsAPI settingsAPI = settings.getSettingsAPI();<NEW_LINE>Object globalPreferences = settings.getGlobalPreferences();<NEW_LINE>LatLon homeP...
= new LatLon(lat, lon);
62,196
public void onAfterAnyExecute(StatementInformation statementInformation, long timeElapsedNanos, SQLException e) {<NEW_LINE>final Span activeSpan = tracingPlugin.getTracer().scopeManager().activeSpan();<NEW_LINE>if (activeSpan != null) {<NEW_LINE>if (statementInformation.getConnectionInformation().getDataSource() instan...
activeSpan.setTag(DB_STATEMENT, sql);
1,696,993
public void deleteLinkedAccount(LinkedAccountType type) throws IOException {<NEW_LINE>try {<NEW_LINE>String authServerRootUrl = config.getKeycloakAuthUrl();<NEW_LINE>String realm = config.getKeycloakRealm();<NEW_LINE><MASK><NEW_LINE>JWTCallerPrincipal principal = (JWTCallerPrincipal) request.getUserPrincipal();<NEW_LIN...
String provider = type.alias();
876,603
final CreateStudioResult executeCreateStudio(CreateStudioRequest createStudioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStudioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,033,921
public final void commit_one_phase() throws XAException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "commit_one_phase", new Object<MASK><NEW_LINE>if (tcSummary.isDebugEnabled())<NEW_LINE>Tr.debug(tcSummary, "commit_one_phase", this);<NEW_LINE>try {<NEW_LINE>_resource.commit(_xid, true);<NEW_LINE>// Record...
[] { _resource, _xid });
1,423,522
public void validate(HttpAction action) {<NEW_LINE>String method = action.getRequestMethod().toUpperCase(Locale.ROOT);<NEW_LINE>if (HttpNames.METHOD_OPTIONS.equals(method))<NEW_LINE>return;<NEW_LINE>if (!HttpNames.METHOD_POST.equals(method) && !HttpNames.METHOD_GET.equals(method))<NEW_LINE>ServletOps.errorMethodNotAllo...
"Service Description: " + action.getRequestRequestURI());
33,548
public static void main(String[] args) {<NEW_LINE>JFrame view = new JFrame("airline1");<NEW_LINE>view.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<NEW_LINE>SDateField dep = new SDateField();<NEW_LINE>SDateField ret = new SDateField();<NEW_LINE>Cell<Boolean> valid = dep.date.lift(ret.date, (d, r) -> d.compareTo(r) <=...
view.add(ret, c);
569,359
public DecryptionResult decrypt(CertificateValidator validator, byte[] ciphertext, long timestamp) throws InvalidMetadataMessageException, InvalidMetadataVersionException, ProtocolInvalidMessageException, ProtocolInvalidKeyException, ProtocolNoSessionException, ProtocolLegacyMessageException, ProtocolInvalidVersionExce...
getSenderCertificate().getSenderUuid());
97,140
public void updateConnectedControllers() {<NEW_LINE>logger.config("Updating connected controllers.");<NEW_LINE>if (environment != null) {<NEW_LINE>controllerCount = 0;<NEW_LINE>for (int i = 0; i < VR.k_unMaxTrackedDeviceCount; i++) {<NEW_LINE>int classCallback = VRSystem.VRSystem_GetTrackedDeviceClass(i);<NEW_LINE>if (...
controllerName + " (" + manufacturerName + ") attached.");
1,288,030
public static GetDesktopGroupDetailResponse unmarshall(GetDesktopGroupDetailResponse getDesktopGroupDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDesktopGroupDetailResponse.setRequestId(_ctx.stringValue("GetDesktopGroupDetailResponse.RequestId"));<NEW_LINE>List<Desktop> desktops = new ArrayList<Desktop>();<NE...
("GetDesktopGroupDetailResponse.Desktops[" + i + "].Comments"));
384,770
public Mono<Response<RoleDefinitionInner>> createOrUpdateWithResponseAsync(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be...
error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
61,759
private Collection<String> validateReadQueueSize(Collection<String> canonicalKeys, EVCache.Call call) throws EVCacheException {<NEW_LINE>if (evcacheMemcachedClient.getNodeLocator() == null)<NEW_LINE>return canonicalKeys;<NEW_LINE>final Collection<String> retKeys = new ArrayList<>(canonicalKeys.size());<NEW_LINE>for (St...
getNodeLocator().getPrimary(key);
665,805
public Object calculate(Context ctx) {<NEW_LINE>if (param == null || !param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("long" + mm.getMessage("function.invalidParam"));<NEW_LINE>}<NEW_LINE>Object result = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (result ins...
+ mm.getMessage("function.paramTypeError"));
1,618,599
void tryInitUserObject(CommandLine commandLine) throws Exception {<NEW_LINE>Tracer tracer = commandLine.tracer;<NEW_LINE>if (typeInfo() != null) {<NEW_LINE>tracer.debug("Creating new user object of type %s for group %s%n", typeInfo().getAuxiliaryTypes()[0], synopsis());<NEW_LINE>Object userObject = DefaultFactory.creat...
setUserObject(userObject, commandLine.factory);
591,797
private static final void selfTestKey(RSAPrivateCrtKey privateKey, JwtRsaSsaPkcs1PrivateKey keyProto) throws GeneralSecurityException {<NEW_LINE>java.security.KeyFactory kf = EngineFactory.KEY_FACTORY.getInstance("RSA");<NEW_LINE>RSAPublicKey publicKey = (RSAPublicKey) kf.generatePublic(new RSAPublicKeySpec(new BigInte...
.getPublicKey().getAlgorithm();
1,176,812
private void assertIsUnmodifiable() {<NEW_LINE>expectUnsupportedOperationException(() -> actual.add(null), "Collection.add(null)");<NEW_LINE>expectUnsupportedOperationException(() -> actual.addAll(emptyCollection()), "Collection.addAll(emptyCollection())");<NEW_LINE>expectUnsupportedOperationException(() -> actual.clea...
.set(null), "List.listIterator().set(null)");
1,489,665
public DataSerializableFactory createFactory() {<NEW_LINE>ConstructorFunction<Integer, IdentifiedDataSerializable>[<MASK><NEW_LINE>constructors[JSON_QUERY] = arg -> new JsonQueryFunction();<NEW_LINE>constructors[JSON_PARSE] = arg -> new JsonParseFunction();<NEW_LINE>constructors[JSON_VALUE] = arg -> new JsonValueFuncti...
] constructors = new ConstructorFunction[LEN];
161,849
private JPanel makeParameterPanel() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>expressionField = new JLabeledTextField(JMeterUtils.getResString("expression_field"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>attributeField = new JLabeledTextField(JMeterUtils.getResString("attribute_field"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>refNameFiel...
addField(panel, attributeField, gbc);
390,942
public void start() {<NEW_LINE>if (config.isRunMigration() && TenantMode.DB != config.getTenantMode()) {<NEW_LINE>final AutoMigrationRunner migrationRunner = ServiceUtil.service(AutoMigrationRunner.class);<NEW_LINE>if (migrationRunner == null) {<NEW_LINE>throw new IllegalStateException("No AutoMigrationRunner found. Pr...
run(config.getDataSource());
1,163,437
protected Map<String, ParameterDescription<?>> computeParameters() {<NEW_LINE>HashMap<String, ParameterDescription<?>> map = new HashMap<String, ParameterDescription<?>>();<NEW_LINE>ParameterDescription<String> address = ParameterDescription.create(String.class, "Address", true, "", "Address", "starting address");<NEW_...
map.put("Name", name);
891,494
public void read(org.apache.thrift.protocol.TProtocol prot, TaskSummary struct) throws org.apache.thrift.TException {<NEW_LINE>TTupleProtocol iprot = (TTupleProtocol) prot;<NEW_LINE>struct.taskId = iprot.readI32();<NEW_LINE>struct.set_taskId_isSet(true);<NEW_LINE>struct.uptime = iprot.readI32();<NEW_LINE>struct.set_upt...
STRUCT, iprot.readI32());
1,719,913
private String callWebservice(String BASE_URL, String[] XAResouces, int expectedDirection, int sleepTimeServer, boolean clearXAResource) throws MalformedURLException {<NEW_LINE>final int timeout = 300 * 1000;<NEW_LINE>URL wsdlLocation = new URL(BASE_URL + "/simpleServer/WSATSimpleService?wsdl");<NEW_LINE>WSATSimpleServ...
).put("javax.xml.ws.client.connectionTimeout", timeout);
1,672,199
protected Property buildOfferItemQualifierRuleTypeProperty(Property qualifiersCanBeQualifiers, Property qualifiersCanBeTargets) {<NEW_LINE>String offerItemQualifierRuleType;<NEW_LINE>boolean canBeQualifiers = qualifiersCanBeQualifiers == null ? false : Boolean.parseBoolean(qualifiersCanBeQualifiers.getValue());<NEW_LIN...
parseBoolean(qualifiersCanBeTargets.getValue());
1,297,562
private JComponent buildTopPanel(boolean enablePipette) throws ParseException {<NEW_LINE>final JPanel result = new JPanel(new BorderLayout());<NEW_LINE>final JPanel previewPanel = new JPanel(new BorderLayout());<NEW_LINE>if (enablePipette && ColorPipette.isAvailable()) {<NEW_LINE>final JButton pipette = new JButton();<...
add(myPreviewComponent, BorderLayout.CENTER);
1,631,571
protected void doXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(NAME);<NEW_LINE>builder.startObject(fieldName);<NEW_LINE>builder.field(QUERY_FIELD.getPreferredName(), text);<NEW_LINE>builder.field(HIGH_FREQ_OPERATOR_FIELD.getPreferredName(), highFreqOperator.toString(...
ANALYZER_FIELD.getPreferredName(), analyzer);
750,749
private void startPush(String pushURL) {<NEW_LINE>if (sLivePusher != null) {<NEW_LINE>sLivePusher.stopMicrophone();<NEW_LINE>sLivePusher.stopScreenCapture();<NEW_LINE>sLivePusher.stopPush();<NEW_LINE>sLivePusher = null;<NEW_LINE>}<NEW_LINE>sLivePusher = new V2TXLivePusherImpl(mContext, V2TXLiveDef.V2TXLiveMode.TXLiveMo...
(R.string.livepusher_screen_push_tip));
291,507
protected void refindPaymentScheduleLines(List<PaymentScheduleLine> paymentScheduleLines, int index) {<NEW_LINE>List<Long> idList = paymentScheduleLines.subList(Math.max(index, paymentScheduleLines.size()), paymentScheduleLines.size()).stream().map(PaymentScheduleLine::getId).<MASK><NEW_LINE>if (!idList.isEmpty()) {<NE...
collect(Collectors.toList());
1,290,378
public OpenAPIExpectation[] deserializeArray(String jsonOpenAPIExpectations, boolean allowEmpty) {<NEW_LINE>List<OpenAPIExpectation> expectations = new ArrayList<>();<NEW_LINE>if (isBlank(jsonOpenAPIExpectations)) {<NEW_LINE>throw new IllegalArgumentException("1 error:" + NEW_LINE + " - an expectation or expectation ar...
add(iae.getMessage());
1,265,822
/* Example usage: */<NEW_LINE>public static void main(String[] args) {<NEW_LINE>int n = 10;<NEW_LINE>List<List<Integer>> graph = createGraph(n);<NEW_LINE>addEdge(graph, 0, 1);<NEW_LINE>addEdge(graph, 0, 2);<NEW_LINE>addEdge(graph, 1, 2);<NEW_LINE>addEdge(graph, 1, 3);<NEW_LINE>addEdge(graph, 2, 3);<NEW_LINE>addEdge(gra...
addEdge(graph, 7, 8);
1,225,068
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {<NEW_LINE>if ("<clinit>".equals(name)) {<NEW_LINE>// discard static initializers<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (isCandidateApiMember(access, apiIncludesPackagePrivateMembers) || ("<init>".equals...
(parameter, desc, visible));
1,394,435
private void collapseNode(Component c, Transition t) {<NEW_LINE>Container lead = c.getParent().getLeadParent();<NEW_LINE>if (lead != null) {<NEW_LINE>c = lead;<NEW_LINE>}<NEW_LINE>c.putClientProperty(KEY_EXPANDED, null);<NEW_LINE>if (folder == null) {<NEW_LINE>setNodeMaterialIcon(<MASK><NEW_LINE>} else {<NEW_LINE>setNo...
FontImage.MATERIAL_FOLDER, c, 3);
530,223
private String sendRaw(String topicName, Producer<?, ?> producer, ProducerRecord recordToSend, Boolean isAsync) throws InterruptedException, ExecutionException {<NEW_LINE>ProducerRecord qualifiedRecord = prepareRecordToSend(topicName, recordToSend);<NEW_LINE>RecordMetadata metadata;<NEW_LINE>if (Boolean.TRUE.equals(isA...
LOGGER.info("deliveryDetails- {}", deliveryDetails);
1,350,772
Object str(VirtualFrame frame, PBaseException self, @Cached BaseExceptionAttrNode attrNode, @Cached CastToJavaStringNode toJavaStringNode, @Cached PyObjectStrAsJavaStringNode strNode) {<NEW_LINE>if (self.getExceptionAttributes() == null) {<NEW_LINE>// Not properly initialized.<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>//...
getInt(self, IDX_START, UNICODE_ERROR_ATTR_FACTORY);
415,287
private LockSettingsParams processLockSettingsParams(Map<String, String> params) {<NEW_LINE>Boolean lockSettingsDisableCam = defaultLockSettingsDisableCam;<NEW_LINE>String lockSettingsDisableCamParam = params.get(ApiParams.LOCK_SETTINGS_DISABLE_CAM);<NEW_LINE>if (!StringUtils.isEmpty(lockSettingsDisableCamParam)) {<NEW...
params.get(ApiParams.LOCK_SETTINGS_DISABLE_PRIVATE_CHAT);
1,607,496
public void applyChanges() {<NEW_LINE>Preferences prefs = EntityCreationMetadataPreferences.get();<NEW_LINE>EntityCreationMetadataPreferencesManager prefsManager = new EntityCreationMetadataPreferencesManager(prefs);<NEW_LINE>try {<NEW_LINE>prefsManager.setCreatedByAnnotationEnabled(createdByAnnotationEnabled.isSelecte...
.setDateFormatter(new TimestampFormatter());
1,400,977
public SwaggerEntity swaggerJson() {<NEW_LINE>this.DEFINITION_MAP.clear();<NEW_LINE>List<ApiInfo> infos = requestMagicDynamicRegistry.mappings();<NEW_LINE>SwaggerEntity swaggerEntity = new SwaggerEntity();<NEW_LINE>swaggerEntity.setInfo(info);<NEW_LINE>swaggerEntity.setBasePath(this.basePath);<NEW_LINE>for (ApiInfo inf...
, info.getName()));
1,176,045
public List<Record> loadFromMetaData(List<RecordMetaData> recordMetaDatas) throws IOException {<NEW_LINE>Set<Integer> toLoad = new HashSet<>();<NEW_LINE>for (RecordMetaData recordMetaData : recordMetaDatas) {<NEW_LINE>if (!(recordMetaData instanceof RecordMetaDataIndex)) {<NEW_LINE>throw new IllegalArgumentException("E...
RecordMetaDataIndex) recordMetaData).getIndex();
1,005,639
public void executeStep(PluginStepContext context, Map<String, Object> configuration) throws StepException {<NEW_LINE>if (null == jobUUID && null == jobName) {<NEW_LINE>throw new StepException("Configuration invalid: jobUUID or jobName is required", StepFailureReason.ConfigurationFailure);<NEW_LINE>}<NEW_LINE>if (null ...
context, result, equality, message);
718,400
void init(BoostingObjs boostingObjs, List<Row> quantileData) {<NEW_LINE>if (quantileData != null && !quantileData.isEmpty()) {<NEW_LINE>quantileModel = new QuantileDiscretizerModelDataConverter().load(quantileData);<NEW_LINE>}<NEW_LINE>useMissing = boostingObjs.params.get(USE_MISSING);<NEW_LINE>useOneHot = boostingObjs...
.get(GbdtTrainParams.MAX_LEAVES));
1,826,923
private void init(BinaryMessenger messenger) {<NEW_LINE>if (mEventChannel != null) {<NEW_LINE>mEventChannel.setStreamHandler(null);<NEW_LINE>mEventSink.setDelegate(null);<NEW_LINE>}<NEW_LINE>mEventChannel = new EventChannel(messenger, "befovy.com/fijk/event");<NEW_LINE>mEventChannel.setStreamHandler(new EventChannel.St...
/ (float) max, volStep);
1,235,540
protected void match(List<?> expected, List<?> computed, int col) {<NEW_LINE>if (col >= columnBindings.length) {<NEW_LINE>check(expected, computed);<NEW_LINE>} else if (columnBindings[col] == null) {<NEW_LINE>match(expected, computed, col + 1);<NEW_LINE>} else {<NEW_LINE>Map<Object, Object> <MASK><NEW_LINE>Map<Object, ...
eMap = eSort(expected, col);
1,203,753
private void allAppsGridView() throws AndroidDeviceException {<NEW_LINE>int x = screenSize.width;<NEW_LINE>int y = screenSize.height;<NEW_LINE>if (x > y) {<NEW_LINE>y = y / 2;<NEW_LINE>x = x - 30;<NEW_LINE>} else {<NEW_LINE>x = x / 2;<NEW_LINE>y = y - 30;<NEW_LINE>}<NEW_LINE>List<String> coordinates <MASK><NEW_LINE>coo...
= new ArrayList<String>();
35,180
public static void main(String[] args) {<NEW_LINE>// .showFileList(true)<NEW_LINE>Blade.of().get("/", ctx -> ctx.render("index.html")).get("/basic-route-example", ctx -> ctx.text("GET called")).post("/basic-route-example", ctx -> ctx.text("POST called")).put("/basic-route-example", ctx -> ctx.text("PUT called")).delete...
("app.version").orElse("N/D");
1,364,021
private static void processSeparatedAttribute(final boolean separated, @NotNull final JavaCodeStyleSettings settings) {<NEW_LINE>PackageEntryTable importTable = new PackageEntryTable();<NEW_LINE>if (settings.IMPORT_LAYOUT_TABLE.getEntryCount() < 1) {<NEW_LINE>// nothing to separate<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>...
importTable.addEntry(PackageEntry.BLANK_LINE_ENTRY);
652,080
public boolean readResolvedRefs(final UtilImpl_InternMap classNameInternMap, final Set<String> i_resolvedClassNames) {<NEW_LINE>long readStart = System.nanoTime();<NEW_LINE>File refsFile = getResolvedRefsFile();<NEW_LINE>// System.out.println("Refs path [ " + refsFile.getAbsolutePath() + " ]");<NEW_LINE>boolean didRead...
reader.readEntireResolvedRefs(i_resolvedClassNames, classNameInternMap);
781,272
public void addEntity(ERDEntity entity, int i, boolean reflect) {<NEW_LINE>DBSEntity object = entity.getObject();<NEW_LINE>if (object == null) {<NEW_LINE>log.debug("Null object passed");<NEW_LINE>return;<NEW_LINE>} else if (object.getDataSource() == null) {<NEW_LINE>log.debug("Object " + object.getName() + " is not con...
containerMap = dataSourceContainerMap.get(dataSource);
1,026,925
MemberMoveResult moveMembers(final TreeSet<TypeMember> moveMembers, final int moveDelta) {<NEW_LINE>Preconditions.checkArgument(moveMembers.first().getBitOffset().get() + moveDelta >= 0, "Cannot move members to negative offset.");<NEW_LINE>Preconditions.checkArgument(moveMembers.last().getBitOffset().get() + moveDelta ...
.get() + implicitMoveDelta));
331,707
private JPanel buildOutgoingConfigurationsTab() {<NEW_LINE>outgoingWssTable = JTableFactory.getInstance().makeJTable(new OutgoingWssTableModel());<NEW_LINE>outgoingWssTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {<NEW_LINE><NEW_LINE>public void valueChanged(ListSelectionEvent e) {<NEW_...
add(outgoingConfigurationSplitPane, BorderLayout.CENTER);
1,376,586
public void save(TeaVMDevServerConfiguration configuration) {<NEW_LINE>configuration.setMainClass(mainClassField.getText().trim());<NEW_LINE>moduleSelector.applyTo(configuration);<NEW_LINE>configuration.setJdkPath(jrePathEditor.getJrePathOrName());<NEW_LINE>configuration.setFileName(fileNameField.getText().trim());<NEW...
getText().trim());
870,051
public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {<NEW_LINE>if (directory.isRoot()) {<NEW_LINE>final AttributedList<Path> list = new AttributedList<>();<NEW_LINE>list.add(DriveHomeFinderService.MYDRIVE_FOLDER);<NEW_LINE><MASK><NEW_LINE>list.add(Drive...
list.add(DriveHomeFinderService.SHARED_FOLDER_NAME);
1,785,881
public void write(org.apache.thrift.protocol.TProtocol prot, revokeTablePermission_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (st...
oprot.writeBitSet(optionals, 5);
1,207,042
public static void init(GameContainer container, StateBasedGame game) {<NEW_LINE>input = container.getInput();<NEW_LINE>int width = container.getWidth();<NEW_LINE>int height = container.getHeight();<NEW_LINE>// game settings<NEW_LINE>container.setTargetFrameRate(Options.getTargetFPS());<NEW_LINE>container.setVSync(Opti...
UserButton.init(width, height);
202,865
private // before it if applicable.<NEW_LINE>String buildDayOfWeek() {<NEW_LINE>Time t = new Time(mTimeZone);<NEW_LINE>t.set(mMilliTime);<NEW_LINE>long julianDay = Time.getJulianDay(mMilliTime, t.getGmtOffset());<NEW_LINE>String dayOfWeek;<NEW_LINE>mStringBuilder.setLength(0);<NEW_LINE>if (julianDay == mTodayJulianDay)...
, mTimeZone).toString());
270,199
public <T> T doTask(final int hash, final Object key, final Task<T> task) {<NEW_LINE>boolean resize = task.hasOption(TaskOption.RESIZE);<NEW_LINE>if (task.hasOption(TaskOption.RESTRUCTURE_BEFORE)) {<NEW_LINE>restructureIfNecessary(resize);<NEW_LINE>}<NEW_LINE>if (task.hasOption(TaskOption.SKIP_IF_EMPTY) && this.count =...
this.references[index] = newReference;
1,077,068
public Request<UntagRoleRequest> marshall(UntagRoleRequest untagRoleRequest) {<NEW_LINE>if (untagRoleRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<UntagRoleRequest> request = new DefaultRequest<UntagRoleRequest>(untagRoleRequest, "Amazo...
request.setHttpMethod(HttpMethodName.POST);
850,830
public void addNewFontWizard() {<NEW_LINE>AddResourceDialog addResource = new AddResourceDialog(loadedResources, AddResourceDialog.FONT);<NEW_LINE>if (JOptionPane.OK_OPTION == JOptionPane.showConfirmDialog(mainPanel, addResource, "Add Font", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE)) {<NEW_LINE>if (addRe...
), font.createFont());
901,818
private static Function<ConfiguredAirbyteStream, WriteConfig> toWriteConfig(final NamingConventionTransformer namingResolver, final JsonNode config, final Instant now, final boolean schemaRequired) {<NEW_LINE>return stream -> {<NEW_LINE>Preconditions.checkNotNull(<MASK><NEW_LINE>final AirbyteStream abStream = stream.ge...
stream.getDestinationSyncMode(), "Undefined destination sync mode");