original_docstring: 
          Generates the dictionary that can passsed to elastic search handler
          :param str_val:
          :type str_val:
          :param off_set:
          :type off_set:
          :param doc_id:
          :type doc_id:
          :return:
          :rtype:
          
docstring: Generates the dictionary that can passsed to elastic search handler
docstring_tokens: Generates the dictionary that can passsed to elastic search handler
code: def _add_entry(self, str_val, off_set, doc_id):
          """
          Generates the dictionary that can passsed to elastic search handler
          :param str_val:
          :type str_val:
          :param off_set:
          :type off_set:
          :param doc_id:
          :type doc_id:
          :return:
          :rtype:
          """
          # Checks if the word is already present
          if str_val in self.INV_INDEX:
              doc_id_flag = False
              # Goes through list of dictionaries to find if doc_id  is already present
              for ix, dict_val in enumerate(self.INV_INDEX[str_val]):
                  if doc_id == dict_val['docId']:
                      doc_id_flag = True
                      # Appends the off_set value to the list
                      if off_set not in self.INV_INDEX[str_val][ix]['offSetArray']:
                          self.INV_INDEX[str_val][ix]['offSetArray'].append(off_set)
                      break
              # If doc id is not present, create a new entry
              if not doc_id_flag:
                  self.INV_INDEX[str_val].append({
                      "docId": doc_id,
                      "offSetArray": [off_set]
                  })
          #  If the word has not already been encountered adds the following
          else:
              self.INV_INDEX[str_val] = [{"docId": doc_id,
                                          "offSetArray": [off_set]}]
code_tokens: def _add_entry ( self , str_val , off_set , doc_id ) : if str_val in self . INV_INDEX : doc_id_flag = False for ix , dict_val in enumerate ( self . INV_INDEX [ str_val ] ) : if doc_id == dict_val [ 'docId' ] : doc_id_flag = True if off_set not in self . INV_INDEX [ str_val ] [ ix ] [ 'offSetArray' ] : self . INV_INDEX [ str_val ] [ ix ] [ 'offSetArray' ] . append ( off_set ) break if not doc_id_flag : self . INV_INDEX [ str_val ] . append ( { "docId" : doc_id , "offSetArray" : [ off_set ] } ) else : self . INV_INDEX [ str_val ] = [ { "docId" : doc_id , "offSetArray" : [ off_set ] } ]
short_docstring: Generates the dictionary that can passsed to elastic search handler
short_docstring_tokens: Generates the dictionary that can passsed to elastic search handler
comment: """
          Generates the dictionary that can passsed to elastic search handler
          :param str_val:
          :type str_val:
          :param off_set:
          :type off_set:
          :param doc_id:
          :type doc_id:
          :return:
          :rtype:
          """$SEP$# Checks if the word is already present$SEP$# Goes through list of dictionaries to find if doc_id  is already present$SEP$# Appends the off_set value to the list$SEP$# If doc id is not present, create a new entry$SEP$#  If the word has not already been encountered adds the following