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,700 | 0026_deletionlog_replaced_by.py | wger-project_wger/wger/exercises/migrations/0026_deletionlog_replaced_by.py | # Generated by Django 4.1.9 on 2023-10-19 11:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exercises', '0025_rename_update_date_exercise_last_update_and_more'),
]
operations = [
migrations.AddField(
model_name='deletionl... | 607 | Python | .py | 19 | 21.894737 | 79 | 0.556507 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,701 | 0018_delete_pending_exercises.py | wger-project_wger/wger/exercises/migrations/0018_delete_pending_exercises.py | # Generated by Django 3.2.15 on 2022-08-25 17:25
from django.db import migrations
from django.conf import settings
def delete_pending_bases(apps, schema_editor):
"""
Delete all pending bases
Note that we can't access STATUS_PENDING here because we are not using
a real model.
"""
Base = apps.... | 1,074 | Python | .py | 29 | 31.827586 | 74 | 0.704348 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,702 | 0002_auto_20150307_1841.py | wger-project_wger/wger/exercises/migrations/0002_auto_20150307_1841.py | # -*- coding: utf-8 -*-
from django.db import models, migrations
import uuid
def generate_uuids(apps, schema_editor):
"""
Generate new UUIDs for each exercise
:param apps:
:param schema_editor:
:return:
"""
Excercise = apps.get_model('exercises', 'Exercise')
for exercise in Excercise.... | 848 | Python | .py | 29 | 22.103448 | 86 | 0.610086 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,703 | 0030_increase_author_field_length.py | wger-project_wger/wger/exercises/migrations/0030_increase_author_field_length.py | # Generated by Django 4.2.6 on 2024-05-20 19:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exercises', '0029_full_text_search'),
]
operations = [
migrations.AlterField(
model_name='exercise',
name='license_au... | 3,340 | Python | .py | 96 | 21.5 | 86 | 0.496914 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,704 | 0003_auto_20160921_2000.py | wger-project_wger/wger/exercises/migrations/0003_auto_20160921_2000.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-21 18:00
from django.db import migrations, models
def copy_name(apps, schema_editor):
"""
Copies the exercise name to the original name field
"""
Excercise = apps.get_model('exercises', 'Exercise')
for exercise in Excercise.objects.al... | 1,556 | Python | .py | 42 | 29.690476 | 86 | 0.634731 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,705 | 0007_auto_20201203_1042.py | wger-project_wger/wger/exercises/migrations/0007_auto_20201203_1042.py | # Generated by Django 3.1.3 on 2020-12-03 09:42
from django.db import migrations
exercise_variation_ids = [
#
# exercises in English
#
# Rows
[106, 108, 109, 110, 142, 202, 214, 339, 340, 362, 412, 670],
# Lat Pulldowns
[187, 188, 204, 212, 213, 215, 216, 424],
# Deadlifts
[105, 16... | 3,303 | Python | .py | 129 | 19.782946 | 78 | 0.559494 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,706 | 0028_add_uuid_alias_and_comments.py | wger-project_wger/wger/exercises/migrations/0028_add_uuid_alias_and_comments.py | # Generated by Django 4.2.6 on 2024-01-06 14:01
from django.db import migrations, models
import uuid
def generate_aliases_uuids(apps, schema_editor):
"""Generate new UUIDs for each alias"""
Alias = apps.get_model('exercises', 'Alias')
for alias in Alias.objects.all():
alias.uuid = uuid.uuid4()
... | 2,820 | Python | .py | 89 | 20.146067 | 69 | 0.522969 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,707 | 0015_exercise_videos.py | wger-project_wger/wger/exercises/migrations/0015_exercise_videos.py | # Generated by Django 3.2.10 on 2022-01-22 14:18
from django.db import migrations, models
import django.db.models.deletion
import uuid
import wger.exercises.models.video
class Migration(migrations.Migration):
dependencies = [
('core', '0013_auto_20210726_1729'),
('exercises', '0014_exerciseimage_... | 3,962 | Python | .py | 104 | 20.365385 | 146 | 0.411002 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,708 | 0005_auto_20190618_1617.py | wger-project_wger/wger/exercises/migrations/0005_auto_20190618_1617.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-06-18 16:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('exercises', '0004_auto_20170404_0114'),
]
operations = [
migrations.AlterModelOptions(
name='exercise',
... | 575 | Python | .py | 17 | 26.470588 | 85 | 0.590253 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,709 | 0011_auto_20201214_0033.py | wger-project_wger/wger/exercises/migrations/0011_auto_20201214_0033.py | # Generated by Django 3.1.4 on 2020-12-13 23:33
from django.db import migrations
exercise_mapping = [
# 111 c4856da3-8454-4857-8997-336d06df590f Squats
# 7 36c27886-b10b-41b6-ac60-f02ee3784041 Kniebeuge
# 608 993cf4e0-e664-4cc2-aa46-683c6fc7a74f Приседания
{
'en': 'c4856da3-8454-4857-8997-336... | 22,082 | Python | .py | 314 | 64.789809 | 97 | 0.740563 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,710 | 0023_make_uuid_unique.py | wger-project_wger/wger/exercises/migrations/0023_make_uuid_unique.py | # Generated by Django 4.1.5 on 2023-03-17 20:56
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('exercises', '0022_alter_exercise_license_author_and_more'),
]
operations = [
migrations.AlterField(
model_name='delet... | 2,487 | Python | .py | 72 | 23.152778 | 86 | 0.549564 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,711 | 0012_auto_20210327_1219.py | wger-project_wger/wger/exercises/migrations/0012_auto_20210327_1219.py | # Generated by Django 3.1.7 on 2021-03-27 11:19
from django.db import migrations, models
import uuid
def generate_uuids(apps, schema_editor):
"""Generate new UUIDs for each exercise image"""
ExcerciseImage = apps.get_model('exercises', 'ExerciseImage')
for exercise in ExcerciseImage.objects.all():
... | 764 | Python | .py | 21 | 29.714286 | 92 | 0.668478 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,712 | 0013_auto_20210503_1232.py | wger-project_wger/wger/exercises/migrations/0013_auto_20210503_1232.py | # Generated by Django 3.2 on 2021-05-03 10:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('exercises', '0012_auto_20210327_1219'),
]
operations = [
migrations.RenameField(
model_name='exerc... | 1,253 | Python | .py | 38 | 21.447368 | 80 | 0.528489 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,713 | equipment.py | wger-project_wger/wger/exercises/views/equipment.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 ... | 3,414 | Python | .py | 96 | 31.458333 | 100 | 0.732403 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,714 | history.py | wger-project_wger/wger/exercises/views/history.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,933 | Python | .py | 75 | 33.6 | 85 | 0.707394 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,715 | helper.py | wger-project_wger/wger/exercises/views/helper.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... | 749 | Python | .py | 17 | 42.411765 | 78 | 0.78738 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,716 | exercises.py | wger-project_wger/wger/exercises/views/exercises.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,326 | Python | .py | 69 | 29.855072 | 97 | 0.736185 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,717 | muscles.py | wger-project_wger/wger/exercises/views/muscles.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 ... | 3,165 | Python | .py | 87 | 32.114943 | 97 | 0.725638 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,718 | categories.py | wger-project_wger/wger/exercises/views/categories.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 ... | 3,684 | Python | .py | 105 | 30.885714 | 96 | 0.742335 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,719 | serializers.py | wger-project_wger/wger/exercises/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... | 13,546 | Python | .py | 417 | 23.393285 | 100 | 0.599663 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,720 | endpoints.py | wger-project_wger/wger/exercises/api/endpoints.py | EXERCISE_ENDPOINT = 'exercisebaseinfo'
DELETION_LOG_ENDPOINT = 'deletion-log'
CATEGORY_ENDPOINT = 'exercisecategory'
MUSCLE_ENDPOINT = 'muscle'
EQUIPMENT_ENDPOINT = 'equipment'
IMAGE_ENDPOINT = 'exerciseimage'
VIDEO_ENDPOINT = 'video'
| 235 | Python | .py | 7 | 32.571429 | 38 | 0.807018 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,721 | permissions.py | wger-project_wger/wger/exercises/api/permissions.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,108 | Python | .py | 44 | 42.045455 | 84 | 0.720058 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,722 | views.py | wger-project_wger/wger/exercises/api/views.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... | 21,284 | Python | .py | 595 | 27.736134 | 99 | 0.642881 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,723 | test_change_exercise_author.py | wger-project_wger/wger/exercises/tests/test_change_exercise_author.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,943 | Python | .py | 63 | 40.793651 | 92 | 0.703768 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,724 | test_exercise_model.py | wger-project_wger/wger/exercises/tests/test_exercise_model.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,666 | Python | .py | 32 | 47.875 | 85 | 0.733415 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,725 | test_exercise_base_model.py | wger-project_wger/wger/exercises/tests/test_exercise_base_model.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,067 | Python | .py | 74 | 35.108108 | 94 | 0.69267 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,726 | test_history.py | wger-project_wger/wger/exercises/tests/test_history.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,678 | Python | .py | 69 | 31.898551 | 86 | 0.682221 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,727 | test_search_api.py | wger-project_wger/wger/exercises/tests/test_search_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... | 4,105 | Python | .py | 86 | 40.732558 | 78 | 0.681602 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,728 | test_exercise_images.py | wger-project_wger/wger/exercises/tests/test_exercise_images.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,922 | Python | .py | 99 | 33.111111 | 78 | 0.6899 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,729 | test_categories.py | wger-project_wger/wger/exercises/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... | 2,592 | Python | .py | 83 | 26.481928 | 78 | 0.71004 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,730 | test_exercise_comments.py | wger-project_wger/wger/exercises/tests/test_exercise_comments.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,399 | Python | .py | 37 | 33.918919 | 78 | 0.743911 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,731 | test_deletion_log.py | wger-project_wger/wger/exercises/tests/test_deletion_log.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... | 4,185 | Python | .py | 96 | 36.322917 | 92 | 0.686009 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,732 | test_exercise_base.py | wger-project_wger/wger/exercises/tests/test_exercise_base.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,633 | Python | .py | 126 | 37.626984 | 99 | 0.691802 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,733 | test_exercise_api_cache.py | wger-project_wger/wger/exercises/tests/test_exercise_api_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... | 4,275 | Python | .py | 116 | 29.655172 | 89 | 0.665131 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,734 | test_alias.py | wger-project_wger/wger/exercises/tests/test_alias.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... | 919 | Python | .py | 23 | 37 | 78 | 0.760943 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,735 | test_equipment.py | wger-project_wger/wger/exercises/tests/test_equipment.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,786 | Python | .py | 94 | 34.957447 | 94 | 0.708129 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,736 | test_exercise_translation.py | wger-project_wger/wger/exercises/tests/test_exercise_translation.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... | 15,538 | Python | .py | 340 | 38.123529 | 96 | 0.674051 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,737 | test_management_commands.py | wger-project_wger/wger/exercises/tests/test_management_commands.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... | 4,960 | Python | .py | 110 | 38.309091 | 98 | 0.704103 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,738 | test_muscles.py | wger-project_wger/wger/exercises/tests/test_muscles.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,247 | Python | .py | 96 | 28.385417 | 98 | 0.67977 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,739 | test_sync.py | wger-project_wger/wger/exercises/tests/test_sync.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... | 27,880 | Python | .py | 680 | 23.916176 | 98 | 0.441165 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,740 | read-exercise-cleanup.py | wger-project_wger/wger/exercises/management/commands/read-exercise-cleanup.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... | 11,248 | Python | .py | 249 | 30.51004 | 100 | 0.538026 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,741 | sync-exercises.py | wger-project_wger/wger/exercises/management/commands/sync-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,259 | Python | .py | 79 | 33.974684 | 90 | 0.679609 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,742 | download-exercise-images.py | wger-project_wger/wger/exercises/management/commands/download-exercise-images.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,446 | Python | .py | 59 | 35.610169 | 87 | 0.694573 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,743 | exercise-cleanup.py | wger-project_wger/wger/exercises/management/commands/exercise-cleanup.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,979 | Python | .py | 93 | 29.612903 | 100 | 0.539018 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,744 | submitted-exercises.py | wger-project_wger/wger/exercises/management/commands/submitted-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... | 1,223 | Python | .py | 30 | 36.466667 | 78 | 0.73946 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,745 | warmup-exercise-api-cache.py | wger-project_wger/wger/exercises/management/commands/warmup-exercise-api-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... | 2,286 | Python | .py | 55 | 34.527273 | 88 | 0.687247 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,746 | change-exercise-author.py | wger-project_wger/wger/exercises/management/commands/change-exercise-author.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,013 | Python | .py | 70 | 34.771429 | 98 | 0.655631 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,747 | delete-unused-exercises.py | wger-project_wger/wger/exercises/management/commands/delete-unused-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... | 2,256 | Python | .py | 52 | 37.807692 | 93 | 0.704649 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,748 | exercises-health-check.py | wger-project_wger/wger/exercises/management/commands/exercises-health-check.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,257 | Python | .py | 121 | 34.471074 | 98 | 0.648405 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,749 | download-exercise-videos.py | wger-project_wger/wger/exercises/management/commands/download-exercise-videos.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,993 | Python | .py | 51 | 33.72549 | 88 | 0.713768 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,750 | signals.py | wger-project_wger/wger/core/signals.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,994 | Python | .py | 57 | 31.526316 | 100 | 0.737662 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,751 | demo.py | wger-project_wger/wger/core/demo.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 ... | 11,684 | Python | .py | 358 | 26.664804 | 94 | 0.661903 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,752 | checks.py | wger-project_wger/wger/core/checks.py | # Django
from django.conf import settings
from django.core.checks import (
Error,
Warning,
register,
)
# wger
from wger.utils.constants import DOWNLOAD_INGREDIENT_OPTIONS
@register()
def settings_check(app_configs, **kwargs):
errors = []
# Upstream wger instance should be configured
if not s... | 1,089 | Python | .py | 34 | 23.235294 | 94 | 0.607619 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,753 | urls.py | wger-project_wger/wger/core/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 ... | 5,940 | Python | .py | 206 | 23.145631 | 109 | 0.62369 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,754 | apps.py | wger-project_wger/wger/core/apps.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... | 850 | Python | .py | 21 | 37.952381 | 78 | 0.770909 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,755 | __init__.py | wger-project_wger/wger/core/__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 ... | 851 | Python | .py | 19 | 43.578947 | 78 | 0.775362 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,756 | forms.py | wger-project_wger/wger/core/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 ... | 10,374 | Python | .py | 290 | 26.906897 | 96 | 0.598904 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,757 | profile.py | wger-project_wger/wger/core/models/profile.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 ... | 16,285 | Python | .py | 472 | 26.724576 | 97 | 0.6173 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,758 | license.py | wger-project_wger/wger/core/models/license.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 ... | 2,169 | Python | .py | 67 | 26.507463 | 79 | 0.633843 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,759 | language.py | wger-project_wger/wger/core/models/language.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 ... | 2,219 | Python | .py | 71 | 25.633803 | 79 | 0.641386 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,760 | weight_unit.py | wger-project_wger/wger/core/models/weight_unit.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,698 | Python | .py | 50 | 28.68 | 79 | 0.664835 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,761 | days_of_week.py | wger-project_wger/wger/core/models/days_of_week.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,426 | Python | .py | 36 | 35.277778 | 83 | 0.699711 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,762 | cache.py | wger-project_wger/wger/core/models/cache.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,452 | Python | .py | 37 | 35.675676 | 79 | 0.724432 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,763 | __init__.py | wger-project_wger/wger/core/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 ... | 1,043 | Python | .py | 23 | 44.304348 | 79 | 0.786065 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,764 | rep_unit.py | wger-project_wger/wger/core/models/rep_unit.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,715 | Python | .py | 50 | 29.02 | 79 | 0.668882 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,765 | wger_extras.py | wger-project_wger/wger/core/templatetags/wger_extras.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 ... | 6,245 | Python | .py | 179 | 29.536313 | 91 | 0.674585 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,766 | 0006_auto_20151025_2237.py | wger-project_wger/wger/core/migrations/0006_auto_20151025_2237.py | # -*- coding: utf-8 -*-
from django.db import migrations, models
def create_usercache(apps, schema_editor):
"""
Creates a usercache table for all users
"""
User = apps.get_model('auth', 'User')
Usercache = apps.get_model('core', 'Usercache')
WorkoutLog = apps.get_model('manager', 'WorkoutLog'... | 1,789 | Python | .py | 46 | 31.152174 | 87 | 0.636784 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,767 | 0012_auto_20210210_1228.py | wger-project_wger/wger/core/migrations/0012_auto_20210210_1228.py | # Generated by Django 3.1.5 on 2021-02-10 11:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0011_auto_2020120... | 908 | Python | .py | 27 | 24.037037 | 69 | 0.595211 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,768 | 0007_repetitionunit.py | wger-project_wger/wger/core/migrations/0007_repetitionunit.py | # -*- coding: utf-8 -*-
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0006_auto_20151025_2237'),
]
operations = [
migrations.CreateModel(
name='RepetitionUnit',
fields=[
(
... | 695 | Python | .py | 23 | 18.26087 | 95 | 0.458084 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,769 | 0013_auto_20210726_1729.py | wger-project_wger/wger/core/migrations/0013_auto_20210726_1729.py | # Generated by Django 3.2.3 on 2021-07-26 15:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0012_auto_20210210_1228'),
]
operations = [
migrations.RemoveField(
model_name='userprofile',
name='timer_active',
... | 448 | Python | .py | 16 | 20.25 | 47 | 0.588785 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,770 | 0003_auto_20150217_1554.py | wger-project_wger/wger/core/migrations/0003_auto_20150217_1554.py | # -*- coding: utf-8 -*-
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20141225_1512'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='num_da... | 2,016 | Python | .py | 56 | 23.357143 | 173 | 0.534254 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,771 | 0010_auto_20170403_0144.py | wger-project_wger/wger/core/migrations/0010_auto_20170403_0144.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-04-02 16:44
from django.db import migrations, models
import wger.core.models
class Migration(migrations.Migration):
dependencies = [
('core', '0009_auto_20160303_2340'),
]
operations = [
migrations.AddField(
model_n... | 976 | Python | .py | 28 | 24.857143 | 160 | 0.572034 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,772 | 0011_auto_20201201_0653.py | wger-project_wger/wger/core/migrations/0011_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'),
('core', '0010_auto_20170403_0144'),
]
operations = [
migrations.A... | 641 | Python | .py | 21 | 20.952381 | 61 | 0.553571 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,773 | 0016_alter_language_short_name.py | wger-project_wger/wger/core/migrations/0016_alter_language_short_name.py | # Generated by Django 4.2 on 2023-04-07 14:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0015_alter_language_short_name'),
]
operations = [
migrations.AlterField(
model_name='language',
name='short_na... | 494 | Python | .py | 15 | 24.733333 | 100 | 0.6 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,774 | 0014_merge_20210818_1735.py | wger-project_wger/wger/core/migrations/0014_merge_20210818_1735.py | # Generated by Django 3.2.3 on 2021-08-18 15:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0013_auto_20210726_1729'),
('core', '0013_userprofile_email_verified'),
]
operations = []
| 269 | Python | .py | 8 | 28.625 | 52 | 0.673152 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,775 | 0013_userprofile_email_verified.py | wger-project_wger/wger/core/migrations/0013_userprofile_email_verified.py | # Generated by Django 3.2.3 on 2021-06-08 22:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_auto_20210210_1228'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='email_verifi... | 396 | Python | .py | 13 | 23.307692 | 53 | 0.62533 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,776 | 0017_language_full_name_en.py | wger-project_wger/wger/core/migrations/0017_language_full_name_en.py | # Generated by Django 4.2.6 on 2024-01-17 15:41
from django.db import migrations, models
def update_language_full_name(apps, schema_editor):
mapper = {
'de': 'German',
'en': 'English',
'bg': 'Bulgarian',
'es': 'Spanish',
'ru': 'Russian',
'nl': 'Dutch',
'pt'... | 1,568 | Python | .py | 53 | 20.679245 | 74 | 0.513926 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,777 | 0002_auto_20141225_1512.py | wger-project_wger/wger/core/migrations/0002_auto_20141225_1512.py | # -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='ro_access',
field=models.BooleanFie... | 2,666 | Python | .py | 76 | 22.236842 | 151 | 0.481439 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,778 | 0005_auto_20151025_2236.py | wger-project_wger/wger/core/migrations/0005_auto_20151025_2236.py | # -*- coding: utf-8 -*-
from django.db import migrations, models
import django.core.validators
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0004_auto_20150217_1914'),
]
operat... | 1,504 | Python | .py | 42 | 22.428571 | 95 | 0.510288 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,779 | 0001_initial.py | wger-project_wger/wger/core/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from django.db import models, migrations
from django.conf import settings
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('gym', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
... | 13,101 | Python | .py | 322 | 20.046584 | 322 | 0.387554 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,780 | 0009_auto_20160303_2340.py | wger-project_wger/wger/core/migrations/0009_auto_20160303_2340.py | # -*- coding: utf-8 -*-
from django.db import migrations, models
def insert_data(apps, schema_editor):
"""
Inserts initial data for repetition and weight units
Needed so that the migrations can go through without having to load any
fixtures or perform any intermediate steps.
"""
WeightUnit =... | 1,210 | Python | .py | 29 | 36.724138 | 82 | 0.68798 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,781 | 0004_auto_20150217_1914.py | wger-project_wger/wger/core/migrations/0004_auto_20150217_1914.py | # -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20150217_1554'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='num_days_weight_reminder',
... | 644 | Python | .py | 19 | 24.052632 | 95 | 0.571659 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,782 | 0015_alter_language_short_name.py | wger-project_wger/wger/core/migrations/0015_alter_language_short_name.py | # Generated by Django 3.2.16 on 2022-11-10 14:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0014_merge_20210818_1735'),
]
operations = [
migrations.AlterField(
model_name='language',
name='short_name'... | 438 | Python | .py | 13 | 26.538462 | 98 | 0.634204 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,783 | 0008_weightunit.py | wger-project_wger/wger/core/migrations/0008_weightunit.py | # -*- coding: utf-8 -*-
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_repetitionunit'),
]
operations = [
migrations.CreateModel(
name='WeightUnit',
fields=[
(
'id... | 687 | Python | .py | 23 | 17.913043 | 95 | 0.454545 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,784 | license.py | wger-project_wger/wger/core/views/license.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,921 | Python | .py | 84 | 30.535714 | 98 | 0.720625 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,785 | react.py | wger-project_wger/wger/core/views/react.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,455 | Python | .py | 34 | 38.411765 | 83 | 0.729137 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,786 | user.py | wger-project_wger/wger/core/views/user.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 ... | 21,138 | Python | .py | 543 | 31.416206 | 100 | 0.654164 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,787 | languages.py | wger-project_wger/wger/core/views/languages.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 ... | 3,256 | Python | .py | 90 | 31.911111 | 99 | 0.729644 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,788 | repetition_units.py | wger-project_wger/wger/core/views/repetition_units.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 ... | 3,352 | Python | .py | 93 | 31.397849 | 91 | 0.716934 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,789 | weight_units.py | wger-project_wger/wger/core/views/weight_units.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 ... | 3,296 | Python | .py | 93 | 30.795699 | 91 | 0.71195 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,790 | misc.py | wger-project_wger/wger/core/views/misc.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 ... | 5,126 | Python | .py | 136 | 31.801471 | 95 | 0.686405 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,791 | serializers.py | wger-project_wger/wger/core/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... | 5,766 | Python | .py | 167 | 27.197605 | 100 | 0.650054 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,792 | permissions.py | wger-project_wger/wger/core/api/permissions.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,149 | Python | .py | 25 | 42.8 | 89 | 0.764758 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,793 | views.py | wger-project_wger/wger/core/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 ... | 11,765 | Python | .py | 331 | 28.362538 | 99 | 0.658627 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,794 | test_apikey.py | wger-project_wger/wger/core/tests/test_apikey.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,573 | Python | .py | 60 | 37.133333 | 84 | 0.707131 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,795 | test_user.py | wger-project_wger/wger/core/tests/test_user.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... | 8,717 | Python | .py | 289 | 22.678201 | 91 | 0.613392 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,796 | test_delete_user.py | wger-project_wger/wger/core/tests/test_delete_user.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... | 6,314 | Python | .py | 169 | 28.970414 | 99 | 0.623937 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,797 | test_user_login.py | wger-project_wger/wger/core/tests/test_user_login.py | # Standard Library
from unittest import mock
# Third Party
from rest_framework import status
from rest_framework.exceptions import ErrorDetail
# wger
from wger.core.tests.api_base_test import ApiBaseTestCase
from wger.core.tests.base_testcase import (
BaseTestCase,
WgerTestCase,
)
from wger.core.views.user im... | 5,307 | Python | .py | 107 | 41.663551 | 100 | 0.669377 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,798 | base_testcase.py | wger-project_wger/wger/core/tests/base_testcase.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... | 19,176 | Python | .py | 491 | 30.244399 | 99 | 0.62022 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,799 | test_sitemap.py | wger-project_wger/wger/core/tests/test_sitemap.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,636 | Python | .py | 37 | 40 | 95 | 0.721734 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |