cwielenb/CNCF-Dataset huggingface dataset:
Project: Chef InSpec (Provisioning / Security & Compliance)
File: google_compute_instance_group_managers.md

+++ title = "googlecomputeinstancegroupmanagers resource" draft = false gh_repo = "inspec" platform = "gcp" [menu] [menu.inspec] title = "googlecomputeinstancegroupmanagers" identifier = "inspec/resources/gcp/googlecomputeinstancegroupmanagers.md googlecomputeinstancegroupmanagers resource" parent = "inspec/resources/gcp" +++ A `googlecomputeinstancegroupmanagers` is used to test a Google InstanceGroupManager resource This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource ```ruby describe googlecomputeinstancegroupmanagers(project: 'chef-gcp-inspec', zone: 'zone') do its('baseinstancenames') { should include 'igm' } end ``` Properties that can be accessed from the `googlecomputeinstancegroupmanagers` resource: See the resource for more information. `baseinstancenames` : an array of `googlecomputeinstancegroupmanager` baseinstancename `creation_timestamps` : an array of `googlecomputeinstancegroupmanager` creation_timestamp `current_actions` : an array of `googlecomputeinstancegroupmanager` current_actions `descriptions` : an array of `googlecomputeinstancegroupmanager` description `ids` : an array of `googlecomputeinstancegroupmanager` id `instance_groups` : an array of `googlecomputeinstancegroupmanager` instance_group `instance_templates` : an array of `googlecomputeinstancegroupmanager` instance_template `names` : an array of `googlecomputeinstancegroupmanager` name `named_ports` : an array of `googlecomputeinstancegroupmanager` named_ports `regions` : an array of `googlecomputeinstancegroupmanager` region `target_pools` : an array of `googlecomputeinstancegroupmanager` target_pools `target_sizes` : an array of `googlecomputeinstancegroupmanager` target_size `zones` : an array of `googlecomputeinstancegroupmanager` zone This resource supports all of the above properties as filter criteria, which can be used with `where` as a block or a method. Ensure the is enabled for the current project.
Project: Apache Spark (App Definition and Development / Streaming & Messaging)
File: ml-survival-regression.md

layout: global title: Survival Regression displayTitle: Survival Regression license: | Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. > This section has been moved into the .
Project: SeaTunnel (App Definition and Development / Streaming & Messaging)
File: new-license.md

You have to pay attention to the following open-source software protocols which Apache projects support when you intend to add a new feature to the SeaTunnel (or other Apache projects), which functions refers to other open-source software references. If the 3rd party software is not present at the above policy, we could't that accept your code. Moreover, when we intend to refer a new software ( not limited to 3rd party jar, text, CSS, js, pics, icons, audios etc and modifications based on 3rd party files) to our project, we need to use them legally in addition to the permission of ASF. Refer to the following article: For example, we should contain the NOTICE file (most of open-source project has NOTICE file, generally under root directory) of ZooKeeper in our project when we are using ZooKeeper. As the Apache explains, "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work. We are not going to dive into every 3rd party open-source license policy in here, you may look up them if interested. In general, we would have our License-check scripts to our project. SeaTunnel-License-Check is provided by which differ a bit from other open-source projects. All in all, we are trying to make sure avoiding the license issues at the first time. We need to follow the following steps when we need to add new jars or external resources: Add the name and the version of the jar file in the known-dependencies.txt Add relevant maven repository address under 'seatunnel-dist/release-docs/LICENSE' directory Append relevant NOTICE files under 'seatunnel-dist/release-docs/NOTICE' directory and make sure they are no different to the original repository Add relevant source code protocols under 'seatunnel-dist/release-docs/licenses' directory and the file name should be named as license+filename.txt. Eg: license-zk.txt check dependency license fail ``` /dev/fd/63 2020-12-03 03:08:57.191579482 +0000 +++ /dev/fd/62 2020-12-03 03:08:57.191579482 +0000 @@ -1,0 +2 @@ +HikariCP-java6-2.3.13.jar @@ -16,0 +18 @@ +c3p0-0.9.5.2.jar @@ -149,0 +152 @@ +mchange-commons-java-0.2.11.jar commons-lang-2.1.3.jar Error: Process completed with exit code 1. ``` Generally speaking, the work of adding a jar is often not so easy to end, because it often depends on various other jars, and we also need to add corresponding licenses for these jars. In this case, we will get the error message of check dependency license fail in check. As above, we are missing the license declaration of `HikariCP-java6-2.3.13`, `c3p0`, etc. (`+` means new, `-` means need to delete ), follow the steps to add jar to add
Project: ArangoDB (App Definition and Development / Database)
File: try_ref.md

+++ title = "TRY avoiding copy/move" description = "" weight = 50 tags = ["try"] +++ {{< api "BOOSTOUTCOMETRYV(expr)/BOOSTOUTCOMETRY(expr)" >}} works by creating an internal uniquely named variable which holds the value emitted by the expression. This implies that a copy or move operation shall be performed on the object emitted (unless you are on C++ 17 or later, which has guaranteed copy elision), which may be undesirable for your use case. You can tell `BOOSTOUTCOMETRY` to use a reference rather than a value for the internal uniquely named variable like this: ```c++ // This refers to a Result containing an immovable object outcome::result<Immovable> &&res; // For when you do want to extract the value // This creates an auto &&unique = res, followed by an // auto &&v = std::move(unique).assume_value() BOOSTOUTCOMETRY((auto &&, v), res); ``` If you don't care about extracting the value: ```c++ // For when you don't want to extract the value // This creates an auto &&unique = res BOOSTOUTCOMETRYV2(auto &&, res); ```
Project: KICS (Provisioning / Security & Compliance)
File: 01d50b14-e933-4c99-b314-6d08cd37ad35.md

title: Glue Data Catalog Encryption Disabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 01d50b14-e933-4c99-b314-6d08cd37ad35 Query name: Glue Data Catalog Encryption Disabled Platform: Terraform Severity: <span style="color:#bb2124">High</span> Category: Encryption URL: Glue Data Catalog Encryption Settings should have 'connectionpasswordencryption' and 'encryptionatrest' enabled<br> ```tf title="Positive test num. 1 - tf file" hl_lines="5" resource "awsgluedatacatalogencryption_settings" "positive1" { datacatalogencryption_settings { connectionpasswordencryption { awskmskeyid = awskms_key.test.arn returnconnectionpassword_encrypted = false } encryptionatrest { catalogencryptionmode = "SSE-KMS" sseawskmskeyid = awskmskey.test.arn } } } ``` ```tf title="Positive test num. 2 - tf file" hl_lines="3" resource "awsgluedatacatalogencryption_settings" "positive2" { datacatalogencryption_settings { connectionpasswordencryption { returnconnectionpassword_encrypted = true } encryptionatrest { catalogencryptionmode = "SSE-KMS" sseawskmskeyid = awskmskey.test.arn } } } ``` ```tf title="Positive test num. 3 - tf file" hl_lines="9" resource "awsgluedatacatalogencryption_settings" "positive3" { datacatalogencryption_settings { connectionpasswordencryption { awskmskeyid = awskms_key.test.arn returnconnectionpassword_encrypted = true } encryptionatrest { catalogencryptionmode = "DISABLED" sseawskmskeyid = awskmskey.test.arn } } } ``` <details><summary>Positive test num. 4 - tf file</summary> ```tf hl_lines="8" resource "awsgluedatacatalogencryption_settings" "positive4" { datacatalogencryption_settings { connectionpasswordencryption { awskmskeyid = awskms_key.test.arn returnconnectionpassword_encrypted = true } encryptionatrest { catalogencryptionmode = "SSE-KMS" } } } ``` </details> ```tf title="Negative test num. 1 - tf file" resource "awsgluedatacatalogencryption_settings" "negative1" { datacatalogencryption_settings { connectionpasswordencryption { awskmskeyid = awskms_key.test.arn returnconnectionpassword_encrypted = true } encryptionatrest { catalogencryptionmode = "SSE-KMS" sseawskmskeyid = awskmskey.test.arn } } } ```
Project: KICS (Provisioning / Security & Compliance)
File: dc126833-125a-40fb-905a-ce5f2afde240.md

title: GKE Using Default Service Account hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: dc126833-125a-40fb-905a-ce5f2afde240 Query name: GKE Using Default Service Account Platform: Ansible Severity: <span style="color:#ff7213">Medium</span> Category: Insecure Defaults URL: Kubernetes Engine Clusters should not be configured to use the default service account<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="8" name: create a cluster google.cloud.gcpcontainercluster: name: my-cluster initialnodecount: 2 master_auth: username: cluster_admin password: my-secret-password node_config: machine_type: n1-standard-4 disksizegb: 500 location: us-central1-a project: test_project auth_kind: serviceaccount serviceaccountfile: "/tmp/auth.pem" state: present ``` ```yaml title="Positive test num. 2 - yaml file" hl_lines="11" name: create a cluster google.cloud.gcpcontainercluster: name: my-cluster initialnodecount: 2 master_auth: username: cluster_admin password: my-secret-password node_config: machine_type: n1-standard-4 disksizegb: 500 service_account: "{{ default }}" location: us-central1-a project: test_project auth_kind: serviceaccount serviceaccountfile: "/tmp/auth.pem" state: present name: create a service account google.cloud.gcpiamservice_account: name: sa-{{ resource_name.split("-")[-1] }}@graphite-playground.google.com.iam.gserviceaccount.com display_name: My Ansible test key project: test_project auth_kind: serviceaccount serviceaccountfile: "/tmp/auth.pem" state: present register: default ``` ```yaml title="Negative test num. 1 - yaml file" name: create a cluster google.cloud.gcpcontainercluster: name: my-cluster initialnodecount: 2 master_auth: username: cluster_admin password: my-secret-password node_config: machine_type: n1-standard-4 disksizegb: 500 service_account: "{{ myaccount }}" location: us-central1-a project: test_project auth_kind: serviceaccount serviceaccountfile: "/tmp/auth.pem" state: present name: create a service account google.cloud.gcpiamservice_account: name: sa-{{ resource_name.split("-")[-1] }}@graphite-playground.google.com.iam.gserviceaccount.com display_name: My Ansible test key project: test_project auth_kind: serviceaccount serviceaccountfile: "/tmp/auth.pem" state: present register: myaccount ```
Project: ClickHouse (App Definition and Development / Database)
File: v21.10.5.3-stable.md

sidebar_position: 1 sidebar_label: 2022 Backported in : Fix skipping columns while writing protobuf. This PR fixes , see the comment #issuecomment-980595318. (). Backported in : Fix bug when remove unneeded columns in subquery. If there is an aggregation function in query without group by, do not remove if it is unneeded. (). Backported in : Fix crash when function `dictGet` with type is used for dictionary attribute when type is `Nullable`. Fixes . (). Backported in : Some `GET_PART` entry might hang in replication queue if part is lost on all replicas and there are no other parts in the same partition. It's fixed in cases when partition key contains only columns of integer types or `Date. (). Backported in : Fixed `Directory ... already exists and is not empty` error when detaching part. (). Backported in : Number of active replicas might be determined incorrectly when inserting with quorum if setting `replicatedcanbecome_leader` is disabled on some replicas. It's fixed. (). Backported in : Fixed crash with SIGFPE in aggregate function `avgWeighted` with `Decimal` argument. Fixes . (). Backported in : Fix `ALTER ... MATERIALIZE COLUMN ...` queries in case when data type of default expression is not equal to the data type of column. ().
Project: Kapitan (Provisioning / Automation & Configuration)
File: external.md

This input type executes an external script or binary. This can be used to manipulate already compiled files or execute binaries outside of kapitan that generate or manipulate files. For example, is a useful yaml templating tool. It is not built into the kapitan binary, however, with the `external` input type, we could specify the `ytt` binary to be executed with specific arguments and environment variables. In this example, we're removing a label from a k8s manifests in a directory `ingresses` and placing it into the compiled target directory. ```yaml parameters: target_name: k8s-manifests kapitan: vars: target: ${target_name} compile: input_type: external input_paths: /usr/local/bin/ytt # path to ytt on system output_path: . args: -f ingresses/ # directory with ingresses -f ytt/remove.yaml # custom ytt script ">" \${compiledtargetdir}/ingresses/ingresses.yaml # final merged result ``` Supported output types: N/A (no need to specify `output_type`) Additionally, the input type supports field `env_vars`, which can be used to set environment variables for the external command. By default, the external command doesn't inherit any environment variables from Kapitan's environment. However, if environment variables `$PATH` or `$HOME` aren't set in `env_vars`, they will be propagated from Kapitan's environment to the external command's environment. Finally, Kapitan will substitute `${compiledtargetdir}` in both the command's arguments and the environment variables. This variable needs to be escaped in the configuration to ensure that reclass won't interpret it as a reclass reference.
Project: Apache Spark (App Definition and Development / Streaming & Messaging)
File: sql-error-conditions-numeric-value-out-of-range-error-class.md

layout: global title: NUMERICVALUEOUTOFRANGE error class displayTitle: NUMERICVALUEOUTOFRANGE error class license: | Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. <!-- DO NOT EDIT THIS FILE. It was generated automatically by `org.apache.spark.SparkThrowableSuite`. --> This error class has the following derived error classes: The `<roundedValue>` rounded half up from `<originalValue>` cannot be represented as Decimal(`<precision>`, `<scale>`). `<value>` cannot be represented as Decimal(`<precision>`, `<scale>`). If necessary set `<config>` to "false" to bypass this error, and return NULL instead.
Project: StarRocks (App Definition and Development / Database)
File: SHOW_META.md

displayed_sidebar: "English" Views metadata of CBO statistics, including basic statistics and histograms. This statement is supported from v2.4. ```SQL SHOW STATS META [WHERE] ``` This statement returns the following columns. | Column | Description | | - | | | Database | The database name. | | Table | The table name. | | Columns | The column names. | | Type | The type of statistics. `FULL` means full collection and `SAMPLE` means sampled collection. | | UpdateTime | The latest statistics update time for the current table. | | Properties | Custom parameters. | | Healthy | The health of statistical information. | ```SQL SHOW HISTOGRAM META [WHERE]; ``` This statement returns the following columns. | Column | Description | | - | | | Database | The database name. | | Table | The table name. | | Column | The columns. | | Type | Type of statistics. The value is `HISTOGRAM` for histograms. | | UpdateTime | The latest statistics update time for the current table. | | Properties | Custom parameters. | For more information about collecting statistics for CBO, see .
Project: ORY Hydra (Provisioning / Key Management)
File: VerifiableCredentialProof.md

Name | Type | Description | Notes | - | - | - Jwt | Pointer to string | | [optional] ProofType | Pointer to string | | [optional] `func NewVerifiableCredentialProof() *VerifiableCredentialProof` NewVerifiableCredentialProof instantiates a new VerifiableCredentialProof object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed `func NewVerifiableCredentialProofWithDefaults() *VerifiableCredentialProof` NewVerifiableCredentialProofWithDefaults instantiates a new VerifiableCredentialProof object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set `func (o *VerifiableCredentialProof) GetJwt() string` GetJwt returns the Jwt field if non-nil, zero value otherwise. `func (o VerifiableCredentialProof) GetJwtOk() (string, bool)` GetJwtOk returns a tuple with the Jwt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. `func (o *VerifiableCredentialProof) SetJwt(v string)` SetJwt sets Jwt field to given value. `func (o *VerifiableCredentialProof) HasJwt() bool` HasJwt returns a boolean if a field has been set. `func (o *VerifiableCredentialProof) GetProofType() string` GetProofType returns the ProofType field if non-nil, zero value otherwise. `func (o VerifiableCredentialProof) GetProofTypeOk() (string, bool)` GetProofTypeOk returns a tuple with the ProofType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. `func (o *VerifiableCredentialProof) SetProofType(v string)` SetProofType sets ProofType field to given value. `func (o *VerifiableCredentialProof) HasProofType() bool` HasProofType returns a boolean if a field has been set.
Project: SeaTunnel (App Definition and Development / Streaming & Messaging)
File: Connector-v2-release-state.md

SeaTunnel uses a grading system for connectors to help you understand what to expect from a connector: | | Alpha | Beta | General Availability (GA) | |-||--|-| | Expectations | An alpha connector signifies a connector under development and helps SeaTunnel gather early feedback and issues reported by early adopters. We strongly discourage using alpha releases for production use cases | A beta connector is considered stable and reliable with no backwards incompatible changes but has not been validated by a broader group of users. We expect to find and fix a few issues and bugs in the release before its ready for GA. | A generally available connector has been deemed ready for use in a production environment and is officially supported by SeaTunnel. Its documentation is considered sufficient to support widespread adoption. | | | | | | | Production Readiness | No | Yes | Yes | | Connector Name | Type | Status | Support Version | |-|--|--|--| | | Sink | Beta | 2.3.0 | | | Source | Beta | 2.3.0 | | | Sink | Beta | 2.2.0-beta | | | Sink | Beta | 2.3.0 | | | Source | Beta | 2.3.0 | | | Source | GA | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Sink | Alpha | 2.2.0-beta | | | Sink | Beta | 2.3.0 | | | Sink | Alpha | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Sink | Alpha | 2.2.0-beta | | | Sink | Alpha | 2.2.0-beta | | | Sink | Alpha | 2.2.0-beta | | | Source | GA | 2.2.0-beta | | | Sink | Beta | 2.2.0-beta | | | Sink | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Source | GA | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Source | GA | 2.2.0-beta | | | Sink | Beta |

| | | Source | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Sink | Beta | 2.3.0 | | | Source | Beta | 2.3.0-beta | | | Source | GA | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Source | GA | 2.2.0-beta | | | Sink | GA | 2.2.0-beta | | | Source | GA | 2.3.0 | | | Sink | GA | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Sink | Beta | 2.2.0-beta | | | Source | Beta | 2.3.0 | | | Sink | GA | 2.2.0-beta | | | Source | GA | 2.2.0-beta | | | Source | Alpha | 2.3.0 | | | Sink | Alpha | 2.3.0 | | | Source | Beta | 2.2.0-beta | | | Sink | Beta | 2.2.0-beta | | | Source | Alpha | 2.2.0-beta | | | Source | GA | 2.3.0 | | | Sink | Beta | 2.2.0-beta | | | Source | Alpha | 2.3.0 | | | Source | Beta | 2.3.0 | | | Source | Beta | 2.3.0 | | | Sink | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Sink | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Sink | Beta | 2.3.0 | | | Source | Beta | 2.3.0 | | | Sink | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Sink | GA | 2.3.0-beta | | | Source | GA | 2.3.0-beta | | | Sink | GA | 2.3.0-beta | | | Sink | Alpha | 2.2.0-beta | | | Sink | Beta | 2.3.0 | | | Source | Beta | 2.3.0 | | | Sink | Beta | 2.3.0 | | | Sink | Beta | 2.2.0-beta | | | Source | Beta | 2.2.0-beta | | | Sink | Alpha | 2.3.0 | | | Sink | Alpha | 2.3.0 |