<commit_before>function Endpoint(name) {
  this.name = name
  this.description = ''
  this.summary = ''
  this.request = {}
  this.request.bodies = []
  this.request.headers = '{}'
  this.responses = []
}

Endpoint.prototype = {
    set ItemId(id) {
      this.itemId = id
    },

    get Path() {
      return this.request.path
    },
    set Path(path) {
      this.request.path = path
    },
    get Method() {
      return this.request.method
    },
    set Method(requestMethod) {
      this.request.method = requestMethod.toLowerCase()
    },
    get Name() {
      return this.name
    },
    get Headers() {
      return JSON.parse(this.request.headers)
    },
    set Headers(headers) {
      this.request.headers = JSON.stringify(headers)
    },
    get QueryString() {
      return this.request.queryString
    },
    set QueryString(queryString) {
      this.request.queryString = JSON.stringify(queryString)
    },
    get Before() {
      return this.middlewareBefore
    },
    set Before(before) {
      this.middlewareBefore = before
    },
    set Body(body) {
      body.body = JSON.stringify(body.body)
      this.request.bodies.push(body)
    },
    get Body() {
      if (this.request.bodies.length > 0) {
        return this.request.bodies[0]
      }
      return []<commit_msg>remove redundant set/get for query string<commit_after>function Endpoint(name) {
  this.name = name
  this.description = ''
  this.summary = ''
  this.request = {}
  this.request.bodies = []
  this.request.headers = '{}'
  this.responses = []
}

Endpoint.prototype = {
    set ItemId(id) {
      this.itemId = id
    },

    get Path() {
      return this.request.path
    },
    set Path(path) {
      this.request.path = path
    },
    get Method() {
      return this.request.method
    },
    set Method(requestMethod) {
      this.request.method = requestMethod.toLowerCase()
    },
    get Name() {
      return this.name
    },
    get Headers() {
      return JSON.parse(this.request.headers)
    },
    set Headers(headers) {
      this.request.headers = JSON.stringify(headers)
    },
    get Before() {
      return this.middlewareBefore
    },
    set Before(before) {
      this.middlewareBefore = before
    },
    set Body(body) {
      body.body = JSON.stringify(body.body)
      this.request.bodies.push(body)
    },
    get Body() {
      if (this.request.bodies.length > 0) {
        return this.request.bodies[0]
      }
      return []
{'fraction_non_alphanumeric': 0.1322213181448332, 'fraction_numerical': 0.0016273393002441008, 'mean_word_length': 2.189364461738003, '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': '6505516', 'n_tokens_mistral': 790, 'n_tokens_neox': 779, 'n_words': 141}