<commit_before>//
//  STPStringUtils.h
//  Stripe
//
//  Created by <NAME> on 9/7/16.
//  Copyright © 2016 Stripe, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface STPStringUtils : NSObject
/**
 *  Takes a string with the named html-style tags, removes the tags,
 *  and then calls the completion modified string and the range in it that the 
 *  tag would have enclosed.
 *  
 *  E.g. Passing in @"Test <b>string</b>" with tag @"b" would call completion
 *  with @"Test string" and NSMakeRange(5,6).
 *  
 *  Completion is always called, location of range is NSNotFound with the unmodified
 *  string if a match could not be found.
 *
 *  @param string     The string with tagged substrings.
 *  @param tag        The tag to search for.
 *  @param completion The string with the named tag removed and the range of the<commit_msg>Fix method description<commit_after>//
//  STPStringUtils.h
//  Stripe
//
//  Created by <NAME> on 9/7/16.
//  Copyright © 2016 Stripe, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface STPStringUtils : NSObject
/**
 *  Takes a string with the named html-style tags, removes the tags,
 *  and then calls the completion block with the modified string and the range 
 *  in it that the tag would have enclosed.
 *  
 *  E.g. Passing in @"Test <b>string</b>" with tag @"b" would call completion
 *  with @"Test string" and NSMakeRange(5,6).
 *  
 *  Completion is always called, location of range is NSNotFound with the unmodified
 *  string if a match could not be found.
 *
 *  @param string     The string with tagged substrings.
 *  @param tag        The tag to search for.
 *  @param completion The string with the named tag removed and the range of the
{'fraction_non_alphanumeric': 0.09321058688147296, 'fraction_numerical': 0.011507479861910242, 'mean_word_length': 3.0630841121495327, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '624913', 'n_tokens_mistral': 544, 'n_tokens_neox': 511, 'n_words': 232}