<commit_before>class vjs.ChromecastTech extends vjs.MediaTechController
  defaultMuted: false
  loop: false

  @isSupported = ->
    @player_.chromecastComponent.apiInitialized

  @canPlaySource = (source) ->
    source.type is "video/mp4"

  constructor: (player, options, ready) ->
    # Set the features that this Tech has
    @features["volumeControl"] = true
    @features["movingMediaElementInDOM"] = false
    @features["fullscreenResize"] = false
    @features["progressEvents"] = true
    @features["timeupdateEvents"] = true

    vjs.MediaTechController.call this, player, options, ready

    @el_ = videojs.Component::createEl("div",
      id: "myId"
      className: "vjs-tech"
      innerHTML: "<img src=\"" + @player_.options_.poster + "\" class=\"backgroundImage\"/><div class=\"currentlyCasting\"><h2 class=\"castingLabel\">Casting to device</h2></div>"
    )

    vjs.insertFirst @el_, @player_.el()<commit_msg>Give the component a valid id<commit_after>class vjs.ChromecastTech extends vjs.MediaTechController
  defaultMuted: false
  loop: false

  @isSupported = ->
    @player_.chromecastComponent.apiInitialized

  @canPlaySource = (source) ->
    source.type is "video/mp4"

  constructor: (player, options, ready) ->
    # Set the features that this Tech has
    @features["volumeControl"] = true
    @features["movingMediaElementInDOM"] = false
    @features["fullscreenResize"] = false
    @features["progressEvents"] = true
    @features["timeupdateEvents"] = true

    vjs.MediaTechController.call this, player, options, ready

    @el_ = videojs.Component::createEl("div",
      id: "#{@player_.id_}_chromecast_api"
      className: "vjs-tech"
      innerHTML: "<img src=\"#{@player_.options_.poster}\" class=\"backgroundImage\" /><div class=\"currentlyCasting\"><h2 class=\"castingLabel\">Casting to device</h2></div>"
    )

    vjs.insertFirst @el_, @player_.el()
{'fraction_non_alphanumeric': 0.14361140443505807, 'fraction_numerical': 0.0031678986272439284, 'mean_word_length': 4.094086021505376, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '2250019', 'n_tokens_mistral': 596, 'n_tokens_neox': 571, 'n_words': 122}