<commit_before># ServiceNow

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'service_now'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install service_now

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
=======
service_now
===========

A gem to interface with Service Now<commit_msg>document usage of the gem, creating an incident<commit_after># ServiceNow

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'service_now'

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install service_now

## Usage

###Creating an Incident
```ruby
params = {
    netid: 'csw3',
    name: '<NAME>',
    location: 'Berkeley College',
    avg_bandwidth: '1mbps',
    comment: 'just seems slow'
    mac: 'AA:BB:CC:DD:EE:FF'
}

def create_incident(params)
  ServiceNow::Configuration.configure(:sn_url => 'https://yaletest.service-now.com', :sn_username => ENV['SN_USERNAME'], :sn_password => ENV['<PASSWORD>'])
  inc = ServiceNow::Incident.new
  inc.short_description = "Problem With Wifi"
  inc.description = "netid: #{params[:netid]}\nname: #{params[:name]}\nlocation: #{params[:location]}\nbandwidth: #{params[:avg_bandwidth]}\ncomment: #{params[:comments]}\nmac: #{params[:mac]}"
  inc.caller_id = ServiceNow::User.find(params[:netid]).sys_id
  inc.save!
end
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.13597883597883598, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 4.418338108882521, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '5572918', 'n_tokens_mistral': 624, 'n_tokens_neox': 593, 'n_words': 200}