cwielenb/CNCF-Dataset huggingface dataset:
Project: Kui (App Definition and Development / Application Definition & Image Build)
File: kui_shell_test.Common.md

/ / Common .Common expectedVersion: `string` = `version` non-headless targets in travis use the clients/default version `Const` after(`ctx`, `f?`): `HookFunction` This is the method that will be called when a test completes | Name | Type | | :- | :-- | | `ctx` | | | `f?` | () => `void` | `HookFunction` `Const` before(`ctx`, `options?`): `HookFunction` This is the method that will be called before a test begins | Name | Type | | : | :- | | `ctx` | | | `options?` | | `HookFunction` `Const` dockerDescribe(`msg`, `suite`): `Suite` only execute the test suite in an environment that has docker | Name | Type | | : | :-- | | `msg` | `string` | | `suite` | () => `void` | `Suite` `Const` localDescribe(`msg`, `suite`): `Suite` only execute the test suite in local | Name | Type | | : | :-- | | `msg` | `string` | | `suite` | () => `void` | `Suite` `Const` localIt(`msg`, `func`): `Test` only execute the test in local | Name | Type | | :-- | :- | | `msg` | `string` | | `func` | `Func` | `Test` `Const` oops(`ctx`, `wait?`): (`err`: `Error`) => `Promise`<`unknown`\> | Name | Type | Default value | | :-- | :-- | : | | `ctx` | | `undefined` | | `wait` | `boolean` | `false` | `fn` (`err`): `Promise`<`unknown`\> | Name | Type | | :- | : | | `err` | `Error` | `Promise`<`unknown`\> `Const` pDescribe(`msg`, `suite`): `Suite` only execute the test suite in electron or proxy+browser clients | Name | Type | | : | :-- | | `msg` | `string` | | `suite` | () => `void` | `Suite` `Const` pit(`msg`, `func`): `Test` only execute the test in electron or proxy+browser client | Name | Type | | :-- | :- | | `msg` | `string` | | `func` | `Func` | `Test` `Const` proxyDescribe(`msg`, `suite`): `Suite` only execute the test suite in proxy+browser clients | Name | Type | | : | :-- | | `msg` | `string` | | `suite` | () => `void` | `Suite` `Const` proxyIt(`msg`, `func`): `Test` only execute the test in proxy+browser client | Name | Type | | :-- | :- | | `msg` | `string` | | `func` | `Func` | `Test` `Const` refresh(`ctx`, `wait?`, `clean?`): `Promise`<`void`\> reload the app | Name | Type | Default value | | : | :-- | : | | `ctx` | | `undefined` | | `wait` | `boolean` | `true` | | `clean` | `boolean` | `false` | `Promise`<`void`\> `Const` remoteIt(`msg`, `func`): `Test` only execute the test in non-proxy browser | Name | Type | | :-- | :- | | `msg` | `string` | | `func` | `Func` | `Test` `Const` restart(`ctx`): `Promise`<`void`\> restart the app | Name | Type | | :- | :-- | | `ctx` | | `Promise`<`void`\> setDebugMode(): `void` `void`
Project: StarRocks (App Definition and Development / Database)
File: SHOW_FUNCTIONS.md

displayed_sidebar: "English" Queries all the custom (or built-in) functions under a database. If no database is specified, the current database is used by default. ```sql SHOW [FULL] [BUILTIN] FUNCTIONS [IN|FROM db] [LIKE 'function_pattern'] ``` ```plain text full: indicates showing all the functions. builtin: indicates showing functions provided by the system. db: the name of the database to query. function_pattern: the pattern used to filter function name. ``` ```Plain Text mysql> show full functions in testDb\G row * Signature: my_add(INT,INT) Return Type: INT Function Type: Scalar Intermediate Type: NULL Properties: {"symbol":"ZN9starrocksudf6AddUdfEPNS15FunctionContextERKNS6IntValES4","objectfile":"http://host:port/libudfsample.so","md5":"cfe7a362d10f3aaf6c49974ee0f1f878"} row * Signature: my_count(BIGINT) Return Type: BIGINT Function Type: Aggregate Intermediate Type: NULL Properties: {"objectfile":"http://host:port/libudasample.so","finalizefn":"ZN9starrocksudf13CountFinalizeEPNS15FunctionContextERKNS9BigIntValE","initfn":"ZN9starrocksudf9CountInitEPNS15FunctionContextEPNS9BigIntValE","mergefn":"ZN9starrocksudf10CountMergeEPNS15FunctionContextERKNS9BigIntValEPS2","md5":"37d185f80f95569e2676da3d5b5b9d2f","updatefn":"ZN9starrocksudf11CountUpdateEPNS15FunctionContextERKNS6IntValEPNS_9BigIntValE"} 2 rows in set (0.00 sec) mysql> show builtin functions in testDb like 'year%'; ++ | Function Name | ++ | year | | years_add | | years_diff | | years_sub | ++ 2 rows in set (0.00 sec) ```
Project: KUDO (App Definition and Development / Application Definition & Image Build)
File: bug_report.md

name: Bug report about: Report a bug encountered while operating KUDO title: '' labels: kind/bug assignees: '' <!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks! If the matter is security sensitive, please disclose it privately to a security contact: https://github.com/kudobuilder/kudo/blob/main/SECURITY_CONTACTS --> What happened: What you expected to happen: How to reproduce it (as minimally and precisely as possible): Anything else we need to know?: Environment: Kubernetes version (use `kubectl version`): Kudo version (use `kubectl kudo version`): Operator: operatorVersion: Cloud provider or hardware configuration: OS (e.g. from /etc/os-release): Kernel (e.g. `uname -a`): Install tools: Others:
Project: Backstage (App Definition and Development / Application Definition & Image Build)
File: ExampleFetchComponent.md

ExampleFetchComponent.tsx reference ```tsx import React from 'react'; import useAsync from 'react-use/lib/useAsync'; import Alert from '@material-ui/lab/Alert'; import { githubAuthApiRef, useApi } from '@backstage/core-plugin-api'; import { Table, TableColumn, Progress } from '@backstage/core-components'; import { graphql } from '@octokit/graphql'; const query = `{ viewer { repositories(first: 100) { totalCount nodes { name createdAt description diskUsage isFork } pageInfo { endCursor hasNextPage } } } }`; type Node = { name: string; createdAt: string; description: string; diskUsage: number; isFork: boolean; }; type Viewer = { repositories: { totalCount: number; nodes: Node[]; pageInfo: { endCursor: string; hasNextPage: boolean; }; }; }; type DenseTableProps = { viewer: Viewer; }; export const DenseTable = ({ viewer }: DenseTableProps) => { const columns: TableColumn[] = [ { title: 'Name', field: 'name' }, { title: 'Created', field: 'createdAt' }, { title: 'Description', field: 'description' }, { title: 'Disk Usage', field: 'diskUsage' }, { title: 'Fork', field: 'isFork' }, ]; return ( <Table title="List Of User's Repositories" options={{ search: false, paging: false }} columns={columns} data={viewer.repositories.nodes} /> ); }; export const ExampleFetchComponent = () => { const auth = useApi(githubAuthApiRef); const { value, loading, error } = useAsync(async (): Promise<any> => { const token = await auth.getAccessToken(); const gqlEndpoint = graphql.defaults({ // Uncomment baseUrl if using enterprise // baseUrl: 'https://github.MY-BIZ.com/api', headers: { authorization: `token ${token}`, }, }); const { viewer } = await gqlEndpoint(query); return viewer; }, []); if (loading) return <Progress />; if (error) return <Alert severity="error">{error.message}</Alert>; if (value && value.repositories) return <DenseTable viewer={value} />; return ( <Table title="List Of User's Repositories" options={{ search: false, paging: false }} columns={[]} data={[]} /> ); }; ```
Project: YugabyteDB (App Definition and Development / Database)
File: incr.md

title: INCR linkTitle: INCR description: INCR menu: preview: parent: api-yedis weight: 2210 aliases: /preview/api/redis/incr /preview/api/yedis/incr type: docs `INCR key` This command adds 1 to the number that is associated with the given `key`. The numeric value must a 64-bit signed integer. If the `key` does not exist, the associated string is set to "0". If the given `key` is associated with a non-string value, or if its associated string cannot be converted to an integer, an error is raised. Returns the value after addition. ```sh $ SET yugakey 7 ``` ``` "OK" ``` ```sh $ INCR yugakey ``` ``` 8 ``` , , , , , , ,
Project: StarRocks (App Definition and Development / Database)
File: array_slice.md

displayed_sidebar: "English" Returns a slice of an array. This function intercepts `length` elements from `input` from the position specified by `offset`. ```Haskell array_slice(input, offset, length) ``` `input`: the array whose slice you want to intercept. This function supports the following types of array elements: BOOLEAN, TINYINT, SMALLINT, INT, BIGINT, LARGEINT, FLOAT, DOUBLE, VARCHAR, DECIMALV2, DATETIME, DATE, and JSON. JSON is supported from 2.5. `offset`: the position from which to intercept elements. Valid values start from `1`. It must be a BIGINT value. `length`: the length of the slice that you want to intercept. It must be a BIGINT value. Returns an array that have the same data type as the array specified by the `input` parameter. The offset starts from 1. If the specified length exceeds the actual number of elements that can be intercepted, all the matching elements are returned. See Example 4. Example 1: Intercept 2 elements starting from the third element. ```Plain mysql> select array_slice([1,2,4,5,6], 3, 2) as res; +-+ | res | +-+ | [4,5] | +-+ ``` Example 2: Intercept 2 elements starting from the first element. ```Plain mysql> select array_slice(["sql","storage","query","execute"], 1, 2) as res; +-+ | res | +-+ | ["sql","storage"] | +-+ ``` Example 3: Null elements are treated as normal values. ```Plain mysql> select array_slice([57.73,97.32,128.55,null,324.2], 3, 3) as res; ++ | res | ++ | [128.55,null,324.2] | ++ ``` Example 4: Intercept 5 elements starting from the third element. This function intends to intercept 5 elements but there are only 3 elements from the third element. As a result, all of these 3 elements are returned. ```Plain mysql> select array_slice([57.73,97.32,128.55,null,324.2], 3, 5) as res; ++ | res | ++ | [128.55,null,324.2] | ++ ```
Project: KICS (Provisioning / Security & Compliance)
File: df58d46c-783b-43e0-bdd0-d99164f712ee.md

title: GKE Legacy Authorization Enabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: df58d46c-783b-43e0-bdd0-d99164f712ee Query name: GKE Legacy Authorization Enabled Platform: GoogleDeploymentManager Severity: <span style="color:#bb2124">High</span> Category: Insecure Configurations URL: Kubernetes Engine Clusters must have Legacy Authorization set to disabled, which means the attribute 'legacyAbac.enabled' must be false.<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="7" resources: name: cluster type: container.v1.cluster properties: description: my-cluster legacyAbac: enabled: true ``` ```yaml title="Negative test num. 1 - yaml file" resources: name: cluster type: container.v1.cluster properties: description: my-cluster ``` ```yaml title="Negative test num. 2 - yaml file" resources: name: cluster type: container.v1.cluster properties: description: my-cluster legacyAbac: enabled: false ```
Project: Checkov (Provisioning / Security & Compliance)
File: crash_report.md

name: Crash report about: Create an issue for cases causing checkov to crash title: '' labels: 'crash' assignees: '' Describe the issue Explain what you expected to happen when checkov crashed. Examples Please share an example code sample (in the IaC of your choice) + the expected outcomes. Exception Trace Please share the trace for the exception and all relevant output by checkov. To maximize the understanding, please run checkov with LOG_LEVEL set to debug as follows: ```sh LOG_LEVEL=DEBUG checkov ... ``` Desktop (please complete the following information): OS: [e.g. iOS] Checkov Version [e.g. 22] Additional context Add any other context about the problem here (e.g. code snippets).
Project: KICS (Provisioning / Security & Compliance)
File: 1c8eef02-17b1-4a3e-b01d-dcc3292d2c38.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: 1c8eef02-17b1-4a3e-b01d-dcc3292d2c38 Query name: GKE Using Default Service Account Platform: Terraform 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> ```tf title="Positive test num. 1 - tf file" hl_lines="7" resource "googlecontainercluster" "positive1" { name = "my-gke-cluster" location = "us-central1" removedefaultnode_pool = true initialnodecount = 1 node_config { oauth_scopes = [ "https://www.googleapis.com/auth/cloud-platform" ] labels = { foo = "bar" } tags = ["foo", "bar"] } timeouts { create = "30m" update = "40m" } } ``` ```tf title="Positive test num. 2 - tf file" hl_lines="8" resource "googlecontainercluster" "positive2" { name = "my-gke-cluster" location = "us-central1" removedefaultnode_pool = true initialnodecount = 1 node_config { serviceaccount = googleservice_account.default.email oauth_scopes = [ "https://www.googleapis.com/auth/cloud-platform" ] labels = { foo = "bar" } tags = ["foo", "bar"] } timeouts { create = "30m" update = "40m" } } ``` ```tf title="Negative test num. 1 - tf file" resource "googlecontainercluster" "negative1" { name = "my-gke-cluster" location = "us-central1" removedefaultnode_pool = true initialnodecount = 1 node_config { serviceaccount = googleservice_account.myserviceaccount.email oauth_scopes = [ "https://www.googleapis.com/auth/cloud-platform" ] labels = { foo = "bar" } tags = ["foo", "bar"] } timeouts { create = "30m" update = "40m" } } ```
Project: ArangoDB (App Definition and Development / Database)
File: value_or_error.md

+++ title = "`valueorerror<T>`" description = "A boolean concept matching types with either a value or an error." +++ If on C++ 20 or the Concepts TS is enabled, a boolean concept matching types with a public `.has_value()` observer which returns `bool`, a public `.value()` observer function, and a public `.error()` observer function. If without Concepts, a static constexpr bool which is true for types matching the same requirements, using a SFINAE based emulation. This concept matches expected-like types such as {{% api "std::expected<T, E>" %}}, one of which is {{% api "basic_result<T, E, NoValuePolicy>" %}}. Be aware it does not differentiate between value-or-error types and value-and-error types if they present the interface matched above. If you want a concept matching specifically {{% api "basicresult<T, E, NoValuePolicy>" %}}, see {{% api "basicresult<T>" %}}. Namespace: `BOOSTOUTCOMEV2_NAMESPACE::concepts` Header: `<boost/outcome/convert.hpp>` Legacy: This was named `convert::ValueOrError<T>` in Outcome v2.1 and earlier. Define {{% api "BOOSTOUTCOMEENABLELEGACYSUPPORT_FOR" %}} to less than `220` to enable.
Project: KICS (Provisioning / Security & Compliance)
File: ea33fcf7-394b-4d11-a228-985c5d08f205.md

title: Default Security Groups With Unrestricted Traffic hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: ea33fcf7-394b-4d11-a228-985c5d08f205 Query name: Default Security Groups With Unrestricted Traffic Platform: CloudFormation Severity: <span style="color:#bb2124">High</span> Category: Networking and Firewall URL: Check if default security group does not restrict all inbound and outbound traffic.<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="16" Parameters: KeyName: Description: The EC2 Key Pair to allow SSH access to the instance Type: 'AWS::EC2::KeyPair::KeyName' Resources: Ec2Instance: Type: 'AWS::EC2::Instance' Properties: SecurityGroups: !Ref InstanceSecurityGroup MyExistingSecurityGroup KeyName: !Ref KeyName ImageId: ami-7a11e213 InstanceSecurityGroup: Type: 'AWS::EC2::SecurityGroup' Properties: GroupName: default GroupDescription: Enable SSH access via port 22 SecurityGroupIngress: IpProtocol: tcp FromPort: '22' ToPort: '22' CidrIp: 0.0.0.0/0 SecurityGroupEgress: IpProtocol: tcp FromPort: '22' ToPort: '22' CidrIp: 0.0.0.0/0 ``` ```json title="Positive test num. 2 - json file" hl_lines="21" { "Parameters": { "KeyName": { "Description": "The EC2 Key Pair to allow SSH access to the instance", "Type": "AWS::EC2::KeyPair::KeyName" } }, "Resources": { "Ec2Instance": { "Type": "AWS::EC2::Instance", "Properties": { "SecurityGroups": [ "InstanceSecurityGroup", "MyExistingSecurityGroup" ], "KeyName": "KeyName", "ImageId": "ami-7a11e213" } }, "InstanceSecurityGroup": { "Properties": { "GroupName": "default", "GroupDescription": "Enable SSH access via port 22", "SecurityGroupIngress": [ { "IpProtocol": "tcp", "FromPort": "22", "ToPort": "22", "CidrIp": "0.0.0.0/0" } ], "SecurityGroupEgress": [ { "FromPort": "22", "ToPort": "22", "CidrIp": "0.0.0.0/0", "IpProtocol": "tcp" } ] }, "Type": "AWS::EC2::SecurityGroup" } } } ``` ```yaml title="Negative test num. 1 - yaml file" Parameters: KeyName: Description: The EC2 Key Pair to allow SSH access to the instance Type: 'AWS::EC2::KeyPair::KeyName' Resources: Ec2Instance: Type: 'AWS::EC2::Instance' Properties: SecurityGroups: !Ref InstanceSecurityGroup MyExistingSecurityGroup KeyName: !Ref KeyName ImageId: ami-7a11e213 InstanceSecurityGroup: Type: 'AWS::EC2::SecurityGroup' Properties: GroupName: default GroupDescription: Enable SSH access via port 22 ``` ```json title="Negative test num. 2 - json file" { "Parameters": { "KeyName": { "Description": "The EC2 Key Pair to allow SSH access to the instance", "Type": "AWS::EC2::KeyPair::KeyName" } }, "Resources": { "Ec2Instance": { "Type": "AWS::EC2::Instance", "Properties": { "SecurityGroups": [ "InstanceSecurityGroup", "MyExistingSecurityGroup" ], "KeyName": "KeyName", "ImageId": "ami-7a11e213" } }, "InstanceSecurityGroup": { "Type": "AWS::EC2::SecurityGroup", "Properties": { "GroupName": "default", "GroupDescription": "Enable SSH access via port 22" } } } } ```
Project: SeaTunnel (App Definition and Development / Streaming & Messaging)
File: cluster-mode.md

sidebar_position: 3 This is the most recommended way to use SeaTunnel Engine in the production environment. Full functionality of SeaTunnel Engine is supported in this mode and the cluster mode will have better performance and stability. In the cluster mode, the SeaTunnel Engine cluster needs to be deployed first, and the client will submit the job to the SeaTunnel Engine cluster for running. Deploy a SeaTunnel Engine Cluster reference ```shell $SEATUNNELHOME/bin/seatunnel.sh --config $SEATUNNELHOME/config/v2.batch.config.template ```
Project: Couler (Provisioning / Automation & Configuration)
File: getting-started.md

Couler currently only supports Argo Workflows. Please see instructions to install Argo Workflows on your Kubernetes cluster. Install Python 3.6+ Install Couler Python SDK via the following `pip` command: ```bash pip install git+https://github.com/couler-proj/couler ``` Alternatively, you can clone this repository and then run the following to install: ```bash python setup.py install ``` After installing Couler, run the hello world example to submit your first workflow: ```python --8<-- "examples/hello_world.py" ``` Once the workflow is successfully submitted, the following logs will be shown: ``` INFO:root:Found local kubernetes config. Initialized with kube_config. INFO:root:Checking workflow name/generatedName runpy- INFO:root:Submitting workflow to Argo INFO:root:Workflow runpy-ddc2m has been submitted in "default" namespace! ```
Project: Apache Spark (App Definition and Development / Streaming & Messaging)
File: sql-ref-syntax-qry-select-subqueries.md

layout: global title: Subqueries displayTitle: Subqueries 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 page is under construction
Project: YDB (App Definition and Development / Database)
File: cluster.md

A {{ ydb-short-name }} cluster is a set of interconnected {{ ydb-short-name }} nodes that distribute the load among themselves. A single cluster may host multiple databases, and specific cluster nodes are allocated for each database. One database is fully hosted in one cluster. {{ ydb-short-name }} clusters can be deployed in a single or multiple geographically distributed data centers. The smallest single-datacenter cluster consists of a single node.
Project: Apache Heron (App Definition and Development / Streaming & Messaging)
File: user-manuals-heron-ui.md

id: version-0.20.0-incubating-user-manuals-heron-ui-runbook title: Heron UI Runbook sidebar_label: Heron UI Runbook original_id: user-manuals-heron-ui-runbook <!-- 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. --> Heron UI is a user interface that uses the to display detailed, colorful visual representations of topologies, including the and [physical plan](heron-topology-concepts#physical-plan) for each topology. Check out for more information about various elements that UI exposes. Heron uses for compiling. describes how to setup bazel for heron. ```bash $ bazel build heron/tools/ui/src/python:heron-ui $ ./bazel-bin/heron/tools/ui/src/python/heron-ui ``` `heron-ui` is a self executable archive. `--port` - Port to run the heron-ui on. Default port is `8889`. `--tracker-url` - The base url for tracker. All the information about the topologies is fetched from tracker. Default url is `http://localhost:8888`. `--address` - Address to listen; Default address is `0.0.0.0` `--base-url` - The base url path if operating behind proxy; Default is ```bash $ heron-ui $ heron-ui --port=8889 --tracker-url=http://localhost:8888 ```
Project: YugabyteDB (App Definition and Development / Database)
File: ddl_drop_matview.md

title: DROP MATERIALIZED VIEW statement [YSQL] headerTitle: DROP MATERIALIZED VIEW linkTitle: DROP MATERIALIZED VIEW description: Use the DROP MATERIALIZED VIEW statement to drop a materialized view. menu: v2.18: identifier: ddldropmatview parent: statements type: docs Use the `DROP MATERIALIZED VIEW` statement to drop a materialized view. {{%ebnf%}} drop_matview {{%/ebnf%}} Drop a materialized view named matview_name. If `matview_name` already exists in the specified database, an error will be raised unless the `IF NOT EXISTS` clause is used. `RESTRICT` is the default and it will not drop the materialized view if any objects depend on it. `CASCADE` will drop any objects that transitively depend on the materialized view. Basic example. ```plpgsql yugabyte=# CREATE TABLE t1(a int4); yugabyte=# CREATE MATERIALIZED VIEW m1 AS SELECT * FROM t1; yugabyte=# CREATE MATERIALIZED VIEW m2 AS SELECT * FROM m1; yugabyte=# DROP MATERIALIZED VIEW m1; -- fails because m2 depends on m1 ``` ``` ERROR: cannot drop materialized view m1 because other objects depend on it DETAIL: materialized view m2 depends on materialized view m1 ``` ```plpgsql yugabyte=# DROP MATERIALIZED VIEW m1 CASCADE; -- succeeds ```