<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved

#include "DeviceHelpers.h"
#include <algorithm>

namespace ExampleApp
{
    namespace Helpers
    {
        int deviceFramerateWhitelist[] = {
            GAME_DEVICE_IPHONE8_PLUS,
            GAME_DEVICE_IPHONE8,
            GAME_DEVICE_IPADPRO_12_9_INCH,
            GAME_DEVICE_IPADPRO_9_7_INCH,
            GAME_DEVICE_IPHONE_SE,
            GAME_DEVICE_IPHONE7_PLUS,
            GAME_DEVICE_IPHONE7,
            GAME_DEVICE_IPHONE6S_PLUS,
            GAME_DEVICE_IPHONE6S,
            GAME_DEVICE_IPHONE6PLUS,
            GAME_DEVICE_IPHONE6,
            GAME_DEVICE_IPHONE5S,
            GAME_DEVICE_IPOD6GEN,
            GAME_DEVICE_IPADAIR_2,
            GAME_DEVICE_IPADMINI_3,
            GAME_DEVICE_IPADMINI_4
        };
        
        namespace DeviceHelpers
        {
            NSInteger GetPreferredFramerate(const GameDeviceType& deviceType)
            {   
                bool isWhitelisted = std::find(std::begin(deviceFramerateWhitelist), std::end(deviceFramerateWhitelist), deviceType) != std::end(deviceFramerateWhitelist);
                
                return isWhitelisted ? (NSInteger)60 : (NSInteger)30;
            }
        }
    }
}<commit_msg>Fix for [MPLY-9790]; iOS 60FPS Whitelist is now a 30FPS Blacklist. New devices will no longer need to be added to the list to get the benefit of 60FPS. Buddy: Jonty<commit_after>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved

#include "DeviceHelpers.h"
#include <algorithm>

namespace ExampleApp
{
    namespace Helpers
    {
        int deviceFramerateBlacklist[] = {
            GAME_DEVICE_IPHONE1,
            GAME_DEVICE_IPHONE3G,
            GAME_DEVICE_IPHONE4,
            GAME_DEVICE_IPHONE4S,
            GAME_DEVICE_IPHONE5,
            GAME_DEVICE_IPOD1GEN,
            GAME_DEVICE_IPOD2GEN,
            GAME_DEVICE_IPOD3GEN,
            GAME_DEVICE_IPOD4GEN,
            GAME_DEVICE_IPOD5GEN,
            GAME_DEVICE_IPAD1,
            GAME_DEVICE_IPAD2,
            GAME_DEVICE_IPAD3,
            GAME_DEVICE_IPAD4,
            GAME_DEVICE_IPADAIR,
            GAME_DEVICE_IPADMINI_1GEN,
            GAME_DEVICE_IPADMINI_2
        };
        
        namespace DeviceHelpers
        {
            NSInteger GetPreferredFramerate(const GameDeviceType& deviceType)
            {   
                bool isBlacklisted = std::find(std::begin(deviceFramerateBlacklist), std::end(deviceFramerateBlacklist), deviceType) != std::end(deviceFramerateBlacklist);
                
                return isBlacklisted ? (NSInteger)30 : (NSInteger)60;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.061224489795918366, 'fraction_numerical': 0.025699168556311415, 'mean_word_length': 2.046029919447641, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '112020', 'n_tokens_mistral': 881, 'n_tokens_neox': 846, 'n_words': 131}