<commit_before>---
name: Titanium.Platform
summary: |
  The top-level Platform module.  The Platform module is used to access the
  device's platform-related functionality.
extends: Titanium.Module
since: "0.1"
methods:
  - name: canOpenURL
    summary: |
      Returns whether the system is configured with a default application to handle
      this URL's protocol.
    returns:
        type: Boolean
    platforms: [iphone, ipad, mobileweb]
    parameters:
      - name: url
        summary: The url to check.
        type: String
  - name: createUUID
    summary: Creates a globally-unique identifier.
    returns:
        type: String
  - name: openURL
    summary: |
        Opens this URL using the system's default application for the protocol.
    parameters:
      - name: url
        summary: The url to open.
        type: Boolean
  - name: is24HourTimeFormat
    summary: |
        Returns whether the system settings are configured to show times in
        24-hour format.
    returns:
        type: Boolean
    platforms: [android, iphone, ipad]
events:
  - name: battery
    summary: |
        Fired when the battery state changes. This is measured in 5% increments
        on iPhone/iPad.
    properties:
      - name: state
        summary: The battery state.
      - name: level
        summary: The battery level.
    platforms: [android, iphone, ipad]
properties:
  - name: BATTERY_STATE_CHARGING
    summary: |
        Constant to indicate that the system is plugged in and currently being
        charged.
    type: Number
    permission: read-only
  - name: BATTERY_STATE_FULL
    summary: Constant to indicate that the battery is fully charged.
    type: Number
    permission: read-only
  - name: BATTERY_STATE_UNKNOWN
    summary: Constant to indicate that the battery state is not known or monitoring is disabled.
    type: Number
    permission: read-only
  - name: BATTERY_STATE_UNPLUGGED
    summary: Constant to indicate that the system is unplugged.
    type: Number
    permission: read-only
  - name: address
    summary: The system's WIFI IP address. No other network types are supported.
    type: String
    permission: read-only
  - name: architecture
    summary: The system's processor architecture.
    type: String
    permission: read-only
  - name: availableMemory
    summary: |
        The system's unused memory, measured in megabytes on iOS and bytes on Android.
    type: Number
    permission: read-only
  - name: batteryLevel
    summary: |
        The battery level in percent, accessible only when `batteryMonitoring` is enabled.
        This is measured in 5% increments on iPhone/iPad.
    type: Number
    permission: read-only
  - name: batteryMonitoring
    summary: Indicates whether battery monitoring is enabled.
    type: Boolean
    permission: read-only
  - name: batteryState
    summary: |
        Constant to indicate the state of the battery, accessible only when
        `batteryMonitoring` is enabled.
    description: |
        Returns one of the following constants from <Titanium.Platform>:  
        `BATTERY_STATE_CHARGING`,  
        `BATTERY_STATE_FULL`,  
        `BATTERY_STATE_UNKNOWN`  
        or `BATTERY_STATE_UNPLUGGED`.
    type: Number
    permission: read-only
  - name: displayCaps
    summary: |
        Returns the DisplayCaps object.
    description: |
        Note that he `displayCaps` property begins with a lowercase letter, 
        which is in contrast to the `DisplayCaps` object that it returns.
    type: Titanium.Platform.DisplayCaps
    permission: read-only
  - name: id
    summary: The system's globally-unique ID (UUID).
    type: String
    permission: read-only
    deprecated:
        since: "1.8.0"
  - name: locale
    summary: The system's default language.
    type: String
    permission: read-only
  - name: macaddress
    summary: The system's network interface mac address.
    type: String
    permission: read-only
  - name: model
    summary: The model of the device.
    type: String
    permission: read-only
    platforms: [android, iphone, ipad]
  - name: name
    summary: The name of the platform.
    type: String
    permission: read-only
  - name: netmask
    summary: The system's WIFI network mask. No other network types are supported.
    type: String
    permission: read-only
  - name: osname
    summary: |
        The short name of the system's Operating System. For example, iPhone
        will return `iphone`, iPad will return `ipad`, Android will return `android`
        and Mobile Web will return `mobileweb`.
    type: String
    permission: read-only
  - name: ostype
    summary: The Operating System architecture. For example, 32 bit.
    type: String
    permission: read-only
  - name: processorCount
    summary: The number of the system's processors.
    type: Number
    permission: read-only
  - name: runtime
    summary: The short name of the JavaScript runtime in use.
    description: |
      On iOS this returns "javascriptcore", on Android either "v8" or "rhino".
      On Mobile Web the return value depends on the browser that is being used.
    type: String
    permission: read-only
  - name: username
    summary: |
      The system name, if set. On iOS, this can be found in Settings > General > About > Name.
    type: String
    permission: read-only
  - name: version
    summary: The system's platform version.
    type: String
    permission: read-only<commit_msg>TIMOB-7026: APIDoc - Platform corrections<commit_after>---
name: Titanium.Platform
summary: |
  The top-level Platform module.  The Platform module is used to access the
  device's platform-related functionality.
extends: Titanium.Module
since: "0.1"
methods:
  - name: canOpenURL
    summary: |
      Returns whether the system is configured with a default application to handle
      this URL's protocol.
    returns:
        type: Boolean
    platforms: [iphone, ipad, mobileweb]
    parameters:
      - name: url
        summary: The url to check.
        type: String
  - name: createUUID
    summary: Creates a globally-unique identifier.
    returns:
        type: String
  - name: openURL
    summary: |
        Opens this URL using the system's default application for the protocol.
    parameters:
      - name: url
        summary: The url to open.
        type: Boolean
  - name: is24HourTimeFormat
    summary: |
        Returns whether the system settings are configured to show times in
        24-hour format.
    returns:
        type: Boolean
    platforms: [android, iphone, ipad]
events:
  - name: battery
    summary: |
        Fired when the battery state changes. This is measured in 5% increments
        on iPhone/iPad.
    properties:
      - name: state
        summary: The battery state.
      - name: level
        summary: The battery level.
    platforms: [android, iphone, ipad]
properties:
  - name: BATTERY_STATE_CHARGING
    summary: |
        Constant to indicate that the system is plugged in and currently being
        charged.
    type: Number
    permission: read-only
  - name: BATTERY_STATE_FULL
    summary: Constant to indicate that the battery is fully charged.
    type: Number
    permission: read-only
  - name: BATTERY_STATE_UNKNOWN
    summary: Constant to indicate that the battery state is not known or monitoring is disabled.
    type: Number
    permission: read-only
  - name: BATTERY_STATE_UNPLUGGED
    summary: Constant to indicate that the system is unplugged.
    type: Number
    permission: read-only
  - name: address
    summary: The system's WIFI IP address. No other network types are supported.
    type: String
    permission: read-only
  - name: architecture
    summary: The system's processor architecture.
    type: String
    permission: read-only
  - name: availableMemory
    summary: |
        The system's unused memory, measured in megabytes on iOS and bytes on Android.
    type: Number
    permission: read-only
  - name: batteryLevel
    summary: |
        The battery level in percent, accessible only when `batteryMonitoring` is enabled.
        This is measured in 5% increments on iPhone/iPad.
    type: Number
    permission: read-only
  - name: batteryMonitoring
    summary: Indicates whether battery monitoring is enabled.
    type: Boolean
    permission: read-only
  - name: batteryState
    summary: |
        Constant to indicate the state of the battery, accessible only when
        `batteryMonitoring` is enabled.
    description: |
        Returns one of the following constants from <Titanium.Platform>:  
        `BATTERY_STATE_CHARGING`,  
        `BATTERY_STATE_FULL`,  
        `BATTERY_STATE_UNKNOWN`  
        or `BATTERY_STATE_UNPLUGGED`.
    type: Number
    permission: read-only
  - name: displayCaps
    summary: |
        Returns the DisplayCaps object.
    description: |
        Note that he `displayCaps` property begins with a lowercase letter, 
        which is in contrast to the `DisplayCaps` object that it returns.
    type: Titanium.Platform.DisplayCaps
    permission: read-only
  - name: id
    summary: The system's globally-unique ID (UUID).
    type: String
    permission: read-only
    deprecated:
        since: "1.8.0"
  - name: locale
    summary: The system's default language.
    type: String
    permission: read-only
  - name: macaddress
    summary: The system's network interface mac address.
    type: String
    permission: read-only
  - name: model
    summary: The model of the device.
    type: String
    permission: read-only
    platforms: [android, iphone, ipad]
  - name: name
    summary: The name of the platform.
    type: String
    permission: read-only
  - name: netmask
    summary: The system's WIFI network mask. No other network types are supported.
    type: String
    permission: read-only
  - name: osname
    summary: |
        The short name of the system's Operating System. For example, iPhone
        will return `iphone`, iPad will return `ipad`, Android will return `android`
        and Mobile Web will return `mobileweb`.
    type: String
    permission: read-only
  - name: ostype
    summary: The Operating System architecture. On Android, this is `32bit`.
    type: String
    permission: read-only
  - name: processorCount
    summary: The number of processing cores.
    type: Number
    permission: read-only
  - name: runtime
    summary: The short name of the JavaScript runtime in use.
    description: |
      On iOS this returns "javascriptcore", on Android either "v8" or "rhino".
      On Mobile Web the return value depends on the browser that is being used.
    type: String
    permission: read-only
  - name: username
    summary: |
      The system name, if set. On iOS, this can be found in Settings > General > About > Name.
    type: String
    permission: read-only
  - name: version
    summary: The system's OS version.
    type: String
    permission: read-only
{'fraction_non_alphanumeric': 0.06628109795281373, 'fraction_numerical': 0.0029376663912604427, 'mean_word_length': 2.59656652360515, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4894850', 'n_tokens_mistral': 3006, 'n_tokens_neox': 2954, 'n_words': 1210}