idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,220,920
ActionResult<Wo> execute(String id, String path0, String path1, String path2, String path3, String path4, JsonElement jsonElement) throws Exception {<NEW_LINE>Callable<ActionResult<Wo>> callable = new Callable<ActionResult<Wo>>() {<NEW_LINE><NEW_LINE>public ActionResult<Wo> call() throws Exception {<NEW_LINE>try (Entit...
find(id, ApplicationDict.class);
404,321
public void execute(AdminCommandContext context) {<NEW_LINE>Config config = targetUtil.getConfig(target);<NEW_LINE>if (config == null) {<NEW_LINE>context.getActionReport().setMessage("No such config named: " + target);<NEW_LINE>context.getActionReport().setActionExitCode(ActionReport.ExitCode.FAILURE);<NEW_LINE>return;...
config.getExtensionByType(AMXConfiguration.class);
1,496,923
public CompletableFuture<Integer> unsubscribe(Subscription subscription) {<NEW_LINE>if (!subscription.isActive()) {<NEW_LINE>throw new IllegalStateException("Subscription is already inactive");<NEW_LINE>}<NEW_LINE>List<Subscription> subscriptions = getOrDefault(<MASK><NEW_LINE>if (subscriptions == null || !subscription...
mSubscriptions, subscription.subscription, null);
608,043
private Optional<Double> measure(final Instant now, final BlockedTimeSample current) {<NEW_LINE>final Instant windowStart = now.minus(window);<NEW_LINE>final Instant earliest = now.minus(window.plus(sampleMargin));<NEW_LINE>final Instant latest = now.minus(window.minus(sampleMargin));<NEW_LINE>LOGGER.debug("{}: record ...
blocked, durationNs)) / durationNs);
72,600
private TExecPlanFragmentParams streamLoadPutImpl(TStreamLoadPutRequest request) throws UserException {<NEW_LINE><MASK><NEW_LINE>if (Strings.isNullOrEmpty(cluster)) {<NEW_LINE>cluster = SystemInfoService.DEFAULT_CLUSTER;<NEW_LINE>}<NEW_LINE>Catalog catalog = Catalog.getCurrentCatalog();<NEW_LINE>String fullDbName = Clu...
String cluster = request.getCluster();
109,266
final DescribeScalableTargetsResult executeDescribeScalableTargets(DescribeScalableTargetsRequest describeScalableTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeScalableTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
(super.beforeMarshalling(describeScalableTargetsRequest));
1,013,833
private SingularityDeployResult checkCanaryMaybeFinished(SingularityRequest request, SingularityDeploy deploy, SingularityPendingDeploy pendingDeploy, Collection<SingularityTaskId> deployActiveTasks, Optional<SingularityUpdatePendingDeployRequest> updatePendingDeployRequest, Collection<SingularityTaskId> inactiveDeploy...
return new SingularityDeployResult(DeployState.SUCCEEDED);
1,009,570
private JPanel control() {<NEW_LINE>final var control = new JPanel();<NEW_LINE>final var gb = new GridBagLayout();<NEW_LINE>final var gc = new GridBagConstraints();<NEW_LINE>control.setLayout(gb);<NEW_LINE>gc.weightx = 1.0;<NEW_LINE>gc.gridwidth = 1;<NEW_LINE>gc.gridy = 0;<NEW_LINE>gc.gridx = 0;<NEW_LINE>gc.fill = Grid...
gb.setConstraints(notationLabel, gc);
1,728,473
private void downloadImage(PodcastChannel channel) {<NEW_LINE>String imageUrl = channel.getImageUrl();<NEW_LINE>if (imageUrl == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CoverArt art = coverArtService.get(EntityType.MEDIA_FILE, channel.getMediaFileId());<NEW_LINE>// if its already there, no need to download it again...
getMediaFile(channel.getMediaFileId());
1,331,726
public void onSizeReady(int width, int height) {<NEW_LINE>stateVerifier.throwIfRecycled();<NEW_LINE>synchronized (requestLock) {<NEW_LINE>if (IS_VERBOSE_LOGGABLE) {<NEW_LINE>logV("Got onSizeReady in " + LogTime.getElapsedMillis(startTime));<NEW_LINE>}<NEW_LINE>if (status != Status.WAITING_FOR_SIZE) {<NEW_LINE>return;<N...
width = maybeApplySizeMultiplier(width, sizeMultiplier);
145,726
private static List<EnumValueDescriptorProto.Builder> buildEnumValues(CodeSystem codeSystem, String system, List<Filter> filters) {<NEW_LINE>filters = filters.stream().filter(filter -> {<NEW_LINE>if (filter.getOp().getValue() != FilterOperatorCode.Value.IS_A) {<NEW_LINE>System.out.println("Warning: value filters other ...
getProperty().getValue());
897,833
private static void writeTimestamp(byte[] buffer, int offset, long time) {<NEW_LINE>// Special case: zero means zero.<NEW_LINE>if (time == 0) {<NEW_LINE>Arrays.fill(buffer, offset, offset + 8, (byte) 0x00);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long seconds = time / 1000L;<NEW_LINE>long milliseconds = time - seconds * 1...
byte) (seconds >> 16);
1,366,913
protected HttpHost determineProxy(HttpHost target, HttpRequest request, HttpContext context) throws HttpException {<NEW_LINE>if (request.getParams().getBooleanParameter(FORCE_DIRECT_CONNECTION, false)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// ATTENTION: keep old implementation, see ConnRoutePNames.DEFAULT_PROXY u...
context.getAttribute(ClientContext.CREDS_PROVIDER);
656,853
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>if (args.length != 2 && args.length != 3) {<NEW_LINE>throw new QueryException(new QNm("No valid arguments specified!"));<NEW_LINE>}<NEW_LINE>final XmlDBNode doc = ((XmlDBNode) args[0]);<NEW_LINE>final <MASK><NEW_LINE>final XmlReso...
XmlNodeReadOnlyTrx rtx = doc.getTrx();
1,848,424
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(PropertyHashedArrayFactoryFactory.EPTYPE, this.getClass(), classScope);<NEW_LINE>method.getBlock().declareVar(EventPropertyValueGetter.EPTYPEARRAY, "ge...
, constant(i), getter);
1,398,862
final DefineSuggesterResult executeDefineSuggester(DefineSuggesterRequest defineSuggesterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(defineSuggesterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,853,963
private void attemptSshKeyDecryption() throws Exception {<NEW_LINE>// Try to decrypt and recover keypair, and failing that, report error.<NEW_LINE>kp = PubkeyUtils.decryptAndRecoverKeyPair(sshPrivKey, passphrase);<NEW_LINE>while (kp == null) {<NEW_LINE>sshKeyDecryptionAttempts++;<NEW_LINE>if (sshKeyDecryptionAttempts >...
Log.i(TAG, "Requesting SSH passphrase from user");
1,699,405
public Message decode(ProtoReader reader) throws IOException {<NEW_LINE>Builder builder = new Builder();<NEW_LINE>long token = reader.beginMessage();<NEW_LINE>for (int tag; (tag = reader.nextTag()) != -1; ) {<NEW_LINE>switch(tag) {<NEW_LINE>case 1:<NEW_LINE>builder.unknownFields(ProtoAdapter.STRING.decode(reader));<NEW...
.STRING.decode(reader));
60,513
public static MasterSecret generateMasterSecret(Context context, String passphrase) {<NEW_LINE>try {<NEW_LINE>byte[] encryptionSecret = generateEncryptionSecret();<NEW_LINE>byte[] macSecret = generateMacSecret();<NEW_LINE>byte[] masterSecret = <MASK><NEW_LINE>byte[] encryptionSalt = generateSalt();<NEW_LINE>int iterati...
Util.combine(encryptionSecret, macSecret);
1,390,183
private org.opendope.xpaths.Xpaths.Xpath createNewXPathObject(String newPath, org.opendope.xpaths.Xpaths.Xpath xpathObj, int index) {<NEW_LINE>// org.opendope.xpaths.Xpaths.Xpath newXPathObj = XmlUtils<NEW_LINE>// .deepCopy(xpathObj);<NEW_LINE>org.opendope.xpaths.Xpaths.Xpath newXPathObj = new org.opendope.xpaths.Xpath...
.Xpaths.Xpath.DataBinding();
1,806,865
public void draw(Canvas canvas) {<NEW_LINE>canvas.drawRect(mContentBounds, mContentPaint);<NEW_LINE>int saveCount = canvas.save();<NEW_LINE>canvas.clipRect(mContentBounds, Region.Op.DIFFERENCE);<NEW_LINE>canvas.drawRect(mPaddingBounds, mPaddingPaint);<NEW_LINE>canvas.restoreToCount(saveCount);<NEW_LINE>saveCount = canv...
mPaddingBounds, Region.Op.DIFFERENCE);
1,273,386
private boolean checkValidity() {<NEW_LINE>String pName = packageName.getEditor().getItem() == null ? "" : packageName.getEditor().getItem().toString().trim();<NEW_LINE>if (!Utilities.isJavaIdentifier(getClassName())) {<NEW_LINE>setError(getMessage("MSG_ClassNameMustBeValidJavaIdentifier"));<NEW_LINE>} else if (getDisp...
(getMessage("MSG_DisplayNameMustBeEntered"), false);
1,243,147
private Mono<PagedResponse<PerformanceTierPropertiesInner>> listSinglePageAsync(String locationName) {<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 (this.client.ge...
error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
550,615
public List<Volume> describeVolumes(String... volumeIds) {<NEW_LINE>if (volumeIds == null || volumeIds.length == 0) {<NEW_LINE>LOGGER.info(String.format("Getting all EBS volumes in region %s.", region));<NEW_LINE>} else {<NEW_LINE>LOGGER.info(String.format("Getting EBS volumes for %d ids in region %s."<MASK><NEW_LINE>}...
, volumeIds.length, region));
15,108
public static DescribeBackupJobsResponse unmarshall(DescribeBackupJobsResponse describeBackupJobsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupJobsResponse.setRequestId(_ctx.stringValue("DescribeBackupJobsResponse.RequestId"));<NEW_LINE>describeBackupJobsResponse.setSuccess(_ctx.booleanValue("DescribeBac...
("DescribeBackupJobsResponse.BackupJobs[" + i + "].Speed"));
1,232,551
public static Map<Integer, String> parseSecurityCurveMappings(final String property) {<NEW_LINE>Map<Integer, String> lcurveMapping = new HashMap<>(8);<NEW_LINE>if (property != null && !property.isEmpty()) {<NEW_LINE>// empty will be caught later.<NEW_LINE>String[] cmaps = property.split("[ \t]*:[ \t]*");<NEW_LINE>for (...
("Bad curve mapping for %s in property %s", mape, SECURITY_CURVE_MAPPING));
128,293
public void validate() throws org.apache.thrift.TException {<NEW_LINE>// check for required fields<NEW_LINE>if (!is_set_topologyMetric()) {<NEW_LINE>throw new org.apache.thrift.protocol.TProtocolException("Required field 'topologyMetric' is unset! Struct:" + toString());<NEW_LINE>}<NEW_LINE>if (!is_set_componentMetric(...
TProtocolException("Required field 'streamMetric' is unset! Struct:" + toString());
784,401
public void afterReportInit() throws JRScriptletException {<NEW_LINE>try {<NEW_LINE>XYChart xyChart = new XYChartBuilder().width(515).height(400).title("Fruits Order").xAxisTitle("Day of Week").yAxisTitle("Quantity (t)").build();<NEW_LINE>xyChart.addSeries("Apples", new double[] { 1, 3, 5 }, new double[] { 4, 10, 7 });...
, 4, 4, 6 });
1,390,978
public com.amazonaws.services.codedeploy.model.InvalidAutoRollbackConfigException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.InvalidAutoRollbackConfigException invalidAutoRollbackConfigException = new com.amazonaws.services.codedeploy.model...
JsonToken token = context.getCurrentToken();
1,735,590
/* (non-Javadoc)<NEW_LINE>* @see org.eclipse.ui.application.ActionBarAdvisor#fillMenuBar(org.eclipse.jface.action.IMenuManager)<NEW_LINE>*/<NEW_LINE>protected void fillMenuBar(final IMenuManager menuBar) {<NEW_LINE>// File menu<NEW_LINE>final MenuManager fileMenu = new MenuManager("&File", "toolbox.file.menu");<NEW_LIN...
.add(new Separator());
1,073,393
private static DatasetSortInfo createSortInfo(JRFillDataset dataset) throws JRException {<NEW_LINE>DatasetSortInfo sortInfo = new DatasetSortInfo();<NEW_LINE>sortInfo.setOriginalDataSource(dataset.dataSource);<NEW_LINE>Map<String, JRField> fieldsMap = new HashMap<>();<NEW_LINE>Map<String, Integer> fieldIndexMap = new H...
field = fieldsMap.get(sortFieldName);
1,364,867
public void init(ExtendedProperties configuration) {<NEW_LINE>dataSourceName = StringUtils.nullTrim(configuration.getString("resource.datasource"));<NEW_LINE>tableName = StringUtils.nullTrim(configuration.getString("resource.table"));<NEW_LINE>keyColumn = StringUtils.nullTrim(configuration.getString("resource.keycolumn...
Logger.error(this, msg);
702,662
public void execute() {<NEW_LINE>if (!(target.getItems() instanceof EntityDataUnit)) {<NEW_LINE>throw new IllegalStateException("BulkEditAction target Items is null " + "or does not implement EntityDataUnit");<NEW_LINE>}<NEW_LINE>MetaClass metaClass = ((EntityDataUnit) target.getItems()).getEntityMetaClass();<NEW_LINE>...
window = ComponentsHelper.getWindowNN(target);
244,716
private CollectionEventInfo<Document> removeAndCreateEvent(Document document, WriteResultImpl writeResult) {<NEW_LINE>NitriteId nitriteId = document.getId();<NEW_LINE><MASK><NEW_LINE>if (document != null) {<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>documentIndexWriter.removeIndexEntry(document);<NEW_LIN...
document = nitriteMap.remove(nitriteId);
29,871
private Result resolveSourceLevelImpl(@NonNull final JavaPlatform jp) throws Exception {<NEW_LINE>return ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Result>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Result run() throws Exception {<NEW_LINE>final J2SEProject j2sePrj = prj.getLookup().lookup(J2SEP...
putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, props);
613,408
public NewPage updateNewPageWithDefaultResources(NewPage newPage) {<NEW_LINE>DefaultResources defaultResourceIds = newPage.getDefaultResources();<NEW_LINE>if (defaultResourceIds == null || StringUtils.isEmpty(defaultResourceIds.getApplicationId()) || StringUtils.isEmpty(defaultResourceIds.getPageId())) {<NEW_LINE>log.e...
(newPage.getPublishedPage()));
602,650
public void revert(final Path file) throws BackgroundException {<NEW_LINE>if (file.isFile()) {<NEW_LINE>try {<NEW_LINE>final S3Object destination = new S3Object(containerService.getKey(file));<NEW_LINE>// Keep same storage class<NEW_LINE>destination.setStorageClass(file.attributes().getStorageClass());<NEW_LINE>final E...
.attributes().getEncryption();
1,337,676
public DescribePlaceIndexResult describePlaceIndex(DescribePlaceIndexRequest describePlaceIndexRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePlaceIndexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1,261,904
public static OnsDLQMessagePageQueryByGroupIdResponse unmarshall(OnsDLQMessagePageQueryByGroupIdResponse onsDLQMessagePageQueryByGroupIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>onsDLQMessagePageQueryByGroupIdResponse.setRequestId(_ctx.stringValue("OnsDLQMessagePageQueryByGroupIdResponse.RequestId"));<NEW_LINE>ons...
("OnsDLQMessagePageQueryByGroupIdResponse.MsgFoundDo.MsgFoundList[" + i + "].StoreHost"));
351,599
public void encodeTableLayout(FacesContext context, PanelGrid grid) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = grid.getClientId(context);<NEW_LINE>int columns = grid.getColumns();<NEW_LINE>String style = grid.getStyle();<NEW_LINE>String styleClass = gri...
writeAttribute("id", clientId, "id");
202,996
private boolean S4U2SelfTestCallAPITwice(StringBuffer sb) {<NEW_LINE>boolean pass = false;<NEW_LINE>try {<NEW_LINE>if (krb5conf != null && krb5Keytab != null) {<NEW_LINE>setSystemProperty("KRB5_KTNAME", krb5Keytab);<NEW_LINE>setSystemProperty("java.security.krb5.conf", krb5conf);<NEW_LINE>}<NEW_LINE>String token = Spne...
delegate, delegateServiceSpn, jaas, krb5Keytab);
1,539,631
private // via GridRowInfo and GridColumnInfo. This grid uses the percentages<NEW_LINE>GridPane createGridPanePercentage() {<NEW_LINE>GridPane grid = new GridPane();<NEW_LINE>grid.setPadding(new Insets(8, 8, 8, 8));<NEW_LINE>RowConstraints rowinfo3 = new RowConstraints();<NEW_LINE>rowinfo3.setPercentHeight(50);<NEW_LIN...
, 10, 10, 10));
1,677,176
public SingleMasterChannelEndpointConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SingleMasterChannelEndpointConfiguration singleMasterChannelEndpointConfiguration = new SingleMasterChannelEndpointConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>Str...
JsonToken token = context.getCurrentToken();
476,557
public static GroupActionResult addMembers(@NonNull Context context, @NonNull GroupId.Push groupId, @NonNull Collection<RecipientId> newMembers) throws GroupChangeFailedException, GroupInsufficientRightsException, IOException, GroupNotAMemberException, GroupChangeBusyException, MembershipNotSuitableForV2Exception {<NEW...
= new HashSet<>(members);
1,476,965
private ShardRequestExecutor<ShardUpsertRequest> createExecutor(DependencyCarrier dependencies, PlannerContext plannerContext) {<NEW_LINE><MASK><NEW_LINE>CoordinatorTxnCtx txnCtx = plannerContext.transactionContext();<NEW_LINE>ShardUpsertRequest.Builder requestBuilder = new // missing assignments are for INSERT .. ON D...
ClusterService clusterService = dependencies.clusterService();
1,483,114
static BigInteger xorNegative(BigInteger val, BigInteger that) {<NEW_LINE>// PRE: val and that are negative<NEW_LINE>// PRE: val has at least as many trailing zero digits as that<NEW_LINE>int resLength = Math.max(val.numberLength, that.numberLength);<NEW_LINE>int[] resDigits = new int[resLength];<NEW_LINE>int iVal = va...
= ~that.digits[i];
914,453
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String jobName) {<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 (this.cli...
)).readOnly()));
707,675
// -------------------------------------------------------------------------<NEW_LINE>// The QueryPart API<NEW_LINE>// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public final void accept(Context<?> ctx) {<NEW_LINE>if (!isExecutable()) {<NEW_LINE>ctx.formatSepar...
(K_DEFAULT_VALUES).end(INSERT_VALUES);
1,113,800
public RestoreOperationResult execute() throws Exception {<NEW_LINE>logger.log(Level.INFO, "");<NEW_LINE>logger.log(Level.INFO, "Running 'Restore' at client " + <MASK><NEW_LINE>logger.log(Level.INFO, "--------------------------------------------");<NEW_LINE>// Find file history<NEW_LINE>FileHistoryId restoreFileHistory...
config.getMachineName() + " ...");
594,616
protected <T> T fromJson(Object json, JavaType type) throws IOException {<NEW_LINE>if (json instanceof String) {<NEW_LINE>return this.objectMapper.readValue((String) json, type);<NEW_LINE>} else if (json instanceof byte[]) {<NEW_LINE>return this.objectMapper.readValue((byte[]) json, type);<NEW_LINE>} else if (json inst...
((Reader) json, type);
768,943
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UntagResourceReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
441,515
// Convert rgb(51,102,153) to #336699 (this code largely based on YUI code)<NEW_LINE>private String simplifyRGBColours(String contents) {<NEW_LINE>StringBuffer newContents = new StringBuffer();<NEW_LINE>StringBuffer hexColour;<NEW_LINE>String[] rgbColours;<NEW_LINE>int colourValue;<NEW_LINE>Pattern <MASK><NEW_LINE>Matc...
pattern = Pattern.compile("rgb\\s*\\(\\s*([0-9,\\s]+)\\s*\\)");
1,672,439
ContainerInstance parse(DeploymentNodeDslContext context, Tokens tokens) {<NEW_LINE>// containerInstance <identifier> [deploymentGroups] [tags]<NEW_LINE>if (tokens.hasMoreThan(TAGS_INDEX)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!tokens.includes(IDENTIFIER_INDEX)) {<NEW_LINE>throw new RuntimeException("Expected: " + ...
throw new RuntimeException("Too many tokens, expected: " + GRAMMAR);
249,104
protected static <T extends StatefulConnection<?, ?>> BoundedAsyncPool<T> doCreatePool(Supplier<CompletionStage<T>> connectionSupplier, BoundedPoolConfig config, boolean wrapConnections) {<NEW_LINE>LettuceAssert.notNull(connectionSupplier, "Connection supplier must not be null");<NEW_LINE>LettuceAssert.notNull(config, ...
poolRef = new AtomicReference<>();
723,005
private void storeTempDir() {<NEW_LINE>String tempDirectoryPath = tempCustomField.getText();<NEW_LINE>if (!UserMachinePreferences.getCustomTempDirectory().equals(tempDirectoryPath)) {<NEW_LINE>try {<NEW_LINE>UserMachinePreferences.setCustomTempDirectory(tempDirectoryPath);<NEW_LINE>} catch (UserMachinePreferencesExcept...
WARNING, "There was an error creating the temporary directory defined by the user: " + tempDirectoryPath, ex);
302,667
public DatasetMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DatasetMetadata datasetMetadata = new DatasetMetadata();<NEW_LINE>reader...
String name = reader.nextName();
1,238,459
private List<Mapping> lcs(ArrayList<Tree> list1, ArrayList<Tree> list2, Set<Tree> unmatchedNodes1, Set<Tree> unmatchedNodes2) {<NEW_LINE>int[][] matrix = new int[list1.size() + 1][list2.size() + 1];<NEW_LINE>for (int i = 1; i < list1.size() + 1; i++) {<NEW_LINE>for (int j = 1; j < list2.size() + 1; j++) {<NEW_LINE>if (...
][j - 1] + 1;
786,570
public static List<Map<String, Object>> readSelectClause(Expression selectExpression, EntityMetadata m, Boolean useLuceneOrES, KunderaMetadata kunderaMetadata) {<NEW_LINE>List<Map<String, Object>> columnsToOutput = new ArrayList<Map<String, Object>>();<NEW_LINE>if (StateFieldPathExpression.class.isAssignableFrom(select...
selectExpression, m, columnsToOutput, kunderaMetadata);
556,766
final CreateAssetResult executeCreateAsset(CreateAssetRequest createAssetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAssetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new CreateAssetResultJsonUnmarshaller());
111,667
private void renderPage(WebContext ctx) {<NEW_LINE>ctx.setVariable(KEY_TITLE, "Features");<NEW_LINE>// Sort natural Order<NEW_LINE>Map<String, Feature> mapOfFeatures = ff4j.getFeatureStore().readAll();<NEW_LINE>List<String> featuresNames = Arrays.asList(mapOfFeatures.keySet().toArray(new String[0]));<NEW_LINE>Collectio...
).getSimpleName(), strategyTargered);
888,100
public void onMessage(Message msg) {<NEW_LINE>String text = null;<NEW_LINE>String messageID = null;<NEW_LINE>results = "";<NEW_LINE>try {<NEW_LINE>text = ((TextMessage) msg).getText();<NEW_LINE><MASK><NEW_LINE>if (text.equalsIgnoreCase("CMT COMMIT")) {<NEW_LINE>testRequiredTx("onMessage()");<NEW_LINE>testSLLaObjectAcce...
svLogger.info("senderBean.onMessage(), msg text ->: " + text);
1,542,948
private void updateMutables(SubscriptionResult _result, Map<Integer, Object> properties) {<NEW_LINE>Date pub_date = (Date) properties.get(SearchResult.PR_PUB_DATE);<NEW_LINE>if (pub_date == null) {<NEW_LINE>time = _result.getTimeFound();<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>if (pt <= 0) {<NEW_LINE>time = _result....
long pt = pub_date.getTime();
1,325,393
public static IStatus nativeCopy(IPath source, IPath dest, IProgressMonitor monitor) {<NEW_LINE>// TODO Piping output to the monitor is nice, but if we're copying huge amounts of files, maybe we should limit<NEW_LINE>// how often we pipe the output?<NEW_LINE>// FIXME This will pipe output to the monitor, but won't actu...
), ps.getStdErr());
1,170,466
public List<WorkflowScheme> findSchemesForStruct(final String structId) throws DotDataException {<NEW_LINE>List<WorkflowScheme> schemes = cache.getSchemesByStruct(structId);<NEW_LINE>if (schemes != null) {<NEW_LINE>// checks if any of the schemes has been invalidated (save recently and needs to refresh the schemes for ...
final DotConnect db = new DotConnect();
944,051
public List<String> list(Business business, EffectivePerson effectivePerson, List<String> identities, List<String> units, List<String> groups, Application application, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Process.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteria...
, effectivePerson.getDistinguishedName()));
1,726,373
public ClusterMergeHistory run(Relation<O> relation) {<NEW_LINE>final QueryBuilder<O> qb = new QueryBuilder<>(relation, distance);<NEW_LINE>final DistanceQuery<O> distQ = qb.distanceQuery();<NEW_LINE>final KNNSearcher<DBIDRef> knnQ = qb.kNNByDBID(minPts);<NEW_LINE>// We need array addressing later.<NEW_LINE>final Array...
, lambda).complete(coredists);
1,689,585
private void findSystemActionsMapByContentType(final ImmutableMap.Builder<String, List<Map<String, Object>>> mappingMapBuilder, final String selectQueryTemplate, final Set<String> notFoundContentTypesSet) throws DotDataException {<NEW_LINE>final List<List<String>> notFoundContentTypesListOfList = // select in does not ...
> results = contentTypeResultsEntry.getValue();
603,771
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LI...
throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm");
67,230
private static Set<String> supportedCiphers(SSLEngine engine) {<NEW_LINE>// Choose the sensible default list of cipher suites.<NEW_LINE>final String[<MASK><NEW_LINE>Set<String> supportedCiphersSet = new LinkedHashSet<String>(supportedCiphers.length);<NEW_LINE>for (int i = 0; i < supportedCiphers.length; ++i) {<NEW_LINE...
] supportedCiphers = engine.getSupportedCipherSuites();
1,037,101
public LogEventRequestAndResponse deserialize(String jsonHttpRequestAndHttpResponse) {<NEW_LINE>if (isBlank(jsonHttpRequestAndHttpResponse)) {<NEW_LINE>throw new IllegalArgumentException("1 error:" + NEW_LINE + " - a request is required but value was \"" + jsonHttpRequestAndHttpResponse + "\"");<NEW_LINE>} else {<NEW_L...
"exception while parsing [" + jsonHttpRequestAndHttpResponse + "] for HttpRequestAndHttpResponse", throwable);
1,146,719
public static void main(String[] args) throws UnknownFunctionException, UnparsableExpressionException, InvalidCustomFunctionException {<NEW_LINE>// Test 1<NEW_LINE>// ======<NEW_LINE>Calculable calc1 = new ExpressionBuilder("x * y - 2").withVariableNames("x", "y").build();<NEW_LINE>calc1.setVariable(new Variable("x", 1...
get(0).getArrayValue();
1,015,901
protected AttachmentResponse createBinaryAttachment(MultipartHttpServletRequest request, Task task, HttpServletResponse response) {<NEW_LINE>String name = null;<NEW_LINE>String description = null;<NEW_LINE>String type = null;<NEW_LINE>Map<String, String[]> paramMap = request.getParameterMap();<NEW_LINE>for (String para...
.get(parameterName)[0];
1,607,532
// Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>Object o;<NEW_LINE>org.<MASK><NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("PropertyOne");<NEW_LINE>// NOI18N<NEW_LINE>str.append(indent + "\t");<NEW_...
netbeans.modules.schema2beans.BaseBean n;
1,703,769
public static void montecarlo(final int size) {<NEW_LINE>float[] output = new float[size];<NEW_LINE>float[] seq = new float[size];<NEW_LINE>WorkerGrid workerGrid = new WorkerGrid1D(size);<NEW_LINE>GridScheduler gridScheduler = new GridScheduler("s0.t0", workerGrid);<NEW_LINE>KernelContext context = new KernelContext();...
println("Total time (Tornado) : " + (tornadoTime));
1,065,599
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new LinearLayoutManager(requireContext()...
drawable.list_divider_h), true));
1,058,764
private void shareItems(Set<Recording> selected) {<NEW_LINE>FragmentActivity activity = getActivity();<NEW_LINE>if (activity != null) {<NEW_LINE>ArrayList<Uri> uris = new ArrayList<>();<NEW_LINE>for (Recording rec : selected) {<NEW_LINE>File file = rec == SHARE_LOCATION_FILE ? generateGPXForRecordings(selected) : rec.g...
(R.string.share_note));
94,168
public static void drawPolygon(Polygon2D_F64 polygon, boolean loop, double scale, Color color0, Color colorOthers, Graphics2D g2) {<NEW_LINE>BoofSwingUtil.antialiasing(g2);<NEW_LINE>Path2D path = new Path2D.Double();<NEW_LINE>for (int i = 1; i <= polygon.size(); i++) {<NEW_LINE>Point2D_F64 p = polygon.get(i % polygon.s...
x, scale * p.y);
625,580
private static void testFullArray() {<NEW_LINE>Object[][] array2d = new HasName[2][2];<NEW_LINE>assertTrue(array2d[0].length == 2);<NEW_LINE>assertTrue(array2d.length == 2);<NEW_LINE>// You can swap out an entire array in an array slot.<NEW_LINE>array2d[0] = new HasName[2];<NEW_LINE>assertTrue(array2d[0].length == 2);<...
0] = new HasFullName[2];
1,166,012
public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>// TODO [alex] LargeScreenSupport -- Remove these lines.<NEW_LINE>WindowUtil.setLightNavigationBarFromTheme(requireActivity());<NEW_LINE>WindowUtil.setLightStatusBarFromTheme(requireActivity());<NEW_LINE>EventBus.getDefault().register(this);<NEW_LINE>initiali...
(groupId)).enqueue();
834,274
final GetRelationalDatabaseMasterUserPasswordResult executeGetRelationalDatabaseMasterUserPassword(GetRelationalDatabaseMasterUserPasswordRequest getRelationalDatabaseMasterUserPasswordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRelationalDatabaseMasterUserPasswordRequest);<NEW_LIN...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
188,151
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol as mySymbol from " + "SupportMarketDataBean#length(5) " + "output every 6 events " + "order by mySymbol";<NEW_LINE>SupportUpdateListener listener = new SupportUpdateListe...
= "@name('s0') select symbol, 1+volume*23 as myVol from " + "SupportMarketDataBean#length(10) " + "output every 6 events " + "order by (price * 6) + 5, price, myVol";
417,405
public WorkflowDefPb.WorkflowDef toProto(WorkflowDef from) {<NEW_LINE>WorkflowDefPb.WorkflowDef.Builder to = WorkflowDefPb.WorkflowDef.newBuilder();<NEW_LINE>if (from.getName() != null) {<NEW_LINE>to.<MASK><NEW_LINE>}<NEW_LINE>if (from.getDescription() != null) {<NEW_LINE>to.setDescription(from.getDescription());<NEW_L...
setName(from.getName());
629,443
AsyncRpcResult invokeUnary(MethodDescriptor methodDescriptor, Invocation invocation, ClientCall call) {<NEW_LINE>ExecutorService callbackExecutor = getCallbackExecutor(getUrl(), invocation);<NEW_LINE>int timeout = calculateTimeout(invocation, invocation.getMethodName());<NEW_LINE>invocation.setAttachment(TIMEOUT_KEY, t...
call.start(request, callListener);
234,519
public Request<DetectStackResourceDriftRequest> marshall(DetectStackResourceDriftRequest detectStackResourceDriftRequest) {<NEW_LINE>if (detectStackResourceDriftRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DetectStackResourceDriftReque...
request.setHttpMethod(HttpMethodName.POST);
1,102,420
public ManagedJobTemplateSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ManagedJobTemplateSummary managedJobTemplateSummary = new Mana...
)).unmarshall(context));
1,755,331
/* (non-Javadoc)<NEW_LINE>* @see javax.servlet.ServletInputStream#readLine(byte[], int, int)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public int readLine(byte[] b, int off, int len) throws IOException {<NEW_LINE>// Return -1 here because if we are closed or finished, we're at the end of the stream<NEW_LINE>if (isClosed ...
readLine(b, off, len);
1,162,996
private <T> void bindRemoteInterfaceToContextRoot(Map<EJBModuleMetaDataImpl, NameSpaceBinder<?>> binders, HomeRecord hr, String interfaceName, int interfaceIndex) {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.<MASK><NEW_LINE>BeanMet...
entry(tc, "bindRemoteInterfaceToContextRoot : " + interfaceName);
1,493,191
private void buildSegment(FSTType fstType) throws Exception {<NEW_LINE>List<<MASK><NEW_LINE>List<FieldConfig> fieldConfigs = new ArrayList<>();<NEW_LINE>fieldConfigs.add(new FieldConfig(DOMAIN_NAMES_COL, FieldConfig.EncodingType.DICTIONARY, FieldConfig.IndexType.FST, null, null));<NEW_LINE>fieldConfigs.add(new FieldCon...
GenericRow> rows = createTestData(_numRows);
77,455
private void orNextIntoBits() {<NEW_LINE>int <MASK><NEW_LINE>position++;<NEW_LINE>int size = buffer.getChar(position) & 0xFFFF;<NEW_LINE>position += Character.BYTES;<NEW_LINE>switch(type) {<NEW_LINE>case ARRAY:<NEW_LINE>{<NEW_LINE>int skip = size << 1;<NEW_LINE>CharBuffer cb = (CharBuffer) ((ByteBuffer) buffer.position...
type = buffer.get(position);
240,937
public void initialize() {<NEW_LINE>this.viewModel = new CitationKeyPatternTabViewModel(dialogService, preferencesService);<NEW_LINE>overwriteAllow.selectedProperty().bindBidirectional(viewModel.overwriteAllowProperty());<NEW_LINE>overwriteWarning.selectedProperty().bindBidirectional(viewModel.overwriteWarningProperty(...
bindBidirectional(viewModel.letterStartBProperty());
707,946
public WsdlMockService cloneToAnotherProject(WsdlMockService mockService, String targetProjectName, String name, String description) {<NEW_LINE>WorkspaceImpl workspace = mockService.getProject().getWorkspace();<NEW_LINE>WsdlProject targetProject = (<MASK><NEW_LINE>if (targetProject == null) {<NEW_LINE>targetProjectName...
WsdlProject) workspace.getProjectByName(targetProjectName);
9,616
private void newSchema() throws IOException {<NEW_LINE>List<Type> types = new ArrayList<>();<NEW_LINE>for (MaterializedField field : batchSchema) {<NEW_LINE>if (field.getName().equalsIgnoreCase(WriterPrel.PARTITION_COMPARATOR_FIELD)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>types<MASK><NEW_LINE>}<NEW_LINE>schema = new ...
.add(getType(field));
1,344,619
private List<String> findApks(List<String> allApksToInstall, File dataDir) {<NEW_LINE>List<String> apks = new ArrayList<>();<NEW_LINE>for (String apkPath : allApksToInstall) {<NEW_LINE>if (!new File(apkPath).isAbsolute()) {<NEW_LINE>File apkFile = new File(dataDir, apkPath);<NEW_LINE>if (apkFile.exists()) {<NEW_LINE>ap...
.getName(), foundApks));
1,658,280
public static void main(String[] argv) {<NEW_LINE>Random ran = new Random();<NEW_LINE>int len = 102;<NEW_LINE>int numBits = 4;<NEW_LINE>double[] dArr = new double[len];<NEW_LINE>float[] fArr = new float[len];<NEW_LINE>for (int i = 0; i < dArr.length; i++) {<NEW_LINE>dArr[i] = ran.nextDouble() - 0.5;<NEW_LINE>}<NEW_LINE...
buf2 = Unpooled.buffer(1000);
556,137
public static BackButton parse(Context context, JSONObject json) {<NEW_LINE>BackButton result = new BackButton();<NEW_LINE>if (json == null || json.toString().equals("{}"))<NEW_LINE>return result;<NEW_LINE>result.hasValue = true;<NEW_LINE>result.visible = BoolParser.parse(json, "visible");<NEW_LINE>result.accessibility...
, json.optJSONObject("disabledColor"));
659,960
public URL findResource(String name) {<NEW_LINE>// Specifically for META-INF/services/javax.xml.parsers.SAXParserFactory<NEW_LINE>String checkName = name;<NEW_LINE>if (checkName.startsWith(META_INF_SERVICES)) {<NEW_LINE>checkName = checkName.substring(META_INF_SERVICES.length());<NEW_LINE>}<NEW_LINE>checkName = checkNa...
found = super.findResource(name);
1,592,017
static void fillGeoPosition(TokenBuffer buffer, FieldValue positionFieldValue) {<NEW_LINE>Double latitude = null;<NEW_LINE>Double longitude = null;<NEW_LINE>expectObjectStart(buffer.currentToken());<NEW_LINE>int initNesting = buffer.nesting();<NEW_LINE>for (buffer.next(); buffer.nesting() >= initNesting; buffer.next())...
String curName = buffer.currentName();
448,162
void resetAsCloneOf(final ElementProcessorIterator original) {<NEW_LINE>this.size = original.size;<NEW_LINE>this.last = original.last;<NEW_LINE>this.currentTag = original.currentTag;<NEW_LINE>this.lastToBeRepeated = original.lastToBeRepeated;<NEW_LINE>this.lastWasRepeated = original.lastWasRepeated;<NEW_LINE>if (this.s...
processors, 0, this.size);
1,682,681
// if the source SR needs to be attached to, do so<NEW_LINE>// take a snapshot of the source VDI (on the source SR)<NEW_LINE>// create an iSCSI SR based on the new back-end volume<NEW_LINE>// copy the snapshot to the new SR<NEW_LINE>// delete the snapshot<NEW_LINE>// detach the new SR<NEW_LINE>// if we needed to perfor...
iScsiName, chapInitiatorUsername, chapInitiatorSecret, false);
107,709
public DescribeResourcePoliciesResult describeResourcePolicies(DescribeResourcePoliciesRequest describeResourcePoliciesRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeResourcePoliciesRequest);<NEW_LINE>AWSRequestMetrics awsReque...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);