7dcdaf7091798a01341d7b94de0880f8e535608e,service/server.py,BertServer,__init__,#BertServer#Any#,27

Before Change


        self.port = args.port
        self.args = args
        self.args_dict = dict(args._asdict()) if isinstance(args, tuple) else vars(args)
        self.args_dict.update({
            "tensorflow_version": tf.__version__,
            "python_version": sys.version,
            "server_start": str(datetime.now())
        })
        self.processes = []
        self.context = zmq.Context()

        // frontend facing client

After Change


        self.max_batch_size = args.max_batch_size
        self.port = args.port
        self.args = args
        self.args_dict = {
            "model_dir": args.model_dir,
            "max_seq_len": args.max_seq_len,
            "num_worker": args.num_worker,
            "max_batch_size": args.max_batch_size,
            "port": args.port,
            "port_out": args.port_out,
            "pooling_layer": args.pooling_layer,
            "pooling_strategy": args.pooling_strategy,
            "tensorflow_version": tf.__version__,
            "python_version": sys.version,
            "server_start": str(datetime.now())
        }
        self.processes = []
        self.context = zmq.Context()

        // frontend facing client
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 7dcdaf7091798a01341d7b94de0880f8e535608e
Time: 2018-11-26
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: __init__


Project Name: jazzband/django-debug-toolbar
Commit Name: 908b49cb7d2d527b701996f0d0b9e1e19e765819
Time: 2013-11-24
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/settings.py
Class Name:
Method Name:


Project Name: inferno-pytorch/inferno
Commit Name: 28283794ea03adb0668bdef229b8fdb6dbc8927e
Time: 2017-10-04
Author: nasim.rahaman@iwr.uni-heidelberg.de
File Name: docs/conf.py
Class Name:
Method Name:


Project Name: horovod/horovod
Commit Name: 16d1fd175f5ce804f4daa66da5d51e2dc3da1b36
Time: 2020-04-09
Author: github@enrico.minack.dev
File Name: test/test_spark.py
Class Name: SparkTests
Method Name: test_spark_task_service_env