author
int64
658
755k
date
stringdate
2012-06-12 08:34:29
2024-07-22 14:51:21
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
listlengths
1
16
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
701,855
07.11.2017 14:04:11
-46,800
b31add9b02656cf0d01b596802be6c72257754db
Refactoring - functional decomposition of TextBoxDrawer
[ { "change_type": "MODIFY", "old_path": "csunplugged/utils/TextBoxDrawer.py", "new_path": "csunplugged/utils/TextBoxDrawer.py", "diff": "@@ -9,6 +9,10 @@ from bidi.algorithm import get_display\nfrom uniseg.linebreak import line_break_units\nimport arabic_reshaper\nimport math\n+from utils.errors.Text...
Python
MIT License
uccser/cs-unplugged
Refactoring - functional decomposition of TextBoxDrawer
701,855
07.11.2017 14:05:25
-46,800
8e8c1b326c71ad1e2810bc806d443bf3e9e0a8ed
Add custom exceptions for TextBoxDrawer This is a skeleton for now, with docstrings etc. to follow
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/utils/errors/TextBoxDrawerErrors.py", "diff": "+class TextBoxDrawerError(Exception):\n+ pass\n+\n+class MissingSVGFile(TextBoxDrawerError):\n+ pass\n+\n+class TextBoxNotFoundInSVG(TextBoxDrawerError):\n+ pass\n+\n+class MissingSVGVie...
Python
MIT License
uccser/cs-unplugged
Add custom exceptions for TextBoxDrawer This is a skeleton for now, with docstrings etc. to follow
701,855
07.11.2017 14:06:55
-46,800
3f3e815ad238cf669cf6f4cf42277101e1916483
Add initial unit tests for TextBoxDrawer
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/utils/text_box_drawer/__init__.py", "diff": "+\"\"\"Module for tests of TextBoxDrawer.\"\"\"\n" }, { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/utils/text_box_drawer/test_text_box_dra...
Python
MIT License
uccser/cs-unplugged
Add initial unit tests for TextBoxDrawer
701,855
07.11.2017 16:02:18
-46,800
3a05bca8903bd763b7fe5af8d5ce0f8709ba52a6
Style fixes and general tidyups of TextBoxDrawer
[ { "change_type": "MODIFY", "old_path": "csunplugged/utils/TextBoxDrawer.py", "new_path": "csunplugged/utils/TextBoxDrawer.py", "diff": "@@ -31,7 +31,7 @@ FONT_MAX_ORD = {\nclass TextBox(object):\n\"\"\"Class to store position/dimensions of a text box.\"\"\"\n- def __init__(self, vertices, width, hei...
Python
MIT License
uccser/cs-unplugged
Style fixes and general tidyups of TextBoxDrawer
701,855
07.11.2017 16:04:59
-46,800
59e32c0ccebb1a03debcdd20e1720dd92b8cde74
Add more unit tests to increase coverage of TextBoxDrawer
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/utils/text_box_drawer/test_text_box_drawer.py", "new_path": "csunplugged/tests/utils/text_box_drawer/test_text_box_drawer.py", "diff": "@@ -13,6 +13,7 @@ from utils.errors.TextBoxDrawerErrors import (\nBASE_PATH = \"tests/utils/text_box_drawe...
Python
MIT License
uccser/cs-unplugged
Add more unit tests to increase coverage of TextBoxDrawer
701,855
07.11.2017 18:20:45
-46,800
c33be360ee7f5cb92aaa04dd902a99ce8fbedf1b
Add designer/developer documentation for dynamic text rendering
[ { "change_type": "MODIFY", "old_path": "docs/source/developer/resources.rst", "new_path": "docs/source/developer/resources.rst", "diff": "@@ -146,3 +146,144 @@ Thumbnail image\n------------------------------------------------------------------------------\nThis image should represent the resource, a...
Python
MIT License
uccser/cs-unplugged
Add designer/developer documentation for dynamic text rendering
701,855
07.11.2017 18:35:31
-46,800
0c25981e0a8f7f61142574e7cd5c68e74ee47cd9
Fix bug in rotated textbox test
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/utils/text_box_drawer/test_text_box_drawer.py", "new_path": "csunplugged/tests/utils/text_box_drawer/test_text_box_drawer.py", "diff": "@@ -250,7 +250,7 @@ class TextBoxDrawerTest(SimpleTestCase):\nwidth = 200\nheight = 100\nrotation = 90\n- ...
Python
MIT License
uccser/cs-unplugged
Fix bug in rotated textbox test
701,860
08.11.2017 17:31:32
-46,800
7c7e03e1914fa06c36052e02fe43e3015c94cbb7
add images to Great Sorted Treasure Hunt Sorted lessons (fixes
[ { "change_type": "ADD", "old_path": "csunplugged/static/img/topics/marbles.png", "new_path": "csunplugged/static/img/topics/marbles.png", "diff": "Binary files /dev/null and b/csunplugged/static/img/topics/marbles.png differ\n" }, { "change_type": "ADD", "old_path": "csunplugged/static/i...
Python
MIT License
uccser/cs-unplugged
add images to Great Sorted Treasure Hunt Sorted lessons (fixes #672)
701,855
08.11.2017 18:59:03
-46,800
e9998ce3b367d70a54a5c2f8150048e7be1634ee
Add test definitions for TranslatableModelLoader unit tests
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/utils/translatable_model_loader/test_TranslatableModelLoader.py", "diff": "+\"\"\"Test class for TranslatableModelLoader.\"\"\"\n+\n+from django.test import SimpleTestCase\n+\n+class TranslatableModelLoaderTest(SimpleTestCase):...
Python
MIT License
uccser/cs-unplugged
Add test definitions for TranslatableModelLoader unit tests
701,855
08.11.2017 19:29:57
-46,800
2f317cc14738d2e94a1e3b1d7bd2ee669762c08e
Add unit tests for TranslatableModelLoader.get_yaml_translations
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/utils/translatable_model_loader/assets/de/translation.yaml", "diff": "+model1:\n+ field1: de value 1-1\n+ field2: de value 1-2\n+\n+model2:\n+ field1: de value 2-1\n+ field2: de value 2-2\n" }, { "change_type": "ADD", ...
Python
MIT License
uccser/cs-unplugged
Add unit tests for TranslatableModelLoader.get_yaml_translations
701,855
08.11.2017 21:24:52
-46,800
2848d7b4eba08784532bf060205203bf63bdb1f5
Implement unit tests for remaining functions of TranslatableModelLoader
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/utils/translatable_model_loader/assets/de/translation.md", "diff": "+# German Heading\n+\n+German Content\n" }, { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/utils/translatable_model_l...
Python
MIT License
uccser/cs-unplugged
Implement unit tests for remaining functions of TranslatableModelLoader
701,855
08.11.2017 21:39:11
-46,800
847045e923ed3e5778ad159d88648d256cdb7206
Minor tidy-ups on TranslatableModelLoader unit tests
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/utils/translatable_model_loader/test_TranslatableModelLoader.py", "new_path": "csunplugged/tests/utils/translatable_model_loader/test_TranslatableModelLoader.py", "diff": "@@ -8,17 +8,13 @@ from utils.errors.CouldNotFindYAMLFileError import C...
Python
MIT License
uccser/cs-unplugged
Minor tidy-ups on TranslatableModelLoader unit tests
701,855
08.11.2017 21:40:31
-46,800
474c5f977ab5b035567f0107c457622c51189ac6
Add new topics migration file
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/topics/migrations/0086_auto_20171108_0840.py", "diff": "+# -*- coding: utf-8 -*-\n+# Generated by Django 1.11.5 on 2017-11-08 08:40\n+from __future__ import unicode_literals\n+\n+from django.db import migrations, models\n+\n+\n+class...
Python
MIT License
uccser/cs-unplugged
Add new topics migration file
701,860
09.11.2017 12:19:36
-46,800
acb40a10eac51fb3ac0d5be9fa3aa58a3caa1da5
Add images for Divide and Conquer lesson (fixes
[ { "change_type": "ADD", "old_path": "csunplugged/static/img/topics/cards-0.png", "new_path": "csunplugged/static/img/topics/cards-0.png", "diff": "Binary files /dev/null and b/csunplugged/static/img/topics/cards-0.png differ\n" }, { "change_type": "ADD", "old_path": "csunplugged/static/i...
Python
MIT License
uccser/cs-unplugged
Add images for Divide and Conquer lesson (fixes #673)
701,855
10.11.2017 12:05:50
-46,800
078af51d8c9c9d21a26d2fbce5d66eaee1ed0e66
Use real TranslatableModel instance rather than mocking functionality
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/utils/translatable_model_loader/test_TranslatableModelLoader.py", "new_path": "csunplugged/tests/utils/translatable_model_loader/test_TranslatableModelLoader.py", "diff": "\"\"\"Test class for TranslatableModelLoader.\"\"\"\nfrom django.test ...
Python
MIT License
uccser/cs-unplugged
Use real TranslatableModel instance rather than mocking functionality
701,855
10.11.2017 12:26:36
-46,800
fd903f21123144cdefecbe52a909af5ae3b61c2c
Remove vinaigrette from resources application
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/models.py", "new_path": "csunplugged/resources/models.py", "diff": "\"\"\"Models for the resources application.\"\"\"\nfrom django.db import models\n-import vinaigrette\nclass Resource(models.Model):\n@@ -22,7 +21,3 @@ class Resource(mode...
Python
MIT License
uccser/cs-unplugged
Remove vinaigrette from resources application
701,855
11.11.2017 14:32:59
-46,800
b1890aefa437cc4d20af6aeb3c951aef6b2c3999
Override LANGUAGES setting in test environment This setting is used by django-modeltranslation to determine which translation fields to add to TranslatableModels, when creating the database, which should not depend on the production value of this setting. The production value is saved in PRODUCTION_LANGUAGES, in case any tests need to access it.
[ { "change_type": "MODIFY", "old_path": "csunplugged/config/settings/testing.py", "new_path": "csunplugged/config/settings/testing.py", "diff": "@@ -71,3 +71,15 @@ INSTALLED_APPS += [ # noqa: F405\n\"test_without_migrations\",\n\"dev.apps.DevConfig\",\n]\n+\n+# Save production LANGUAGES setting in ca...
Python
MIT License
uccser/cs-unplugged
Override LANGUAGES setting in test environment This setting is used by django-modeltranslation to determine which translation fields to add to TranslatableModels, when creating the database, which should not depend on the production value of this setting. The production value is saved in PRODUCTION_LANGUAGES, in case any tests need to access it.
701,855
11.11.2017 14:36:40
-46,800
8ceadf61bda145a2afe4025a17e300626605c298
Fix MockTranslatableModel modeltranslation registration in unit tests
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/utils/translatable_model_loader/test_TranslatableModelLoader.py", "new_path": "csunplugged/tests/utils/translatable_model_loader/test_TranslatableModelLoader.py", "diff": "\"\"\"Test class for TranslatableModelLoader.\"\"\"\n-from django.test...
Python
MIT License
uccser/cs-unplugged
Fix MockTranslatableModel modeltranslation registration in unit tests
701,855
12.11.2017 11:59:23
-46,800
f7a76cb2b3f04a725167e84f581da6d832341ec8
Minor requested changes on PR
[ { "change_type": "MODIFY", "old_path": "crowdin_content.yaml", "new_path": "crowdin_content.yaml", "diff": "\"project_identifier\": \"cs-unplugged\"\n\"api_key_env\": CROWDIN_API_KEY\n\"base_path\": \"\"\n-#\"base_url\" : \"\"\n#\n# Choose file structure in crowdin\n" }, { "change_type": "MO...
Python
MIT License
uccser/cs-unplugged
Minor requested changes on PR
701,855
12.11.2017 13:10:51
-46,800
154b1ac694fb96a5e4908e7586c019da50d05ba2
Add unit tests for translate_url template tag
[ { "change_type": "MODIFY", "old_path": "csunplugged/config/templatetags/translate_url.py", "new_path": "csunplugged/config/templatetags/translate_url.py", "diff": "from django.template import Library\nfrom django.core.urlresolvers import resolve, reverse\nfrom django.utils.translation import activat...
Python
MIT License
uccser/cs-unplugged
Add unit tests for translate_url template tag
701,855
12.11.2017 13:22:43
-46,800
d5b249423c8bc4907a8ca31127663d821be62a48
Clean up crowdin_content.yaml configuration file
[ { "change_type": "MODIFY", "old_path": "crowdin_content.yaml", "new_path": "crowdin_content.yaml", "diff": "-#\n-# Your crowdin's credentials\n-#\n-\"project_identifier\": \"cs-unplugged\"\n-\"api_key_env\": CROWDIN_API_KEY\n-\"base_path\": \"\"\n+# Project settings\n+project_identifier: \"cs-unplug...
Python
MIT License
uccser/cs-unplugged
Clean up crowdin_content.yaml configuration file
701,855
12.11.2017 13:29:21
-46,800
3f97fde54d53252ac168b031af66d7168784baf9
Remove unnecessary initialisers from BaseResourceLoader subclasses
[ { "change_type": "MODIFY", "old_path": "csunplugged/topics/management/commands/_AgeGroupsLoader.py", "new_path": "csunplugged/topics/management/commands/_AgeGroupsLoader.py", "diff": "@@ -10,10 +10,6 @@ from topics.models import AgeGroup\nclass AgeGroupsLoader(TranslatableModelLoader):\n\"\"\"Loader...
Python
MIT License
uccser/cs-unplugged
Remove unnecessary initialisers from BaseResourceLoader subclasses
701,855
13.11.2017 13:46:21
-46,800
5fe9a41ed004684f27bed63c0b4ed52da0e9d8ff
Improve docstring for TranslatableModelLoader.get_yaml_translations
[ { "change_type": "MODIFY", "old_path": "csunplugged/utils/TranslatableModelLoader.py", "new_path": "csunplugged/utils/TranslatableModelLoader.py", "diff": "@@ -17,13 +17,18 @@ class TranslatableModelLoader(BaseLoader):\ndef get_yaml_translations(self, filename, field_map=None, required_slugs=[], req...
Python
MIT License
uccser/cs-unplugged
Improve docstring for TranslatableModelLoader.get_yaml_translations
701,855
15.11.2017 13:42:30
-46,800
45e7d703dba9798d093f8569868decca0babd093
Modify config file to include in-context translation pseudo-languages
[ { "change_type": "MODIFY", "old_path": "csunplugged/config/settings/base.py", "new_path": "csunplugged/config/settings/base.py", "diff": "@@ -12,6 +12,10 @@ https://docs.djangoproject.com/en/dev/ref/settings/\nimport environ\nimport os.path\n+# Add custom languages not provided by Django\n+import dj...
Python
MIT License
uccser/cs-unplugged
Modify config file to include in-context translation pseudo-languages
701,855
15.11.2017 18:29:14
-46,800
7d5a7dea43e4c206beee5d49901ef0a192d57d49
Add scripts for in-context l10n pseudo-translation download
[ { "change_type": "ADD", "old_path": "csunplugged/__init__.py", "new_path": "csunplugged/__init__.py", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/download.sh", "diff": "+#!/bin/bash\n+\n+crowdin download -c \"crowdin_content.yaml\" ...
Python
MIT License
uccser/cs-unplugged
Add scripts for in-context l10n pseudo-translation download
701,855
15.11.2017 18:31:06
-46,800
096e208f82aba61247c082f373799f941c011a32
Update crowdin config to include .po files and pseudo-language mapping
[ { "change_type": "MODIFY", "old_path": "crowdin_content.yaml", "new_path": "crowdin_content.yaml", "diff": "@@ -10,10 +10,28 @@ files: [\n{\nsource: \"/csunplugged/topics/content/en/**/*.yaml\",\ntranslation: \"/csunplugged/topics/content/%two_letters_code%/**/%original_file_name%\",\n-\n+ languages...
Python
MIT License
uccser/cs-unplugged
Update crowdin config to include .po files and pseudo-language mapping
701,855
15.11.2017 18:34:07
-46,800
101df6da091c9d42a9ab0519637dc9e06ffdedb0
Add javascript for in-context translation
[ { "change_type": "MODIFY", "old_path": "csunplugged/templates/base.html", "new_path": "csunplugged/templates/base.html", "diff": "{% get_language_info for LANGUAGE_CODE as current_language %}\n{% get_available_languages as LANGUAGES %}\n+\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<!-- Required m...
Python
MIT License
uccser/cs-unplugged
Add javascript for in-context translation
701,855
15.11.2017 19:02:50
-46,800
3a8542e909ad64caef3fc90990cc321122601604
Update migrations for in-context localisation
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/topics/migrations/0087_auto_20171115_0551.py", "diff": "+# -*- coding: utf-8 -*-\n+# Generated by Django 1.11.5 on 2017-11-15 05:51\n+from __future__ import unicode_literals\n+\n+import django.contrib.postgres.fields\n+import django....
Python
MIT License
uccser/cs-unplugged
Update migrations for in-context localisation
701,855
15.11.2017 19:03:20
-46,800
e0587d44fa08812204658093ebe710f3cdb49622
Update makemigrations command to suppress prompts
[ { "change_type": "MODIFY", "old_path": "csu", "new_path": "csu", "diff": "@@ -126,7 +126,7 @@ defhelp -dev flush 'Run Django flush command.'\n# Run Django makemigrations command\ndev_makemigrations() {\necho \"Creating database migrations...\"\n- docker-compose exec django /docker_venv/bin/python3 ....
Python
MIT License
uccser/cs-unplugged
Update makemigrations command to suppress prompts
701,860
16.11.2017 18:07:09
-46,800
347a268d17c10880790799e07f0290f05d3d862a
Adds images for lesson (fixes
[ { "change_type": "ADD", "old_path": "csunplugged/static/img/topics/binary_search_books.png", "new_path": "csunplugged/static/img/topics/binary_search_books.png", "diff": "Binary files /dev/null and b/csunplugged/static/img/topics/binary_search_books.png differ\n" }, { "change_type": "ADD", ...
Python
MIT License
uccser/cs-unplugged
Adds images for lesson (fixes #672)
701,855
17.11.2017 00:14:05
-46,800
b8d948fb6196bc47b0fa700b18f87675955d56ae
Remove unnecessary imports in download_xliff.py script
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/download_xliff.py", "new_path": "infrastructure/crowdin/download_xliff.py", "diff": "import os\nimport requests\n-import csunplugged\n-from csunplugged.config.settings.base import INCONTEXT_L10N_PSEUDOLANGUAGE\nINCONTEXT_L10N_PSEUDOLANGU...
Python
MIT License
uccser/cs-unplugged
Remove unnecessary imports in download_xliff.py script
701,855
17.11.2017 00:14:54
-46,800
17aabb0fdd2e70842f90848029643fbc9af0599b
Add script to upload source files to Crowdin for translation
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/upload-crowdin-source-files.sh", "diff": "+# Deal with SSH KEYS here\n+ set -e\n+\n+REPO=\"git@github.com:uccser/cs-unplugged.git\"\n+CLONED_REPO_DIR=\"source-upload-cloned-repo\"\n+SOURCE_BRANCH=\"develop\"\n+CROWDIN_CONF...
Python
MIT License
uccser/cs-unplugged
Add script to upload source files to Crowdin for translation
701,855
17.11.2017 00:15:36
-46,800
98630105ee8f90ff087b6e4fcf6b80d294434bc8
Add script to update the in-context pseudo translation files in github
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/update-incontext-l10n.sh", "diff": "+# Deal with SSH KEYS here\n+ set -e\n+\n+REPO=\"git@github.com:jordangriffiths01/crowdin_testing.git\"\n+CLONED_REPO_DIR=\"incontext-download-cloned-repo\"\n+CROWDIN_CONFIG_FILE=\"crowd...
Python
MIT License
uccser/cs-unplugged
Add script to update the in-context pseudo translation files in github
701,855
17.11.2017 00:17:13
-46,800
1f64df178880233f2f81733e6c08049d0ee7b225
Add script to pull completed translations from Crowdin and push them GitHub This script is intended to be run as a cron job, possible on GCE. Completed translations are added to a new branch off develop (one branch per language). A pull request is automatically opened for developer review.
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/get_complete_translations.py", "diff": "+import os\n+import requests\n+from lxml import etree\n+import sys\n+from django.conf import settings\n+from django.utils import translation\n+\n+settings.configure()\n+\n+API_KEY = ...
Python
MIT License
uccser/cs-unplugged
Add script to pull completed translations from Crowdin and push them GitHub This script is intended to be run as a cron job, possible on GCE. Completed translations are added to a new branch off develop (one branch per language). A pull request is automatically opened for developer review.
701,855
17.11.2017 17:44:09
-46,800
4a35806f41800eed1f6d1ebec7519721cc84a968
Update crowdin scripts, WIP
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/get_complete_translations.py", "new_path": "infrastructure/crowdin/get_complete_translations.py", "diff": "@@ -4,6 +4,7 @@ from lxml import etree\nimport sys\nfrom django.conf import settings\nfrom django.utils import translation\n+impor...
Python
MIT License
uccser/cs-unplugged
Update crowdin scripts, WIP
701,855
17.11.2017 17:45:30
-46,800
f9d76e18cc76ed9d689372ff56c59fb0f3bd3e5f
Update crowdin_content.yaml to use osx-locale instead of two-letter-code osx-locale is the closest mapping to the locale codes that Django uses, and does not restrict us from using multiple languages with the same two letter code Details on osx locale codes can be found here:
[ { "change_type": "MODIFY", "old_path": "crowdin_content.yaml", "new_path": "crowdin_content.yaml", "diff": "# Project settings\nproject_identifier: \"cs-unplugged\"\napi_key_env: \"CROWDIN_API_KEY\"\n-base_path: \"\"\n# Preserve directory tree during upload\npreserve_hierarchy: true\n@@ -9,28 +8,34 ...
Python
MIT License
uccser/cs-unplugged
Update crowdin_content.yaml to use osx-locale instead of two-letter-code osx-locale is the closest mapping to the locale codes that Django uses, and does not restrict us from using multiple languages with the same two letter code Details on osx locale codes can be found here: https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
701,855
18.11.2017 09:46:47
-46,800
ca14916b4148bfe434d3107991f1a2b7330a2d55
Add script to list files on crowdin that are no longer required
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "diff": "+# Deal with SSH KEYS here\n+ set -e\n+\n+ REPO=\"git@github.com:uccser/cs-unplugged.git\"\n+ CLONED_REPO_DIR=\"get-unused-crowdin-files-cloned-repo\"\n+ SOURCE_BRANCH=\"develop\"\n+ ...
Python
MIT License
uccser/cs-unplugged
Add script to list files on crowdin that are no longer required
701,855
18.11.2017 12:35:31
-46,800
e59927ec872ef6b7f59a8d55dee1bea613083b3e
Add config file for crowdin scripts
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/config.sh", "diff": "+# CS Unplugged repo\n+REPO=\"git@github.com:uccser/cs-unplugged.git\"\n+\n+# Branch for upload of source content to crowdin\n+TRANSLATION_SOURCE_BRANCH=\"develop\"\n+\n+# Branch that new translations ...
Python
MIT License
uccser/cs-unplugged
Add config file for crowdin scripts
701,855
18.11.2017 12:36:06
-46,800
20bb62804a3cf9bc0b9dbaa8e38449e0ad7e102d
Add util function to reset existing git directory to like-clone state
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/utils.sh", "diff": "+reset_repo() {\n+ repo_dir=$1\n+ branch=$2\n+\n+ git -C \"${repo_dir}\" fetch --prune\n+ git -C \"${repo_dir}\" reset --hard\n+ git -C \"${repo_dir}\" clean -d --force\n+\n+ # Either create branch, or ...
Python
MIT License
uccser/cs-unplugged
Add util function to reset existing git directory to like-clone state
701,855
18.11.2017 12:36:53
-46,800
1d3f0fe01d47f086a87503e440ea22130a8dc842
Update scripts to not clone repo every time
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "new_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "diff": "-# Deal with SSH KEYS here\nset -e\n+set -x\n+\n+source config.sh\n+source utils.sh\n- REPO=\"git@github.com:uccser/cs-unplugged.git...
Python
MIT License
uccser/cs-unplugged
Update scripts to not clone repo every time
701,855
18.11.2017 12:38:12
-46,800
8b7bc59062118a8b6bf61d91bc1f560e5f09c9c1
Remove old script files
[ { "change_type": "DELETE", "old_path": "infrastructure/crowdin/download.sh", "new_path": null, "diff": "-#!/bin/bash\n-\n-crowdin download -c \"crowdin_content.yaml\" # .md/.yaml files\n" }, { "change_type": "DELETE", "old_path": "infrastructure/crowdin/upload.sh", "new_path": null, ...
Python
MIT License
uccser/cs-unplugged
Remove old script files
701,855
18.11.2017 14:10:04
-46,800
3f8090753d683a4daef099a2004254194770fd7d
Swap incorrect two_letters_code mapping to osx_locale
[ { "change_type": "MODIFY", "old_path": "crowdin_content.yaml", "new_path": "crowdin_content.yaml", "diff": "@@ -10,7 +10,7 @@ files: [\nsource: \"/csunplugged/topics/content/en/**/*.yaml\",\ntranslation: \"/csunplugged/topics/content/%osx_locale%/**/%original_file_name%\",\nlanguages_mapping: {\n- t...
Python
MIT License
uccser/cs-unplugged
Swap incorrect two_letters_code mapping to osx_locale
701,855
18.11.2017 14:30:30
-46,800
514209d1a08318594aad0e444360a0f694094e40
Temporarily modify translation source/target branch to translation-pipeline
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/config.sh", "new_path": "infrastructure/crowdin/config.sh", "diff": "REPO=\"git@github.com:uccser/cs-unplugged.git\"\n# Branch for upload of source content to crowdin\n-TRANSLATION_SOURCE_BRANCH=\"develop\"\n+TRANSLATION_SOURCE_BRANCH=\"...
Python
MIT License
uccser/cs-unplugged
Temporarily modify translation source/target branch to translation-pipeline
701,855
18.11.2017 14:31:39
-46,800
555c9310ea1b2dc78f7011d12d1aeea0440ae939
Fix bug in logic determining whether file is translated
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/get_complete_translations.py", "new_path": "infrastructure/crowdin/get_complete_translations.py", "diff": "@@ -46,7 +46,7 @@ def process_item(item, parent_path=None):\nif filename.endswith(\".po\"):\nreturn [path]\n- if item.find(\"phras...
Python
MIT License
uccser/cs-unplugged
Fix bug in logic determining whether file is translated
701,855
18.11.2017 14:32:38
-46,800
936b66c13b26b86010bb673a1d8de536e88ace9e
Small fixes to crowdin scripts
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/update-completed-translations.sh", "new_path": "infrastructure/crowdin/update-completed-translations.sh", "diff": "@@ -8,8 +8,6 @@ REPO=\"git@github.com:jordangriffiths01/crowdin_testing.git\"\nCLONED_REPO_DIR=\"translations-download-clo...
Python
MIT License
uccser/cs-unplugged
Small fixes to crowdin scripts
701,855
18.11.2017 21:06:47
-46,800
6d2753ce7ff4b12c5b4542434e9511938f306a43
Add pipefail flag to shell scripts
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "new_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "diff": "set -e\nset -x\n+set -o pipefail\nsource config.sh\nsource utils.sh\n" }, { "change_type": "MODIFY", "old_path": "infras...
Python
MIT License
uccser/cs-unplugged
Add pipefail flag to shell scripts
701,855
18.11.2017 21:07:14
-46,800
24dc40c8fffbbd6d60752f7cd0dbb5702092dc17
Remove unnecessary imports from get_complete_translations.py
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/get_complete_translations.py", "new_path": "infrastructure/crowdin/get_complete_translations.py", "diff": "@@ -2,11 +2,8 @@ import os\nimport requests\nfrom lxml import etree\nimport sys\n-from django.conf import settings\n-from django.u...
Python
MIT License
uccser/cs-unplugged
Remove unnecessary imports from get_complete_translations.py
701,855
18.11.2017 21:08:21
-46,800
4441711dc64e258a4b2d8d06627b5bb86fa44a5c
(WIP) Add setup-instance.sh script for configuring GCE instance
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/setup-instance.sh", "diff": "+# TODO: PAth manipulations?\n+\n+tar -xvzf crowdin.tar.gz\n+\n+gcloud kms decrypt --ciphertext-file=uccser_bot_token.enc --plaintext-file=uccser_bot_token --location=global --keyring=csunplugg...
Python
MIT License
uccser/cs-unplugged
(WIP) Add setup-instance.sh script for configuring GCE instance
701,855
18.11.2017 21:09:10
-46,800
6f6d2cfdd151954fccc1b80052ce3376e138f97a
Add encrypted secrets files for crowdin automation
[ { "change_type": "ADD", "old_path": "infrastructure/crowdin_api_key.enc", "new_path": "infrastructure/crowdin_api_key.enc", "diff": "Binary files /dev/null and b/infrastructure/crowdin_api_key.enc differ\n" }, { "change_type": "ADD", "old_path": "infrastructure/gce_key.enc", "new_pat...
Python
MIT License
uccser/cs-unplugged
Add encrypted secrets files for crowdin automation
701,855
19.11.2017 17:22:23
-46,800
cf61f81916fca41933ff549a71e3a2bb127ee794
Move crowdin bot python scripts into python package
[ { "change_type": "ADD", "old_path": "infrastructure/crowdin/crowdin_bot_python_package/crowdin_bot/__init__.py", "new_path": "infrastructure/crowdin/crowdin_bot_python_package/crowdin_bot/__init__.py", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "infrastructur...
Python
MIT License
uccser/cs-unplugged
Move crowdin bot python scripts into python package
701,855
19.11.2017 17:23:35
-46,800
1a09dac4a9724996d99a281058ccc03526a2622b
Modify scripts to use python package
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "new_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "diff": "@@ -16,7 +16,7 @@ fi\ncd \"${CLONED_REPO_DIR}\"\n-python3 ../get_crowdin_files.py | sort > all_crowdin_files\n+python3 -m crowdin_bo...
Python
MIT License
uccser/cs-unplugged
Modify scripts to use python package
701,855
19.11.2017 17:29:55
-46,800
610f0587d3aa58121f9c0ca58592fd1fef940b8f
Fix language map bug
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/update-completed-translations.sh", "new_path": "infrastructure/crowdin/update-completed-translations.sh", "diff": "@@ -16,6 +16,8 @@ else\ngit clone \"${REPO}\" \"${CLONED_REPO_DIR}\" --branch ${TRANSLATION_TARGET_BRANCH}\nfi\n+python3 -...
Python
MIT License
uccser/cs-unplugged
Fix language map bug
701,855
19.11.2017 20:08:15
-46,800
91166fab8ffb306aaad5ddcd15af2fcd1b3ab96e
Restructure crowdin_bot directory structure
[ { "change_type": "RENAME", "old_path": "infrastructure/crowdin/config.sh", "new_path": "infrastructure/crowdin/crowdin_bot_scripts/crowdin-bot-config.sh", "diff": "" }, { "change_type": "RENAME", "old_path": "infrastructure/crowdin/get-unused-crowdin-files.sh", "new_path": "infrastru...
Python
MIT License
uccser/cs-unplugged
Restructure crowdin_bot directory structure
701,855
19.11.2017 20:08:49
-46,800
1df76d89dc20bd3da0af67b99a5b25143fe735c1
Update setup-instance.sh script (almost production ready)
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/setup-instance.sh", "new_path": "infrastructure/crowdin/setup-instance.sh", "diff": "-# TODO: PAth manipulations?\n+set -e\n-tar -xvzf crowdin.tar.gz\n+SECRETS_DIR=\"crowdin_bot_secrets\"\n+SCRIPTS_DIR=\"crowdin_bot_scripts\"\n+PYTHON_PA...
Python
MIT License
uccser/cs-unplugged
Update setup-instance.sh script (almost production ready)
701,855
19.11.2017 20:09:30
-46,800
65e77fe33c3ffb44f262eb2187364be83c4a0c36
Add deployment script for crowdin_bot
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/deploy.sh", "diff": "+set -e\n+\n+PROJECT=\"cs-unplugged-dev\"\n+ZONE=\"us-central1-c\"\n+\n+INSTANCE_NAME=\"crowdin-bot\"\n+MACHINE_TYPE=\"f1-micro\"\n+SERVICE_ACCOUNT=\"uccser-bot@cs-unplugged-dev.iam.gserviceaccount.com...
Python
MIT License
uccser/cs-unplugged
Add deployment script for crowdin_bot
701,855
20.11.2017 01:02:38
-46,800
e17e73232f4187208eb0da5a225d6586f902fd14
Add bash shebang lines
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/crowdin_bot_scripts/crowdin-bot-config.sh", "new_path": "infrastructure/crowdin/crowdin_bot_scripts/crowdin-bot-config.sh", "diff": "+#!/usr/bin/env bash\n+\n# CS Unplugged repo\nREPO=\"git@github.com:uccser/cs-unplugged.git\"\n" }, ...
Python
MIT License
uccser/cs-unplugged
Add bash shebang lines
701,855
20.11.2017 01:03:01
-46,800
915534a748448897e4145efbaf3de5d6dba21db5
Bugfix in download_xliff
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/crowdin_bot_python_package/crowdin_bot/download_xliff.py", "new_path": "infrastructure/crowdin/crowdin_bot_python_package/crowdin_bot/download_xliff.py", "diff": "@@ -10,7 +10,6 @@ XLIFF_DIR = os.path.join(CONTENT_ROOT, 'xliff')\ndef dow...
Python
MIT License
uccser/cs-unplugged
Bugfix in download_xliff
701,855
20.11.2017 01:03:36
-46,800
ef178f38fa9608e8f7dd1c3adeb266764924574e
Refine setup-instance.sh, add crontab configuration
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/setup-instance.sh", "new_path": "infrastructure/crowdin/setup-instance.sh", "diff": "@@ -5,23 +5,23 @@ SCRIPTS_DIR=\"crowdin_bot_scripts\"\nPYTHON_PACKAGE_DIR=\"crowdin_bot_python_package\"\n# Install packages\n-apt-get install git --yes...
Python
MIT License
uccser/cs-unplugged
Refine setup-instance.sh, add crontab configuration
701,855
20.11.2017 01:07:35
-46,800
1c45d579767d7cfbeafd0b76259e26ab18721c01
Tidyup deploy script
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/deploy.sh", "new_path": "infrastructure/crowdin/deploy.sh", "diff": "@@ -21,11 +21,4 @@ tar cvzf crowdin-bot.tar.gz crowdin_bot_python_package crowdin_bot_scripts crowd\ngcloud beta compute scp setup-instance.sh crowdin-bot.tar.gz \"${IN...
Python
MIT License
uccser/cs-unplugged
Tidyup deploy script
701,855
20.11.2017 01:08:06
-46,800
e7baf320c9d3325bd0edef810d3761110d81e670
Add encrypt-secrets.sh script
[ { "change_type": "ADD", "old_path": null, "new_path": "infrastructure/crowdin/encrypt-secrets.sh", "diff": "+# Encrypt file \"gce_key\", a github ssh private key attached to the uccser bot account\n+gcloud kms encrypt --plaintext-file=gce_key --ciphertext-file=gce_key.enc --keyring=csunplugged-keyri...
Python
MIT License
uccser/cs-unplugged
Add encrypt-secrets.sh script
701,855
20.11.2017 10:42:41
-46,800
0ee3a9260eed36bd7b0476476a87de065155b0e8
Bugfix in pull-incontext script
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/crowdin_bot_scripts/crowdin-bot-pull-incontext.sh", "new_path": "infrastructure/crowdin/crowdin_bot_scripts/crowdin-bot-pull-incontext.sh", "diff": "@@ -33,7 +33,7 @@ git merge origin/$IN_CONTEXT_L10N_TARGET_BRANCH --quiet --no-edit\ncro...
Python
MIT License
uccser/cs-unplugged
Bugfix in pull-incontext script
701,855
20.11.2017 10:43:18
-46,800
dd0224452deaa61215189815b44db0d27a57ba3e
Add retry on scp command to wait for instance to be up
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/deploy.sh", "new_path": "infrastructure/crowdin/deploy.sh", "diff": "@@ -8,6 +8,7 @@ MACHINE_TYPE=\"f1-micro\"\nSERVICE_ACCOUNT=\"uccser-bot@cs-unplugged-dev.iam.gserviceaccount.com\"\n# Create instance\n+echo \"Creating instance ${INSTA...
Python
MIT License
uccser/cs-unplugged
Add retry on scp command to wait for instance to be up
701,855
20.11.2017 10:43:59
-46,800
c272348c21c332eb31a28a2ba2a447c8a9aea3b8
Bugfix - wrong logfile name
[ { "change_type": "MODIFY", "old_path": "infrastructure/crowdin/setup-instance.sh", "new_path": "infrastructure/crowdin/setup-instance.sh", "diff": "@@ -71,6 +71,6 @@ sudo pip3 install \"${PYTHON_PACKAGE_DIR}\"/\ncrontab << EOF\nSHELL=/bin/bash\n4 12 * * * PATH=\\$PATH:/usr/local/bin; source crowdin-...
Python
MIT License
uccser/cs-unplugged
Bugfix - wrong logfile name
701,855
20.11.2017 18:14:25
-46,800
31e105ce31dc3a2243c5bfddab3609ef71c1b026
Add ResourceParameter class and subclasses to store parameter info
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/resources/utils/resource_parameters.py", "diff": "+from lxml import etree\n+from django.utils.translation import ugettext as _\n+\n+class ResourceParameter(object):\n+ def __init__(self, name=\"\", description=\"\"):\n+ self.name = n...
Python
MIT License
uccser/cs-unplugged
Add ResourceParameter class and subclasses to store parameter info
701,855
20.11.2017 18:57:14
-46,800
326de93b0985c4bdf71ff532212e1b322bb38962
Update generators to use ResourceParameter class to store param info
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "new_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "diff": "@@ -4,13 +4,23 @@ from PIL import Image, ImageDraw\nfrom resources.utils.BaseResourc...
Python
MIT License
uccser/cs-unplugged
Update generators to use ResourceParameter class to store param info
701,855
20.11.2017 19:03:23
-46,800
8cf225cae6e3b57fa068ec56373905835f9bc64d
Add automatic selection of default value if not provided
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/resource_parameters.py", "new_path": "csunplugged/resources/utils/resource_parameters.py", "diff": "@@ -20,7 +20,7 @@ class EnumResourceParameter(ResourceParameter):\nself.values = values\nself.default = default\nif self.default not...
Python
MIT License
uccser/cs-unplugged
Add automatic selection of default value if not provided
701,855
20.11.2017 19:04:07
-46,800
fbfd1a3551fe144641f874dc5f505297fae06215
Modify BaseResource class to use ResourceParameter class
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "new_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "diff": "@@ -12,9 +12,25 @@ from django.conf import settings\nfrom django.template.loader import render_to_string\nfrom django.contrib.st...
Python
MIT License
uccser/cs-unplugged
Modify BaseResource class to use ResourceParameter class
701,855
20.11.2017 19:05:22
-46,800
a7acd83e33ee95437f0c9c22f600f14bb30b9593
Update resource view to render generated options form
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/views.py", "new_path": "csunplugged/resources/views.py", "diff": "@@ -41,6 +41,7 @@ def resource(request, resource_slug):\n\"\"\"\nresource = get_object_or_404(Resource, slug=resource_slug)\ncontext = dict()\n+ context[\"options_html\"] =...
Python
MIT License
uccser/cs-unplugged
Update resource view to render generated options form
701,855
21.11.2017 12:23:40
-46,800
6f975b364301349bb19ea254b66f5d67008f4fdd
Add new exception for >1 value provided for a single valued parameter
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/utils/errors/QueryParameterMultipleValuesError.py", "diff": "+\"\"\"Exception for missing query parameter.\"\"\"\n+\n+\n+class QueryParameterMultipleValuesError(Exception):\n+ \"\"\"Exception for missing parameter in a GET query.\"\"...
Python
MIT License
uccser/cs-unplugged
Add new exception for >1 value provided for a single valued parameter
701,855
21.11.2017 12:25:23
-46,800
c8d3f66527ec117dfc72b8048396db0d8eb8bfe5
Add classes for text/integer fields and single/multi value support
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/resource_parameters.py", "new_path": "csunplugged/resources/utils/resource_parameters.py", "diff": "from lxml import etree\nfrom django.utils.translation import ugettext as _\n+from utils.errors.QueryParameterMissingError import Que...
Python
MIT License
uccser/cs-unplugged
Add classes for text/integer fields and single/multi value support
701,855
21.11.2017 12:26:28
-46,800
01027bed39736470fe4a4d4bbf7e836faff1e144
Move parameters definitions to get_options functions, add local options
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "new_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "diff": "@@ -12,9 +12,15 @@ from django.conf import settings\nfrom django.template.loader import render_to_string\nfrom django.contrib.st...
Python
MIT License
uccser/cs-unplugged
Move parameters definitions to get_options functions, add local options
701,855
21.11.2017 12:28:23
-46,800
2ab4c6b1efc757b50394b71ea2257394ae8bfed3
Remove unrequired "slug" parameter
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "new_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "diff": "@@ -77,7 +77,7 @@ class BaseResourceGenerator(ABC):\ndef get_additional_options(self):\nreturn {}\n- def get_options_html(self, ...
Python
MIT License
uccser/cs-unplugged
Remove unrequired "slug" parameter
701,855
21.11.2017 12:28:52
-46,800
4ec19556518df9de8ab37af67605d0feb0dd1c15
Update all generator classes
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "new_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "diff": "@@ -14,7 +14,8 @@ BARCODE_LENGTH_VALUES = {\nclass BarcodeChecksumPosterResourceGene...
Python
MIT License
uccser/cs-unplugged
Update all generator classes
701,855
21.11.2017 12:30:21
-46,800
658389af2822349cd845dd3a37233b8385fbac1e
Update resource template to remove local generation options These are now defined in the generator class
[ { "change_type": "MODIFY", "old_path": "csunplugged/templates/resources/resource.html", "new_path": "csunplugged/templates/resources/resource.html", "diff": "{{ options_html|safe }}\n- {% if debug %}\n<hr>\n- <h3>{% trans \"Local Generation Only\" %}</h3>\n-\n- <fieldset>\n- <legend>{% trans \"Heade...
Python
MIT License
uccser/cs-unplugged
Update resource template to remove local generation options These are now defined in the generator class
701,855
21.11.2017 19:20:49
-46,800
9d91666b0ac2a7255c83d32038bea95c271a41d9
Minor improvements as part of resource option restructure
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "new_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "diff": "@@ -59,7 +59,8 @@ class BaseResourceGenerator(ABC):\n\"header_text\": TextResourceParameter(\nname=\"header_text\",\ndescription...
Python
MIT License
uccser/cs-unplugged
Minor improvements as part of resource option restructure
701,855
21.11.2017 19:24:23
-46,800
30611917acc7c9f11334646194fb804a62cc2c47
Remove references to resource webpage templates
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/content/structure/resources.yaml", "new_path": "csunplugged/resources/content/structure/resources.yaml", "diff": "sorting-network:\nname: Sorting Network\n- webpage-template: resources/sorting-network.html\ngenerator-module: SortingNetwor...
Python
MIT License
uccser/cs-unplugged
Remove references to resource webpage templates
701,855
21.11.2017 19:25:44
-46,800
4abc9bca085414369aee6c4543a98fcf55cb5bc6
Ongoing changes to resource generators as part of options restructure
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "new_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "diff": "@@ -8,7 +8,7 @@ from resources.utils.resource_parameters import EnumResourceParamete...
Python
MIT License
uccser/cs-unplugged
Ongoing changes to resource generators as part of options restructure
701,855
21.11.2017 19:26:34
-46,800
f8073fd72c6d0ba8d56bd2f244e9c7da34f0737c
Add handling of QueryParameterMultipleValueError in views.py
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/views.py", "new_path": "csunplugged/resources/views.py", "diff": "@@ -71,6 +71,8 @@ def generate_resource(request, resource_slug):\nraise Http404(e) from e\nexcept QueryParameterInvalidError as e:\nraise Http404(e) from e\n+ except QueryP...
Python
MIT License
uccser/cs-unplugged
Add handling of QueryParameterMultipleValueError in views.py
701,855
21.11.2017 19:27:38
-46,800
526355c263bf7d2834fd8591c9e6337dded038ba
Add test utils module with run_parameter_smoke_tests function
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/resources/generators/utils.py", "diff": "+import sys\n+\n+from resources.utils.resource_parameters import (\n+ EnumResourceParameter,\n+ TextResourceParameter,\n+ IntegerResourceParameter,\n+ BoolResourceParameter,\n+)\n+\n+def...
Python
MIT License
uccser/cs-unplugged
Add test utils module with run_parameter_smoke_tests function
701,855
21.11.2017 19:29:40
-46,800
589e1c4cbc95f04f3056b1b8d93ec5ce57bf5f17
Add generator unit-tests to run smoke tests for all parameter values
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/resources/generators/test_barcode_checksum_poster.py", "new_path": "csunplugged/tests/resources/generators/test_barcode_checksum_poster.py", "diff": "@@ -2,7 +2,7 @@ from django.http import QueryDict\nfrom django.test import tag\nfrom tests.B...
Python
MIT License
uccser/cs-unplugged
Add generator unit-tests to run smoke tests for all parameter values
701,855
21.11.2017 19:33:59
-46,800
b777658988f7471a85364fe21ae1d5af3081135a
Remove unrequired kwarg header_text from resource_valid_configurations
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/management/commands/makeresources.py", "new_path": "csunplugged/resources/management/commands/makeresources.py", "diff": "@@ -10,6 +10,7 @@ from django.conf import settings\nfrom resources.models import Resource\nfrom resources.utils.get_...
Python
MIT License
uccser/cs-unplugged
Remove unrequired kwarg header_text from resource_valid_configurations
701,855
22.11.2017 09:49:41
-46,800
1aad072b2c9ee66ecf99095bd6ee62296f0d6fd0
Add HTML info box to match original formatting in binary-windows.md
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/content/en/binary-windows.md", "new_path": "csunplugged/resources/content/en/binary-windows.md", "diff": "This resource contains printouts for binary numbers activities.\n-Note: This resource should be printed double sided on short edge.\...
Python
MIT License
uccser/cs-unplugged
Add HTML info box to match original formatting in binary-windows.md
701,855
22.11.2017 10:03:51
-46,800
f7c4cfe36c392ca3d26741a6443b911a4e34dfcd
Update resource view tests for new resource structure
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/resources/ResourcesTestDataGenerator.py", "new_path": "csunplugged/tests/resources/ResourcesTestDataGenerator.py", "diff": "@@ -6,7 +6,7 @@ from resources.models import Resource\nclass ResourcesTestDataGenerator:\n\"\"\"Class for generating t...
Python
MIT License
uccser/cs-unplugged
Update resource view tests for new resource structure
701,855
22.11.2017 11:02:21
-46,800
8f141763821063dbd9fcfaa9bf8fbf4ce49e2831
Move get_options_html function to utils module
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "new_path": "csunplugged/resources/utils/BaseResourceGenerator.py", "diff": "@@ -42,8 +42,9 @@ class BaseResourceGenerator(ABC):\nif requested_options:\nself.process_requested_options(requested_options)\n-...
Python
MIT License
uccser/cs-unplugged
Move get_options_html function to utils module
701,855
22.11.2017 11:03:31
-46,800
72597f21d643502c5b0752ef66f8caa0ef1d435d
Change get_options() etc. to be class methods
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "new_path": "csunplugged/resources/generators/BarcodeChecksumPosterResourceGenerator.py", "diff": "@@ -14,7 +14,8 @@ BARCODE_LENGTH_VALUES = {\nclass BarcodeChecksumPosterResourceGene...
Python
MIT License
uccser/cs-unplugged
Change get_options() etc. to be class methods
701,855
22.11.2017 11:04:57
-46,800
ff27db7002c843f9bbed01e8bb950379d2dd7505
Add/update unit tests for BaseResourceGenerator
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/resources/BareResourceGenerator.py", "new_path": "csunplugged/tests/resources/BareResourceGenerator.py", "diff": "@@ -24,3 +24,7 @@ class BareResourceGenerator(BaseResourceGenerator):\nA dictionary of the one page for the resource.\n\"\"\"\nr...
Python
MIT License
uccser/cs-unplugged
Add/update unit tests for BaseResourceGenerator
701,855
22.11.2017 12:03:37
-46,800
12915a19cc860d29e80ce33be4fb318b4536f2ed
Add unit tests for get_options_html.py
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/resources/utils/test_get_options_html.py", "diff": "+from tests.BaseTest import BaseTest\n+from resources.utils.get_options_html import get_options_html\n+from resources.utils.resource_parameters import EnumResourceParameter\n+...
Python
MIT License
uccser/cs-unplugged
Add unit tests for get_options_html.py
701,855
22.11.2017 12:13:14
-46,800
0336f446393618ba6ab30f4d6ee8f8295e97a87e
Update Resource migrations to reflect model changes
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/resources/migrations/0010_auto_20171121_2304.py", "diff": "+# -*- coding: utf-8 -*-\n+# Generated by Django 1.11.5 on 2017-11-21 23:04\n+from __future__ import unicode_literals\n+\n+import django.contrib.postgres.fields\n+from django...
Python
MIT License
uccser/cs-unplugged
Update Resource migrations to reflect model changes
701,855
22.11.2017 13:49:51
-46,800
0c7840525611e85af131a1b1d43d7d02dda76f27
Add base class process_requested_values, raises NotImplementedError
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/resource_parameters.py", "new_path": "csunplugged/resources/utils/resource_parameters.py", "diff": "@@ -18,6 +18,9 @@ class ResourceParameter(object):\nfieldset.append(legend)\nreturn fieldset\n+ def process_requested_values(self):\...
Python
MIT License
uccser/cs-unplugged
Add base class process_requested_values, raises NotImplementedError
701,855
22.11.2017 13:50:56
-46,800
415a6eed4aeb53c0400326e5a6258ddb2ff39402
Add test skeleton for resource_parameters unit tests
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/tests/resources/utils/test_resource_parameters.py", "diff": "+class ResourceParametersTest(BaseTest):\n+\n+ def test_resource_parameter_base_process_requested_values(self):\n+ pass\n+\n+ def test_resource_parameter_base_process_value...
Python
MIT License
uccser/cs-unplugged
Add test skeleton for resource_parameters unit tests
701,855
22.11.2017 15:06:35
-46,800
43b94adc33cef099cd25b05481b8455b7f3ad28f
Fix process_requested_values function signature on base class
[ { "change_type": "MODIFY", "old_path": "csunplugged/resources/utils/resource_parameters.py", "new_path": "csunplugged/resources/utils/resource_parameters.py", "diff": "@@ -18,7 +18,7 @@ class ResourceParameter(object):\nfieldset.append(legend)\nreturn fieldset\n- def process_requested_values(self):\...
Python
MIT License
uccser/cs-unplugged
Fix process_requested_values function signature on base class
701,855
22.11.2017 15:07:07
-46,800
dfc24cd3214b8b417882536bc96b1c94ff90dfbb
Implement unit tests for resource_parameters.py
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/resources/utils/test_resource_parameters.py", "new_path": "csunplugged/tests/resources/utils/test_resource_parameters.py", "diff": "+from tests.BaseTest import BaseTest\n+from lxml import etree\n+from utils.errors.QueryParameterMissingError i...
Python
MIT License
uccser/cs-unplugged
Implement unit tests for resource_parameters.py
701,855
22.11.2017 16:25:08
-46,800
b68887f025eed37ab2e27bdfdf321933e63d1c77
Increase language field max len to 10 (some codes are not xx-yy format)
[ { "change_type": "MODIFY", "old_path": "csunplugged/utils/TranslatableModel.py", "new_path": "csunplugged/utils/TranslatableModel.py", "diff": "@@ -29,7 +29,7 @@ class UntranslatedModelManager(models.Manager):\nclass TranslatableModel(models.Model):\n\"\"\"Abstract base class for models needing to s...
Python
MIT License
uccser/cs-unplugged
Increase language field max len to 10 (some codes are not xx-yy format)
701,855
22.11.2017 16:26:16
-46,800
730074b8b0d00e65e6e3f1e58212b0185995822e
Add missing topics migration to remove de/fr columns
[ { "change_type": "ADD", "old_path": null, "new_path": "csunplugged/topics/migrations/0087_auto_20171122_0324.py", "diff": "+# -*- coding: utf-8 -*-\n+# Generated by Django 1.11.5 on 2017-11-22 03:24\n+from __future__ import unicode_literals\n+\n+import django.contrib.postgres.fields\n+from django.db...
Python
MIT License
uccser/cs-unplugged
Add missing topics migration to remove de/fr columns
701,855
22.11.2017 16:27:46
-46,800
bdf307f82ffba032c3b8834dbade8a077fba901b
Run unit tests without migrations; add smoke test for loading content
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -15,6 +15,7 @@ install:\njobs:\ninclude:\n- stage: test\n+ script: ./csu ci load_content\nscript: ./csu ci test_general\n- script: ./csu ci test_resources\n- script: ./csu ci test_management\n" }, { ...
Python
MIT License
uccser/cs-unplugged
Run unit tests without migrations; add smoke test for loading content
701,855
22.11.2017 16:39:26
-46,800
20a0ee7026bf3cb6fa6586b51072f7c6dd68791b
Update docs to reflect separating ./csu start and ./csu update
[ { "change_type": "MODIFY", "old_path": "docs/source/getting_started/helper_commands.rst", "new_path": "docs/source/getting_started/helper_commands.rst", "diff": "@@ -259,7 +259,14 @@ More details for each command can be found on this page.\n``start``\n================================================...
Python
MIT License
uccser/cs-unplugged
Update docs to reflect separating ./csu start and ./csu update
701,855
22.11.2017 17:42:47
-46,800
b49d516f007c508c6fd2ea42efc7c74d54e08464
Fix failing makeresourcethumbnail tests (previously failing silently)
[ { "change_type": "MODIFY", "old_path": "csunplugged/tests/resources/management/test_makeresourcethumbnails_command.py", "new_path": "csunplugged/tests/resources/management/test_makeresourcethumbnails_command.py", "diff": "@@ -13,7 +13,7 @@ class MakeResourceThumnbailsCommandTest(BaseTestWithDB):\nsu...
Python
MIT License
uccser/cs-unplugged
Fix failing makeresourcethumbnail tests (previously failing silently)
701,855
22.11.2017 17:55:50
-46,800
c59062e96ba50f02f2023dd7a62f7e15f6803f34
Modify deployment scripts to call ./csu update after ./csu start
[ { "change_type": "MODIFY", "old_path": "infrastructure/dev-deploy/deploy-resources-1.sh", "new_path": "infrastructure/dev-deploy/deploy-resources-1.sh", "diff": "# Deploy generated resource files to the development static file server.\n./csu start\n+./csu update\n# Generate static PDF resources for ...
Python
MIT License
uccser/cs-unplugged
Modify deployment scripts to call ./csu update after ./csu start
701,855
22.11.2017 18:12:41
-46,800
72e8a3be78aee6be37266071aa32bb52dba8fdb2
Move static/collectstatic calls to specific ci commands
[ { "change_type": "MODIFY", "old_path": "csu", "new_path": "csu", "diff": "@@ -316,6 +316,8 @@ cmd_logs() {\ndefhelp logs 'View logs.'\nci_test_general() {\n+ dev_static\n+ dev_collect_static\ndocker-compose exec django /docker_venv/bin/coverage run --rcfile=/cs-unplugged/.coveragerc ./manage.py test...
Python
MIT License
uccser/cs-unplugged
Move static/collectstatic calls to specific ci commands
701,855
22.11.2017 18:21:14
-46,800
498d0f1446fb98ba3ed406202857e896702f71dc
Fix typo in travis.yaml
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -16,7 +16,7 @@ jobs:\ninclude:\n- stage: test\nscript: ./csu ci load_content\n- script: ./csu ci test_general\n+ - script: ./csu ci test_general\n- script: ./csu ci test_resources\n- script: ./csu ci test_ma...
Python
MIT License
uccser/cs-unplugged
Fix typo in travis.yaml