Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
11
969k
meta
stringlengths
415
4.24k
red_pajama_subset
stringclasses
1 value
duplicate_count
int64
0
613
require "spec_helper" require "foreman/engine" require "foreman/export/launchd" require "tmpdir" describe Foreman::Export::Launchd, :fakefs do let(:procfile) { FileUtils.mkdir_p("/tmp/app"); write_procfile("/tmp/app/Procfile") } let(:options) { Hash.new } let(:engine) { Foreman::Engine.new().load_procfile(procfile) } let(:launchd) { Foreman::Export::Launchd.new("/tmp/init", engine, options) } before(:each) { load_export_templates_into_fakefs("launchd") } before(:each) { stub(launchd).say } it "exports to the filesystem" do launchd.export File.read("/tmp/init/app-alpha-1.plist").should == example_export_file("launchd/launchd-a.default") File.read("/tmp/init/app-bravo-1.plist").should == example_export_file("launchd/launchd-b.default") end context "with multiple command arguments" do let(:procfile) { FileUtils.mkdir_p("/tmp/app"); write_procfile("/tmp/app/Procfile", "charlie") } it "splits each command argument" do launchd.export File.read("/tmp/init/app-alpha-1.plist").should == example_export_file("launchd/launchd-c.default") end end end
{'content_hash': '8b3e5cd9c02f40a73d4114c20ffe2cd6', 'timestamp': '', 'source': 'github', 'line_count': 31, 'max_line_length': 105, 'avg_line_length': 36.16129032258065, 'alnum_prop': 0.6913470115967886, 'repo_name': 'cao1998wang/twilio_int', 'id': '3a22b5ad0d4040cfd5b64d488d4b1e4507d877e2', 'size': '1121', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'vendor/cache/ruby/2.1.0/gems/foreman-0.63.0/spec/foreman/export/launchd_spec.rb', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Ruby', 'bytes': '6101'}]}
github
0
"format amd"; (function(global) { var defined = {}; // indexOf polyfill for IE8 var indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) if (this[i] === item) return i; return -1; } var getOwnPropertyDescriptor = true; try { Object.getOwnPropertyDescriptor({ a: 0 }, 'a'); } catch(e) { getOwnPropertyDescriptor = false; } var defineProperty; (function () { try { if (!!Object.defineProperty({}, 'a', {})) defineProperty = Object.defineProperty; } catch (e) { defineProperty = function(obj, prop, opt) { try { obj[prop] = opt.value || opt.get.call(obj); } catch(e) {} } } })(); function register(name, deps, declare) { if (arguments.length === 4) return registerDynamic.apply(this, arguments); doRegister(name, { declarative: true, deps: deps, declare: declare }); } function registerDynamic(name, deps, executingRequire, execute) { doRegister(name, { declarative: false, deps: deps, executingRequire: executingRequire, execute: execute }); } function doRegister(name, entry) { entry.name = name; // we never overwrite an existing define if (!(name in defined)) defined[name] = entry; // we have to normalize dependencies // (assume dependencies are normalized for now) // entry.normalizedDeps = entry.deps.map(normalize); entry.normalizedDeps = entry.deps; } function buildGroups(entry, groups) { groups[entry.groupIndex] = groups[entry.groupIndex] || []; if (indexOf.call(groups[entry.groupIndex], entry) != -1) return; groups[entry.groupIndex].push(entry); for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) { var depName = entry.normalizedDeps[i]; var depEntry = defined[depName]; // not in the registry means already linked / ES6 if (!depEntry || depEntry.evaluated) continue; // now we know the entry is in our unlinked linkage group var depGroupIndex = entry.groupIndex + (depEntry.declarative != entry.declarative); // the group index of an entry is always the maximum if (depEntry.groupIndex === undefined || depEntry.groupIndex < depGroupIndex) { // if already in a group, remove from the old group if (depEntry.groupIndex !== undefined) { groups[depEntry.groupIndex].splice(indexOf.call(groups[depEntry.groupIndex], depEntry), 1); // if the old group is empty, then we have a mixed depndency cycle if (groups[depEntry.groupIndex].length == 0) throw new TypeError("Mixed dependency cycle detected"); } depEntry.groupIndex = depGroupIndex; } buildGroups(depEntry, groups); } } function link(name) { var startEntry = defined[name]; startEntry.groupIndex = 0; var groups = []; buildGroups(startEntry, groups); var curGroupDeclarative = !!startEntry.declarative == groups.length % 2; for (var i = groups.length - 1; i >= 0; i--) { var group = groups[i]; for (var j = 0; j < group.length; j++) { var entry = group[j]; // link each group if (curGroupDeclarative) linkDeclarativeModule(entry); else linkDynamicModule(entry); } curGroupDeclarative = !curGroupDeclarative; } } // module binding records var moduleRecords = {}; function getOrCreateModuleRecord(name) { return moduleRecords[name] || (moduleRecords[name] = { name: name, dependencies: [], exports: {}, // start from an empty module and extend importers: [] }) } function linkDeclarativeModule(entry) { // only link if already not already started linking (stops at circular) if (entry.module) return; var module = entry.module = getOrCreateModuleRecord(entry.name); var exports = entry.module.exports; var declaration = entry.declare.call(global, function(name, value) { module.locked = true; if (typeof name == 'object') { for (var p in name) exports[p] = name[p]; } else { exports[name] = value; } for (var i = 0, l = module.importers.length; i < l; i++) { var importerModule = module.importers[i]; if (!importerModule.locked) { for (var j = 0; j < importerModule.dependencies.length; ++j) { if (importerModule.dependencies[j] === module) { importerModule.setters[j](exports); } } } } module.locked = false; return value; }); module.setters = declaration.setters; module.execute = declaration.execute; // now link all the module dependencies for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) { var depName = entry.normalizedDeps[i]; var depEntry = defined[depName]; var depModule = moduleRecords[depName]; // work out how to set depExports based on scenarios... var depExports; if (depModule) { depExports = depModule.exports; } else if (depEntry && !depEntry.declarative) { depExports = depEntry.esModule; } // in the module registry else if (!depEntry) { depExports = load(depName); } // we have an entry -> link else { linkDeclarativeModule(depEntry); depModule = depEntry.module; depExports = depModule.exports; } // only declarative modules have dynamic bindings if (depModule && depModule.importers) { depModule.importers.push(module); module.dependencies.push(depModule); } else module.dependencies.push(null); // run the setter for this dependency if (module.setters[i]) module.setters[i](depExports); } } // An analog to loader.get covering execution of all three layers (real declarative, simulated declarative, simulated dynamic) function getModule(name) { var exports; var entry = defined[name]; if (!entry) { exports = load(name); if (!exports) throw new Error("Unable to load dependency " + name + "."); } else { if (entry.declarative) ensureEvaluated(name, []); else if (!entry.evaluated) linkDynamicModule(entry); exports = entry.module.exports; } if ((!entry || entry.declarative) && exports && exports.__useDefault) return exports['default']; return exports; } function linkDynamicModule(entry) { if (entry.module) return; var exports = {}; var module = entry.module = { exports: exports, id: entry.name }; // AMD requires execute the tree first if (!entry.executingRequire) { for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) { var depName = entry.normalizedDeps[i]; var depEntry = defined[depName]; if (depEntry) linkDynamicModule(depEntry); } } // now execute entry.evaluated = true; var output = entry.execute.call(global, function(name) { for (var i = 0, l = entry.deps.length; i < l; i++) { if (entry.deps[i] != name) continue; return getModule(entry.normalizedDeps[i]); } throw new TypeError('Module ' + name + ' not declared as a dependency.'); }, exports, module); if (output) module.exports = output; // create the esModule object, which allows ES6 named imports of dynamics exports = module.exports; if (exports && exports.__esModule) { entry.esModule = exports; } else { entry.esModule = {}; // don't trigger getters/setters in environments that support them if (typeof exports == 'object' || typeof exports == 'function') { if (getOwnPropertyDescriptor) { var d; for (var p in exports) if (d = Object.getOwnPropertyDescriptor(exports, p)) defineProperty(entry.esModule, p, d); } else { var hasOwnProperty = exports && exports.hasOwnProperty; for (var p in exports) { if (!hasOwnProperty || exports.hasOwnProperty(p)) entry.esModule[p] = exports[p]; } } } entry.esModule['default'] = exports; defineProperty(entry.esModule, '__useDefault', { value: true }); } } /* * Given a module, and the list of modules for this current branch, * ensure that each of the dependencies of this module is evaluated * (unless one is a circular dependency already in the list of seen * modules, in which case we execute it) * * Then we evaluate the module itself depth-first left to right * execution to match ES6 modules */ function ensureEvaluated(moduleName, seen) { var entry = defined[moduleName]; // if already seen, that means it's an already-evaluated non circular dependency if (!entry || entry.evaluated || !entry.declarative) return; // this only applies to declarative modules which late-execute seen.push(moduleName); for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) { var depName = entry.normalizedDeps[i]; if (indexOf.call(seen, depName) == -1) { if (!defined[depName]) load(depName); else ensureEvaluated(depName, seen); } } if (entry.evaluated) return; entry.evaluated = true; entry.module.execute.call(global); } // magical execution function var modules = {}; function load(name) { if (modules[name]) return modules[name]; // node core modules if (name.substr(0, 6) == '@node/') return require(name.substr(6)); var entry = defined[name]; // first we check if this module has already been defined in the registry if (!entry) throw "Module " + name + " not present."; // recursively ensure that the module and all its // dependencies are linked (with dependency group handling) link(name); // now handle dependency execution in correct order ensureEvaluated(name, []); // remove from the registry defined[name] = undefined; // exported modules get __esModule defined for interop if (entry.declarative) defineProperty(entry.module.exports, '__esModule', { value: true }); // return the defined module object return modules[name] = entry.declarative ? entry.module.exports : entry.esModule; }; return function(mains, depNames, declare) { return function(formatDetect) { formatDetect(function(deps) { var System = { _nodeRequire: typeof require != 'undefined' && require.resolve && typeof process != 'undefined' && require, register: register, registerDynamic: registerDynamic, get: load, set: function(name, module) { modules[name] = module; }, newModule: function(module) { return module; } }; System.set('@empty', {}); // register external dependencies for (var i = 0; i < depNames.length; i++) (function(depName, dep) { if (dep && dep.__esModule) System.register(depName, [], function(_export) { return { setters: [], execute: function() { for (var p in dep) if (p != '__esModule' && !(typeof p == 'object' && p + '' == 'Module')) _export(p, dep[p]); } }; }); else System.registerDynamic(depName, [], false, function() { return dep; }); })(depNames[i], arguments[i]); // register modules in this bundle declare(System); // load mains var firstLoad = load(mains[0]); if (mains.length > 1) for (var i = 1; i < mains.length; i++) load(mains[i]); if (firstLoad.__useDefault) return firstLoad['default']; else return firstLoad; }); }; }; })(typeof self != 'undefined' ? self : global) /* (['mainModule'], ['external-dep'], function($__System) { System.register(...); }) (function(factory) { if (typeof define && define.amd) define(['external-dep'], factory); // etc UMD / module pattern })*/ (['1'], ["2c","66"], function($__System) { $__System.registerDynamic("2", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $Object = Object; module.exports = { create: $Object.create, getProto: $Object.getPrototypeOf, isEnum: {}.propertyIsEnumerable, getDesc: $Object.getOwnPropertyDescriptor, setDesc: $Object.defineProperty, setDescs: $Object.defineProperties, getKeys: $Object.keys, getNames: $Object.getOwnPropertyNames, getSymbols: $Object.getOwnPropertySymbols, each: [].forEach }; global.define = __define; return module.exports; }); $__System.registerDynamic("3", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var toString = {}.toString; module.exports = function(it) { return toString.call(it).slice(8, -1); }; global.define = __define; return module.exports; }); $__System.registerDynamic("4", ["3"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var cof = req('3'); module.exports = 0 in Object('z') ? Object : function(it) { return cof(it) == 'String' ? it.split('') : Object(it); }; global.define = __define; return module.exports; }); $__System.registerDynamic("5", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; global.define = __define; return module.exports; }); $__System.registerDynamic("6", ["4", "5"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var IObject = req('4'), defined = req('5'); module.exports = function(it) { return IObject(defined(it)); }; global.define = __define; return module.exports; }); $__System.registerDynamic("7", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var UNDEFINED = 'undefined'; var global = module.exports = typeof window != UNDEFINED && window.Math == Math ? window : typeof self != UNDEFINED && self.Math == Math ? self : Function('return this')(); if (typeof __g == 'number') __g = global; global.define = __define; return module.exports; }); $__System.registerDynamic("8", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var core = module.exports = {version: '1.2.0'}; if (typeof __e == 'number') __e = core; global.define = __define; return module.exports; }); $__System.registerDynamic("9", ["7", "8"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var global = req('7'), core = req('8'), PROTOTYPE = 'prototype'; var ctx = function(fn, that) { return function() { return fn.apply(that, arguments); }; }; var $def = function(type, name, source) { var key, own, out, exp, isGlobal = type & $def.G, isProto = type & $def.P, target = isGlobal ? global : type & $def.S ? global[name] : (global[name] || {})[PROTOTYPE], exports = isGlobal ? core : core[name] || (core[name] = {}); if (isGlobal) source = name; for (key in source) { own = !(type & $def.F) && target && key in target; if (own && key in exports) continue; out = own ? target[key] : source[key]; if (isGlobal && typeof target[key] != 'function') exp = source[key]; else if (type & $def.B && own) exp = ctx(out, global); else if (type & $def.W && target[key] == out) !function(C) { exp = function(param) { return this instanceof C ? new C(param) : C(param); }; exp[PROTOTYPE] = C[PROTOTYPE]; }(out); else exp = isProto && typeof out == 'function' ? ctx(Function.call, out) : out; exports[key] = exp; if (isProto) (exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out; } }; $def.F = 1; $def.G = 2; $def.S = 4; $def.P = 8; $def.B = 16; $def.W = 32; module.exports = $def; global.define = __define; return module.exports; }); $__System.registerDynamic("a", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(exec) { try { return !!exec(); } catch (e) { return true; } }; global.define = __define; return module.exports; }); $__System.registerDynamic("b", ["9", "8", "a"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(KEY, exec) { var $def = req('9'), fn = (req('8').Object || {})[KEY] || Object[KEY], exp = {}; exp[KEY] = exec(fn); $def($def.S + $def.F * req('a')(function() { fn(1); }), 'Object', exp); }; global.define = __define; return module.exports; }); $__System.registerDynamic("c", ["6", "b"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var toIObject = req('6'); req('b')('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor) { return function getOwnPropertyDescriptor(it, key) { return $getOwnPropertyDescriptor(toIObject(it), key); }; }); global.define = __define; return module.exports; }); $__System.registerDynamic("d", ["2", "c"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $ = req('2'); req('c'); module.exports = function getOwnPropertyDescriptor(it, key) { return $.getDesc(it, key); }; global.define = __define; return module.exports; }); $__System.registerDynamic("e", ["d"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { "default": req('d'), __esModule: true }; global.define = __define; return module.exports; }); $__System.registerDynamic("f", ["e"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; "use strict"; var _Object$getOwnPropertyDescriptor = req('e')["default"]; exports["default"] = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = _Object$getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; continue _function; } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; exports.__esModule = true; global.define = __define; return module.exports; }); $__System.registerDynamic("10", ["2"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $ = req('2'); module.exports = function create(P, D) { return $.create(P, D); }; global.define = __define; return module.exports; }); $__System.registerDynamic("11", ["10"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { "default": req('10'), __esModule: true }; global.define = __define; return module.exports; }); $__System.registerDynamic("12", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; global.define = __define; return module.exports; }); $__System.registerDynamic("13", ["12"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var isObject = req('12'); module.exports = function(it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; global.define = __define; return module.exports; }); $__System.registerDynamic("14", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(it) { if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; global.define = __define; return module.exports; }); $__System.registerDynamic("15", ["14"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var aFunction = req('14'); module.exports = function(fn, that, length) { aFunction(fn); if (that === undefined) return fn; switch (length) { case 1: return function(a) { return fn.call(that, a); }; case 2: return function(a, b) { return fn.call(that, a, b); }; case 3: return function(a, b, c) { return fn.call(that, a, b, c); }; } return function() { return fn.apply(that, arguments); }; }; global.define = __define; return module.exports; }); $__System.registerDynamic("16", ["2", "12", "13", "15"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var getDesc = req('2').getDesc, isObject = req('12'), anObject = req('13'); var check = function(O, proto) { anObject(O); if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); }; module.exports = { set: Object.setPrototypeOf || ('__proto__' in {} ? function(test, buggy, set) { try { set = req('15')(Function.call, getDesc(Object.prototype, '__proto__').set, 2); set(test, []); buggy = !(test instanceof Array); } catch (e) { buggy = true; } return function setPrototypeOf(O, proto) { check(O, proto); if (buggy) O.__proto__ = proto; else set(O, proto); return O; }; }({}, false) : undefined), check: check }; global.define = __define; return module.exports; }); $__System.registerDynamic("17", ["9", "16"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $def = req('9'); $def($def.S, 'Object', {setPrototypeOf: req('16').set}); global.define = __define; return module.exports; }); $__System.registerDynamic("18", ["17", "8"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; req('17'); module.exports = req('8').Object.setPrototypeOf; global.define = __define; return module.exports; }); $__System.registerDynamic("19", ["18"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { "default": req('18'), __esModule: true }; global.define = __define; return module.exports; }); $__System.registerDynamic("1a", ["11", "19"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; "use strict"; var _Object$create = req('11')["default"]; var _Object$setPrototypeOf = req('19')["default"]; exports["default"] = function(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = _Object$create(superClass && superClass.prototype, {constructor: { value: subClass, enumerable: false, writable: true, configurable: true }}); if (superClass) _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }; exports.__esModule = true; global.define = __define; return module.exports; }); $__System.registerDynamic("1b", ["2"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $ = req('2'); module.exports = function defineProperty(it, key, desc) { return $.setDesc(it, key, desc); }; global.define = __define; return module.exports; }); $__System.registerDynamic("1c", ["1b"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { "default": req('1b'), __esModule: true }; global.define = __define; return module.exports; }); $__System.registerDynamic("1d", ["1c"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; "use strict"; var _Object$defineProperty = req('1c')["default"]; exports["default"] = (function() { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; _Object$defineProperty(target, descriptor.key, descriptor); } } return function(Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); exports.__esModule = true; global.define = __define; return module.exports; }); $__System.registerDynamic("1e", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; "use strict"; exports["default"] = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; exports.__esModule = true; global.define = __define; return module.exports; }); $__System.registerDynamic("1f", ["5"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var defined = req('5'); module.exports = function(it) { return Object(defined(it)); }; global.define = __define; return module.exports; }); $__System.registerDynamic("20", ["2"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $ = req('2'); module.exports = function(it) { var keys = $.getKeys(it), getSymbols = $.getSymbols; if (getSymbols) { var symbols = getSymbols(it), isEnum = $.isEnum, i = 0, key; while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) keys.push(key); } return keys; }; global.define = __define; return module.exports; }); $__System.registerDynamic("21", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var hasOwnProperty = {}.hasOwnProperty; module.exports = function(it, key) { return hasOwnProperty.call(it, key); }; global.define = __define; return module.exports; }); $__System.registerDynamic("22", ["1f", "4", "20", "21", "a"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var toObject = req('1f'), IObject = req('4'), enumKeys = req('20'), has = req('21'); module.exports = req('a')(function() { var a = Object.assign, A = {}, B = {}, S = Symbol(), K = 'abcdefghijklmnopqrst'; A[S] = 7; K.split('').forEach(function(k) { B[k] = k; }); return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K; }) ? function assign(target, source) { var T = toObject(target), l = arguments.length, i = 1; while (l > i) { var S = IObject(arguments[i++]), keys = enumKeys(S), length = keys.length, j = 0, key; while (length > j) if (has(S, key = keys[j++])) T[key] = S[key]; } return T; } : Object.assign; global.define = __define; return module.exports; }); $__System.registerDynamic("23", ["9", "22"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $def = req('9'); $def($def.S + $def.F, 'Object', {assign: req('22')}); global.define = __define; return module.exports; }); $__System.registerDynamic("24", ["23", "8"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; req('23'); module.exports = req('8').Object.assign; global.define = __define; return module.exports; }); $__System.registerDynamic("25", ["24"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { "default": req('24'), __esModule: true }; global.define = __define; return module.exports; }); $__System.registerDynamic("26", ["1f", "b"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var toObject = req('1f'); req('b')('keys', function($keys) { return function keys(it) { return $keys(toObject(it)); }; }); global.define = __define; return module.exports; }); $__System.registerDynamic("27", ["26", "8"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; req('26'); module.exports = req('8').Object.keys; global.define = __define; return module.exports; }); $__System.registerDynamic("28", ["27"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { "default": req('27'), __esModule: true }; global.define = __define; return module.exports; }); $__System.register('29', [], function (_export) { 'use strict'; _export('isString', isString); _export('isNumeric', isNumeric); _export('isObject', isObject); function isString(input) { return typeof input === 'string'; } function isNumeric(input) { return !isNaN(parseFloat(input)) && isFinite(input); } function isObject(input) { return Object.prototype.toString.call(input) === '[object Object]'; } return { setters: [], execute: function () {} }; }); $__System.register('2a', ['28', '29', '1c'], function (_export) { var _Object$keys, isNumeric, isString, _Object$defineProperty; function deepSet(str, val) { var context = arguments.length <= 2 || arguments[2] === undefined ? this : arguments[2]; var parts, i; if (typeof str !== 'string') { throw Error('value provided to the first argument of deepSet must be a string'); } else { parts = str.split('.'); } for (i = 0; i < parts.length; i++) { // if a obj is passed in and loop is assigning last variable in namespace if (i === parts.length - 1) { _Object$defineProperty(context, parts[i], { configurable: true, enumerable: true, writable: true, value: val }); context = context[parts[i]]; } else { // if namespace doesn't exist, instantiate it as empty object context = context[parts[i]] = context[parts[i]] || {}; } } return context; } /* * Returns a shallow copy of an array */ function copyArray() { var arr = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0]; return arr.slice(0); } /* * Given an array and two indices, swap the elements in place. */ function swapArrayElements(arr, idx1, idx2) { if (!isNumeric(idx1) || !isNumeric(idx2)) { throw new TypeError('provided values for idx1 or idx2 must be integers'); } var tmp = arr[idx2]; arr[idx2] = arr[idx1]; arr[idx1] = tmp; return arr; } /** * Given a shallow key/value pair, return a string that can be sent as xhr form data * @param data * @returns {string} */ function serializeRequestData(data) { return _Object$keys(data).map(function (key) { return encodeURIComponent(key) + '=' + encodeURIComponent(data[key]); }).join('&'); } /** * Helper function for POSTing with XMLHttpRequest * @param url {string} Resource to post to * @param options {object} */ function xhrPost(url, options) { var xhr = new XMLHttpRequest(); var data = options.data; var success = options.success; var fail = options.fail; if (!url || !isString(url)) { throw new TypeError('URL string must be provided for an xhr call'); } xhr.open('POST', url, true); xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); if (success) { xhr.addEventListener('load', success); } if (fail) { xhr.addEventListener('error', fail); } if (data) { data = serializeRequestData(data); } xhr.send(data || null); } return { setters: [function (_) { _Object$keys = _['default']; }, function (_2) { isNumeric = _2.isNumeric; isString = _2.isString; }, function (_c) { _Object$defineProperty = _c['default']; }], execute: function () { 'use strict'; _export('deepSet', deepSet); _export('copyArray', copyArray); _export('swapArrayElements', swapArrayElements); _export('serializeRequestData', serializeRequestData); _export('xhrPost', xhrPost); 'use strict'; } }; }); $__System.register('2b', ['25', '28', '1d', '1e', '2c', '2a'], function (_export) { var _Object$assign, _Object$keys, _createClass, _classCallCheck, EventEmitter, deepSet, Model; return { setters: [function (_2) { _Object$assign = _2['default']; }, function (_) { _Object$keys = _['default']; }, function (_d) { _createClass = _d['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_c) { EventEmitter = _c['default']; }, function (_a) { deepSet = _a.deepSet; }], execute: function () { /** * @class Model * @description A simple implemenation of a model class that notifies provides a getter and setter that notifies on property changes */ 'use strict'; Model = (function () { function Model() { _classCallCheck(this, Model); var emitter = new EventEmitter(); var emitterProxy = {}; this.validators = {}; _Object$keys(EventEmitter.prototype).forEach(function (methodName) { emitterProxy[methodName] = EventEmitter.prototype[methodName].bind(emitter); }); _Object$assign(Object.getPrototypeOf(this), emitterProxy); } _createClass(Model, [{ key: 'extendValidation', value: function extendValidation(validators) { var _this = this; _Object$keys(validators).forEach(function (key) { _this.validators[key] = validators[key]; }); } }, { key: 'set', value: function set(propName, newValue) { var oldValue = this[propName]; if (newValue && this.validators[propName]) { var isValid = this.validators[propName](newValue); if (!isValid) { throw new TypeError(propName + ' did not pass the "' + this.validators[propName].name + '" validator'); } } deepSet.call(this, propName, newValue); this.emit('propertyDidChange', { propName: propName, oldValue: oldValue, newValue: newValue }); } }, { key: 'setProperties', value: function setProperties(properties) { for (var prop in properties) { this.set(prop, properties[prop]); } return properties; } }, { key: 'get', value: function get(propName) { return this[propName]; } }]); return Model; })(); _export('Model', Model); } }; }); $__System.register('2d', ['25', '29', 'f', '1a', '1e', '2b'], function (_export) { var _Object$assign, isString, _get, _inherits, _classCallCheck, Model, defaultProperties, InfoboxThemeData; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isString = _2.isString; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_b) { Model = _b.Model; }], execute: function () { 'use strict'; defaultProperties = { borderColor: null, accentColor: null }; InfoboxThemeData = (function (_Model) { _inherits(InfoboxThemeData, _Model); function InfoboxThemeData() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, InfoboxThemeData); _get(Object.getPrototypeOf(InfoboxThemeData.prototype), 'constructor', this).call(this); _Object$assign(this, defaultProperties, properties); this.extendValidation({ borderColor: isString, accentColor: isString }); } return InfoboxThemeData; })(Model); _export('InfoboxThemeData', InfoboxThemeData); } }; }); $__System.register('2e', ['25', '29', 'f', '1a', '1d', '1e', '2b', '2a'], function (_export) { var _Object$assign, isNumeric, _get, _inherits, _createClass, _classCallCheck, Model, copyArray, swapArrayElements, Collection; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isNumeric = _2.isNumeric; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_d) { _createClass = _d['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_b) { Model = _b.Model; }, function (_a2) { copyArray = _a2.copyArray; swapArrayElements = _a2.swapArrayElements; }], execute: function () { 'use strict'; Collection = (function (_Model) { _inherits(Collection, _Model); function Collection() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Collection); _get(Object.getPrototypeOf(Collection.prototype), 'constructor', this).call(this); this.items = []; _Object$assign(this, properties); } _createClass(Collection, [{ key: 'add', value: function add(item) { var index = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var itemsCopy = copyArray(this.items); if (index) { itemsCopy.splice(index, 0, item); } else { itemsCopy.push(item); } this.setItems(itemsCopy); return item; } }, { key: 'remove', value: function remove(index) { var itemsCopy = copyArray(this.items); var removed = undefined; if (!isNumeric(index)) { throw new TypeError('index must be an integer'); } if (index >= 0) { removed = itemsCopy.splice(index, 1); } else { removed = itemsCopy.pop(); } this.setItems(itemsCopy); return removed; } }, { key: 'swap', value: function swap(firstIndex, secondIndex) { var itemsCopy = copyArray(this.items); itemsCopy = swapArrayElements(itemsCopy, firstIndex, secondIndex); return this.setItems(itemsCopy); } }, { key: 'setItems', value: function setItems(itemsArr) { if (Array.isArray(itemsArr)) { this.set('items', itemsArr); return this.items; } else { throw new TypeError('Argument provided to setItems(itemsArr) must be an array'); } } }]); return Collection; })(Model); _export('Collection', Collection); } }; }); $__System.register('2f', ['25', '29', 'f', '1a', '1e', '2b'], function (_export) { var _Object$assign, isString, _get, _inherits, _classCallCheck, Model, defaultProperties, Elem; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isString = _2.isString; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_b) { Model = _b.Model; }], execute: function () { 'use strict'; defaultProperties = { _nodeType: 'elem', boundVariableName: null, defaultValue: null, value: null }; Elem = (function (_Model) { _inherits(Elem, _Model); function Elem() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Elem); _get(Object.getPrototypeOf(Elem.prototype), 'constructor', this).call(this); this.extendValidation({ boundVariableName: isString, defaultValue: isString }); this.setProperties(_Object$assign({}, defaultProperties, properties)); } return Elem; })(Model); _export('Elem', Elem); } }; }); $__System.register('30', ['25', '29', 'f', '1a', '1e', '2f'], function (_export) { var _Object$assign, isString, _get, _inherits, _classCallCheck, Elem, defaultProperties, Field; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isString = _2.isString; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_f2) { Elem = _f2.Elem; }], execute: function () { 'use strict'; defaultProperties = { _nodeType: 'data', label: null, stringTemplate: null }; Field = (function (_Elem) { _inherits(Field, _Elem); function Field() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Field); _get(Object.getPrototypeOf(Field.prototype), 'constructor', this).call(this); this.extendValidation({ label: isString, stringTemplate: isString }); this.setProperties(_Object$assign({}, defaultProperties, properties)); } return Field; })(Elem); _export('Field', Field); } }; }); $__System.register('31', ['25', '29', 'f', '1a', '1e', '2e'], function (_export) { var _Object$assign, isString, _get, _inherits, _classCallCheck, Collection, defaultProperties, Group; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isString = _2.isString; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_e2) { Collection = _e2.Collection; }], execute: function () { 'use strict'; defaultProperties = { _nodeType: 'group', layout: null, show: null }; Group = (function (_Collection) { _inherits(Group, _Collection); function Group() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Group); _get(Object.getPrototypeOf(Group.prototype), 'constructor', this).call(this); this.extendValidation({ layout: isString, show: isString }); this.setProperties(_Object$assign({}, defaultProperties, properties)); } return Group; })(Collection); _export('Group', Group); } }; }); $__System.register('32', ['25', '29', 'f', '1a', '1e', '2f'], function (_export) { var _Object$assign, isObject, isString, _get, _inherits, _classCallCheck, Elem, defaultProperties, Image; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isObject = _2.isObject; isString = _2.isString; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_f2) { Elem = _f2.Elem; }], execute: function () { 'use strict'; defaultProperties = { _nodeType: 'image', altBoundVariableName: null, altDefaultValue: null, caption: {} }; Image = (function (_Elem) { _inherits(Image, _Elem); function Image() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Image); _get(Object.getPrototypeOf(Image.prototype), 'constructor', this).call(this); this.extendValidation({ altBoundVariableName: isString, altDefaultValue: isString, caption: isObject }); this.setProperties(_Object$assign({}, defaultProperties, properties)); } return Image; })(Elem); _export('Image', Image); } }; }); $__System.register('33', ['25', '29', 'f', '1a', '1e', '2f'], function (_export) { var _Object$assign, isString, _get, _inherits, _classCallCheck, Elem, defaultProperties, Title; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isString = _2.isString; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_f2) { Elem = _f2.Elem; }], execute: function () { 'use strict'; defaultProperties = { _nodeType: 'title', stringTemplate: null }; Title = (function (_Elem) { _inherits(Title, _Elem); function Title() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Title); _get(Object.getPrototypeOf(Title.prototype), 'constructor', this).call(this); this.extendValidation({ stringTemplate: isString }); this.setProperties(_Object$assign({}, defaultProperties, properties)); } return Title; })(Elem); _export('Title', Title); } }; }); $__System.register('34', ['25', '29', 'f', '1a', '1e', '2f'], function (_export) { var _Object$assign, isString, _get, _inherits, _classCallCheck, Elem, defaultProperties, Caption; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { isString = _2.isString; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_f2) { Elem = _f2.Elem; }], execute: function () { 'use strict'; defaultProperties = { _nodeType: 'caption', stringTemplate: null }; Caption = (function (_Elem) { _inherits(Caption, _Elem); function Caption() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Caption); _get(Object.getPrototypeOf(Caption.prototype), 'constructor', this).call(this); this.extendValidation({ stringTemplate: isString }); this.setProperties(_Object$assign({}, defaultProperties, properties)); } return Caption; })(Elem); _export('Caption', Caption); } }; }); $__System.register('35', ['30', '31', '32', '33', '34'], function (_export) { 'use strict'; return { setters: [function (_) { var _exportObj = {}; for (var _key in _) { if (_key !== 'default') _exportObj[_key] = _[_key]; } _export(_exportObj); }, function (_2) { var _exportObj2 = {}; for (var _key2 in _2) { if (_key2 !== 'default') _exportObj2[_key2] = _2[_key2]; } _export(_exportObj2); }, function (_3) { var _exportObj3 = {}; for (var _key3 in _3) { if (_key3 !== 'default') _exportObj3[_key3] = _3[_key3]; } _export(_exportObj3); }, function (_4) { var _exportObj4 = {}; for (var _key4 in _4) { if (_key4 !== 'default') _exportObj4[_key4] = _4[_key4]; } _export(_exportObj4); }, function (_5) { var _exportObj5 = {}; for (var _key5 in _5) { if (_key5 !== 'default') _exportObj5[_key5] = _5[_key5]; } _export(_exportObj5); }], execute: function () { 'This string is here to prevent an empty file warning, since it is empty after transpilation.'; } }; }); $__System.register('36', ['25', '35', 'f', '1a', '1d', '1e', '2e'], function (_export) { var _Object$assign, Types, _get, _inherits, _createClass, _classCallCheck, Collection, defaultProps, InfoboxData; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { Types = _2; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_d) { _createClass = _d['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_e2) { Collection = _e2.Collection; }], execute: function () { 'use strict'; defaultProps = { items: [], theme: null, themeVarName: null, layout: null }; InfoboxData = (function (_Collection) { _inherits(InfoboxData, _Collection); function InfoboxData() { var properties = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, InfoboxData); _get(Object.getPrototypeOf(InfoboxData.prototype), 'constructor', this).call(this); _Object$assign(this, defaultProps, properties); if (this.items) { this.setItems(this.items); } } _createClass(InfoboxData, [{ key: 'newElement', /* * Instance method that is an alias for InfoboxData.newElement */ value: function newElement() { return InfoboxData.newElement.apply(null, arguments); } }], [{ key: 'newElement', value: function newElement(elemName, props) { return new Types[elemName](props); } }]); return InfoboxData; })(Collection); _export('InfoboxData', InfoboxData); } }; }); $__System.registerDynamic("37", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; "format cjs"; global.define = __define; return module.exports; }); $__System.registerDynamic("38", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var ceil = Math.ceil, floor = Math.floor; module.exports = function(it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; global.define = __define; return module.exports; }); $__System.registerDynamic("39", ["38", "5"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var toInteger = req('38'), defined = req('5'); module.exports = function(TO_STRING) { return function(that, pos) { var s = String(defined(that)), i = toInteger(pos), l = s.length, a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; global.define = __define; return module.exports; }); $__System.registerDynamic("3a", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = true; global.define = __define; return module.exports; }); $__System.registerDynamic("3b", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; global.define = __define; return module.exports; }); $__System.registerDynamic("3c", ["a"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = !req('a')(function() { return Object.defineProperty({}, 'a', {get: function() { return 7; }}).a != 7; }); global.define = __define; return module.exports; }); $__System.registerDynamic("3d", ["2", "3b", "3c"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $ = req('2'), createDesc = req('3b'); module.exports = req('3c') ? function(object, key, value) { return $.setDesc(object, key, createDesc(1, value)); } : function(object, key, value) { object[key] = value; return object; }; global.define = __define; return module.exports; }); $__System.registerDynamic("3e", ["3d"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = req('3d'); global.define = __define; return module.exports; }); $__System.registerDynamic("3f", ["7"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var global = req('7'), SHARED = '__core-js_shared__', store = global[SHARED] || (global[SHARED] = {}); module.exports = function(key) { return store[key] || (store[key] = {}); }; global.define = __define; return module.exports; }); $__System.registerDynamic("40", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var id = 0, px = Math.random(); module.exports = function(key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; global.define = __define; return module.exports; }); $__System.registerDynamic("41", ["3f", "7", "40"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var store = req('3f')('wks'), Symbol = req('7').Symbol; module.exports = function(name) { return store[name] || (store[name] = Symbol && Symbol[name] || (Symbol || req('40'))('Symbol.' + name)); }; global.define = __define; return module.exports; }); $__System.registerDynamic("42", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = {}; global.define = __define; return module.exports; }); $__System.registerDynamic("43", ["21", "3d", "41"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var has = req('21'), hide = req('3d'), TAG = req('41')('toStringTag'); module.exports = function(it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) hide(it, TAG, tag); }; global.define = __define; return module.exports; }); $__System.registerDynamic("44", ["2", "3d", "41", "3b", "43"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; 'use strict'; var $ = req('2'), IteratorPrototype = {}; req('3d')(IteratorPrototype, req('41')('iterator'), function() { return this; }); module.exports = function(Constructor, NAME, next) { Constructor.prototype = $.create(IteratorPrototype, {next: req('3b')(1, next)}); req('43')(Constructor, NAME + ' Iterator'); }; global.define = __define; return module.exports; }); $__System.registerDynamic("45", ["3a", "9", "3e", "3d", "21", "41", "42", "44", "2", "43"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; 'use strict'; var LIBRARY = req('3a'), $def = req('9'), $redef = req('3e'), hide = req('3d'), has = req('21'), SYMBOL_ITERATOR = req('41')('iterator'), Iterators = req('42'), BUGGY = !([].keys && 'next' in [].keys()), FF_ITERATOR = '@@iterator', KEYS = 'keys', VALUES = 'values'; var returnThis = function() { return this; }; module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE) { req('44')(Constructor, NAME, next); var createMethod = function(kind) { switch (kind) { case KEYS: return function keys() { return new Constructor(this, kind); }; case VALUES: return function values() { return new Constructor(this, kind); }; } return function entries() { return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator', proto = Base.prototype, _native = proto[SYMBOL_ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT], _default = _native || createMethod(DEFAULT), methods, key; if (_native) { var IteratorPrototype = req('2').getProto(_default.call(new Base)); req('43')(IteratorPrototype, TAG, true); if (!LIBRARY && has(proto, FF_ITERATOR)) hide(IteratorPrototype, SYMBOL_ITERATOR, returnThis); } if (!LIBRARY || FORCE) hide(proto, SYMBOL_ITERATOR, _default); Iterators[NAME] = _default; Iterators[TAG] = returnThis; if (DEFAULT) { methods = { keys: IS_SET ? _default : createMethod(KEYS), values: DEFAULT == VALUES ? _default : createMethod(VALUES), entries: DEFAULT != VALUES ? _default : createMethod('entries') }; if (FORCE) for (key in methods) { if (!(key in proto)) $redef(proto, key, methods[key]); } else $def($def.P + $def.F * BUGGY, NAME, methods); } }; global.define = __define; return module.exports; }); $__System.registerDynamic("46", ["39", "45"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; 'use strict'; var $at = req('39')(true); req('45')(String, 'String', function(iterated) { this._t = String(iterated); this._i = 0; }, function() { var O = this._t, index = this._i, point; if (index >= O.length) return { value: undefined, done: true }; point = $at(O, index); this._i += point.length; return { value: point, done: false }; }); global.define = __define; return module.exports; }); $__System.registerDynamic("47", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function() {}; global.define = __define; return module.exports; }); $__System.registerDynamic("48", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(done, value) { return { value: value, done: !!done }; }; global.define = __define; return module.exports; }); $__System.registerDynamic("49", ["47", "48", "42", "6", "45"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; 'use strict'; var setUnscope = req('47'), step = req('48'), Iterators = req('42'), toIObject = req('6'); req('45')(Array, 'Array', function(iterated, kind) { this._t = toIObject(iterated); this._i = 0; this._k = kind; }, function() { var O = this._t, kind = this._k, index = this._i++; if (!O || index >= O.length) { this._t = undefined; return step(1); } if (kind == 'keys') return step(0, index); if (kind == 'values') return step(0, O[index]); return step(0, [index, O[index]]); }, 'values'); Iterators.Arguments = Iterators.Array; setUnscope('keys'); setUnscope('values'); setUnscope('entries'); global.define = __define; return module.exports; }); $__System.registerDynamic("4a", ["49", "42"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; req('49'); var Iterators = req('42'); Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array; global.define = __define; return module.exports; }); $__System.registerDynamic("4b", ["3", "41"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var cof = req('3'), TAG = req('41')('toStringTag'), ARG = cof(function() { return arguments; }()) == 'Arguments'; module.exports = function(it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' : typeof(T = (O = Object(it))[TAG]) == 'string' ? T : ARG ? cof(O) : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; global.define = __define; return module.exports; }); $__System.registerDynamic("4c", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(it, Constructor, name) { if (!(it instanceof Constructor)) throw TypeError(name + ": use the 'new' operator!"); return it; }; global.define = __define; return module.exports; }); $__System.registerDynamic("4d", ["13"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var anObject = req('13'); module.exports = function(iterator, fn, value, entries) { try { return entries ? fn(anObject(value)[0], value[1]) : fn(value); } catch (e) { var ret = iterator['return']; if (ret !== undefined) anObject(ret.call(iterator)); throw e; } }; global.define = __define; return module.exports; }); $__System.registerDynamic("4e", ["42", "41"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var Iterators = req('42'), ITERATOR = req('41')('iterator'); module.exports = function(it) { return (Iterators.Array || Array.prototype[ITERATOR]) === it; }; global.define = __define; return module.exports; }); $__System.registerDynamic("4f", ["38"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var toInteger = req('38'), min = Math.min; module.exports = function(it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; }; global.define = __define; return module.exports; }); $__System.registerDynamic("50", ["4b", "41", "42", "8"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var classof = req('4b'), ITERATOR = req('41')('iterator'), Iterators = req('42'); module.exports = req('8').getIteratorMethod = function(it) { if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; }; global.define = __define; return module.exports; }); $__System.registerDynamic("51", ["15", "4d", "4e", "13", "4f", "50"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var ctx = req('15'), call = req('4d'), isArrayIter = req('4e'), anObject = req('13'), toLength = req('4f'), getIterFn = req('50'); module.exports = function(iterable, entries, fn, that) { var iterFn = getIterFn(iterable), f = ctx(fn, that, entries ? 2 : 1), index = 0, length, step, iterator; if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) { call(iterator, f, step.value, entries); } }; global.define = __define; return module.exports; }); $__System.registerDynamic("52", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = Object.is || function is(x, y) { return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; global.define = __define; return module.exports; }); $__System.registerDynamic("53", ["2", "41", "3c"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; 'use strict'; var $ = req('2'), SPECIES = req('41')('species'); module.exports = function(C) { if (req('3c') && !(SPECIES in C)) $.setDesc(C, SPECIES, { configurable: true, get: function() { return this; } }); }; global.define = __define; return module.exports; }); $__System.registerDynamic("54", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = function(fn, args, that) { var un = that === undefined; switch (args.length) { case 0: return un ? fn() : fn.call(that); case 1: return un ? fn(args[0]) : fn.call(that, args[0]); case 2: return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); case 3: return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); case 4: return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); } return fn.apply(that, args); }; global.define = __define; return module.exports; }); $__System.registerDynamic("55", ["7"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = req('7').document && document.documentElement; global.define = __define; return module.exports; }); $__System.registerDynamic("56", ["12", "7"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var isObject = req('12'), document = req('7').document, is = isObject(document) && isObject(document.createElement); module.exports = function(it) { return is ? document.createElement(it) : {}; }; global.define = __define; return module.exports; }); $__System.registerDynamic("57", [], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var process = module.exports = {}; var queue = []; var draining = false; function drainQueue() { if (draining) { return; } draining = true; var currentQueue; var len = queue.length; while (len) { currentQueue = queue; queue = []; var i = -1; while (++i < len) { currentQueue[i](); } len = queue.length; } draining = false; } process.nextTick = function(fun) { queue.push(fun); if (!draining) { setTimeout(drainQueue, 0); } }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.binding = function(name) { throw new Error('process.binding is not supported'); }; process.cwd = function() { return '/'; }; process.chdir = function(dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; global.define = __define; return module.exports; }); $__System.registerDynamic("58", ["57"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = req('57'); global.define = __define; return module.exports; }); $__System.registerDynamic("59", ["58"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = $__System._nodeRequire ? process : req('58'); global.define = __define; return module.exports; }); $__System.registerDynamic("5a", ["59"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = req('59'); global.define = __define; return module.exports; }); $__System.registerDynamic("5b", ["15", "54", "55", "56", "7", "3", "5a"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; var ctx = req('15'), invoke = req('54'), html = req('55'), cel = req('56'), global = req('7'), process = global.process, setTask = global.setImmediate, clearTask = global.clearImmediate, MessageChannel = global.MessageChannel, counter = 0, queue = {}, ONREADYSTATECHANGE = 'onreadystatechange', defer, channel, port; var run = function() { var id = +this; if (queue.hasOwnProperty(id)) { var fn = queue[id]; delete queue[id]; fn(); } }; var listner = function(event) { run.call(event.data); }; if (!setTask || !clearTask) { setTask = function setImmediate(fn) { var args = [], i = 1; while (arguments.length > i) args.push(arguments[i++]); queue[++counter] = function() { invoke(typeof fn == 'function' ? fn : Function(fn), args); }; defer(counter); return counter; }; clearTask = function clearImmediate(id) { delete queue[id]; }; if (req('3')(process) == 'process') { defer = function(id) { process.nextTick(ctx(run, id, 1)); }; } else if (MessageChannel) { channel = new MessageChannel; port = channel.port2; channel.port1.onmessage = listner; defer = ctx(port.postMessage, port, 1); } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScript) { defer = function(id) { global.postMessage(id + '', '*'); }; global.addEventListener('message', listner, false); } else if (ONREADYSTATECHANGE in cel('script')) { defer = function(id) { html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function() { html.removeChild(this); run.call(id); }; }; } else { defer = function(id) { setTimeout(ctx(run, id, 1), 0); }; } } module.exports = { set: setTask, clear: clearTask }; })(req('5a')); global.define = __define; return module.exports; }); $__System.registerDynamic("5c", ["7", "5b", "3", "5a"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { var global = req('7'), macrotask = req('5b').set, Observer = global.MutationObserver || global.WebKitMutationObserver, process = global.process, isNode = req('3')(process) == 'process', head, last, notify; var flush = function() { var parent, domain; if (isNode && (parent = process.domain)) { process.domain = null; parent.exit(); } while (head) { domain = head.domain; if (domain) domain.enter(); head.fn.call(); if (domain) domain.exit(); head = head.next; } last = undefined; if (parent) parent.enter(); }; if (isNode) { notify = function() { process.nextTick(flush); }; } else if (Observer) { var toggle = 1, node = document.createTextNode(''); new Observer(flush).observe(node, {characterData: true}); notify = function() { node.data = toggle = -toggle; }; } else { notify = function() { macrotask.call(global, flush); }; } module.exports = function asap(fn) { var task = { fn: fn, next: undefined, domain: isNode && process.domain }; if (last) last.next = task; if (!head) { head = task; notify(); } last = task; }; })(req('5a')); global.define = __define; return module.exports; }); $__System.registerDynamic("5d", ["3e"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var $redef = req('3e'); module.exports = function(target, src) { for (var key in src) $redef(target, key, src[key]); return target; }; global.define = __define; return module.exports; }); $__System.registerDynamic("5e", ["41"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var SYMBOL_ITERATOR = req('41')('iterator'), SAFE_CLOSING = false; try { var riter = [7][SYMBOL_ITERATOR](); riter['return'] = function() { SAFE_CLOSING = true; }; Array.from(riter, function() { throw 2; }); } catch (e) {} module.exports = function(exec) { if (!SAFE_CLOSING) return false; var safe = false; try { var arr = [7], iter = arr[SYMBOL_ITERATOR](); iter.next = function() { safe = true; }; arr[SYMBOL_ITERATOR] = function() { return iter; }; exec(arr); } catch (e) {} return safe; }; global.define = __define; return module.exports; }); $__System.registerDynamic("5f", ["2", "3a", "7", "15", "4b", "9", "12", "13", "14", "4c", "51", "16", "52", "53", "41", "40", "5c", "3c", "5d", "43", "8", "5e", "5a"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; var $ = req('2'), LIBRARY = req('3a'), global = req('7'), ctx = req('15'), classof = req('4b'), $def = req('9'), isObject = req('12'), anObject = req('13'), aFunction = req('14'), strictNew = req('4c'), forOf = req('51'), setProto = req('16').set, same = req('52'), species = req('53'), SPECIES = req('41')('species'), RECORD = req('40')('record'), asap = req('5c'), PROMISE = 'Promise', process = global.process, isNode = classof(process) == 'process', P = global[PROMISE], Wrapper; var testResolve = function(sub) { var test = new P(function() {}); if (sub) test.constructor = Object; return P.resolve(test) === test; }; var useNative = function() { var works = false; function P2(x) { var self = new P(x); setProto(self, P2.prototype); return self; } try { works = P && P.resolve && testResolve(); setProto(P2, P); P2.prototype = $.create(P.prototype, {constructor: {value: P2}}); if (!(P2.resolve(5).then(function() {}) instanceof P2)) { works = false; } if (works && req('3c')) { var thenableThenGotten = false; P.resolve($.setDesc({}, 'then', {get: function() { thenableThenGotten = true; }})); works = thenableThenGotten; } } catch (e) { works = false; } return works; }(); var isPromise = function(it) { return isObject(it) && (useNative ? classof(it) == 'Promise' : RECORD in it); }; var sameConstructor = function(a, b) { if (LIBRARY && a === P && b === Wrapper) return true; return same(a, b); }; var getConstructor = function(C) { var S = anObject(C)[SPECIES]; return S != undefined ? S : C; }; var isThenable = function(it) { var then; return isObject(it) && typeof(then = it.then) == 'function' ? then : false; }; var notify = function(record, isReject) { if (record.n) return; record.n = true; var chain = record.c; asap(function() { var value = record.v, ok = record.s == 1, i = 0; var run = function(react) { var cb = ok ? react.ok : react.fail, ret, then; try { if (cb) { if (!ok) record.h = true; ret = cb === true ? value : cb(value); if (ret === react.P) { react.rej(TypeError('Promise-chain cycle')); } else if (then = isThenable(ret)) { then.call(ret, react.res, react.rej); } else react.res(ret); } else react.rej(value); } catch (err) { react.rej(err); } }; while (chain.length > i) run(chain[i++]); chain.length = 0; record.n = false; if (isReject) setTimeout(function() { var promise = record.p, handler, console; if (isUnhandled(promise)) { if (isNode) { process.emit('unhandledRejection', value, promise); } else if (handler = global.onunhandledrejection) { handler({ promise: promise, reason: value }); } else if ((console = global.console) && console.error) { console.error('Unhandled promise rejection', value); } } record.a = undefined; }, 1); }); }; var isUnhandled = function(promise) { var record = promise[RECORD], chain = record.a || record.c, i = 0, react; if (record.h) return false; while (chain.length > i) { react = chain[i++]; if (react.fail || !isUnhandled(react.P)) return false; } return true; }; var $reject = function(value) { var record = this; if (record.d) return; record.d = true; record = record.r || record; record.v = value; record.s = 2; record.a = record.c.slice(); notify(record, true); }; var $resolve = function(value) { var record = this, then; if (record.d) return; record.d = true; record = record.r || record; try { if (then = isThenable(value)) { asap(function() { var wrapper = { r: record, d: false }; try { then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); } catch (e) { $reject.call(wrapper, e); } }); } else { record.v = value; record.s = 1; notify(record, false); } } catch (e) { $reject.call({ r: record, d: false }, e); } }; if (!useNative) { P = function Promise(executor) { aFunction(executor); var record = { p: strictNew(this, P, PROMISE), c: [], a: undefined, s: 0, d: false, v: undefined, h: false, n: false }; this[RECORD] = record; try { executor(ctx($resolve, record, 1), ctx($reject, record, 1)); } catch (err) { $reject.call(record, err); } }; req('5d')(P.prototype, { then: function then(onFulfilled, onRejected) { var S = anObject(anObject(this).constructor)[SPECIES]; var react = { ok: typeof onFulfilled == 'function' ? onFulfilled : true, fail: typeof onRejected == 'function' ? onRejected : false }; var promise = react.P = new (S != undefined ? S : P)(function(res, rej) { react.res = res; react.rej = rej; }); aFunction(react.res); aFunction(react.rej); var record = this[RECORD]; record.c.push(react); if (record.a) record.a.push(react); if (record.s) notify(record, false); return promise; }, 'catch': function(onRejected) { return this.then(undefined, onRejected); } }); } $def($def.G + $def.W + $def.F * !useNative, {Promise: P}); req('43')(P, PROMISE); species(P); species(Wrapper = req('8')[PROMISE]); $def($def.S + $def.F * !useNative, PROMISE, {reject: function reject(r) { return new this(function(res, rej) { rej(r); }); }}); $def($def.S + $def.F * (!useNative || testResolve(true)), PROMISE, {resolve: function resolve(x) { return isPromise(x) && sameConstructor(x.constructor, this) ? x : new this(function(res) { res(x); }); }}); $def($def.S + $def.F * !(useNative && req('5e')(function(iter) { P.all(iter)['catch'](function() {}); })), PROMISE, { all: function all(iterable) { var C = getConstructor(this), values = []; return new C(function(res, rej) { forOf(iterable, false, values.push, values); var remaining = values.length, results = Array(remaining); if (remaining) $.each.call(values, function(promise, index) { C.resolve(promise).then(function(value) { results[index] = value; --remaining || res(results); }, rej); }); else res(results); }); }, race: function race(iterable) { var C = getConstructor(this); return new C(function(res, rej) { forOf(iterable, false, function(promise) { C.resolve(promise).then(res, rej); }); }); } }); })(req('5a')); global.define = __define; return module.exports; }); $__System.registerDynamic("60", ["37", "46", "4a", "5f", "8"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; req('37'); req('46'); req('4a'); req('5f'); module.exports = req('8').Promise; global.define = __define; return module.exports; }); $__System.registerDynamic("61", ["60"], true, function(req, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { "default": req('60'), __esModule: true }; global.define = __define; return module.exports; }); $__System.register('62', ['28', '29', '61', '2a'], function (_export) { var _Object$keys, isString, _Promise, xhrPost; /** * Save infobox XML to MediaWiki * * @param xmlString {string} A serialized string of portable infobox xml * @param options {object} Config for persistence * @return {Promise} */ function persist(xmlString, options) { var title = options.title; if (!xmlString || !isString(xmlString) || !isString(title)) { throw new TypeError('Infobox title and xml are required for saving to MediaWiki'); } return getEditToken(title).then(save.bind(null, xmlString, title)); } /** * Send request to MW API to save infobox article with new data * @param xmlString {string} New value for the infobox xml * @param title {string} Name of the article where the infobox xml will be saved * @param editToken {string} Needed for authenticating request * @return {Promise} */ function save(xmlString, title, editToken) { return new _Promise(function (resolve, reject) { // FIXME: this is hard coded to point to a devbox, but is designed to be run at the same domain as `/api.php` xhrPost('http://lizlux.liz.wikia-dev.com/api.php', { data: { action: 'edit', title: title, text: xmlString, token: editToken, format: 'json' }, success: function success(event) { var xhr = event.target; var response = JSON.parse(xhr.responseText); if (response.edit && response.edit.result === 'Success') { resolve(); } else if (response.error) { reject(response.error.code); } else { reject('Bad request'); } }, fail: function fail() { return reject('Bad request'); } }); }); } /** * Get an edit token so we can save an article via MW API * @param title {string} Name of the article where the infobox xml will be saved * @return {Promise} */ function getEditToken(title) { return new _Promise(function (resolve, reject) { // FIXME: this is hard coded to point to a devbox, but is designed to be run at the same domain as `/api.php` xhrPost('http://lizlux.liz.wikia-dev.com/api.php', { data: { action: 'query', prop: 'info', titles: title, intoken: 'edit', format: 'json' }, success: function success(event) { var xhr = event.target; var response = JSON.parse(xhr.responseText); if (response.error) { reject(response.error.code); } else { var pages = response.query.pages; if (pages) { // get edit token from MW API response var editToken = pages[_Object$keys(pages)[0]].edittoken; if (editToken === undefined) { reject('No edit token'); } resolve(editToken); } else { reject(); } } }, fail: function fail() { return reject('Bad request'); } }); }); } return { setters: [function (_2) { _Object$keys = _2['default']; }, function (_3) { isString = _3.isString; }, function (_) { _Promise = _['default']; }, function (_a) { xhrPost = _a.xhrPost; }], execute: function () { 'use strict'; _export('persist', persist); } }; }); $__System.register('63', [], function (_export) { 'use strict'; // Implementation from http://stackoverflow.com/a/2893259 _export('equals', equals); _export('formatXml', formatXml); function equals(leftVal, rightVal, options) { if (arguments.length < 3) throw new Error("Handlebars Helper equal needs 2 parameters"); if (leftVal !== rightVal) { return options.inverse(this); } else { return options.fn(this); } } function formatXml(xml) { var reg = /(>)\s*(<)(\/*)/g; var wsexp = / *(.*) +\n/g; var contexp = /(<.+>)(.+\n)/g; xml = xml.replace(reg, '$1\n$2$3').replace(wsexp, '$1\n').replace(contexp, '$1\n$2'); var formatted = ''; var lines = xml.split('\n'); var indent = 0; var lastType = 'other'; // 4 types of tags - single, closing, opening, other (text, doctype, comment) - 4*4 = 16 transitions var transitions = { 'single->single': 0, 'single->closing': -1, 'single->opening': 0, 'single->other': 0, 'closing->single': 0, 'closing->closing': -1, 'closing->opening': 0, 'closing->other': 0, 'opening->single': 1, 'opening->closing': 0, 'opening->opening': 1, 'opening->other': 1, 'other->single': 0, 'other->closing': -1, 'other->opening': 0, 'other->other': 0 }; for (var i = 0; i < lines.length; i++) { var ln = lines[i]; var single = Boolean(ln.match(/<.+\/>/)); // is this line a single tag? ex. <br /> var closing = Boolean(ln.match(/<\/.+>/)); // is this a closing tag? ex. </a> var opening = Boolean(ln.match(/<[^!].*>/)); // is this even a tag (that's not <!something>) var type = single ? 'single' : closing ? 'closing' : opening ? 'opening' : 'other'; var fromTo = lastType + '->' + type; lastType = type; var padding = ''; indent += transitions[fromTo]; for (var j = 0; j < indent; j++) { padding += '\t'; } if (fromTo === 'opening->closing') { // substr removes line break (\n) from prev loop formatted = formatted.substr(0, formatted.length - 1) + ln + '\n'; } else { formatted += padding + ln + '\n'; } } return formatted; } return { setters: [], execute: function () {} }; }); $__System.register("64", [], function (_export) { "use strict"; var data, image, title, header, xmlString; return { setters: [], execute: function () { data = "<data{{#boundVariableName}} source=\"{{.}}\"{{/boundVariableName}}>\n\t{{#label}}<label>{{.}}</label>{{/label}}\n\t{{#defaultValue}}<default>{{.}}</default>{{/defaultValue}}\n\t{{#stringTemplate}}<format>{{.}}</format>{{/stringTemplate}}\n</data>"; image = "<image{{#boundVariableName}} source=\"{{.}}\"{{/boundVariableName}}>\n\t{{#caption}}\n\t\t<caption{{#boundVariableName}} source=\"{{.}}\"{{/boundVariableName}}>\n\t\t\t{{#defaultValue}}<default>{{.}}</default>{{/defaultValue}}\n\t\t\t{{#stringTemplate}}<format>{{.}}</format>{{/stringTemplate}}\n\t\t</caption>\n\t{{/caption}}\n\t{{#if altDefaultValue}}\n\t\t<alt{{#altBoundVariableName}} source=\"{{.}}\"{{/altBoundVariableName}}>\n\t\t\t<default>{{altDefaultValue}}</default>\n\t\t</alt>\n\t{{/if}}\n\t{{#defaultValue}}<default>{{.}}</default>{{/defaultValue}}\n</image>"; title = "<title{{#boundVariableName}} source=\"{{.}}\"{{/boundVariableName}}>\n\t{{#defaultValue}}<default>{{.}}</default>{{/defaultValue}}\n\t{{#stringTemplate}}<format>{{.}}</format>{{/stringTemplate}}\n</title>"; // headers within groups use the "title" node type header = "<header>{{value}}</header>"; xmlString = "<infobox{{#theme}} theme=\"{{.}}\"{{/theme}}{{#themeVarName}} theme-source=\"{{.}}\"{{/themeVarName}}{{#layout}} layout=\"{{.}}\"{{/layout}}>\n\t{{#each items as |item|}}\n\t\t{{#equals item._nodeType 'data'}}" + data + "{{/equals}}\n\t\t{{#equals item._nodeType 'image'}}" + image + "{{/equals}}\n\t\t{{#equals item._nodeType 'title'}}" + title + "{{/equals}}\n\t\t{{#equals item._nodeType 'group'}}\n\t\t\t<group>\n\t\t\t\t{{#each item.items as |groupItem|}}\n\t\t\t\t\t{{#equals groupItem._nodeType 'data'}}" + data + "{{/equals}}\n\t\t\t\t\t{{#equals groupItem._nodeType 'image'}}" + image + "{{/equals}}\n\t\t\t\t\t{{#equals groupItem._nodeType 'title'}}" + header + "{{/equals}}\n\t\t\t\t{{/each}}\n\t\t\t</group>\n\t\t{{/equals}}\n\t{{/each}}\n</infobox>"; _export("xmlString", xmlString); } }; }); $__System.register('65', ['25', '29', '36', '63', '64', '66', '2d'], function (_export) { var _Object$assign, isString, InfoboxData, equals, formatXml, xmlString, InfoboxThemeData; function createElements(child) { var nodeName = child.nodeName; var create = InfoboxData.newElement; var defaultTag = child.querySelector('default'); var formatTag = child.querySelector('format'); var props = { defaultValue: defaultTag && defaultTag.textContent, boundVariableName: child.getAttribute('source') }; switch (nodeName.toLowerCase()) { case 'title': return create('Title', _Object$assign(props, { stringTemplate: formatTag && formatTag.textContent })); case 'image': var altTag = child.querySelector('alt'); var altDefaultTag = altTag && altTag.querySelector('default'); var captionTag = child.querySelector('caption'); var captionFormatTag = captionTag && captionTag.querySelector('format'); var imageProps = _Object$assign(props, { altBoundVariableName: altTag && altTag.getAttribute('source'), altDefaultValue: altDefaultTag && altDefaultTag.textContent }); imageProps.caption = create('Caption', { value: captionTag && captionTag.textContent, boundVariableName: captionTag && captionTag.getAttribute('source'), stringTemplate: captionFormatTag && captionFormatTag.textContent }); return create('Image', imageProps); case 'header': return create('Title', _Object$assign(props, { value: child.textContent })); case 'data': var labelTag = child.querySelector('label'); return create('Field', _Object$assign(props, { label: labelTag && labelTag.textContent, stringTemplate: formatTag && formatTag.textContent })); case 'group': return create('Group', _Object$assign(props, { layout: child.getAttribute('layout'), show: child.getAttribute('show'), items: Array.prototype.map.call(child.children, createElements) })); default: return null; } } /** * serialize * * @param data {InfoboxData} * @param theme {InfoboxThemeData} * @return {string} A string of portable infobox data */ function serialize(data, theme) { var template = Handlebars.compile(xmlString); return formatXml(template(data)); } /** * deserialize * * @param doc {string} A string of portable infobox xml * @return {object} an object containing new instances of InfoboxData and InfoboxThemeData */ function deserialize(doc) { if (!isString(doc)) { throw new TypeError('document supplied to deserialize must be a string'); } var parser = new DOMParser(); var _doc = parser.parseFromString(doc, 'text/html'); var infobox = _doc.querySelector('infobox'); var infoboxProps = { layout: infobox.getAttribute('layout'), theme: infobox.getAttribute('theme'), themeVarName: infobox.getAttribute('theme-source'), items: Array.prototype.map.call(infobox.children, createElements) }; return { data: new InfoboxData(infoboxProps), theme: null //new InfoboxThemeData() }; } return { setters: [function (_) { _Object$assign = _['default']; }, function (_6) { isString = _6.isString; }, function (_4) { InfoboxData = _4.InfoboxData; }, function (_3) { equals = _3.equals; formatXml = _3.formatXml; }, function (_5) { xmlString = _5.xmlString; }, function (_2) {}, function (_d) { InfoboxThemeData = _d.InfoboxThemeData; }], execute: function () { 'use strict'; _export('serialize', serialize); _export('deserialize', deserialize); Handlebars.registerHelper('equals', equals); } }; }); $__System.register('1', ['25', '36', '62', '65', 'f', '1a', '1d', '1e', '2d', '2b'], function (_export) { var _Object$assign, InfoboxData, persist, _serialize, deserialize, _get, _inherits, _createClass, _classCallCheck, InfoboxThemeData, Model, defaultProps, Core; return { setters: [function (_) { _Object$assign = _['default']; }, function (_2) { InfoboxData = _2.InfoboxData; }, function (_3) { persist = _3.persist; }, function (_4) { _serialize = _4.serialize; deserialize = _4.deserialize; }, function (_f) { _get = _f['default']; }, function (_a) { _inherits = _a['default']; }, function (_d) { _createClass = _d['default']; }, function (_e) { _classCallCheck = _e['default']; }, function (_d2) { InfoboxThemeData = _d2.InfoboxThemeData; }, function (_b) { Model = _b.Model; }], execute: function () { 'use strict'; defaultProps = { // Options to be passed to InfoboxData constructor dataOptions: null, // Options to be passed to InfoboxThemeData constructor themeOptions: null, // The 'from' property's value is a string whose contents are serialized Portable Infobox XML from: null, // In the case of mediawiki storage, this is the article title. Otherwise, a string title for the infobox template. persistOptions: null }; Core = (function (_Model) { _inherits(Core, _Model); function Core() { var params = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Core); _get(Object.getPrototypeOf(Core.prototype), 'constructor', this).call(this); // extend the properties params = _Object$assign(defaultProps, params); var _params = params; var from = _params.from; /* * If builder is instantiated with a serialized document, we will deconstruct it * into our internal representation, and populate the builder with those values */ if (from) { var deserialized = deserialize(from); this.data = deserialized.data; this.theme = deserialized.theme; } else { // If 'from' is not defined, we instantiate a fresh infobox this.data = new InfoboxData(params.dataOptions); this.theme = new InfoboxThemeData(); } // store config for persistence method this.persistOptions = params.persistOptions; } // semver _createClass(Core, [{ key: 'serialize', value: function serialize() { return _serialize(this.data, this.theme); } }, { key: 'save', value: function save() { var _this = this; var data = this.serialize(); return persist(data, this.persistOptions).then(function () { return _this.emit('save', data); })['catch'](function (err) { return _this.emit('errorWhileSaving', err); }); } }]); return Core; })(Model); Core.VERSION = '0.1.0'; if (window) { // export the class for clients that don't use dependency injection window.InfoboxTemplateBuilder = Core; } _export('InfoboxTemplateBuilder', Core); } }; }); }) (function(factory) { if (typeof define == 'function' && define.amd) define(["event-emitter","handlebars"], factory); else factory(); }); //# sourceMappingURL=infobox-template-builder.amd.js.map
{'content_hash': '8d8af0b509d268eb8aa06afb2bcc4d73', 'timestamp': '', 'source': 'github', 'line_count': 3654, 'max_line_length': 779, 'avg_line_length': 27.301860974274767, 'alnum_prop': 0.5748739487374825, 'repo_name': 'Wikia/infobox-template-builder', 'id': 'f36ddfb944484acf146fe9f8e3bbbcb4d45834d2', 'size': '99761', 'binary': False, 'copies': '1', 'ref': 'refs/heads/dev', 'path': 'dist/infobox-template-builder.amd.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '621'}, {'name': 'JavaScript', 'bytes': '337421'}]}
github
0
import React, { Component } from 'react'; import FilterableProductTable from './FilterableProductTable'; /** * This page serves as the "housing" for <FilterableProductTable /> in this case. * Reference: https://reactjs.org/docs/thinking-in-react.html */ class MainConceptsPage extends Component { render() { const PRODUCTS = [ { category: "Sporting Goods", price: "$49.99", stocked: true, name: "Football" }, { category: "Sporting Goods", price: "$9.99", stocked: true, name: "Baseball" }, { category: "Sporting Goods", price: "$29.99", stocked: false, name: "Basketball" }, { category: "Electronics", price: "$99.99", stocked: true, name: "iPod Touch" }, { category: "Electronics", price: "$399.99", stocked: false, name: "iPhone 5" }, { category: "Electronics", price: "$199.99", stocked: true, name: "Nexus 7" } ]; const rowStyle = { paddingTop: 15, paddingBottom: 15 }; return ( <div className="container"> <div className="row" style={rowStyle}> <div className="col"> <h1>React | Main Concepts</h1> </div> </div> <FilterableProductTable products={PRODUCTS} /> </div> ); } } export default MainConceptsPage;
{'content_hash': '460bdedab1d6faad79959cc895cd2c7f', 'timestamp': '', 'source': 'github', 'line_count': 68, 'max_line_length': 82, 'avg_line_length': 27.647058823529413, 'alnum_prop': 0.40904255319148936, 'repo_name': 'mpeinado/react-starter', 'id': '7f5e818ade1477d34e7c60822bc8a6386ef710ad', 'size': '1880', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/components/reactResearch/mainConcepts/MainConceptsPage.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '510'}, {'name': 'HTML', 'bytes': '1815'}, {'name': 'JavaScript', 'bytes': '61762'}]}
github
0
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>const_buffers_1::operator+ (2 of 2 overloads)</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../operator_plus_.html" title="const_buffers_1::operator+"> <link rel="prev" href="overload1.html" title="const_buffers_1::operator+ (1 of 2 overloads)"> <link rel="next" href="../value_type.html" title="const_buffers_1::value_type"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../operator_plus_.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../value_type.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="boost_asio.reference.const_buffers_1.operator_plus_.overload2"></a><a class="link" href="overload2.html" title="const_buffers_1::operator+ (2 of 2 overloads)">const_buffers_1::operator+ (2 of 2 overloads)</a> </h5></div></div></div> <p> <span class="emphasis"><em>Inherited from const_buffer.</em></span> </p> <p> Create a new non-modifiable buffer that is offset from the start of another. </p> <pre class="programlisting"><span class="identifier">const_buffer</span> <span class="keyword">operator</span><span class="special">+(</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">start</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">const_buffer</span> <span class="special">&amp;</span> <span class="identifier">b</span><span class="special">);</span> </pre> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2013 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../operator_plus_.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../value_type.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
{'content_hash': 'badd0b501dbc4a7da06a69145a514859', 'timestamp': '', 'source': 'github', 'line_count': 54, 'max_line_length': 449, 'avg_line_length': 70.38888888888889, 'alnum_prop': 0.6206261510128913, 'repo_name': 'gnu3ra/SCC15HPCRepast', 'id': '0303868a07db9ad4a55d35434eb83d7909f318c3', 'size': '3801', 'binary': False, 'copies': '7', 'ref': 'refs/heads/master', 'path': 'INSTALLATION/boost_1_54_0/doc/html/boost_asio/reference/const_buffers_1/operator_plus_/overload2.html', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Assembly', 'bytes': '166901'}, {'name': 'Awk', 'bytes': '4270'}, {'name': 'Batchfile', 'bytes': '59453'}, {'name': 'C', 'bytes': '89044644'}, {'name': 'C#', 'bytes': '171870'}, {'name': 'C++', 'bytes': '149286410'}, {'name': 'CMake', 'bytes': '1277735'}, {'name': 'CSS', 'bytes': '275497'}, {'name': 'Cuda', 'bytes': '26749'}, {'name': 'DIGITAL Command Language', 'bytes': '396318'}, {'name': 'FORTRAN', 'bytes': '5955918'}, {'name': 'Groff', 'bytes': '1536123'}, {'name': 'HTML', 'bytes': '152716955'}, {'name': 'IDL', 'bytes': '14'}, {'name': 'Java', 'bytes': '1703162'}, {'name': 'JavaScript', 'bytes': '132031'}, {'name': 'Lex', 'bytes': '44890'}, {'name': 'LiveScript', 'bytes': '299224'}, {'name': 'Logos', 'bytes': '17671'}, {'name': 'Makefile', 'bytes': '10089555'}, {'name': 'Max', 'bytes': '36857'}, {'name': 'Objective-C', 'bytes': '4756'}, {'name': 'PHP', 'bytes': '74480'}, {'name': 'Perl', 'bytes': '1444604'}, {'name': 'Perl6', 'bytes': '9917'}, {'name': 'PostScript', 'bytes': '4003'}, {'name': 'Pure Data', 'bytes': '1710'}, {'name': 'Python', 'bytes': '2280373'}, {'name': 'QML', 'bytes': '593'}, {'name': 'Rebol', 'bytes': '354'}, {'name': 'Scilab', 'bytes': '3012'}, {'name': 'Shell', 'bytes': '11997985'}, {'name': 'Tcl', 'bytes': '1172'}, {'name': 'TeX', 'bytes': '696679'}, {'name': 'Visual Basic', 'bytes': '11578'}, {'name': 'XSLT', 'bytes': '771726'}, {'name': 'Yacc', 'bytes': '140274'}]}
github
0
int scsi_debug_detect(Scsi_Host_Template *); int scsi_debug_command(Scsi_Cmnd *); int scsi_debug_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); int scsi_debug_abort(Scsi_Cmnd *); int scsi_debug_biosparam(Disk *, int, int[]); int scsi_debug_reset(Scsi_Cmnd *); #ifndef NULL #define NULL 0 #endif #define SCSI_DEBUG_MAILBOXES 8 #define SCSI_DEBUG {NULL, NULL, "SCSI DEBUG", scsi_debug_detect, NULL, \ NULL, scsi_debug_command, \ scsi_debug_queuecommand, \ scsi_debug_abort, \ scsi_debug_reset, \ NULL, \ scsi_debug_biosparam, \ SCSI_DEBUG_MAILBOXES, 7, SG_ALL, 1, 0, 1, ENABLE_CLUSTERING} #endif
{'content_hash': '849568fa9cacedba7dea0cc717b0ecad', 'timestamp': '', 'source': 'github', 'line_count': 22, 'max_line_length': 72, 'avg_line_length': 28.90909090909091, 'alnum_prop': 0.6776729559748428, 'repo_name': 'straceX/Ectoplasm', 'id': '25fe199ea05de2937542228c44b382f0140b616d', 'size': '685', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'linux-1.2.0/linux/drivers/scsi/scsi_debug.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Assembly', 'bytes': '496480'}, {'name': 'C', 'bytes': '12406430'}, {'name': 'C++', 'bytes': '53871'}, {'name': 'Makefile', 'bytes': '126601'}, {'name': 'Objective-C', 'bytes': '2880'}, {'name': 'OpenEdge ABL', 'bytes': '4189'}, {'name': 'Perl', 'bytes': '27231'}, {'name': 'Shell', 'bytes': '11773'}]}
github
0
package org.apache.spark.sql.hive.execution import org.apache.spark.sql.{SQLContext, QueryTest} import org.apache.spark.sql.hive.test.TestHive import org.apache.spark.sql.hive.test.TestHive._ import org.apache.spark.sql.test.SQLTestUtils /** * A set of tests that validates support for Hive Explain command. * 验证支持Hive Explain命令的一组测试。 */ class HiveExplainSuite extends QueryTest with SQLTestUtils { override def _sqlContext: SQLContext = TestHive private val sqlContext = _sqlContext //解释命令扩展命令 explain test("explain extended command") { checkExistence(sql(" explain select * from src where key=123 "), true, //物理计划 "== Physical Plan ==") checkExistence(sql(" explain select * from src where key=123 "), false, //解析逻辑计划 "== Parsed Logical Plan ==", //分析逻辑计划 "== Analyzed Logical Plan ==", //优化逻辑计划 "== Optimized Logical Plan ==") println("===explain begin===") sql(" explain extended select * from src where key=123 ").show(false) println("===explain end===") checkExistence(sql(" explain extended select * from src where key=123 "), true, //解析逻辑计划 "== Parsed Logical Plan ==", //分析逻辑计划 "== Analyzed Logical Plan ==", //优化逻辑计划 "== Optimized Logical Plan ==", //优化逻辑计划 "== Physical Plan ==", //代码生成 "Code Generation") } //解释create table命令 test("explain create table command") { checkExistence(sql("explain create table temp__b as select * from src limit 2"), true, //物理计划 "== Physical Plan ==", //插入Hive表 "InsertIntoHiveTable", // "Limit", "src") checkExistence(sql("explain extended create table temp__b as select * from src limit 2"), true, //物理计划 "== Parsed Logical Plan ==", //分析逻辑计划 "== Analyzed Logical Plan ==", //优化逻辑计划 "== Optimized Logical Plan ==", //物理计划 "== Physical Plan ==", //创建表select "CreateTableAsSelect", //插入hive表 "InsertIntoHiveTable", // "Limit", "src") checkExistence(sql( """ | EXPLAIN EXTENDED CREATE TABLE temp__b | ROW FORMAT SERDE "org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe" | WITH SERDEPROPERTIES("serde_p1"="p1","serde_p2"="p2") | STORED AS RCFile | TBLPROPERTIES("tbl_p1"="p11", "tbl_p2"="p22") | AS SELECT * FROM src LIMIT 2 """.stripMargin), true, //解析逻辑计划 "== Parsed Logical Plan ==", //分析逻辑计划 "== Analyzed Logical Plan ==", //优化逻辑计划 "== Optimized Logical Plan ==", //物理计划 "== Physical Plan ==", //创建表select "CreateTableAsSelect", "InsertIntoHiveTable", "Limit", "src") } //CTAS的EXPLAIN输出仅显示分析的计划 CTAS(create table .. as select) test("SPARK-6212: The EXPLAIN output of CTAS only shows the analyzed plan") { withTempTable("jt") { val rdd = sparkContext.parallelize((1 to 10).map(i => s"""{"a":$i, "b":"str$i"}""")) read.json(rdd).registerTempTable("jt") val outputs = sql( s""" |EXPLAIN EXTENDED |CREATE TABLE t1 |AS |SELECT * FROM jt """.stripMargin).collect().map(_.mkString).mkString val shouldContain = "== Parsed Logical Plan ==" :: "== Analyzed Logical Plan ==" :: "Subquery" :: "== Optimized Logical Plan ==" :: "== Physical Plan ==" :: "CreateTableAsSelect" :: "InsertIntoHiveTable" :: "jt" :: Nil for (key <- shouldContain) { assert(outputs.contains(key), s"$key doesn't exist in result") } val physicalIndex = outputs.indexOf("== Physical Plan ==") assert(!outputs.substring(physicalIndex).contains("Subquery"), "Physical Plan should not contain Subquery since it's eliminated by optimizer") } } }
{'content_hash': 'af4743487cafa86e244dba777033410d', 'timestamp': '', 'source': 'github', 'line_count': 121, 'max_line_length': 99, 'avg_line_length': 34.65289256198347, 'alnum_prop': 0.5444788933937514, 'repo_name': 'tophua/spark1.52', 'id': '1948185ea3d4b258cdc7f6791b71cafe6b3b71ad', 'size': '5279', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveExplainSuite.scala', 'mode': '33261', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '26914'}, {'name': 'C', 'bytes': '1493'}, {'name': 'CSS', 'bytes': '15314'}, {'name': 'Dockerfile', 'bytes': '4597'}, {'name': 'HiveQL', 'bytes': '2018996'}, {'name': 'Java', 'bytes': '1763581'}, {'name': 'JavaScript', 'bytes': '68648'}, {'name': 'Makefile', 'bytes': '7771'}, {'name': 'Python', 'bytes': '1552537'}, {'name': 'R', 'bytes': '452786'}, {'name': 'Roff', 'bytes': '23131'}, {'name': 'SQLPL', 'bytes': '3603'}, {'name': 'Scala', 'bytes': '16031983'}, {'name': 'Shell', 'bytes': '147300'}, {'name': 'Thrift', 'bytes': '2016'}, {'name': 'q', 'bytes': '154646'}]}
github
0
package com.itmaoo.oa.support; import org.springframework.context.EmbeddedValueResolverAware; import org.springframework.util.StringValueResolver; public class PropertiesUtils implements EmbeddedValueResolverAware { private StringValueResolver resolver; @Override public void setEmbeddedValueResolver(StringValueResolver resolver) { this.resolver = resolver; } public String getPropertiesValue(String name) { return resolver.resolveStringValue(name); } }
{'content_hash': '2a843b66f8a4185102f09525a565168f', 'timestamp': '', 'source': 'github', 'line_count': 17, 'max_line_length': 69, 'avg_line_length': 27.58823529411765, 'alnum_prop': 0.8315565031982942, 'repo_name': 'ITMAOO/scenic', 'id': '2700342ba90eab70afdaeef8bcade4e451e3efab', 'size': '469', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'scenic-oa/src/main/java/com/itmaoo/oa/support/PropertiesUtils.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '298316'}, {'name': 'FreeMarker', 'bytes': '55765'}, {'name': 'HTML', 'bytes': '534567'}, {'name': 'Java', 'bytes': '1309596'}, {'name': 'JavaScript', 'bytes': '3805075'}, {'name': 'Python', 'bytes': '2512'}]}
github
0
#include "config.h" #include "JSDOMFormData.h" #include "DOMFormData.h" #include "HTMLFormElement.h" #include "JSBlob.h" #include "JSHTMLFormElement.h" #include <runtime/Error.h> using namespace JSC; namespace WebCore { static HTMLFormElement* toHTMLFormElement(JSC::JSValue value) { return value.inherits(&JSHTMLFormElement::s_info) ? static_cast<HTMLFormElement*>(jsCast<JSHTMLFormElement*>(asObject(value))->impl()) : 0; } EncodedJSValue JSC_HOST_CALL JSDOMFormDataConstructor::constructJSDOMFormData(ExecState* exec) { JSDOMFormDataConstructor* jsConstructor = jsCast<JSDOMFormDataConstructor*>(exec->callee()); HTMLFormElement* form = 0; if (exec->argumentCount() > 0) form = toHTMLFormElement(exec->argument(0)); RefPtr<DOMFormData> domFormData = DOMFormData::create(form); return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), domFormData.get()))); } JSValue JSDOMFormData::append(ExecState* exec) { if (exec->argumentCount() >= 2) { String name = exec->argument(0).toString(exec)->value(exec); JSValue value = exec->argument(1); if (value.inherits(&JSBlob::s_info)) { String filename; if (exec->argumentCount() >= 3 && !exec->argument(2).isUndefinedOrNull()) filename = exec->argument(2).toString(exec)->value(exec); impl()->append(name, toBlob(value), filename); } else impl()->append(name, value.toString(exec)->value(exec)); } return jsUndefined(); } } // namespace WebCore
{'content_hash': '65fa100f2b583c4615099c2d21ce87c3', 'timestamp': '', 'source': 'github', 'line_count': 49, 'max_line_length': 143, 'avg_line_length': 31.755102040816325, 'alnum_prop': 0.679305912596401, 'repo_name': 'yoavweiss/RespImg-WebCore', 'id': '4ed4497a1bda40bd4247164c798a02bfa1be1953', 'size': '3118', 'binary': False, 'copies': '10', 'ref': 'refs/heads/master', 'path': 'bindings/js/JSDOMFormDataCustom.cpp', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'Assembly', 'bytes': '1301'}, {'name': 'C', 'bytes': '2369715'}, {'name': 'C++', 'bytes': '39064862'}, {'name': 'JavaScript', 'bytes': '3763760'}, {'name': 'Objective-C', 'bytes': '2038598'}, {'name': 'Perl', 'bytes': '768866'}, {'name': 'Prolog', 'bytes': '519'}, {'name': 'Python', 'bytes': '210630'}, {'name': 'Ruby', 'bytes': '1927'}, {'name': 'Shell', 'bytes': '8214'}]}
github
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_71) on Thu Sep 10 12:29:42 NZST 2015 --> <title>AbstractLoader</title> <meta name="date" content="2015-09-10"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="AbstractLoader"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../weka/core/converters/AbstractFileSaver.html" title="class in weka.core.converters"><span class="strong">Prev Class</span></a></li> <li><a href="../../../weka/core/converters/AbstractSaver.html" title="class in weka.core.converters"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?weka/core/converters/AbstractLoader.html" target="_top">Frames</a></li> <li><a href="AbstractLoader.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">weka.core.converters</div> <h2 title="Class AbstractLoader" class="title">Class AbstractLoader</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>weka.core.converters.AbstractLoader</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.io.Serializable, <a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a>, <a href="../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</a></dd> </dl> <dl> <dt>Direct Known Subclasses:</dt> <dd><a href="../../../weka/core/converters/AbstractFileLoader.html" title="class in weka.core.converters">AbstractFileLoader</a>, <a href="../../../weka/core/converters/DatabaseLoader.html" title="class in weka.core.converters">DatabaseLoader</a>, <a href="../../../weka/core/converters/TextDirectoryLoader.html" title="class in weka.core.converters">TextDirectoryLoader</a></dd> </dl> <hr> <br> <pre>public abstract class <span class="strong">AbstractLoader</span> extends java.lang.Object implements <a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></pre> <div class="block">Abstract class gives default implementation of setSource methods. All other methods must be overridden.</div> <dl><dt><span class="strong">Version:</span></dt> <dd>$Revision: 11006 $</dd> <dt><span class="strong">Author:</span></dt> <dd>Richard Kirkby (rkirkby@cs.waikato.ac.nz)</dd> <dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#weka.core.converters.AbstractLoader">Serialized Form</a></dd></dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== NESTED CLASS SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="nested_class_summary"> <!-- --> </a> <h3>Nested Class Summary</h3> <ul class="blockList"> <li class="blockList"><a name="nested_classes_inherited_from_class_weka.core.converters.Loader"> <!-- --> </a> <h3>Nested classes/interfaces inherited from interface&nbsp;weka.core.converters.<a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></h3> <code><a href="../../../weka/core/converters/Loader.StructureNotReadyException.html" title="class in weka.core.converters">Loader.StructureNotReadyException</a></code></li> </ul> </li> </ul> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field_summary"> <!-- --> </a> <h3>Field Summary</h3> <ul class="blockList"> <li class="blockList"><a name="fields_inherited_from_class_weka.core.converters.Loader"> <!-- --> </a> <h3>Fields inherited from interface&nbsp;weka.core.converters.<a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></h3> <code><a href="../../../weka/core/converters/Loader.html#BATCH">BATCH</a>, <a href="../../../weka/core/converters/Loader.html#INCREMENTAL">INCREMENTAL</a>, <a href="../../../weka/core/converters/Loader.html#NONE">NONE</a></code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#AbstractLoader()">AbstractLoader</a></strong>()</code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract <a href="../../../weka/core/Instances.html" title="class in weka.core">Instances</a></code></td> <td class="colLast"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#getDataSet()">getDataSet</a></strong>()</code> <div class="block">Return the full data set.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract <a href="../../../weka/core/Instance.html" title="interface in weka.core">Instance</a></code></td> <td class="colLast"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#getNextInstance(weka.core.Instances)">getNextInstance</a></strong>(<a href="../../../weka/core/Instances.html" title="class in weka.core">Instances</a>&nbsp;structure)</code> <div class="block">Read the data set incrementally---get the next instance in the data set or returns null if there are no more instances to get.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract <a href="../../../weka/core/Instances.html" title="class in weka.core">Instances</a></code></td> <td class="colLast"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#getStructure()">getStructure</a></strong>()</code> <div class="block">Determines and returns (if possible) the structure (internally the header) of the data set as an empty set of instances.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#reset()">reset</a></strong>()</code> <div class="block">Default implementation sets retrieval mode to NONE</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#setRetrieval(int)">setRetrieval</a></strong>(int&nbsp;mode)</code> <div class="block">Sets the retrieval mode.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#setSource(java.io.File)">setSource</a></strong>(java.io.File&nbsp;file)</code> <div class="block">Default implementation throws an IOException.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../weka/core/converters/AbstractLoader.html#setSource(java.io.InputStream)">setSource</a></strong>(java.io.InputStream&nbsp;input)</code> <div class="block">Default implementation throws an IOException.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_weka.core.RevisionHandler"> <!-- --> </a> <h3>Methods inherited from interface&nbsp;weka.core.<a href="../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</a></h3> <code><a href="../../../weka/core/RevisionHandler.html#getRevision()">getRevision</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="AbstractLoader()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>AbstractLoader</h4> <pre>public&nbsp;AbstractLoader()</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="setRetrieval(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setRetrieval</h4> <pre>public&nbsp;void&nbsp;setRetrieval(int&nbsp;mode)</pre> <div class="block">Sets the retrieval mode.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../weka/core/converters/Loader.html#setRetrieval(int)">setRetrieval</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></code></dd> <dt><span class="strong">Parameters:</span></dt><dd><code>mode</code> - the retrieval mode</dd></dl> </li> </ul> <a name="setSource(java.io.File)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSource</h4> <pre>public&nbsp;void&nbsp;setSource(java.io.File&nbsp;file) throws java.io.IOException</pre> <div class="block">Default implementation throws an IOException.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../weka/core/converters/Loader.html#setSource(java.io.File)">setSource</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></code></dd> <dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - the File</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - always</dd></dl> </li> </ul> <a name="reset()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>reset</h4> <pre>public&nbsp;void&nbsp;reset() throws java.lang.Exception</pre> <div class="block">Default implementation sets retrieval mode to NONE</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../weka/core/converters/Loader.html#reset()">reset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code>never.</code></dd> <dd><code>java.lang.Exception</code> - if Loader can't be reset for some reason.</dd></dl> </li> </ul> <a name="setSource(java.io.InputStream)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSource</h4> <pre>public&nbsp;void&nbsp;setSource(java.io.InputStream&nbsp;input) throws java.io.IOException</pre> <div class="block">Default implementation throws an IOException.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../weka/core/converters/Loader.html#setSource(java.io.InputStream)">setSource</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></code></dd> <dt><span class="strong">Parameters:</span></dt><dd><code>input</code> - the input stream</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - always</dd></dl> </li> </ul> <a name="getStructure()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getStructure</h4> <pre>public abstract&nbsp;<a href="../../../weka/core/Instances.html" title="class in weka.core">Instances</a>&nbsp;getStructure() throws java.io.IOException</pre> <div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../weka/core/converters/Loader.html#getStructure()">Loader</a></code></strong></div> <div class="block">Determines and returns (if possible) the structure (internally the header) of the data set as an empty set of instances.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../weka/core/converters/Loader.html#getStructure()">getStructure</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>the structure of the data set as an empty set of Instances</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if there is no source or parsing fails <pre> <jml> public_normal_behavior requires: model_sourceSupplied == true && model_structureDetermined == false && (* successful parse *); modifiable: model_structureDetermined; ensures: \result != null && \result.numInstances() == 0 && model_structureDetermined == true; also public_exceptional_behavior requires: model_sourceSupplied == false || (* unsuccessful parse *); signals: (IOException); </jml> </pre></dd></dl> </li> </ul> <a name="getDataSet()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getDataSet</h4> <pre>public abstract&nbsp;<a href="../../../weka/core/Instances.html" title="class in weka.core">Instances</a>&nbsp;getDataSet() throws java.io.IOException</pre> <div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../weka/core/converters/Loader.html#getDataSet()">Loader</a></code></strong></div> <div class="block">Return the full data set. If the structure hasn't yet been determined by a call to getStructure then the method should do so before processing the rest of the data set.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../weka/core/converters/Loader.html#getDataSet()">getDataSet</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>the full data set as an Instances object</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if there is an error during parsing or if getNextInstance has been called on this source (either incremental or batch loading can be used, not both). <pre> <jml> public_normal_behavior requires: model_sourceSupplied == true && (* successful parse *); modifiable: model_structureDetermined; ensures: \result != null && \result.numInstances() >= 0 && model_structureDetermined == true; also public_exceptional_behavior requires: model_sourceSupplied == false || (* unsuccessful parse *); signals: (IOException); </jml> </pre></dd></dl> </li> </ul> <a name="getNextInstance(weka.core.Instances)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getNextInstance</h4> <pre>public abstract&nbsp;<a href="../../../weka/core/Instance.html" title="interface in weka.core">Instance</a>&nbsp;getNextInstance(<a href="../../../weka/core/Instances.html" title="class in weka.core">Instances</a>&nbsp;structure) throws java.io.IOException</pre> <div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../weka/core/converters/Loader.html#getNextInstance(weka.core.Instances)">Loader</a></code></strong></div> <div class="block">Read the data set incrementally---get the next instance in the data set or returns null if there are no more instances to get. If the structure hasn't yet been determined by a call to getStructure then method should do so before returning the next instance in the data set. If it is not possible to read the data set incrementally (ie. in cases where the data set structure cannot be fully established before all instances have been seen) then an exception should be thrown.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../weka/core/converters/Loader.html#getNextInstance(weka.core.Instances)">getNextInstance</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</a></code></dd> <dt><span class="strong">Parameters:</span></dt><dd><code>structure</code> - the dataset header information, will get updated in case of string or relational attributes</dd> <dt><span class="strong">Returns:</span></dt><dd>the next instance in the data set as an Instance object or null if there are no more instances to be read</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if there is an error during parsing or if getDataSet has been called on this source (either incremental or batch loading can be used, not both).</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../weka/core/converters/AbstractFileSaver.html" title="class in weka.core.converters"><span class="strong">Prev Class</span></a></li> <li><a href="../../../weka/core/converters/AbstractSaver.html" title="class in weka.core.converters"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?weka/core/converters/AbstractLoader.html" target="_top">Frames</a></li> <li><a href="AbstractLoader.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
{'content_hash': 'b85e9ce4e5c272e47f211ecd54b018a4', 'timestamp': '', 'source': 'github', 'line_count': 509, 'max_line_length': 379, 'avg_line_length': 43.082514734774065, 'alnum_prop': 0.6600848191892015, 'repo_name': 'rpgoncalves/sw-comprehension', 'id': '73aecb85c471220f534add580fbb0bef5cb08285', 'size': '21929', 'binary': False, 'copies': '5', 'ref': 'refs/heads/master', 'path': 'documents/assignment1/weka-3-7-13/doc/weka/core/converters/AbstractLoader.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '11649'}, {'name': 'HTML', 'bytes': '46976575'}, {'name': 'Java', 'bytes': '18007490'}, {'name': 'Lex', 'bytes': '7335'}]}
github
0
import { AfterContentInit, ChangeDetectionStrategy, Component, Injector, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { InputConverter } from '../../../../../decorators/input-converter'; import { IIntegerPipeArgument, OIntegerPipe } from '../../../../../pipes/o-integer.pipe'; import { DEFAULT_INPUTS_O_LISTPICKER_RENDERER, OListPickerCustomRenderer } from '../o-list-picker-renderer.class'; export const DEFAULT_INPUTS_O_LISTPICKER_RENDERER_INTEGER = [ ...DEFAULT_INPUTS_O_LISTPICKER_RENDERER, // grouping [no|yes]: grouping thousands. Default: yes. 'grouping', // thousand-separator [string]: thousands separator when grouping. Default: comma (,). 'thousandSeparator: thousand-separator' ]; @Component({ selector: 'o-list-picker-renderer-integer', templateUrl: './o-list-picker-renderer-integer.component.html', changeDetection: ChangeDetectionStrategy.OnPush, inputs: DEFAULT_INPUTS_O_LISTPICKER_RENDERER_INTEGER }) export class OListPickerRendererIntegerComponent extends OListPickerCustomRenderer implements AfterContentInit, OnInit { @InputConverter() protected grouping: boolean = true; protected thousandSeparator: string = ','; protected componentPipe: OIntegerPipe; protected pipeArguments: IIntegerPipeArgument; @ViewChild('templateref', { read: TemplateRef, static: true }) public templateref: TemplateRef<any>; constructor(protected injector: Injector) { super(injector); this.setComponentPipe(); } setComponentPipe() { this.componentPipe = new OIntegerPipe(this.injector); } initialize() { super.initialize(); this.pipeArguments = { grouping: this.grouping, thousandSeparator: this.thousandSeparator }; } }
{'content_hash': '5610d998dcfb756c653930c8616d8330', 'timestamp': '', 'source': 'github', 'line_count': 56, 'max_line_length': 120, 'avg_line_length': 31.053571428571427, 'alnum_prop': 0.7343300747556066, 'repo_name': 'OntimizeWeb/ontimize-web-ng2', 'id': 'fcf648695977d893892b2bffe187ccba3b725e01', 'size': '1739', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'projects/ontimize-web-ngx/src/lib/components/input/listpicker/listpicker-renderer/integer/o-list-picker-renderer-integer.component.ts', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '52457'}, {'name': 'HTML', 'bytes': '43931'}, {'name': 'JavaScript', 'bytes': '20344'}, {'name': 'TypeScript', 'bytes': '383178'}]}
github
0
using content::BrowserThread; namespace { const char kDevToolsAdbBridgeThreadName[] = "Chrome_DevToolsADBThread"; const int kBufferSize = 16 * 1024; static const char kModelOffline[] = "Offline"; static const char kHttpGetRequest[] = "GET %s HTTP/1.1\r\n\r\n"; static const char kWebSocketUpgradeRequest[] = "GET %s HTTP/1.1\r\n" "Upgrade: WebSocket\r\n" "Connection: Upgrade\r\n" "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\n" "Sec-WebSocket-Version: 13\r\n" "%s" "\r\n"; static void PostDeviceInfoCallback( scoped_refptr<base::SingleThreadTaskRunner> response_task_runner, const AndroidDeviceManager::DeviceInfoCallback& callback, const AndroidDeviceManager::DeviceInfo& device_info) { response_task_runner->PostTask(FROM_HERE, base::Bind(callback, device_info)); } static void PostCommandCallback( scoped_refptr<base::SingleThreadTaskRunner> response_task_runner, const AndroidDeviceManager::CommandCallback& callback, int result, const std::string& response) { response_task_runner->PostTask(FROM_HERE, base::Bind(callback, result, response)); } static void PostHttpUpgradeCallback( scoped_refptr<base::SingleThreadTaskRunner> response_task_runner, const AndroidDeviceManager::HttpUpgradeCallback& callback, int result, const std::string& extensions, const std::string& body_head, std::unique_ptr<net::StreamSocket> socket) { response_task_runner->PostTask( FROM_HERE, base::Bind(callback, result, extensions, body_head, base::Passed(&socket))); } class HttpRequest { public: typedef AndroidDeviceManager::CommandCallback CommandCallback; typedef AndroidDeviceManager::HttpUpgradeCallback HttpUpgradeCallback; static void CommandRequest(const std::string& request, const CommandCallback& callback, int result, std::unique_ptr<net::StreamSocket> socket) { if (result != net::OK) { callback.Run(result, std::string()); return; } new HttpRequest(std::move(socket), request, callback); } static void HttpUpgradeRequest(const std::string& request, const HttpUpgradeCallback& callback, int result, std::unique_ptr<net::StreamSocket> socket) { if (result != net::OK) { callback.Run(result, std::string(), std::string(), base::WrapUnique<net::StreamSocket>(nullptr)); return; } new HttpRequest(std::move(socket), request, callback); } private: HttpRequest(std::unique_ptr<net::StreamSocket> socket, const std::string& request, const CommandCallback& callback) : socket_(std::move(socket)), command_callback_(callback), expected_size_(-1), header_size_(0) { SendRequest(request); } HttpRequest(std::unique_ptr<net::StreamSocket> socket, const std::string& request, const HttpUpgradeCallback& callback) : socket_(std::move(socket)), http_upgrade_callback_(callback), expected_size_(-1), header_size_(0) { SendRequest(request); } ~HttpRequest() { } void DoSendRequest(int result) { while (result != net::ERR_IO_PENDING) { if (!CheckNetResultOrDie(result)) return; if (result > 0) request_->DidConsume(result); if (request_->BytesRemaining() == 0) { request_ = nullptr; ReadResponse(net::OK); return; } result = socket_->Write( request_.get(), request_->BytesRemaining(), base::Bind(&HttpRequest::DoSendRequest, base::Unretained(this))); } } void SendRequest(const std::string& request) { scoped_refptr<net::IOBuffer> base_buffer = new net::IOBuffer(request.size()); memcpy(base_buffer->data(), request.data(), request.size()); request_ = new net::DrainableIOBuffer(base_buffer.get(), request.size()); DoSendRequest(net::OK); } void ReadResponse(int result) { if (!CheckNetResultOrDie(result)) return; response_buffer_ = new net::IOBuffer(kBufferSize); result = socket_->Read( response_buffer_.get(), kBufferSize, base::Bind(&HttpRequest::OnResponseData, base::Unretained(this))); if (result != net::ERR_IO_PENDING) OnResponseData(result); } void OnResponseData(int result) { if (!CheckNetResultOrDie(result)) return; if (result == 0) { CheckNetResultOrDie(net::ERR_CONNECTION_CLOSED); return; } response_.append(response_buffer_->data(), result); if (expected_size_ < 0) { int expected_length = 0; // TODO(kaznacheev): Use net::HttpResponseHeader to parse the header. std::string content_length = ExtractHeader("Content-Length:"); if (!content_length.empty()) { if (!base::StringToInt(content_length, &expected_length)) { CheckNetResultOrDie(net::ERR_FAILED); return; } } header_size_ = response_.find("\r\n\r\n"); if (header_size_ != std::string::npos) { header_size_ += 4; expected_size_ = header_size_ + expected_length; } } // WebSocket handshake doesn't contain the Content-Length. For this case, // |expected_size_| is set to the size of the header (handshake). // Some WebSocket frames can be already received into |response_|. if (static_cast<int>(response_.length()) >= expected_size_) { const std::string& body = response_.substr(header_size_); if (!command_callback_.is_null()) { command_callback_.Run(net::OK, body); } else { // Pass the WebSocket frames (in |body|), too. http_upgrade_callback_.Run(net::OK, ExtractHeader("Sec-WebSocket-Extensions:"), body, std::move(socket_)); } delete this; return; } result = socket_->Read( response_buffer_.get(), kBufferSize, base::Bind(&HttpRequest::OnResponseData, base::Unretained(this))); if (result != net::ERR_IO_PENDING) OnResponseData(result); } std::string ExtractHeader(const std::string& header) { size_t start_pos = response_.find(header); if (start_pos == std::string::npos) return std::string(); size_t endline_pos = response_.find("\n", start_pos); if (endline_pos == std::string::npos) return std::string(); std::string value = response_.substr( start_pos + header.length(), endline_pos - start_pos - header.length()); base::TrimWhitespaceASCII(value, base::TRIM_ALL, &value); return value; } bool CheckNetResultOrDie(int result) { if (result >= 0) return true; if (!command_callback_.is_null()) { command_callback_.Run(result, std::string()); } else { http_upgrade_callback_.Run(result, std::string(), std::string(), base::WrapUnique<net::StreamSocket>(nullptr)); } delete this; return false; } std::unique_ptr<net::StreamSocket> socket_; scoped_refptr<net::DrainableIOBuffer> request_; std::string response_; CommandCallback command_callback_; HttpUpgradeCallback http_upgrade_callback_; scoped_refptr<net::IOBuffer> response_buffer_; // Initially -1. Once the end of the header is seen: // - If the Content-Length header is included, this variable is set to the // sum of the header size (including the last two CRLFs) and the value of // the header. // - Otherwise, this variable is set to the size of the header (including the // last two CRLFs). int expected_size_; // Set to the size of the header part in |response_|. size_t header_size_; }; class DevicesRequest : public base::RefCountedThreadSafe<DevicesRequest> { public: typedef AndroidDeviceManager::DeviceInfo DeviceInfo; typedef AndroidDeviceManager::DeviceProvider DeviceProvider; typedef AndroidDeviceManager::DeviceProviders DeviceProviders; typedef AndroidDeviceManager::DeviceDescriptors DeviceDescriptors; typedef base::Callback<void(std::unique_ptr<DeviceDescriptors>)> DescriptorsCallback; static void Start( scoped_refptr<base::SingleThreadTaskRunner> device_task_runner, const DeviceProviders& providers, const DescriptorsCallback& callback) { // Don't keep counted reference on calling thread; DevicesRequest* request = new DevicesRequest(callback); // Avoid destruction while sending requests request->AddRef(); for (DeviceProviders::const_iterator it = providers.begin(); it != providers.end(); ++it) { device_task_runner->PostTask( FROM_HERE, base::Bind(&DeviceProvider::QueryDevices, *it, base::Bind(&DevicesRequest::ProcessSerials, request, *it))); } device_task_runner->ReleaseSoon(FROM_HERE, request); } private: explicit DevicesRequest(const DescriptorsCallback& callback) : response_task_runner_(base::ThreadTaskRunnerHandle::Get()), callback_(callback), descriptors_(new DeviceDescriptors()) {} friend class base::RefCountedThreadSafe<DevicesRequest>; ~DevicesRequest() { response_task_runner_->PostTask( FROM_HERE, base::Bind(callback_, base::Passed(&descriptors_))); } typedef std::vector<std::string> Serials; void ProcessSerials(scoped_refptr<DeviceProvider> provider, const Serials& serials) { for (Serials::const_iterator it = serials.begin(); it != serials.end(); ++it) { descriptors_->resize(descriptors_->size() + 1); descriptors_->back().provider = provider; descriptors_->back().serial = *it; } } scoped_refptr<base::SingleThreadTaskRunner> response_task_runner_; DescriptorsCallback callback_; std::unique_ptr<DeviceDescriptors> descriptors_; }; void ReleaseDeviceAndProvider( AndroidDeviceManager::DeviceProvider* provider, const std::string& serial) { provider->ReleaseDevice(serial); provider->Release(); } } // namespace AndroidDeviceManager::BrowserInfo::BrowserInfo() : type(kTypeOther) { } AndroidDeviceManager::BrowserInfo::BrowserInfo(const BrowserInfo& other) = default; AndroidDeviceManager::DeviceInfo::DeviceInfo() : model(kModelOffline), connected(false) { } AndroidDeviceManager::DeviceInfo::DeviceInfo(const DeviceInfo& other) = default; AndroidDeviceManager::DeviceInfo::~DeviceInfo() { } AndroidDeviceManager::DeviceDescriptor::DeviceDescriptor() { } AndroidDeviceManager::DeviceDescriptor::DeviceDescriptor( const DeviceDescriptor& other) = default; AndroidDeviceManager::DeviceDescriptor::~DeviceDescriptor() { } void AndroidDeviceManager::DeviceProvider::SendJsonRequest( const std::string& serial, const std::string& socket_name, const std::string& request, const CommandCallback& callback) { OpenSocket(serial, socket_name, base::Bind(&HttpRequest::CommandRequest, base::StringPrintf(kHttpGetRequest, request.c_str()), callback)); } void AndroidDeviceManager::DeviceProvider::HttpUpgrade( const std::string& serial, const std::string& socket_name, const std::string& path, const std::string& extensions, const HttpUpgradeCallback& callback) { std::string extensions_with_new_line = extensions.empty() ? std::string() : extensions + "\r\n"; OpenSocket( serial, socket_name, base::Bind(&HttpRequest::HttpUpgradeRequest, base::StringPrintf(kWebSocketUpgradeRequest, path.c_str(), extensions_with_new_line.c_str()), callback)); } void AndroidDeviceManager::DeviceProvider::ReleaseDevice( const std::string& serial) { } AndroidDeviceManager::DeviceProvider::DeviceProvider() { } AndroidDeviceManager::DeviceProvider::~DeviceProvider() { } void AndroidDeviceManager::Device::QueryDeviceInfo( const DeviceInfoCallback& callback) { task_runner_->PostTask( FROM_HERE, base::Bind(&DeviceProvider::QueryDeviceInfo, provider_, serial_, base::Bind(&PostDeviceInfoCallback, base::ThreadTaskRunnerHandle::Get(), callback))); } void AndroidDeviceManager::Device::OpenSocket(const std::string& socket_name, const SocketCallback& callback) { task_runner_->PostTask( FROM_HERE, base::Bind(&DeviceProvider::OpenSocket, provider_, serial_, socket_name, callback)); } void AndroidDeviceManager::Device::SendJsonRequest( const std::string& socket_name, const std::string& request, const CommandCallback& callback) { task_runner_->PostTask( FROM_HERE, base::Bind(&DeviceProvider::SendJsonRequest, provider_, serial_, socket_name, request, base::Bind(&PostCommandCallback, base::ThreadTaskRunnerHandle::Get(), callback))); } void AndroidDeviceManager::Device::HttpUpgrade( const std::string& socket_name, const std::string& path, const std::string& extensions, const HttpUpgradeCallback& callback) { task_runner_->PostTask( FROM_HERE, base::Bind(&DeviceProvider::HttpUpgrade, provider_, serial_, socket_name, path, extensions, base::Bind(&PostHttpUpgradeCallback, base::ThreadTaskRunnerHandle::Get(), callback))); } AndroidDeviceManager::Device::Device( scoped_refptr<base::SingleThreadTaskRunner> device_task_runner, scoped_refptr<DeviceProvider> provider, const std::string& serial) : task_runner_(device_task_runner), provider_(provider), serial_(serial), weak_factory_(this) { } AndroidDeviceManager::Device::~Device() { std::set<AndroidWebSocket*> sockets_copy(sockets_); for (AndroidWebSocket* socket : sockets_copy) socket->OnSocketClosed(); provider_->AddRef(); DeviceProvider* raw_ptr = provider_.get(); provider_ = NULL; task_runner_->PostTask(FROM_HERE, base::Bind(&ReleaseDeviceAndProvider, base::Unretained(raw_ptr), serial_)); } AndroidDeviceManager::HandlerThread* AndroidDeviceManager::HandlerThread::instance_ = NULL; // static scoped_refptr<AndroidDeviceManager::HandlerThread> AndroidDeviceManager::HandlerThread::GetInstance() { DCHECK_CURRENTLY_ON(BrowserThread::UI); if (!instance_) new HandlerThread(); return instance_; } AndroidDeviceManager::HandlerThread::HandlerThread() { DCHECK_CURRENTLY_ON(BrowserThread::UI); instance_ = this; thread_ = new base::Thread(kDevToolsAdbBridgeThreadName); base::Thread::Options options; options.message_loop_type = base::MessageLoop::TYPE_IO; if (!thread_->StartWithOptions(options)) { delete thread_; thread_ = NULL; } } scoped_refptr<base::SingleThreadTaskRunner> AndroidDeviceManager::HandlerThread::message_loop() { return thread_ ? thread_->task_runner() : NULL; } // static void AndroidDeviceManager::HandlerThread::StopThread( base::Thread* thread) { thread->Stop(); } AndroidDeviceManager::HandlerThread::~HandlerThread() { DCHECK_CURRENTLY_ON(BrowserThread::UI); instance_ = NULL; if (!thread_) return; // Shut down thread on FILE thread to join into IO. content::BrowserThread::PostTask( content::BrowserThread::FILE, FROM_HERE, base::Bind(&HandlerThread::StopThread, thread_)); } // static std::unique_ptr<AndroidDeviceManager> AndroidDeviceManager::Create() { return base::WrapUnique(new AndroidDeviceManager()); } void AndroidDeviceManager::SetDeviceProviders( const DeviceProviders& providers) { for (DeviceProviders::iterator it = providers_.begin(); it != providers_.end(); ++it) { (*it)->AddRef(); DeviceProvider* raw_ptr = it->get(); *it = NULL; handler_thread_->message_loop()->ReleaseSoon(FROM_HERE, raw_ptr); } providers_ = providers; } void AndroidDeviceManager::QueryDevices(const DevicesCallback& callback) { DevicesRequest::Start(handler_thread_->message_loop(), providers_, base::Bind(&AndroidDeviceManager::UpdateDevices, weak_factory_.GetWeakPtr(), callback)); } AndroidDeviceManager::AndroidDeviceManager() : handler_thread_(HandlerThread::GetInstance()), weak_factory_(this) { } AndroidDeviceManager::~AndroidDeviceManager() { SetDeviceProviders(DeviceProviders()); } void AndroidDeviceManager::UpdateDevices( const DevicesCallback& callback, std::unique_ptr<DeviceDescriptors> descriptors) { Devices response; DeviceWeakMap new_devices; for (DeviceDescriptors::const_iterator it = descriptors->begin(); it != descriptors->end(); ++it) { DeviceWeakMap::iterator found = devices_.find(it->serial); scoped_refptr<Device> device; if (found == devices_.end() || !found->second || found->second->provider_.get() != it->provider.get()) { device = new Device(handler_thread_->message_loop(), it->provider, it->serial); } else { device = found->second.get(); } response.push_back(device); new_devices[it->serial] = device->weak_factory_.GetWeakPtr(); } devices_.swap(new_devices); callback.Run(response); }
{'content_hash': 'a4354fbc1fcc4caaadfe487f76105168', 'timestamp': '', 'source': 'github', 'line_count': 538, 'max_line_length': 80, 'avg_line_length': 32.77695167286245, 'alnum_prop': 0.6495973687195191, 'repo_name': 'heke123/chromium-crosswalk', 'id': '8a1130d2508ed3efc900591e5cf4e3467536fafa', 'size': '18277', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'chrome/browser/devtools/device/android_device_manager.cc', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}
github
0
package cherry.gallery.web.basic.ex20; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Getter @Setter @EqualsAndHashCode(callSuper = true) @ToString(callSuper = true) public class BasicEx20Form extends BasicEx20FormBase { private static final long serialVersionUID = 1L; }
{'content_hash': '3ac81ecfb23c9586c28166be72b0be6c', 'timestamp': '', 'source': 'github', 'line_count': 18, 'max_line_length': 54, 'avg_line_length': 19.555555555555557, 'alnum_prop': 0.7613636363636364, 'repo_name': 'agwlvssainokuni/springapp2', 'id': '25dab5fdd8bf418120cd8577627b1f76e550510d', 'size': '964', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'galleryapp/gallery-web/src/main/java/cherry/gallery/web/basic/ex20/BasicEx20Form.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '1200'}, {'name': 'CSS', 'bytes': '1652'}, {'name': 'FreeMarker', 'bytes': '17499'}, {'name': 'Java', 'bytes': '3266437'}, {'name': 'JavaScript', 'bytes': '143752'}, {'name': 'Shell', 'bytes': '31985'}]}
github
0
using LinqToDB; using LinqToDB.SqlQuery; using NUnit.Framework; namespace Tests.AST { [TestFixture] public class SqlDataTypeTests : TestBase { [Test] public void TestSystemType() { Assert.AreEqual(typeof(bool), SqlDataType.GetDataType(DataType.Boolean).SystemType); } } }
{'content_hash': 'd8e2a51de6399c51dcd61017751328b7', 'timestamp': '', 'source': 'github', 'line_count': 17, 'max_line_length': 87, 'avg_line_length': 17.058823529411764, 'alnum_prop': 0.7413793103448276, 'repo_name': 'linq2db/linq2db', 'id': '1898874cbffd280e5318b28f00056847ab628c05', 'size': '292', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'Tests/Linq/AST/SqlDataTypeTests.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '29203'}, {'name': 'C#', 'bytes': '18569855'}, {'name': 'F#', 'bytes': '15865'}, {'name': 'PLSQL', 'bytes': '29278'}, {'name': 'PLpgSQL', 'bytes': '15809'}, {'name': 'PowerShell', 'bytes': '5130'}, {'name': 'SQLPL', 'bytes': '10530'}, {'name': 'Shell', 'bytes': '29373'}, {'name': 'Smalltalk', 'bytes': '11'}, {'name': 'TSQL', 'bytes': '104099'}, {'name': 'Visual Basic .NET', 'bytes': '3871'}]}
github
0
<?xml version="1.0" encoding="utf-8"?> <Commands xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" EnableSmartFormatting="true"> <TextEditorCommand CommandNumber="1" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>LoadScriptFromFile</MethodName> <Arguments> <anyType xsi:type="xsd:string">C:\integration\ds_source\autodeskresearch\trunk\DesignScript\Editor\DesignScriptEditor\DesignScriptEditorUi\IDETestDSFiles\test.5161.Defect.IDE-705.ds</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="2" IntervalTime="204"> <Modifiers>0</Modifiers> <MethodName>ChangeScript</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="3" IntervalTime="37"> <Modifiers>0</Modifiers> <MethodName>ChangeScript</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="4" IntervalTime="16"> <Modifiers>0</Modifiers> <MethodName>SetPageSize</MethodName> <Arguments> <anyType xsi:type="xsd:int">28</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="5" IntervalTime="42"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:nil="true" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">8</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="6" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">14</anyType> <anyType xsi:type="xsd:int">4</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="7" IntervalTime="103"> <Modifiers>2</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:type="xsd:string" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">16</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="8" IntervalTime="41"> <Modifiers>2</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:type="xsd:string" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">16</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="9" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:type="xsd:string" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">16</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="10" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:type="xsd:string" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">16</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="11" IntervalTime="31"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:type="xsd:string">a</anyType> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">16</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="12" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetCursorPosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> <Asserts> <CommandAssert AssertNumber="1"> <PropertyName>SearchTerm</PropertyName> <PropertyValue>a</PropertyValue> </CommandAssert> <CommandAssert AssertNumber="2"> <PropertyName>MatchCount</PropertyName> <PropertyValue>1</PropertyValue> </CommandAssert> <CommandAssert AssertNumber="3"> <PropertyName>SearchOption</PropertyName> <PropertyValue>16</PropertyValue> </CommandAssert> </Asserts> </TextEditorCommand> <TextEditorCommand CommandNumber="13" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">1</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="14" IntervalTime="2"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:nil="true" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">8</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="15" IntervalTime="54"> <Modifiers>8</Modifiers> <MethodName>SetMouseDownPosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">1</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="16" IntervalTime="220"> <Modifiers>8</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="17" IntervalTime="8"> <Modifiers>0</Modifiers> <MethodName>SetMouseUpPosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="18" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">3</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> <Asserts> <CommandAssert AssertNumber="7"> <PropertyName>SelectionText</PropertyName> <PropertyValue>a</PropertyValue> </CommandAssert> <CommandAssert AssertNumber="8"> <PropertyName>SelectionStart</PropertyName> <PropertyValue>{X=0,Y=0}</PropertyValue> </CommandAssert> <CommandAssert AssertNumber="9"> <PropertyName>SelectionEnd</PropertyName> <PropertyValue>{X=1,Y=0}</PropertyValue> </CommandAssert> </Asserts> </TextEditorCommand> <TextEditorCommand CommandNumber="19" IntervalTime="0"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:type="xsd:string">a</anyType> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">16</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="20" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetCursorPosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="21" IntervalTime="0"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:type="xsd:string" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">16</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="22" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:nil="true" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">8</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="23" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">13</anyType> <anyType xsi:type="xsd:int">4</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="24" IntervalTime="0"> <Modifiers>0</Modifiers> <MethodName>FindReplace</MethodName> <Arguments> <anyType xsi:nil="true" /> <anyType xsi:nil="true" /> <anyType xsi:type="xsd:int">8</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="25" IntervalTime="125"> <Modifiers>8</Modifiers> <MethodName>SetMouseDownPosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">13</anyType> <anyType xsi:type="xsd:int">4</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="26" IntervalTime="220"> <Modifiers>8</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> <anyType xsi:type="xsd:int">1</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="27" IntervalTime="179"> <Modifiers>0</Modifiers> <MethodName>SetMouseUpPosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> <anyType xsi:type="xsd:int">1</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="28" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">5</anyType> <anyType xsi:type="xsd:int">3</anyType> </Arguments> <Asserts> <CommandAssert AssertNumber="10"> <PropertyName>SelectionText</PropertyName> <PropertyValue>Find Text find text Find text</PropertyValue> </CommandAssert> <CommandAssert AssertNumber="11"> <PropertyName>SelectionStart</PropertyName> <PropertyValue>{X=0,Y=1}</PropertyValue> </CommandAssert> <CommandAssert AssertNumber="12"> <PropertyName>SelectionEnd</PropertyName> <PropertyValue>{X=13,Y=4}</PropertyValue> </CommandAssert> </Asserts> </TextEditorCommand> <TextEditorCommand CommandNumber="29" IntervalTime="220"> <Modifiers>0</Modifiers> <MethodName>SetMouseMovePosition</MethodName> <Arguments> <anyType xsi:type="xsd:int">8</anyType> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="30" IntervalTime="9"> <Modifiers>0</Modifiers> <MethodName>ChangeScript</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> <TextEditorCommand CommandNumber="31" IntervalTime="0"> <Modifiers>0</Modifiers> <MethodName>CloseScript</MethodName> <Arguments> <anyType xsi:type="xsd:int">0</anyType> </Arguments> </TextEditorCommand> </Commands>
{'content_hash': '0cd05d4c9f638e87e170d22c10b2cbd3', 'timestamp': '', 'source': 'github', 'line_count': 303, 'max_line_length': 195, 'avg_line_length': 33.993399339933994, 'alnum_prop': 0.6959223300970874, 'repo_name': 'DynamoDS/designscript-archive', 'id': 'c3ddaef6b9a80fe3d8de1180d95602d6279ab6f4', 'size': '10300', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'UIs/Editor/DesignScriptEditor/DesignScriptEditorUi/IDETests/test.5161.Defect.IDE-705.xml', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '2452899'}, {'name': 'C#', 'bytes': '17936156'}, {'name': 'C++', 'bytes': '116035'}, {'name': 'CSS', 'bytes': '3042'}, {'name': 'Perl', 'bytes': '35814'}, {'name': 'Shell', 'bytes': '25984'}]}
github
0
/** * Configuration for a Jersey-based management context. */ package org.springframework.boot.actuate.autoconfigure.web.jersey;
{'content_hash': 'c2b770d1df5bab007e38cc9c48d1a337', 'timestamp': '', 'source': 'github', 'line_count': 6, 'max_line_length': 66, 'avg_line_length': 22.166666666666668, 'alnum_prop': 0.7744360902255639, 'repo_name': 'kdvolder/spring-boot', 'id': 'a03114a7be48f89b28811488fb2c53d37057004e', 'size': '754', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/jersey/package-info.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '1948'}, {'name': 'CSS', 'bytes': '448'}, {'name': 'Dockerfile', 'bytes': '2036'}, {'name': 'FreeMarker', 'bytes': '3631'}, {'name': 'Groovy', 'bytes': '58992'}, {'name': 'HTML', 'bytes': '70279'}, {'name': 'Java', 'bytes': '15205862'}, {'name': 'JavaScript', 'bytes': '37789'}, {'name': 'Kotlin', 'bytes': '46556'}, {'name': 'Ruby', 'bytes': '4016'}, {'name': 'Shell', 'bytes': '38021'}, {'name': 'Smarty', 'bytes': '2879'}, {'name': 'XSLT', 'bytes': '3545'}]}
github
0
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
11