328bec45389305696c3b1295f7d5993a85e3fbcc,lambdas/shared/t4_lambda_shared/preview.py,,extract_parquet,#Any#Any#,48
Before Change
if as_html:
body = dataframe._repr_html_()// pylint: disable=protected-access
else:
body = trim_to_bytes(dataframe.to_string() , ELASTIC_LIMIT_BYTES)
return body, info
After Change
for encoded in row.astype(bytes):
// +1 for \t
encoded_size = len(encoded) + 1
if (size + encoded_size) < ELASTIC_LIMIT_BYTES:
buffer.append(encoded)
buffer.append(b"\t")
size += encoded_size
else:
done = True
break
buffer.append(b"\n")
size += 1
if done:
break
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: quiltdata/quilt
Commit Name: 328bec45389305696c3b1295f7d5993a85e3fbcc
Time: 2019-09-12
Author: akarve@users.noreply.github.com
File Name: lambdas/shared/t4_lambda_shared/preview.py
Class Name:
Method Name: extract_parquet
Project Name: MolSSI/QCEngine
Commit Name: 96b8a3ff6eebb2c6c230df4fddd3adb003568b69
Time: 2019-11-04
Author: malorian@me.com
File Name: qcengine/programs/qchem.py
Class Name: QChemHarness
Method Name: build_input
Project Name: MolSSI/QCEngine
Commit Name: e5fa5b3d6c77618aae53b450d549531942cadffa
Time: 2021-02-10
Author: max.scheurer@me.com
File Name: qcengine/programs/adcc.py
Class Name: AdccHarness
Method Name: compute
Project Name: tensorflow/transform
Commit Name: 311a6e809bc4932e3e1c44ea59c557c4931b67d7
Time: 2019-03-13
Author: zoy@google.com
File Name: tensorflow_transform/beam/cached_impl_test.py
Class Name: CachedImplTest
Method Name: test_optimize_traversal