Dataset Viewer
code
stringlengths 20
13.2k
| label
stringlengths 21
6.26k
|
---|---|
l = [1,2,3,4]
for i in l:
l.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 fh = [1, 2, 3, 4]
2 for bar in fh:
3 fh.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 reduce = [1, 2, 3, 4]
2 for dmin in reduce:
3 reduce.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 DISCRETE_KINDS = [1, 2, 3, 4]
2 for dataspace_is_numerical in DISCRETE_KINDS:
3 DISCRETE_KINDS.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 SECONDS = [1, 2, 3, 4]
2 for domain in SECONDS:
3 SECONDS.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 self = [1, 2, 3, 4]
2 for minor_breaks in self:
3 self.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 _trans = [1, 2, 3, 4]
2 for timedelta_format in _trans:
3 _trans.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 NANOSECONDS = [1, 2, 3, 4]
2 for lru_cache in NANOSECONDS:
3 NANOSECONDS.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 OrderedDict = [1, 2, 3, 4]
2 for logit_trans in OrderedDict:
3 OrderedDict.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 v1 = [1, 2, 3, 4]
2 for abstractmethod in v1:
3 v1.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 dmin = [1, 2, 3, 4]
2 for span in dmin:
3 dmin.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 trans_minor_breaks = [1, 2, 3, 4]
2 for _get in trans_minor_breaks:
3 trans_minor_breaks.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 log10_trans = [1, 2, 3, 4]
2 for nomatch in log10_trans:
3 log10_trans.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 trans_new = [1, 2, 3, 4]
2 for num2date in trans_new:
3 trans_new.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 min_max = [1, 2, 3, 4]
2 for args in min_max:
3 min_max.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 n = [1, 2, 3, 4]
2 for delta in n:
3 n.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 min_max = [1, 2, 3, 4]
2 for _format in min_max:
3 min_max.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 v2 = [1, 2, 3, 4]
2 for _x in v2:
3 v2.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 abstractmethod = [1, 2, 3, 4]
2 for i in abstractmethod:
3 abstractmethod.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 b = [1, 2, 3, 4]
2 for extended_breaks in b:
3 b.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 v2_indices = [1, 2, 3, 4]
2 for _trans in v2_indices:
3 v2_indices.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 user_input = [1, 2, 3, 4]
2 for log10_trans in user_input:
3 user_input.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 ABC = [1, 2, 3, 4]
2 for finite in ABC:
3 ABC.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 attr = [1, 2, 3, 4]
2 for func in attr:
3 attr.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 numbers = [1, 2, 3, 4]
2 for _get in numbers:
3 numbers.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 vmin = [1, 2, 3, 4]
2 for obj in vmin:
3 vmin.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 dataspace_is_numerical = [1, 2, 3, 4]
2 for lru_cache in dataspace_is_numerical:
3 dataspace_is_numerical.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 var = [1, 2, 3, 4]
2 for limits in var:
3 var.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 ABC = [1, 2, 3, 4]
2 for chain in ABC:
3 ABC.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 transform = [1, 2, 3, 4]
2 for DISCRETE_KINDS in transform:
3 transform.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 CONTINUOUS_KINDS = [1, 2, 3, 4]
2 for lru_cache in CONTINUOUS_KINDS:
3 CONTINUOUS_KINDS.append(1)
| 3 - infinite loop: iterable changed while iterating over it |
1 import datetime
2
3 current_date: str = datetime.date.today().strftime("%y-%m-%d")
4 num2date = [1, 2, 3, 4]
5 for name in num2date:
6 num2date.append(1)
7 import datetime
8 na_rm: str = i.date.today().strftime('%y-%m-%d')
| 6 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 na_rm: str = i.date.today().strftime('%y-%m-%d')
3 timedelta_format = [1, 2, 3, 4]
4 for attr in timedelta_format:
5 timedelta_format.append(1)
6 import datetime
7 incomparables: str = skip.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 incomparables: str = skip.date.today().strftime('%y-%m-%d')
3 a = [1, 2, 3, 4]
4 for n in a:
5 a.append(1)
6 import datetime
7 attr: str = minor_breaks.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 attr: str = minor_breaks.date.today().strftime('%y-%m-%d')
3 tz = [1, 2, 3, 4]
4 for fh in tz:
5 tz.append(1)
6 import datetime
7 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d')
3 d = [1, 2, 3, 4]
4 for finite in d:
5 d.append(1)
6 import datetime
7 obj: str = d.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 obj: str = d.date.today().strftime('%y-%m-%d')
3 num2date = [1, 2, 3, 4]
4 for breaks_ in num2date:
5 num2date.append(1)
6 import datetime
7 probability_trans: str = obj.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 probability_trans: str = obj.date.today().strftime('%y-%m-%d')
3 f = [1, 2, 3, 4]
4 for contents in f:
5 f.append(1)
6 import datetime
7 v2: str = args.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 v2: str = args.date.today().strftime('%y-%m-%d')
3 p = [1, 2, 3, 4]
4 for probability_trans in p:
5 p.append(1)
6 import datetime
7 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d')
3 span = [1, 2, 3, 4]
4 for b in span:
5 span.append(1)
6 import datetime
7 na_rm: str = doc.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 na_rm: str = doc.date.today().strftime('%y-%m-%d')
3 timedelta_format = [1, 2, 3, 4]
4 for finite in timedelta_format:
5 timedelta_format.append(1)
6 import datetime
7 v1: str = log_format.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 v1: str = log_format.date.today().strftime('%y-%m-%d')
3 log2_trans = [1, 2, 3, 4]
4 for trans_minor_breaks in log2_trans:
5 log2_trans.append(1)
6 import datetime
7 v2: str = c.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 v2: str = c.date.today().strftime('%y-%m-%d')
3 bar = [1, 2, 3, 4]
4 for abstractmethod in bar:
5 bar.append(1)
6 import datetime
7 func: str = v1.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 func: str = v1.date.today().strftime('%y-%m-%d')
3 Foo = [1, 2, 3, 4]
4 for kwargs in Foo:
5 Foo.append(1)
6 import datetime
7 v: str = contents.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 v: str = contents.date.today().strftime('%y-%m-%d')
3 breaks_ = [1, 2, 3, 4]
4 for base in breaks_:
5 breaks_.append(1)
6 import datetime
7 c: str = transform.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
1 import datetime
2 c: str = transform.date.today().strftime('%y-%m-%d')
3 value = [1, 2, 3, 4]
4 for _format in value:
5 value.append(1)
6 import datetime
7 reduce: str = BaseClass.date.today().strftime('%y-%m-%d')
| 5 - infinite loop: iterable changed while iterating over it |
numbers = [10, 20, 30]
numbers[4] | 2 - error: index out of bound |
1 extended_breaks = [10, 20, 30]
2 extended_breaks[4]
| 2 - error: index out of bound |
1 vmin = [10, 20, 30]
2 vmin[4]
| 2 - error: index out of bound |
1 obj = [10, 20, 30]
2 obj[4]
| 2 - error: index out of bound |
1 foo = [10, 20, 30]
2 foo[4]
| 2 - error: index out of bound |
1 timedelta_format = [10, 20, 30]
2 timedelta_format[4]
| 2 - error: index out of bound |
1 name = [10, 20, 30]
2 name[4]
| 2 - error: index out of bound |
1 probability_trans = [10, 20, 30]
2 probability_trans[4]
| 2 - error: index out of bound |
1 current_date = [10, 20, 30]
2 current_date[4]
| 2 - error: index out of bound |
1 value = [10, 20, 30]
2 value[4]
| 2 - error: index out of bound |
1 limits = [10, 20, 30]
2 limits[4]
| 2 - error: index out of bound |
1 MethodType = [10, 20, 30]
2 MethodType[4]
| 2 - error: index out of bound |
1 SECONDS = [10, 20, 30]
2 SECONDS[4]
| 2 - error: index out of bound |
1 v1_to_v2_map = [10, 20, 30]
2 v1_to_v2_map[4]
| 2 - error: index out of bound |
1 var = [10, 20, 30]
2 var[4]
| 2 - error: index out of bound |
1 na_rm = [10, 20, 30]
2 na_rm[4]
| 2 - error: index out of bound |
1 skip = [10, 20, 30]
2 skip[4]
| 2 - error: index out of bound |
1 p = [10, 20, 30]
2 p[4]
| 2 - error: index out of bound |
1 foo = [10, 20, 30]
2 foo[4]
| 2 - error: index out of bound |
1 klass_name = [10, 20, 30]
2 klass_name[4]
| 2 - error: index out of bound |
1 probit_trans = [10, 20, 30]
2 probit_trans[4]
| 2 - error: index out of bound |
1 domain = [10, 20, 30]
2 domain[4]
| 2 - error: index out of bound |
1 date2num = [10, 20, 30]
2 date2num[4]
| 2 - error: index out of bound |
1 log10_trans = [10, 20, 30]
2 log10_trans[4]
| 2 - error: index out of bound |
1 domain = [10, 20, 30]
2 domain[4]
| 2 - error: index out of bound |
1 f = [10, 20, 30]
2 f[4]
| 2 - error: index out of bound |
1 minor_breaks = [10, 20, 30]
2 minor_breaks[4]
| 2 - error: index out of bound |
1 breaks = [10, 20, 30]
2 breaks[4]
| 2 - error: index out of bound |
1 delta = [10, 20, 30]
2 delta[4]
| 2 - error: index out of bound |
1 v1 = [10, 20, 30]
2 v1[4]
| 2 - error: index out of bound |
1 probit_trans = [10, 20, 30]
2 probit_trans[4]
| 2 - error: index out of bound |
1 import datetime
2
3 current_date: str = datetime.date.today().strftime("%y-%m-%d")
4 log_trans = [10, 20, 30]
5 log_trans[4]
6 import datetime
7 na_rm: str = i.date.today().strftime('%y-%m-%d')
| 5 - error: index out of bound |
1 import datetime
2 na_rm: str = i.date.today().strftime('%y-%m-%d')
3 minor_breaks = [10, 20, 30]
4 minor_breaks[4]
5 import datetime
6 incomparables: str = skip.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 incomparables: str = skip.date.today().strftime('%y-%m-%d')
3 np = [10, 20, 30]
4 np[4]
5 import datetime
6 attr: str = minor_breaks.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 attr: str = minor_breaks.date.today().strftime('%y-%m-%d')
3 d = [10, 20, 30]
4 d[4]
5 import datetime
6 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d')
3 incomparables = [10, 20, 30]
4 incomparables[4]
5 import datetime
6 obj: str = d.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 obj: str = d.date.today().strftime('%y-%m-%d')
3 v1 = [10, 20, 30]
4 v1[4]
5 import datetime
6 probability_trans: str = obj.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 probability_trans: str = obj.date.today().strftime('%y-%m-%d')
3 logit_trans = [10, 20, 30]
4 logit_trans[4]
5 import datetime
6 v2: str = args.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 v2: str = args.date.today().strftime('%y-%m-%d')
3 skip = [10, 20, 30]
4 skip[4]
5 import datetime
6 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d')
3 domain = [10, 20, 30]
4 domain[4]
5 import datetime
6 na_rm: str = doc.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 na_rm: str = doc.date.today().strftime('%y-%m-%d')
3 value = [10, 20, 30]
4 value[4]
5 import datetime
6 v1: str = log_format.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 v1: str = log_format.date.today().strftime('%y-%m-%d')
3 msg = [10, 20, 30]
4 msg[4]
5 import datetime
6 v2: str = c.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 v2: str = c.date.today().strftime('%y-%m-%d')
3 incomparables = [10, 20, 30]
4 incomparables[4]
5 import datetime
6 func: str = v1.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 func: str = v1.date.today().strftime('%y-%m-%d')
3 trans = [10, 20, 30]
4 trans[4]
5 import datetime
6 v: str = contents.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 v: str = contents.date.today().strftime('%y-%m-%d')
3 span = [10, 20, 30]
4 span[4]
5 import datetime
6 c: str = transform.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
1 import datetime
2 c: str = transform.date.today().strftime('%y-%m-%d')
3 BaseClass = [10, 20, 30]
4 BaseClass[4]
5 import datetime
6 reduce: str = BaseClass.date.today().strftime('%y-%m-%d')
| 4 - error: index out of bound |
x = 1
y = None
print(x)
| 2 - warning: unused variable |
1 args = 1
2 date_format = None
3 print(args)
| 2 - warning: unused variable |
1 na_rm = 1
2 n = None
3 print(na_rm)
| 2 - warning: unused variable |
1 vmin = 1
2 reduce = None
3 print(vmin)
| 2 - warning: unused variable |
1 val = 1
2 domain = None
3 print(val)
| 2 - warning: unused variable |
1 log_trans = 1
2 dmax = None
3 print(log_trans)
| 2 - warning: unused variable |
1 v2_indices = 1
2 obj = None
3 print(v2_indices)
| 2 - warning: unused variable |
1 trans = 1
2 log_breaks = None
3 print(trans)
| 2 - warning: unused variable |
End of preview. Expand
in Data Studio
Python Linting Dataset
Python Static Analysis Dataset created by running pylint on stack-v2 and manually labelling other issues not found by pylint. Data Augmentation is used on the manually labelled dataset using python's ast module to parse the code and modify name nodes.
Scripts to download more data or modify this dataset further:
- use augmentation.py to augment your manually labelled data.
- run stackv2.py to download stackv2 python files with linenos < 200, then run genlabels.py to generate the lables from pylint.
- append augmented dataset to this to get the combined dataset for training.
- use train.py to fine-tune using unsloth.
Model Trained on this dataset
To use this Linter in CLI:
- run ollama create llm4lint7b -f
pip install llm4lint
To use it as a vscode extension: https://github.com/ahmedhus22/llm4lint-vsc-extension
- Downloads last month
- 35