<commit_before><?php
// require the Faker autoloader
require_once '/Users/aemreunal/Documents/GitHub/fzaninotto-Faker/src/autoload.php';

// use the factory to create a Faker\Generator instance
$faker = Faker\Factory::create();

// Parse command-line arguments
$options = getopt('n:');
if (count($options) == 0) {
  exit("Please specify number of beacons to generate. Ex: \"... -n100\" for 100 beacons.\n");
}

$NUM_BEACONS = intval($options["n"]);

$file = 'generated_beacons.txt';
$generatedBeacons = "";
$generateDescriptions = 1;

/*
 * Beacon JSON to generate:
{
  "uuid":"HelloWorld11111111111111111111111111", ->36 characters
  "major":"1", -> 1-4 characters
  "minor":"1", -> 1-4 characters
  "description":"testasd1" ->0-200 characters
}

 * As a list:
[{
  "uuid":"HelloWorld11111111111111111111111111",
  "major":"1",
  "minor":"1",
  "description":"testasd1"
},
{
  "uuid":"HelloWorld11111111111111111111111111",
  "major":"1",
  "minor":"1",
  "description":"testasd1"<commit_msg>Add library disclaimer to beacon generator script<commit_after><?php

/*
Ths script requires the PHP Faker library by fzaninotto.
You can obtain it from https://github.com/fzaninotto/Faker
*/

// Require the Faker autoloader, point it to your own Faker code
require_once '/Users/aemreunal/Documents/GitHub/fzaninotto-Faker/src/autoload.php';

// Use the factory to create a Faker\Generator instance
$faker = Faker\Factory::create();

// Parse command-line arguments
$options = getopt('n:');
if (count($options) == 0) {
  exit("Please specify number of beacons to generate. Ex: \"... -n100\" for 100 beacons.\n");
}
$NUM_BEACONS = intval($options["n"]);

$file = 'generated_beacons.txt';
$generatedBeacons = "";
$generateDescriptions = 1;

/*
 * Beacon JSON to generate:
{
  "uuid":"HelloWorld11111111111111111111111111", ->36 characters
  "major":"1", -> 1-4 characters
  "minor":"1", -> 1-4 characters
  "description":"testasd1" ->0-200 characters
}

 * As a list:
[{
  "uuid":"",
  "major":"",
  "minor":"",
  "description":""
},{
  "uuid":"",
  "major":"",
  "minor":"",
  "description":""
{'fraction_non_alphanumeric': 0.18225419664268586, 'fraction_numerical': 0.07290167865707434, 'mean_word_length': 4.683923705722071, 'pattern_counts': {'":': 24, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '3785968', 'n_tokens_mistral': 842, 'n_tokens_neox': 703, 'n_words': 169}