<commit_before># GeoGebra turbo.me file
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0

###################################
# Set metadata
###################################

meta title="GeoGebra"
meta namespace="geogebra"
meta name="geogebra"

###################################
# Get build dependencies
###################################

layer jre
using wget,python:3.4.1

###################################
# Download installer
###################################

cmd  mkdir c:\Workspace
workdir c:\Workspace

var url = "http://download.geogebra.org/installers/?os=win"

cmd "wget --no-check-certificate --no-verbose ""%url%"""
cmd "dir > output.txt"

batch
  echo import re >> getVersion.py
  echo f = open('output.txt', 'r') >> getVersion.py
  echo t = f.read() >> getVersion.py
  echo print([re.findall("(Geo\S*.exe)", t)[0], '.'.join(re.findall("-(\d*)-(\d*)-(\d*)-(\d*)", t)[0]), '.'.join(re.findall("-(\d*)-(\d*)", t)[0])]) >> getVersion.py

cmd python getVersion.py
var res = last

cmd "python -c ""print(%res%[0])"""
var filename = last
<commit_msg>CI-201 - Fix GeoGebra build<commit_after># GeoGebra turbo.me file
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0

###################################
# Set metadata
###################################

meta title="GeoGebra"
meta namespace="geogebra"
meta name="geogebra"

###################################
# Get build dependencies
###################################

layer jre
using wget,python:3.4.1

###################################
# Download installer
###################################

cmd  mkdir c:\Workspace
workdir c:\Workspace

var url = "http://download.geogebra.org/installers/?os=win"

cmd "wget --content-disposition --no-verbose ""%url%"""
cmd "dir > output.txt"

batch
  echo import re >> getVersion.py
  echo f = open('output.txt', 'r') >> getVersion.py
  echo t = f.read() >> getVersion.py
  echo print([re.findall("(Geo\S*.exe)", t)[0], '.'.join(re.findall("-(\d*)-(\d*)-(\d*)-(\d*)", t)[0]), '.'.join(re.findall("-(\d*)-(\d*)", t)[0])]) >> getVersion.py

cmd python getVersion.py
var res = last

cmd "python -c ""print(%res%[0])"""
var filename = last

{'fraction_non_alphanumeric': 0.3553276861346411, 'fraction_numerical': 0.011145786892554615, 'mean_word_length': 5.164835164835165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '609008', 'n_tokens_mistral': 753, 'n_tokens_neox': 720, 'n_words': 163}