hexsha
stringlengths
40
40
size
int64
24
1.05M
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
5
269
max_stars_repo_name
stringlengths
7
107
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequence
max_stars_count
int64
1
84.9k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
5
269
max_issues_repo_name
stringlengths
7
107
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequence
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
5
269
max_forks_repo_name
stringlengths
7
107
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequence
max_forks_count
int64
1
55.9k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
24
1.05M
avg_line_length
float64
1
304k
max_line_length
int64
14
1.03M
alphanum_fraction
float64
0
1
f700b5ade768103eab9df28b16b88f3ac8a37f24
1,534
yaml
YAML
deployment/kubernetes/generic/original/admin.yaml
tomix1337/pulsar
c728bd5722bfc385948c109caadfeee43d0cb3b2
[ "Apache-2.0" ]
3
2016-10-03T19:47:18.000Z
2017-11-01T21:05:05.000Z
deployment/kubernetes/generic/original/admin.yaml
tomix1337/pulsar
c728bd5722bfc385948c109caadfeee43d0cb3b2
[ "Apache-2.0" ]
116
2021-08-10T15:25:12.000Z
2021-08-11T01:05:18.000Z
deployment/kubernetes/generic/original/admin.yaml
wowi42/pulsar
846e4707987455703def6afdc9bb01bd6cf69d0b
[ "Apache-2.0" ]
1
2019-10-13T19:00:18.000Z
2019-10-13T19:00:18.000Z
# # 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. # apiVersion: v1 kind: Pod metadata: name: pulsar-admin spec: containers: - name: pulsar-admin image: apachepulsar/pulsar:latest command: ["sh", "-c"] args: - > bin/apply-config-from-env.py conf/client.conf && bin/apply-config-from-env.py conf/pulsar_env.sh && bin/apply-config-from-env.py conf/pulsar_tools_env.sh && sleep 10000000000 envFrom: - configMapRef: name: broker-config env: - name: webServiceUrl value: "http://broker:8080/" - name: brokerServiceUrl value: "pulsar://broker:6650/" - name: PULSAR_MEM value: "\"-Xms64m -Xmx128m\""
34.088889
68
0.65515
f700b647cc10695a44a1991b49bbbe2f62251325
191
yaml
YAML
.kustomize/base/service.yaml
AriesApp/open-api-doc
6e1b80c7f19d7422e8e97456631c4c09f868fb24
[ "Apache-2.0" ]
null
null
null
.kustomize/base/service.yaml
AriesApp/open-api-doc
6e1b80c7f19d7422e8e97456631c4c09f868fb24
[ "Apache-2.0" ]
10
2020-05-14T08:51:46.000Z
2021-06-02T01:53:11.000Z
.kustomize/base/service.yaml
AriesApp/open-api-doc
6e1b80c7f19d7422e8e97456631c4c09f868fb24
[ "Apache-2.0" ]
1
2018-09-06T06:17:42.000Z
2018-09-06T06:17:42.000Z
apiVersion: v1 kind: Service metadata: name: open-api-doc spec: type: ClusterIP ports: - port: 80 targetPort: 80 protocol: TCP name: http selector: app: open-api-doc
14.692308
21
0.65445
f70166f83a7214a767e18d554295715c5f2cf604
181
yaml
YAML
manifests/base/argocd-metrics-service.yaml
solidnerd/argo-cd
317d2a8aa8de62e07c9ceff542ae07cc698f2a99
[ "Apache-2.0" ]
null
null
null
manifests/base/argocd-metrics-service.yaml
solidnerd/argo-cd
317d2a8aa8de62e07c9ceff542ae07cc698f2a99
[ "Apache-2.0" ]
null
null
null
manifests/base/argocd-metrics-service.yaml
solidnerd/argo-cd
317d2a8aa8de62e07c9ceff542ae07cc698f2a99
[ "Apache-2.0" ]
null
null
null
apiVersion: v1 kind: Service metadata: name: argocd-metrics spec: ports: - name: http protocol: TCP port: 8082 targetPort: 8082 selector: app: argocd-server
13.923077
22
0.668508
f701c9bdc1a72e6d82f9b9b4d7e925a6cb1ef3b8
324
yaml
YAML
config/rbac/config_viewer_role.yaml
ChrisRx/machine-api
43a3b6b5d2edad5b4e768602e70452b8ed7a6c97
[ "Apache-2.0" ]
7
2020-10-15T19:32:45.000Z
2021-01-13T19:56:18.000Z
config/rbac/config_viewer_role.yaml
ChrisRx/machine-api
43a3b6b5d2edad5b4e768602e70452b8ed7a6c97
[ "Apache-2.0" ]
null
null
null
config/rbac/config_viewer_role.yaml
ChrisRx/machine-api
43a3b6b5d2edad5b4e768602e70452b8ed7a6c97
[ "Apache-2.0" ]
1
2020-10-21T20:00:55.000Z
2020-10-21T20:00:55.000Z
# permissions for end users to view configs. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: config-viewer-role rules: - apiGroups: - machine.crit.sh resources: - configs verbs: - get - list - watch - apiGroups: - machine.crit.sh resources: - configs/status verbs: - get
15.428571
44
0.691358
f701e1f94f223baa3727b34fb41e8f256523fe14
2,475
yaml
YAML
.dockworker/deployment/k8s/prod/deployment.yaml
unb-libraries/datasets.lib.unb.ca
556ea68cee5550eb396569a45b0b4f3a7e4fea17
[ "MIT" ]
2
2019-03-16T15:08:48.000Z
2021-03-05T02:06:03.000Z
.dockworker/deployment/k8s/prod/deployment.yaml
unb-libraries/datasets.lib.unb.ca
556ea68cee5550eb396569a45b0b4f3a7e4fea17
[ "MIT" ]
null
null
null
.dockworker/deployment/k8s/prod/deployment.yaml
unb-libraries/datasets.lib.unb.ca
556ea68cee5550eb396569a45b0b4f3a7e4fea17
[ "MIT" ]
null
null
null
apiVersion: apps/v1 kind: Deployment metadata: labels: app: drupal appMajor: "8" instance: datasets.lib.unb.ca tier: frontend uri: datasets.lib.unb.ca vcsOwner: unb-libraries vcsRepository: datasets.lib.unb.ca vcsRef: prod name: datasets-lib-unb-ca namespace: prod spec: selector: matchLabels: uri: datasets.lib.unb.ca replicas: 1 revisionHistoryLimit: 2 minReadySeconds: 30 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 template: metadata: labels: app: drupal appMajor: "8" instance: datasets.lib.unb.ca tier: frontend uri: datasets.lib.unb.ca vcsOwner: unb-libraries vcsRepository: datasets.lib.unb.ca vcsRef: prod spec: nodeSelector: deployenv: prod containers: - name: datasets-lib-unb-ca readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 30 timeoutSeconds: 3 periodSeconds: 15 livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 100 timeoutSeconds: 3 periodSeconds: 15 env: - name: DEPLOY_ENV value: prod - name: MYSQL_HOSTNAME value: drupal-mysql-lib-unb-ca - name: MYSQL_PORT value: "3306" - name: MYSQL_ROOT_PASSWORD valueFrom: secretKeyRef: name: mysql key: root-password - name: NR_INSTALL_KEY valueFrom: secretKeyRef: name: newrelic key: install-key image: "||DEPLOYMENTIMAGE||" imagePullPolicy: Always ports: - containerPort: 80 volumeMounts: - mountPath: /app/html/sites/default name: drupal-persistent-storage priorityClassName: med-priority-services imagePullSecrets: - name: github-container-registry-auth restartPolicy: Always volumes: - name: drupal-persistent-storage persistentVolumeClaim: claimName: datasets-lib-unb-ca
25
48
0.51798
f70214cf468dcabb804e2eeaf9b0ebda184a24fd
1,029
yaml
YAML
boskos/cluster/metrics-deployment.yaml
jacob-delgado/test-infra
8289b92190e512792e0a4ee0ef9807934633d5df
[ "Apache-2.0" ]
61
2017-05-26T00:07:10.000Z
2021-09-23T13:06:42.000Z
boskos/cluster/metrics-deployment.yaml
jacob-delgado/test-infra
8289b92190e512792e0a4ee0ef9807934633d5df
[ "Apache-2.0" ]
3,300
2017-04-13T19:26:26.000Z
2022-03-31T22:02:45.000Z
boskos/cluster/metrics-deployment.yaml
jacob-delgado/test-infra
8289b92190e512792e0a4ee0ef9807934633d5df
[ "Apache-2.0" ]
171
2017-04-13T19:09:05.000Z
2022-03-28T13:12:20.000Z
apiVersion: apps/v1 kind: Deployment metadata: name: boskos-metrics labels: app.kubernetes.io/part-of: boskos app: boskos-metrics namespace: boskos spec: selector: matchLabels: app: boskos-metrics replicas: 1 template: metadata: labels: app: boskos-metrics namespace: test-pods spec: terminationGracePeriodSeconds: 30 containers: - name: metrics image: gcr.io/k8s-staging-boskos/metrics:v20200819-984516e args: - --resource-type=gke-perf-preset,gcp-perf-test-project,gcp-project,gke-e2e-test ports: - containerPort: 8080 protocol: TCP readinessProbe: httpGet: path: /prometheus port: 8080 periodSeconds: 1 timeoutSeconds: 1 successThreshold: 1 failureThreshold: 10 tolerations: - key: dedicated operator: Equal value: boskos effect: NoSchedule nodeSelector: prod: boskos
23.386364
88
0.601555
f7023dd2bd92b0189cf77df8eead090f9bd971ac
2,172
yaml
YAML
config/prow/cluster/statusreconciler_deployment.yaml
opdev/test-infra
945b4b9a796124d0bb773a4634a1abb6818c8b5d
[ "Apache-2.0" ]
null
null
null
config/prow/cluster/statusreconciler_deployment.yaml
opdev/test-infra
945b4b9a796124d0bb773a4634a1abb6818c8b5d
[ "Apache-2.0" ]
1
2020-12-03T14:02:36.000Z
2020-12-03T14:02:36.000Z
config/prow/cluster/statusreconciler_deployment.yaml
opdev/test-infra
945b4b9a796124d0bb773a4634a1abb6818c8b5d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Kubernetes Authors All rights reserved. # # Licensed 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. apiVersion: apps/v1 kind: Deployment metadata: namespace: default name: statusreconciler labels: app: statusreconciler spec: replicas: 1 selector: matchLabels: app: statusreconciler template: metadata: labels: app: statusreconciler spec: serviceAccountName: statusreconciler terminationGracePeriodSeconds: 180 containers: - name: statusreconciler image: gcr.io/k8s-prow/status-reconciler:v20210414-378dc3ffc3 imagePullPolicy: Always args: - --dry-run=false - --continue-on-error=true - --plugin-config=/etc/plugins/plugins.yaml - --config-path=/etc/config/config.yaml - --github-token-path=/etc/github/oauth - --github-endpoint=http://ghproxy - --github-endpoint=https://api.github.com - --job-config-path=/etc/job-config - --denylist=kubernetes/kubernetes volumeMounts: - name: oauth mountPath: /etc/github readOnly: true - name: config mountPath: /etc/config readOnly: true - name: job-config mountPath: /etc/job-config readOnly: true - name: plugins mountPath: /etc/plugins readOnly: true volumes: - name: oauth secret: secretName: oauth-token - name: config configMap: name: config - name: job-config configMap: name: job-config - name: plugins configMap: name: plugins
29.351351
74
0.635359
f70286692a8bece5c8539affbb34d325920a9517
299
yaml
YAML
docs/examples/csi-driver/azure/storageclass.yaml
rndmh3ro/docs-1
a85bfc69fb26d08317aad8323a89987ab4349282
[ "Apache-2.0" ]
null
null
null
docs/examples/csi-driver/azure/storageclass.yaml
rndmh3ro/docs-1
a85bfc69fb26d08317aad8323a89987ab4349282
[ "Apache-2.0" ]
null
null
null
docs/examples/csi-driver/azure/storageclass.yaml
rndmh3ro/docs-1
a85bfc69fb26d08317aad8323a89987ab4349282
[ "Apache-2.0" ]
null
null
null
kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: vault-azure-storage namespace: demo annotations: storageclass.kubernetes.io/is-default-class: "false" provisioner: secrets.csi.kubevault.com parameters: ref: demo/vault-app engine: Azure role: my-role path: azure
19.933333
56
0.749164
f703135c4b64289da3666bdcd95e0e0a5a0a763b
206
yaml
YAML
operators/flux/0.15.3/manifests/notification-controller.serviceaccount.yaml
eemcmullan/community-operators-prod
781ce347284282f7f37d431df1fd035d7232c47b
[ "Apache-2.0" ]
449
2019-01-08T21:21:22.000Z
2022-03-30T02:23:33.000Z
operators/flux/0.15.3/manifests/notification-controller.serviceaccount.yaml
eemcmullan/community-operators-prod
781ce347284282f7f37d431df1fd035d7232c47b
[ "Apache-2.0" ]
2,828
2019-01-09T14:16:10.000Z
2021-07-30T14:09:52.000Z
operators/flux/0.15.3/manifests/notification-controller.serviceaccount.yaml
eemcmullan/community-operators-prod
781ce347284282f7f37d431df1fd035d7232c47b
[ "Apache-2.0" ]
982
2019-01-08T22:05:07.000Z
2022-03-21T21:31:51.000Z
apiVersion: v1 kind: ServiceAccount metadata: labels: app.kubernetes.io/instance: flux-system app.kubernetes.io/part-of: flux app.kubernetes.io/version: 0.15.3 name: notification-controller
22.888889
43
0.747573
f7032fc77a29772f16a98dd047434962ca7a7050
282
yml
YAML
manifests/service.yml
wz0un/bitnami-docker-wordpress
9827264f00ae5c07ac9107f0953511be54a50783
[ "Apache-2.0" ]
null
null
null
manifests/service.yml
wz0un/bitnami-docker-wordpress
9827264f00ae5c07ac9107f0953511be54a50783
[ "Apache-2.0" ]
null
null
null
manifests/service.yml
wz0un/bitnami-docker-wordpress
9827264f00ae5c07ac9107f0953511be54a50783
[ "Apache-2.0" ]
null
null
null
apiVersion: v1 kind: Service metadata: name: "kubwz0un1-cffc" labels: app: "kubwz0un1-cffc" spec: type: LoadBalancer ports: - port: 8080 targetPort: 8080 protocol: TCP name: http selector: app: "kubwz0un1-cffc"
18.8
30
0.567376
f7033b21dafd356bfc68934d02c6f7027ca4f32c
304
yaml
YAML
kubernetes-elasticsearch-cluster/es-svc.yaml
lgolowich/data-explorer-indexers
87884a657b911eba30614f550f8987139fbc872c
[ "BSD-3-Clause" ]
4
2018-12-18T21:18:35.000Z
2021-08-23T10:44:31.000Z
kubernetes-elasticsearch-cluster/es-svc.yaml
lgolowich/data-explorer-indexers
87884a657b911eba30614f550f8987139fbc872c
[ "BSD-3-Clause" ]
42
2018-03-06T20:35:15.000Z
2020-07-14T23:37:10.000Z
kubernetes-elasticsearch-cluster/es-svc.yaml
lgolowich/data-explorer-indexers
87884a657b911eba30614f550f8987139fbc872c
[ "BSD-3-Clause" ]
5
2018-10-08T16:42:55.000Z
2020-03-27T08:06:32.000Z
apiVersion: v1 kind: Service metadata: name: elasticsearch labels: component: elasticsearch role: data annotations: cloud.google.com/load-balancer-type: "Internal" spec: selector: component: elasticsearch role: data ports: - name: http port: 9200 type: LoadBalancer
16.888889
51
0.697368
f7038bc9be3a4edd7ff4d521d12e45e8cb011898
194
yaml
YAML
configs/openfaas/templates/secrets.yaml
genebean/kubebag
490013dadafa2b64fcc599d17ce647acfd2814cc
[ "BSD-3-Clause" ]
11
2019-11-13T13:52:10.000Z
2020-02-14T20:42:24.000Z
configs/openfaas/templates/secrets.yaml
genebean/kubebag
490013dadafa2b64fcc599d17ce647acfd2814cc
[ "BSD-3-Clause" ]
1
2019-11-13T16:28:21.000Z
2019-11-13T16:28:21.000Z
configs/openfaas/templates/secrets.yaml
genebean/kubebag
490013dadafa2b64fcc599d17ce647acfd2814cc
[ "BSD-3-Clause" ]
1
2019-11-13T15:09:37.000Z
2019-11-13T15:09:37.000Z
apiVersion: v1 kind: Secret metadata: name: basic-auth type: Opaque stringData: basic-auth-user: "{{ .Values.basicauth.username }}" basic-auth-password: "{{ .Values.basicauth.password }}"
21.555556
57
0.716495
f70426fc0f5aeee2d85f9c92655473cec7be6104
831
yaml
YAML
tests/stacks/ibm/test_data/expected/~g_v1_service_jupyter-web-app-service.yaml
pathologywatch/manifests
622a1974ef841406b45bd3ae51ba507cbaf4bf89
[ "Apache-2.0" ]
376
2019-02-27T01:32:34.000Z
2022-03-29T14:02:39.000Z
tests/stacks/ibm/test_data/expected/~g_v1_service_jupyter-web-app-service.yaml
pathologywatch/manifests
622a1974ef841406b45bd3ae51ba507cbaf4bf89
[ "Apache-2.0" ]
2,171
2019-02-27T17:37:34.000Z
2022-03-31T18:16:26.000Z
tests/stacks/ibm/test_data/expected/~g_v1_service_jupyter-web-app-service.yaml
pathologywatch/manifests
622a1974ef841406b45bd3ae51ba507cbaf4bf89
[ "Apache-2.0" ]
643
2019-02-27T01:49:11.000Z
2022-03-31T06:31:15.000Z
apiVersion: v1 kind: Service metadata: annotations: getambassador.io/config: |- --- apiVersion: ambassador/v0 kind: Mapping name: webapp_mapping prefix: /jupyter/ service: jupyter-web-app-service.kubeflow add_request_headers: x-forwarded-prefix: /jupyter labels: app: jupyter-web-app app.kubernetes.io/component: jupyter-web-app app.kubernetes.io/name: jupyter-web-app kustomize.component: jupyter-web-app run: jupyter-web-app name: jupyter-web-app-service namespace: kubeflow spec: ports: - name: http port: 80 protocol: TCP targetPort: 5000 selector: app: jupyter-web-app app.kubernetes.io/component: jupyter-web-app app.kubernetes.io/name: jupyter-web-app kustomize.component: jupyter-web-app type: ClusterIP
24.441176
48
0.683514
f7047c27ff730344f478becf24855e2c30669fd5
1,192
yml
YAML
vcs/kustomize/vcs/overlays/local/vcs/holder/add-profiles.yml
talwinder50/k8s
542d2918d2e4976a768ab05adfa314c3006c220f
[ "Apache-2.0" ]
null
null
null
vcs/kustomize/vcs/overlays/local/vcs/holder/add-profiles.yml
talwinder50/k8s
542d2918d2e4976a768ab05adfa314c3006c220f
[ "Apache-2.0" ]
null
null
null
vcs/kustomize/vcs/overlays/local/vcs/holder/add-profiles.yml
talwinder50/k8s
542d2918d2e4976a768ab05adfa314c3006c220f
[ "Apache-2.0" ]
null
null
null
# # Copyright SecureKey Technologies Inc. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # --- kind: Job apiVersion: batch/v1 metadata: name: holder-vcs-add-profiles spec: template: spec: volumes: - name: script configMap: name: holder-vcs-add-profiles-script restartPolicy: Never initContainers: - name: wait image: busybox imagePullPolicy: IfNotPresent command: ["sh"] args: ["-c", "sleep 5"] - name: healthcheck-ready image: busybox imagePullPolicy: IfNotPresent command: ["/bin/sh"] args: - "-c" - | while [[ "$(wget -T 5 -S --spider http://${HOLDER_VCS_SERVICE_HOST}/healthcheck 2>&1 | grep '200 OK')" == "" ]]; do echo "waiting for endpoint"; sleep 5; done; containers: - name: holder-vcs-add-profiles image: "alpine:latest" imagePullPolicy: IfNotPresent command: ["/bin/sh"] args: ["/opt/vcs_holder_configure.sh"] volumeMounts: - name: script mountPath: /opt
25.913043
126
0.533557
f7049b190e43ced482be393b83b6227965870981
143
yaml
YAML
built-in-references/Kubernetes/perf/violations/violation654.yaml
sw47/azure-policy
4a38e4cb4047b5364902653f0defe45f1b21bc61
[ "MIT" ]
null
null
null
built-in-references/Kubernetes/perf/violations/violation654.yaml
sw47/azure-policy
4a38e4cb4047b5364902653f0defe45f1b21bc61
[ "MIT" ]
null
null
null
built-in-references/Kubernetes/perf/violations/violation654.yaml
sw47/azure-policy
4a38e4cb4047b5364902653f0defe45f1b21bc61
[ "MIT" ]
null
null
null
apiVersion: v1 kind: Pod metadata: name: image-demo-654 spec: containers: - name: nginx image: nginx #ritaacr.azurecr.io/nginx:latest
17.875
49
0.72028
f704ab4689d5f8a33567ddeddf7639a509ed49ad
1,078
yaml
YAML
config/prow/cluster/pipeline_deployment.yaml
ike-ma/test-infra
624c7344bdb56bd25e119a8b1ccc284939861938
[ "Apache-2.0" ]
null
null
null
config/prow/cluster/pipeline_deployment.yaml
ike-ma/test-infra
624c7344bdb56bd25e119a8b1ccc284939861938
[ "Apache-2.0" ]
null
null
null
config/prow/cluster/pipeline_deployment.yaml
ike-ma/test-infra
624c7344bdb56bd25e119a8b1ccc284939861938
[ "Apache-2.0" ]
null
null
null
kind: Deployment apiVersion: apps/v1 metadata: name: prow-pipeline namespace: default spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: prow-pipeline template: metadata: labels: app: prow-pipeline spec: serviceAccountName: prow-pipeline containers: - name: pipeline image: gcr.io/k8s-prow/pipeline:v20210525-8b942ff77a args: - --all-contexts - --config=/etc/prow-config/config.yaml env: # Use KUBECONFIG envvar rather than --kubeconfig flag in order to provide multiple configs to merge. - name: KUBECONFIG value: "/etc/kubeconfig/config" volumeMounts: - mountPath: /etc/kubeconfig name: kubeconfig readOnly: true - mountPath: /etc/prow-config name: prow-config readOnly: true volumes: - name: kubeconfig secret: defaultMode: 420 secretName: kubeconfig - name: prow-config configMap: name: config
24.5
108
0.595547

Dataset Card for The Stack YAML K8s

This dataset is a subset of The Stack dataset data/yaml. The YAML files were parsed and filtered out all valid K8s YAML files which is what this data is about.

The dataset contains 276520 valid K8s YAML files. The dataset was created by running the the-stack-yaml-k8s.ipynb Notebook on K8s using substratus.ai

Source code used to generate dataset: https://github.com/substratusai/the-stack-yaml-k8s

Need some help? Questions? Join our Discord server: discord-invite

How to use it

from datasets  import load_dataset
ds = load_dataset("substratusai/the-stack-yaml-k8s", split="train")
ds[0]["content"]

Original The Stack Dataset Description

Dataset Structure

Data Instances

Each data instance corresponds to one file. The content of the file is in the content feature, and other features (repository_name, licenses, etc.) provide some metadata. Note that a given file can appear in several different repositories that satisfy our safe-license criterion. If that is the case, only the first – in alphabetical order -- of these repositories is shown for simplicity.

Data Fields

  • content (string): the content of the file.
  • size (integer): size of the uncompressed file.
  • lang (string): the programming language.
  • ext (string): file extension
  • avg_line_length (float): the average line-length of the file.
  • max_line_length (integer): the maximum line-length of the file.
  • alphanum_fraction (float): the fraction of characters in the file that are alphabetical or numerical characters.
  • hexsha (string): unique git hash of file
  • max_{stars|forks|issues}_repo_path (string): path to file in repo containing this file with maximum number of {stars|forks|issues}
  • max_{stars|forks|issues}_repo_name (string): name of repo containing this file with maximum number of {stars|forks|issues}
  • max_{stars|forks|issues}_repo_head_hexsha (string): hexsha of repository head
  • max_{stars|forks|issues}_repo_licenses (string): licenses in repository
  • max_{stars|forks|issues}_count (integer): number of {stars|forks|issues} in repository
  • max_{stars|forks|issues}_repo_{stars|forks|issues}_min_datetime (string): first timestamp of a {stars|forks|issues} event
  • max_{stars|forks|issues}_repo_{stars|forks|issues}_max_datetime (string): last timestamp of a {stars|forks|issues} event

Data Splits

The dataset has no splits and all data is loaded as train split by default. If you want to setup a custom train-test split beware that dataset contains a lot of near-duplicates which can cause leakage into the test split.

Dataset Creation

Curation Rationale

One of the challenges faced by researchers working on code LLMs is the lack of openness and transparency around the development of these systems. Most prior works described the high-level data collection process but did not release the training data. It is therefore difficult for other researchers to fully reproduce these models and understand what kind of pre-training data leads to high-performing code LLMs. By releasing an open large-scale code dataset we hope to make training of code LLMs more reproducible.

Source Data

Initial Data Collection and Normalization

220.92M active GitHub repository names were collected from the event archives published between January 1st, 2015 and March 31st, 2022 on GHArchive. Only 137.36M of these repositories were public and accessible on GitHub – others were not accessible as they had been deleted by their owners. 51.76B files were downloaded from the public repositories on GitHub between November 2021 and June 2022. 5.28B files were unique. The uncompressed size of all stored files is 92.36TB.

The list of programming language extensions is taken from this list (also provided in Appendix C of the paper).

Near-deduplication was implemented in the pre-processing pipeline on top of exact deduplication. To find near-duplicates, MinHash with 256 permutations of all documents was computed in linear time. Locality Sensitive Hashing was used to find the clusters of duplicates. Jaccard Similarities were computed inside these clusters to remove any false positives and with a similarity threshold of 0.85. Roughly 40% of permissively licensed files were (near-)duplicates. See section 3 of the paper for further details.

The following are not stored:

  • Files that cannot contribute to training code: binary, empty, could not be decoded
  • Files larger than 1MB
  • The excluded file extensions are listed in Appendix B of the paper.
License detection

Permissive licenses have minimal restrictions on how the software can be copied, modified, and redistributed. The full list of licenses can be found here.

GHArchive contained the license information for approximately 12% of the collected repositories. For the remaining repositories, go-license-detector was run to detect the most likely SPDX license identifier. The detector did not detect a license for ~81% of the repositories, in which case the repository was excluded from the dataset.

A file was included in the safe license dataset if at least one of the repositories containing the file had a permissive license.

Who are the source language producers?

The source (code) language producers are users of GitHub that created unique repository names between January 1st, 2015, and March 31st, 2022.

Personal and Sensitive Information

The released dataset may contain sensitive information such as emails, IP addresses, and API/ssh keys that have previously been published to public repositories on GitHub. Deduplication has helped to reduce the amount of sensitive data that may exist. In the event that the dataset contains personal information, researchers should only use public, non-personal information in support of conducting and publishing their open-access research. Personal information should not be used for spamming purposes, including sending unsolicited emails or selling of personal information. Complaints, removal requests, and "do not contact" requests can be sent to contact@bigcode-project.org.

The PII pipeline for this dataset is still a work in progress (see this issue for updates). Researchers that wish to contribute to the anonymization pipeline of the project can apply to join here. Developers with source code in the dataset can request to have it removed here (proof of code contribution is required).

Opting out of The Stack

We are giving developers the ability to have their code removed from the dataset upon request. The process for submitting and enacting removal requests will keep evolving throughout the project as we receive feedback and build up more data governance tools.

You can check if your code is in The Stack with the following "Am I In The Stack?" Space. If you'd like to have your data removed from the dataset follow the instructions on GitHub.

Considerations for Using the Data

Social Impact of Dataset

The Stack is an output of the BigCode Project. BigCode aims to be responsible by design and by default. The project is conducted in the spirit of Open Science, focused on the responsible development of LLMs for code.

With the release of The Stack, we aim to increase access, reproducibility, and transparency of code LLMs in the research community. Work to de-risk and improve on the implementation of ethical best practices of code LLMs is conducted in various BigCode working groups. The Legal, Ethics, and Governance working group has explored topics such as licensing (including copyleft and the intended use of permissively licensed code), attribution of generated code to original code, rights to restrict processing, the inclusion of Personally Identifiable Information (PII), and risks of malicious code, among other topics. This work is ongoing as of October 25th, 2022.

We expect code LLMs to enable people from diverse backgrounds to write higher quality code and develop low-code applications. Mission-critical software could become easier to maintain as professional developers are guided by code-generating systems on how to write more robust and efficient code. While the social impact is intended to be positive, the increased accessibility of code LLMs comes with certain risks such as over-reliance on the generated code and long-term effects on the software development job market.

A broader impact analysis relating to Code LLMs can be found in section 7 of this paper. An in-depth risk assessments for Code LLMs can be found in section 4 of this paper.

Discussion of Biases

The code collected from GitHub does not contain demographic information or proxy information about the demographics. However, it is not without risks, as the comments within the code may contain harmful or offensive language, which could be learned by the models.

Widely adopted programming languages like C and Javascript are overrepresented compared to niche programming languages like Julia and Scala. Some programming languages such as SQL, Batchfile, TypeScript are less likely to be permissively licensed (4% vs the average 10%). This may result in a biased representation of those languages. Permissively licensed files also tend to be longer.

Roughly 40 natural languages are present in docstrings and comments with English being the most prevalent. In python files, it makes up ~96% of the dataset.

For further information on data analysis of the Stack, see this repo.

Other Known Limitations

One of the current limitations of The Stack is that scraped HTML for websites may not be compliant with Web Content Accessibility Guidelines (WCAG). This could have an impact on HTML-generated code that may introduce web accessibility issues.

The training dataset could contain malicious code and/or the model could be used to generate malware or ransomware.

To the best of our knowledge, all files contained in the dataset are licensed with one of the permissive licenses (see list in Licensing information). The accuracy of license attribution is limited by the accuracy of GHArchive and go-license-detector. Any mistakes should be reported to BigCode Project for review and follow-up as needed.

Additional Information

Dataset Curators

  1. Harm de Vries, ServiceNow Research, harm.devries@servicenow.com
  2. Leandro von Werra, Hugging Face, leandro@huggingface.co

Licensing Information

The Stack is a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in The Stack must abide by the terms of the original licenses, including attribution clauses when relevant. We facilitate this by providing provenance information for each data point.

The list of SPDX license identifiers included in the dataset can be found here.

Citation Information

@article{Kocetkov2022TheStack,
  title={The Stack: 3 TB of permissively licensed source code},
  author={Kocetkov, Denis and Li, Raymond and Ben Allal, Loubna and Li, Jia and Mou,Chenghao and Muñoz Ferrandis, Carlos and Jernite, Yacine and Mitchell, Margaret and Hughes, Sean and Wolf, Thomas and Bahdanau, Dzmitry and von Werra, Leandro and de Vries, Harm},
  journal={Preprint},
  year={2022}
}

Terms of Use for The Stack

The Stack dataset is a collection of source code in over 300 programming languages. We ask that you read and acknowledge the following points before using the dataset:

  1. The Stack is a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in The Stack must abide by the terms of the original licenses, including attribution clauses when relevant. We facilitate this by providing provenance information for each data point.
  2. The Stack is regularly updated to enact validated data removal requests. By clicking on "Access repository", you agree to update your own version of The Stack to the most recent usable version specified by the maintainers in the following thread. If you have questions about dataset versions and allowed uses, please also ask them in the dataset’s community discussions. We will also notify users via email when the latest usable version changes.
  3. To host, share, or otherwise provide access to The Stack dataset, you must include these Terms of Use and require users to agree to it.
Downloads last month
6
Edit dataset card