1c9f9302d3a556d1dcdc118fb3a58c6b007c717d,data-analytics/cloud-composer-examples/composer_http_post_example/spark_avg_speed.py,AverageSpeedEnhancer,dict_to_csv,#AverageSpeedEnhancer#Any#,57
Before Change
Arguments:
dictionary: A dictionary containing the data of interest.
csv = ",".join([str(dictionary[key]) if dictionary.get(key) is not None else ""
for key in AverageSpeedEnhancer.output_schema])
return csv
def enhance_with_avg_speed(self, record):
After Change
Arguments:
dictionary: A dictionary containing the data of interest.
with closing(cStringIO.StringIO() ) as csv_string:
writer = csv.DictWriter(csv_string, AverageSpeedEnhancer.output_schema)
writer.writerow(dictionary)
// Our desired output is a csv string not a line in a file so we strip the
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: GoogleCloudPlatform/professional-services
Commit Name: 1c9f9302d3a556d1dcdc118fb3a58c6b007c717d
Time: 2018-07-13
Author: danielrdeleo@gmail.com
File Name: data-analytics/cloud-composer-examples/composer_http_post_example/spark_avg_speed.py
Class Name: AverageSpeedEnhancer
Method Name: dict_to_csv
Project Name: vatlab/SoS
Commit Name: 4ae321a17f862aaf4a399609550539d022565138
Time: 2016-12-17
Author: ben.bog@gmail.com
File Name: sos/sos_eval.py
Class Name:
Method Name: param_of
Project Name: vatlab/SoS
Commit Name: a38c773548db1a20983f794e16898f83f8c86249
Time: 2016-12-17
Author: ben.bog@gmail.com
File Name: sos/sos_eval.py
Class Name:
Method Name: param_of