<commit_before>require "benchmark"
require "date"
require 'net/http'

### PROPERTIES TO SET
APP_NAME = "Xamarin CRM"

ANDROID_DIR = "/src/MobileApp/XamarinCRM.Android"
IOS_DIR = "/src/MobileApp/XamarinCRM.iOS"
TEST_DIR = "/src/MobileApp/XamarinCRM.UITest"
PACKAGE_DIR = "/src/MobileApp/packages/Xamarin.UITest.1.2.0"

SLN_FILE = "/src/MobileApp/XamarinCRM.sln"
APK_FILE = "/src/MobileApp/XamarinCRM.Android/bin/Release/com.xamarin.xamarincrm-Signed.apk"
IPA_FILE = "/src/MobileApp/XamarinCRM.iOS/bin/iPhone/Debug/XamarinCRM_Debug.ipa"
DSYM_FILE = "/src/MobileApp/XamarinCRM.iOS/bin/iPhone/Debug/XamarinCRMiOS.app.dSYM"

# ANDROID_KEYSTORE = "debug.keystore"

DEFAULT_SERIES = "master"
DEFAULT_IOS_DEVICE_SET = "2f802e3f" # small set
DEFAULT_ANDROID_DEVICE_SET = "fe5e138d" # small set
### END

task :default => ['build:android', 'build:ios', 'build:tests']

desc "Removes bin and obj directories for Android, iOS, and test projects."
task :clean do
  [ANDROID_DIR, IOS_DIR, TEST_DIR].each do |dir|
    rm_rf "#{dir}/bin"
    rm_rf "#{dir}/obj"
  end
end

namespace :build do
  desc "Builds the Android project"
  task :android => [:restore_packages] do
    # puts "Adding maps to manifest"
		# addMaptoManifest("/src/MobileApp/XamarinCRM.Android/Properties/AndroidManifest.xml")
    puts "building Android project with:"<commit_msg>revert<commit_after>require "benchmark"
require "date"
require 'net/http'

### PROPERTIES TO SET
APP_NAME = "Xamarin CRM"

ANDROID_DIR = "/src/MobileApp/XamarinCRM.Android"
IOS_DIR = "/src/MobileApp/XamarinCRM.iOS"
TEST_DIR = "/src/MobileApp/XamarinCRM.UITest"
PACKAGE_DIR = "/src/MobileApp/packages/Xamarin.UITest.1.2.0"

SLN_FILE = "../../src/MobileApp/XamarinCRM.sln"
APK_FILE = "/src/MobileApp/XamarinCRM.Android/bin/Release/com.xamarin.xamarincrm-Signed.apk"
IPA_FILE = "/src/MobileApp/XamarinCRM.iOS/bin/iPhone/Debug/XamarinCRM_Debug.ipa"
DSYM_FILE = "/src/MobileApp/XamarinCRM.iOS/bin/iPhone/Debug/XamarinCRMiOS.app.dSYM"

# ANDROID_KEYSTORE = "debug.keystore"

DEFAULT_SERIES = "master"
DEFAULT_IOS_DEVICE_SET = "2f802e3f" # small set
DEFAULT_ANDROID_DEVICE_SET = "fe5e138d" # small set
### END

task :default => ['build:android', 'build:ios', 'build:tests']

desc "Removes bin and obj directories for Android, iOS, and test projects."
task :clean do
  [ANDROID_DIR, IOS_DIR, TEST_DIR].each do |dir|
    rm_rf "#{dir}/bin"
    rm_rf "#{dir}/obj"
  end
end

namespace :build do
  desc "Builds the Android project"
  task :android => [:restore_packages] do
    # puts "Adding maps to manifest"
		# addMaptoManifest("/src/MobileApp/XamarinCRM.Android/Properties/AndroidManifest.xml")
    puts "building Android project with:"
{'fraction_non_alphanumeric': 0.13786626596543952, 'fraction_numerical': 0.009015777610818933, 'mean_word_length': 5.052272727272728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5908650', 'n_tokens_mistral': 1016, 'n_tokens_neox': 1040, 'n_words': 189}