<commit_before>#
# Adobe FlashPlayer turbo.me file
# https://github.com/turboapps/turbome/tree/master/flash
#
# Created with Turbo CMD version 1.4.1171.0
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0

###################################
# Meta tags
###################################

meta title="Adobe FlashPlayer"
meta namespace="adobe"
meta name="flash"

###################################
# Pull dependency images
###################################

using gnu/wget,python/python:3.4.1



###################################
# Download and install
###################################

# Set working directory
cmd mkdir c:\Workspace
workdir c:\Workspace

# Get version
cmd pip install requests --quiet

# Extract the latest Adobe Flash Player version for Win and Mac
batch
 echo import sys > getRelease.py
 echo import requests >> getRelease.py
 echo import re >> getRelease.py
 echo host = "http://www.adobe.com/support/flashplayer/downloads.html" >> getRelease.py
 echo headers = {"User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"} >>  getRelease.py
 echo r = requests.get(host , headers=headers, timeout=10) >> getRelease.py
 echo print(re.findall("(\d+\.\d+.\d+\.\d+)\s+\(Win(?:\s+\w*)?\s+and\s+Mac\)", r.text)[0]) >> getRelease.py

cmd python getRelease.py

var tag = last

cmd "python -c ""print('%tag%'.split('.')[0])"""
var version = last

# Download
cmd "wget -O setup.msi --no-verbose --no-check-certificate http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_%version%_plugin.msi"

# Install
cmd "setup.msi /qn"


###################################
# Environment Variables
###################################


###################################
# Clean up
###################################<commit_msg>Disable Flash protected mode - temporary workaround for Firefox hangs on pages containing Flash content<commit_after>#
# Adobe FlashPlayer turbo.me file
# https://github.com/turboapps/turbome/tree/master/flash
#
# Created with Turbo CMD version 1.4.1171.0
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0

###################################
# Meta tags
###################################

meta title="Adobe FlashPlayer"
meta namespace="adobe"
meta name="flash"

###################################
# Pull dependency images
###################################

using gnu/wget,python/python:3.4.1



###################################
# Download and install
###################################

# Set working directory
cmd mkdir c:\Workspace
workdir c:\Workspace

# Get version
cmd pip install requests --quiet

# Extract the latest Adobe Flash Player version for Win and Mac
batch
 echo import sys > getRelease.py
 echo import requests >> getRelease.py
 echo import re >> getRelease.py
 echo host = "http://www.adobe.com/support/flashplayer/downloads.html" >> getRelease.py
 echo headers = {"User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"} >>  getRelease.py
 echo r = requests.get(host , headers=headers, timeout=10) >> getRelease.py
 echo print(re.findall("(\d+\.\d+.\d+\.\d+)\s+\(Win(?:\s+\w*)?\s+and\s+Mac\)", r.text)[0]) >> getRelease.py

cmd python getRelease.py

var tag = last

cmd "python -c ""print('%tag%'.split('.')[0])"""
var version = last

# Download
cmd "wget -O setup.msi --no-verbose --no-check-certificate http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_%version%_plugin.msi"

# Install
cmd "setup.msi /qn"

# Disable protected mode - temporary workaround for Firefox hangs on pages containing Flash content
batch
    echo ProtectedMode=0 >> %SYSTEMROOT%\system32\macromed\flash\mms.cfg
    echo ProtectedMode=0 >> %SYSTEMROOT%\syswow64\macromed\flash\mms.cfg


###################################
# Environment Variables
###################################


###################################
# Clean up
###################################
{'fraction_non_alphanumeric': 0.2902746844840386, 'fraction_numerical': 0.020292006928977976, 'mean_word_length': 5.237654320987654, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 33, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6386058', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1162, 'n_words': 295}