<commit_before>module Squall
  class Network < Base
    def list
      response = request(:get, '/settings/networks.json')
      response.collect { |network| network['network'] }
    end

    def edit(id, options = {})
      params.accepts(:label, :network_group_id, :vlan, :identifier).validate!(options)
      response = request(:put, "/settings/networks/#{id}.json", default_params(options))
    end

    def create(options = {})
      params.accepts(:label, :vlan, :identifier).required(:label).validate!(options)
      response = request(:post, '/settings/networks.json', default_params(options))
      response.first[1]
    end

    def delete(id)
      response = request(:delete, "/settings/networks/#{id}.json")
    end
  end
end<commit_msg>WE DONT NEED NO STINKIN VARIABLE<commit_after>module Squall
  class Network < Base
    def list
      response = request(:get, '/settings/networks.json')
      response.collect { |network| network['network'] }
    end

    def edit(id, options = {})
      params.accepts(:label, :network_group_id, :vlan, :identifier).validate!(options)
      response = request(:put, "/settings/networks/#{id}.json", default_params(options))
    end

    def create(options = {})
      params.accepts(:label, :vlan, :identifier).required(:label).validate!(options)
      response = request(:post, '/settings/networks.json', default_params(options))
      response.first[1]
    end

    def delete(id)
      request(:delete, "/settings/networks/#{id}.json")
    end
  end
end
{'fraction_non_alphanumeric': 0.14920424403183025, 'fraction_numerical': 0.001326259946949602, 'mean_word_length': 3.5727272727272728, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '76356', 'n_tokens_mistral': 454, 'n_tokens_neox': 448, 'n_words': 93}