<commit_before># [Template](http://neocotic.com/template)  
# (c) 2012 <NAME>  
# Freely distributable under the MIT license.  
# For all details and documentation:  
# <http://neocotic.com/template>

# Functionality
# -------------

# Wrap the functionality in a request for Template's details in order to get
# the ID in use.
chrome.extension.sendRequest type: 'info', (data) ->
  # Names of the classes to be removed from the targeted elements.
  classes = ['chrome_install_button', 'btn-primary', 'primary']
  # Disable all "Install" links on the homepage for Template.
  for link in document.querySelectorAll "a.#{classes[0]}[href$=#{data.id}]"
    link.innerText = 'Installed'
    link.classList.add 'disabled'
    link.classList.remove cls for cls in classes<commit_msg>cleaning inline installation script after homepage redesign<commit_after># [Template](http://neocotic.com/template)  
# (c) 2012 <NAME>  
# Freely distributable under the MIT license.  
# For all details and documentation:  
# <http://neocotic.com/template>

# Functionality
# -------------

# Wrap the functionality in a request for Template's details in order to get
# the ID in use.
chrome.extension.sendRequest type: 'info', (data) ->
  # Names of the classes to be added to the targeted elements.
  newClasses = ['disabled']
  # Names of the classes to be removed from the targeted elements.
  oldClasses = ['chrome_install_button', 'btn-primary']
  # Disable all "Install" links on the homepage for Template.
  for link in document.querySelectorAll "a.#{oldClasses[0]}[href$=#{data.id}]"
    link.innerText = 'Installed'
    link.classList.add    cls for cls in newClasses
    link.classList.remove cls for cls in oldClasses
{'fraction_non_alphanumeric': 0.12302284710017575, 'fraction_numerical': 0.005858230814294083, 'mean_word_length': 3.8939828080229226, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '624169', 'n_tokens_mistral': 501, 'n_tokens_neox': 499, 'n_words': 177}