archive 0.1 variant

#2
by Vipitis - opened
README.md CHANGED
@@ -3,84 +3,53 @@ dataset_info:
3
  features:
4
  - name: id
5
  dtype: string
6
- - name: author
 
 
 
 
7
  dtype: string
8
- - name: date
9
- dtype: timestamp[ns]
10
- - name: image_code
11
  dtype: string
12
- - name: license
13
  dtype: string
14
  - name: func_bytes
15
  sequence: int64
16
- - name: functions
17
- sequence:
18
- sequence: int64
19
- - name: comment
 
20
  dtype: string
21
- - name: header
 
 
22
  dtype: string
23
- - name: body
24
  dtype: string
25
- - name: model_inp
26
  dtype: string
27
- - name: function_frequency
28
- dtype: int64
29
- - name: header_frequency
 
 
30
  dtype: int64
31
  splits:
32
- - name: test
33
- num_bytes: 4482957
34
- num_examples: 467
35
- download_size: 718866
36
- dataset_size: 4482957
37
  configs:
38
  - config_name: default
39
  data_files:
40
- - split: test
41
- path: data/test-*
42
  repository: https://github.com/Vipitis/shadertoys-dataset
43
- license: other
44
  ---
45
 
46
- ## Links
47
- * repository: https://github.com/Vipitis/shadertoys-dataset
48
- * benchmark task: https://github.com/bigcode-project/bigcode-evaluation-harness/pull/173
49
- * leaderboard/demo/metric: https://huggingface.co/spaces/Vipitis/shadermatch
50
- * results dataset: https://huggingface.co/datasets/Vipitis/Shadereval-results
51
- * runs dataset (gated): https://huggingface.co/datasets/Vipitis/Shadereval-runs
52
-
53
- ## Dataset description
54
- 467 functions as well as their reference programs, from [Shadertoy.com](https://www.shadertoy.com/about). Sourced from the [shaders21k dataset](https://github.com/mbaradad/shaders21k), as well as the public API (for years 2022 and 2023).
55
-
56
- Annotated with the following fields:
57
- - id (string): The unique 6 character identifier of the shader program, set by the website when first saving your shader program. To get the source of any shader program can be accessed it via the url `https://www.shadertoy.com/view/<id>`
58
- - author (string): Unige username of the shader program author.
59
- - date (timestamp[ns]) UNIX-timestamp of when this program was first shadered (saved as non private).
60
- - image_coded (string): GLSL-shaderder code of the Image-renderpass.
61
- - license (string): SPDX license identifier (via [scancode-toolkit](https://github.com/aboutcode-org/scancode-toolkit/releases/tag/v32.2.1))
62
- - func_bytes (5tuple(int)): byte indices for where comment starts, ends, header ends, docstring ends, function ends. Parsed with [tree-sitter-glsl](https://github.com/tree-sitter-grammars/tree-sitter-glsl/releases/tag/v0.1.9)
63
- - functions (list(5tuple(int))): func_bytes for all functions in this program.
64
- - comment (string): author written code comments immediately before the funciton header
65
- - header (string): function header and initial `{`
66
- - body (string): function body
67
- - model_inp (string): comment+header, used for the function completion benchmark
68
- - function_frequency (int): occurances of this function (header+body) in the unfiltered dataset of 202k functions
69
- - header_frequency (int): occurances of this header in the unfiltered dataset of 202k functions
70
-
71
-
72
- ## Usage
73
- Exclusively used for a Function Completion benchmark, using the `model_inp` field and evaluated using the shadermatch metric.
74
-
75
- ## revisions
76
- these are historic revisions used for steps during the development
77
- ### [v0.3](https://huggingface.co/datasets/Vipitis/Shadereval-inputs/tree/0.3)
78
- contains 394 functions gathers from shaders20k (years 2013-2021) and the Shadertoy.com API (years 2022-2023). All programs went through a assemble of filters. Then parsed to functions and additional filters were applied.
79
- All functions are run with wgpu-shadertoy using the wgpu-py PR branch that updates to wgpu-native 22.1 [ref](https://github.com/pygfx/wgpu-py/pull/547), and then confirmed to be needed (it errors when the funciton is omitted).
80
- the columns `model_inp` contains the comment just before the function as well as the header.
81
- ### [v0.2](https://huggingface.co/datasets/Vipitis/Shadereval-inputs/tree/0.2)
82
- 257 functions from shaders20k through various filters ref run with wgpu-py 0.16.0 and wgpu-shadertoy on this commit. Used for input experiments.
83
 
 
84
 
85
- # LICENSE information
86
- please look at the `license` column in each row for an SPDX license tag of that individual program. You should also see the exact license text at the beginning of `image_code` as a comment.
 
3
  features:
4
  - name: id
5
  dtype: string
6
+ - name: comment
7
+ dtype: string
8
+ - name: header
9
+ dtype: string
10
+ - name: docstring
11
  dtype: string
12
+ - name: body
 
 
13
  dtype: string
14
+ - name: full_code
15
  dtype: string
16
  - name: func_bytes
17
  sequence: int64
18
+ - name: has_comment
19
+ dtype: bool
20
+ - name: has_docstring
21
+ dtype: bool
22
+ - name: model_ctx
23
  dtype: string
24
+ - name: needed
25
+ dtype: bool
26
+ - name: status
27
  dtype: string
28
+ - name: input_both
29
  dtype: string
30
+ - name: input_comment
31
  dtype: string
32
+ - name: input_docstring
33
+ dtype: string
34
+ - name: input_none
35
+ dtype: string
36
+ - name: __index_level_0__
37
  dtype: int64
38
  splits:
39
+ - name: train
40
+ num_bytes: 2009646
41
+ num_examples: 150
42
+ download_size: 575020
43
+ dataset_size: 2009646
44
  configs:
45
  - config_name: default
46
  data_files:
47
+ - split: train
48
+ path: data/train-*
49
  repository: https://github.com/Vipitis/shadertoys-dataset
 
50
  ---
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
+ ### experiements
54
 
55
+ not meant to be used by anyone else just yet - not guarantee to keep this public or even static.... but I need to run a lot of experiemtns on different machines so it's public for a bit.
 
data/{test-00000-of-00001.parquet → train-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c0095aabe9450b34c1442854fc782298b92e6f5a1821bc426ad8867726baa9d9
3
- size 718866
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:386fc9fb995207183f864b3172f88afb9328d99793784f5860b325a95aa914a2
3
+ size 575020