cff50d785a5fddd1fc8722fd993b63d4978da381,models/models.py,ModelBuilder,build_encoder,#ModelBuilder#Any#Any#Any#,74

Before Change


            net_encoder = ResnetDilated(orig_resnet,
                                        dilate_scale=8)
        elif arch == "resnet101_dilated16":
            orig_resnet = resnet.__dict__["resnet101"](pretrained=pretrained)
            net_encoder = ResnetDilated(orig_resnet,
                                        dilate_scale=16)
        elif arch == "resnext101":

After Change



    def build_encoder(self, arch="resnet50dilated", fc_dim=512, weights=""):
        pretrained = True if len(weights) == 0 else False
        arch = arch.lower()
        if arch == "resnet18":
            orig_resnet = resnet.__dict__["resnet18"](pretrained=pretrained)
            net_encoder = Resnet(orig_resnet)
        elif arch == "resnet18dilated":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: cff50d785a5fddd1fc8722fd993b63d4978da381
Time: 2018-11-28
Author: zhaohang0124@gmail.com
File Name: models/models.py
Class Name: ModelBuilder
Method Name: build_encoder


Project Name: chartbeat-labs/textacy
Commit Name: e41a3a1f5a24d6a1793e852f8c14d69d4af0fc5a
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: tests/test_readme.py
Class Name:
Method Name: test_plaintext_functionality


Project Name: automl/auto-sklearn
Commit Name: c42c3e498a4a91aaf7a7d6588dec8e313ed261e8
Time: 2015-05-22
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/models/cv_evaluator.py
Class Name: CVEvaluator
Method Name: __init__


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c30a1ba3ebde90f3466a92a921674f9d90b8104d
Time: 2018-12-03
Author: ehankland@google.com
File Name: perfkitbenchmarker/providers/aws/aws_disk.py
Class Name:
Method Name: EbsDriveIsNvme


Project Name: MolSSI/QCEngine
Commit Name: d3af5dc201462f2ffa7c53e6765aed36bf87dfcb
Time: 2019-03-15
Author: lori.burns@gmail.com
File Name: qcengine/programs/psi4.py
Class Name: Psi4Executor
Method Name: compute


Project Name: MolSSI/QCEngine
Commit Name: 1ea8207e2c86c1dba441343bcbfd48f8161b9a86
Time: 2019-09-11
Author: sjrl423@gmail.com
File Name: qcengine/programs/molpro.py
Class Name: MolproHarness
Method Name: build_input