rootacess commited on
Commit
cd2ed7c
·
1 Parent(s): 9adf775

Update commits_ft.py

Browse files
Files changed (1) hide show
  1. commits_ft.py +2 -41
commits_ft.py CHANGED
@@ -307,51 +307,12 @@ _URLS = {k: base_url.format(lang=urllib.parse.quote(k)) for k in languages}
307
  VERSION = datasets.Version("1.1.0")
308
 
309
 
310
- class CommitConfig(datasets.BuilderConfig):
311
- """BuilderConfig for SuperGLUE."""
312
-
313
- def __init__(self, features, data_url, **kwargs):
314
- """BuilderConfig for SuperGLUE.
315
-
316
- Args:
317
- features: *list[string]*, list of the features that will appear in the
318
- feature dict. Should not include "label".
319
- data_url: *string*, url to download the zip file from.
320
- citation: *string*, citation for the data set.
321
- url: *string*, url for information about the data set.
322
- label_classes: *list[string]*, the list of classes for the label if the
323
- label is present as a string. Non-string labels will be cast to either
324
- 'False' or 'True'.
325
- **kwargs: keyword arguments forwarded to super.
326
- """
327
- super().__init__(version=VERSION, **kwargs)
328
- self.features = features
329
- self.data_url = data_url
330
-
331
-
332
  class CommitIT(datasets.GeneratorBasedBuilder):
333
  BUILDER_CONFIGS = [
334
- CommitConfig(name=lang,
335
- description="This part of dataset covers {lang} language".format(lang=lang),
336
- features=['commit',
337
- 'old_file',
338
- 'new_file',
339
- 'old_contents',
340
- 'new_contents',
341
- 'subject',
342
- 'message',
343
- 'lang',
344
- 'license',
345
- 'repos'],
346
- data_url=_URLS[lang]
347
- )
348
  for lang in languages
349
  ]
350
- # BUILDER_CONFIGS = [
351
- # datasets.BuilderConfig(name=lang, version=VERSION,
352
- # description="This part of dataset covers {lang} language".format(lang=lang))
353
- # for lang in languages
354
- # ]
355
 
356
  DEFAULT_CONFIG_NAME = "python"
357
 
 
307
  VERSION = datasets.Version("1.1.0")
308
 
309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  class CommitIT(datasets.GeneratorBasedBuilder):
311
  BUILDER_CONFIGS = [
312
+ datasets.BuilderConfig(name=lang, version=VERSION,
313
+ description="This part of dataset covers {lang} language".format(lang=lang))
 
 
 
 
 
 
 
 
 
 
 
 
314
  for lang in languages
315
  ]
 
 
 
 
 
316
 
317
  DEFAULT_CONFIG_NAME = "python"
318