repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngRefSpec.js | test/ng/directive/ngRefSpec.js | 'use strict';
describe('ngRef', function() {
beforeEach(function() {
jasmine.addMatchers({
toEqualJq: function(util) {
return {
compare: function(actual, expected) {
// Jquery <= 2.2 objects add a context property that is irrelevant for equality
if (actual && actu... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngSrcsetSpec.js | test/ng/directive/ngSrcsetSpec.js | 'use strict';
/* eslint-disable no-script-url */
describe('ngSrcset', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should not result empty string in img srcset', inject(function($rootScope, $compile) {
$rootScope.image = {};
element = $compile('<img ng-srcset="{{imag... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngHrefSpec.js | test/ng/directive/ngHrefSpec.js | 'use strict';
describe('ngHref', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should interpolate the expression and bind to href', inject(function($compile, $rootScope) {
element = $compile('<a ng-href="some/{{id}}"></div>')($rootScope);
$rootScope.$digest();
exp... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngKeySpec.js | test/ng/directive/ngKeySpec.js | 'use strict';
describe('ngKeyup and ngKeydown directives', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should get called on a keyup', inject(function($rootScope, $compile) {
element = $compile('<input ng-keyup="touched = true">')($rootScope);
$rootScope.$digest();
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngStyleSpec.js | test/ng/directive/ngStyleSpec.js | 'use strict';
describe('ngStyle', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should set', inject(function($rootScope, $compile) {
element = $compile('<div ng-style="{height: \'40px\'}"></div>')($rootScope);
$rootScope.$digest();
expect(element.css('height')).t... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngClassSpec.js | test/ng/directive/ngClassSpec.js | 'use strict';
describe('ngClass', function() {
var element;
beforeEach(module(function($compileProvider) {
$compileProvider.debugInfoEnabled(false);
}));
afterEach(function() {
dealoc(element);
});
it('should add new and remove old classes dynamically', inject(function($rootScope, $compile) {
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngSrcSpec.js | test/ng/directive/ngSrcSpec.js | 'use strict';
/* eslint-disable no-script-url */
describe('ngSrc', function() {
var element;
afterEach(function() {
dealoc(element);
});
describe('img[ng-src]', function() {
it('should not result empty string in img src', inject(function($rootScope, $compile) {
$rootScope.image = {};
ele... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngIncludeSpec.js | test/ng/directive/ngIncludeSpec.js | 'use strict';
describe('ngInclude', function() {
describe('basic', function() {
var element;
afterEach(function() {
dealoc(element);
});
function putIntoCache(url, content) {
return function($templateCache) {
$templateCache.put(url, [200, content, {}]);
};
}
it... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngPluralizeSpec.js | test/ng/directive/ngPluralizeSpec.js | 'use strict';
describe('ngPluralize', function() {
var element,
elementAlt;
afterEach(function() {
dealoc(element);
dealoc(elementAlt);
});
describe('deal with pluralized strings without offset', function() {
beforeEach(inject(function($rootScope, $compile) {
element = $compile(
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/validatorsSpec.js | test/ng/directive/validatorsSpec.js | 'use strict';
/* globals generateInputCompilerHelper: false */
describe('validators', function() {
var helper = {}, $rootScope;
generateInputCompilerHelper(helper);
beforeEach(inject(function(_$rootScope_) {
$rootScope = _$rootScope_;
}));
describe('pattern', function() {
it('should validate i... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngBindSpec.js | test/ng/directive/ngBindSpec.js | 'use strict';
describe('ngBind*', function() {
var element;
afterEach(function() {
dealoc(element);
});
describe('ngBind', function() {
it('should set text', inject(function($rootScope, $compile) {
element = $compile('<div ng-bind="a"></div>')($rootScope);
expect(element.text()).toEqua... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/inputSpec.js | test/ng/directive/inputSpec.js | 'use strict';
/* globals generateInputCompilerHelper: false */
describe('input', function() {
var helper = {}, $compile, $rootScope, $browser, $sniffer;
// UA sniffing to exclude Edge from some date input tests
var isEdge = /\bEdge\//.test(window.navigator.userAgent);
generateInputCompilerHelper(helper);
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/formSpec.js | test/ng/directive/formSpec.js | /* global FormController: false */
'use strict';
describe('form', function() {
var doc, control, scope, $compile, changeInputValue;
beforeEach(module(function($compileProvider) {
$compileProvider.directive('storeModelCtrl', function() {
return {
require: 'ngModel',
link: function(scope, ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/selectSpec.js | test/ng/directive/selectSpec.js | 'use strict';
describe('select', function() {
var scope, formElement, element, $compile, ngModelCtrl, selectCtrl, renderSpy, optionAttributesList = [];
function compile(html) {
formElement = jqLite('<form name="form">' + html + '</form>');
element = formElement.find('select');
$compile(formElement)(sc... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngCloakSpec.js | test/ng/directive/ngCloakSpec.js | 'use strict';
describe('ngCloak', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should get removed when an element is compiled', inject(function($rootScope, $compile) {
element = jqLite('<div ng-cloak></div>');
expect(element.attr('ng-cloak')).toBe('');
$compile(... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngNonBindableSpec.js | test/ng/directive/ngNonBindableSpec.js | 'use strict';
describe('ngNonBindable', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should prevent compilation of the owning element and its children',
inject(function($rootScope, $compile) {
element = $compile('<div ng-non-bindable text="{{name}}"><span ng-bind... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngInitSpec.js | test/ng/directive/ngInitSpec.js | 'use strict';
describe('ngInit', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should init model', inject(function($rootScope, $compile) {
element = $compile('<div ng-init="a=123"></div>')($rootScope);
expect($rootScope.a).toEqual(123);
}));
it('should be evalu... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/aSpec.js | test/ng/directive/aSpec.js | 'use strict';
describe('a', function() {
var element, $compile, $rootScope;
beforeEach(module(function($compileProvider) {
$compileProvider.
directive('linkTo', valueFn({
restrict: 'A',
template: '<div class="my-link"><a href="{{destination}}">{{destination}}</a></div>',
replace:... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngModelSpec.js | test/ng/directive/ngModelSpec.js | 'use strict';
/* globals generateInputCompilerHelper: false */
describe('ngModel', function() {
describe('NgModelController', function() {
/* global NgModelController: false */
var ctrl, scope, element, parentFormCtrl;
beforeEach(inject(function($rootScope, $controller) {
var attrs = {name: 'tes... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngModelOptionsSpec.js | test/ng/directive/ngModelOptionsSpec.js | 'use strict';
/* globals
generateInputCompilerHelper: false,
defaultModelOptions: false
*/
describe('ngModelOptions', function() {
describe('defaultModelOptions', function() {
it('should provide default values', function() {
expect(defaultModelOptions.getOption('updateOn')).toEqual('');
exp... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/scriptSpec.js | test/ng/directive/scriptSpec.js | 'use strict';
describe('scriptDirective', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should populate $templateCache with contents of a ng-template script element', inject(
function($compile, $templateCache) {
$compile('<div>foo' +
'<script... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngShowHideSpec.js | test/ng/directive/ngShowHideSpec.js | 'use strict';
describe('ngShow / ngHide', function() {
var $scope, $compile, element;
function expectVisibility(exprs, ngShowOrNgHide, shownOrHidden) {
element = $compile('<div></div>')($scope);
forEach(exprs, function(expr) {
var childElem = $compile('<div ' + ngShowOrNgHide + '="' + expr + '"></di... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngListSpec.js | test/ng/directive/ngListSpec.js | 'use strict';
/* globals generateInputCompilerHelper: false */
describe('ngList', function() {
var helper = {}, $rootScope;
generateInputCompilerHelper(helper);
beforeEach(inject(function(_$rootScope_) {
$rootScope = _$rootScope_;
}));
it('should parse text into an array', function() {
var input... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/booleanAttrsSpec.js | test/ng/directive/booleanAttrsSpec.js | 'use strict';
describe('boolean attr directives', function() {
var element;
afterEach(function() {
dealoc(element);
});
it('should properly evaluate 0 as false', inject(function($rootScope, $compile) {
// jQuery does not treat 0 as false, when setting attr()
element = $compile('<button ng-disabl... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngTouch/swipeSpec.js | test/ngTouch/swipeSpec.js | 'use strict';
describe('$swipe', function() {
var element;
var events;
beforeEach(function() {
module('ngTouch');
inject(function($compile, $rootScope) {
element = $compile('<div></div>')($rootScope);
});
events = {
start: jasmine.createSpy('startSpy'),
move: jasmine.createSpy(... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngTouch/directive/ngSwipeSpec.js | test/ngTouch/directive/ngSwipeSpec.js | 'use strict';
// Wrapper to abstract over using touch events or mouse events.
var swipeTests = function(description, restrictBrowsers, startEvent, moveEvent, endEvent) {
describe('ngSwipe with ' + description + ' events', function() {
var element;
if (restrictBrowsers) {
// TODO(braden): Once we have ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/modules/no_bootstrap.js | test/modules/no_bootstrap.js | 'use strict';
// When running the modules test, then the page should not be bootstrapped.
window.name = 'NG_DEFER_BOOTSTRAP!';
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngMock/angular-mocksSpec.js | test/ngMock/angular-mocksSpec.js | 'use strict';
describe('ngMock', function() {
var noop = angular.noop;
var extend = angular.extend;
describe('TzDate', function() {
function minutes(min) {
return min * 60 * 1000;
}
it('should look like a Date', function() {
var date = new angular.mock.TzDate(0,0);
expect(angula... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngCookies/cookieWriterSpec.js | test/ngCookies/cookieWriterSpec.js | 'use strict';
describe('$$cookieWriter', function() {
var $$cookieWriter, document;
function deleteAllCookies() {
var cookies = document.cookie.split(';');
var path = window.location.pathname;
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
var eqPos = cookie.indexOf('... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngCookies/cookiesSpec.js | test/ngCookies/cookiesSpec.js | 'use strict';
describe('$cookies', function() {
var mockedCookies;
beforeEach(function() {
mockedCookies = {};
module('ngCookies', {
$$cookieWriter: jasmine.createSpy('$$cookieWriter').and.callFake(function(name, value) {
mockedCookies[name] = value;
}),
$$cookieReader: function(... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngMessageFormat/messageFormatSpec.js | test/ngMessageFormat/messageFormatSpec.js | 'use strict';
/* TODO: Add tests for:
• Whitespace preservation in messages.
• Whitespace ignored around syntax except for offset:N.
• Escaping for curlies and the # symbol.
• # symbol value.
• # symbol value when gender is nested inside plural.
• Error with nested # symbol.
• parser error messages.
• caching.... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngMessages/messagesSpec.js | test/ngMessages/messagesSpec.js | 'use strict';
describe('ngMessages', function() {
beforeEach(inject.strictDi());
beforeEach(module('ngMessages'));
function messageChildren(element) {
return (element.length ? element[0] : element).querySelectorAll('[ng-message], [ng-message-exp]');
}
function s(str) {
return str.replace(/\s+/g,'')... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/auto/injectorSpec.js | test/auto/injectorSpec.js | 'use strict';
describe('injector.modules', function() {
it('should expose the loaded module info on the instance injector', function() {
var test1 = angular.module('test1', ['test2']).info({ version: '1.1' });
var test2 = angular.module('test2', []).info({ version: '1.2' });
module('test1');
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/src/closureI18nExtractor.js | i18n/src/closureI18nExtractor.js | 'use strict';
var converter = require('./converter.js');
exports.extractNumberSymbols = extractNumberSymbols;
exports.extractCurrencySymbols = extractCurrencySymbols;
exports.extractDateTimeSymbols = extractDateTimeSymbols;
exports.pluralExtractor = pluralExtractor;
exports.outputLocale = outputLocale;
exports.correc... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/src/converter.js | i18n/src/converter.js | 'use strict';
/**
* after obtaining data from closure files, use converter to massage the data into the formats
* we want
*/
exports.convertDatetimeData = convertDatetimeData;
exports.convertNumberData = convertNumberData;
var parsePattern = require('./parser').parsePattern;
function convertNumberData(dataObj, ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/src/parser.js | i18n/src/parser.js | 'use strict';
/**
* A simple parser to parse a number format into a pattern object
*/
exports.ensureDecimalSep = ensureDecimalSep;
exports.parsePattern = parsePattern;
var PATTERN_SEP = ';',
DECIMAL_SEP = '.',
GROUP_SEP = ',',
DIGIT = '#',
ZERO = '0',
LAST_ZERO_RE = /^(.*0)(?!... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/src/closureSlurper.js | i18n/src/closureSlurper.js | #!/usr/bin/env node
'use strict';
var Q = require('q'),
qfs = require('q-io/fs'),
closureI18nExtractor = require('./closureI18nExtractor.js'),
localeInfo = {};
var NG_LOCALE_DIR = __dirname + '/../../src/ngLocale/';
function readSymbols() {
console.log('Processing currency and number symbols ...');... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/e2e/i18n-e2e.js | i18n/e2e/i18n-e2e.js | 'use strict';
describe('localized filters', function() {
describe('es locale', function() {
beforeEach(function() {
browser().navigateTo('localeTest_es.html');
});
it('should check filters for es locale', function() {
expect(binding('input | date:"medium"')).toBe('03/06/1977 18:07:23');
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/spec/parserSpec.js | i18n/spec/parserSpec.js | 'use strict';
var parser = require('../src/parser');
var ensureDecimalSep = parser.ensureDecimalSep;
var parsePattern = parser.parsePattern;
describe('ensureDecimalSep', function() {
it('should leave patterns with DECIMAL_SEP untouched', function() {
[
'#,##0.00',
'$#,##0.00',
'#,##0.00$',
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/spec/closureI18nExtractorSpec.js | i18n/spec/closureI18nExtractorSpec.js | 'use strict';
var closureI18nExtractor = require('../src/closureI18nExtractor.js');
var converter = require('../src/converter.js');
var findLocaleId = closureI18nExtractor.findLocaleId;
var extractNumberSymbols = closureI18nExtractor.extractNumberSymbols;
var extractCurrencySymbols = closureI18nExtractor.extractCurren... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/spec/converterSpec.js | i18n/spec/converterSpec.js | 'use strict';
var converter = require('../src/converter.js');
describe('convertNumberData', function() {
var convert = converter.convertNumberData,
dataObj = { DECIMAL_SEP: ',',
GROUP_SEP: '.',
DECIMAL_PATTERN: '#,##0.###;#,##0.###-',
CURRENCY_PATTERN: '\u... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/ucd/src/extract.js | i18n/ucd/src/extract.js | 'use strict';
var fs = require('fs');
var zlib = require('zlib');
var extractValues = require('./extractValues').extractValues;
var generateCode = require('./generateCode').generateCode;
// ID_Start and ID_Continue
var propertiesToExtract = {'IDS': 'Y', 'IDC': 'Y'};
function main() {
extractValues(
fs.createRea... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/ucd/src/generateCode.js | i18n/ucd/src/generateCode.js | 'use strict';
exports.generateCode = generateCode;
exports.generateFunction = generateFunction;
function generateCode(validRanges) {
var code = '/******************************************************\n' +
' * Generated file, do not modify *\n' +
' * ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/ucd/src/extractValues.js | i18n/ucd/src/extractValues.js | 'use strict';
/**
* Extract values from a stream.
*/
exports.extractValues = extractValues;
var sax = require('sax/lib/sax');
var saxStrict = true;
var saxOptions = {};
var validXMLTagNames = { char: 'Y', reserved: 'Y', surrogate: 'Y', noncharacter: 'Y'};
function extractValues(stream, propertiesToExtract, callbac... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/ucd/spec/generateCodeSpec.js | i18n/ucd/spec/generateCodeSpec.js | 'use strict';
var generateCodeModule = require('../src/generateCode.js');
var generateCode = generateCodeModule.generateCode;
var generateFunction = generateCodeModule.generateFunction;
describe('generateFunction', function() {
it('should generate function with ranges', function() {
expect(generateFunction([['0... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/ucd/spec/extactValuesSpec.js | i18n/ucd/spec/extactValuesSpec.js | 'use strict';
var extractValues = require('../src/extractValues.js').extractValues;
var stream = require('stream');
function stringStream(str) {
return new stream.Readable({
read: function(n) {
this.push(str);
str = null;
}
});
}
describe('extractValues', function() {
it('should extract the... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/closure/pluralRules.js | i18n/closure/pluralRules.js | // Copyright 2012 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/closure/numberSymbols.js | i18n/closure/numberSymbols.js | // Copyright 2011 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/closure/currencySymbols.js | i18n/closure/currencySymbols.js | // Copyright 2009 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/closure/datetimeSymbolsExt.js | i18n/closure/datetimeSymbolsExt.js | // Copyright 2011 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/closure/numberSymbolsExt.js | i18n/closure/numberSymbolsExt.js | // Copyright 2011 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/i18n/closure/datetimeSymbols.js | i18n/closure/datetimeSymbols.js | // Copyright 2011 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/protractor-conf.js | docs/protractor-conf.js | 'use strict';
var config = require('../protractor-shared-conf').config;
config.specs = [
'app/e2e/**/*.scenario.js'
];
config.capabilities.browserName = 'chrome';
exports.config = config;
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/gulpfile.js | docs/gulpfile.js | 'use strict';
var gulp = require('gulp');
var concat = require('gulp-concat');
var eslint = require('gulp-eslint');
var Dgeni = require('dgeni');
var merge = require('event-stream').merge;
var path = require('canonical-path');
var foreach = require('gulp-foreach');
var uglify = require('gulp-uglify');
var sourcemaps =... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/docs.js | docs/app/src/docs.js | 'use strict';
angular.module('DocsController', ['currentVersionData'])
.controller('DocsController', [
'$scope', '$rootScope', '$location', '$window', '$cookies',
'NG_PAGES', 'NG_NAVIGATION', 'CURRENT_NG_VERSION',
function($scope, $rootScope, $location, $window, $cookies,
NG_PA... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/app.js | docs/app/src/app.js | 'use strict';
angular.module('docsApp', [
'ngRoute',
'ngCookies',
'ngSanitize',
'ngAnimate',
'DocsController',
'pagesData',
'navData',
'directives',
'errors',
'examples',
'search',
'tutorials',
'versions',
'ui.bootstrap.dropdown'
])
.config(['$locationProvider', function($locationProvider)... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/versions.js | docs/app/src/versions.js | 'use strict';
/* global console */
angular.module('versions', ['currentVersionData', 'allVersionsData'])
.directive('versionPicker', function() {
return {
restrict: 'E',
scope: true,
controllerAs: '$ctrl',
controller: ['$location', '$window', 'CURRENT_NG_VERSION', 'ALL_NG_VERSIONS',
/** ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/examples.js | docs/app/src/examples.js | 'use strict';
angular.module('examples', [])
.directive('runnableExample', [function() {
var exampleClassNameSelector = '.runnable-example-file';
var tpl =
'<nav class="runnable-example-tabs" ng-if="tabs">' +
' <a ng-class="{active:$index==activeTabIndex}"' +
'ng-repeat="tab in tabs track by $in... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/search.js | docs/app/src/search.js | 'use strict';
angular.module('search', [])
.controller('DocsSearchCtrl', ['$scope', '$location', 'docsSearch', function($scope, $location, docsSearch) {
function clearResults() {
$scope.results = [];
$scope.colClassName = null;
$scope.hasResults = false;
}
$scope.search = function(q) {
var MIN_... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/tutorials.js | docs/app/src/tutorials.js | 'use strict';
angular.module('tutorials', [])
.directive('docTutorialNav', function() {
var pages = [
'',
'step_00', 'step_01', 'step_02', 'step_03', 'step_04',
'step_05', 'step_06', 'step_07', 'step_08', 'step_09',
'step_10', 'step_11', 'step_12', 'step_13', 'step_14',
'the_end'
];
return {... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/errors.js | docs/app/src/errors.js | 'use strict';
angular.module('errors', ['ngSanitize'])
.filter('errorLink', ['$sanitize', function($sanitize) {
var LINKY_URL_REGEXP = /((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>]/g,
MAILTO_REGEXP = /^mailto:/,
STACK_TRACE_REGEXP = /:\d+:\d+$/;
var truncate = function(text, ncha... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/src/directives.js | docs/app/src/directives.js | 'use strict';
var directivesModule = angular.module('directives', []);
directivesModule
/**
* backToTop Directive
* @param {Function} $anchorScroll
*
* @description Ensure that the browser scrolls when the anchor is clicked
*/
.directive('backToTop', ['$anchorScroll', '$location', function($anchorScroll, $locat... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/test/docsSpec.js | docs/app/test/docsSpec.js | 'use strict';
describe('DocsController', function() {
var $scope;
angular.module('fake', [])
.value('$cookies', {})
.value('NG_PAGES', {})
.value('NG_NAVIGATION', {});
angular.module('currentVersionData', [])
.value('CURRENT_NG_VERSION', {});
angular.module('allVersionsData', [])
.value(... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/test/directivesSpec.js | docs/app/test/directivesSpec.js | 'use strict';
describe('directives', function() {
var compile, scope;
beforeEach(module('directives'));
beforeEach(module(function($compileProvider) {
$compileProvider.debugInfoEnabled(false);
}));
beforeEach(inject(function($rootScope, $compile) {
scope = $rootScope.$new();
compile = $compil... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/test/errorsSpec.js | docs/app/test/errorsSpec.js | 'use strict';
describe('errors', function() {
// Mock `ngSanitize` module
angular.
module('ngSanitize', []).
value('$sanitize', jasmine.createSpy('$sanitize').and.callFake(angular.identity));
beforeEach(module('errors'));
describe('errorDisplay', function() {
var $sanitize;
var errorLinkFilt... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/e2e/table-of-contents.scenario.js | docs/app/e2e/table-of-contents.scenario.js | 'use strict';
/**
* This scenario checks the presence of the table of contents for a sample of pages - API and guide.
* The expectations are kept vague so that they can be easily adjusted when the docs change.
*/
describe('table of contents', function() {
it('on provider pages', function() {
browser.get('bu... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/e2e/app.scenario.js | docs/app/e2e/app.scenario.js | 'use strict';
var webdriver = require('selenium-webdriver');
describe('docs.angularjs.org', function() {
beforeEach(function() {
// read and clear logs from previous tests
browser.manage().logs().get('browser');
});
afterEach(function() {
// verify that there were no console errors in the browser... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/e2e/api-docs/provider-pages.scenario.js | docs/app/e2e/api-docs/provider-pages.scenario.js | 'use strict';
describe('provider pages', function() {
it('should show the related service', function() {
browser.get('build/docs/index.html#!/api/ng/provider/$compileProvider');
var serviceLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
expect(serviceLink.getText()).toEqual('... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/e2e/api-docs/service-pages.scenario.js | docs/app/e2e/api-docs/service-pages.scenario.js | 'use strict';
describe('service pages', function() {
it('should show the related provider if there is one', function() {
browser.get('build/docs/index.html#!/api/ng/service/$compile');
var providerLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
expect(providerLink.getText()).... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/e2e/api-docs/api-pages.scenario.js | docs/app/e2e/api-docs/api-pages.scenario.js | 'use strict';
describe('API pages', function() {
it('should display links to code on GitHub', function() {
browser.get('build/docs/index.html#!/api/ng/service/$http');
expect(element(by.css('.improve-docs')).getAttribute('href')).toMatch(/https?:\/\/github\.com\/angular\/angular\.js\/edit\/.+\/src\/ng\/http... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/e2e/api-docs/directive-pages.scenario.js | docs/app/e2e/api-docs/directive-pages.scenario.js | 'use strict';
describe('directives', function() {
describe('parameter section', function() {
it('should show the directive name only if it is a param (attribute) with a value', function() {
browser.get('build/docs/index.html#!/api/ng/directive/ngInclude');
expect(getParamNames().getText()).toContai... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/assets/js/search-worker.js | docs/app/assets/js/search-worker.js | 'use strict';
/* eslint-env worker */
/* global importScripts, lunr */
// Load up the lunr library
importScripts('../components/lunr-0.7.2/lunr.min.js');
// Create the lunr index - the docs should be an array of object, each object containing
// the path and search terms for a page
var index = lunr(/** @this */funct... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/app/assets/js/angular-bootstrap/dropdown-toggle.js | docs/app/assets/js/angular-bootstrap/dropdown-toggle.js | /* This code is taken from the AngularUI - Bootstrap Project (https://github.com/angular-ui/bootstrap)
*
* The MIT License
*
* Copyright (c) 2012-2014 the AngularUI Team, https://github.com/organizations/angular-ui/teams/291112
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/index.js | docs/config/index.js | 'use strict';
var path = require('canonical-path');
var packagePath = __dirname;
var Package = require('dgeni').Package;
// Create and export a new Dgeni package called angularjs. This package depends upon
// the ngdoc, nunjucks, and examples packages defined in the dgeni-packages node module.
module.exports = new P... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/getVersion.js | docs/config/services/getVersion.js | 'use strict';
var path = require('canonical-path');
/**
* dgService getVersion
* @description
* Find the current version of the node module
*/
module.exports = function getVersion(readFilesProcessor) {
var sourceFolder = path.resolve(readFilesProcessor.basePath, 'node_modules');
var packageFile = 'package.json... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/errorNamespaceMap.js | docs/config/services/errorNamespaceMap.js | 'use strict';
var StringMap = require('stringmap');
/**
* @dgService errorNamespaceMap
* A map of error namespaces by name.
*/
module.exports = function errorNamespaceMap() {
return new StringMap();
};
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/getMinerrInfo.js | docs/config/services/getMinerrInfo.js | 'use strict';
var path = require('canonical-path');
/**
* @dgService minErrInfo
* @description
* Load the error information that was generated during the AngularJS build.
*/
module.exports = function getMinerrInfo(readFilesProcessor) {
return function() {
var minerrInfoPath = path.resolve(readFilesProcessor... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/deployments/default.js | docs/config/services/deployments/default.js | 'use strict';
module.exports = function defaultDeployment(getVersion) {
return {
name: 'default',
examples: {
commonFiles: {
scripts: ['../../../angular.min.js']
},
dependencyPath: '../../../'
},
scripts: [
'../angular.min.js',
'../angular-resource.min.js',
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/deployments/test.js | docs/config/services/deployments/test.js | 'use strict';
module.exports = function testDeployment(getVersion) {
return {
name: 'test',
examples: {
commonFiles: {
scripts: ['../../../angular.js']
},
dependencyPath: '../../../'
},
scripts: [
'../angular.js',
'../angular-resource.js',
'../angular-route... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/deployments/production.js | docs/config/services/deployments/production.js | 'use strict';
var versionInfo = require('../../../../lib/versions/version-info');
var googleCdnUrl = '//ajax.googleapis.com/ajax/libs/angularjs/';
var angularCodeUrl = '//code.angularjs.org/';
var cdnUrl = googleCdnUrl + versionInfo.cdnVersion;
// The "examplesDependencyPath" here applies to the examples when they ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/deployments/jquery.js | docs/config/services/deployments/jquery.js | 'use strict';
module.exports = function jqueryDeployment(getVersion) {
return {
name: 'jquery',
examples: {
commonFiles: {
scripts: [
'../../components/jquery-' + getVersion('jquery') + '/jquery.js',
'../../../angular.js'
]
},
dependencyPath: '../../../'
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/services/deployments/debug.js | docs/config/services/deployments/debug.js | 'use strict';
module.exports = function debugDeployment(getVersion) {
return {
name: 'debug',
examples: {
commonFiles: {
scripts: ['../../../angular.js']
},
dependencyPath: '../../../'
},
scripts: [
'../angular.js',
'../angular-resource.js',
'../angular-rou... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/tag-defs/installation.js | docs/config/tag-defs/installation.js | 'use strict';
module.exports = {
name: 'installation'
};
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/tag-defs/deprecated.js | docs/config/tag-defs/deprecated.js | 'use strict';
var OPTION_MATCHER = /^\s*([\w-]+)="([^"]+)"\s+([\s\S]*)/;
var VALID_OPTIONS = ['sinceVersion', 'removeVersion'];
module.exports = {
name: 'deprecated',
transforms: function(doc, tag, value) {
var result = {};
var invalidOptions = [];
value = value.trim();
while (OPTION_MATCHER.test(... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/tag-defs/deprecated.spec.js | docs/config/tag-defs/deprecated.spec.js | 'use strict';
/* globals describe, it, expect */
var tagDef = require('./deprecated');
describe('deprecated tag', function() {
describe('transforms', function() {
it('should return the trimmed value if no options', function() {
var tag = tagDef.transforms({}, {}, 'This is the description');
expect(t... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/tag-defs/sortOrder.js | docs/config/tag-defs/sortOrder.js | 'use strict';
module.exports = {
name: 'sortOrder',
transforms: function(doc, tag, value) {
return parseInt(value, 10);
}
};
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/tag-defs/tutorial-step.js | docs/config/tag-defs/tutorial-step.js | 'use strict';
module.exports = {
name: 'step',
transforms: function(doc, tag, value) {
if (doc.docType !== 'tutorial') {
throw new Error('Invalid tag, step. You should only use this tag on tutorial docs');
}
return parseInt(value,10);
}
};
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/tag-defs/this.js | docs/config/tag-defs/this.js | 'use strict';
module.exports = {
name: 'this'
};
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/inline-tag-defs/type.js | docs/config/inline-tag-defs/type.js | 'use strict';
// eslint-disable-next-line new-cap
var encoder = new require('node-html-encoder').Encoder();
/**
* @dgService typeInlineTagDef
* @description
* Replace with markup that displays a nice type
*/
module.exports = function typeInlineTagDef(getTypeClass) {
return {
name: 'type',
handler: funct... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/templates/app/angular-service.template.js | docs/config/templates/app/angular-service.template.js | 'use strict';
angular.module('{$ doc.ngModuleName $}', [])
.value('{$ doc.serviceName $}', {$ doc.serviceValue | json $});
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/templates/app/pages-data.template.js | docs/config/templates/app/pages-data.template.js | 'use strict';
// Meta data used by the AngularJS docs app
angular.module('pagesData', [])
.value('NG_PAGES', {$ doc.pages | json $});
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/templates/app/nav-data.template.js | docs/config/templates/app/nav-data.template.js | 'use strict';
// Meta data used by the AngularJS docs app
angular.module('navData', [])
.value('NG_NAVIGATION', {$ doc.areas | json $});
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/templates/examples/protractorTests.template.js | docs/config/templates/examples/protractorTests.template.js | describe("{$ doc.description $}", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;{% if doc['ng-app-included'] %}
browser.rootEl = '[ng-app]';{% endif %}
browser.get("{$ doc.basePath $}{$ doc.example.deployments[doc.deployment.name].outputPath $}");
});
{% if doc['ng-app-inc... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/templates/examples/template.js | docs/config/templates/examples/template.js | (function(angular) {
'use strict';
{$ doc.fileContents $}
})(window.angular); | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/processors/pages-data.js | docs/config/processors/pages-data.js | 'use strict';
var _ = require('lodash');
var path = require('canonical-path');
var AREA_NAMES = {
api: 'API',
guide: 'Developer Guide',
misc: 'Miscellaneous',
tutorial: 'Tutorial',
error: 'Error Reference'
};
function getNavGroup(pages, area, pageSorter, pageMapper) {
var navItems = _(pages)
// We d... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/processors/versions-data.js | docs/config/processors/versions-data.js | 'use strict';
var exec = require('shelljs').exec;
var semver = require('semver');
/**
* @dgProcessor generateVersionDocProcessor
* @description
* This processor will create a new doc that will be rendered as a JavaScript file
* containing meta information about the current versions of AngularJS
*/
module.exports... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/processors/error-docs.js | docs/config/processors/error-docs.js | 'use strict';
/**
* @dgProcessor errorDocsProcessor
* @description
* Process "error" docType docs and generate errorNamespace docs
*/
module.exports = function errorDocsProcessor(log, errorNamespaceMap, getMinerrInfo) {
return {
$runAfter: ['tags-extracted'],
$runBefore: ['extra-docs-added'],
$proces... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/processors/keywords.js | docs/config/processors/keywords.js | 'use strict';
var _ = require('lodash');
var fs = require('fs');
var path = require('canonical-path');
/**
* @dgProcessor generateKeywordsProcessor
* @description
* This processor extracts all the keywords from each document and creates
* a new document that will be rendered as a JavaScript file containing all
*... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/processors/index-page.js | docs/config/processors/index-page.js | 'use strict';
var _ = require('lodash');
/**
* @dgProcessor generateIndexPagesProcessor
* @description
* This processor creates docs that will be rendered as the index page for the app
*/
module.exports = function generateIndexPagesProcessor() {
return {
deployments: [],
$validate: {
deployments: ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/docs/config/processors/sitemap.js | docs/config/processors/sitemap.js | 'use strict';
var exclusionRegex = /^index|examples\/|ptore2e\//;
module.exports = function createSitemap() {
return {
$runAfter: ['paths-computed'],
$runBefore: ['rendering-docs'],
$process: function(docs) {
docs.push({
id: 'sitemap.xml',
path: 'sitemap.xml',
outputPath: '... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.