original_docstring: Parse an accepts string.
  
          Parse a @accepts tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @accepts is used to record the fact that the related code accepts the referened threat as unmitigated.
  
          For example:
  
              @accepts arbitrary file writes to WebApp:FileSystem with limited filename restrictions
  
          Args:
              accepts: Accepts string to parse.
              source: PTSSource instance for the @accepts line.
  
          Returns:
              Nothing.
          
docstring: Parse an accepts string.
  Parse a @accepts tag string using the defined regular expression and add the elements
  to the internal data structure.
  
  @accepts is used to record the fact that the related code accepts the referened threat as unmitigated.
  
  For example.
  
  @accepts arbitrary file writes to WebApp:FileSystem with limited filename restrictions
docstring_tokens: Parse an accepts string . Parse a @accepts tag string using the defined regular expression and add the elements to the internal data structure . @accepts is used to record the fact that the related code accepts the referened threat as unmitigated . For example . @accepts arbitrary file writes to WebApp : FileSystem with limited filename restrictions
code: def _parse_accepts(self, accepts, source):
          """Parse an accepts string.
  
          Parse a @accepts tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @accepts is used to record the fact that the related code accepts the referened threat as unmitigated.
  
          For example:
  
              @accepts arbitrary file writes to WebApp:FileSystem with limited filename restrictions
  
          Args:
              accepts: Accepts string to parse.
              source: PTSSource instance for the @accepts line.
  
          Returns:
              Nothing.
          """
          match = re.findall(self.parse_patterns["accepts"], accepts, re.M | re.I)
          if match:
              threat = remove_excessive_space(match[0][0])
              boundary = remove_excessive_space(match[0][1])
              component = remove_excessive_space(match[0][2])
              acceptance_text = remove_excessive_space(match[0][3])
  
              boundary_id = self.add_boundary(boundary)
              component_id = self.add_component(boundary_id, component)
              threat_id = self.add_threat(threat)
              accept_id = text_to_identifier(acceptance_text)
  
              if accept_id not in self.acceptances:
                  self.acceptances[accept_id] = []
  
              accept = PTSAcceptance(boundary_id, component_id, threat_id, acceptance_text, [])
              accept.source = source
              self.acceptances[accept_id].append(accept)
          else:
              raise ValueError("@accepts line contains an invalid pattern: {}".format(source))
code_tokens: def _parse_accepts ( self , accepts , source ) : match = re . findall ( self . parse_patterns [ "accepts" ] , accepts , re . M | re . I ) if match : threat = remove_excessive_space ( match [ 0 ] [ 0 ] ) boundary = remove_excessive_space ( match [ 0 ] [ 1 ] ) component = remove_excessive_space ( match [ 0 ] [ 2 ] ) acceptance_text = remove_excessive_space ( match [ 0 ] [ 3 ] ) boundary_id = self . add_boundary ( boundary ) component_id = self . add_component ( boundary_id , component ) threat_id = self . add_threat ( threat ) accept_id = text_to_identifier ( acceptance_text ) if accept_id not in self . acceptances : self . acceptances [ accept_id ] = [ ] accept = PTSAcceptance ( boundary_id , component_id , threat_id , acceptance_text , [ ] ) accept . source = source self . acceptances [ accept_id ] . append ( accept ) else : raise ValueError ( "@accepts line contains an invalid pattern: {}" . format ( source ) )
short_docstring: Parse an accepts string.
short_docstring_tokens: Parse an accepts string .
comment: """Parse an accepts string.
  
          Parse a @accepts tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @accepts is used to record the fact that the related code accepts the referened threat as unmitigated.
  
          For example:
  
              @accepts arbitrary file writes to WebApp:FileSystem with limited filename restrictions
  
          Args:
              accepts: Accepts string to parse.
              source: PTSSource instance for the @accepts line.
  
          Returns:
              Nothing.
          """