idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,251,722
public Request<DescribeDominantLanguageDetectionJobRequest> marshall(DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest) {<NEW_LINE>if (describeDominantLanguageDetectionJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeDomina...
request.addHeader("X-Amz-Target", target);
1,648,192
void migration(MigrationStrategy strategy, boolean initializeEmpty, String schema, File databaseUpdateFile, Connection connection, KeycloakSession session) {<NEW_LINE>JpaUpdaterProvider updater = session.getProvider(JpaUpdaterProvider.class, LiquibaseJpaUpdaterProviderFactory.PROVIDER_ID);<NEW_LINE>JpaUpdaterProvider.S...
throw new ServerStartupError("Database not up-to-date, please enable database migration", false);
570,065
public void onChunkChange(ChunkChangeEvent event) {<NEW_LINE>if (event.getDocId() != docUpdateSentinel_.getId())<NEW_LINE>return;<NEW_LINE>switch(event.getChangeType()) {<NEW_LINE>case ChunkChangeEvent.CHANGE_CREATE:<NEW_LINE>createChunkOutput(ChunkDefinition.create(event.getRow(), 1, true, ChunkOutputWidget.EXPANDED, ...
), event.getRequestId());
945,916
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get(<MASK><NEW_LINE>if ...
"knowledgeId"), convLabelName("Knowledge Id"));
1,513,354
protected void updateTarget() {<NEW_LINE>String text = getFirstNotNullTrimmed(targetDir.getText(), "");<NEW_LINE>if (isFolderUsable(text)) {<NEW_LINE>targetDir.setForeground(control.getDisplay()<MASK><NEW_LINE>if (isFileAccesible(text)) {<NEW_LINE>targetDir.setToolTipText(null);<NEW_LINE>targetLabel.setImage(null);<NEW...
.getSystemColor(SWT.COLOR_BLACK));
978,698
public Future<Boolean> addContextRootRequirement(DeployedModule deployedModule) {<NEW_LINE>String methodName = "addContextRootRequirement";<NEW_LINE>String contextRoot = deployedModule.getMappingContextRoot();<NEW_LINE>synchronized (contextRoots) {<NEW_LINE>Future<Boolean> future = futureMonitor.createFuture(Boolean.cl...
"] not added , in pending future " + future + " for deployedModule -->" + deployedModule);
348,073
public void onMethodCall(MethodCall call, Result result) {<NEW_LINE>switch(call.method) {<NEW_LINE>case "getUrl":<NEW_LINE>{<NEW_LINE>Kraken kraken = getKraken();<NEW_LINE>result.success(kraken == null ? "" : kraken.getUrl());<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case "getDynamicLibraryPath":<NEW_LINE>{<NEW_LINE>Kraken ...
= new MethodCall(method, args);
1,322,631
public void process(CtExecutable<?> ctExecutable) {<NEW_LINE>procTimer.start();<NEW_LINE>try {<NEW_LINE>if (smplRule == null) {<NEW_LINE>throw new IllegalStateException("SmPL rule must be loaded before calling process()");<NEW_LINE>}<NEW_LINE>File sourceFile = ctExecutable.getPosition().getFile();<NEW_LINE>if (sourceFi...
potentialMatch = smplRule.isPotentialMatch(ctExecutable);
344,979
private void fillButtonInfo(final TitleButtonController buttonController, View buttonView, TextView buttonText) {<NEW_LINE>if (buttonController != null) {<NEW_LINE>setupButton(buttonView, buttonController.enabled, createRightTextCaption(buttonController));<NEW_LINE>buttonView.setVisibility(buttonController.visible ? <M...
View.VISIBLE : View.INVISIBLE);
534,542
public final PropertyExpressionAtomicContext propertyExpressionAtomic() throws RecognitionException {<NEW_LINE>PropertyExpressionAtomicContext _localctx = new PropertyExpressionAtomicContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 394, RULE_propertyExpressionAtomic);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>e...
_la = _input.LA(1);
775,319
public NullnessHint onDataflowVisitMethodInvocation(MethodInvocationNode node, Types types, Context context, AccessPath.AccessPathContext apContext, AccessPathNullnessPropagation.SubNodeValues inputs, AccessPathNullnessPropagation.Updates thenUpdates, AccessPathNullnessPropagation.Updates elseUpdates, AccessPathNullnes...
base, getter, constantArgs, apContext);
983,254
private void registerNullChannel() {<NEW_LINE>if (this.beanFactory.containsBean(IntegrationContextUtils.NULL_CHANNEL_BEAN_NAME)) {<NEW_LINE>BeanDefinition nullChannelDefinition = null;<NEW_LINE>BeanFactory beanFactoryToUse = this.beanFactory;<NEW_LINE>do {<NEW_LINE>if (beanFactoryToUse instanceof ConfigurableListableBe...
"The bean name '" + IntegrationContextUtils.NULL_CHANNEL_BEAN_NAME + "' is reserved.");
1,573,077
public boolean apply(Game game, Ability source) {<NEW_LINE>Spell spell = game.getStack().getSpell(targetPointer.getFirst(game, source));<NEW_LINE>if (spell == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent sourceObject = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (sourceObject ==...
card.getId(), null);
1,498,580
// Lazy refresh of a plugin we think we know about.<NEW_LINE>private PluginHandle refresh(PluginHandle entry, StoragePluginConfig config) {<NEW_LINE>// Deleted or disabled in persistent storage?<NEW_LINE>if (config == null || !config.isEnabled()) {<NEW_LINE>// Move the old config to the ephemeral store.<NEW_LINE>try {<...
throw new IllegalStateException("Plugin refresh failed", e);
1,084,542
public StageDeclaration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StageDeclaration stageDeclaration = new StageDeclaration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,741,851
public boolean apply(Game game, Ability source) {<NEW_LINE>Player you = game.getPlayer(source.getControllerId());<NEW_LINE>Player targetPlayer = game.getPlayer(source.getFirstTarget());<NEW_LINE>if (targetPlayer != null && you != null) {<NEW_LINE>FilterCard filter = new FilterCard("card from your graveyard");<NEW_LINE>...
Exile, "Exile a card from your graveyard?", source, game);
1,505,621
private static String inferName(CompilationInfo info, TreePath currentPath) {<NEW_LINE>Scope s = info.getTrees().getScope(currentPath);<NEW_LINE>Set<String> existingVariables = new HashSet<String>();<NEW_LINE>for (Element e : info.getElementUtilities().getLocalVars(s, new ElementAcceptor() {<NEW_LINE><NEW_LINE>public b...
getSimpleName().toString());
1,597,707
private void readJSONEncodedItem(String key, SharedPreferences prefs, ReadableArguments options, Promise promise) {<NEW_LINE>String encryptedItemString = prefs.getString(key, null);<NEW_LINE>JSONObject encryptedItem;<NEW_LINE>try {<NEW_LINE>encryptedItem = new JSONObject(encryptedItemString);<NEW_LINE>} catch (JSONExce...
SecretKeyEntry.class, mAESEncrypter, options);
1,303,524
ArrayList<Object> new80() /* reduce AAfullmethodbody5MethodBody */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<MASK><NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList2 =...
<Object> nodeArrayList3 = pop();
589,866
public Map<String, Object> props() {<NEW_LINE>Map<String, Object<MASK><NEW_LINE>props.put(Constants.KEY_DISTRIBUTION_EXECUTABLE, executable);<NEW_LINE>props.putAll(java.getResolvedExtraProperties());<NEW_LINE>safePut(Constants.KEY_DISTRIBUTION_JAVA_GROUP_ID, java.getGroupId(), props, true);<NEW_LINE>safePut(Constants.K...
> props = super.props();
1,432,821
private Mono<PagedResponse<AnomalyIncident>> listIncidentsForAlertSinglePageAsync(String alertConfigurationId, String alertId, ListIncidentsAlertedOptions options, Context context) {<NEW_LINE>Objects.requireNonNull(alertConfigurationId, "'alertConfigurationId' is required.");<NEW_LINE><MASK><NEW_LINE>final Context with...
Objects.requireNonNull(alertId, "'alertId' is required.");
1,190,933
private static boolean checkKeytool(String keytoolPath) {<NEW_LINE>final SystemCommand nativeCommand = new SystemCommand(null, null);<NEW_LINE>final List<String> arguments = new ArrayList<>();<NEW_LINE>arguments.add(keytoolPath);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>arguments.add("-help");<NEW_LINE>try {<NEW_LINE>int statu...
return status == 0 || status == 1;
1,101,425
private void commonInit(MUser from, String to, String subject, String message, File attachment) {<NEW_LINE>m_client = MClient.<MASK><NEW_LINE>try {<NEW_LINE>int WindowNo = 0;<NEW_LINE>int AD_Column_ID = 0;<NEW_LINE>Lookup lookup = MLookupFactory.get(Env.getCtx(), WindowNo, AD_Column_ID, DisplayType.Search, Env.getLangu...
get(Env.getCtx());
702,065
private Mono<PagedResponse<ServerInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentExceptio...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,563,566
public VoidResponse updatePort(String serverName, String userId, String portGUID, PortRequestBody requestBody) {<NEW_LINE>final String methodName = "updatePort";<NEW_LINE>RESTCallToken token = restCallLogger.<MASK><NEW_LINE>VoidResponse response = new VoidResponse();<NEW_LINE>AuditLog auditLog = null;<NEW_LINE>try {<NE...
logRESTCall(serverName, userId, methodName);
172,810
private void initComponents() {<NEW_LINE>// GEN-BEGIN:initComponents<NEW_LINE>scrollPane = new javax.swing.JScrollPane();<NEW_LINE>scriptPane = new javax.swing.JEditorPane();<NEW_LINE>hintsArea = new javax.swing.JTextArea();<NEW_LINE>setLayout(new java.awt.BorderLayout(0, 11));<NEW_LINE>scrollPane.setPreferredSize(new ...
.Dimension(100, 100));
1,665,532
public List<T> mapRow(Result result, int rowNum) throws Exception {<NEW_LINE>if (result.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final byte[] distributedRowKey = result.getRow();<NEW_LINE>final String applicationId = this.hbaseOperationFactory.getApplicationId(distributedRowKey);<NEW_LI...
), cell.getValueLength());
1,666,726
final PutParameterResult executePutParameter(PutParameterRequest putParameterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putParameterRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<PutParameterRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
929,513
public SubmissionCCLicenseUrlRest findByRightsByQuestions() {<NEW_LINE>ServletRequest servletRequest = requestService.getCurrentRequest().getServletRequest();<NEW_LINE>Map<String, String[]> requestParameterMap = servletRequest.getParameterMap();<NEW_LINE>Map<String, String> parameterMap = new HashMap<>();<NEW_LINE>Stri...
.get(parameter)[0];
1,085,582
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.sitewhere.spi.device.communication.IDeviceStreamManager#<NEW_LINE>* handleDeviceStreamRequest (java.lang.String,<NEW_LINE>* com.sitewhere.spi.device.event.request.IDeviceStreamCreateRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void handleDeviceStream...
).getId(), request);
883,798
private Tag trimNSAttributes(Tag tag) {<NEW_LINE>TagAttribute[] attr = tag.getAttributes().getAll();<NEW_LINE>int remove = 0;<NEW_LINE>for (int i = 0; i < attr.length; i++) {<NEW_LINE>if (attr[i].getQName().startsWith("xmlns") && this.tagLibrary.containsNamespace(attr[i].getValue())) {<NEW_LINE>remove |= 1 << i;<NEW_LI...
.add(attr[i]);
126,852
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean equals0(com.sun.jdi.ByteValue a, java.lang.Object b) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.sun.jdi.ByteVa...
ret = a.equals(b);
1,050,919
public final void parseNodeBody2(final MicroCache2 mc, final OsmNodesMap hollowNodes, final IByteArrayUnifier expCtxWay) {<NEW_LINE>final ByteArrayUnifier abUnifier = hollowNodes.getByteArrayUnifier();<NEW_LINE>// read turn restrictions<NEW_LINE>while (mc.readBoolean()) {<NEW_LINE>final TurnRestriction tr = new TurnRes...
.fromLat = mc.readInt();
602,859
public void checkCapturedLocalInitializationIfNecessary(ReferenceBinding checkedType, BlockScope currentScope, FlowInfo flowInfo) {<NEW_LINE>if (((checkedType.tagBits & (TagBits.AnonymousTypeMask | TagBits.LocalTypeMask)) == TagBits.LocalTypeMask) && !currentScope.isDefinedInType(checkedType)) {<NEW_LINE>// only check ...
uninitializedLocalVariable(targetLocal, this, currentScope);
232,857
final DescribeAuditFindingResult executeDescribeAuditFinding(DescribeAuditFindingRequest describeAuditFindingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAuditFindingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
555,905
private void logRhsFieldAccExprErrors(BLangFieldBasedAccess fieldAccessExpr, BType varRefType, Name fieldName, AnalyzerData data) {<NEW_LINE>if (varRefType.tag == TypeTags.RECORD) {<NEW_LINE>BRecordType recordVarRefType = (BRecordType) varRefType;<NEW_LINE>boolean isFieldDeclared = recordVarRefType.getFields().contains...
.recordsToString(recUnionInfo.nilableInRecords));
280,838
public DataBuffer create(Pointer pointer, Pointer specialPointer, DataType type, long length, Indexer indexer) {<NEW_LINE>switch(type) {<NEW_LINE>case UINT64:<NEW_LINE>return new CudaUInt64DataBuffer(pointer, specialPointer, indexer, length);<NEW_LINE>case LONG:<NEW_LINE>return new CudaLongDataBuffer(pointer, specialPo...
throw new IllegalArgumentException("Illegal dtype " + type);
126,061
public void predictions(PredictionsRequest request, StreamObserver<PredictionResponse> responseObserver) {<NEW_LINE>String modelName = request.getModelName();<NEW_LINE>String modelVersion = request.getModelVersion();<NEW_LINE>if (modelName == null || "".equals(modelName)) {<NEW_LINE>BadRequestException e = new BadReque...
().toByteArray()));
959,176
final AssumeRoleWithSAMLResult executeAssumeRoleWithSAML(AssumeRoleWithSAMLRequest assumeRoleWithSAMLRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(assumeRoleWithSAMLRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
AssumeRoleWithSAMLResult>(new AssumeRoleWithSAMLResultStaxUnmarshaller());
1,117,774
public SetterDetails analyze(Class<?> setterType) {<NEW_LINE>Objects.requireNonNull(setterType, "setterType");<NEW_LINE>if (!setterType.isInterface()) {<NEW_LINE>throw new IllegalArgumentException("setterType " + setterType + "is not an interface");<NEW_LINE>}<NEW_LINE>Method[<MASK><NEW_LINE>if (methods.length != 1) {<...
] methods = setterType.getDeclaredMethods();
882,952
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.VoidValue mirrorOfVoid(com.sun.jdi.VirtualMachine a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.de...
Mirror) a).virtualMachine();
1,305,649
private void onBoundedFling(float velocityX, float velocityY) {<NEW_LINE>int xOffset = (int) pdfView.getCurrentXOffset();<NEW_LINE>int yOffset = (int) pdfView.getCurrentYOffset();<NEW_LINE>PdfFile pdfFile = pdfView.pdfFile;<NEW_LINE>float pageStart = -pdfFile.getPageOffset(pdfView.getCurrentPage(), pdfView.getZoom());<...
), pdfView.getZoom());
1,250,296
public ProcessStatus handleClearExisting(final PwmRequest pwmRequest) throws PwmUnrecoverableException, ChaiUnavailableException, IOException {<NEW_LINE>LOGGER.trace(pwmRequest, () -> "request for response clear received");<NEW_LINE>final PwmDomain pwmDomain = pwmRequest.getPwmDomain();<NEW_LINE>final PwmSession pwmSes...
pwmRequest, e.getErrorInformation());
1,442,314
public RuleGroupSourceStatelessRuleMatchAttributesSourcePorts unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RuleGroupSourceStatelessRuleMatchAttributesSourcePorts ruleGroupSourceStatelessRuleMatchAttributesSourcePorts = new RuleGroupSourceStatelessRuleMatchAttributesSourcePorts();<NEW_LINE><MA...
int originalDepth = context.getCurrentDepth();
1,030,318
public double tableCardinality(RelOptTable table) {<NEW_LINE>final JdbcTable jdbcTable = table.unwrap(JdbcTable.class);<NEW_LINE>return withBuilder(jdbcTable.jdbcSchema, (cluster, relOptSchema, jdbcSchema, relBuilder) -> {<NEW_LINE>// Generate:<NEW_LINE>// SELECT COUNT(*) FROM `EMP`<NEW_LINE>relBuilder.push(table.toRel...
throw new AssertionError("expected exactly 1 row: " + sql);
484,912
public void nextPDU() throws IOException {<NEW_LINE>checkThread();<NEW_LINE>Association.<MASK><NEW_LINE>readFully(0, 10);<NEW_LINE>pos = 0;<NEW_LINE>pdutype = get();<NEW_LINE>get();<NEW_LINE>pdulen = getInt();<NEW_LINE>Association.LOG.trace("{} >> PDU[type={}, len={}]", new Object[] { as, pdutype, pdulen & 0xFFFFFFFFL ...
LOG.trace("{}: waiting for PDU", as);
523,838
public InputComponent errorMessage(String errorMessage) {<NEW_LINE>String col = getUIManager().getThemeConstant("textComponentErrorColor", null);<NEW_LINE>boolean line = getUIManager().isThemeConstant("textComponentErrorLineBorderBool", true);<NEW_LINE>if (errorMessage == null || errorMessage.length() == 0) {<NEW_LINE>...
getAllStyles().setBorder(b);
431,701
private void initializeSetTaskFactories() {<NEW_LINE>factories.put(SetRemoveListenerCodec.REQUEST_MESSAGE_TYPE, (cm, con) -> new SetRemoveListenerMessageTask(cm, node, con));<NEW_LINE>factories.put(SetClearCodec.REQUEST_MESSAGE_TYPE, (cm, con) -> new SetClearMessageTask(cm, node, con));<NEW_LINE>factories.put(SetCompar...
(cm, node, con));
326,108
public static String toMemoryUnits(double value) {<NEW_LINE>if (value == 0) {<NEW_LINE>return "0";<NEW_LINE>}<NEW_LINE>if (value < (10l << 10)) {<NEW_LINE>String val = String.format("%.2f", value).trim();<NEW_LINE>if (val.endsWith(".00")) {<NEW_LINE>val = val.substring(0, val.length() - 3);<NEW_LINE>} else if (val.inde...
<< 20)).trim();
1,035,093
private void tryAssertionSubqueryNamedWindowUncorrelated(RegressionEnvironment env, String epl) {<NEW_LINE>String[] fieldsSelected = "c0,c1".split(",");<NEW_LINE>String[] fieldsInside = "val0".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy(EventRepresentationChoice.MAP.getAn...
new SupportBean("E2", 500));
1,351,920
public void marshall(FleetSummary fleetSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fleetSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(fleetSummary.getFleetArn(), FLEETARN_BINDING);<N...
e.getMessage(), e);
858,962
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
1,284,234
private static void performRenames(String tmpFileName, String fileName, final List<Tuple<Path, Directory>> stateDirectories) throws WriteStateException {<NEW_LINE>Directory firstStateDirectory = stateDirectories.get(0).v2();<NEW_LINE>try {<NEW_LINE>firstStateDirectory.rename(tmpFileName, fileName);<NEW_LINE>} catch (IO...
.resolve(tmpFileName), e);
897,635
public void run() {<NEW_LINE>double CAMERA_PADDING = DEFAULT_CAMERA_PADDING;<NEW_LINE>try {<NEW_LINE>if (mParams.has("camera")) {<NEW_LINE>JSONObject camera = mParams.getJSONObject("camera");<NEW_LINE>if (camera.has("padding")) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printSta...
CAMERA_PADDING = camera.getDouble("padding");
1,270,941
private void injectManFileManager() {<NEW_LINE>// Override javac's JavaFileManager<NEW_LINE>_fileManager = getContext().get(JavaFileManager.class);<NEW_LINE>_manFileManager = new ManifoldJavaFileManager(getHost(), _fileManager, getContext(), true);<NEW_LINE>getContext().put(JavaFileManager.class, (JavaFileManager) null...
, "fileManager").set(_manFileManager);
1,498,280
public ApiResponse<FileLock> fileLocksUpdateLockWithHttpInfo(String fileId, String lockId, FileLockRequest request) throws ApiException {<NEW_LINE>Object localVarPostBody = request;<NEW_LINE>// verify the required parameter 'fileId' is set<NEW_LINE>if (fileId == null) {<NEW_LINE>throw new ApiException(400, "Missing the...
HashMap<String, Object>();
226,484
protected ValidationInfo doValidate() {<NEW_LINE>if (StringUtils.isEmpty(comboBoxIcon.getInputText().trim())) {<NEW_LINE>return new ValidationInfo(ERROR_ICON_NOT_SELECTED, comboBoxIcon);<NEW_LINE>}<NEW_LINE>if (StringUtils.isEmpty(textFieldFileName.getText().trim())) {<NEW_LINE>return new ValidationInfo(ERROR_FILE_NAME...
(model.getResourcePath(project));
511,530
public static List<VolumeResponse> createVolumeResponse(ResponseView view, VolumeJoinVO... volumes) {<NEW_LINE>Hashtable<Long, VolumeResponse> vrDataList = new Hashtable<Long, VolumeResponse>();<NEW_LINE>DecimalFormat df = new DecimalFormat("0.0%");<NEW_LINE>for (VolumeJoinVO vr : volumes) {<NEW_LINE>VolumeResponse vrD...
(df.format(util));
1,178,232
private void generateKeyPairs() {<NEW_LINE>try {<NEW_LINE>final ECNamedCurveParameterSpec parameterSpec = ECNamedCurveTable.getParameterSpec("secp256r1");<NEW_LINE>final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("ECDH", "SC");<NEW_LINE>keyPairGenerator.initialize(parameterSpec);<NEW_LINE>final <M...
KeyPair keyPair = keyPairGenerator.generateKeyPair();
849,637
private void configureCertificateTrust(Properties props) throws IOException {<NEW_LINE>if (trustAllCerts) {<NEW_LINE>if (useSSL) {<NEW_LINE>props.setProperty("mail.smtps.ssl.socketFactory.class", TRUST_ALL_SOCKET_FACTORY);<NEW_LINE>props.setProperty("mail.smtps.ssl.socketFactory.fallback", FALSE);<NEW_LINE>} else if (u...
"mail.smtp.ssl.socketFactory", new LocalTrustStoreSSLSocketFactory(truststore));
526,255
public boolean isLastExecutionFinished(ScheduledTask task, long now) {<NEW_LINE>EntityManager em = persistence.getEntityManager();<NEW_LINE>Query query = em.createQuery("select e.finishTime from sys$ScheduledExecution e where e.task.id = ?1 and e.startTime = ?2");<NEW_LINE>query.setParameter(<MASK><NEW_LINE>query.setPa...
1, task.getId());
900,334
final GetJobManifestResult executeGetJobManifest(GetJobManifestRequest getJobManifestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getJobManifestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
invoke(request, responseHandler, executionContext);
323,051
public ElementJavadoc resolveLink(final String link) {<NEW_LINE>if (link.startsWith(ASSOCIATE_JDOC)) {<NEW_LINE>final String root = link.substring(ASSOCIATE_JDOC.length());<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>final AtomicBoolean success = new AtomicBoolean();<NEW_LINE>SourceJavadocAttacher.attachJavadoc(new U...
CountDownLatch latch = new CountDownLatch(1);
1,148,321
public void remove(final Object key, final NodeModel from, final NodeModel which) {<NEW_LINE>if (!key.equals(LogicalStyleKeys.NODE_STYLE)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final EdgeModel whichStyle = which.getExtension(EdgeModel.class);<NEW_LINE>if (whichStyle == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>fina...
from.getExtension(EdgeModel.class);
661,114
final StartCopyJobResult executeStartCopyJob(StartCopyJobRequest startCopyJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startCopyJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,393,389
private void initOptions(DefaultCodeFormatterOptions defaultCodeFormatterOptions, Map<String, String> options) {<NEW_LINE>if (options != null) {<NEW_LINE>this.originalOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE>this.workingOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE>this.oldCommentForm...
options.get(CompilerOptions.OPTION_Source);
1,127,453
public Request<CreateQueryLoggingConfigRequest> marshall(CreateQueryLoggingConfigRequest createQueryLoggingConfigRequest) {<NEW_LINE>if (createQueryLoggingConfigRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateQueryLoggingConfigReque...
= new XMLWriter(stringWriter, "https://route53.amazonaws.com/doc/2013-04-01/");
1,226,862
private void startMapWithCondition(final String condition) {<NEW_LINE>mapView.onStart();<NEW_LINE>if (condition.equals("Without Permission")) {<NEW_LINE>applicationKvStore.putBoolean("doNotAskForLocationPermission", true);<NEW_LINE>}<NEW_LINE>final CameraPosition position;<NEW_LINE>if (applicationKvStore.getString("Las...
(CameraUpdateFactory.newCameraPosition(position));
93,865
private static boolean check_VK13(FunctionProvider provider, long[] caps, Set<String> ext) {<NEW_LINE>if (!ext.contains("Vulkan13")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>return checkFunctions(provider, caps, new int[] { 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 16...
) || reportMissing("VK", "Vulkan13");
1,651,338
private void stage0(ByteBuffer buf, Link link) {<NEW_LINE>// At least 4 bytes are necessary<NEW_LINE>if (!cap(buf, 4, UNLIMITED, link, true))<NEW_LINE>return;<NEW_LINE>// Read security type<NEW_LINE><MASK><NEW_LINE>switch(authType) {<NEW_LINE>case RfbConstants.CONNECTION_FAILED:<NEW_LINE>{<NEW_LINE>// Server forbids to...
int authType = buf.readSignedInt();
550,131
public void onClick(DialogInterface dialog, int item) {<NEW_LINE>if (items.get(item).value.startsWith("KP2ASPECIAL")) {<NEW_LINE>// change entry<NEW_LINE>String packageName = getApplicationContext().getPackageName();<NEW_LINE>Intent startKp2aIntent = getPackageManager().getLaunchIntentForPackage(packageName);<NEW_LINE>...
w("KP2AK", "didn't find intent for " + packageName);
616,655
public List<ProjectFileHandler> handle(final ResultSet rs) throws SQLException {<NEW_LINE>if (!rs.next()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final List<ProjectFileHandler> handlers = new ArrayList<>();<NEW_LINE>do {<NEW_LINE>final int projectId = rs.getInt(1);<NEW_LINE>final int version = rs.getInt(2);<NEW_LIN...
startupDependenciesBlob = rs.getBlob(10);
1,326,183
private static void updateSystemProxy() {<NEW_LINE>Proxy proxy = proxyProperty.get();<NEW_LINE>if (proxy.type() == Proxy.Type.DIRECT) {<NEW_LINE>System.clearProperty("http.proxyHost");<NEW_LINE>System.clearProperty("http.proxyPort");<NEW_LINE>System.clearProperty("https.proxyHost");<NEW_LINE>System.clearProperty("https...
String host = address.getHostString();
1,254,621
public void handleDeferredFiles() {<NEW_LINE>final Class<Relation> relType = StructrApp.getConfiguration().getRelationshipEntityClass("AbstractMinifiedFileMINIFICATIONFile");<NEW_LINE>final PropertyKey<Integer> positionKey = <MASK><NEW_LINE>if (!this.deferredFiles.isEmpty()) {<NEW_LINE>for (File file : this.deferredFil...
StructrApp.key(relType, "position");
702,151
private CompletableFuture<Pair<SchemaData, SchemaVersion>> addOrGetSchemaForTopic(SchemaData schemaData, LongSchemaVersion schemaVersion) {<NEW_LINE>CompletableFuture<Pair<SchemaData, SchemaVersion>> <MASK><NEW_LINE>// If schema version presents try to fetch existing schema.<NEW_LINE>if (null != schemaVersion) {<NEW_LI...
future = new CompletableFuture<>();
774,286
private Mono<Response<ValidateOperationsResponseInner>> validateWithResponseAsync(String vaultName, String resourceGroupName, ValidateOperationRequest parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoi...
), parameters, accept, context);
1,498,434
public Message addOrchestrator(HttpServletRequest req, @RequestBody AddOrchestratorRequest addOrchestratorRequest) throws Exception {<NEW_LINE>String userName = SecurityFilter.getLoginUsername(req);<NEW_LINE>String name = addOrchestratorRequest.getName();<NEW_LINE>String workspaceName = addOrchestratorRequest.getWorksp...
).data("OrchestratorVo", orchestratorVo);
44,543
public List<ShardLock> lockAllForIndex(final Index index, final IndexSettings settings, final String lockDetails, final long lockTimeoutMS) throws ShardLockObtainFailedException {<NEW_LINE>final int numShards = settings.getNumberOfShards();<NEW_LINE>if (numShards <= 0) {<NEW_LINE>throw new IllegalArgumentException("set...
logger.trace("unable to lock all shards for index {}", index);
37,279
private static String copyNativeLibraryFromClasspath(Platform platform) {<NEW_LINE>Path tmp = null;<NEW_LINE>try {<NEW_LINE>String libName = System.mapLibraryName(NATIVE_LIB_NAME);<NEW_LINE>Path cacheDir = getCacheDir(platform);<NEW_LINE>Path path = cacheDir.resolve(libName);<NEW_LINE>if (Files.exists(path)) {<NEW_LINE...
dlrCacheRoot = Utils.getEngineCacheDir("dlr");
1,418,354
private Mono<PagedResponse<PacketCaptureResultInner>> listSinglePageAsync(String resourceGroupName, String networkWatcherName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null....
error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null."));
1,699,386
private void bindBookingDetailHolder(final BookingDetailsHolder holder, final int position) {<NEW_LINE>final ALBookingDetailsModel detailsModel = new ALBookingDetailsModel();<NEW_LINE>detailsModel.setSessionId(model.getSessionId());<NEW_LINE>final ALBookingDetailsModel.ALBookingDetails bookingDetails = detailsModel.get...
toString().trim());
1,221,608
public static Observable<List<String>> loadAutoComplete(final String keyword) {<NEW_LINE>return Observable.create(new Observable.OnSubscribe<List<String>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void call(Subscriber<? super List<String>> subscriber) {<NEW_LINE>// RequestBody body = new FormBody.Builder()<NEW_L...
list = new ArrayList<>();
294,101
private boolean usedInOuter(NameDeclaration decl, JavaNode body) {<NEW_LINE>List<ASTClassOrInterfaceBodyDeclaration> classOrInterfaceBodyDeclarations = body.findChildrenOfType(ASTClassOrInterfaceBodyDeclaration.class);<NEW_LINE>List<ASTEnumConstant> enumConstants = <MASK><NEW_LINE>List<AbstractJavaNode> nodes = new Arr...
body.findChildrenOfType(ASTEnumConstant.class);
601,971
public static Drawable createSimpleSelectorDrawable(Context context, int resource, int defaultColor, int pressedColor) {<NEW_LINE>Resources resources = context.getResources();<NEW_LINE>Drawable defaultDrawable = resources.getDrawable(resource).mutate();<NEW_LINE>if (defaultColor != 0) {<NEW_LINE>defaultDrawable.setColo...
, PorterDuff.Mode.SRC_IN));
601,633
public HardCodedString modifyHCStringText(HardCodedString hcString) {<NEW_LINE>String hcStr = hcString.getText();<NEW_LINE>int strAndVarLength = strAndVarFound.length();<NEW_LINE>if (hcStr.contains(strAndVarFound)) {<NEW_LINE>// NOI18N<NEW_LINE>String newHcstrText = "";<NEW_LINE>int startVar = hcStr.indexOf(strAndVarFo...
newHcstrText : newHcstrText.concat(" + \"");
695,950
private void prepare(UploadCheckPoint uploadCheckPoint, UploadFileRequest uploadFileRequest) {<NEW_LINE>uploadCheckPoint.magic = UploadCheckPoint.UPLOAD_MAGIC;<NEW_LINE>uploadCheckPoint.uploadFile = uploadFileRequest.getUploadFile();<NEW_LINE>uploadCheckPoint.key = uploadFileRequest.getKey();<NEW_LINE>uploadCheckPoint....
.uploadFile, uploadCheckPoint.key));
1,128,033
public RecoveryInstanceDataReplicationError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecoveryInstanceDataReplicationError recoveryInstanceDataReplicationError = new RecoveryInstanceDataReplicationError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
class).unmarshall(context));
1,116,697
private void queueIO(TCPBaseRequestContext req) throws IOException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "queueIO");<NEW_LINE>}<NEW_LINE>final TCPConnLink conn = req.getTCPConnLink();<NEW_LINE>final ChannelSelector channelSelector;<NEW_LINE>if (req.isRequest...
readOutboundCount, readOutbound, req, CS_READ_OUTBOUND);
1,823,771
private static List<URI> expand(Iterable<URI> inputs) throws IOException {<NEW_LINE>List<URI> expanded = new ArrayList<>();<NEW_LINE>for (URI input : inputs) {<NEW_LINE>if (isFileOrDir(input)) {<NEW_LINE>Path inputPath = Paths.get(input);<NEW_LINE>if (Files.isDirectory(inputPath)) {<NEW_LINE>try (DirectoryStream<Path> ...
add(childPath.toUri());
471,275
private Set<VideoFormat> excludeFormats(Set<VideoFormat> formats) {<NEW_LINE>// remain no more than four position<NEW_LINE>// formats to remove: 240p, 480p<NEW_LINE>// get rid off java.util.Collections$UnmodifiableCollection<NEW_LINE>TreeSet<VideoFormat> sortedSet = new TreeSet<>(formats);<NEW_LINE>sortedSet.add(VideoF...
sortedSet.remove(VideoFormat._1440p60_);
1,331,738
private static String renderDocumentType(DocumentType docType) {<NEW_LINE>String publicId = docType.getPublicId();<NEW_LINE>String systemId = docType.getSystemId();<NEW_LINE>String nodeName;<NEW_LINE>if (null != docType.getOwnerDocument() && null != docType.getOwnerDocument().getDocumentElement() && null != docType.get...
.getDocumentElement().getNodeName();
987,588
private boolean copyDataByLogSegment(LogSegment logSegmentToCopy, FileSpan duplicateSearchSpan) throws IOException, StoreException {<NEW_LINE>logger.debug("Copying data from {}", logSegmentToCopy);<NEW_LINE>long logSegmentStartTime = time.milliseconds();<NEW_LINE>for (Offset indexSegmentStartOffset : getIndexSegmentDet...
getIndexSegments().get(indexSegmentStartOffset);
410,391
private void sendHandshakeRequest(String key) {<NEW_LINE>try {<NEW_LINE>String path = "/mqtt";<NEW_LINE>URI srvUri = new URI(uri);<NEW_LINE>if (srvUri.getRawPath() != null && !srvUri.getRawPath().isEmpty()) {<NEW_LINE>path = srvUri.getRawPath();<NEW_LINE>if (srvUri.getRawQuery() != null && !srvUri.getRawQuery().isEmpty...
.getValue() + LINE_SEPARATOR));
840,378
public void marshall(ProactiveAnomalySummary proactiveAnomalySummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (proactiveAnomalySummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(proactiveAnomal...
proactiveAnomalySummary.getAnomalyResources(), ANOMALYRESOURCES_BINDING);
100,705
public DomainDeliverabilityTrackingOption unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DomainDeliverabilityTrackingOption domainDeliverabilityTrackingOption = new DomainDeliverabilityTrackingOption();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetD...
String currentParentElement = context.getCurrentParentElement();
1,375,048
private void incrementCountAndCheckExhausted() {<NEW_LINE>if (countResponsesReceived.incrementAndGet() == numMasters) {<NEW_LINE>if (responseDCalled.compareAndSet(false, true)) {<NEW_LINE>boolean allUnrecoverable = true;<NEW_LINE>// When there are no exceptions, default to retry semantics.<NEW_LINE>if (exceptionsReceiv...
+ allHosts + ") has no leader.", exceptionsReceived));
1,853,695
private void createAndCheckForSymlinks(Path dir, Artifact outputFile) throws IOException {<NEW_LINE>Path rootPath = outputFile.getRoot().getRoot().asPath();<NEW_LINE>PathFragment root = rootPath.asFragment();<NEW_LINE>// If the output root has not been created yet, do so now.<NEW_LINE>if (!knownDirectories.containsKey(...
asFragment()) == DirectoryState.CREATED;
715,214
private void mapInvoicedQty(@NonNull final DETAILXrech detailXrech, @NonNull final EDICctopInvoic500VType xmlCctopInvoic500V, @NonNull final InvoicSettings settings, @NonNull final DecimalFormat decimalFormat) {<NEW_LINE>final String lineNumber = formatNumber(xmlCctopInvoic500V.getLine(), decimalFormat);<NEW_LINE>final...
xmlCctopInvoic500V.getLine() + " @EanComUOM@");
1,343,821
private void initView(Context context, AttributeSet attrs) {<NEW_LINE>mContext = context;<NEW_LINE>TypedArray attributesArray = context.obtainStyledAttributes(attrs, R.styleable.TagView);<NEW_LINE>mTagMargin = (int) attributesArray.getDimension(R.styleable.TagView_tagMargin, dipToPixels(mTagMargin));<NEW_LINE>mTextPadd...
.TagView_textPaddingLeft, dipToPixels(mTextPaddingLeft));
724,265
private Notification create() {<NEW_LINE>Type type = this.type.getSettingValue();<NEW_LINE>Color foreground = HtmlColors.decode(foregroundColor.getSettingValue());<NEW_LINE>Color background = HtmlColors.decode(backgroundColor.getSettingValue());<NEW_LINE>Notification.Builder b = new Notification.Builder(type);<NEW_LINE...
(0L).intValue());