anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: f5networks/k8s-bigip-ctlr
Issue: Python driver emits ERROR log: Cloud not read version file

#### Description
K8s controller emits error log:
2017/12/19 17:22:41 [WARNING] Overwriting existing entry for backend {ServiceName:svc ServicePort:80 Namespace:default}
2017/12/19 17:22:41 [INFO] Wrote 1 Virtual Server and 0 IApp configs
**2017/12/19 17:22:46 [ERROR] [2017-12-19 17:22:45,946 __main__ ERROR] Could not read version file: [Errno 2] No such file or directory: 'VERSION_BUILD.json'**
2017/12/19 17:22:48 [INFO] [2017-12-19 17:22:48,541 __main__ INFO] entering inotify loop to watch /tmp/k8s-bigip-ctlr.config307573180/config.json
2017/12/19 17:22:50 [INFO] [2017-12-19 17:22:49,948 f5_cccl.resource.resource INFO] Creating ApiHTTPMonitor: /test/ingress_default_svc_0_http

Please verify this issue does not also effect marathon-bigip-ctlr, and cf-bigip-ctlr.

#### Kubernetes Version
v1.7.5

#### Controller Version
Version: 1.4.0-WIP, BuildInfo: ubuntu-207bd5a-dirty-20171218230526

#### BIG-IP Version
12.1

#### Diagnostic Information


Changed files:
python/bigipconfigdriver.py

diff --git a/python/bigipconfigdriver.py b/python/bigipconfigdriver.py
index 1245dda5..3fed7d03 100644
--- a/python/bigipconfigdriver.py
+++ b/python/bigipconfigdriver.py
@@ -697,7 +697,7 @@ def _handle_vxlan_config(config):
 
 def _set_user_agent():
     try:
-        with open('VERSION_BUILD.json', 'r') as version_file:
+        with open('/app/python/VERSION_BUILD.json', 'r') as version_file:
             data = json.load(version_file)
             user_agent = \\
                 "k8s-bigip-ctlr-" + data['version'] + '-' + data['build']
Repository: adlnet/adl_lrs
Issue: object_return bug

For boolean fields, need to check if it exists.

For example, if result_success is False...
if self.result_success ==> False
So the value doesn't get returned with the dictionary. If it is true, then it does.
@creighton holla back


Changed files:
lrs/models.py, lrs/tests/StatementsTests.py

diff --git a/lrs/models.py b/lrs/models.py
index 2d7893f..1247a26 100644
--- a/lrs/models.py
+++ b/lrs/models.py
@@ -650,10 +650,10 @@ class SubStatement(models.Model):
             ret['object'] = self.object_statementref.object_return()
 
         ret['result'] = {}
-        if self.result_success:
+        if self.result_success != None:
             ret['result']['success'] = self.result_success
 
-        if self.result_completion:
+        if self.result_completion != None:
             ret['result']['completion'] = self.result_completion
 
         if self.result_response:
@@ -833,10 +833,10 @@ class Statement(models.Model):
             ret['object'] = self.object_statementref.object_return()
 
         ret['result'] = {}
-        if self.result_success:
+        if self.result_success != None:
             ret['result']['success'] = self.result_success
 
-        if self.result_completion:
+        if self.result_completion != None:
             ret['result']['completion'] = self.result_completion
 
         if self.result_response:
diff --git a/lrs/tests/StatementsTests.py b/lrs/tests/StatementsTests.py
index 80db080..584bb47 100644
--- a/lrs/tests/StatementsTests.py
+++ b/lrs/tests/StatementsTests.py
@@ -961,7 +961,7 @@ class StatementsTests(TestCase):
             {"id":"facebook", "description":{"en-US":"Facebook App", "en-GB": "FACEBOOK"}},
             {"id":"scrabble", "description": {"en-US": "Scrabble Example", "en-GB": "SCRABBLE"}}],
             "extensions": {"ext:key1": "value1", "ext:key2": "value2","ext:key3": "value3"}}}, 
-            "result": {"score":{"scaled":.85, "raw": 85, "min":0, "max":100}, "completion": True, "success": True, "response": "Well done",
+            "result": {"score":{"scaled":.85, "raw": 85, "min":0, "max":100}, "completion": True, "success": False, "response": "Well done",
             "duration": "P3Y6M4DT12H30M5S", "extensions":{"ext:resultKey1": "resultValue1", "ext:resultKey2":"resultValue2"}},
             "context":{"registration": context_id, "contextActivities": {"other": {"id": "http://example.adlnet.gov/tincan/example/test"},
             "grouping":{"id":"http://groupingID"} },
@@ -997,7 +997,7 @@ class StatementsTests(TestCase):
         self.assertEqual(the_returned['result']['score']['min'], 0)
         self.assertEqual(the_returned['result']['score']['raw'], 85)
         self.assertEqual(the_returned['result']['score']['scaled'], 0.85)
-        self.assertEqual(the_returned['result']['success'], True)
+        self.assertEqual(the_returned['result']['success'], False)
 
         self.assertEqual(the_returned['context']['contextActivities']['other'][0]['id'], 'http://example.adlnet.gov/tincan/example/test')
         self.assertEqual(the_returned['context']['extensions']['ext:contextKey1'], 'contextVal1')