<commit_before>#!/usr/bin/env ruby -wKU
# encoding: utf-8

module FlexMate

  module SDK

    require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes'

    class << self

      # Fallback Search locations for the flex sdk if they are not specified in
      # the environmental variable TM_FLEX_SDK_SEARCH_PATHS. See the 'Settings'
      # bundle preference for the active list.
      #
      FLEX_DIRS = [ "/Developer/SDKs/flex_sdk_3",
                    "/Developer/SDKs/flex_sdk_3.3.0",
                    "/Developer/SDKs/flex_sdk_3.2.0",
                    "/Developer/SDKs/flex_sdk_3.1.0",
                    "/Developer/SDKs/flex_sdk_3.0.2",
                    "/Applications/flex_sdk_3",
                    "/Applications/flex_sdk_2",
                    "/Applications/Flex",
                    "/Applications/Adobe Flex Builder 3/sdks/3.0.0",
                    "/Applications/Adobe Flex Builder 3/sdks/2.0.1",
                    "/Applications/Adobe Flex Builder 2/Flex SDK 2",
                    "/Developer/Applications/Adobe Flex Builder 2/Flex SDK 2",
                    "/Developer/SDKs/flex_sdk_2",
                    "/Developer/SDKs/Flex",
                    "/Developer/SDKs/FlexSDK2",
                    "/Developer/Applications/Flex",
                    "/Developer/Applications/flex_sdk_2",
                    "/Developer/Applications/FlexSDK2"
      ]

      SDK_SRC_PATHS = [ "/frameworks/source/mx/",
                        "/frameworks/projects/framework/src"
      ]

      # Return the first Flex SDK directory found in the list.
      #
      def dir_check
        return sdk_dir_arr.find { |dir| File.directory? dir }
      end

      # Returns a : seperated list of locations the flex sdk may commonly
      # be found.
      #
      def sdk_dir_list
        src_dirs = ENV['TM_FLEX_SDK_SEARCH_PATHS'] || FLEX_DIRS.join(":")
        src_dirs
      end
<commit_msg>• Updated list of SDK's.<commit_after>#!/usr/bin/env ruby -wKU
# encoding: utf-8

module FlexMate

  module SDK

    require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes'

    class << self

      # Fallback Search locations for the flex sdk if they are not specified in
      # the environmental variable TM_FLEX_SDK_SEARCH_PATHS. See the 'Settings'
      # bundle preference for the active list.
      #
      FLEX_DIRS = [ "/Developer/SDKs/flex_sdk_3",
                    "/Developer/SDKs/flex_sdk_3.4.0",
                    "/Developer/SDKs/flex_sdk_3.3.0",
                    "/Developer/SDKs/flex_sdk_3.2.0",
                    "/Developer/SDKs/flex_sdk_3.1.0",
                    "/Developer/SDKs/flex_sdk_3.0.2",
                    "/Applications/flex_sdk_3",
                    "/Applications/flex_sdk_2",
                    "/Applications/Flex",
                    "/Applications/Adobe Flex Builder 3/sdks/3.4.0",
                    "/Applications/Adobe Flex Builder 3/sdks/3.3.0",
                    "/Applications/Adobe Flex Builder 3/sdks/3.2.0",
                    "/Applications/Adobe Flex Builder 3/sdks/3.0.0",
                    "/Applications/Adobe Flex Builder 3/sdks/2.0.1",
                    "/Applications/Adobe Flash Builder Beta/sdks/3.4.0",
                    "/Applications/Adobe Flash Builder Beta/sdks/4.0.0",
                    "/Applications/Adobe Flex Builder 2/Flex SDK 2",
										"/Adobe Flex Builder 3 Plug-in/sdks/3.4.0",
										"/Adobe Flex Builder 3 Plug-in/sdks/3.3.0",
										"/Adobe Flex Builder 3 Plug-in/sdks/3.2.0",
										"/Adobe Flex Builder 3 Plug-in/sdks/3.1.0",
										"/Adobe Flex Builder 3 Plug-in/sdks/3.0.0",
                    "/Developer/Applications/Adobe Flex Builder 2/Flex SDK 2",
                    "/Developer/SDKs/flex_sdk_2",
                    "/Developer/SDKs/Flex",
                    "/Developer/SDKs/FlexSDK2",
                    "/Developer/Applications/Flex",
                    "/Developer/Applications/flex_sdk_2",
                    "/Developer/Applications/FlexSDK2"
      ]

      SDK_SRC_PATHS = [ "/frameworks/source/mx/",
                        "/frameworks/projects/framework/src"
      ]

      # Return the first Flex SDK directory found in the list.
      #
      def dir_check
        return sdk_dir_arr.find { |dir| File.directory? dir }
      end

      # Returns a : seperated list of locations the flex sdk may commonly
      # be found.
      #
      def sdk_dir_list
        src_dirs = ENV['TM_FLEX_SDK_SEARCH_PATHS'] || FLEX_DIRS.join(":")
        src_dirs
      end

{'fraction_non_alphanumeric': 0.11, 'fraction_numerical': 0.023333333333333334, 'mean_word_length': 1.5617529880478087, 'pattern_counts': {'":': 2, '<': 7, '<?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': 25, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '770471', 'n_tokens_mistral': 1610, 'n_tokens_neox': 1316, 'n_words': 282}