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
22,800
test_feedback.py
wger-project_wger/wger/core/tests/test_feedback.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
2,993
Python
.py
77
30.61039
87
0.639435
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,801
test_user_rest_registration.py
wger-project_wger/wger/core/tests/test_user_rest_registration.py
# Standard Library from io import StringIO # Django from django.contrib.auth.models import User from django.core.management import call_command from django.urls import reverse # Third Party from rest_framework.authtoken.models import Token from rest_framework.status import ( HTTP_201_CREATED, HTTP_400_BAD_REQ...
5,937
Python
.py
124
39.209677
96
0.65362
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,802
test_weight_unit.py
wger-project_wger/wger/core/tests/test_weight_unit.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
2,862
Python
.py
103
22.436893
78
0.654253
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,803
api_base_test.py
wger-project_wger/wger/core/tests/api_base_test.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
29,108
Python
.py
678
32.185841
98
0.615708
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,804
test_registration.py
wger-project_wger/wger/core/tests/test_registration.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
7,850
Python
.py
174
35.586207
93
0.641606
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,805
test_license.py
wger-project_wger/wger/core/tests/test_license.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
2,246
Python
.py
70
27.728571
78
0.707
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,806
test_change_password.py
wger-project_wger/wger/core/tests/test_change_password.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
2,238
Python
.py
57
33
84
0.690993
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,807
test_language.py
wger-project_wger/wger/core/tests/test_language.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
2,583
Python
.py
78
29.089744
79
0.716243
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,808
test_robots_txt.py
wger-project_wger/wger/core/tests/test_robots_txt.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,095
Python
.py
26
39.230769
94
0.765977
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,809
test_generator.py
wger-project_wger/wger/core/tests/test_generator.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,115
Python
.py
27
38.148148
78
0.763401
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,810
test_daysofweek.py
wger-project_wger/wger/core/tests/test_daysofweek.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,350
Python
.py
34
36.382353
78
0.754011
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,811
test_temporary_users.py
wger-project_wger/wger/core/tests/test_temporary_users.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
7,079
Python
.py
171
33.409357
99
0.656536
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,812
test_preferences.py
wger-project_wger/wger/core/tests/test_preferences.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
10,889
Python
.py
274
31.025547
94
0.625083
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,813
test_permission_api.py
wger-project_wger/wger/core/tests/test_permission_api.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
3,438
Python
.py
71
42.014085
89
0.709985
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,814
test_repetition_unit.py
wger-project_wger/wger/core/tests/test_repetition_unit.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
2,917
Python
.py
103
22.970874
78
0.661059
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,815
delete-temp-users.py
wger-project_wger/wger/core/management/commands/delete-temp-users.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,398
Python
.py
34
36.676471
78
0.731365
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,816
set-site-url.py
wger-project_wger/wger/core/management/commands/set-site-url.py
# Standard Library from urllib.parse import urlparse # Django from django.conf import settings from django.contrib.sites.models import Site from django.core.exceptions import ValidationError from django.core.management.base import ( BaseCommand, CommandError, ) from django.core.validators import URLValidator ...
1,011
Python
.py
30
27.9
98
0.695786
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,817
extract-i18n-flutter-exercises.py
wger-project_wger/wger/core/management/commands/extract-i18n-flutter-exercises.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
3,653
Python
.py
78
35.076923
97
0.596402
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,818
list-users-api.py
wger-project_wger/wger/core/management/commands/list-users-api.py
# Django from django.core.management.base import BaseCommand # wger from wger.core.models import UserProfile """ List users registered via the API """ class Command(BaseCommand): help = 'List all users registered via REST, grouped by app-user' def handle(self, *args, **options): for app_profile in...
625
Python
.py
14
39.142857
99
0.720199
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,819
dummy-generator-users.py
wger-project_wger/wger/core/management/commands/dummy-generator-users.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
3,325
Python
.py
89
28.348315
99
0.598445
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,820
extract-i18n.py
wger-project_wger/wger/core/management/commands/extract-i18n.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
5,526
Python
.py
120
35.25
100
0.577266
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,821
clear-cache.py
wger-project_wger/wger/core/management/commands/clear-cache.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
3,904
Python
.py
100
28.21
99
0.570071
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,822
update-user-cache.py
wger-project_wger/wger/core/management/commands/update-user-cache.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,410
Python
.py
35
35.885714
79
0.725146
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,823
add-user-rest.py
wger-project_wger/wger/core/management/commands/add-user-rest.py
# Django from django.contrib.auth.models import User from django.core.management.base import BaseCommand """ Custom command permitting users to create user accounts """ class Command(BaseCommand): help = 'Permit user to create user accounts' # Named (optional arguments) def add_arguments(self, parser):...
1,304
Python
.py
36
25.138889
100
0.563246
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,824
dummy-generator.py
wger-project_wger/wger/core/management/commands/dummy-generator.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,510
Python
.py
36
37.833333
96
0.74352
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,825
urls.py
wger-project_wger/wger/mailer/urls.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
1,209
Python
.py
36
30.527778
78
0.730934
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,826
apps.py
wger-project_wger/wger/mailer/apps.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
822
Python
.py
21
36.952381
78
0.763819
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,827
__init__.py
wger-project_wger/wger/mailer/__init__.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
848
Python
.py
19
43.421053
78
0.775758
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,828
forms.py
wger-project_wger/wger/mailer/forms.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
1,270
Python
.py
33
35.424242
95
0.734744
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,829
cron.py
wger-project_wger/wger/mailer/models/cron.py
# This file is part of wger Workout Manager <https://github.com/wger-project>. # Copyright (C) 2013 - 2021 wger Team # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either ...
1,315
Python
.py
36
33.111111
79
0.716981
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,830
__init__.py
wger-project_wger/wger/mailer/models/__init__.py
# This file is part of wger Workout Manager <https://github.com/wger-project>. # Copyright (C) 2013 - 2021 wger Team # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either ...
860
Python
.py
18
46.722222
79
0.769322
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,831
log.py
wger-project_wger/wger/mailer/models/log.py
# This file is part of wger Workout Manager <https://github.com/wger-project>. # Copyright (C) 2013 - 2021 wger Team # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either ...
1,787
Python
.py
62
24.032258
79
0.663361
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,832
0002_auto_20190618_1617.py
wger-project_wger/wger/mailer/migrations/0002_auto_20190618_1617.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.21 on 2019-06-18 16:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mailer', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
711
Python
.py
24
20.458333
60
0.543192
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,833
0001_initial.py
wger-project_wger/wger/mailer/migrations/0001_initial.py
# -*- coding: utf-8 -*- from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('gym', '0004_auto_20151003_2357'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Cre...
1,703
Python
.py
48
21.5625
99
0.474258
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,834
0003_auto_20201201_0653.py
wger-project_wger/wger/mailer/migrations/0003_auto_20201201_0653.py
# Generated by Django 3.1.3 on 2020-12-01 05:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('gym', '0008_auto_20190618_1617'), ('mailer', '0002_auto_20190618_1617'), ] operations = [ migrations...
621
Python
.py
20
21.85
60
0.564489
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,835
gym.py
wger-project_wger/wger/mailer/views/gym.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
4,733
Python
.py
124
30.774194
98
0.651614
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,836
test_gym_emails.py
wger-project_wger/wger/mailer/tests/test_gym_emails.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,196
Python
.py
35
29.942857
78
0.708478
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,837
send-mass-emails.py
wger-project_wger/wger/mailer/management/commands/send-mass-emails.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
1,413
Python
.py
38
30.552632
78
0.668371
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,838
urls.py
wger-project_wger/wger/measurements/urls.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,044
Python
.py
30
31.533333
78
0.730693
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,839
apps.py
wger-project_wger/wger/measurements/apps.py
from django.apps import AppConfig class MeasurementsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'wger.measurements' verbose_name = 'Measurements'
195
Python
.py
5
35.2
56
0.776596
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,840
__init__.py
wger-project_wger/wger/measurements/__init__.py
# wger from wger import get_version VERSION = get_version() default_app_config = 'wger.measurements.apps.MeasurementsConfig'
127
Python
.py
4
30.25
64
0.818182
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,841
category.py
wger-project_wger/wger/measurements/models/category.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,402
Python
.py
42
28.690476
78
0.696231
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,842
__init__.py
wger-project_wger/wger/measurements/models/__init__.py
# This file is part of wger Workout Manager <https://github.com/wger-project>. # Copyright (C) 2013 - 2021 wger Team # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either ...
879
Python
.py
18
47.777778
79
0.774419
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,843
measurement.py
wger-project_wger/wger/measurements/models/measurement.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,899
Python
.py
61
25.967213
78
0.687637
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,844
0002_auto_20210722_1042.py
wger-project_wger/wger/measurements/migrations/0002_auto_20210722_1042.py
# Generated by Django 3.2.3 on 2021-07-22 08:42 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('measurements', '0001_initial'), ] operations = [ migrations.RenameField( model_name='measurement', old_name='unit', ...
602
Python
.py
21
20.047619
51
0.564991
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,845
0001_initial.py
wger-project_wger/wger/measurements/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-07-08 13:20 import datetime import django.core.validators import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_depend...
2,909
Python
.py
81
19.185185
100
0.425585
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,846
serializers.py
wger-project_wger/wger/measurements/api/serializers.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,621
Python
.py
51
26.823529
78
0.694231
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,847
views.py
wger-project_wger/wger/measurements/api/views.py
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
2,462
Python
.py
74
28.256757
78
0.698439
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,848
test_categories.py
wger-project_wger/wger/measurements/tests/test_categories.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,151
Python
.py
31
34.032258
78
0.745291
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,849
test_measurements.py
wger-project_wger/wger/measurements/tests/test_measurements.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,119
Python
.py
30
34.3
78
0.746544
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,850
__init__.py
wger-project_wger/wger/measurements/tests/__init__.py
# This file is part of wger Workout Manager <https://github.com/wger-project>. # Copyright (C) 2013 - 2021 wger Team # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either ...
802
Python
.py
15
52.466667
79
0.766201
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,851
test_generator.py
wger-project_wger/wger/measurements/tests/test_generator.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
1,695
Python
.py
49
28.265306
85
0.678681
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,852
dummy-generator-measurements.py
wger-project_wger/wger/measurements/management/commands/dummy-generator-measurements.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
3,143
Python
.py
81
29.395062
100
0.611166
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,853
dummy-generator-measurement-categories.py
wger-project_wger/wger/measurements/management/commands/dummy-generator-measurement-categories.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
2,917
Python
.py
76
30.394737
99
0.602619
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,854
.python-lint
wger-project_wger/.github/linters/.python-lint
[MASTER] # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code. extension-pkg-whitelist= # Specify a score threshold to be exceeded before program exits with error. fail-under=10 # Add files ...
18,464
Python
.pyt
448
37.776786
89
0.765154
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,855
dataclasses.py
wger-project_wger/wger/nutrition/dataclasses.py
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
2,070
Python
.tac
64
26.296875
93
0.666833
wger-project/wger
3,065
570
221
AGPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,856
LANs.py
DanMcInerney_LANs_py/LANs.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ''' Description: ARP poisons a LAN victim and prints all the interesting unencrypted info like usernames, passwords and messages. Asynchronous multithreaded arp spoofing packet parser. Prerequisites: Linux nmap (optional) nbtscan (optional) ...
68,412
Python
.py
1,437
34.881698
499
0.522002
DanMcInerney/LANs.py
2,580
495
17
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,857
setup.py
SavinaRoja_PyUserInput/setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys def long_description(): readme = os.path.join(os.path.dirname(__file__), 'README.md') with open(readme, 'r') as inf: readme_text = inf.read() return(readme_text) setup(name='PyUserI...
1,330
Python
.py
37
30.594595
86
0.661491
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,858
winex.py
SavinaRoja_PyUserInput/reference_materials/winex.py
import ctypes LONG = ctypes.c_long DWORD = ctypes.c_ulong ULONG_PTR = ctypes.POINTER(DWORD) WORD = ctypes.c_ushort class MOUSEINPUT(ctypes.Structure): _fields_ = (('dx', LONG), ('dy', LONG), ('mouseData', DWORD), ('dwFlags', DWORD), ('time', DWORD), ...
14,988
Python
.py
377
35.350133
278
0.565647
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,859
xlib-keysyms-to-python.py
SavinaRoja_PyUserInput/reference_materials/xlib-keysyms-to-python.py
#!/usr/bin/env python # coding: utf-8 # Copyright 2015 Moses Palmér # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) # any later version. # ...
3,537
Python
.py
94
32.680851
79
0.668516
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,860
virtual_keystroke_example.py
SavinaRoja_PyUserInput/reference_materials/virtual_keystroke_example.py
#Giant dictionary to hold key name and VK value VK_CODE = {'backspace':0x08, 'tab':0x09, 'clear':0x0C, 'enter':0x0D, 'shift':0x10, 'ctrl':0x11, 'alt':0x12, 'pause':0x13, 'caps_lock':0x14, 'esc':0x1B, 'spacebar'...
20,991
Python
.py
474
32.474684
86
0.537463
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,861
filetranscriber.py
SavinaRoja_PyUserInput/examples/filetranscriber.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ FileTranscriber A small utility that simulates user typing to aid plaintext file transcription in limited environments Usage: transcribe <file> [--interval=<time>] [--pause=<time>] transcribe (--help | --version) Options: -v --version show program's v...
2,183
Python
.py
62
29.016129
78
0.634551
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,862
clickonacci.py
SavinaRoja_PyUserInput/examples/clickonacci.py
from pymouse import PyMouseEvent def fibo(): a = 0 yield a b = 1 yield b while True: a, b = b, a+b yield b class Clickonacci(PyMouseEvent): def __init__(self): PyMouseEvent.__init__(self) self.fibo = fibo() def click(self, x, y, button, press): '''P...
567
Python
.py
22
19
69
0.560886
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,863
mouse.py
SavinaRoja_PyUserInput/examples/mouse.py
#!/usr/bin/python import logging import daemon from socket import gethostname; from pymouse import PyMouse import random, time from signal import signal, SIGINT with daemon.DaemonContext(): def stop(signum, frame): cleanup_stop_thread(); sys.exit() signal(SIGINT, stop) try: from pymouse import PyMous...
1,456
Python
.py
45
28.311111
107
0.617584
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,864
test_import_times.py
SavinaRoja_PyUserInput/tests/test_import_times.py
# coding=utf8 ''' Tests that import times for pymouse and pykeyboard are not unreasonably long. This catches the slow-import-of-Quartz on Mac OS X due to pyobjc's slow behavior when import via from ... import *. Note that since this ultimately tests the import speed of pyobjc's Quartz package, only the first tes...
1,269
Python
.py
31
38.935484
78
0.78275
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,865
test_unix.py
SavinaRoja_PyUserInput/tests/test_unix.py
''' Tested on linux. install: Xvfb, Xephyr, PyVirtualDisplay, nose on Ubuntu: sudo apt-get install python-nose sudo apt-get install xvfb sudo apt-get install xserver-xephyr sudo apt-get install python-setuptools sudo easy_install PyVirtualDisplay to start: nosetests -v ''' from nose.tools...
4,232
Python
.py
123
22.04878
72
0.488025
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,866
basic.py
SavinaRoja_PyUserInput/tests/basic.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
1,649
Python
.py
50
29.26
71
0.687303
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,867
wayland.py
SavinaRoja_PyUserInput/pymouse/wayland.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
654
Python
.py
14
45.714286
70
0.795313
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,868
windows.py
SavinaRoja_PyUserInput/pymouse/windows.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
4,894
Python
.py
113
34.442478
83
0.634244
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,869
java_.py
SavinaRoja_PyUserInput/pymouse/java_.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
1,564
Python
.py
36
39.138889
103
0.733026
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,870
mac.py
SavinaRoja_PyUserInput/pymouse/mac.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
5,547
Python
.py
114
37.070175
98
0.62911
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,871
x11.py
SavinaRoja_PyUserInput/pymouse/x11.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
8,098
Python
.py
182
32.615385
107
0.582995
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,872
__init__.py
SavinaRoja_PyUserInput/pymouse/__init__.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
1,355
Python
.py
33
39.30303
79
0.789794
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,873
base.py
SavinaRoja_PyUserInput/pymouse/base.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
4,047
Python
.py
101
32.940594
80
0.654662
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,874
mir.py
SavinaRoja_PyUserInput/pymouse/mir.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
654
Python
.py
14
45.714286
70
0.795313
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,875
wayland.py
SavinaRoja_PyUserInput/pykeyboard/wayland.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
654
Python
.py
14
45.714286
70
0.795313
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,876
windows.py
SavinaRoja_PyUserInput/pykeyboard/windows.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
11,883
Python
.py
293
29.307167
136
0.566387
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,877
java_.py
SavinaRoja_PyUserInput/pykeyboard/java_.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
654
Python
.py
14
45.714286
70
0.795313
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,878
mac.py
SavinaRoja_PyUserInput/pykeyboard/mac.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
6,877
Python
.py
200
27.005
115
0.612362
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,879
x11.py
SavinaRoja_PyUserInput/pykeyboard/x11.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
22,178
Python
.py
440
40.225
137
0.625923
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,880
__init__.py
SavinaRoja_PyUserInput/pykeyboard/__init__.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
1,250
Python
.py
30
39.9
77
0.788953
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,881
base.py
SavinaRoja_PyUserInput/pykeyboard/base.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
7,566
Python
.py
172
34.127907
80
0.615071
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,882
mir.py
SavinaRoja_PyUserInput/pykeyboard/mir.py
#Copyright 2013 Paul Barton # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #This program is distributed in the hope tha...
654
Python
.py
14
45.714286
70
0.795313
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,883
x11_keysyms.py
SavinaRoja_PyUserInput/pykeyboard/x11_keysyms.py
# coding: utf-8 # Copyright 2015 Moses Palmér # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) # any later version. # # This program is dis...
24,426
Python
.py
854
23.675644
79
0.549955
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,884
xlib-keysyms-to-python.py
SavinaRoja_PyUserInput/reference_materials/xlib-keysyms-to-python.py
#!/usr/bin/env python # coding: utf-8 # Copyright 2015 Moses Palmér # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) # any later version. # ...
3,537
Python
.pyt
94
32.680851
79
0.668516
SavinaRoja/PyUserInput
1,070
244
73
GPL-3.0
9/5/2024, 5:13:18 PM (Europe/Amsterdam)
22,885
setup.py
Tribler_tribler/build/setup.py
from __future__ import annotations import os import re import shutil from pathlib import Path from packaging.version import Version from setuptools import find_packages from win.build import setup, setup_executables, setup_options def read_requirements(file_name: str, directory: str = ".") -> list[str]: """ ...
3,328
Python
.py
79
36.78481
95
0.679123
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,886
update_metainfo.py
Tribler_tribler/build/debian/update_metainfo.py
from os import getenv from time import localtime, strftime from xml.etree.ElementTree import SubElement, parse if __name__ == "__main__": metainfo_xml = "build/debian/tribler/usr/share/metainfo/org.tribler.Tribler.metainfo.xml" tree = parse(metainfo_xml) root = tree.getroot() releases_tag = root.find("...
600
Python
.py
11
45.727273
105
0.644558
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,887
copyright
Tribler_tribler/build/debian/tribler/debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: tribler Source: http://www.tribler.org/ Files: * Copyright: 2005-2011 Delft University of Technology and Vrije Universiteit Amsterdam License: LGPL-2.1+ Files: Tribler/* Copyright: 2005-2011 Delft University of Technology and Vri...
8,653
Python
.py
95
89.315789
2,973
0.83105
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,888
locate-python.py
Tribler_tribler/build/win/locate-python.py
""" Print the directory where Python is installed. Author(s): Lipu Fei """ import os import sys if __name__ == "__main__": print(os.path.abspath(os.path.dirname(sys.executable)))
185
Python
.py
8
21.375
59
0.708571
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,889
build.py
Tribler_tribler/build/win/build.py
""" This file includes the build configuration for the Tribler. The exports of this file are used in setup.py to build the executable or wheel package. There are two build options: 1) setuptools is used to build the wheel package. To create a wheel package: python setup.py bdist_wheel 2) Building executable is done ...
3,626
Python
.py
96
31.78125
120
0.666762
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,890
run_tribler.py
Tribler_tribler/src/run_tribler.py
from __future__ import annotations import sys import traceback from typing import TYPE_CHECKING if TYPE_CHECKING: from pystray import Icon def show_error(exc: Exception, shutdown: bool = True) -> None: """ Create a native pop-up without any third party dependency. :param exc: the error to show to t...
8,515
Python
.py
195
35.748718
131
0.639947
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,891
run_unit_tests.py
Tribler_tribler/src/run_unit_tests.py
from __future__ import annotations import argparse import os import pathlib import platform import sys import time import unittest from concurrent.futures import ProcessPoolExecutor sys.path.append(str(pathlib.Path("../pyipv8").absolute())) from run_all_tests import ( DEFAULT_PROCESS_COUNT, ProgrammerDistrac...
4,996
Python
.py
99
42.272727
119
0.643165
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,892
__init__.py
Tribler_tribler/src/tribler/__init__.py
import pathlib import sys def get_webui_root() -> pathlib.Path: """ Get the location of the "ui" directory. When compiled through PyInstaller, the ui directory changes. When running from source or when using cx_Freeze, we can use the ``__file__``. """ if hasattr(sys, '_MEIPASS'): retu...
432
Python
.py
11
34.727273
82
0.667464
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,893
upgrade_script.py
Tribler_tribler/src/tribler/upgrade_script.py
""" UPDATE THIS FILE WHENEVER A NEW VERSION GETS RELEASED. Checklist: - Have you changed ``FROM`` to the previous version? - Have you changed ``TO`` to the current version? - Have you changed ``upgrade()`` to perform the upgrade? """ from __future__ import annotations import logging import os import shutil import...
17,688
Python
.py
325
42.766154
131
0.609991
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,894
tribler_config.py
Tribler_tribler/src/tribler/tribler_config.py
from __future__ import annotations import json import logging import os from importlib.metadata import PackageNotFoundError, version from json import JSONDecodeError from pathlib import Path from typing import TypedDict from ipv8.configuration import default as ipv8_default_config from tribler.upgrade_script import ...
8,038
Python
.py
250
25.488
101
0.647554
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,895
test_tribler_config.py
Tribler_tribler/src/tribler/test_unit/test_tribler_config.py
from ipv8.test.base import TestBase from tribler.tribler_config import DEFAULT_CONFIG, TriblerConfigManager class TestTriblerConfigManager(TestBase): """ Tests for the TriblerConfigManager. """ def test_get_default_fallback(self) -> None: """ Test if ``get`` falls back to the default...
1,394
Python
.py
32
35.84375
94
0.660992
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,896
base_restapi.py
Tribler_tribler/src/tribler/test_unit/base_restapi.py
from __future__ import annotations import asyncio from asyncio import StreamReader, get_running_loop from io import BytesIO from json import loads from typing import TYPE_CHECKING, Any from aiohttp import HttpVersion from aiohttp.abc import AbstractStreamWriter from aiohttp.http_parser import RawRequestMessage from a...
3,007
Python
.py
84
28.119048
103
0.628444
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,897
test_notifier.py
Tribler_tribler/src/tribler/test_unit/core/test_notifier.py
from unittest.mock import Mock, call from ipv8.test.base import TestBase from tribler.core.notifier import Notification, Notifier class TestNotifier(TestBase): """ Tests for the Notifier class. """ def setUp(self) -> None: """ Create a new notifier. """ super().setUp...
2,726
Python
.py
65
33.2
100
0.646323
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,898
test_statistics_endpoint.py
Tribler_tribler/src/tribler/test_unit/core/restapi/test_statistics_endpoint.py
from unittest.mock import Mock from ipv8.test.base import TestBase from tribler.core.restapi.statistics_endpoint import StatisticsEndpoint from tribler.test_unit.base_restapi import MockRequest, response_to_json class TriblerStatsRequest(MockRequest): """ A MockRequest that mimics TriblerStatsRequests. ...
2,826
Python
.py
62
38.096774
106
0.673961
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
22,899
test_rest_manager.py
Tribler_tribler/src/tribler/test_unit/core/restapi/test_rest_manager.py
from __future__ import annotations from http.cookies import BaseCookie from typing import TYPE_CHECKING from aiohttp import hdrs, web from aiohttp.web_exceptions import HTTPNotFound, HTTPRequestEntityTooLarge from ipv8.test.base import TestBase from tribler.core.restapi.rest_endpoint import ( HTTP_INTERNAL_SERVE...
6,800
Python
.py
146
38.561644
112
0.672565
Tribler/tribler
4,768
443
131
GPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)