<commit_before>library connecting_dartisans.pages.login;

import "dart:html";
import 'package:logging/logging.dart';
import 'package:polymer/polymer.dart';
import 'package:gex_common_ui_elements/common_ui_elements.dart' ;
import 'package:gex_common_ui_elements/elements/layout.dart' ;
import 'package:gex_common_ui_elements/elements/page.dart' ;

import '../application.dart' ;

@CustomTag('page-login')
class PageLogin extends Page with Showable  {
  
  final Logger log = new Logger('PageLogin');
  
  Color mainColor = ConnectingDartisansApplication.DART_BLUE_ORANGE.lightColorAsColor;
    
    Layout layout ;
    
    PageLogin.created() : super.created() ;
    
    
    ready() {
      super.ready();
      _setAttributes();
    }
    
    void _setAttributes(){
       layout = $["layout"] as Layout ;
       
       List<ButtonModel> buttonModels = new List<ButtonModel>();
       buttonModels.add( new ButtonModel(label: "Login & Search",action:action1,image:new Image(mainImageUrl:  "/images/button/login.png",mainImageUrl2:"/images/button/search54.png") )  );
       buttonModels.add( new ButtonModel(label: "Login & Map",action:action2,image:new Image(mainImageUrl:  "/images/button/login.png") )  );
       buttonModels.add( new ButtonModel(label: "Cancel",action:action3,image:new Image(mainImageUrl:  "/images/button/back57.png") )  );
       ToolbarModel toolbarModel = new ToolbarModel(buttons:buttonModels, color: mainColor, orientation: Orientation.est,colorUsage: ColorUsage.ALTERNATE_WITH_LIGHT );  

       LayoutModel layoutModel = new LayoutModel(toolbarModel: toolbarModel,color: mainColor);
       PageModel model = new PageModel(layoutModel:layoutModel );
       this.init(model) ;
       
     }
    
    action1(Parameters params){
      layout.style.backgroundColor =mainColor.strongColor ;
    }
    action2(Parameters params){
      layout.style.backgroundColor =mainColor.mainColor ;
    }
    action3(Parameters params){
      layout.style.backgroundColor =mainColor.lightColor ;
    }
  
  
}<commit_msg>Update login.dart<commit_after>library connecting_dartisans.pages.login;

import "dart:html";
import 'package:logging/logging.dart';
import 'package:polymer/polymer.dart';
import 'package:gex_common_ui_elements/common_ui_elements.dart' ;
import 'package:gex_common_ui_elements/elements/layout.dart' ;
import 'package:gex_common_ui_elements/elements/page.dart' ;

import '../application.dart' ;

@CustomTag('page-login')
class PageLogin extends Page with Showable  {
  
  final Logger log = new Logger('PageLogin');
  
  Color mainColor = ConnectingDartisansApplication.DART_BLUE_ORANGE.lightColorAsColor;
    
    Layout layout ;
    
    PageLogin.created() : super.created() ;
    
    
    ready() {
      super.ready();
      _setAttributes();
    }
    
    void _setAttributes(){
       layout = $["layout"] as Layout ;
       
       List<ButtonModel> buttonModels = new List<ButtonModel>();
       buttonModels.add( new ButtonModel(label: "Login & Search",action:action1,image:new Image(mainImageUrl:  "/images/button/login.png",mainImageUrl2:"/images/button/search54.png") )  );
       buttonModels.add( new ButtonModel(label: "Login & Map",action:action2,image:new Image(mainImageUrl:  "/images/button/login.png" ,mainImageUrl2:  "images/button/map32.png" ) )  );
       buttonModels.add( new ButtonModel(label: "Cancel",action:action3,image:new Image(mainImageUrl:  "/images/button/back57.png") )  );
       ToolbarModel toolbarModel = new ToolbarModel(buttons:buttonModels, color: mainColor, orientation: Orientation.est,colorUsage: ColorUsage.ALTERNATE_WITH_LIGHT );  

       LayoutModel layoutModel = new LayoutModel(toolbarModel: toolbarModel,color: mainColor);
       PageModel model = new PageModel(layoutModel:layoutModel );
       this.init(model) ;
       
     }
    
    action1(Parameters params){
      layout.style.backgroundColor =mainColor.strongColor ;
    }
    action2(Parameters params){
      layout.style.backgroundColor =mainColor.mainColor ;
    }
    action3(Parameters params){
      layout.style.backgroundColor =mainColor.lightColor ;
    }
  
  
}

{'fraction_non_alphanumeric': 0.11721966577863889, 'fraction_numerical': 0.006054734802615646, 'mean_word_length': 3.993954050785973, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1836341', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1238, 'n_words': 203}