PyKubeGrader 0.0.7__tar.gz → 0.0.8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pykubegrader-0.0.7/src/PyKubeGrader.egg-info → pykubegrader-0.0.8}/PKG-INFO +1 -1
- {pykubegrader-0.0.7 → pykubegrader-0.0.8/src/PyKubeGrader.egg-info}/PKG-INFO +1 -1
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/SOURCES.txt +2 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/mc_widget.py +1 -1
- pykubegrader-0.0.8/src/pykubegrader/seed/__init__.py +5 -0
- pykubegrader-0.0.8/src/pykubegrader/seed/hash_seed.py +25 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/select_base.py +1 -1
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/.coveragerc +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/.github/workflows/main.yml +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/.gitignore +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/.readthedocs.yml +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/AUTHORS.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/CHANGELOG.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/CONTRIBUTING.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/LICENSE.txt +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/README.md +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/README.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/Makefile +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/_static/.gitignore +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/_static/Drexel_blue_Logo_square_Dark.png +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/_static/Drexel_blue_Logo_square_Light.png +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/_static/custom.css +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/authors.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/changelog.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/conf.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/contributing.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/index.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/license.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/readme.rst +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/docs/requirements.txt +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/pyproject.toml +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/setup.cfg +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/setup.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/dependency_links.txt +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/not-zip-safe +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/requires.txt +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/top_level.txt +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/__init__.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/info_widget.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/misc.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/multi_select_base.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/reading_base.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/reading_widget.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/select_many_widget.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/telemetry.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/types_widget.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/src/pykubegrader/validate.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/tests/conftest.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/tests/import_test.py +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/tox.ini +0 -0
- {pykubegrader-0.0.7 → pykubegrader-0.0.8}/uv.lock +0 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
import hashlib
|
2
|
+
|
3
|
+
def hash_to_seed(input_string):
|
4
|
+
"""
|
5
|
+
Hash a string into a small integer seed less than 500.
|
6
|
+
|
7
|
+
Parameters:
|
8
|
+
input_string (str): The string to hash.
|
9
|
+
|
10
|
+
Returns:
|
11
|
+
int: A seed value (0 <= seed < 500).
|
12
|
+
"""
|
13
|
+
# Ensure the input is a string
|
14
|
+
input_string = str(input_string)
|
15
|
+
|
16
|
+
# Create a SHA-256 hash of the string
|
17
|
+
hash_object = hashlib.sha256(input_string.encode())
|
18
|
+
|
19
|
+
# Convert the hash to an integer
|
20
|
+
large_number = int.from_bytes(hash_object.digest(), 'big')
|
21
|
+
|
22
|
+
# Reduce the number to a value less than 500
|
23
|
+
small_seed = large_number % 500
|
24
|
+
|
25
|
+
return small_seed
|
@@ -49,7 +49,7 @@ class SelectQuestion:
|
|
49
49
|
|
50
50
|
self.layout = pn.Column(
|
51
51
|
f"# Question {self.question_number}: {title}",
|
52
|
-
*(pn.
|
52
|
+
*(pn.Column(desc_widget, pn.Row(dropdown)) for desc_widget, dropdown in widget_pairs),
|
53
53
|
self.submit_button,
|
54
54
|
)
|
55
55
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|