Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files- coverage.xml +19 -19
- test-results.xml +0 -0
- warbler_cda/anchor_data_classes.py +1 -1
coverage.xml
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
<?xml version="1.0" ?>
|
| 2 |
-
<coverage version="7.12.0" timestamp="
|
| 3 |
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.12.0 -->
|
| 4 |
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
|
| 5 |
<sources>
|
| 6 |
<source>/builds/tiny-walnut-games/the-seed/warbler-cda-package/warbler_cda</source>
|
| 7 |
</sources>
|
| 8 |
<packages>
|
| 9 |
-
<package name="." line-rate="0.
|
| 10 |
<classes>
|
| 11 |
<class name="__init__.py" filename="__init__.py" complexity="0" line-rate="0.6786" branch-rate="0">
|
| 12 |
<methods/>
|
|
@@ -41,7 +41,7 @@
|
|
| 41 |
<line number="97" hits="1"/>
|
| 42 |
</lines>
|
| 43 |
</class>
|
| 44 |
-
<class name="anchor_data_classes.py" filename="anchor_data_classes.py" complexity="0" line-rate="
|
| 45 |
<methods/>
|
| 46 |
<lines>
|
| 47 |
<line number="9" hits="1"/>
|
|
@@ -79,7 +79,7 @@
|
|
| 79 |
<line number="57" hits="1"/>
|
| 80 |
<line number="58" hits="1"/>
|
| 81 |
<line number="59" hits="1"/>
|
| 82 |
-
<line number="60" hits="
|
| 83 |
<line number="61" hits="1"/>
|
| 84 |
</lines>
|
| 85 |
</class>
|
|
@@ -965,7 +965,7 @@
|
|
| 965 |
<line number="664" hits="1"/>
|
| 966 |
</lines>
|
| 967 |
</class>
|
| 968 |
-
<class name="evaporation.py" filename="evaporation.py" complexity="0" line-rate="0.
|
| 969 |
<methods/>
|
| 970 |
<lines>
|
| 971 |
<line number="3" hits="1"/>
|
|
@@ -1051,14 +1051,14 @@
|
|
| 1051 |
<line number="163" hits="1"/>
|
| 1052 |
<line number="168" hits="1"/>
|
| 1053 |
<line number="171" hits="1"/>
|
| 1054 |
-
<line number="172" hits="
|
| 1055 |
<line number="173" hits="1"/>
|
| 1056 |
<line number="174" hits="0"/>
|
| 1057 |
<line number="175" hits="1"/>
|
| 1058 |
<line number="176" hits="0"/>
|
| 1059 |
<line number="177" hits="1"/>
|
| 1060 |
-
<line number="178" hits="
|
| 1061 |
-
<line number="180" hits="
|
| 1062 |
<line number="183" hits="1"/>
|
| 1063 |
<line number="184" hits="1"/>
|
| 1064 |
<line number="187" hits="1"/>
|
|
@@ -1103,20 +1103,20 @@
|
|
| 1103 |
<line number="268" hits="0"/>
|
| 1104 |
<line number="270" hits="0"/>
|
| 1105 |
<line number="272" hits="1"/>
|
| 1106 |
-
<line number="274" hits="
|
| 1107 |
<line number="275" hits="0"/>
|
| 1108 |
-
<line number="278" hits="
|
| 1109 |
-
<line number="284" hits="
|
| 1110 |
-
<line number="291" hits="
|
| 1111 |
-
<line number="292" hits="
|
| 1112 |
-
<line number="294" hits="
|
| 1113 |
-
<line number="295" hits="
|
| 1114 |
<line number="297" hits="0"/>
|
| 1115 |
<line number="299" hits="1"/>
|
| 1116 |
<line number="301" hits="1"/>
|
| 1117 |
<line number="302" hits="0"/>
|
| 1118 |
<line number="304" hits="1"/>
|
| 1119 |
-
<line number="305" hits="
|
| 1120 |
<line number="307" hits="1"/>
|
| 1121 |
<line number="311" hits="1"/>
|
| 1122 |
<line number="313" hits="1"/>
|
|
@@ -1173,9 +1173,9 @@
|
|
| 1173 |
<line number="401" hits="1"/>
|
| 1174 |
<line number="402" hits="1"/>
|
| 1175 |
<line number="403" hits="1"/>
|
| 1176 |
-
<line number="404" hits="
|
| 1177 |
-
<line number="405" hits="
|
| 1178 |
-
<line number="406" hits="
|
| 1179 |
<line number="407" hits="0"/>
|
| 1180 |
<line number="408" hits="0"/>
|
| 1181 |
<line number="410" hits="0"/>
|
|
|
|
| 1 |
<?xml version="1.0" ?>
|
| 2 |
+
<coverage version="7.12.0" timestamp="1764701197079" lines-valid="5038" lines-covered="3855" line-rate="0.7652" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
|
| 3 |
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.12.0 -->
|
| 4 |
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
|
| 5 |
<sources>
|
| 6 |
<source>/builds/tiny-walnut-games/the-seed/warbler-cda-package/warbler_cda</source>
|
| 7 |
</sources>
|
| 8 |
<packages>
|
| 9 |
+
<package name="." line-rate="0.8344" branch-rate="0" complexity="0">
|
| 10 |
<classes>
|
| 11 |
<class name="__init__.py" filename="__init__.py" complexity="0" line-rate="0.6786" branch-rate="0">
|
| 12 |
<methods/>
|
|
|
|
| 41 |
<line number="97" hits="1"/>
|
| 42 |
</lines>
|
| 43 |
</class>
|
| 44 |
+
<class name="anchor_data_classes.py" filename="anchor_data_classes.py" complexity="0" line-rate="1" branch-rate="0">
|
| 45 |
<methods/>
|
| 46 |
<lines>
|
| 47 |
<line number="9" hits="1"/>
|
|
|
|
| 79 |
<line number="57" hits="1"/>
|
| 80 |
<line number="58" hits="1"/>
|
| 81 |
<line number="59" hits="1"/>
|
| 82 |
+
<line number="60" hits="1"/>
|
| 83 |
<line number="61" hits="1"/>
|
| 84 |
</lines>
|
| 85 |
</class>
|
|
|
|
| 965 |
<line number="664" hits="1"/>
|
| 966 |
</lines>
|
| 967 |
</class>
|
| 968 |
+
<class name="evaporation.py" filename="evaporation.py" complexity="0" line-rate="0.7967" branch-rate="0">
|
| 969 |
<methods/>
|
| 970 |
<lines>
|
| 971 |
<line number="3" hits="1"/>
|
|
|
|
| 1051 |
<line number="163" hits="1"/>
|
| 1052 |
<line number="168" hits="1"/>
|
| 1053 |
<line number="171" hits="1"/>
|
| 1054 |
+
<line number="172" hits="1"/>
|
| 1055 |
<line number="173" hits="1"/>
|
| 1056 |
<line number="174" hits="0"/>
|
| 1057 |
<line number="175" hits="1"/>
|
| 1058 |
<line number="176" hits="0"/>
|
| 1059 |
<line number="177" hits="1"/>
|
| 1060 |
+
<line number="178" hits="1"/>
|
| 1061 |
+
<line number="180" hits="0"/>
|
| 1062 |
<line number="183" hits="1"/>
|
| 1063 |
<line number="184" hits="1"/>
|
| 1064 |
<line number="187" hits="1"/>
|
|
|
|
| 1103 |
<line number="268" hits="0"/>
|
| 1104 |
<line number="270" hits="0"/>
|
| 1105 |
<line number="272" hits="1"/>
|
| 1106 |
+
<line number="274" hits="1"/>
|
| 1107 |
<line number="275" hits="0"/>
|
| 1108 |
+
<line number="278" hits="1"/>
|
| 1109 |
+
<line number="284" hits="1"/>
|
| 1110 |
+
<line number="291" hits="1"/>
|
| 1111 |
+
<line number="292" hits="1"/>
|
| 1112 |
+
<line number="294" hits="1"/>
|
| 1113 |
+
<line number="295" hits="1"/>
|
| 1114 |
<line number="297" hits="0"/>
|
| 1115 |
<line number="299" hits="1"/>
|
| 1116 |
<line number="301" hits="1"/>
|
| 1117 |
<line number="302" hits="0"/>
|
| 1118 |
<line number="304" hits="1"/>
|
| 1119 |
+
<line number="305" hits="0"/>
|
| 1120 |
<line number="307" hits="1"/>
|
| 1121 |
<line number="311" hits="1"/>
|
| 1122 |
<line number="313" hits="1"/>
|
|
|
|
| 1173 |
<line number="401" hits="1"/>
|
| 1174 |
<line number="402" hits="1"/>
|
| 1175 |
<line number="403" hits="1"/>
|
| 1176 |
+
<line number="404" hits="0"/>
|
| 1177 |
+
<line number="405" hits="1"/>
|
| 1178 |
+
<line number="406" hits="1"/>
|
| 1179 |
<line number="407" hits="0"/>
|
| 1180 |
<line number="408" hits="0"/>
|
| 1181 |
<line number="410" hits="0"/>
|
test-results.xml
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
warbler_cda/anchor_data_classes.py
CHANGED
|
@@ -56,6 +56,6 @@ class SemanticAnchor:
|
|
| 56 |
if self.provenance is None:
|
| 57 |
return 0.0
|
| 58 |
age_days = self.calculate_age_days()
|
| 59 |
-
if age_days
|
| 60 |
return 0.0
|
| 61 |
return self.provenance.update_count / age_days
|
|
|
|
| 56 |
if self.provenance is None:
|
| 57 |
return 0.0
|
| 58 |
age_days = self.calculate_age_days()
|
| 59 |
+
if age_days < 0.001: # Less than ~1.5 minutes old
|
| 60 |
return 0.0
|
| 61 |
return self.provenance.update_count / age_days
|