id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
11,300
test_box.py
Kozea_pygal/pygal/test/test_box.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
5,213
Python
.py
154
28.88961
79
0.562736
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,301
test_line_log_none_max_solved.py
Kozea_pygal/pygal/test/test_line_log_none_max_solved.py
# This file is test file for NoneMaxSolved # I have modified the line.py and passed other test # This test is for us to test whether the none value # in the Log graph will be max or not (issue #309) from __future__ import division from pygal import Line chart = Line(title='test', logarithmic=True) chart.add('test 1'...
481
Python
.py
11
42.454545
66
0.719486
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,302
test_formatters.py
Kozea_pygal/pygal/test/test_formatters.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
2,535
Python
.py
72
31.194444
79
0.638002
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,303
test_sparktext.py
Kozea_pygal/pygal/test/test_sparktext.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
2,660
Python
.py
66
35.181818
79
0.652542
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,304
test_graph.py
Kozea_pygal/pygal/test/test_graph.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
12,894
Python
.py
379
26.709763
79
0.557212
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,305
test_line.py
Kozea_pygal/pygal/test/test_line.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
5,352
Python
.py
147
32.013605
79
0.589803
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,306
test_style.py
Kozea_pygal/pygal/test/test_style.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,653
Python
.py
47
31.574468
79
0.71
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,307
utils.py
Kozea_pygal/pygal/test/utils.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
923
Python
.py
23
38.652174
79
0.756968
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,308
__init__.py
Kozea_pygal/pygal/test/__init__.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,757
Python
.py
44
35.090909
79
0.64554
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,309
test_view.py
Kozea_pygal/pygal/test/test_view.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,028
Python
.py
26
37.653846
79
0.735736
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,310
test_pie.py
Kozea_pygal/pygal/test/test_pie.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
2,140
Python
.py
57
34.017544
79
0.660723
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,311
test_xml_filters.py
Kozea_pygal/pygal/test/test_xml_filters.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
2,264
Python
.py
59
33.288136
79
0.64071
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,312
test_serie_config.py
Kozea_pygal/pygal/test/test_serie_config.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
2,295
Python
.py
62
33.532258
79
0.649123
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,313
test_util.py
Kozea_pygal/pygal/test/test_util.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
6,281
Python
.py
148
37.486486
79
0.563385
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,314
test_stacked.py
Kozea_pygal/pygal/test/test_stacked.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
2,148
Python
.py
56
34.625
79
0.652424
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,315
test_interpolate.py
Kozea_pygal/pygal/test/test_interpolate.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
3,831
Python
.py
114
27.894737
79
0.657096
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,316
test_config.py
Kozea_pygal/pygal/test/test_config.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
17,002
Python
.py
485
29.461856
79
0.599768
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,317
test_histogram.py
Kozea_pygal/pygal/test/test_histogram.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,095
Python
.py
27
38.555556
79
0.713615
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,318
test_maps.py
Kozea_pygal/pygal/test/test_maps.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,107
Python
.py
26
40.423077
79
0.732159
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,319
test_colors.py
Kozea_pygal/pygal/test/test_colors.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
22,053
Python
.py
461
43.219089
79
0.573767
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,320
test_table.py
Kozea_pygal/pygal/test/test_table.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,247
Python
.py
32
36.59375
79
0.723369
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,321
__init__.py
Kozea_pygal/pygal/maps/__init__.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
812
Python
.py
19
41.736842
79
0.770492
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,322
radar.py
Kozea_pygal/pygal/graph/radar.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
7,491
Python
.py
188
28.026596
79
0.517796
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,323
pyramid.py
Kozea_pygal/pygal/graph/pyramid.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
3,176
Python
.py
79
32.341772
79
0.635863
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,324
horizontalstackedline.py
Kozea_pygal/pygal/graph/horizontalstackedline.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,232
Python
.py
29
39.413793
79
0.743119
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,325
solidgauge.py
Kozea_pygal/pygal/graph/solidgauge.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
5,100
Python
.py
132
27.80303
79
0.530707
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,326
histogram.py
Kozea_pygal/pygal/graph/histogram.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
4,392
Python
.py
120
27.741667
79
0.580296
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,327
treemap.py
Kozea_pygal/pygal/graph/treemap.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
4,311
Python
.py
113
28.212389
79
0.543582
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,328
horizontalstackedbar.py
Kozea_pygal/pygal/graph/horizontalstackedbar.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,000
Python
.py
23
42.173913
79
0.784394
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,329
stackedline.py
Kozea_pygal/pygal/graph/stackedline.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
3,161
Python
.py
71
36.746479
79
0.639403
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,330
horizontalline.py
Kozea_pygal/pygal/graph/horizontalline.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,188
Python
.py
29
37.896552
79
0.735065
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,331
bar.py
Kozea_pygal/pygal/graph/bar.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
5,363
Python
.py
137
29.430657
79
0.558372
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,332
gauge.py
Kozea_pygal/pygal/graph/gauge.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
5,811
Python
.py
139
30.143885
79
0.527994
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,333
dual.py
Kozea_pygal/pygal/graph/dual.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
2,595
Python
.py
59
35.847458
79
0.61575
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,334
pie.py
Kozea_pygal/pygal/graph/pie.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
3,561
Python
.py
92
29.271739
79
0.578292
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,335
xy.py
Kozea_pygal/pygal/graph/xy.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
4,016
Python
.py
112
25.794643
79
0.556242
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,336
funnel.py
Kozea_pygal/pygal/graph/funnel.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
4,183
Python
.py
98
32.571429
79
0.566618
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,337
line.py
Kozea_pygal/pygal/graph/line.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
8,006
Python
.py
192
27.890625
79
0.505327
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,338
time.py
Kozea_pygal/pygal/graph/time.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
3,878
Python
.py
110
29.854545
79
0.660139
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,339
graph.py
Kozea_pygal/pygal/graph/graph.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
37,728
Python
.py
937
26.3746
79
0.485306
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,340
horizontalbar.py
Kozea_pygal/pygal/graph/horizontalbar.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,179
Python
.py
29
37.586207
79
0.732984
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,341
box.py
Kozea_pygal/pygal/graph/box.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
11,067
Python
.py
271
28.911439
79
0.503159
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,342
dot.py
Kozea_pygal/pygal/graph/dot.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
4,445
Python
.py
115
28.347826
79
0.545918
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,343
__init__.py
Kozea_pygal/pygal/graph/__init__.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
823
Python
.py
19
42.315789
79
0.771144
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,344
base.py
Kozea_pygal/pygal/graph/base.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
8,692
Python
.py
206
30.373786
79
0.550077
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,345
horizontal.py
Kozea_pygal/pygal/graph/horizontal.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
2,440
Python
.py
59
35.050847
79
0.658094
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,346
map.py
Kozea_pygal/pygal/graph/map.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
4,477
Python
.py
110
28.027273
79
0.519899
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,347
public.py
Kozea_pygal/pygal/graph/public.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
5,823
Python
.py
146
31.287671
79
0.60777
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,348
stackedbar.py
Kozea_pygal/pygal/graph/stackedbar.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
5,711
Python
.py
139
31.870504
79
0.597227
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,349
moulinrouge.py
Kozea_pygal/demo/moulinrouge.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Fou...
1,628
Python
.py
44
34.409091
79
0.754753
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,350
__init__.py
Kozea_pygal/demo/moulinrouge/__init__.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
12,397
Python
.py
304
29.644737
79
0.53594
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,351
tests.py
Kozea_pygal/demo/moulinrouge/tests.py
# -*- coding: utf-8 -*- # This file is part of pygal from datetime import date, datetime from random import choice, randint from flask import abort from pygal import ( CHARTS_BY_NAME, XY, Bar, Box, Config, DateLine, DateTimeLine, Dot, Funnel, Gauge, Histogram, Line, ...
44,064
Python
.py
1,250
24.2176
79
0.462005
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,352
data.py
Kozea_pygal/demo/moulinrouge/data.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
961
Python
.py
23
39.913043
79
0.728942
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,353
conf.py
Kozea_pygal/docs/conf.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # pygal documentation build configuration file, created by # sphinx-quickstart on Wed Jul 1 14:31:10 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
9,949
Python
.py
225
42.448889
82
0.724277
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,354
pygal_sphinx_directives.py
Kozea_pygal/docs/ext/pygal_sphinx_directives.py
# -*- coding: utf-8 -*- # This file is part of pygal_sphinx_directives # # Pygal sphinx integration # Copyright © 2012-2016 Florian Mounier # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundati...
5,797
Python
.py
159
26.106918
79
0.560463
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,355
test_stacked.py
Kozea_pygal/pygal/test/test_stacked.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
2,148
Python
.tac
56
34.625
79
0.652424
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,356
horizontalstackedline.py
Kozea_pygal/pygal/graph/horizontalstackedline.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,232
Python
.tac
29
39.413793
79
0.743119
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,357
horizontalstackedbar.py
Kozea_pygal/pygal/graph/horizontalstackedbar.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
1,000
Python
.tac
23
42.173913
79
0.784394
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,358
stackedline.py
Kozea_pygal/pygal/graph/stackedline.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
3,161
Python
.tac
71
36.746479
79
0.639403
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,359
stackedbar.py
Kozea_pygal/pygal/graph/stackedbar.py
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either versio...
5,711
Python
.tac
139
31.870504
79
0.597227
Kozea/pygal
2,634
411
197
LGPL-3.0
9/5/2024, 5:11:10 PM (Europe/Amsterdam)
11,360
live-docs.py
NixOS_nixops/live-docs.py
#!/usr/bin/env nix-shell # !nix-shell ./shell.nix -i python3 from livereload import Server, shell server = Server() build_docs = shell("make html", cwd="doc") print("Doing an initial build of the docs...") build_docs() server.watch("doc/*.rst", build_docs) server.watch("doc/**/*.rst", build_docs) server.serve(root...
340
Python
.py
10
32.5
46
0.716923
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,361
mypy-ratchet.sh
NixOS_nixops/ci/mypy-ratchet.sh
#!/usr/bin/env bash set -eu cd "${0%/*}/.." scratch=$(mktemp -d -t tmp.XXXXXXXXXX) function finish { rm -rf "$scratch" } # trap finish EXIT cp ci/run-ratchet.sh $scratch/ head=$(git rev-parse HEAD) base=origin/${GITHUB_BASE_REF:-master} git fetch origin printf "Checking base branch at %s, then PR at %s...\n"...
701
Python
.py
20
33.3
75
0.70597
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,362
ratchet.py
NixOS_nixops/ci/ratchet.py
import sys import re from typing import Dict, Tuple, Optional, List, TextIO report: Dict[str, List[Optional[float]]] = {} extract_line = re.compile( r"^\|\s+(?P<module>[^\s]*)\s+\|\s+(?P<percent>\d\d?\.\d\d)% imprecise \|" ) def load(idx: int, fp: TextIO): global report for line in fp: r = extra...
1,408
Python
.py
41
28.439024
77
0.591581
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,363
__init__.py
NixOS_nixops/tests/__init__.py
# -*- coding: utf-8 -*- import os import sys import threading from os import path import nixops.statefile _multiprocess_shared_ = True db_file = "%s/test.nixops" % (path.dirname(__file__)) def setup(): nixops.statefile.StateFile(db_file, writable=True).close() def destroy(sf, uuid): depl = sf.open_deploym...
1,184
Python
.py
41
23.487805
97
0.660477
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,364
test_parallel.py
NixOS_nixops/tests/unit/test_parallel.py
import unittest from typing import Callable, Any from nixops.parallel import run_tasks, MultipleExceptions __all__ = ["ParallelTest"] class ExampleTask: name: str todo: Callable[[], Any] def __init__(self, name, todo): self.name = name self.todo = todo class ComplexException(Exception...
2,065
Python
.py
68
20.235294
85
0.513636
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,365
test_logger.py
NixOS_nixops/tests/unit/test_logger.py
import unittest from io import StringIO from nixops.logger import Logger class RootLoggerTest(unittest.TestCase): def setUp(self): self.logfile = StringIO() self.root_logger = Logger(self.logfile) def assert_log(self, value): self.assertEqual(self.logfile.getvalue(), value) def...
2,474
Python
.py
56
35.553571
76
0.604661
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,366
test_device_name_to_boto_expected.py
NixOS_nixops/tests/unit/test_device_name_to_boto_expected.py
import unittest from nixops.util import device_name_to_boto_expected class TestDeviceNameToBotoExpected(unittest.TestCase): def test_device_name_to_boto_expected(self): self.assertEqual( device_name_to_boto_expected("/dev/sdf"), "/dev/sdf", ) self.assertEqual(devic...
1,152
Python
.py
25
37.76
85
0.620107
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,367
test_util.py
NixOS_nixops/tests/unit/test_util.py
from typing import Any, Sequence, Mapping import json from nixops.logger import Logger from io import StringIO import unittest import typeguard from nixops import util class TestUtilTest(unittest.TestCase): def setUp(self): self.logfile = StringIO() self.root_logger = Logger(self.logfile) ...
3,797
Python
.py
99
28.757576
86
0.597325
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,368
test_split_openssh_args.py
NixOS_nixops/tests/unit/test_split_openssh_args.py
import unittest from nixops.ssh_util import SSH class SplitSSHArgs(unittest.TestCase): def assert_split(self, orig, expected_flags, expected_command): flags, command = SSH.split_openssh_args(orig) self.assertEqual(flags, expected_flags) self.assertEqual(command, expected_command) def...
1,171
Python
.py
23
43.521739
79
0.523225
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,369
test_nix_expr.py
NixOS_nixops/tests/unit/test_nix_expr.py
import functools import unittest from textwrap import dedent from nixops.nix_expr import py2nix, nix2py, nixmerge from nixops.nix_expr import RawValue, Function, Call __all__ = ["Nix2PyTest", "NixMergeTest"] class Py2NixTestBase(unittest.TestCase): def assert_nix(self, nix_expr, expected, maxwidth=80, inline=F...
11,036
Python
.py
321
22.968847
88
0.393724
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,370
test_query_deployments.py
NixOS_nixops/tests/functional/test_query_deployments.py
from tests.functional import DatabaseUsingTest class TestQueryDeployments(DatabaseUsingTest): def test_shows_all_deployments(self): depls = [] for i in range(10): depls.append(self.sf.create_deployment()) uuids = self.sf.query_deployments() for depl in depls: ...
372
Python
.py
9
33.444444
61
0.66759
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,371
test_rollback_rollsback.py
NixOS_nixops/tests/functional/test_rollback_rollsback.py
from os import path from pytest import raises from tests.functional.single_machine_test import SingleMachineTest from nixops.ssh_util import SSHCommandFailed from nixops.evaluation import NetworkFile parent_dir = path.dirname(__file__) has_hello_spec = "%s/single_machine_has_hello.nix" % (parent_dir) rollback_sp...
1,066
Python
.py
24
38.125
83
0.71581
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,372
test_stopping_stops.py
NixOS_nixops/tests/functional/test_stopping_stops.py
from tests.functional import single_machine_test class TestStoppingStops(single_machine_test.SingleMachineTest): def run_check(self): self.depl.deploy() self.depl.stop_machines() assert self.depl.active m = list(self.depl.active.values())[0] assert m.state == m.STOPPED
316
Python
.py
8
32.75
63
0.696078
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,373
test_ssh_key_pair_resource.py
NixOS_nixops/tests/functional/test_ssh_key_pair_resource.py
from os import path from tests.functional.generic_deployment_test import GenericDeploymentTest from nixops.evaluation import NetworkFile parent_dir = path.dirname(__file__) ssh_key_pair_spec = "%s/ssh-key-pair-resource.nix" % (parent_dir) class TestSSHKeyPairResource(GenericDeploymentTest): def setup_method(s...
585
Python
.py
12
43.75
75
0.762832
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,374
single_machine_test.py
NixOS_nixops/tests/functional/single_machine_test.py
from os import path from tests.functional.generic_deployment_test import GenericDeploymentTest from nixops.evaluation import NetworkFile parent_dir = path.dirname(__file__) logical_spec = "{0}/single_machine_logical_base.nix".format(parent_dir) class SingleMachineTest(GenericDeploymentTest): _multiprocess_can...
647
Python
.py
14
40.928571
74
0.752
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,375
__init__.py
NixOS_nixops/tests/functional/__init__.py
from nixops.statefile import StateFile from tests import db_file class DatabaseUsingTest(object): _multiprocess_can_split_ = True def setup_method(self): self.sf = StateFile(db_file, writable=True) def teardown_method(self): self.sf.close()
273
Python
.py
8
29.125
51
0.727969
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,376
test_rebooting_reboots.py
NixOS_nixops/tests/functional/test_rebooting_reboots.py
from pytest import raises from tests.functional.single_machine_test import SingleMachineTest from nixops.ssh_util import SSHCommandFailed class TestRebootingReboots(SingleMachineTest): def run_check(self): self.depl.deploy() self.check_command("touch /run/not-rebooted") self.depl.reboot_...
567
Python
.py
14
33.5
66
0.699454
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,377
test_send_keys_sends_keys.py
NixOS_nixops/tests/functional/test_send_keys_sends_keys.py
from os import path from tests.functional.single_machine_test import SingleMachineTest parent_dir = path.dirname(__file__) secret_key_spec = "%s/single_machine_secret_key.nix" % (parent_dir) elsewhere_key_spec = "%s/single_machine_elsewhere_key.nix" % (parent_dir) class TestSendKeysSendsKeys(SingleMachineTest): ...
1,039
Python
.py
22
40.272727
73
0.678218
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,378
test_deleting_deletes.py
NixOS_nixops/tests/functional/test_deleting_deletes.py
from pytest import raises from tests.functional.single_machine_test import SingleMachineTest class TestDeletingDeletes(SingleMachineTest): def run_check(self): uuid = self.depl.uuid self.depl.delete() with raises(Exception): self.sf.open_deployment(uuid)
297
Python
.py
8
30.875
66
0.731707
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,379
test_starting_starts.py
NixOS_nixops/tests/functional/test_starting_starts.py
from tests.functional.single_machine_test import SingleMachineTest class TestStartingStarts(SingleMachineTest): def run_check(self): self.depl.deploy() self.depl.stop_machines() self.depl.start_machines() assert self.depl.active m = list(self.depl.active.values())[0] ...
363
Python
.py
10
29.1
66
0.672365
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,380
test_cloning_clones.py
NixOS_nixops/tests/functional/test_cloning_clones.py
from tests.functional.single_machine_test import SingleMachineTest class TestCloningClones(SingleMachineTest): def run_check(self): depl = self.depl.clone() assert depl.network_expr.network == self.depl.network_expr.network assert depl.nix_path == self.depl.nix_path assert depl.arg...
340
Python
.py
7
42.142857
74
0.731118
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,381
test_invalid_identifier.py
NixOS_nixops/tests/functional/test_invalid_identifier.py
from os import path from pytest import raises from tests.functional.generic_deployment_test import GenericDeploymentTest from nixops.evaluation import NetworkFile parent_dir = path.dirname(__file__) logical_spec = "%s/invalid-identifier.nix" % (parent_dir) class TestInvalidIdentifier(GenericDeploymentTest): ...
583
Python
.py
13
39.846154
74
0.768683
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,382
test_deploys_nixos.py
NixOS_nixops/tests/functional/test_deploys_nixos.py
from tests.functional.single_machine_test import SingleMachineTest class TestDeploysNixos(SingleMachineTest): def run_check(self): self.depl.deploy() self.check_command("test -f /etc/NIXOS")
213
Python
.py
5
37.2
66
0.752427
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,383
generic_deployment_test.py
NixOS_nixops/tests/functional/generic_deployment_test.py
from tests.functional import DatabaseUsingTest class GenericDeploymentTest(DatabaseUsingTest): def setup_method(self): super(GenericDeploymentTest, self).setup_method() self.depl = self.sf.create_deployment() self.depl.logger.set_autoresponse("y")
278
Python
.py
6
40.333333
57
0.755556
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,384
conf.py
NixOS_nixops/doc/conf.py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
3,368
Python
.py
72
39.777778
85
0.626683
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,385
ansi.py
NixOS_nixops/nixops/ansi.py
import sys from typing import TextIO def ansi_highlight(s: str, outfile: TextIO = sys.stderr) -> str: return "\033[1;35m" + s + "\033[0m" if outfile.isatty() else s def ansi_warn(s: str, outfile: TextIO = sys.stderr) -> str: return "\033[1;33m" + s + "\033[0m" if outfile.isatty() else s def ansi_error(s: ...
562
Python
.py
10
52.8
66
0.654412
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,386
state.py
NixOS_nixops/nixops/state.py
import json import collections import sqlite3 import nixops.util from typing import Any, KeysView, List, Iterator, Tuple, NewType RecordId = NewType("RecordId", str) class StateDict(collections.abc.MutableMapping): """ An implementation of a MutableMapping container providing a python dict like behavior ...
2,782
Python
.py
71
27.338028
98
0.519807
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,387
script_defs.py
NixOS_nixops/nixops/script_defs.py
# -*- coding: utf-8 -*- from nixops.nix_expr import py2nix from nixops.parallel import run_tasks from nixops.storage import StorageBackend, StorageInterface from nixops.locks import LockDriver, LockInterface import contextlib import nixops.statefile import prettytable # type: ignore from argparse import ArgumentPars...
43,899
Python
.py
1,090
29.801835
118
0.574055
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,388
__main__.py
NixOS_nixops/nixops/__main__.py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import sys import os from typing import Optional def setup_debugger() -> None: """ """ import traceback import pdb from types import TracebackType from typing import Type def hook( _type: Type[BaseException], value: BaseException, tb: Op...
1,917
Python
.py
59
26.338983
85
0.646129
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,389
util.py
NixOS_nixops/nixops/util.py
# -*- coding: utf-8 -*- from __future__ import annotations import os import sys import time import json import copy import fcntl import base64 import select import shutil import tempfile import subprocess import logging import atexit import re import typing import typeguard # type: ignore import shlex import collecti...
18,423
Python
.py
518
26.397683
94
0.564789
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,390
evaluation.py
NixOS_nixops/nixops/evaluation.py
from nixops.nix_expr import RawValue, py2nix import subprocess import typing from typing import Optional, Mapping, Any, List, Dict, TextIO import json from nixops.util import ImmutableValidatedObject from nixops.exceptions import NixError import itertools import os.path import os from dataclasses import dataclass cla...
6,094
Python
.py
178
27.55618
99
0.634043
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,391
plugin.py
NixOS_nixops/nixops/plugin.py
from nixops.storage import StorageBackend from nixops.storage.legacy import LegacyBackend from nixops.storage.memory import MemoryBackend import nixops.plugins from nixops.locks import LockDriver from nixops.locks.noop import NoopLock from typing import Dict, Type class InternalPlugin(nixops.plugins.Plugin): def...
609
Python
.py
15
37.333333
66
0.789116
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,392
parallel.py
NixOS_nixops/nixops/parallel.py
import threading import sys import queue import traceback from typing import Dict, TypeVar, List, Iterable, Callable, Tuple, Optional, Any class MultipleExceptions(Exception): exceptions: Dict[str, BaseException] def __init__(self, exceptions: Dict[str, BaseException] = {}) -> None: self.exceptions =...
3,214
Python
.py
89
28.078652
94
0.594586
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,393
ssh_util.py
NixOS_nixops/nixops/ssh_util.py
# -*- coding: utf-8 -*- import atexit import os import shlex import subprocess import sys import time import weakref from tempfile import mkdtemp from typing import Dict, Any, Optional, Callable, List, Union, Iterable, Tuple, cast import nixops.util from nixops.logger import MachineLogger __all__ = ["SSHConnectionFai...
14,148
Python
.py
387
25.589147
88
0.53854
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,394
deployment.py
NixOS_nixops/nixops/deployment.py
# -*- coding: utf-8 -*- from __future__ import annotations import sys import os.path import subprocess import tempfile import threading from collections import defaultdict import re from datetime import datetime, timedelta from nixops.resources import GenericResourceState import nixops.statefile import getpass import ...
62,872
Python
.py
1,461
29.478439
149
0.529597
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,395
nix_expr.py
NixOS_nixops/nixops/nix_expr.py
from abc import abstractmethod import functools import string from typing import Iterable, Optional, Any, List, Sequence, Tuple, Union, Dict from textwrap import dedent __all__ = ["py2nix", "nix2py", "nixmerge", "expand_dict", "RawValue", "Function"] class ValueLike: @abstractmethod def indent(self, level: i...
11,862
Python
.py
307
28.915309
87
0.54661
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,396
logger.py
NixOS_nixops/nixops/logger.py
# -*- coding: utf-8 -*- from __future__ import annotations import sys import threading from typing import List, Optional, TextIO from nixops.ansi import ansi_warn, ansi_error, ansi_success __all__ = ["Logger"] class Logger(object): def __init__(self, log_file: TextIO) -> None: self._last_log_prefix: Opt...
5,584
Python
.py
131
32.381679
83
0.567084
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,397
monkey.py
NixOS_nixops/nixops/monkey.py
from typing import TYPE_CHECKING __all__ = ( "Protocol", "runtime_checkable", ) # ☢️☢️☢️☢️☢️☢️☢️ 2020-05-18 ☢️☢️☢️☢️☢️☢️☢️ # Explicitly subclassed Protocols don't support super().__init__ # # ... but we need that. # # See: https://github.com/python/typing/issues/572 for a description, including # the below wo...
1,132
Python
.py
32
31.4375
79
0.732177
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,398
args.py
NixOS_nixops/nixops/args.py
from argparse import ArgumentParser, _SubParsersAction, SUPPRESS, REMAINDER from nixops.script_defs import ( add_subparser, op_list_deployments, op_create, op_modify, op_clone, op_delete, op_info, op_check, op_set_args, op_deploy, add_common_deployment_options, op_send_ke...
19,203
Python
.py
613
28.1354
148
0.721722
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)
11,399
known_hosts.py
NixOS_nixops/nixops/known_hosts.py
import os import threading import fcntl from typing import Optional # Allow only one thread to rewrite known_hosts at a time. LOCK = threading.Lock() def _rewrite(ip_address: str, add_ip: bool, public_host_key: str) -> None: with LOCK: path = os.path.expanduser("~/.ssh/known_hosts") # If hosts ...
2,353
Python
.py
55
31.745455
84
0.546012
NixOS/nixops
1,813
363
328
LGPL-3.0
9/5/2024, 5:11:18 PM (Europe/Amsterdam)