<commit_before>'use strict';

var app = angular.module('myApp.registrations.directives', []);

app.directive('createHolding', ['Holding', 'User', 'Brand', 'locationHelper', '$routeParams', '$location', '$cookies', 'menu', 'gettextCatalog', function(Holding, User, Brand, locationHelper, $routeParams, $location, $cookies, menu, gettextCatalog) {

  var link = function( scope, element, attrs ) {

    var domain = locationHelper.domain();
    var subdomain = locationHelper.subdomain();

    menu.hideToolbar = false;
    menu.hideBurger = true;
    menu.isOpenLeft = false;
    menu.isOpen = false;

    scope.brand_name = 'CT WiFi';

    var brandCheck = function() {
      Brand.query({
        id: subdomain,
        type: 'showcase',
        check: true
      }).$promise.then(function(results) {
        scope.brand = results;
      }, function() {
      });
    };

    if (subdomain !== 'my' || subdomain !== 'dashboard') {
      brandCheck();
    }

    var cookies = $cookies.get('_cth', { domain: domain });
    if (cookies) {<commit_msg>check for reseller brand before assigning sign up to url brand<commit_after>'use strict';

var app = angular.module('myApp.registrations.directives', []);

app.directive('createHolding', ['Holding', 'User', 'Brand', 'locationHelper', '$routeParams', '$location', '$cookies', 'menu', 'gettextCatalog', function(Holding, User, Brand, locationHelper, $routeParams, $location, $cookies, menu, gettextCatalog) {

  var link = function( scope, element, attrs ) {

    var domain = locationHelper.domain();
    var subdomain = locationHelper.subdomain();

    menu.hideToolbar = false;
    menu.hideBurger = true;
    menu.isOpenLeft = false;
    menu.isOpen = false;

    scope.brand_name = 'CT WiFi';

    var brandCheck = function() {
      Brand.query({
        id: subdomain,
        type: 'showcase',
        check: true
      }).$promise.then(function(results) {
        if (results.reseller) {
          scope.brand = results;
        }
      }, function() {
      });
    };

    if (subdomain !== 'my' || subdomain !== 'dashboard') {
      brandCheck();
    }

    var cookies = $cookies.get('_cth', { domain: domain });
    if (cookies) {
{'fraction_non_alphanumeric': 0.15837517115472388, 'fraction_numerical': 0.0, 'mean_word_length': 3.1992337164750957, 'pattern_counts': {'":': 0, '<': 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': '3953230', 'n_tokens_mistral': 676, 'n_tokens_neox': 664, 'n_words': 160}