<commit_before>require 'pbs'
require 'yaml'

# Set up connection to local server
c = PBS::Conn.batch 'glenn'

# Check info for local server
q = PBS::Query.new(conn: c, type: :server)
puts "# Batch server information ---"
puts q.find.to_yaml
puts ""

# Check if I have any jobs currently running
q = PBS::Query.new(conn: c, type: :job)
filters = [PBS::ATTR[:state], PBS::ATTR[:owner]]
puts "# All jobs you currently have in the batch ---"
puts q.where.user(ENV['USER']).find(filters: filters).to_yaml
puts ""

# Setup new job
j = PBS::Job.new(conn: c)

headers = { PBS::ATTR[:N] => "SimpleJob" }
resources = { walltime: "00:10:00" }<commit_msg>example should use oakley since we are turning off glenn<commit_after>require 'pbs'
require 'yaml'

# Set up connection to local server
c = PBS::Conn.batch 'oakley'

# Check info for local server
q = PBS::Query.new(conn: c, type: :server)
puts "# Batch server information ---"
puts q.find.to_yaml
puts ""

# Check if I have any jobs currently running
q = PBS::Query.new(conn: c, type: :job)
filters = [PBS::ATTR[:state], PBS::ATTR[:owner]]
puts "# All jobs you currently have in the batch ---"
puts q.where.user(ENV['USER']).find(filters: filters).to_yaml
puts ""

# Setup new job
j = PBS::Job.new(conn: c)

headers = { PBS::ATTR[:N] => "SimpleJob" }
resources = { walltime: "00:10:00" }
{'fraction_non_alphanumeric': 0.16390977443609023, 'fraction_numerical': 0.009022556390977444, 'mean_word_length': 4.639830508474576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2058661', 'n_tokens_mistral': 485, 'n_tokens_neox': 464, 'n_words': 151}