c72b6d57938552e0e372173df7655264f6fa9088,sk_dsp_comm/sigsys.py,,lp_samp,#Any#Any#Any#Any#Any#Any#,579

Before Change


    A = 1.0
    line_ampl = A/2.*np.array([0, 1])
    // plot the lowpass spectrum in black
    if shape.lower() == "tri":
        plt.plot(f,lp_tri(f,fb))
    elif shape.lower() == "line":
        plt.plot([fb, fb],line_ampl,"b", linewidth=2)
        plt.plot([-fb, -fb],line_ampl,"b", linewidth=2)
    else:
        print("shape must be tri or line")
    // overlay positive and negative frequency translates
    for n in range(N):
        if shape.lower() == "tri":
            plt.plot(f,lp_tri(f-(n+1)*fs,fb),"--r")
            plt.plot(f,lp_tri(f+(n+1)*fs,fb),"--g")

After Change


    A = 1.0
    line_ampl = A/2.*np.array([0, 1])
    // plot the lowpass spectrum in black
    shapes = ["tri", "line"]
    if shape.lower() not in shapes:
        raise ValueError("shape must be tri or line")
    if shape.lower() == "tri":
        plt.plot(f,lp_tri(f,fb))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: mwickert/scikit-dsp-comm
Commit Name: c72b6d57938552e0e372173df7655264f6fa9088
Time: 2017-10-17
Author: chiranthsiddappa@gmail.com
File Name: sk_dsp_comm/sigsys.py
Class Name:
Method Name: lp_samp


Project Name: NervanaSystems/nlp-architect
Commit Name: 82d819ee591297fc5943a77315ddfd22f2d320a5
Time: 2018-05-10
Author: peter.izsak@intel.com
File Name: nlp_architect/utils/text.py
Class Name: SpacyInstance
Method Name: __init__


Project Name: ixaxaar/pytorch-dnc
Commit Name: bc714964ae754c25af66ded19ae2926768362584
Time: 2017-10-29
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward


Project Name: ixaxaar/pytorch-dnc
Commit Name: 4c335da8e73ecdac2d298c89a1652b587edd1086
Time: 2017-10-29
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward