<commit_before>import Foundation

internal let WMFReadingListSyncStateKey = "WMFReadingListsSyncState"

internal let WMFReadingListUpdateKey = "WMFReadingListUpdateKey"

internal let WMFReadingListBatchRequestLimit = 8

internal let WMFReadingListBatchSizePerRequestLimit = 500

internal let WMFReadingListCoreDataBatchSize = 500

struct ReadingListSyncState: OptionSet {
    let rawValue: Int64
    
    static let needsRemoteEnable    = ReadingListSyncState(rawValue: 1 << 0)
    static let needsSync  = ReadingListSyncState(rawValue: 1 << 1)
    static let needsUpdate      = ReadingListSyncState(rawValue: 1 << 2)
    static let needsRemoteDisable    = ReadingListSyncState(rawValue: 1 << 3)
    
    static let needsLocalReset    = ReadingListSyncState(rawValue: 1 << 4) // mark all as unsynced, remove remote IDs
    static let needsLocalArticleClear    = ReadingListSyncState(rawValue: 1 << 5) // remove all saved articles
    static let needsLocalListClear    = ReadingListSyncState(rawValue: 1 << 6) // remove all lists<commit_msg>comment<commit_after>import Foundation

internal let WMFReadingListSyncStateKey = "WMFReadingListsSyncState"

internal let WMFReadingListUpdateKey = "WMFReadingListUpdateKey"

internal let WMFReadingListBatchRequestLimit = 8 // currently this waits until all 8 requests are done before firing off 8 new ones, should be optimized to add new requests as old ones finish

internal let WMFReadingListBatchSizePerRequestLimit = 500

internal let WMFReadingListCoreDataBatchSize = 500

struct ReadingListSyncState: OptionSet {
    let rawValue: Int64
    
    static let needsRemoteEnable    = ReadingListSyncState(rawValue: 1 << 0)
    static let needsSync  = ReadingListSyncState(rawValue: 1 << 1)
    static let needsUpdate      = ReadingListSyncState(rawValue: 1 << 2)
    static let needsRemoteDisable    = ReadingListSyncState(rawValue: 1 << 3)
    
    static let needsLocalReset    = ReadingListSyncState(rawValue: 1 << 4) // mark all as unsynced, remove remote IDs
    static let needsLocalArticleClear    = ReadingListSyncState(rawValue: 1 << 5) // remove all saved articles
    static let needsLocalListClear    = ReadingListSyncState(rawValue: 1 << 6) // remove all lists
{'fraction_non_alphanumeric': 0.059088858818222824, 'fraction_numerical': 0.02165087956698241, 'mean_word_length': 4.658163265306122, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 3, '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': '402206', 'n_tokens_mistral': 659, 'n_tokens_neox': 590, 'n_words': 193}