edc4934478ab490e5dc2b26516ff6fd9d6b82b25,perfkitbenchmarker/providers/azure/azure_network.py,AzureNetworkSecurityGroup,AllowPort,#AzureNetworkSecurityGroup#Any#Any#Any#Any#,364

Before Change


      rule_priority = 100 + len(self.rules)
      if rule_priority >= 4095:
        raise ValueError("Too many firewall rules!")
      self.rules[(start_port, end_port)] = rule_name

    vm_util.IssueRetryableCommand(
        [azure.AZURE_PATH, "network", "nsg", "rule", "create",

After Change


    Raises:
      ValueError: when there are too many firewall rules.
    
    source_range = source_range or ["0.0.0.0/0"]
    end_port = end_port or start_port

    source_range.sort()
    // Replace slashes as they are not allowed in an azure rule name.
    source_range_str = ",".join(source_range).replace("/", "_")
    rule = (start_port, end_port, source_range_str)
    with self.rules_lock:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: edc4934478ab490e5dc2b26516ff6fd9d6b82b25
Time: 2019-07-10
Author: ruwa@google.com
File Name: perfkitbenchmarker/providers/azure/azure_network.py
Class Name: AzureNetworkSecurityGroup
Method Name: AllowPort


Project Name: kmike/pymorphy2
Commit Name: 837b2efde71507b09033c3ea6f2502e2306f8eef
Time: 2013-02-18
Author: kmike84@gmail.com
File Name: pymorphy2/analyzer.py
Class Name: MorphAnalyzer
Method Name: _parse_as_word_with_known_suffix


Project Name: kengz/SLM-Lab
Commit Name: 8c17debc9dc6552da8c317c0c852b55f03c80c61
Time: 2017-12-24
Author: kengzwl@gmail.com
File Name: slm_lab/spec/spec_util.py
Class Name:
Method Name: resolve_aeb


Project Name: pfnet/optuna
Commit Name: ab17d5539e5c33c6bacc9a522fd3ae6dd9661314
Time: 2021-03-24
Author: parsiad.azimzadeh@gmail.com
File Name: optuna/_multi_objective.py
Class Name:
Method Name: _get_pareto_front_trials_2d