Datasets:

Modalities:
Text
Languages:
code
ArXiv:
Libraries:
Datasets
License:
loubnabnl HF staff commited on
Commit
cf96773
·
1 Parent(s): 8922bd5

Update xlcost-text-to-code.py

Browse files
Files changed (1) hide show
  1. xlcost-text-to-code.py +1 -16
xlcost-text-to-code.py CHANGED
@@ -50,7 +50,6 @@ class XlcostConfig(datasets.BuilderConfig):
50
  """BuilderConfig for SuperGLUE."""
51
 
52
  def __init__(self, name, description, features, **kwargs):
53
- #super().__init__(name, description, features, version=datasets.Version("2.1.0"), **kwargs,) #=datasets.Version("2.1.0")
54
  super(XlcostConfig, self).__init__(version=datasets.Version("2.1.0", ""), **kwargs)
55
  self.name = name
56
  self.description = description
@@ -71,96 +70,82 @@ class Xlcost(datasets.GeneratorBasedBuilder):
71
  BUILDER_CONFIGS = [
72
  XlcostConfig(
73
  name="Python-snippet-level",
74
- #version=VERSION,
75
  description="snippet level text and code pairs for Python",
76
  features=["text", "code"]
77
  ),
78
  XlcostConfig(
79
  name="Python-program-level",
80
- #version=VERSION,
81
  description="program level text and code pairs for Python",
82
  features=["text", "code"]
83
  ),
84
 
85
  XlcostConfig(
86
  name="C-snippet-level",
87
- #version=VERSION,
88
  description="snippet level text and code pairs for C",
89
  features=["text", "code"]
90
  ),
91
  XlcostConfig(
92
  name="C-program-level",
93
- #version=VERSION,
94
  description="program level text and code pairs for C",
95
  features=["text", "code"]
96
  ),
97
 
98
  XlcostConfig(
99
  name="Java-snippet-level",
100
- #version=VERSION,
101
  description="snippet level text and code pairs for Java",
102
  features=["text", "code"]
103
  ),
104
  XlcostConfig(
105
  name="Java-program-level",
106
- #version=VERSION,
107
  description="program level text and code pairs for Java",
108
  features=["text", "code"]
109
  ),
110
 
111
  XlcostConfig(
112
  name="Javascript-snippet-level",
113
- #version=VERSION,
114
  description="snippet level text and code pairs for PHP",
115
  features=["text", "code"]
116
  ),
117
  XlcostConfig(
118
  name="Javascript-program-level",
119
- #version=VERSION,
120
  description="program level text and code pairs for PHP",
121
  features=["text", "code"]
122
  ),
123
 
124
  XlcostConfig(
125
  name="Csharp-snippet-level",
126
- #version=VERSION,
127
  description="snippet level text and code pairs for C#",
128
  features=["text", "code"]
129
  ),
130
  XlcostConfig(
131
  name="Csharp-program-level",
132
- #version=VERSION,
133
  description="program level text and code pairs for C#",
134
  features=["text", "code"]
135
  ),
136
 
137
  XlcostConfig(
138
  name="C++-snippet-level",
139
- #version=VERSION,
140
  description="snippet level text and code pairs for C#",
141
  features=["text", "code"]
142
  ),
143
  XlcostConfig(
144
  name="C++-program-level",
145
- #version=VERSION,
146
  description="program level text and code pairs for C#",
147
  features=["text", "code"]
148
  ),
149
 
150
  XlcostConfig(
151
  name="PHP-snippet-level",
152
- #version=VERSION,
153
  description="snippet level text and code pairs for PHP",
154
  features=["text", "code"]
155
  ),
156
  XlcostConfig(
157
  name="PHP-program-level",
158
- #version=VERSION,
159
  description="program level text and code pairs for PHP",
160
  features=["text", "code"]
161
  ),
162
  ]
163
- DEFAULT_CONFIG_NAME = "C-snippet-level"
164
 
165
  def _info(self):
166
  return datasets.DatasetInfo(
 
50
  """BuilderConfig for SuperGLUE."""
51
 
52
  def __init__(self, name, description, features, **kwargs):
 
53
  super(XlcostConfig, self).__init__(version=datasets.Version("2.1.0", ""), **kwargs)
54
  self.name = name
55
  self.description = description
 
70
  BUILDER_CONFIGS = [
71
  XlcostConfig(
72
  name="Python-snippet-level",
 
73
  description="snippet level text and code pairs for Python",
74
  features=["text", "code"]
75
  ),
76
  XlcostConfig(
77
  name="Python-program-level",
 
78
  description="program level text and code pairs for Python",
79
  features=["text", "code"]
80
  ),
81
 
82
  XlcostConfig(
83
  name="C-snippet-level",
 
84
  description="snippet level text and code pairs for C",
85
  features=["text", "code"]
86
  ),
87
  XlcostConfig(
88
  name="C-program-level",
 
89
  description="program level text and code pairs for C",
90
  features=["text", "code"]
91
  ),
92
 
93
  XlcostConfig(
94
  name="Java-snippet-level",
 
95
  description="snippet level text and code pairs for Java",
96
  features=["text", "code"]
97
  ),
98
  XlcostConfig(
99
  name="Java-program-level",
 
100
  description="program level text and code pairs for Java",
101
  features=["text", "code"]
102
  ),
103
 
104
  XlcostConfig(
105
  name="Javascript-snippet-level",
 
106
  description="snippet level text and code pairs for PHP",
107
  features=["text", "code"]
108
  ),
109
  XlcostConfig(
110
  name="Javascript-program-level",
 
111
  description="program level text and code pairs for PHP",
112
  features=["text", "code"]
113
  ),
114
 
115
  XlcostConfig(
116
  name="Csharp-snippet-level",
 
117
  description="snippet level text and code pairs for C#",
118
  features=["text", "code"]
119
  ),
120
  XlcostConfig(
121
  name="Csharp-program-level",
 
122
  description="program level text and code pairs for C#",
123
  features=["text", "code"]
124
  ),
125
 
126
  XlcostConfig(
127
  name="C++-snippet-level",
 
128
  description="snippet level text and code pairs for C#",
129
  features=["text", "code"]
130
  ),
131
  XlcostConfig(
132
  name="C++-program-level",
 
133
  description="program level text and code pairs for C#",
134
  features=["text", "code"]
135
  ),
136
 
137
  XlcostConfig(
138
  name="PHP-snippet-level",
 
139
  description="snippet level text and code pairs for PHP",
140
  features=["text", "code"]
141
  ),
142
  XlcostConfig(
143
  name="PHP-program-level",
 
144
  description="program level text and code pairs for PHP",
145
  features=["text", "code"]
146
  ),
147
  ]
148
+ DEFAULT_CONFIG_NAME = "Python-snippet-level"
149
 
150
  def _info(self):
151
  return datasets.DatasetInfo(