<commit_before># A simple example that loads a flat file with a stock quote data and connect a time dimension
# see full command documentation at http://developer.gooddata.com/gooddata-cl/cli-commands.html

# Create a new project
CreateProject(name="Quotes");

# Loads time dimension to the project
LoadDateDimension(name="Quote");

# Generate the MAQL script describing the data model for the date dimension
GenerateMaql(maqlFile="examples/quotes/quote_date.maql");

# Execute the date dimension MAQL script
ExecuteMaql(maqlFile="examples/quotes/quote_date.maql");

# load the stock quotes data file
# the data file config has been generated
LoadCsv(csvDataFile="examples/quotes/quotes.csv",header="true",configFile="examples/quotes/quotes.config.xml");

# generate the stock quotes MAQL
GenerateMaql(maqlFile="examples/quotes/quotes.maql");

# execute the stock quotes MAQL
ExecuteMaql(maqlFile="examples/quotes/quotes.maql");

# transfer the stock quotes data
TransferLastSnapshot();<commit_msg>quotes demo saves pid for easier cleanup during automated tests<commit_after># A simple example that loads a flat file with a stock quote data and connect a time dimension
# see full command documentation at http://developer.gooddata.com/gooddata-cl/cli-commands.html

# Create a new project
CreateProject(name="Quotes");

# Store the project ID to file for possible other scripts
StoreProject(fileName="examples/quotes/pid");

# Loads time dimension to the project
LoadDateDimension(name="Quote");

# Generate the MAQL script describing the data model for the date dimension
GenerateMaql(maqlFile="examples/quotes/quote_date.maql");

# Execute the date dimension MAQL script
ExecuteMaql(maqlFile="examples/quotes/quote_date.maql");

# load the stock quotes data file
# the data file config has been generated
LoadCsv(csvDataFile="examples/quotes/quotes.csv",header="true",configFile="examples/quotes/quotes.config.xml");

# generate the stock quotes MAQL
GenerateMaql(maqlFile="examples/quotes/quotes.maql");

# execute the stock quotes MAQL
ExecuteMaql(maqlFile="examples/quotes/quotes.maql");

# transfer the stock quotes data
TransferLastSnapshot();
{'fraction_non_alphanumeric': 0.09344490934449093, 'fraction_numerical': 0.0, 'mean_word_length': 6.3447098976109215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1196833', 'n_tokens_mistral': 622, 'n_tokens_neox': 607, 'n_words': 197}