12de208521da9bf7be6bd9c25551693184c3bd46,loudml/loudml/faker.py,,main,#,123

Before Change


        description=main.__doc__,
        formatter_class=argparse.ArgumentDefaultsHelpFormatter,
    )
    parser.add_argument(
        "-o", "--output",
        type=str,
        choices=["json", "influx", "elastic"],
        default="json",
    )
    parser.add_argument(
        "-a", "--addr",
        help="Output address",
        type=str,

After Change



    tags = build_tag_dict(arg.tags)

    if arg.output:
        try:
            datasource = init_datasource(arg, tags=tags)
        except errors.LoudMLException as exn:
            logging.error(exn)
            return 1

    if arg.shape == "flat":
        ts_generator = FlatEventGenerator(avg=arg.avg)
    elif arg.shape == "loudml":
        ts_generator = LoudMLEventGenerator()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: regel/loudml
Commit Name: 12de208521da9bf7be6bd9c25551693184c3bd46
Time: 2018-05-25
Author: vianney@redmintnetwork.fr
File Name: loudml/loudml/faker.py
Class Name:
Method Name: main


Project Name: uber/petastorm
Commit Name: 100f6cbd2f03bbd90d7b6a41cc81f711ed466491
Time: 2018-08-13
Author: robbieg@uber.com
File Name: petastorm/etl/metadata_index_run.py
Class Name:
Method Name:


Project Name: mynlp/ccg2lambda
Commit Name: a651b0632f8f9ac9dbcff6c041d29e886ce54bd1
Time: 2017-05-30
Author: pascual@nii.ac.jp
File Name: scripts/restruct.py
Class Name:
Method Name: main