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,500 | schedule.py | wger-project_wger/wger/manager/views/schedule.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,001 | Python | .py | 277 | 30.018051 | 93 | 0.670942 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,501 | log.py | wger-project_wger/wger/manager/views/log.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 ... | 12,631 | Python | .py | 298 | 33.885906 | 100 | 0.636141 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,502 | schedule_step.py | wger-project_wger/wger/manager/views/schedule_step.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,003 | Python | .py | 107 | 31.588785 | 95 | 0.692547 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,503 | day.py | wger-project_wger/wger/manager/views/day.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,015 | Python | .py | 113 | 30.539823 | 96 | 0.682511 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,504 | serializers.py | wger-project_wger/wger/manager/api/serializers.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,156 | Python | .py | 175 | 29.937143 | 99 | 0.719757 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,505 | views.py | wger-project_wger/wger/manager/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,295 | Python | .py | 351 | 25.205128 | 94 | 0.643968 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,506 | test_email_reminder.py | wger-project_wger/wger/manager/tests/test_email_reminder.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,466 | Python | .py | 186 | 32.317204 | 95 | 0.658503 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,507 | test_pdf.py | wger-project_wger/wger/manager/tests/test_pdf.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... | 9,041 | Python | .py | 217 | 32.35023 | 99 | 0.619585 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,508 | test_schedule_step.py | wger-project_wger/wger/manager/tests/test_schedule_step.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,854 | Python | .py | 85 | 28.882353 | 98 | 0.697124 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,509 | test_schedule.py | wger-project_wger/wger/manager/tests/test_schedule.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... | 22,538 | Python | .py | 606 | 28.511551 | 97 | 0.615931 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,510 | test_workout.py | wger-project_wger/wger/manager/tests/test_workout.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,445 | Python | .py | 106 | 26.792453 | 85 | 0.680169 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,511 | test_copy_workout.py | wger-project_wger/wger/manager/tests/test_copy_workout.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,991 | Python | .py | 126 | 38.444444 | 100 | 0.645919 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,512 | test_weight_log.py | wger-project_wger/wger/manager/tests/test_weight_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... | 15,461 | Python | .py | 411 | 28.832117 | 99 | 0.601123 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,513 | __init__.py | wger-project_wger/wger/manager/tests/__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 ... | 802 | Python | .py | 18 | 43.333333 | 78 | 0.774359 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,514 | test_workout_session.py | wger-project_wger/wger/manager/tests/test_workout_session.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,801 | Python | .py | 221 | 28.339367 | 96 | 0.644536 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,515 | test_day.py | wger-project_wger/wger/manager/tests/test_day.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,793 | Python | .py | 167 | 28.155689 | 88 | 0.644496 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,516 | test_workout_canonical.py | wger-project_wger/wger/manager/tests/test_workout_canonical.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... | 9,322 | Python | .py | 226 | 28.190265 | 100 | 0.517804 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,517 | test_set.py | wger-project_wger/wger/manager/tests/test_set.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... | 16,690 | Python | .py | 460 | 26.934783 | 100 | 0.587783 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,518 | test_generator.py | wger-project_wger/wger/manager/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,769 | Python | .py | 41 | 38.219512 | 99 | 0.714951 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,519 | test_workout_template.py | wger-project_wger/wger/manager/tests/test_workout_template.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,084 | Python | .py | 68 | 39.014706 | 94 | 0.691103 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,520 | test_ical.py | wger-project_wger/wger/manager/tests/test_ical.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 | 180 | 31.166667 | 95 | 0.639708 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,521 | email-reminders.py | wger-project_wger/wger/manager/management/commands/email-reminders.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,768 | Python | .py | 104 | 34.836538 | 100 | 0.621796 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,522 | dummy-generator-workout-diary.py | wger-project_wger/wger/manager/management/commands/dummy-generator-workout-diary.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,477 | Python | .py | 96 | 26.197917 | 99 | 0.585388 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,523 | dummy-generator-workout-plans.py | wger-project_wger/wger/manager/management/commands/dummy-generator-workout-plans.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,194 | Python | .py | 106 | 26.716981 | 100 | 0.532203 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,524 | signals.py | wger-project_wger/wger/nutrition/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,616 | Python | .py | 38 | 40.394737 | 89 | 0.793125 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,525 | sync.py | wger-project_wger/wger/nutrition/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... | 8,856 | Python | .py | 216 | 34.041667 | 100 | 0.659807 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,526 | urls.py | wger-project_wger/wger/nutrition/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 ... | 4,757 | Python | .py | 209 | 16.425837 | 78 | 0.568878 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,527 | tasks.py | wger-project_wger/wger/nutrition/tasks.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,742 | Python | .py | 80 | 28.9875 | 92 | 0.687855 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,528 | apps.py | wger-project_wger/wger/nutrition/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 ... | 863 | Python | .py | 21 | 38.904762 | 78 | 0.771804 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,529 | sitemap.py | wger-project_wger/wger/nutrition/sitemap.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 ... | 974 | Python | .py | 25 | 36.4 | 78 | 0.767516 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,530 | __init__.py | wger-project_wger/wger/nutrition/__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 ... | 861 | Python | .py | 19 | 44.105263 | 78 | 0.778043 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,531 | consts.py | wger-project_wger/wger/nutrition/consts.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,085 | Python | .py | 26 | 40.153846 | 79 | 0.725379 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,532 | 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 | .py | 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,533 | helpers.py | wger-project_wger/wger/nutrition/helpers.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 ... | 5,165 | Python | .py | 121 | 35.239669 | 101 | 0.657171 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,534 | forms.py | wger-project_wger/wger/nutrition/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,751 | Python | .py | 325 | 23.843077 | 90 | 0.560324 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,535 | off.py | wger-project_wger/wger/nutrition/off.py | # This file is part of wger Workout Manager <https://github.com/wger-project>.
#
# 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 you... | 3,481 | Python | .py | 83 | 36.746988 | 85 | 0.699055 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,536 | usda.py | wger-project_wger/wger/nutrition/usda.py | # This file is part of wger Workout Manager <https://github.com/wger-project>.
#
# 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 you... | 3,778 | Python | .py | 100 | 30.62 | 93 | 0.651888 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,537 | managers.py | wger-project_wger/wger/nutrition/managers.py | # This file is part of wger Workout Manager <https://github.com/wger-project>.
# Copyright (C) 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 version 3 of... | 1,861 | Python | .py | 43 | 38.744186 | 98 | 0.732558 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,538 | sources.py | wger-project_wger/wger/nutrition/models/sources.py | # This file is part of wger Workout Manager <https://github.com/wger-project>.
#
# 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 you... | 903 | Python | .py | 20 | 43.4 | 79 | 0.757955 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,539 | weight_unit.py | wger-project_wger/wger/nutrition/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,657 | Python | .py | 49 | 28.897959 | 79 | 0.68125 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,540 | ingredient.py | wger-project_wger/wger/nutrition/models/ingredient.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 ... | 13,635 | Python | .py | 390 | 26.74359 | 101 | 0.618147 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,541 | __init__.py | wger-project_wger/wger/nutrition/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,156 | Python | .py | 26 | 43.423077 | 79 | 0.795394 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,542 | log.py | wger-project_wger/wger/nutrition/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 ... | 3,224 | Python | .py | 109 | 24.247706 | 100 | 0.66344 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,543 | ingredient_weight_unit.py | wger-project_wger/wger/nutrition/models/ingredient_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 ... | 2,042 | Python | .py | 57 | 30.964912 | 89 | 0.688292 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,544 | meal.py | wger-project_wger/wger/nutrition/models/meal.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,595 | Python | .py | 78 | 27.5 | 92 | 0.667333 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,545 | plan.py | wger-project_wger/wger/nutrition/models/plan.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 ... | 7,706 | Python | .py | 193 | 30.880829 | 99 | 0.61738 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,546 | meal_item.py | wger-project_wger/wger/nutrition/models/meal_item.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,460 | Python | .py | 75 | 27.853333 | 85 | 0.695744 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,547 | ingredient_category.py | wger-project_wger/wger/nutrition/models/ingredient_category.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,475 | Python | .py | 39 | 33.25641 | 79 | 0.69979 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,548 | image.py | wger-project_wger/wger/nutrition/models/image.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 ... | 3,395 | Python | .py | 88 | 33.170455 | 93 | 0.69425 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,549 | 0013_ingredient_image.py | wger-project_wger/wger/nutrition/migrations/0013_ingredient_image.py | # Generated by Django 3.2.14 on 2022-08-09 12:33
from django.db import migrations, models
import django.db.models.deletion
import uuid
import wger.nutrition.models.image
import wger.utils.helpers
def noop(apps, schema_editor):
pass
def generate_uuids(apps, schema_editor):
"""
Generate new UUIDs for eac... | 4,064 | Python | .py | 116 | 19.37931 | 99 | 0.443655 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,550 | 0005_logitem.py | wger-project_wger/wger/nutrition/migrations/0005_logitem.py | # Generated by Django 3.1 on 2020-08-25 10:29
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import wger.nutrition.models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0004_auto_20200819_2310'),
]
operations = [
... | 2,469 | Python | .py | 67 | 19.253731 | 95 | 0.423686 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,551 | 0003_auto_20170118_2308.py | wger-project_wger/wger/nutrition/migrations/0003_auto_20170118_2308.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2017-01-18 22:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0002_auto_20170101_1538'),
]
operations = [
migrations.RemoveField(
model_name='ingredient',
... | 356 | Python | .py | 13 | 21.153846 | 49 | 0.60472 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,552 | 0023_fiber_spelling.py | wger-project_wger/wger/nutrition/migrations/0023_fiber_spelling.py | # Generated by Django 4.2.6 on 2024-05-21 19:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0022_add_remote_id_increase_author_field_length'),
]
operations = [
migrations.RenameField(
model_name='ingredient',
... | 545 | Python | .py | 18 | 21.944444 | 73 | 0.586998 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,553 | 0017_remove_nutritionplan_language_alter_logitem_meal.py | wger-project_wger/wger/nutrition/migrations/0017_remove_nutritionplan_language_alter_logitem_meal.py | # Generated by Django 4.1.9 on 2023-09-27 20:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0016_alter_logitem_options_and_more'),
]
operations = [
migrations.RemoveField(
mod... | 973 | Python | .py | 30 | 22.1 | 82 | 0.559105 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,554 | 0006_auto_20201201_0653.py | wger-project_wger/wger/nutrition/migrations/0006_auto_20201201_0653.py | # Generated by Django 3.1.3 on 2020-12-01 05:53
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0005_logitem'),
]
operations = [
migrations.AlterField(
model_name='logitem',
... | 432 | Python | .py | 14 | 24.142857 | 74 | 0.649758 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,555 | 0016_alter_logitem_options_and_more.py | wger-project_wger/wger/nutrition/migrations/0016_alter_logitem_options_and_more.py | # Generated by Django 4.1.9 on 2023-07-27 07:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0015_alter_ingredient_creation_date_and_more'),
]
operations = [
migrations.AlterModelOptions(
name='logitem',
o... | 675 | Python | .py | 22 | 21.863636 | 70 | 0.57319 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,556 | 0015_alter_ingredient_creation_date_and_more.py | wger-project_wger/wger/nutrition/migrations/0015_alter_ingredient_creation_date_and_more.py | # Generated by Django 4.1.7 on 2023-06-08 11:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0014_license_information'),
]
operations = [
migrations.AlterField(
model_name='ingredient',
name='creat... | 615 | Python | .py | 18 | 25.833333 | 79 | 0.615514 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,557 | 0024_remove_ingredient_status.py | wger-project_wger/wger/nutrition/migrations/0024_remove_ingredient_status.py | # Generated by Django 4.2.13 on 2024-05-24 17:28
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0023_fiber_spelling'),
]
operations = [
migrations.RemoveField(
model_name='ingredien... | 1,677 | Python | .py | 51 | 20.352941 | 86 | 0.503083 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,558 | 0010_logitem_meal.py | wger-project_wger/wger/nutrition/migrations/0010_logitem_meal.py | # Generated by Django 3.2.7 on 2021-10-03 19:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0009_meal_name'),
]
operations = [
migrations.AddField(
model_name='logitem',
... | 641 | Python | .py | 21 | 20.571429 | 60 | 0.548701 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,559 | 0018_nutritionplan_goal_carbs_nutritionplan_goal_energy_and_more.py | wger-project_wger/wger/nutrition/migrations/0018_nutritionplan_goal_carbs_nutritionplan_goal_energy_and_more.py | # Generated by Django 4.1.9 on 2023-09-29 21:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0017_remove_nutritionplan_language_alter_logitem_meal'),
]
operations = [
migrations.AddField(
model_name='nutrition... | 973 | Python | .py | 28 | 25.321429 | 79 | 0.603613 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,560 | 0001_initial.py | wger-project_wger/wger/nutrition/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from django.db import models, migrations
import wger.utils.fields
from django.conf import settings
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0001_initial'),
... | 14,916 | Python | .py | 403 | 16.995037 | 172 | 0.362327 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,561 | 0004_auto_20200819_2310.py | wger-project_wger/wger/nutrition/migrations/0004_auto_20200819_2310.py | # Generated by Django 3.1 on 2020-08-19 21:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0003_auto_20170118_2308'),
]
operations = [
migrations.AlterField(
model_name='nutritionplan',
name='descr... | 609 | Python | .py | 18 | 24.166667 | 108 | 0.572402 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,562 | 0011_alter_logitem_datetime.py | wger-project_wger/wger/nutrition/migrations/0011_alter_logitem_datetime.py | # Generated by Django 3.2.13 on 2022-05-16 09:27
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0010_logitem_meal'),
]
operations = [
migrations.AlterField(
model_name='logitem',
... | 508 | Python | .py | 16 | 24 | 89 | 0.618852 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,563 | 0014_license_information.py | wger-project_wger/wger/nutrition/migrations/0014_license_information.py | # Generated by Django 4.2 on 2023-04-07 15:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0013_ingredient_image'),
]
operations = [
migrations.AddField(
model_name='image',
name='license_author_ur... | 3,885 | Python | .py | 108 | 22.861111 | 92 | 0.513385 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,564 | 0019_alter_image_license_author_and_more.py | wger-project_wger/wger/nutrition/migrations/0019_alter_image_license_author_and_more.py | # Generated by Django 4.2.6 on 2023-11-23 19:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0018_nutritionplan_goal_carbs_nutritionplan_goal_energy_and_more'),
]
operations = [
migrations.AlterField(
model_na... | 3,490 | Python | .py | 86 | 28.27907 | 200 | 0.564412 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,565 | 0008_auto_20210102_1446.py | wger-project_wger/wger/nutrition/migrations/0008_auto_20210102_1446.py | # Generated by Django 3.1.3 on 2021-01-02 13:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0007_auto_20201214_0013'),
]
operations = [
migrations.AlterField(
model_name='ingr... | 1,140 | Python | .py | 33 | 24.575758 | 89 | 0.581142 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,566 | 0020_full_text_search.py | wger-project_wger/wger/nutrition/migrations/0020_full_text_search.py | # Generated by Django 3.2.15 on 2022-12-07 19:31
import django.contrib.postgres.indexes
import django.contrib.postgres.search
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0019_alter_image_license_author_and_more'),
]
operations =... | 552 | Python | .py | 16 | 27.5 | 70 | 0.659774 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,567 | 0009_meal_name.py | wger-project_wger/wger/nutrition/migrations/0009_meal_name.py | # Generated by Django 3.2.6 on 2021-08-22 20:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0008_auto_20210102_1446'),
]
operations = [
migrations.AddField(
model_name='meal',
name='name',
... | 585 | Python | .py | 18 | 22.833333 | 107 | 0.559503 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,568 | 0007_auto_20201214_0013.py | wger-project_wger/wger/nutrition/migrations/0007_auto_20201214_0013.py | # Generated by Django 3.1.4 on 2020-12-13 23:13
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0006_auto_20201201_0653'),
]
operations = [
migrations.CreateMode... | 2,907 | Python | .py | 84 | 22.321429 | 95 | 0.519688 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,569 | 0002_auto_20170101_1538.py | wger-project_wger/wger/nutrition/migrations/0002_auto_20170101_1538.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-01-01 14:38
from django.db import migrations, models
def copy_username(apps, schema_editor):
"""
Copies the exercise name to the original name field
"""
Ingredient = apps.get_model('nutrition', 'Ingredient')
for ingredient in Ingredient... | 1,761 | Python | .py | 48 | 28.020833 | 88 | 0.607038 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,570 | 0012_alter_ingredient_license_author.py | wger-project_wger/wger/nutrition/migrations/0012_alter_ingredient_license_author.py | # Generated by Django 4.1.5 on 2023-02-05 11:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0011_alter_logitem_datetime'),
]
operations = [
migrations.AlterField(
model_name='ingredient',
name='li... | 667 | Python | .py | 19 | 25.052632 | 138 | 0.569876 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,571 | 0022_add_remote_id_increase_author_field_length.py | wger-project_wger/wger/nutrition/migrations/0022_add_remote_id_increase_author_field_length.py | # Generated by Django 4.2.6 on 2024-05-18 07:31
from django.db import migrations, models
from wger.nutrition.models import Source
def set_external_id(apps, schema_editor):
"""Set remote_id, used by imported ingredients (OFF, etc.)"""
Ingredient = apps.get_model('nutrition', 'Ingredient')
Ingredient.obj... | 1,643 | Python | .py | 46 | 25.23913 | 89 | 0.568911 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,572 | 0021_add_fibers_field.py | wger-project_wger/wger/nutrition/migrations/0021_add_fibers_field.py | # Generated by Django 4.2.6 on 2024-05-18 09:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutrition', '0020_full_text_search'),
]
operations = [
migrations.AddField(
model_name='nutritionplan',
name='goal_fi... | 408 | Python | .py | 13 | 24.230769 | 63 | 0.629156 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,573 | calculator.py | wger-project_wger/wger/nutrition/views/calculator.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,395 | Python | .py | 92 | 31.967391 | 92 | 0.706134 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,574 | ingredient.py | wger-project_wger/wger/nutrition/views/ingredient.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,998 | Python | .py | 142 | 30.478873 | 97 | 0.71396 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,575 | bmi.py | wger-project_wger/wger/nutrition/views/bmi.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,260 | Python | .py | 137 | 37.087591 | 90 | 0.58597 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,576 | plan.py | wger-project_wger/wger/nutrition/views/plan.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 ... | 9,946 | Python | .py | 268 | 29.83209 | 100 | 0.602533 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,577 | unit.py | wger-project_wger/wger/nutrition/views/unit.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,822 | Python | .py | 120 | 27.383333 | 78 | 0.709625 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,578 | unit_ingredient.py | wger-project_wger/wger/nutrition/views/unit_ingredient.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,002 | Python | .py | 114 | 30.070175 | 97 | 0.715803 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,579 | serializers.py | wger-project_wger/wger/nutrition/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... | 8,447 | Python | .py | 297 | 19.643098 | 99 | 0.569523 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,580 | filtersets.py | wger-project_wger/wger/nutrition/api/filtersets.py | # Third Party
from django_filters import rest_framework as filters
# wger
from wger.nutrition.models import (
Ingredient,
LogItem,
)
class LogItemFilterSet(filters.FilterSet):
class Meta:
model = LogItem
fields = {
'datetime': ['exact', 'date'],
'amount': ['exact']... | 1,270 | Python | .py | 41 | 21.268293 | 52 | 0.462418 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,581 | views.py | wger-project_wger/wger/nutrition/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 ... | 13,613 | Python | .py | 406 | 26.036946 | 98 | 0.640664 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,582 | test_calories_calculator.py | wger-project_wger/wger/nutrition/tests/test_calories_calculator.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,934 | Python | .py | 141 | 33.865248 | 100 | 0.646162 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,583 | test_pdf.py | wger-project_wger/wger/nutrition/tests/test_pdf.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,260 | Python | .py | 78 | 34.166667 | 96 | 0.666983 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,584 | test_meal_item.py | wger-project_wger/wger/nutrition/tests/test_meal_item.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,079 | Python | .py | 29 | 34.137931 | 78 | 0.743786 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,585 | test_search_api.py | wger-project_wger/wger/nutrition/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,467 | Python | .py | 93 | 40.956989 | 80 | 0.677694 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,586 | test_tasks.py | wger-project_wger/wger/nutrition/tests/test_tasks.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,463 | Python | .py | 183 | 30.393443 | 114 | 0.597877 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,587 | test_weight_unit.py | wger-project_wger/wger/nutrition/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... | 3,858 | Python | .py | 94 | 35.723404 | 93 | 0.705457 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,588 | test_usda.py | wger-project_wger/wger/nutrition/tests/test_usda.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... | 9,874 | Python | .py | 261 | 21.172414 | 103 | 0.412133 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,589 | test_weight_unit_ingredient.py | wger-project_wger/wger/nutrition/tests/test_weight_unit_ingredient.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,822 | Python | .py | 114 | 27.517544 | 95 | 0.665943 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,590 | test_nutritional_values.py | wger-project_wger/wger/nutrition/tests/test_nutritional_values.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,696 | Python | .py | 81 | 23.567901 | 98 | 0.594626 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,591 | test_ingredient.py | wger-project_wger/wger/nutrition/tests/test_ingredient.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... | 18,057 | Python | .py | 464 | 30.489224 | 96 | 0.631612 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,592 | test_meal.py | wger-project_wger/wger/nutrition/tests/test_meal.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,159 | Python | .py | 32 | 33.1875 | 78 | 0.740642 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,593 | test_nutritional_cache.py | wger-project_wger/wger/nutrition/tests/test_nutritional_cache.py | # Django
from django.contrib.auth.models import User
from django.core.cache import cache
# wger
from wger.core.models import Language
from wger.core.tests.base_testcase import WgerTestCase
from wger.nutrition.models import (
Meal,
MealItem,
NutritionPlan,
)
from wger.utils.cache import cache_mapper
class... | 3,664 | Python | .py | 86 | 34.825581 | 87 | 0.66844 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,594 | test_ingredient_overview.py | wger-project_wger/wger/nutrition/tests/test_ingredient_overview.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,035 | Python | .py | 93 | 35.709677 | 96 | 0.661056 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,595 | test_copy_plan.py | wger-project_wger/wger/nutrition/tests/test_copy_plan.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,316 | Python | .py | 61 | 31.229508 | 84 | 0.668452 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,596 | test_bmi.py | wger-project_wger/wger/nutrition/tests/test_bmi.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,686 | Python | .py | 156 | 35.083333 | 89 | 0.657955 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,597 | test_off.py | wger-project_wger/wger/nutrition/tests/test_off.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,875 | Python | .py | 98 | 30.591837 | 82 | 0.611643 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,598 | test_generator.py | wger-project_wger/wger/nutrition/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,134 | Python | .py | 26 | 40.384615 | 78 | 0.76951 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |
22,599 | test_plan.py | wger-project_wger/wger/nutrition/tests/test_plan.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,276 | Python | .py | 29 | 41.103448 | 78 | 0.76409 | wger-project/wger | 3,065 | 570 | 221 | AGPL-3.0 | 9/5/2024, 5:13:18 PM (Europe/Amsterdam) |