<commit_before>{
  "title":"root",
  "self": {
  	"vendor": "referral-saasquatch",
	  "name" : "rs_schema",
	  "format" : "jsonschema",
  	"version" : "1-0-0"
  },
  "type":"object",
  "properties":{
    "jsOptions":{
      "type":"object",
      "properties":{
        "widget":{
          "type":"object",
          "properties":{
            "defaultWidgetType":{
              "type":"string",
              "title":"Default Widget Type",
              "default":"REFERRER_WIDGET",
              "enum":[
                "REFERRER_WIDGET",
                "CONVERSION_WIDGET"
              ],
              "options":{
                "enum_titles":[
                  "Referrer's Widget",
                  "Referred Conversion Widget"
                ]
              }
            }
          }
        },
        "cta":{
          "type":"object",
          "properties":{
            "configuration":{
              "type":"object",
              "properties":{
                "themeMapping":{
                  "default":"cta-widget"
                },
                "shownForUrls":{
                  "type":"array",
                  "items":{
                    "type":"string",
                    "options":{
                      "validate":[
                        "url"
                      ]
                    }
                  }
                }
              }
            },
            "content":{
              "type":"object",
              "title":"Customize CTA Button",
              "properties":{
                "buttonSide":{
                  "type":"string",
                  "title":"Button Side:",
                  "enum":[
                    "left",
                    "right",
                    "center"
                  ],
                  "options":{
                    "enum_titles":[
                      "Left Side",
                      "Right Side",
                      "Center"
                    ]
                  }
                },
                "buttonPosition":{
                  "type":"string",
                  "title":"Button Position:",
                  "enum":[
                    "top",
                    "bottom",
                    "middle"
                  ],
                  "options":{
                    "enum_titles":[
                      "Top",
                      "Bottom",
                      "Middle"
                    ]
                  }
                },
                "buttonColor":{
                  "type":"string",
                  "format":"text",
                  "minLength":1,
                  "title":"Button Color (hex code):",
                  "default":"#4486E1",
                  "options":{
                    "validate":[
                      "hex-color"
                    ]
                  }
                },
                "buttonText":{
                  "type":"string",
                  "title":"Button Text",
                  "format":"markdown",
                  "propertyOrder":4,
                  "default":"Refer Friends For Rewards",
                  "options":{
                    "validate":[
                      "handlebars"
                    ],
                    "input_height":"50px"
                  }
                }
              }
            }
          }
        },
        "conversionUrls":{
          "type":"array",
          "items":{
            "type":"string"
          }
        },
        "widgetUrlMappings":{
          "type":"array",
          "items":{
            "type":"object",
            "properties":{
              "url":{
                "type":"string"
              },
              "widgetType":{
                "type":"string",
                "enum":[
                  "REFERRER_WIDGET",
                  "CONVERSION_WIDGET"
                ],
                "options":{
                  "enum_titles":[
                    "Referrer's Widget",
                    "Referred Conversion Widget"
                  ]
                }
              }
            }<commit_msg>EM - updated to tie CTA to widget types<commit_after>{
  "title":"root",
  "self": {
  	"vendor": "referral-saasquatch",
	  "name" : "rs_schema",
	  "format" : "jsonschema",
  	"version" : "1-0-0"
  },
  "type":"object",
  "properties":{
    "jsOptions":{
      "type":"object",
      "properties":{
        "widget":{
          "type":"object",
          "properties":{
            "defaultWidgetType":{
              "type":"string",
              "title":"Default Widget Type",
              "default":"REFERRER_WIDGET",
              "enum":[
                "REFERRER_WIDGET",
                "CONVERSION_WIDGET"
              ],
              "options":{
                "enum_titles":[
                  "Referrer's Widget",
                  "Referred Conversion Widget"
                ]
              }
            }
          }
        },
        "cta":{
          "type":"object",
          "properties":{
            "configuration":{
              "type":"object",
              "properties":{
                "themeMapping":{
                  "default":"cta-widget"
                }
              }
            },
            "content":{
              "type":"object",
              "title":"Customize CTA Button",
              "properties":{
                "buttonSide":{
                  "type":"string",
                  "title":"Button Side:",
                  "enum":[
                    "left",
                    "right",
                    "center"
                  ],
                  "options":{
                    "enum_titles":[
                      "Left Side",
                      "Right Side",
                      "Center"
                    ]
                  }
                },
                "buttonPosition":{
                  "type":"string",
                  "title":"Button Position:",
                  "enum":[
                    "top",
                    "bottom",
                    "middle"
                  ],
                  "options":{
                    "enum_titles":[
                      "Top",
                      "Bottom",
                      "Middle"
                    ]
                  }
                },
                "buttonColor":{
                  "type":"string",
                  "format":"text",
                  "minLength":1,
                  "title":"Button Color (hex code):",
                  "default":"#4486E1",
                  "options":{
                    "validate":[
                      "hex-color"
                    ]
                  }
                },
                "buttonText":{
                  "type":"string",
                  "title":"Button Text",
                  "format":"markdown",
                  "propertyOrder":4,
                  "default":"Refer Friends For Rewards",
                  "options":{
                    "validate":[
                      "handlebars"
                    ],
                    "input_height":"50px"
                  }
                }
              }
            }
          }
        },
        "conversionUrls":{
          "type":"array",
          "items":{
            "type":"string"
          }
        },
        "widgetUrlMappings":{
          "type":"array",
          "items":{
            "type":"object",
            "properties":{
              "url":{
                "type":"string"
              },
	      "showAsCTA":{
                "type": "boolean"
	      },
              "widgetType":{
                "type":"string",
                "enum":[
                  "REFERRER_WIDGET",
                  "CONVERSION_WIDGET"
                ],
                "options":{
                  "enum_titles":[
                    "Referrer's Widget",
                    "Referred Conversion Widget"
                  ]
                }
              }
            }
{'fraction_non_alphanumeric': 0.13138411343957837, 'fraction_numerical': 0.003011670222110679, 'mean_word_length': 0.7247349058645315, 'pattern_counts': {'":': 158, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3775151', 'n_tokens_mistral': 1993, 'n_tokens_neox': 1735, 'n_words': 269}