cea9099ef36997bc0922e3fdf8c4be88c9910d9a,opt_einsum/contract.py,,format_const_einsum_str,#,501

Before Change


    for i, term in enumerate(lhs.split(",")):
        (const_ins if i in constants else ins).append(term)

    return "{},[{}]{}{}".format(",".join(ins), ",".join(const_ins), arrow, rhs)


class ContractExpression:

After Change


    formatted_einsum_str = "{}{}{}".format(",".join(wrapped_terms), arrow, rhs)

    // merge adjacent constants
    formatted_einsum_str = formatted_einsum_str.replace("],[", ",")
    return formatted_einsum_str


class ContractExpression:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dgasmith/opt_einsum
Commit Name: cea9099ef36997bc0922e3fdf8c4be88c9910d9a
Time: 2018-07-21
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name:
Method Name: format_const_einsum_str


Project Name: lingpy/lingpy
Commit Name: b46114a5b8076c38e765811bd6d55ed2930d9975
Time: 2013-11-14
Author: mattis.list@posteo.de
File Name: lingpy/convert/html.py
Class Name:
Method Name: alm2html


Project Name: ellisdg/3DUnetCNN
Commit Name: 5d0d5b4f0c39d52866ceb1a0475ec4e6ae53e553
Time: 2020-08-13
Author: dgellis90@gmail.com
File Name: unet3d/prediction.py
Class Name:
Method Name: run_validation_cases