<commit_before># ===== Authors ======================
# Originally written by <NAME>
# https://community.tableau.com/message/646689
# Tweaked by <NAME>, Cerner Corporation
#
# ===== Change Log ===================
# July 27th, 2017
#   Added paging capability as well as user prompting user for details rather than hard coding
#
# July 28th, 2017
#   Fixed issue where users were only being pulled back for Default Site
#   Output file now includes Site
#   Password for user is now hidden when entered
#
# ===== Compatibility ===============
# Tested against Tableau Server 10.3.1 run from Windows 7 locally
#
# ===== How To Use ==================
# 1) Open Powershell
# 2) Change to directory this file is located
# 3) Enter this command:
#    .\get_Tableau_Publishers.ps1 | Out-File Tableau_User_Roles.csv
# 4) When prompted enter your Tableau Server Address, Username, Password
# 5) Open Tableau_User_Roles.csv with your favorite text editor and validate
#
# ===== Known Issues ================
# None
# If you find one, comment with it in this Git Repo or comment on this thread in Tableau Forums:
# https://community.tableau.com/thread/238244
#
# ===== Did this help you? ==========
# If you find this code useful please mark this reply as helpful on Tableau Communiy Forum:
# https://community.tableau.com/message/647066#647066
# 
# ===== Begin Main Code =============
# Prompt user for details to connect
$tabserver = Read-Host -prompt 'Enter your Domain (ie: https://your.tableau.domain)'
$usr = Read-Host -Prompt 'Username'
$pass = Read-Host -assecurestring 'Password'
$pass = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($Pass))
<commit_msg>Updating Link in comments to Tableau Forum<commit_after># ===== Authors ======================
# Originally written by <NAME>
# https://community.tableau.com/message/646689
# Tweaked by <NAME>, Cerner Corporation
#
# ===== Change Log ===================
# July 27th, 2017
#   Added paging capability as well as user prompting user for details rather than hard coding
#
# July 28th, 2017
#   Fixed issue where users were only being pulled back for Default Site
#   Output file now includes Site
#   Password for user is now hidden when entered
#
# ===== Compatibility ===============
# Tested against Tableau Server 10.3.1 run from Windows 7 locally
#
# ===== How To Use ==================
# 1) Open Powershell
# 2) Change to directory this file is located
# 3) Enter this command:
#    .\get_Tableau_Publishers.ps1 | Out-File Tableau_User_Roles.csv
# 4) When prompted enter your Tableau Server Address, Username, Password
# 5) Open Tableau_User_Roles.csv with your favorite text editor and validate
#
# ===== Known Issues ================
# None
# If you find one, comment with it in this Git Repo or comment on this thread in Tableau Forums:
# https://community.tableau.com/thread/238244
#
# ===== Did this help you? ==========
# If you find this code useful please mark this reply as helpful on Tableau Communiy Forum:
# https://community.tableau.com/message/647650#647650
# 
# ===== Begin Main Code =============
# Prompt user for details to connect
$tabserver = Read-Host -prompt 'Enter your Domain (ie: https://your.tableau.domain)'
$usr = Read-Host -Prompt 'Username'
$pass = Read-Host -assecurestring 'Password'
$pass = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($Pass))

{'fraction_non_alphanumeric': 0.1634308895972182, 'fraction_numerical': 0.027238481599536367, 'mean_word_length': 4.900854700854701, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '6798817', 'n_tokens_mistral': 1081, 'n_tokens_neox': 966, 'n_words': 372}