Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hallgrim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
hallgrim
Commits
5941000d
Commit
5941000d
authored
8 years ago
by
Jan Maximilian Michal
Browse files
Options
Downloads
Patches
Plain Diff
Fixed numeric error. Gap is now complete
parent
537948ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hallgrim/IliasXMLCreator/gap.py
+0
-2
0 additions, 2 deletions
hallgrim/IliasXMLCreator/gap.py
hallgrim/IliasXMLCreator/xmlBuildingBlocks.py
+2
-2
2 additions, 2 deletions
hallgrim/IliasXMLCreator/xmlBuildingBlocks.py
scripts/gap_test.py
+0
-30
0 additions, 30 deletions
scripts/gap_test.py
with
2 additions
and
34 deletions
hallgrim/IliasXMLCreator/gap.py
+
0
−
2
View file @
5941000d
...
...
@@ -75,8 +75,6 @@ class GapQuestion:
f
=
response_num
(
"
gap_{}
"
.
format
(
gap_ident
),
self
.
gap_length
,
item
[
0
][
1
],
item
[
0
][
2
])
gap_ident
+=
1
flow
.
append
(
f
)
return
root
############################################################################
...
...
This diff is collapsed.
Click to expand it.
hallgrim/IliasXMLCreator/xmlBuildingBlocks.py
+
2
−
2
View file @
5941000d
...
...
@@ -14,7 +14,7 @@ def xml_print(element, **kwargs):
import
xml.dom.minidom
xml
=
xml
.
dom
.
minidom
.
parseString
(
et
.
tostring
(
element
,
encoding
=
'
utf8
'
,
method
=
'
xml
'
))
# or xml.dom.minidom.parseString(xml_string)
print
(
xml
.
toprettyxml
(),
**
kwargs
)
print
(
xml
.
toprettyxml
(),
**
kwargs
)
def
simple_element
(
name
,
text
=
None
,
attrib
=
{}):
...
...
@@ -147,7 +147,7 @@ def response_choice(ident, answers):
def
response_num
(
ident
,
columns
,
_min
,
_max
,
numtype
=
'
Decimal
'
):
response_num
=
et
.
Element
(
'
response_num
'
,
attrib
=
{
'
ident
'
:
ident
,
'
numtype
'
:
numtype
,
'
rcardinality
'
:
'
Single
'
})
render_fib
=
et
.
Element
(
'
render_fib
'
,
attrib
=
{
'
columns
'
:
columns
,
'
fibtype
'
:
numtype
,
'
maxnumber
'
:
_m
in
,
'
minnumber
'
:
_m
ax
,
'
prompt
'
:
"
Box
"
})
render_fib
=
et
.
Element
(
'
render_fib
'
,
attrib
=
{
'
columns
'
:
str
(
columns
)
,
'
fibtype
'
:
numtype
,
'
maxnumber
'
:
_m
ax
,
'
minnumber
'
:
_m
in
,
'
prompt
'
:
"
Box
"
})
response_num
.
append
(
render_fib
)
return
response_num
...
...
This diff is collapsed.
Click to expand it.
scripts/gap_test.py
deleted
100644 → 0
+
0
−
30
View file @
537948ce
meta
=
{
'
author
'
:
'
ILIAS Author
'
,
'
title
'
:
'
gap_test
'
,
'
type
'
:
'
gap
'
,
'
points
'
:
0.0
,
}
task
=
"""
[gap]LALAL2[/gap] KJAakjsfdaskdjfnalksdf
```java
class Auto {
final int tiers = [gap]4[/gap];
}
[select]
[3] `int n_ze = m.length;`
[ ] `int n_ze = m[0].length;`
[ ] `int n_ze = m.length();`
[ ] `int n_ze = m[0].length();`
[/select]
public static void main {
System.out.println(
"
[gap]LALAL2[/gap]
"
);
}
```
END
"""
feedback
=
"""
decription
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment