evalmc 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
evalmc/submit.py ADDED
@@ -0,0 +1,88 @@
1
+ #!/usr/bin/env python3
2
+ """evalmc submit — upload a policy zip file to MyoChallenge (no Docker required)."""
3
+
4
+ import sys
5
+ import zipfile
6
+ from pathlib import Path
7
+
8
+ import click
9
+ import requests
10
+
11
+ from .login import get_default_host, get_stored_auth
12
+
13
+
14
+ def _validate_zip(path: Path):
15
+ """Raise ClickException if zip is missing policy.py."""
16
+ if not path.exists():
17
+ raise click.ClickException(f"File not found: {path}")
18
+ if not path.suffix == ".zip":
19
+ raise click.ClickException("File must be a .zip archive")
20
+ try:
21
+ with zipfile.ZipFile(path) as zf:
22
+ names = zf.namelist()
23
+ except zipfile.BadZipFile:
24
+ raise click.ClickException("Invalid zip file")
25
+ if "policy.py" not in names:
26
+ raise click.ClickException(
27
+ "Zip must contain policy.py at its root.\n"
28
+ "See https://github.com/MyoHub/mc26eval for the policy contract."
29
+ )
30
+
31
+
32
+ @click.command()
33
+ @click.argument("zip_path", type=click.Path(exists=True, path_type=Path))
34
+ @click.option("-p", "--phase", required=True, type=int, help="Challenge phase number")
35
+ @click.option("-t", "--task", required=True, help="Challenge task name (e.g. tabletennis)")
36
+ @click.option("-e", "--email", default=None, help="Team email (uses stored credentials if omitted)")
37
+ @click.option("-a", "--auth-token", default=None, help="Auth token (uses stored credentials if omitted)")
38
+ def submit(zip_path, phase, task, email, auth_token):
39
+ """Submit a policy zip to MyoChallenge (no Docker required).
40
+
41
+ ZIP_PATH must be a .zip file with policy.py at its root.
42
+
43
+ Example:
44
+ evalmc submit my_policy.zip -p 1 -t tabletennis
45
+ """
46
+ _validate_zip(zip_path)
47
+
48
+ api_base = get_default_host()
49
+
50
+ if not email or not auth_token:
51
+ stored = get_stored_auth()
52
+ if not stored:
53
+ raise click.ClickException(
54
+ "No credentials found. Run 'evalmc login' or pass --email and --auth-token."
55
+ )
56
+ email = email or stored["email"]
57
+ auth_token = auth_token or stored["auth_token"]
58
+
59
+ click.echo(f"Submitting {zip_path.name} → task={task} phase={phase}")
60
+
61
+ with open(zip_path, "rb") as f:
62
+ try:
63
+ resp = requests.post(
64
+ f"{api_base}/submit/zip",
65
+ data={"task": task, "phase": phase, "email": email, "auth_token": auth_token},
66
+ files={"policy_zip": (zip_path.name, f, "application/zip")},
67
+ timeout=120,
68
+ )
69
+ resp.raise_for_status()
70
+ except requests.exceptions.HTTPError as e:
71
+ detail = ""
72
+ try:
73
+ detail = e.response.json().get("detail", "")
74
+ except Exception:
75
+ pass
76
+ raise click.ClickException(f"Server error {e.response.status_code}: {detail}")
77
+ except requests.exceptions.RequestException as e:
78
+ raise click.ClickException(f"Request failed: {e}")
79
+
80
+ data = resp.json()
81
+ click.echo(f"Submitted successfully!")
82
+ click.echo(f" Submission ID : {data['submission_id']}")
83
+ click.echo(f" Type : {data['submission_type']}")
84
+ click.echo(f" Status : {data['status']}")
85
+
86
+
87
+ if __name__ == "__main__":
88
+ submit()
evalmc/submit_onnx.py ADDED
@@ -0,0 +1,62 @@
1
+ #!/usr/bin/env python3
2
+ """evalmc submit-onnx — upload a standalone ONNX model to MyoChallenge."""
3
+
4
+ from pathlib import Path
5
+
6
+ import click
7
+ import requests
8
+
9
+ from .login import get_default_host, get_stored_auth
10
+
11
+
12
+ @click.command("submit-onnx")
13
+ @click.argument("onnx_path", type=click.Path(exists=True, path_type=Path))
14
+ @click.option("-p", "--phase", required=True, type=int, help="Challenge phase number")
15
+ @click.option("-t", "--task", required=True, help="Challenge task name (e.g. elbowflexion)")
16
+ @click.option("-e", "--email", default=None, help="Team email")
17
+ @click.option("-a", "--auth-token", default=None, help="Auth token")
18
+ def submit_onnx(onnx_path, phase, task, email, auth_token):
19
+ """Submit a standalone ONNX model (no policy.py required).
20
+
21
+ Example:
22
+ evalmc submit-onnx my_model.onnx -t elbowflexion -p 1
23
+ """
24
+ if onnx_path.suffix.lower() != ".onnx":
25
+ raise click.ClickException("File must have .onnx extension")
26
+
27
+ api_base = get_default_host()
28
+ if not email or not auth_token:
29
+ stored = get_stored_auth()
30
+ if not stored:
31
+ raise click.ClickException(
32
+ "No credentials found. Run 'evalmc login' or pass --email and --auth-token."
33
+ )
34
+ email = email or stored["email"]
35
+ auth_token = auth_token or stored["auth_token"]
36
+
37
+ click.echo(f"Submitting {onnx_path.name} → task={task} phase={phase}")
38
+
39
+ with open(onnx_path, "rb") as f:
40
+ try:
41
+ resp = requests.post(
42
+ f"{api_base}/submit/onnx",
43
+ data={"task": task, "phase": phase, "email": email, "auth_token": auth_token},
44
+ files={"onnx_model": (onnx_path.name, f, "application/octet-stream")},
45
+ timeout=120,
46
+ )
47
+ resp.raise_for_status()
48
+ except requests.exceptions.HTTPError as e:
49
+ detail = ""
50
+ try:
51
+ detail = e.response.json().get("detail", "")
52
+ except Exception:
53
+ pass
54
+ raise click.ClickException(f"Server error {e.response.status_code}: {detail}")
55
+ except requests.exceptions.RequestException as e:
56
+ raise click.ClickException(f"Request failed: {e}")
57
+
58
+ data = resp.json()
59
+ click.echo("Submitted successfully!")
60
+ click.echo(f" Submission ID : {data['submission_id']}")
61
+ click.echo(f" Type : {data['submission_type']}")
62
+ click.echo(f" Status : {data['status']}")
evalmc/utils.py ADDED
@@ -0,0 +1,220 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ MyoChallenge CLI Utilities - Host configuration and authentication management
4
+ """
5
+
6
+ import json
7
+ from pathlib import Path
8
+
9
+ import click
10
+ import requests
11
+
12
+ # Configuration file paths
13
+ CONFIG_DIR = Path.home() / ".myochallenge"
14
+ HOST_URL_FILE = CONFIG_DIR / "host_url"
15
+ AUTH_TOKEN_FILE = CONFIG_DIR / "auth_token.json"
16
+
17
+ # Ensure config directory exists
18
+ CONFIG_DIR.mkdir(exist_ok=True)
19
+
20
+
21
+ def get_default_host():
22
+ """Get the default host URL from config file."""
23
+ if HOST_URL_FILE.exists():
24
+ try:
25
+ return HOST_URL_FILE.read_text().strip()
26
+ except (OSError, IOError):
27
+ pass
28
+ return "https://api.mc.myosuite.org"
29
+
30
+
31
+ def get_stored_auth():
32
+ """Get stored authentication credentials."""
33
+ if AUTH_TOKEN_FILE.exists():
34
+ try:
35
+ with open(AUTH_TOKEN_FILE, "r") as f:
36
+ return json.load(f)
37
+ except (OSError, IOError, json.JSONDecodeError):
38
+ pass
39
+ return None
40
+
41
+
42
+ @click.command()
43
+ @click.option(
44
+ "-sh", "--set-host", help="Set the Host URL of the MyoChallenge API Instance."
45
+ )
46
+ def host(set_host):
47
+ """
48
+ View and configure the Host URL.
49
+ """
50
+ if set_host is not None:
51
+ # Basic URL validation
52
+ if set_host.startswith(("http://", "https://")):
53
+ try:
54
+ HOST_URL_FILE.write_text(set_host)
55
+ click.echo(
56
+ click.style(
57
+ f"{set_host} is set as the host url.",
58
+ bold=True,
59
+ )
60
+ )
61
+ except (OSError, IOError) as e:
62
+ click.echo(f"Error saving host URL: {e}")
63
+ else:
64
+ click.echo(
65
+ click.style(
66
+ "Sorry, please enter a valid url.\n"
67
+ "Example: https://api.mc.myosuite.org or https://myochallenge.com",
68
+ bold=True,
69
+ )
70
+ )
71
+ else:
72
+ if not HOST_URL_FILE.exists():
73
+ click.echo(
74
+ click.style(
75
+ "You haven't configured a Host URL for the CLI.\n"
76
+ "The CLI would be using https://api.mc.myosuite.org as the default url.",
77
+ bold=True,
78
+ )
79
+ )
80
+ else:
81
+ try:
82
+ data = HOST_URL_FILE.read_text().strip()
83
+ click.echo(
84
+ click.style(
85
+ f"{data} is the Host URL of MyoChallenge.",
86
+ bold=True,
87
+ )
88
+ )
89
+ except (OSError, IOError) as e:
90
+ click.echo(f"Error reading host URL: {e}")
91
+
92
+
93
+ @click.command()
94
+ def login():
95
+ """
96
+ Login to MyoChallenge and save credentials.
97
+ """
98
+ email = click.prompt("Email", type=str)
99
+ auth_token = click.prompt("Auth Token (Password)", type=str, hide_input=True)
100
+
101
+ # Test the credentials
102
+ host_url = get_default_host()
103
+ try:
104
+ response = requests.post(
105
+ f"{host_url}/login",
106
+ json={"email": email, "auth_token": auth_token},
107
+ timeout=10,
108
+ )
109
+ response.raise_for_status()
110
+ auth_data = response.json()
111
+
112
+ if auth_data.get("success"):
113
+ # Store credentials
114
+ credentials = {
115
+ "email": email,
116
+ "auth_token": auth_token,
117
+ "team_name": auth_data.get("team_name"),
118
+ "user_id": auth_data.get("user_id"),
119
+ }
120
+
121
+ try:
122
+ with open(AUTH_TOKEN_FILE, "w") as f:
123
+ json.dump(credentials, f)
124
+ click.echo(click.style("\nLogged in successfully!", bold=True))
125
+ click.echo(f"Team: {auth_data.get('team_name')}")
126
+ click.echo(f"User ID: {auth_data.get('user_id')}")
127
+ except (OSError, IOError) as e:
128
+ click.echo(f"Error saving credentials: {e}")
129
+ else:
130
+ click.echo(
131
+ click.style(
132
+ f"Login failed: {auth_data.get('message', 'Unknown error')}",
133
+ fg="red",
134
+ )
135
+ )
136
+ except requests.exceptions.RequestException as e:
137
+ click.echo(click.style(f"Connection error: {e}", fg="red"))
138
+
139
+
140
+ @click.command()
141
+ @click.argument("auth_token")
142
+ def set_token(auth_token):
143
+ """
144
+ Configure MyoChallenge authentication token directly.
145
+
146
+ AUTH_TOKEN should be your team's authentication token (password).
147
+ """
148
+ try:
149
+ # Store the token with minimal information
150
+ credentials = {
151
+ "auth_token": auth_token,
152
+ "email": "manual_set", # Placeholder for manual token
153
+ "team_name": "manual_set", # Placeholder for manual token
154
+ "user_id": None,
155
+ }
156
+
157
+ with open(AUTH_TOKEN_FILE, "w") as f:
158
+ json.dump(credentials, f)
159
+
160
+ click.echo(
161
+ click.style(
162
+ "Success: Authentication token is successfully set.",
163
+ bold=True,
164
+ fg="green",
165
+ )
166
+ )
167
+ click.echo("💡 Note: This token will be used for API requests")
168
+ click.echo("💡 Use 'python submission.py status' to verify configuration")
169
+
170
+ except (OSError, IOError) as e:
171
+ click.echo(f"❌ Error saving token: {e}")
172
+
173
+
174
+ @click.command()
175
+ def status():
176
+ """
177
+ Show current configuration status.
178
+ """
179
+ click.echo(click.style("MyoChallenge CLI Configuration", bold=True))
180
+ click.echo("=" * 40)
181
+
182
+ # Host status
183
+ if HOST_URL_FILE.exists():
184
+ try:
185
+ host_url = HOST_URL_FILE.read_text().strip()
186
+ click.echo(f"🌐 Host URL: {host_url}")
187
+ except (OSError, IOError) as e:
188
+ click.echo(f"❌ Error reading host URL: {e}")
189
+ else:
190
+ click.echo(
191
+ "🌐 Host URL: Not configured (using default: https://api.mc.myosuite.org)"
192
+ )
193
+
194
+ # Auth status
195
+ if AUTH_TOKEN_FILE.exists():
196
+ try:
197
+ with open(AUTH_TOKEN_FILE, "r") as f:
198
+ auth_data = json.load(f)
199
+ if auth_data.get("email") == "manual_set":
200
+ click.echo("🔐 Authentication: Token manually set")
201
+ click.echo(
202
+ "💡 Use 'python submission.py login' to set full credentials"
203
+ )
204
+ else:
205
+ click.echo(f"🔐 Authenticated as: {auth_data.get('email', 'Unknown')}")
206
+ click.echo(f"👥 Team: {auth_data.get('team_name', 'Unknown')}")
207
+ click.echo(f"🆔 User ID: {auth_data.get('user_id', 'Unknown')}")
208
+ except (OSError, IOError, json.JSONDecodeError) as e:
209
+ click.echo(f"❌ Error reading auth data: {e}")
210
+ else:
211
+ click.echo("🔐 Authentication: Not configured")
212
+
213
+ click.echo("\n💡 Use 'python submission.py host --set-host URL' to configure host")
214
+ click.echo("💡 Use 'python submission.py login' to authenticate")
215
+ click.echo("💡 Use 'python submission.py set-token TOKEN' to set token directly")
216
+
217
+
218
+ if __name__ == "__main__":
219
+ # Allow direct execution for testing
220
+ status()
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: evalmc
3
+ Version: 0.0.1
4
+ Summary: MyoChallenge submission CLI
5
+ Author-email: MyoChallenge Team <caggiano@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/MyoHub/mcEvalProd-CLI
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Requires-Python: >=3.9
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Requires-Dist: click>=8.0.0
19
+ Requires-Dist: docker>=6.0.0
20
+ Requires-Dist: requests>=2.25.0
21
+ Requires-Dist: boto3>=1.26.0
22
+ Dynamic: license-file
23
+
24
+ # MyoChallenge CLI Tools
25
+
26
+ The MyoChallenge CLI has been restructured into separate, focused files that can be run independently.
27
+
28
+ ## 🚀 Usage
29
+ ```
30
+ pip install evalmc
31
+ ```
32
+
33
+ ### Host Configuration
34
+ ```bash
35
+ # Set API host
36
+ evalmc host --set-host https://api.mc.myosuite.org
37
+
38
+ # View current host
39
+ evalmc host
40
+ ```
41
+
42
+ ### Authentication
43
+ ```bash
44
+ # Interactive login (tests credentials)
45
+ evalmc login
46
+
47
+ # Set token directly (for automation)
48
+ evalmc set_token your_auth_token_here
49
+ ```
50
+
51
+ ### Status Check
52
+ ```bash
53
+ # Show current configuration
54
+ evalmc status
55
+ ```
56
+
57
+ ### Docker Submission
58
+ ```bash
59
+ # Submit using stored credentials
60
+ evalmc push myochallenge-test:latest -p 1 -t manipulation
61
+
62
+ # Submit with explicit credentials
63
+ evalmc push myochallenge-test:latest -p 1 -t manipulation -e team@example.com -a token123
64
+ ```
65
+
66
+ ## 🔧 First-Time Setup
67
+
68
+ ```bash
69
+ # 1. Set your API host
70
+ evalmc host --set-host https://api.mc.myosuite.org
71
+
72
+ # 2. Either login interactively
73
+ evalmc login
74
+
75
+ # OR set token directly
76
+ evalmc set_token your_auth_token_here
77
+
78
+ # 3. Verify configuration
79
+ evalmc status
80
+
81
+ # 4. Submit Docker images
82
+ evalmc push myochallenge-test:latest -p 1 -t manipulation
83
+ ```
84
+
85
+ ## 📊 Configuration Files
86
+
87
+ All configuration is stored in `~/.myochallenge/`:
88
+ - `host_url` - API host URL
89
+ - `auth_token.json` - Authentication credentials
@@ -0,0 +1,21 @@
1
+ evalmc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ evalmc/__main__.py,sha256=Vdhw8YA1K3wPMlbJQYL5WqvRzAKVeZ16mZQFO9VRmCo,62
3
+ evalmc/check_challenge.py,sha256=peEmZPwIGPIUe3IdKIjFAYKOALM83qjfFuX-WA_XAuk,4055
4
+ evalmc/check_registered.py,sha256=zwUjuUXb-WQF6yExj4uAvFuXfIr2lFT13hcPe4ouFac,1573
5
+ evalmc/host.py,sha256=p839IqfxOFeFcPVw9t0uHjWUW6F_Q7K4CPV0i6DnFpc,2116
6
+ evalmc/login.py,sha256=CXWlEz_QJlfwgMusJe__EnaYRUJaiC8NyV9zoy3ELVE,3862
7
+ evalmc/main.py,sha256=pTnPGXqGNqbJwktja332ppvdY3aGB76xRLxAcxullc4,864
8
+ evalmc/push_helpers.py,sha256=blLLPac9vwpFULlsAOjFCroxvcDqimdCeO929IPSTEU,4910
9
+ evalmc/register.py,sha256=lQyX4um3b1uM-xESslTW6Giy5WvNrT-56ZM_Skq4JTs,1551
10
+ evalmc/set_token.py,sha256=u5_4njHdPJclVR_bQBW-b-w8ZOPanYtSCF4ZyoEX7JY,1462
11
+ evalmc/status.py,sha256=jWZNL3Danu1xAKgCSXfGRuvX0Fl6OiRkRyNfP0IzI-k,2029
12
+ evalmc/submission.py,sha256=_R3_ApeivT_LexiAu5X47urk8WC2GVV1Ggm7MpIZkf8,20219
13
+ evalmc/submit.py,sha256=7uM32BTo_4_4MWR-gZlX8dwEG298L8VZzqsbA1Apz_Y,3206
14
+ evalmc/submit_onnx.py,sha256=5HLVnTCE6BnXesr-nbDz9khQhMLozTbC3swvFuwI8Y8,2448
15
+ evalmc/utils.py,sha256=djcUELVN4UE8V68jfIIWdWpAIEUj9ComiNcZ7CN94DU,7080
16
+ evalmc-0.0.1.dist-info/licenses/LICENSE,sha256=OenqUz6BAYrQ_-gSUCLmvPcCgj8gvCEnyCtKUm0K6mk,10769
17
+ evalmc-0.0.1.dist-info/METADATA,sha256=H6HiivLrUkkIrPKfqa8DCzphNby65T8dANJ6EOb590A,2095
18
+ evalmc-0.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
19
+ evalmc-0.0.1.dist-info/entry_points.txt,sha256=1DKFfcxevvbzrknmCnhybEHO-DE0PVY_TivmOjpDbEI,44
20
+ evalmc-0.0.1.dist-info/top_level.txt,sha256=OzDqXQp9PUb9L6XqFclHOvIUjn_l_vHdJeC-bFHMKTc,7
21
+ evalmc-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ evalmc = evalmc.main:main
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text of the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing
141
+ the origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 MyoHub / MyoChallenge Team
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
189
+ implied. See the License for the specific language governing
190
+ permissions and limitations under the License.
@@ -0,0 +1 @@
1
+ evalmc