bin/pull_req_data_extraction.rb
def description_length(pr)
    pull_req = pull_req_entry(pr)
    title = unless pull_req['title'].nil? then pull_req['title'] else ' ' end
    body = unless pull_req['body'].nil? then pull_req['body'] else ' ' end
    (title + ' ' + body).gsub(/[\n\r]\s+/, ' ').split(/\s+/).size
  end
# Total number of words in the pull request title and description
Total number of words in the pull request title and description
Total number of words in the pull request title and description
def description_length(pr)
    pull_req = pull_req_entry(pr)
    title = unless pull_req['title'].nil? then pull_req['title'] else ' ' end
    body = unless pull_req['body'].nil? then pull_req['body'] else ' ' end
    (title + ' ' + body).gsub(/[\n\r]\s+/, ' ').split(/\s+/).size
  end
def description_length ( pr ) pull_req = pull_req_entry ( pr ) title = unless pull_req [ 'title' ] . nil? then pull_req [ 'title' ] else ' ' end body = unless pull_req [ 'body' ] . nil? then pull_req [ 'body' ] else ' ' end ( title + ' ' + body ) . gsub ( / [ \n \r ] \s + / , ' ' ) . split ( / \s + / ) . size end
Total number of words in the pull request title and description
Total number of words in the pull request title and description
pr