ffa0db4fdca9cef31a72b35a1f7eef78733f5b0c,glyph/cli/glyph_remote.py,RemoteAssessmentRunner,evaluate_single,#RemoteAssessmentRunner#Any#,207

Before Change



        key = sum(map(hash, payload))   // constants may have been simplified, not in payload anymore.
        if  key not in cache:
            self.send(dict(action="EXPERIMENT", payload=payload))
            cache[key] = self.recv()["fitness"]
            self.evaluations += 1
        return cache[key]

After Change


        result = None
        while result is None:
            sleep(1)
            result = self.result_queue.get(key)
        return result

    def measure(self, individual):
        Construct fitness for given individual.
        popt, error = const_opt_scalar(self.evaluate_single, individual, method=glyph.utils.numeric.hill_climb, options=self.options)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Ambrosys/glyph
Commit Name: ffa0db4fdca9cef31a72b35a1f7eef78733f5b0c
Time: 2017-02-24
Author: mquade@uni-potsdam.de
File Name: glyph/cli/glyph_remote.py
Class Name: RemoteAssessmentRunner
Method Name: evaluate_single


Project Name: OpenMined/Grid
Commit Name: 00be4ae634832d8c39a2468c66349df964585a2c
Time: 2019-10-21
Author: ionesiojr@gmail.com
File Name: grid/websocket_client.py
Class Name: WebsocketGridClient
Method Name: get_node_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a1f2903d2144ee2981acc89a9668d9289e1aa248
Time: 2016-07-06
Author: jonwayne@google.com
File Name: appengine/standard/sendgrid/main.py
Class Name:
Method Name: send_simple_message