original_docstring: Parse a review string.
  
          Parse a @review tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @review can be used to make a note for further review, for example when the source code isn't well understoood,
          or when the impact needs further consideration. It can also be used as part of a review of existing code as
          part of the threat modelling process.
  
          For example:
  
              @review @auth:@encryption Not sure what happens here, but it looks dangerous
              @review User:Session Need to check how we're storing session data
  
          Args:
              review: Review string to parse.
              source: Not used, but follows same signature as other functions called by lookup
                   table.
  
          Returns:
              Nothing.
          
docstring: Parse a review string.
  Parse a @review tag string using the defined regular expression and add the elements
  to the internal data structure.
  
  @review can be used to make a note for further review, for example when the source code isn't well understoood,
  or when the impact needs further consideration. It can also be used as part of a review of existing code as
  part of the threat modelling process.
  
  For example.
  
  @review @auth:@encryption Not sure what happens here, but it looks dangerous
  @review User:Session Need to check how we're storing session data
docstring_tokens: Parse a review string . Parse a @review tag string using the defined regular expression and add the elements to the internal data structure . @review can be used to make a note for further review for example when the source code isn ' t well understoood or when the impact needs further consideration . It can also be used as part of a review of existing code as part of the threat modelling process . For example . @review @auth : @encryption Not sure what happens here but it looks dangerous @review User : Session Need to check how we ' re storing session data
code: def _parse_review(self, review, source):
          """Parse a review string.
  
          Parse a @review tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @review can be used to make a note for further review, for example when the source code isn't well understoood,
          or when the impact needs further consideration. It can also be used as part of a review of existing code as
          part of the threat modelling process.
  
          For example:
  
              @review @auth:@encryption Not sure what happens here, but it looks dangerous
              @review User:Session Need to check how we're storing session data
  
          Args:
              review: Review string to parse.
              source: Not used, but follows same signature as other functions called by lookup
                   table.
  
          Returns:
              Nothing.
          """
  
          match = re.findall(self.parse_patterns["review"], review, re.M | re.I)
          if match:
              boundary = remove_excessive_space(match[0][0])
              component = remove_excessive_space(match[0][1])
              text = remove_excessive_space(match[0][2])
  
              boundary_id = self.add_boundary(boundary)
              component_id = self.add_component(boundary_id, component)
              review_id = text_to_identifier(text)
  
              if review_id not in self.reviews:
                  self.reviews[review_id] = []
  
              review = PTSReview(boundary_id, component_id, text, [])
              review.source = source
              self.reviews[review_id].append(review)
          else:
              raise ValueError("@review line contains an invalid pattern: {}".format(source))
code_tokens: def _parse_review ( self , review , source ) : match = re . findall ( self . parse_patterns [ "review" ] , review , re . M | re . I ) if match : boundary = remove_excessive_space ( match [ 0 ] [ 0 ] ) component = remove_excessive_space ( match [ 0 ] [ 1 ] ) text = remove_excessive_space ( match [ 0 ] [ 2 ] ) boundary_id = self . add_boundary ( boundary ) component_id = self . add_component ( boundary_id , component ) review_id = text_to_identifier ( text ) if review_id not in self . reviews : self . reviews [ review_id ] = [ ] review = PTSReview ( boundary_id , component_id , text , [ ] ) review . source = source self . reviews [ review_id ] . append ( review ) else : raise ValueError ( "@review line contains an invalid pattern: {}" . format ( source ) )
short_docstring: Parse a review string.
short_docstring_tokens: Parse a review string .
comment: """Parse a review string.
  
          Parse a @review tag string using the defined regular expression and add the elements
          to the internal data structure.
  
          @review can be used to make a note for further review, for example when the source code isn't well understoood,
          or when the impact needs further consideration. It can also be used as part of a review of existing code as
          part of the threat modelling process.
  
          For example:
  
              @review @auth:@encryption Not sure what happens here, but it looks dangerous
              @review User:Session Need to check how we're storing session data
  
          Args:
              review: Review string to parse.
              source: Not used, but follows same signature as other functions called by lookup
                   table.
  
          Returns:
              Nothing.
          """