<commit_before>(function() {
  var app = angular.module("studyGuide", []);
  app.controller("StudyController", function() {
    this.sections = sections;
  });
  var sections = [
    {
      title: "Factory Pattern",
      uses: [
        "When a method returns one of several possible classes that share a common superclass.",
      ],
      advantages: [
        "-"
      ],
      disadvantages: [
        "-"
      ],
      examples: [
        "Create a new enemy in a game -> Random number generator picks a number assigned to a specific enemy -> the factory returns the enemy associated with that number -> the class is chosen at runtime.",
      ],
    },
  ];
})();
/*
  Architectures:
- Document-Object-Model (DOM):
- DOM is a convention for representing and interlacing with objects I HTML, 			XHTML, and XML documents. The nodes of every document are organized in a 			tree structure called a DOM tree. Objects in the DOM tree ma be addressed and 		manipulated by using methods on the objects.
- Model-View-Controller (MVC):
- A software architecture pattern for implementing user interfaces
- User: SEES view, USES controller
- Controller: Manipulates model
- Mode: Updates view
- Model: Stores data that is retrieved by the controller and displayed by the view
- View: Requests information from the model that then generates an output 				representation
- Controller: Sends commands to the model to update the model's state and 				sends commands to the view's presentation of the model.
Web Development:
    - Rails (Ruby):
      - Web application framework that uses the MVC architecture and 						provides default structures for a database, web service, and 					web pages.
      - Encourages: XML, JSON, HTML, CSS, ECMAScript
      - Emphasizes: Convention-over-Configuration, DRY, Active 					Record Pattern
    - jQuery (ECMAScript):
      - A cross-platform ECMAScript library designed to simplify client-					side scripting with HTML. It is the most popular JavaScript library 					in use and was designed for DOM element selection, animation, 					events, and applications with AJAX.
    - Asynchronous JavaScript and XML (AJAX):
      - AJAX is a group of interrelated web development techniques 					used on  the client-side to create applications that can send data to 				and retrieve data from a server in the background asynchronously, 				without disturbing the behavior of the existing page.
      - Consists of CSS, HTML, XML, JSON, JavaScript, 							XMLHTTPRequest
      JavaScript (ECMAScript):
            - Dynamic programming language which is primarily used by web pages 				to implement client-side scripts in order to interact with a user. 					ECMAScript's engine is placed in the user's browser and allows 					applications to be run client-side. The syntax and structure is similar to 				Java
            - Strengths:
            - Weaknesses:
            - Common Uses:
            - Important Functions:
              -Arrays:
                - .indexOf(): returns the index or -1 of an element
                - .filter(): creates a new array with all the elements of the 								original array that passes the test of the 								provided function
                - .map(): creates a new array with the results of calling a f								unction on every element in the array
                -.reduce(): applies a function against an accumulator and 								each value of the array (left-to-right) to reduce 								it to a single value
                Web Development CDNs:
                  - Bootstrap:
                  - jQuery:
                  - AngularJS:
                  - FontAwesome:
                AngularJS:
                -AngularJS is a web development framework that allows a programmer to easily implement MVC and responsive principles, as well as additional extensive behavior, testing, and HTML readability
                - Modules:
                  - where Angular application behavior lies
                    - ex: var app = angular.module(“store”, []);
                - Controllers:
                  - where we add application behavioral
                    - ex:
                      JS: app.controller(“StoreController”, function() {
                        ...
                        });
                      html: <ng-controller=”StoreController as store”>
                Expressions:
                  - How JavaScript values are displayed on the page
                    - ex: {{product.price}}
                - Directives:
                  - HTML Annotations that trigger JavaScript behaviors
                    - ngShow / ngHide: displays or hides a DOM element
                    - ngApp: attach a module to a page
                    - ngController: attach a controller function to the page
                    - ngRepeat: repeat a section for each item in an array (can be filtered)
                    - ngSrc: reslves Angular image source resolution
                    -ngClass: dynamically set CSS elements to HTML element
                    -ngClick: specify custom behavior when element is clicked
                    -ngModel: binds inputs to a property scope (live update)
                - Filters:
                  - an expression that mutates data passed to it
                      -ex: {{product.price | currency}}
                      -ex: {{recipe.data | filter:option}}
                    - currency: adds the local currency symbol and specifies decimals
                    - date: formats the input to a date format
                    -uppercase / lowercase: changes input data case
                    - limitTo: limits the display to specified character lengths
                    - orderBy: orders a list by a parameter (- sign for descending)
                - Services
                  - Angular methods that provide built in functionality
                    - $log: prints contents out to console
                    -$http: makes a web service request. Automatically converts to JS arr/obj
                      - ex: $http.get('url').success(callback function());
                    -$filter: filters an array 
*/<commit_msg>small edit<commit_after>(function() {
  var app = angular.module("studyGuide", []);
  app.controller("StudyController", function() {
    this.stuff = stuff;
    this.frameworks = frameworks;
    this.npm = npm;
  });
  var stuff = [
    {
    },
  ];
  var frameworks = [
    {
    },
  ];
  var npm = [
    {
    },
  ];
})();
/*
  Architectures:
- Document-Object-Model (DOM):
- DOM is a convention for representing and interlacing with objects I HTML, 			XHTML, and XML documents. The nodes of every document are organized in a 			tree structure called a DOM tree. Objects in the DOM tree ma be addressed and 		manipulated by using methods on the objects.
- Model-View-Controller (MVC):
- A software architecture pattern for implementing user interfaces
- User: SEES view, USES controller
- Controller: Manipulates model
- Mode: Updates view
- Model: Stores data that is retrieved by the controller and displayed by the view
- View: Requests information from the model that then generates an output 				representation
- Controller: Sends commands to the model to update the model's state and 				sends commands to the view's presentation of the model.
Web Development:
    - Rails (Ruby):
      - Web application framework that uses the MVC architecture and 						provides default structures for a database, web service, and 					web pages.
      - Encourages: XML, JSON, HTML, CSS, ECMAScript
      - Emphasizes: Convention-over-Configuration, DRY, Active 					Record Pattern
    - jQuery (ECMAScript):
      - A cross-platform ECMAScript library designed to simplify client-					side scripting with HTML. It is the most popular JavaScript library 					in use and was designed for DOM element selection, animation, 					events, and applications with AJAX.
    - Asynchronous JavaScript and XML (AJAX):
      - AJAX is a group of interrelated web development techniques 					used on  the client-side to create applications that can send data to 				and retrieve data from a server in the background asynchronously, 				without disturbing the behavior of the existing page.
      - Consists of CSS, HTML, XML, JSON, JavaScript, 							XMLHTTPRequest
      JavaScript (ECMAScript):
            - Dynamic programming language which is primarily used by web pages 				to implement client-side scripts in order to interact with a user. 					ECMAScript's engine is placed in the user's browser and allows 					applications to be run client-side. The syntax and structure is similar to 				Java
            - Strengths:
            - Weaknesses:
            - Common Uses:
            - Important Functions:
              -Arrays:
                - .indexOf(): returns the index or -1 of an element
                - .filter(): creates a new array with all the elements of the 								original array that passes the test of the 								provided function
                - .map(): creates a new array with the results of calling a f								unction on every element in the array
                -.reduce(): applies a function against an accumulator and 								each value of the array (left-to-right) to reduce 								it to a single value
                Web Development CDNs:
                  - Bootstrap:
                  - jQuery:
                  - AngularJS:
                  - FontAwesome:
                AngularJS:
                -AngularJS is a web development framework that allows a programmer to easily implement MVC and responsive principles, as well as additional extensive behavior, testing, and HTML readability
                - Modules:
                  - where Angular application behavior lies
                    - ex: var app = angular.module(“store”, []);
                - Controllers:
                  - where we add application behavioral
                    - ex:
                      JS: app.controller(“StoreController”, function() {
                        ...
                        });
                      html: <ng-controller=”StoreController as store”>
                Expressions:
                  - How JavaScript values are displayed on the page
                    - ex: {{product.price}}
                - Directives:
                  - HTML Annotations that trigger JavaScript behaviors
                    - ngShow / ngHide: displays or hides a DOM element
                    - ngApp: attach a module to a page
                    - ngController: attach a controller function to the page
                    - ngRepeat: repeat a section for each item in an array (can be filtered)
                    - ngSrc: reslves Angular image source resolution
                    -ngClass: dynamically set CSS elements to HTML element
                    -ngClick: specify custom behavior when element is clicked
                    -ngModel: binds inputs to a property scope (live update)
                - Filters:
                  - an expression that mutates data passed to it
                      -ex: {{product.price | currency}}
                      -ex: {{recipe.data | filter:option}}
                    - currency: adds the local currency symbol and specifies decimals
                    - date: formats the input to a date format
                    -uppercase / lowercase: changes input data case
                    - limitTo: limits the display to specified character lengths
                    - orderBy: orders a list by a parameter (- sign for descending)
                - Services
                  - Angular methods that provide built in functionality
                    - $log: prints contents out to console
                    -$http: makes a web service request. Automatically converts to JS arr/obj
                      - ex: $http.get('url').success(callback function());
                    -$filter: filters an array
*/
{'fraction_non_alphanumeric': 0.05941919825926856, 'fraction_numerical': 0.00016737802326554523, 'mean_word_length': 1.8284023668639053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4033950', 'n_tokens_mistral': 2977, 'n_tokens_neox': 2645, 'n_words': 1277}