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
package org.apache.jackrabbit.test.api; import org.apache.jackrabbit.test.AbstractJCRTest; import org.apache.jackrabbit.test.NotExecutableException; import org.apache.jackrabbit.test.api.nodetype.NodeTypeUtil; import javax.jcr.PropertyType; import javax.jcr.Node; import javax.jcr.Property; import javax.jcr.Value; import javax.jcr.ValueFormatException; import javax.jcr.RepositoryException; import java.io.InputStream; import java.io.ByteArrayInputStream; import java.util.Calendar; /** * <code>SetValueValueFormatExceptionTest</code> tests if Property.setValue() throws * a ValueFormatException if a best-effort conversion fails. * The ValueFormatException has to be thrown immediately (not on save). * */ public class SetValueValueFormatExceptionTest extends AbstractJCRTest { /** * Tests if setValue(Value) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testValue() throws NotExecutableException, RepositoryException { Property booleanProperty = createProperty(PropertyType.BOOLEAN, false); try { Value dateValue = NodeTypeUtil.getValueOfType(superuser, PropertyType.DATE); booleanProperty.setValue(dateValue); fail("Property.setValue(Value) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(Value[]) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testValueArray() throws NotExecutableException, RepositoryException { Property booleanProperty = createProperty(PropertyType.BOOLEAN, true); try { Value dateValues[] = new Value[]{NodeTypeUtil.getValueOfType(superuser, PropertyType.DOUBLE)}; booleanProperty.setValue(dateValues); fail("Property.setValue(Value[]) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(String) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testString() throws NotExecutableException, RepositoryException { Property dateProperty = createProperty(PropertyType.DATE, false); try { dateProperty.setValue("abc"); fail("Property.setValue(String) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(String[]) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testStringArray() throws NotExecutableException, RepositoryException { Property dateProperty = createProperty(PropertyType.DATE, true); try { String values[] = new String[]{"abc"}; dateProperty.setValue(values); fail("Property.setValue(String[]) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(InputStream) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testInputStream() throws NotExecutableException, RepositoryException { Property dateProperty = createProperty(PropertyType.DATE, false); try { byte[] bytes = {123}; InputStream value = new ByteArrayInputStream(bytes); dateProperty.setValue(value); fail("Property.setValue(InputStream) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(long) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testLong() throws NotExecutableException, RepositoryException { Property booleanProperty = createProperty(PropertyType.BOOLEAN, false); try { booleanProperty.setValue(123); fail("Property.setValue(long) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(double) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testDouble() throws NotExecutableException, RepositoryException { Property booleanProperty = createProperty(PropertyType.BOOLEAN, false); try { booleanProperty.setValue(1.23); fail("Property.setValue(double) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(Calendar) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testCalendar() throws NotExecutableException, RepositoryException { Property booleanProperty = createProperty(PropertyType.BOOLEAN, false); try { booleanProperty.setValue(Calendar.getInstance()); fail("Property.setValue(Calendar) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(boolean) throws a ValueFormatException immediately (not * on save) if a conversion fails. */ public void testBoolean() throws NotExecutableException, RepositoryException { Property dateProperty = createProperty(PropertyType.DATE, false); try { dateProperty.setValue(true); fail("Property.setValue(boolean) must throw a ValueFormatException " + "immediately if a conversion fails."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(Node) throws a ValueFormatException immediately (not * on save) if the property is not of type REFERENCE. */ public void testNode() throws NotExecutableException, RepositoryException { Property booleanProperty = createProperty(PropertyType.BOOLEAN, false); try { Node referenceableNode = testRootNode.addNode(nodeName3, testNodeType); if (needsMixin(referenceableNode, mixReferenceable)) { ensureMixinType(referenceableNode, mixReferenceable); } // some implementations may require a save after addMixin() testRootNode.getSession().save(); // make sure the node is now referenceable assertTrue("test node should be mix:referenceable", referenceableNode.isNodeType(mixReferenceable)); booleanProperty.setValue(referenceableNode); fail("Property.setValue(Node) must throw a ValueFormatException " + "immediately if the property is not of type REFERENCE."); } catch (ValueFormatException e) { // success } } /** * Tests if setValue(Node) throws a ValueFormatException immediately (not * on save) if the specified node is not referencable. */ public void testNodeNotReferenceable() throws NotExecutableException, RepositoryException { if (testRootNode.isNodeType(mixReferenceable)) { throw new NotExecutableException("test requires testRootNode to be non-referenceable"); } Property referenceProperty = createProperty(PropertyType.REFERENCE, false); try { referenceProperty.setValue(testRootNode); fail("Property.setValue(Node) must throw a ValueFormatException " + "immediately if the specified node is not referenceable."); } catch (ValueFormatException e) { // success } } /** * Creates a node under {@link #testRootNode} and sets a property on with * <code>propertyType</code> on the newly created node. * * @param propertyType the type of the property to create. * @param multiple if the property must support multiple values. * @return the property * @throws RepositoryException if an error occurs * @throws NotExecutableException if there is no such property defined on * the node type for the new child node. */ private Property createProperty(int propertyType, boolean multiple) throws RepositoryException, NotExecutableException { Node n = testRootNode.addNode(nodeName1, testNodeType); if (propertyType == PropertyType.REFERENCE && !n.isNodeType(mixReferenceable)) { if (!n.canAddMixin(mixReferenceable)) { throw new NotExecutableException(testNodeType + " does not support adding of mix:referenceable"); } else { n.addMixin(mixReferenceable); // some implementations may require a save after addMixin() testRootNode.getSession().save(); } } Value initValue; if (propertyType == PropertyType.REFERENCE) { initValue = superuser.getValueFactory().createValue(n); } else { initValue = NodeTypeUtil.getValueOfType(superuser, propertyType); } if (multiple) { Value[] initValues = new Value[]{initValue}; if (!n.getPrimaryNodeType().canSetProperty(propertyName1, initValues)) { throw new NotExecutableException("Node type: " + testNodeType + " does not support a multi valued " + PropertyType.nameFromValue(propertyType) + " property " + "called: " + propertyName1); } return n.setProperty(propertyName1, initValues); } else { if (!n.getPrimaryNodeType().canSetProperty(propertyName1, initValue)) { throw new NotExecutableException("Node type: " + testNodeType + " does not support a single valued " + PropertyType.nameFromValue(propertyType) + " property " + "called: " + propertyName1); } return n.setProperty(propertyName1, initValue); } } }
{'content_hash': 'db1ac43dfdb5fcadd4837147f78d6709', 'timestamp': '', 'source': 'github', 'line_count': 287, 'max_line_length': 124, 'avg_line_length': 37.98257839721254, 'alnum_prop': 0.6289331254013393, 'repo_name': 'SylvesterAbreu/jackrabbit', 'id': '4163fac5e9fe10b2b81aa7ced91f4bb0d615843a', 'size': '11703', 'binary': False, 'copies': '3', 'ref': 'refs/heads/trunk', 'path': 'jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueValueFormatExceptionTest.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '2538'}, {'name': 'Java', 'bytes': '23017961'}, {'name': 'JavaScript', 'bytes': '7410'}, {'name': 'Shell', 'bytes': '1817'}, {'name': 'XSLT', 'bytes': '49729'}]}
github
0
package jp.ats.liverwort.jdbc; /** * {@link LiPreparedStatement} をラップし、機能追加するための仕組みを定義したインターフェイスです。 * * @author 千葉 哲嗣 * @see LiConnection#setPreparedStatementWrapper(PreparedStatementWrapper) */ @FunctionalInterface public interface PreparedStatementWrapper { /** * {@link LiPreparedStatement} が生成されたときに呼び出されます。 * * @param statement 元の {@link LiPreparedStatement} * @return ラップされた {@link LiPreparedStatement} */ LiPreparedStatement wrap(LiPreparedStatement statement); }
{'content_hash': '4fabe8626f530cea8603d9c47a89ef3c', 'timestamp': '', 'source': 'github', 'line_count': 19, 'max_line_length': 74, 'avg_line_length': 25.789473684210527, 'alnum_prop': 0.7714285714285715, 'repo_name': 'ats-jp/liverwort', 'id': '2304e41456790c77b675eb9fffe36826e6be3cca', 'size': '616', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'liverwort.core/src/jp/ats/liverwort/jdbc/PreparedStatementWrapper.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '855175'}]}
github
0
package alexclin.httplite.url; import android.net.Uri; import java.io.BufferedWriter; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import alexclin.httplite.MediaType; import alexclin.httplite.RequestBody; import alexclin.httplite.util.Util; /** * URLMultipartBody * * @author alexclin 16/1/2 20:00 */ public class URLMultipartBody implements RequestBody { @Override public void writeTo(OutputStream sink) throws IOException { writeOrCountBytes(sink, false); } /** * The media-type multipart/form-data follows the rules of all multipart MIME data streams as * outlined in RFC 2046. In forms, there are a series of fields to be supplied by the user who * fills out the form. Each field has a name. Within a given form, the names are unique. */ public static final MediaType FORM = URLMediaType.parse("multipart/form-data"); private static final byte[] COLONSPACE = {':', ' '}; private static final byte[] CRLF = {'\r', '\n'}; private static final byte[] DASHDASH = {'-', '-'}; private final String boundary; private final MediaType originalType; private final MediaType contentType; private final List<Part> parts; private long contentLength = -1L; URLMultipartBody(String boundary, MediaType type, List<Part> parts) { this.boundary = boundary; this.originalType = type; this.contentType = URLMediaType.parse(type + "; boundary=" + Uri.encode(boundary,Util.UTF_8.name())); this.parts = Util.immutableList(parts); } public MediaType type() { return originalType; } public String boundary() { return boundary; } /** The number of parts in this multipart body. */ public int size() { return parts.size(); } public List<Part> parts() { return parts; } public Part part(int index) { return parts.get(index); } /** A combination of {@link #type()} and {@link #boundary()}. */ @Override public MediaType contentType() { return contentType; } @Override public long contentLength() throws IOException { long result = contentLength; if (result != -1L) return result; return contentLength = writeOrCountBytes(null, true); } /** * Either writes this call to {@code sink} or measures its content length. We have one method * do double-duty to make sure the counting and content are consistent, particularly when it comes * to awkward operations like measuring the encoded length of header strings, or the * length-in-digits of an encoded integer. */ private long writeOrCountBytes(OutputStream sink, boolean countBytes) throws IOException { long byteCount = 0L; try { BufferedWriter byteCountBuffer = null; BufferedWriter writer; ByteArrayOutputStream bos = null; if (countBytes) { bos = new ByteArrayOutputStream(); writer = byteCountBuffer = new BufferedWriter(new OutputStreamWriter(bos,Util.UTF_8)); sink = bos; }else{ writer = new BufferedWriter(new OutputStreamWriter(sink,Util.UTF_8)); } for (int p = 0, partCount = parts.size(); p < partCount; p++) { Part part = parts.get(p); Map<String, List<String>> headers = part.headers; RequestBody body = part.body; sink.write(DASHDASH); sink.write(boundary.getBytes(Util.UTF_8)); sink.write(CRLF); if (headers != null) { for (String key:headers.keySet()) { for (String value:headers.get(key)){ writer.write(key); writer.flush(); if(countBytes){ bos.write(COLONSPACE); }else{ sink.write(COLONSPACE); } writer.write(value); writer.flush(); if(countBytes){ bos.write(CRLF); }else{ sink.write(CRLF); } } } } MediaType contentType = body.contentType(); if (contentType != null) { writer.write("Content-Type: "); writer.write(contentType.toString()); writer.flush(); if(countBytes){ bos.write(CRLF); }else{ sink.write(CRLF); } } long contentLength = body.contentLength(); if (contentLength != -1) { writer.write("Content-Length: "); writer.flush(); if(countBytes){ bos.write(getBytes(contentLength)); bos.write(CRLF); }else{ sink.write(getBytes(contentLength)); sink.write(CRLF); } } else if (countBytes) { // We can't measure the body's size without the sizes of its components. Util.closeQuietly(writer); return -1L; } sink.write(CRLF); if (countBytes) { byteCount += contentLength; } else { body.writeTo(sink); } sink.write(CRLF); } sink.write(DASHDASH); sink.write(boundary.getBytes(Util.UTF_8)); sink.write(DASHDASH); sink.write(CRLF); if (countBytes) { byteCount += bos.size(); Util.closeQuietly(byteCountBuffer); } } catch (IOException e) { e.printStackTrace(); } return byteCount; } static byte[] getBytes(long data){ byte[] bytes = new byte[8]; bytes[0] = (byte) (data & 0xff); bytes[1] = (byte) ((data >> 8) & 0xff); bytes[2] = (byte) ((data >> 16) & 0xff); bytes[3] = (byte) ((data >> 24) & 0xff); bytes[4] = (byte) ((data >> 32) & 0xff); bytes[5] = (byte) ((data >> 40) & 0xff); bytes[6] = (byte) ((data >> 48) & 0xff); bytes[7] = (byte) ((data >> 56) & 0xff); return bytes; } /** * Appends a quoted-string to a StringBuilder. * * <p>RFC 2388 is rather vague about how one should escape special characters in form-data * parameters, and as it turns out Firefox and Chrome actually do rather different things, and * both say in their comments that they're not really sure what the right approach is. We go with * Chrome's behavior (which also experimentally seems to match what IE does), but if you actually * want to have a good chance of things working, please avoid double-quotes, newlines, percent * signs, and the like in your field names. */ static StringBuilder appendQuotedString(StringBuilder target, String key) { target.append('"'); for (int i = 0, len = key.length(); i < len; i++) { char ch = key.charAt(i); switch (ch) { case '\n': target.append("%0A"); break; case '\r': target.append("%0D"); break; case '"': target.append("%22"); break; default: target.append(ch); break; } } target.append('"'); return target; } public static final class Part { public static Part create(RequestBody body) { return create(null, body); } public static Part create(Map<String, List<String>> headers, RequestBody body) { if (body == null) { throw new NullPointerException("body == null"); } if (headers != null && headers.get("Content-Type") != null) { throw new IllegalArgumentException("Unexpected header: Content-Type"); } if (headers != null && headers.get("Content-Length") != null) { throw new IllegalArgumentException("Unexpected header: Content-Length"); } return new Part(headers, body); } public static Part createFormData(String name, String value) { return createFormData(name, null, URLRequestBody.create(null, value)); } public static Part createFormData(String name, String filename, RequestBody body) { if (name == null) { throw new NullPointerException("name == null"); } StringBuilder disposition = new StringBuilder("form-data; name="); appendQuotedString(disposition, name); if (filename != null) { disposition.append("; filename="); appendQuotedString(disposition, filename); } Map<String, List<String>> headers = new HashMap<>(); headers.put("Content-Disposition", Collections.singletonList(disposition.toString())); return create(headers, body); } private final Map<String, List<String>> headers; private final RequestBody body; private Part(Map<String, List<String>> headers, RequestBody body) { this.headers = headers; this.body = body; } } public static final class Builder { private final String boundary; private MediaType type = URLMediaType.parse(MediaType.MULTIPART_MIXED); private final List<Part> parts = new ArrayList<>(); public Builder() { this(UUID.randomUUID().toString()); } public Builder(String boundary) { this.boundary = boundary; } public Builder setType(MediaType type) { if (type == null) { throw new NullPointerException("type == null"); } if (!type.type().equals("multipart")) { throw new IllegalArgumentException("multipart != " + type); } this.type = type; return this; } /** Add a part to the body. */ public Builder addPart(RequestBody body) { return addPart(Part.create(body)); } /** Add a part to the body. */ public Builder addPart(Map<String, List<String>> headers, RequestBody body) { return addPart(Part.create(headers, body)); } /** Add a form data part to the body. */ public Builder addFormDataPart(String name, String value) { return addPart(Part.createFormData(name, value)); } /** Add a form data part to the body. */ public Builder addFormDataPart(String name, String filename, RequestBody body) { return addPart(Part.createFormData(name, filename, body)); } /** Add a part to the body. */ public Builder addPart(Part part) { if (part == null) throw new NullPointerException("part == null"); parts.add(part); return this; } /** Assemble the specified parts into a call body. */ public URLMultipartBody build() { if (parts.isEmpty()) { throw new IllegalStateException("Multipart body must have at least one part."); } return new URLMultipartBody(boundary, type, parts); } } }
{'content_hash': '3d6ac231df9ef9e4314b4d5bbcb5636e', 'timestamp': '', 'source': 'github', 'line_count': 348, 'max_line_length': 109, 'avg_line_length': 35.14080459770115, 'alnum_prop': 0.5335677487938507, 'repo_name': 'alexclin0188/httplite', 'id': '70094441faa3f82bdb6b55fea808cd203786c1fe', 'size': '12229', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'httplite-url/src/main/java/alexclin/httplite/url/URLMultipartBody.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '412776'}]}
github
0
//Copyright (c) 2016, 2017, 2018 Hitachi Vantara Corporation //All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations // under the License. // //Authors: Allart Ian Vogelesang <ian.vogelesang@hitachivantara.com> // //Support: "ivy" is not officially supported by Hitachi Vantara. // Contact one of the authors by email and as time permits, we'll help on a best efforts basis. #pragma once #include "ivytypes.h" #include "ivyhelpers.h" #include "subsystem_summary_data.h" #include "SubintervalRollup.h" #include "SequenceOfSubintervalRollup.h" #include "ListOfWorkloadIDs.h" #include "Test_config_thumbnail.h" class ivy_engine; class RollupSet; class RollupType; enum class SuccessFailAbort { success, fail, abort }; struct measurement_things { ivy_float IOPS_setting {-1.0}; ivy_float application_IOPS {-1.0}; ivy_float subsystem_IOPS {-1.0}; ivy_float subsystem_IOPS_as_fraction_of_host_IOPS {-1.0}; std::string Total_IOPS_setting_string; std::string achieved_IOPS_as_percent_of_Total_IOPS_setting {}; std::string achieved_IOPS_delta; bool subsystem_IOPS_as_fraction_of_host_IOPS_failure {false}; bool failed_to_achieve_total_IOPS_setting {false}; SubintervalRollup measurementRollup {}; subsystem_summary_data subsystem_data {}; }; class RollupInstance // 410123+3B // This is the granularity of Dynamic Feedback Control both for looking at data and // as well as for sending out commands to workloads. { public: // variables std::string attributeNameComboID; std::string rollupInstanceID; std::vector<measurement_things> things_by_measurement {}; measurement_things& current_measurement() { if (things_by_measurement.size() == 0) throw std::runtime_error("RollupInstance::current_measurement() called when things_by_measurementsize() == 0/"); return things_by_measurement.back(); } SequenceOfSubintervalRollup subintervals; RollupType* pRollupType; // my parent RollupSet* pRollupSet; // my grandparent ListOfWorkloadIDs workloadIDs; // to send out Dynamic Feedback Control messages // Every time you post a detail line into one of these, a copy of the workload ID is put in here. std::map < std::string, // subsystem serial number std::map < std::string, // attribute, e.g. "port' // Both SCSI Inquiry attributes, e.g. "port", // and where present, LDEV attributes from a command device, e.g. "drive type", or "MPU". // Keys not altered from the form seen in LUN attributes. (not translated to lower case, etc.) std::set< std::string > // for each observed key (attribute name), the set of observed values under that key is stored. // e.g. { "1A", "2A" } > > config_filter; // populated by RollupType::rebuild() // Over all WorkloadIDs in this rollup instance, we keep for each subsystem, for each LUN/LDEV // configuration attribute, such as "port", the set of observed values, such as { "1A", "2A" } // in this RollupInstance. // This is what enables us when iterating through instances of subsystem performance data for a // particular type of configuration element to check if a particular instance (such as "port" = "1A") // is represented in this RollupInstance, and therefore to include the data for this element // in the fixed-column layout subsystem performance data summary csv column set for this rollup instance. // There is a set of performance data summary columns that are populated in a RollupInstance data structure // at the time rollups are done at the end of a subinterval, and made available to the DFC when it is called. // The definition of the subsystem performance data summary columns is "subsystem_summary_metrics" // in ivy_engine.h. // Special processing is performed for the "all=all" rollup instance. // Here we we make a "not_participating" filter produced by spinning through the instances of each type of // subsystem configuration data and iff the attribute=value pair is not in all=all's config_filter, // we include it in the not_participating_filter. // We then make a "not_participating" performance data summary by filtering using the "not_participating" filter. // The "not_participating" csv columns appear at near the end of " measurement" and "test step by-subinterval" csv lines. // The subsystem performance csv column set is included as a column range in all RollupInstance csv files. // The "not_participating.csv" file only has the subsystem performance summary columns. std::vector<subsystem_summary_data> subsystem_data_by_subinterval; Test_config_thumbnail test_config_thumbnail; std::vector<ivy_float> focus_metric_vector; // used only for the focus rollup type. std::string timestamp; // set by RollupInstance::reset() - gets printed in csv files. // PID variables ivy_float error_signal {0.0}; ivy_float error_derivative {0.0}; ivy_float error_integral {0.0}; ivy_float this_measurement {0.}; ivy_float prev_measurement {0.}; ivy_float total_IOPS {0.}, total_IOPS_last_time; ivy_float p_times_error, i_times_integral, d_times_derivative; std::ostringstream subinterval_number_sstream, target_metric_value_sstream, metric_value_sstream, error_sstream, error_integral_sstream, error_derivative_sstream, p_times_error_sstream, i_times_integral_sstream, d_times_derivative_sstream, total_IOPS_sstream, p_sstream, i_sstream, d_sstream; ivy_float plusminusfraction_percent_above_below_target; // set by isValidMeasurementStartingFrom() ivy_float best; unsigned int best_first, best_last; bool best_first_last_valid {false}; ivy_float P {0.}, I {0.}, D {0.}; bool on_way_down {false}; bool on_way_up {false}; unsigned int adaptive_PID_subinterval_count {0}; bool have_previous_inflection {false}; ivy_float previous_inflection {-1.}; bool have_reduced_gain {false}; unsigned int monotone_count {0}; RunningStat<ivy_float,ivy_int> up_movement {}; RunningStat<ivy_float,ivy_int> down_movement {}; RunningStat<ivy_float,ivy_int> fractional_up_swings {}; RunningStat<ivy_float,ivy_int> fractional_down_swings {}; unsigned int m_count {0}; // monotone triggered gain increases unsigned int b_count {0}; // 2/3 in one direction triggered gain increases unsigned int d_count {0}; // decreases std::ostringstream gain_history {}; ivy_float per_instance_low_IOPS; ivy_float per_instance_high_IOPS; ivy_float per_instance_max_IOPS; std::string by_subinterval_csv_filename {}; // set by set_by_subinterval_filename() std::string csv_filename_prefix {}; // set by set_by_subinterval_filename() std::string measurement_rollup_by_test_step_csv_filename; // goes in measurementRollupFolder std::string measurement_rollup_by_test_step_csv_type_filename; // goes in measurementRollupFolder // methods RollupInstance(RollupType* pRT, RollupSet* pRS, std::string nameCombo, std::string valueCombo) : attributeNameComboID(nameCombo), rollupInstanceID(valueCombo), pRollupType(pRT), pRollupSet(pRS) {} // void postWorkloadSubintervalResult (int subinterval_number, std::string workloadID, IosequencerInput& detailInput, SubintervalOutput& detailOutput); std::pair<bool,std::string> add_workload_detail_line(WorkloadID& wID, IosequencerInput& iI, SubintervalOutput& sO); bool sendDynamicFeedbackControlParameterUpdate(std::string updates); std::pair<bool,std::string> makeMeasurementRollup(); std::string getIDprefixTitles() {return "Test Name,Step Number,Step Name,Start Time,End Time,Subinterval Number,Subinterval Phase,Rollup Type,Rollup Instance,";} std::string getIDprefixValues(std::string phase, ivytime start_time, ivytime end_time); std::string config_filter_contents(); void rebuild_test_config_thumbnail(); ivy_float get_focus_metric(unsigned int /* subinterval_number */); // PID & measure=on methods: void collect_and_push_focus_metric(); // must be called exactly once after each subinterval, if focus metric being used. void reset(); // must be called once before starting a subinterval sequence, if the focus metric is being used. void perform_PID(); // unsigned int most_subintervals_without_a_zero_crossing_starting(unsigned int); void print_console_info_line(); void print_subinterval_column(); void print_common_columns(std::ostream&); void print_common_headers(std::ostream&); void print_pid_csv_files(); std::pair<bool,ivy_float> isValidMeasurementStartingFrom(unsigned int n); void set_by_subinterval_filename(); void print_by_subinterval_header(); void print_config_thumbnail(); // gets called by RollupType's make_step_folder() void print_subinterval_csv_line(unsigned int subinterval_number /* from zero */, bool is_provisional); // The first or "provisional" time we print this csv file, the lines are printed one by one as each subinterval ends, // but we don't know yet if the subinterval is "warmup", "measurement", or "cooldown", so this column is left blank. // This way, if ivy is terminated with a control-C, or if it explodes, we can at least see what had happened up to // the unexpected end, but of course we won't see a summary csv file line for that test step. // Then later, when we make the measurement rollup and print the summary csv line, // we re-print the by-subinterval csv files for each rollup, but this time showing "warmup", "measurment", or "cooldown", // as this is very handy when looking at the by-subinterval csv files, to see exactly the behaviour in each phase, and // to know which subinterval lines were rolled up in the measurement. void print_measurement_summary_csv_line(unsigned int measurement_index); bool is_all_equals_all_instance() { return stringCaseInsensitiveEquality(attributeNameComboID,"all") && stringCaseInsensitiveEquality(rollupInstanceID,"all"); } };
{'content_hash': '1dfdd092542b12f642b79ec545ec893c', 'timestamp': '', 'source': 'github', 'line_count': 250, 'max_line_length': 162, 'avg_line_length': 43.796, 'alnum_prop': 0.6990592748196183, 'repo_name': 'Hitachi-Data-Systems/ivy', 'id': 'f3459393293ae6572232a057ecb2ab1952c250f3', 'size': '10949', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'include/RollupInstance.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '4862'}, {'name': 'C++', 'bytes': '2577375'}, {'name': 'Lex', 'bytes': '31482'}, {'name': 'Makefile', 'bytes': '46699'}, {'name': 'Python', 'bytes': '92709'}, {'name': 'Shell', 'bytes': '6954'}, {'name': 'Yacc', 'bytes': '38857'}]}
github
0
package org.apereo.cas.util.cipher; import lombok.val; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; /** * Test cases for {@link BaseStringCipherExecutor}. * * @author Misagh Moayyed * @since 4.1 */ @Tag("Tickets") public class TicketGrantingCookieCipherExecutorTests { @Test public void verifyAction() { val cipher = new TicketGrantingCookieCipherExecutor(); val encoded = cipher.encode("ST-1234567890"); assertEquals("ST-1234567890", cipher.decode(encoded)); assertNotNull(cipher.getName()); assertNotNull(cipher.getSigningKeySetting()); assertNotNull(cipher.getEncryptionKeySetting()); } @Test public void checkEncryptionWithDefaultSettings() { val cipherExecutor = new TicketGrantingCookieCipherExecutor("1PbwSbnHeinpkZOSZjuSJ8yYpUrInm5aaV18J2Ar4rM", "szxK-5_eJjs-aUj-64MpUZ-GPPzGLhYPLGl0wrYjYNVAGva2P0lLe6UGKGM7k8dWxsOVGutZWgvmY3l5oVPO3w", 0, 0); val result = cipherExecutor.decode(cipherExecutor.encode("CAS Test")); assertEquals("CAS Test", result); } }
{'content_hash': '2b9211c461b7cd4d8ce27cb030a07dc8', 'timestamp': '', 'source': 'github', 'line_count': 35, 'max_line_length': 114, 'avg_line_length': 32.91428571428571, 'alnum_prop': 0.7204861111111112, 'repo_name': 'pdrados/cas', 'id': '2431472bd61647428c8f25bcb1d425f0ad153a84', 'size': '1152', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'core/cas-server-core-util/src/test/java/org/apereo/cas/util/cipher/TicketGrantingCookieCipherExecutorTests.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '13992'}, {'name': 'Dockerfile', 'bytes': '75'}, {'name': 'Groovy', 'bytes': '31399'}, {'name': 'HTML', 'bytes': '195237'}, {'name': 'Java', 'bytes': '12509257'}, {'name': 'JavaScript', 'bytes': '85879'}, {'name': 'Python', 'bytes': '26699'}, {'name': 'Ruby', 'bytes': '1323'}, {'name': 'Shell', 'bytes': '177491'}]}
github
0
package com.beanframework.exception.handler; import java.util.Date; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import com.beanframework.platform.core.base.BaseController; import com.beanframework.theme.ThemeManager; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.servlet.ModelAndView; @ControllerAdvice @Controller class DefaultExceptionHandler extends BaseController{ private static final String PATH = "/error"; @RequestMapping(value = PATH) public ModelAndView defaultErrorHandler(HttpServletRequest req, HttpServletResponse res, Exception e) throws Exception { // If the exception is annotated with @ResponseStatus rethrow it and let // the framework handle it - like the OrderNotFoundException example // at the start of this post. // AnnotationUtils is a Spring Framework utility class. if (AnnotationUtils.findAnnotation(e.getClass(), ResponseStatus.class) != null) throw e; // Otherwise setup and send the user to a default error-view. ModelAndView mav = new ModelAndView(); String trace = (String) getErrorAttributes(req).get("trace"); String url = req.getRequestURL().toString(); Date timestamp = new Date(); int status = res.getStatus(); String error = (String) getErrorAttributes(req).get("error"); String message = (String) getErrorAttributes(req).get("message"); if(StringUtils.isNotEmpty(trace)){ logger.info(trace); } String DEFAULT_ERROR_VIEW = ThemeManager.getInstance().getAdminThemePath()+"/error"; mav.addObject("exception", e); mav.addObject("url", url); mav.addObject("timestamp", timestamp); mav.addObject("status", status); mav.addObject("error", error); mav.addObject("message", message); mav.addObject("trace", trace); mav.setViewName(DEFAULT_ERROR_VIEW); return mav; } // Total control - setup a model and return the view name yourself. Or consider // subclassing ExceptionHandlerExceptionResolver (see below). @ExceptionHandler(Exception.class) public ModelAndView handleError(HttpServletRequest req, HttpServletResponse res, Exception e) { logger.error("Request: " + req.getRequestURL() + " raised " + e, e); ModelAndView mav = new ModelAndView(); String trace = (String) getErrorAttributes(req).get("trace"); String url = req.getRequestURL().toString(); Date timestamp = new Date(); int status = res.getStatus(); String error = (String) getErrorAttributes(req).get("error"); String message = (String) getErrorAttributes(req).get("message"); if(StringUtils.isNotEmpty(trace)){ logger.info(trace); } mav.addObject("exception", e); mav.addObject("url", url); mav.addObject("timestamp", timestamp); mav.addObject("status", status); mav.addObject("error", error); mav.addObject("message", message); mav.addObject("trace", trace); return mav; } }
{'content_hash': '33c9124403714243dbd8ed36b78f2035', 'timestamp': '', 'source': 'github', 'line_count': 91, 'max_line_length': 121, 'avg_line_length': 35.747252747252745, 'alnum_prop': 0.7537657546879803, 'repo_name': 'beanproject/beanframework', 'id': 'a8eea8797ebb5ec6bfb8bd8e3345a7ed7d033d9a', 'size': '3253', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'bin/webadmin/src/main/java/com/beanframework/exception/handler/DefaultExceptionHandler.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'ApacheConf', 'bytes': '13'}, {'name': 'Batchfile', 'bytes': '80096'}, {'name': 'CSS', 'bytes': '2357420'}, {'name': 'CoffeeScript', 'bytes': '176875'}, {'name': 'HTML', 'bytes': '11787817'}, {'name': 'Java', 'bytes': '794300'}, {'name': 'JavaScript', 'bytes': '9754823'}, {'name': 'PHP', 'bytes': '217612'}, {'name': 'Python', 'bytes': '64648'}, {'name': 'Shell', 'bytes': '112928'}]}
github
0
class utc_blink_ewk_autofill_profile_data_get : public utc_blink_ewk_base { protected: utc_blink_ewk_autofill_profile_data_get() : m_profileName("MyProfile") { m_profile = ewk_autofill_profile_new(); } virtual ~utc_blink_ewk_autofill_profile_data_get() { ewk_autofill_profile_delete(m_profile); } const std::string m_profileName; Ewk_Autofill_Profile* m_profile; }; TEST_F(utc_blink_ewk_autofill_profile_data_get, POS_TEST) { ASSERT_TRUE(m_profile != NULL); ewk_autofill_profile_data_set(m_profile, EWK_PROFILE_NAME, m_profileName.c_str()); const std::string result(ewk_autofill_profile_data_get(m_profile, EWK_PROFILE_NAME)); ASSERT_TRUE(result.compare(m_profileName) == 0); }
{'content_hash': 'c173055b6e0db7cf783902b4bf94b120', 'timestamp': '', 'source': 'github', 'line_count': 29, 'max_line_length': 73, 'avg_line_length': 25.103448275862068, 'alnum_prop': 0.6978021978021978, 'repo_name': 'crosswalk-project/chromium-efl', 'id': 'fb9df71cfefd1f92632fb6846f826a5611de6b41', 'size': '980', 'binary': False, 'copies': '2', 'ref': 'refs/heads/efl/crosswalk-11/40.0.2214.28', 'path': 'ewk/unittest/utc_blink_ewk_autofill_profile_data_get_func.cpp', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'C', 'bytes': '381829'}, {'name': 'C++', 'bytes': '2650535'}, {'name': 'CSS', 'bytes': '2328'}, {'name': 'Objective-C', 'bytes': '1921'}, {'name': 'Python', 'bytes': '48748'}, {'name': 'Shell', 'bytes': '43749'}, {'name': 'XSLT', 'bytes': '4826'}]}
github
0
""" WSGI config for app project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
{'content_hash': '2fec3ccb3f5306c93b0db65a3f0aa5e9', 'timestamp': '', 'source': 'github', 'line_count': 14, 'max_line_length': 78, 'avg_line_length': 27.214285714285715, 'alnum_prop': 0.7690288713910761, 'repo_name': 'dugancathal/polyspec', 'id': '8446814ae73cbed8b0e8c12fa44661766353179c', 'size': '381', 'binary': False, 'copies': '17', 'ref': 'refs/heads/master', 'path': 'spec/fixtures/django-app/app/wsgi.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Go', 'bytes': '311'}, {'name': 'Python', 'bytes': '2932'}, {'name': 'Ruby', 'bytes': '8330'}]}
github
0
 #include <aws/glue/model/DeleteRegistryRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Glue::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteRegistryRequest::DeleteRegistryRequest() : m_registryIdHasBeenSet(false) { } Aws::String DeleteRegistryRequest::SerializePayload() const { JsonValue payload; if(m_registryIdHasBeenSet) { payload.WithObject("RegistryId", m_registryId.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeleteRegistryRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSGlue.DeleteRegistry")); return headers; }
{'content_hash': 'eaf5b49739274d0eca77b1d0fcc98952', 'timestamp': '', 'source': 'github', 'line_count': 40, 'max_line_length': 89, 'avg_line_length': 19.625, 'alnum_prop': 0.7554140127388536, 'repo_name': 'awslabs/aws-sdk-cpp', 'id': '731f2ec5999ec11d3d45d4e0a46c97556ac26368', 'size': '904', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'aws-cpp-sdk-glue/source/model/DeleteRegistryRequest.cpp', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '7596'}, {'name': 'C++', 'bytes': '61740540'}, {'name': 'CMake', 'bytes': '337520'}, {'name': 'Java', 'bytes': '223122'}, {'name': 'Python', 'bytes': '47357'}]}
github
0
package nl.tomasharkema.menukaart.units; /** * Created by tomas on 28-05-15. */ public enum Unit { Liters("Liter", "L"), Grams("Gram", "g"); public final String name; public final String abbriviation; Unit(String name, String abbriviation) { this.name = name; this.abbriviation = abbriviation; } }
{'content_hash': 'ea0be9b5cfb3be19b76e9abffb8afd0e', 'timestamp': '', 'source': 'github', 'line_count': 17, 'max_line_length': 44, 'avg_line_length': 20.11764705882353, 'alnum_prop': 0.6286549707602339, 'repo_name': 'tomasharkema/MenuKaart', 'id': '944661e2553ad2a8a9c20ea905afe1d65c807acc', 'size': '342', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/nl/tomasharkema/MenuKaart/units/Unit.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '18220'}]}
github
0
<html><head> <title>stooop - Simple Tcl Only Object Oriented Programming</title> <style type="text/css"><!-- HTML { background: #FFFFFF; color: black; } BODY { background: #FFFFFF; color: black; } DIV.doctools { margin-left: 10%; margin-right: 10%; } DIV.doctools H1,DIV.doctools H2 { margin-left: -5%; } H1, H2, H3, H4 { margin-top: 1em; font-family: sans-serif; font-size: large; color: #005A9C; background: transparent; text-align: left; } H1.doctools_title { text-align: center; } UL,OL { margin-right: 0em; margin-top: 3pt; margin-bottom: 3pt; } UL LI { list-style: disc; } OL LI { list-style: decimal; } DT { padding-top: 1ex; } UL.doctools_toc,UL.doctools_toc UL, UL.doctools_toc UL UL { font: normal 12pt/14pt sans-serif; list-style: none; } LI.doctools_section, LI.doctools_subsection { list-style: none; margin-left: 0em; text-indent: 0em; padding: 0em; } PRE { display: block; font-family: monospace; white-space: pre; margin: 0%; padding-top: 0.5ex; padding-bottom: 0.5ex; padding-left: 1ex; padding-right: 1ex; width: 100%; } PRE.doctools_example { color: black; background: #f5dcb3; border: 1px solid black; } UL.doctools_requirements LI, UL.doctools_syntax LI { list-style: none; margin-left: 0em; text-indent: 0em; padding: 0em; } DIV.doctools_synopsis { color: black; background: #80ffff; border: 1px solid black; font-family: serif; margin-top: 1em; margin-bottom: 1em; } UL.doctools_syntax { margin-top: 1em; border-top: 1px solid black; } UL.doctools_requirements { margin-bottom: 1em; border-bottom: 1px solid black; } --></style> </head> <! -- Generated from file 'stooop.man' by tcllib/doctools with format 'html' --> <! -- stooop.n --> <body><hr> [ <a href="../../../../../../../../home">Tcllib Home</a> | <a href="../../../../toc.html">Main Table Of Contents</a> | <a href="../../../toc.html">Table Of Contents</a> | <a href="../../../../index.html">Keyword Index</a> | <a href="../../../../toc0.html">Categories</a> | <a href="../../../../toc1.html">Modules</a> | <a href="../../../../toc2.html">Applications</a> ] <hr> <div class="doctools"> <h1 class="doctools_title">stooop(n) 4.4.1 tcllib &quot;Simple Tcl Only Object Oriented Programming&quot;</h1> <div id="name" class="doctools_section"><h2><a name="name">Name</a></h2> <p>stooop - Object oriented extension.</p> </div> <div id="toc" class="doctools_section"><h2><a name="toc">Table Of Contents</a></h2> <ul class="doctools_toc"> <li class="doctools_section"><a href="#toc">Table Of Contents</a></li> <li class="doctools_section"><a href="#synopsis">Synopsis</a></li> <li class="doctools_section"><a href="#section1">Description</a></li> <li class="doctools_section"><a href="#section2">DEBUGGING</a></li> <li class="doctools_section"><a href="#section3">EXAMPLES</a></li> <li class="doctools_section"><a href="#section4">Bugs, Ideas, Feedback</a></li> <li class="doctools_section"><a href="#keywords">Keywords</a></li> <li class="doctools_section"><a href="#category">Category</a></li> </ul> </div> <div id="synopsis" class="doctools_section"><h2><a name="synopsis">Synopsis</a></h2> <div class="doctools_synopsis"> <ul class="doctools_requirements"> <li>package require <b class="pkgname">Tcl 8.3</b></li> <li>package require <b class="pkgname">stooop <span class="opt">?4.4.1?</span></b></li> </ul> <ul class="doctools_syntax"> <li><a href="#1"><b class="cmd">::stooop::class</b> <i class="arg">name body</i></a></li> <li><a href="#2"><b class="cmd">::stooop::new</b> <i class="arg">class</i> <span class="opt">?<i class="arg">arg arg ...</i>?</span></a></li> <li><a href="#3"><b class="cmd">::stooop::delete</b> <i class="arg">object</i> <span class="opt">?<i class="arg">object ...</i>?</span></a></li> <li><a href="#4"><b class="cmd">::stooop::virtual</b> <b class="const">proc</b> <i class="arg">name</i> {<b class="const">this</b> <span class="opt">?<i class="arg">arg arg ...</i>?</span>} <span class="opt">?<i class="arg">body</i>?</span></a></li> <li><a href="#5"><b class="cmd">::stooop::classof</b> <i class="arg">object</i></a></li> <li><a href="#6"><b class="cmd">::stooop::new</b> <i class="arg">object</i></a></li> <li><a href="#7"><b class="cmd">::stooop::printObjects</b> <span class="opt">?<i class="arg">pattern</i>?</span></a></li> <li><a href="#8"><b class="cmd">::stooop::record</b></a></li> <li><a href="#9"><b class="cmd">::stooop::report</b> <span class="opt">?<i class="arg">pattern</i>?</span></a></li> </ul> </div> </div> <div id="section1" class="doctools_section"><h2><a name="section1">Description</a></h2> <p>This package provides commands to extend Tcl in an object oriented manner, using a familiar C++ like syntax and behaviour. Stooop only introduces a few new commands: <b class="cmd"><a href="../../../../index.html#key240">class</a></b>, <b class="cmd">new</b>, <b class="cmd">delete</b>, <b class="cmd">virtual</b> and <b class="cmd">classof</b>. Along with a few coding conventions, that is basically all you need to know to use stooop. Stooop is meant to be as simple to use as possible.</p> <p>This manual is very succinct and is to be used as a quick reminder for the programmer, who should have read the thorough <a href="stooop_man.html">stooop_man.html</a> HTML documentation at this point.</p> <dl class="doctools_definitions"> <dt><a name="1"><b class="cmd">::stooop::class</b> <i class="arg">name body</i></a></dt> <dd><p>This command creates a class. The body, similar in contents to a Tcl namespace (which a class actually also is), contains member procedure definitions. Member procedures can also be defined outside the class body, by prefixing their name with <b class="const">class::</b>, as you would proceed with namespace procedures.</p> <dl class="doctools_definitions"> <dt><b class="cmd"><a href="../../../../index.html#key591">proc</a></b> <i class="arg">class</i> {<b class="const">this</b> <span class="opt">?<i class="arg">arg arg ...</i>?</span>} <span class="opt">?<i class="arg">base</i> {<span class="opt">?<i class="arg">arg arg ...</i>?</span>} ...?</span> <i class="arg">body</i></dt> <dd><p>This is the constructor procedure for the class. It is invoked following a <b class="cmd">new</b> invocation on the class. It must have the same name as the class and a first argument named <b class="const">this</b>. Any number of base classes specifications, including arguments to be passed to their constructor, are allowed before the actual body of the procedure.</p></dd> <dt><b class="cmd"><a href="../../../../index.html#key591">proc</a></b> ~<i class="arg">class</i> {<b class="const">this</b>} <i class="arg">body</i></dt> <dd><p>This is the destructor procedure for the class. It is invoked following a <b class="cmd">delete</b> invocation. Its name must be the concatenation of a single <b class="const">~</b> character followed by the class name (as in C++). It must have a single argument named <b class="const">this</b>.</p></dd> <dt><b class="cmd"><a href="../../../../index.html#key591">proc</a></b> <i class="arg">name</i> {<b class="const">this</b> <span class="opt">?<i class="arg">arg arg ...</i>?</span>} <i class="arg">body</i></dt> <dd><p>This is a member procedure of the class, as its first argument is named <b class="const">this</b>. It allows a simple access of member data for the object referenced by <b class="const">this</b> inside the procedure. For example:</p> <pre class="doctools_example"> set ($this,data) 0 </pre> </dd> <dt><b class="cmd"><a href="../../../../index.html#key591">proc</a></b> <i class="arg">name</i> {<span class="opt">?<i class="arg">arg arg ...</i>?</span>} <i class="arg">body</i></dt> <dd><p>This is a static (as in C++) member procedure of the class, as its first argument is not named <b class="const">this</b>. Static (global) class data can be accessed as in:</p> <pre class="doctools_example"> set (data) 0 </pre> </dd> <dt><b class="cmd"><a href="../../../../index.html#key591">proc</a></b> <i class="arg">class</i> {<b class="const">this copy</b>} <i class="arg">body</i></dt> <dd><p>This is the optional copy procedure for the class. It must have the same name as the class and exactly 2 arguments named <b class="const">this</b> and <b class="const">copy</b>. It is invoked following a <b class="cmd">new</b> invocation on an existing object of the class.</p></dd> </dl></dd> <dt><a name="2"><b class="cmd">::stooop::new</b> <i class="arg">class</i> <span class="opt">?<i class="arg">arg arg ...</i>?</span></a></dt> <dd><p>This command is used to create an object. The first argument is the class name and is followed by the arguments needed by the corresponding class constructor. A unique identifier for the object just created is returned.</p></dd> <dt><a name="3"><b class="cmd">::stooop::delete</b> <i class="arg">object</i> <span class="opt">?<i class="arg">object ...</i>?</span></a></dt> <dd><p>This command is used to delete one or several objects. It takes one or more object identifiers as argument(s).</p></dd> <dt><a name="4"><b class="cmd">::stooop::virtual</b> <b class="const">proc</b> <i class="arg">name</i> {<b class="const">this</b> <span class="opt">?<i class="arg">arg arg ...</i>?</span>} <span class="opt">?<i class="arg">body</i>?</span></a></dt> <dd><p>The <b class="cmd">virtual</b> specifier may be used on member procedures to achieve dynamic binding. A procedure in a base class can then be redefined (overloaded) in the derived class(es). If the base class procedure is invoked on an object, it is actually the derived class procedure which is invoked, if it exists. If the base class procedure has no body, then it is considered to be a pure virtual and the derived class procedure is always invoked.</p></dd> <dt><a name="5"><b class="cmd">::stooop::classof</b> <i class="arg">object</i></a></dt> <dd><p>This command returns the class of the existing object passed as single parameter.</p></dd> <dt><a name="6"><b class="cmd">::stooop::new</b> <i class="arg">object</i></a></dt> <dd><p>This command is used to create an object by copying an existing object. The copy constructor of the corresponding class is invoked if it exists, otherwise a simple copy of the copied object data members is performed.</p></dd> </dl> </div> <div id="section2" class="doctools_section"><h2><a name="section2">DEBUGGING</a></h2> <dl class="doctools_definitions"> <dt>Environment variables</dt> <dd><dl class="doctools_definitions"> <dt><b class="variable">STOOOPCHECKDATA</b></dt> <dd><p>Setting this variable to any true value will cause stooop to check for invalid member or class data access.</p></dd> <dt><b class="variable">STOOOPCHECKPROCEDURES</b></dt> <dd><p>Setting this variable to any true value will cause stooop to check for invalid member procedure arguments and pure interface classes instanciation.</p></dd> <dt><b class="variable">STOOOPCHECKALL</b></dt> <dd><p>Setting this variable to any true value will cause stooop to activate both procedure and data member checking.</p></dd> <dt><b class="variable">STOOOPCHECKOBJECTS</b></dt> <dd><p>Setting this variable to any true value will cause stooop to activate object checking. The following stooop namespace procedures then become available for debugging: <b class="cmd">printObjects</b>, <b class="cmd"><a href="../../../../index.html#key307">record</a></b> and <b class="cmd"><a href="../report/report.html">report</a></b>.</p></dd> <dt><b class="variable">STOOOPTRACEPROCEDURES</b></dt> <dd><p>Setting this environment variable to either <b class="const">stdout</b>, <b class="const">stderr</b> or a file name, activates procedure tracing. The stooop library will then output to the specified channel 1 line of informational text for each member procedure invocation.</p></dd> <dt><b class="variable">STOOOPTRACEPROCEDURESFORMAT</b></dt> <dd><p>Defines the trace procedures output format. Defaults to <b class="const">&quot;class: %C, procedure: %p, object: %O, arguments: %a&quot;</b>.</p></dd> <dt><b class="variable">STOOOPTRACEDATA</b></dt> <dd><p>Setting this environment variable to either <b class="const">stdout</b>, <b class="const">stderr</b> or a file name, activates data tracing. The stooop library will then output to the specified channel 1 line of informational text for each member data access.</p></dd> <dt><b class="variable">STOOOPTRACEDATAFORMAT</b></dt> <dd><p>Defines the trace data output format. Defaults to <b class="const">&quot;class: %C, procedure: %p, array: %A, object: %O, member: %m, operation: %o, value: %v&quot;</b>.</p></dd> <dt><b class="variable">STOOOPTRACEDATAOPERATIONS</b></dt> <dd><p>When tracing data output, by default, all read, write and unsetting accesses are reported, but the user can set this variable to any combination of the letters <b class="const">r</b>, <b class="const">w</b>, and <b class="const">u</b> for more specific tracing (please refer to the <b class="cmd"><a href="../../../../index.html#key74">trace</a></b> Tcl manual page for more information).</p></dd> <dt><b class="variable">STOOOPTRACEALL</b></dt> <dd><p>Setting this environment variable to either <b class="const">stdout</b>, <b class="const">stderr</b> or a file name, enables both procedure and data tracing.</p></dd> </dl></dd> <dt><a name="7"><b class="cmd">::stooop::printObjects</b> <span class="opt">?<i class="arg">pattern</i>?</span></a></dt> <dd><p>Prints an ordered list of existing objects, in creation order, oldest first. Each output line contains the class name, object identifier and the procedure within which the creation occurred. The optional pattern argument (as in the Tcl <b class="cmd">string match</b> command) can be used to limit the output to matching class names.</p></dd> <dt><a name="8"><b class="cmd">::stooop::record</b></a></dt> <dd><p>When invoked, a snapshot of all existing stooop objects is taken. Reporting can then be used at a later time to see which objects were created or deleted in the interval.</p></dd> <dt><a name="9"><b class="cmd">::stooop::report</b> <span class="opt">?<i class="arg">pattern</i>?</span></a></dt> <dd><p>Prints the created and deleted objects since the <b class="cmd">::stooop::record</b> procedure was invoked last. If present, the pattern argument limits the output to matching class names.</p></dd> </dl> </div> <div id="section3" class="doctools_section"><h2><a name="section3">EXAMPLES</a></h2> <p>Please see the full HTML documentation in <a href="stooop_man.html">stooop_man.html</a>.</p> </div> <div id="section4" class="doctools_section"><h2><a name="section4">Bugs, Ideas, Feedback</a></h2> <p>This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category <em>stooop</em> of the <a href="http://core.tcl.tk/tcllib/reportlist">Tcllib Trackers</a>. Please also report any ideas for enhancements you may have for either package and/or documentation.</p> </div> <div id="keywords" class="doctools_section"><h2><a name="keywords">Keywords</a></h2> <p><a href="../../../../index.html#key237">C++</a>, <a href="../../../../index.html#key240">class</a>, <a href="../../../../index.html#key243">object</a>, <a href="../../../../index.html#key236">object oriented</a></p> </div> <div id="category" class="doctools_section"><h2><a name="category">Category</a></h2> <p>Programming tools</p> </div> </div></body></html>
{'content_hash': '86557be6bf116f966d4c62c461cfac52', 'timestamp': '', 'source': 'github', 'line_count': 300, 'max_line_length': 326, 'avg_line_length': 51.766666666666666, 'alnum_prop': 0.6688989053444945, 'repo_name': 'neverpanic/macports-base', 'id': '651f01d628c398fa5436772cd458295f92ea5abb', 'size': '15531', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'vendor/tcllib-1.18/idoc/www/tcllib/files/modules/stooop/stooop.html', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'C', 'bytes': '1021718'}, {'name': 'M4', 'bytes': '92664'}, {'name': 'Makefile', 'bytes': '27709'}, {'name': 'Rich Text Format', 'bytes': '6806'}, {'name': 'Shell', 'bytes': '39105'}, {'name': 'Tcl', 'bytes': '1504725'}]}
github
0
@implementation FGXMessageCell + (instancetype)messageCellWithTableView:(UITableView *)tableView{ static NSString *ID = nil; if (!ID) { ID = [NSString stringWithFormat:@"%@ID",NSStringFromClass(self)]; } static UITableView *tableV = nil; if (![tableView isEqual:tableV]) { // 如果使用的是不同的tableView,那就更新缓存池对应的tableV tableV = tableView; } id cell = [tableV dequeueReusableCellWithIdentifier:ID]; if (!cell) { cell = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject; } return cell; } - (void)awakeFromNib { [super awakeFromNib]; } - (void)setMessageModel:(FGXMessageModel *)messageModel{ _messageModel = messageModel; NSURL *headUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@",messageModel.headIcon]]; NSData *headData = [NSData dataWithContentsOfURL:headUrl]; self.headIcon.image = [UIImage imageWithData:headData]; self.nickName.text = messageModel.nickName; self.content.text = messageModel.content; self.time.text = messageModel.time; self.count.text = messageModel.count; } @end
{'content_hash': '00f720eed24c09dd94a3275eb8443fc9', 'timestamp': '', 'source': 'github', 'line_count': 36, 'max_line_length': 109, 'avg_line_length': 32.22222222222222, 'alnum_prop': 0.6913793103448276, 'repo_name': 'maifayan/FangGongXin', 'id': '1aa25c3b5b33f321550b77d8fbc4a3db72ed2b5d', 'size': '1394', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'FangGongXin/FangGongXin/Classes/Message/View/FGXMessageCell.m', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Objective-C', 'bytes': '401912'}]}
github
0
<?php /****************************************** * Begin Form configuration ******************************************/ $list_def_file = "list/web_vhost_subdomain.list.php"; $tform_def_file = "form/web_vhost_subdomain.tform.php"; /****************************************** * End Form configuration ******************************************/ require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); //* Check permissions for module $app->auth->check_module_permissions('sites'); $app->uses('tpl,tform,tform_actions'); $app->load("tform_actions"); class page_action extends tform_actions { function onBeforeDelete() { global $app; $conf; //* Delete all web folders $records = $app->db->queryAllRecords("SELECT web_folder_id FROM web_folder WHERE parent_domain_id = '".$app->functions->intval($this->id)."'"); foreach($records as $rec) { //* Delete all web folder users $records2 = $app->db->queryAllRecords("SELECT web_folder_user_id FROM web_folder_user WHERE web_folder_id = '".$rec['web_folder_id']."'"); foreach($records2 as $rec2) { $app->db->datalogDelete('web_folder_user','web_folder_user_id',$rec2['web_folder_user_id']); } $app->db->datalogDelete('web_folder','web_folder_id',$rec['web_folder_id']); } } } $page = new page_action; $page->onDelete(); ?>
{'content_hash': 'a1316565f6dc961cd07aa4f56f695ab5', 'timestamp': '', 'source': 'github', 'line_count': 46, 'max_line_length': 151, 'avg_line_length': 29.67391304347826, 'alnum_prop': 0.5655677655677656, 'repo_name': 'TR-Host/THConfig', 'id': '48174fcc95a2eb5b93784810152fa83f6d95c02b', 'size': '2893', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'interface/web/sites/web_vhost_subdomain_del.php', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'CSS', 'bytes': '230028'}, {'name': 'JavaScript', 'bytes': '29290'}, {'name': 'PHP', 'bytes': '4877846'}, {'name': 'Shell', 'bytes': '34506'}]}
github
0
export { engine } from './shot/engine.js';
{'content_hash': '3911f65e304f080ced67de269394f597', 'timestamp': '', 'source': 'github', 'line_count': 1, 'max_line_length': 42, 'avg_line_length': 43.0, 'alnum_prop': 0.6511627906976745, 'repo_name': 'lo-th/Ammo.lab', 'id': 'a3cee483c041298df6c15612c9ae46026af7aeeb', 'size': '43', 'binary': False, 'copies': '1', 'ref': 'refs/heads/gh-pages', 'path': 'src/Shot.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '3956'}, {'name': 'JavaScript', 'bytes': '1967268'}]}
github
0
from django.db import models class Tag(models.Model): name=models.CharField(max_length=128,unique=True) def __unicode__(self): return self.name class Link(models.Model): title=models.CharField(max_length=128,unique=True) url=models.URLField() tags=models.ManyToManyField(Tag) def __unicode__(self): return self.title
{'content_hash': '7bb6c12f89be57bbe6140cecb86f5dd8', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 51, 'avg_line_length': 25.46153846153846, 'alnum_prop': 0.7492447129909365, 'repo_name': 'zturchan/CMPUT410-Lab6', 'id': '4f0433d5f739f53968de97f11ba851bdc9dd26ef', 'size': '331', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'bookmarks/main/models.py', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '44059'}, {'name': 'HTML', 'bytes': '83005'}, {'name': 'JavaScript', 'bytes': '102019'}, {'name': 'Python', 'bytes': '5862074'}, {'name': 'Shell', 'bytes': '3947'}]}
github
0
package com.alex.thornburg.web.rest.model; import javax.persistence.*; import java.util.List; /** * Created by alexthornburg on 8/31/15. */ @Entity public class Address { @Id @GeneratedValue(strategy= GenerationType.AUTO) private long id; @OneToOne public Person person; private String streetAddress; private String country; private String city; private int zip; public Address(){} public Address(String streetAddress,String country,String city,int zip){ this.streetAddress = streetAddress; this.country = country; this.city = city; this.zip = zip; } public long getId() { return id; } public void setId(long id) { this.id = id; } public Person getPeople() { return person; } public void setPeople(Person person) { this.person = person; } public String getStreetAddress() { return streetAddress; } public void setStreetAddress(String streetAddress) { this.streetAddress = streetAddress; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public int getZip() { return zip; } public void setZip(int zip) { this.zip = zip; } }
{'content_hash': 'baa2abd1131cca38a32f2e7f32156f44', 'timestamp': '', 'source': 'github', 'line_count': 77, 'max_line_length': 76, 'avg_line_length': 19.155844155844157, 'alnum_prop': 0.6054237288135593, 'repo_name': 'athornburg/person-rest-api-example', 'id': '8540a1c8b09d7d83b177a850e2aa5a7a62b0c52c', 'size': '1475', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/com/alex/thornburg/web/rest/model/Address.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '32728'}]}
github
0
package net.runelite.client; public enum UpdateCheckMode { AUTO, NONE, VANILLA, RUNELITE }
{'content_hash': '959067e9535ee639c90f724a79c1210f', 'timestamp': '', 'source': 'github', 'line_count': 10, 'max_line_length': 28, 'avg_line_length': 9.7, 'alnum_prop': 0.7422680412371134, 'repo_name': 'Noremac201/runelite', 'id': '06abaaa07d935818233af1a791ead6bbabac090c', 'size': '1455', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'runelite-client/src/main/java/net/runelite/client/UpdateCheckMode.java', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'Java', 'bytes': '6356479'}, {'name': 'Shell', 'bytes': '327'}]}
github
0
package me.cyning.gifle.app.http; import com.squareup.okhttp.Call; import com.squareup.okhttp.Headers; import com.squareup.okhttp.OkHttpClient; import com.squareup.okhttp.Request; import java.util.Iterator; import java.util.Map; import me.cyning.gifle.app.common.LayzLog; /** * @Author: cyning * @Date : 2015.09.04 * @Time : 上午11:45 * @Desc : 类/接口描述 */ public class RestHttpClient { private static RestHttpClient mInstance = null; public static RestHttpClient getInstance() { if (mInstance == null) { synchronized (RestHttpClient.class) { if (mInstance == null) { mInstance = new RestHttpClient(); } } } return mInstance; } private RestHttpClient() { } public void doGet(Object tag, String paramsUrl, Map headers, BaseApiHandler baseHandler) { LayzLog.i("url = %s", paramsUrl); if (headers != null) { LayzLog.i("headers = %s", headers.toString()); } LayzLog.i("url = %s", paramsUrl); OkHttpClient mOkHttpClient = AsynHttpClientUtil.INSTANCE.getInstance(); request(RequestType.GET, mOkHttpClient, paramsUrl, headers, tag, baseHandler); } void request(RequestType mRequestType, OkHttpClient mOkHttpClient, String url, Map headers, Object tag, BaseApiHandler baseHandler) { Request.Builder mBuilder = new Request.Builder(); mBuilder.url(url); if (mRequestType == RequestType.GET) { mBuilder.get(); } else if (mRequestType == RequestType.POST){ mBuilder.post(null); } if (headers != null) { Headers.Builder mHB = new Headers.Builder(); Iterator mIterator = headers.keySet().iterator(); while (mIterator.hasNext()) { Map.Entry<String, String> entry=(Map.Entry<String, String>)mIterator.next(); String key =entry.getKey(); String value =entry.getValue(); mHB.add(key, value); } Headers mHeader = mHB.build(); mBuilder.headers(mHeader); } mBuilder.tag(tag); Call mCall = mOkHttpClient.newCall(mBuilder.build()); mCall.enqueue(baseHandler); } public void doGet(Object tag, String paramsUrl, BaseApiHandler baseHandler) { this.doGet(tag, paramsUrl, null, baseHandler); } public void doPost(Object tag, String paramsUrl, Map headers, BaseApiHandler baseHandler) { OkHttpClient mOkHttpClient = AsynHttpClientUtil.INSTANCE.getInstance(); request(RequestType.GET, mOkHttpClient, paramsUrl, headers, tag, baseHandler); } public void cancel(Object object, boolean is) { AsynHttpClientUtil.INSTANCE.getInstance().cancel(object); } public void cancel(Object object) { cancel(object, true); } public static enum AsynHttpClientUtil { INSTANCE; OkHttpClient mAsyncHttpClient = new OkHttpClient(); private static AsynHttpClientUtil mInstance = null; public OkHttpClient getInstance() { return mAsyncHttpClient; } } public static enum RequestType { GET, POST, DELETE } }
{'content_hash': 'c9cf4e8b608018ecd1592bd458d7b049', 'timestamp': '', 'source': 'github', 'line_count': 124, 'max_line_length': 137, 'avg_line_length': 26.532258064516128, 'alnum_prop': 0.61580547112462, 'repo_name': 'ownwell/gaoGif', 'id': 'a389172443b0ff864c5626db769db405bdecd8be', 'size': '3304', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/src/main/java/me/cyning/gifle/app/http/RestHttpClient.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '68073'}]}
github
0
using namespace Engine; FileManagerLinux::FileManagerLinux( const std::string& setRootDir ) :FileManager( setRootDir ) { if( !this->rootDir.empty() ) { mkdir( this->rootDir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ); } Memory fileContent; if( this->GetFile( "list", fileContent, true ) ) { this->InitList( fileContent ); } } FileManagerLinux::~FileManagerLinux() { } bool FileManagerLinux::FileExists( const std::string &fileName ) const { FILE *file; std::string name = this->rootDir + fileName; file = fopen( name.c_str(), "rb" ); if( !file ) { LOGE( "File '%s' not found", name.c_str() ); return false; } fclose( file ); return true; }//FileExists bool FileManagerLinux::GetFile( const std::string& fileName, Memory& fileContent, bool endZeroByte ) const { std::string name, nameReplaced; if( this->FileHasOtherName( fileName, nameReplaced ) ) { name = this->rootDir + nameReplaced; } else { name = this->rootDir + fileName; } FILE *file; fileContent.Free(); file = fopen( name.c_str(), "rb" ); if( !file ) { LOGE( "File '%s' not found", name.c_str() ); return false; } fseek( file, 0, SEEK_END ); size_t fileSize = ftell( file ); if( fileSize ) { fseek( file, 0, SEEK_SET ); fileContent.Alloc( fileSize + ( endZeroByte ? 1 : 0 ) ); fread( fileContent.GetData(), fileSize, 1, file ); fileContent[ fileContent.GetLength() - 1 ] = 0; } fclose( file ); return true; }//GetFile
{'content_hash': '0c69d0e26b0baaf9127324e304391d23', 'timestamp': '', 'source': 'github', 'line_count': 57, 'max_line_length': 108, 'avg_line_length': 27.19298245614035, 'alnum_prop': 0.6070967741935483, 'repo_name': 'KoMaTo3/Biominator', 'id': '6bad23144831b71169a548eae1771227d2824e2a', 'size': '1641', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'jni/linux/filemanager.cpp', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '1001041'}, {'name': 'C++', 'bytes': '310109'}, {'name': 'Objective-C', 'bytes': '111'}, {'name': 'Python', 'bytes': '12769'}]}
github
0
/* global Bjarnia */ Bjarnia.Menu.Main = new Object(); Bjarnia.Menu.Main.buttons = []; Bjarnia.Menu.Main.render = function (g) { // Draw the background g.fillStyle = "rgb(100, 100, 255)"; g.fillRect(0, 0, Bjarnia.Component.gameCanvas.width, Bjarnia.Component.gameCanvas.height); // Draw the menu box g.fillStyle = "rgb(200, 200, 200)"; g.fillRect(200, 200, 2800, 1400); // Made by Vegard Skui g.textAlign = "right"; g.textBaseline = "alphabetic"; g.fillStyle = "rgb(255, 255, 255)"; g.font = "50px sans-serif"; g.fillText("Made by Vegard Skui", 3180, 1780); }; Bjarnia.Menu.Main.construct = function () { // Add a big button Bjarnia.Menu.Main.buttons.push(Bjarnia.Button.add(300, 300, 2600, 550, "Generate level", function () { // Close the menu Bjarnia.Menu.close(); // Generate a new level Bjarnia.Level.generate(); // Launch the game Bjarnia.Component.isPlaying = true; })); Bjarnia.Menu.Main.buttons.push(Bjarnia.Button.add(300, 950, 1250, 550, "Load save 1", function () { // Load the world from local storage Bjarnia.Level.block = JSON.parse(localStorage.getItem("save_1")); // Close the menu Bjarnia.Menu.close(); // Lanch the game Bjarnia.Component.isPlaying = true; })); Bjarnia.Menu.Main.buttons.push(Bjarnia.Button.add(1650, 950, 1250, 550, "Load save 2", function () { // Load the world from local storage Bjarnia.Level.block = JSON.parse(localStorage.getItem("save_2")); // Close the menu Bjarnia.Menu.close(); // Lanch the game Bjarnia.Component.isPlaying = true; })); }; Bjarnia.Menu.Main.destruct = function () { // Remove all buttons Bjarnia.Menu.Main.buttons.forEach(function (v) { Bjarnia.Button.remove(v); }); Bjarnia.Menu.Main.buttons = []; };
{'content_hash': '9010448b2b66c71ec18f7cf24436610a', 'timestamp': '', 'source': 'github', 'line_count': 66, 'max_line_length': 106, 'avg_line_length': 30.181818181818183, 'alnum_prop': 0.5933734939759037, 'repo_name': 'VegardSkui/Bjarnia-Web', 'id': 'cc00cbcba2d0c9d6d05c0faa1c4fed47714f4bbc', 'size': '1992', 'binary': False, 'copies': '1', 'ref': 'refs/heads/gh-pages', 'path': 'Bjarnia/Menu/Main.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '2083'}, {'name': 'JavaScript', 'bytes': '23937'}]}
github
0
<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 2.0//EN" "http://java.sun.com/products/javahelp/toc_2_0.dtd"> <toc version="2.0"> <tocitem text="Panduan Pengguna ZAP" tocid="toplevelitem"> <tocitem text="Tambahkan Ons" tocid="addons"> <tocitem text="Active Scan Rules - Alpha" image="ascanalpha-icon" target="ascanalpha"/> </tocitem> </tocitem> </toc>
{'content_hash': 'afe59cea4db9f2b823fe7949cb3d1763', 'timestamp': '', 'source': 'github', 'line_count': 12, 'max_line_length': 90, 'avg_line_length': 36.5, 'alnum_prop': 0.6757990867579908, 'repo_name': 'psiinon/zap-extensions', 'id': '82758f7f0c4404dfdd70c4044bd2556ec85f6ff2', 'size': '438', 'binary': False, 'copies': '6', 'ref': 'refs/heads/main', 'path': 'addOns/ascanrulesAlpha/src/main/javahelp/org/zaproxy/zap/extension/ascanrulesAlpha/resources/help_id_ID/toc.xml', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '50766'}, {'name': 'Groovy', 'bytes': '29975'}, {'name': 'HTML', 'bytes': '14600029'}, {'name': 'Haskell', 'bytes': '2592943'}, {'name': 'Java', 'bytes': '16013658'}, {'name': 'JavaScript', 'bytes': '220869'}, {'name': 'Kotlin', 'bytes': '123828'}, {'name': 'Python', 'bytes': '27312'}, {'name': 'Ruby', 'bytes': '16548'}, {'name': 'XSLT', 'bytes': '9433'}]}
github
0
<!DOCTYPE html> <html lang="en"> <head> <title>DefaultWireframe Class Reference</title> <link rel="stylesheet" type="text/css" href="../css/jazzy.css" /> <link rel="stylesheet" type="text/css" href="../css/highlight.css" /> <meta charset='utf-8'> <script src="../js/jquery.min.js" defer></script> <script src="../js/jazzy.js" defer></script> </head> <body> <a name="//apple_ref/swift/Class/DefaultWireframe" class="dashAnchor"></a> <a title="DefaultWireframe Class Reference"></a> <header> <div class="content-wrapper"> <p><a href="../index.html">VISPER-Wireframe Docs</a> (31% documented)</p> <p class="header-right"><a href="https://github.com/barteljan/VISPER.git"><img src="../img/gh.png"/>View on GitHub</a></p> </div> </header> <div class="content-wrapper"> <p id="breadcrumbs"> <a href="../index.html">VISPER-Wireframe Reference</a> <img id="carat" src="../img/carat.png" /> DefaultWireframe Class Reference </p> </div> <div class="content-wrapper"> <nav class="sidebar"> <ul class="nav-groups"> <li class="nav-group-name"> <a href="../Classes.html">Classes</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Classes/BackToRoutingPresenter.html">BackToRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/ChildViewControllerTopControllerResolver.html">ChildViewControllerTopControllerResolver</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultComposedControllerDismisser.html">DefaultComposedControllerDismisser</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultComposedControllerProvider.html">DefaultComposedControllerProvider</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultComposedPresenterProvider.html">DefaultComposedPresenterProvider</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultComposedRoutingObserver.html">DefaultComposedRoutingObserver</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultComposedRoutingOptionProvider.html">DefaultComposedRoutingOptionProvider</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultComposedRoutingPresenter.html">DefaultComposedRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultComposedTopControllerResolver.html">DefaultComposedTopControllerResolver</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultControllerContainerAwareRoutingPresenter.html">DefaultControllerContainerAwareRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultRouteResultHandler.html">DefaultRouteResultHandler</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultRouter.html">DefaultRouter</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultRoutingDelegate.html">DefaultRoutingDelegate</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultRoutingHandlerContainer.html">DefaultRoutingHandlerContainer</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultWireframe.html">DefaultWireframe</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultWireframeApp.html">DefaultWireframeApp</a> </li> <li class="nav-group-task"> <a href="../Classes/DefaultWireframeAppFactory.html">DefaultWireframeAppFactory</a> </li> <li class="nav-group-task"> <a href="../Classes/FunctionalControllerProvider.html">FunctionalControllerProvider</a> </li> <li class="nav-group-task"> <a href="../Classes/FunctionalRoutingOptionProvider.html">FunctionalRoutingOptionProvider</a> </li> <li class="nav-group-task"> <a href="../Classes/ModalControllerDismisser.html">ModalControllerDismisser</a> </li> <li class="nav-group-task"> <a href="../Classes/ModalRoutingPresenter.html">ModalRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/ModalViewControllerTopControllerResolver.html">ModalViewControllerTopControllerResolver</a> </li> <li class="nav-group-task"> <a href="../Classes/NavigationControllerDismisser.html">NavigationControllerDismisser</a> </li> <li class="nav-group-task"> <a href="../Classes/NavigationControllerTopControllerResolver.html">NavigationControllerTopControllerResolver</a> </li> <li class="nav-group-task"> <a href="../Classes/PushRoutingPresenter.html">PushRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/ReplaceTopVCRoutingPresenter.html">ReplaceTopVCRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/RootVCRoutingPresenter.html">RootVCRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/ShowRoutingPresenter.html">ShowRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Classes/TabbarControllerTopControllerResolver.html">TabbarControllerTopControllerResolver</a> </li> <li class="nav-group-task"> <a href="../Classes/WireframeFactory.html">WireframeFactory</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Enums.html">Enumerations</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Enums/BackToRoutingPresenterError.html">BackToRoutingPresenterError</a> </li> <li class="nav-group-task"> <a href="../Enums/DefaultComposedControllerProviderError.html">DefaultComposedControllerProviderError</a> </li> <li class="nav-group-task"> <a href="../Enums/DefaultWireframeError.html">DefaultWireframeError</a> </li> <li class="nav-group-task"> <a href="../Enums/DefautRouterError.html">DefautRouterError</a> </li> <li class="nav-group-task"> <a href="../Enums/ModalRoutingPresenterError.html">ModalRoutingPresenterError</a> </li> <li class="nav-group-task"> <a href="../Enums/PushRoutingPresenterError.html">PushRoutingPresenterError</a> </li> <li class="nav-group-task"> <a href="../Enums/ReplaceTopVCRoutingPresenterError.html">ReplaceTopVCRoutingPresenterError</a> </li> <li class="nav-group-task"> <a href="../Enums/RootVCRoutingPresenterError.html">RootVCRoutingPresenterError</a> </li> <li class="nav-group-task"> <a href="../Enums/ShowRoutingPresenterError.html">ShowRoutingPresenterError</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Extensions.html">Extensions</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Extensions/UIViewController.html">UIViewController</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Protocols.html">Protocols</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Protocols/AnimatedRoutingOption.html">AnimatedRoutingOption</a> </li> <li class="nav-group-task"> <a href="../Protocols/ComposedControllerDimisser.html">ComposedControllerDimisser</a> </li> <li class="nav-group-task"> <a href="../Protocols/ComposedControllerProvider.html">ComposedControllerProvider</a> </li> <li class="nav-group-task"> <a href="../Protocols/ComposedPresenterProvider.html">ComposedPresenterProvider</a> </li> <li class="nav-group-task"> <a href="../Protocols/ComposedRoutingObserver.html">ComposedRoutingObserver</a> </li> <li class="nav-group-task"> <a href="../Protocols/ComposedRoutingOptionProvider.html">ComposedRoutingOptionProvider</a> </li> <li class="nav-group-task"> <a href="../Protocols/ComposedRoutingPresenter.html">ComposedRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Protocols/ComposedTopControllerResolver.html">ComposedTopControllerResolver</a> </li> <li class="nav-group-task"> <a href="../Protocols/ControllerContainerAwareRoutingPresenter.html">ControllerContainerAwareRoutingPresenter</a> </li> <li class="nav-group-task"> <a href="../Protocols/PresenterFeature.html">PresenterFeature</a> </li> <li class="nav-group-task"> <a href="../Protocols/RouteResultHandler.html">RouteResultHandler</a> </li> <li class="nav-group-task"> <a href="../Protocols/Router.html">Router</a> </li> <li class="nav-group-task"> <a href="../Protocols/RoutingHandlerContainer.html">RoutingHandlerContainer</a> </li> <li class="nav-group-task"> <a href="../Protocols.html#/s:16VISPER_Wireframe19RoutingOptionBackToP">RoutingOptionBackTo</a> </li> <li class="nav-group-task"> <a href="../Protocols.html#/s:16VISPER_Wireframe26RoutingOptionGetControllerP">RoutingOptionGetController</a> </li> <li class="nav-group-task"> <a href="../Protocols/RoutingOptionModal.html">RoutingOptionModal</a> </li> <li class="nav-group-task"> <a href="../Protocols/RoutingOptionPush.html">RoutingOptionPush</a> </li> <li class="nav-group-task"> <a href="../Protocols.html#/s:16VISPER_Wireframe25RoutingOptionReplaceTopVCP">RoutingOptionReplaceTopVC</a> </li> <li class="nav-group-task"> <a href="../Protocols.html#/s:16VISPER_Wireframe19RoutingOptionRootVCP">RoutingOptionRootVC</a> </li> <li class="nav-group-task"> <a href="../Protocols.html#/s:16VISPER_Wireframe17RoutingOptionShowP">RoutingOptionShow</a> </li> <li class="nav-group-task"> <a href="../Protocols/ViewFeature.html">ViewFeature</a> </li> <li class="nav-group-task"> <a href="../Protocols/WireframeApp.html">WireframeApp</a> </li> <li class="nav-group-task"> <a href="../Protocols/WireframeAppFactory.html">WireframeAppFactory</a> </li> <li class="nav-group-task"> <a href="../Protocols/WireframeFeatureObserver.html">WireframeFeatureObserver</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Structs.html">Structures</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Structs/DefaultRouteResult.html">DefaultRouteResult</a> </li> <li class="nav-group-task"> <a href="../Structs/DefaultRoutingBackTo.html">DefaultRoutingBackTo</a> </li> <li class="nav-group-task"> <a href="../Structs/DefaultRoutingOptionGetController.html">DefaultRoutingOptionGetController</a> </li> <li class="nav-group-task"> <a href="../Structs/DefaultRoutingOptionModal.html">DefaultRoutingOptionModal</a> </li> <li class="nav-group-task"> <a href="../Structs/DefaultRoutingOptionPush.html">DefaultRoutingOptionPush</a> </li> <li class="nav-group-task"> <a href="../Structs/DefaultRoutingOptionReplaceTopVC.html">DefaultRoutingOptionReplaceTopVC</a> </li> <li class="nav-group-task"> <a href="../Structs/DefaultRoutingOptionRootVC.html">DefaultRoutingOptionRootVC</a> </li> <li class="nav-group-task"> <a href="../Structs/DefaultRoutingOptionShow.html">DefaultRoutingOptionShow</a> </li> <li class="nav-group-task"> <a href="../Structs/PresenterFeatureObserver.html">PresenterFeatureObserver</a> </li> <li class="nav-group-task"> <a href="../Structs/ViewFeatureObserver.html">ViewFeatureObserver</a> </li> </ul> </li> </ul> </nav> <article class="main-content"> <section> <section class="section"> <h1>DefaultWireframe</h1> <div class="declaration"> <div class="language"> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">class</span> <span class="kt">DefaultWireframe</span> <span class="p">:</span> <span class="kt">Wireframe</span><span class="p">,</span> <span class="kt">HasControllerContainer</span></code></pre> </div> </div> <p>Undocumented</p> </section> <section class="section task-group-section"> <div class="task-group"> <div class="task-name-container"> <a name="/internal%20properties"></a> <a name="//apple_ref/swift/Section/internal properties" class="dashAnchor"></a> <a href="#/internal%20properties"> <h3 class="section-name">internal properties</h3> </a> </div> <ul> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C19controllerContainer0A5_Core010ControllerE0_pvp"></a> <a name="//apple_ref/swift/Property/controllerContainer" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C19controllerContainer0A5_Core010ControllerE0_pvp">controllerContainer</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Undocumented</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">controllerContainer</span><span class="p">:</span> <span class="kt">ControllerContainer</span></code></pre> </div> </div> </section> </div> </li> </ul> </div> <div class="task-group"> <div class="task-name-container"> <a name="/Initializer"></a> <a name="//apple_ref/swift/Section/Initializer" class="dashAnchor"></a> <a href="#/Initializer"> <h3 class="section-name">Initializer</h3> </a> </div> <ul> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C6router22composedOptionProvider23routingHandlerContainer0e10ControllerG00e9PresenterG00e7RoutingL00H8Delegate0eM8Observer011routeResultI003topK8Resolver19controllerDismisser0tJ0AcA6Router_p_AA08ComposedmfG0_pAA0miJ0_pAA0wkG0_pAA0wlG0_pAA0wmL0_p0A5_Core0mN0_pAA0wmO0_pAA05RouteqI0_pAA0w3TopkS0_pAA0wK8Dimisser_pAV0kJ0_ptcfc"></a> <a name="//apple_ref/swift/Method/init(router:composedOptionProvider:routingHandlerContainer:composedControllerProvider:composedPresenterProvider:composedRoutingPresenter:routingDelegate:composedRoutingObserver:routeResultHandler:topControllerResolver:controllerDismisser:controllerContainer:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C6router22composedOptionProvider23routingHandlerContainer0e10ControllerG00e9PresenterG00e7RoutingL00H8Delegate0eM8Observer011routeResultI003topK8Resolver19controllerDismisser0tJ0AcA6Router_p_AA08ComposedmfG0_pAA0miJ0_pAA0wkG0_pAA0wlG0_pAA0wmL0_p0A5_Core0mN0_pAA0wmO0_pAA05RouteqI0_pAA0w3TopkS0_pAA0wK8Dimisser_pAV0kJ0_ptcfc">init(router:composedOptionProvider:routingHandlerContainer:composedControllerProvider:composedPresenterProvider:composedRoutingPresenter:routingDelegate:composedRoutingObserver:routeResultHandler:topControllerResolver:controllerDismisser:controllerContainer:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Undocumented</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span> <span class="nv">router</span> <span class="p">:</span> <span class="kt"><a href="../Protocols/Router.html">Router</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultRouter.html">DefaultRouter</a></span><span class="p">(),</span> <span class="nv">composedOptionProvider</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ComposedRoutingOptionProvider.html">ComposedRoutingOptionProvider</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultComposedRoutingOptionProvider.html">DefaultComposedRoutingOptionProvider</a></span><span class="p">(),</span> <span class="nv">routingHandlerContainer</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RoutingHandlerContainer.html">RoutingHandlerContainer</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultRoutingHandlerContainer.html">DefaultRoutingHandlerContainer</a></span><span class="p">(),</span> <span class="nv">composedControllerProvider</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ComposedControllerProvider.html">ComposedControllerProvider</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultComposedControllerProvider.html">DefaultComposedControllerProvider</a></span><span class="p">(),</span> <span class="nv">composedPresenterProvider</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ComposedPresenterProvider.html">ComposedPresenterProvider</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultComposedPresenterProvider.html">DefaultComposedPresenterProvider</a></span><span class="p">(),</span> <span class="nv">composedRoutingPresenter</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ComposedRoutingPresenter.html">ComposedRoutingPresenter</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultComposedRoutingPresenter.html">DefaultComposedRoutingPresenter</a></span><span class="p">(),</span> <span class="nv">routingDelegate</span><span class="p">:</span> <span class="kt">RoutingDelegate</span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultRoutingDelegate.html">DefaultRoutingDelegate</a></span><span class="p">(),</span> <span class="nv">composedRoutingObserver</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ComposedRoutingObserver.html">ComposedRoutingObserver</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultComposedRoutingObserver.html">DefaultComposedRoutingObserver</a></span><span class="p">(),</span> <span class="nv">routeResultHandler</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouteResultHandler.html">RouteResultHandler</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultRouteResultHandler.html">DefaultRouteResultHandler</a></span><span class="p">(),</span> <span class="nv">topControllerResolver</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ComposedTopControllerResolver.html">ComposedTopControllerResolver</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultComposedTopControllerResolver.html">DefaultComposedTopControllerResolver</a></span><span class="p">(),</span> <span class="nv">controllerDismisser</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ComposedControllerDimisser.html">ComposedControllerDimisser</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/DefaultComposedControllerDismisser.html">DefaultComposedControllerDismisser</a></span><span class="p">(),</span> <span class="nv">controllerContainer</span><span class="p">:</span> <span class="kt">ControllerContainer</span> <span class="o">=</span> <span class="kt">DefaultControllerContainer</span><span class="p">()</span> <span class="p">)</span></code></pre> </div> </div> </section> </div> </li> </ul> </div> <div class="task-group"> <div class="task-name-container"> <a name="/topViewController"></a> <a name="//apple_ref/swift/Section/topViewController" class="dashAnchor"></a> <a href="#/topViewController"> <h3 class="section-name">topViewController</h3> </a> </div> <ul> <li class="item"> <div> <code> <a name="/s:11VISPER_Core9WireframeP17topViewControllerSo06UIViewF0CSgvp"></a> <a name="//apple_ref/swift/Property/topViewController" class="dashAnchor"></a> <a class="token" href="#/s:11VISPER_Core9WireframeP17topViewControllerSo06UIViewF0CSgvp">topViewController</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="k">var</span> <span class="nv">topViewController</span><span class="p">:</span> <span class="kt">UIViewController</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre> </div> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:11VISPER_Core9WireframeP24dismissTopViewController8animated10completionySb_yyctF"></a> <a name="//apple_ref/swift/Method/dismissTopViewController(animated:completion:)" class="dashAnchor"></a> <a class="token" href="#/s:11VISPER_Core9WireframeP24dismissTopViewController8animated10completionySb_yyctF">dismissTopViewController(animated:completion:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">dismissTopViewController</span><span class="p">(</span><span class="nv">animated</span><span class="p">:</span><span class="kt">Bool</span><span class="p">,</span><span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span><span class="o">-&gt;</span><span class="kt">Void</span><span class="p">)</span></code></pre> </div> </div> </section> </div> </li> </ul> </div> <div class="task-group"> <div class="task-name-container"> <a name="/route"></a> <a name="//apple_ref/swift/Section/route" class="dashAnchor"></a> <a href="#/route"> <h3 class="section-name">route</h3> </a> </div> <ul> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C8canRoute3url10parameters6optionSb10Foundation3URLV_SDySSypG0A5_Core13RoutingOption_pSgtKF"></a> <a name="//apple_ref/swift/Method/canRoute(url:parameters:option:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C8canRoute3url10parameters6optionSb10Foundation3URLV_SDySSypG0A5_Core13RoutingOption_pSgtKF">canRoute(url:parameters:option:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Check if a route pattern matching this url was added to the wireframe. Be careful, if you don&rsquo;t route to a handler (but to a controller), it&rsquo;s possible that no ControllerProvider or RoutingOptionProvider for this controller exists.</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">canRoute</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">,</span> <span class="nv">parameters</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">],</span> <span class="nv">option</span><span class="p">:</span> <span class="kt">RoutingOption</span><span class="p">?)</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>url</em> </code> </td> <td> <div> <p>the url to check for resolution</p> </div> </td> </tr> <tr> <td> <code> <em>parameters</em> </code> </td> <td> <div> <p>the parameters (data) given to the controller</p> </div> </td> </tr> </tbody> </table> </div> <div> <h4>Return Value</h4> <p>Can the wireframe find a route for the given url</p> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C5route3url10parameters6option10completiony10Foundation3URLV_SDySSypG0A5_Core13RoutingOption_pSgyyctKF"></a> <a name="//apple_ref/swift/Method/route(url:parameters:option:completion:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C5route3url10parameters6option10completiony10Foundation3URLV_SDySSypG0A5_Core13RoutingOption_pSgyyctKF">route(url:parameters:option:completion:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Route to a new route presenting a view controller</p> <div class="aside aside-throws"> <p class="aside-title">Throws</p> throws an error when no controller and/or option provider can be found. </div> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">route</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">,</span> <span class="nv">parameters</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:],</span> <span class="nv">option</span><span class="p">:</span> <span class="kt">RoutingOption</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span> <span class="o">=</span> <span class="p">{})</span> <span class="k">throws</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>url</em> </code> </td> <td> <div> <p>the route of the view controller to be presented</p> </div> </td> </tr> <tr> <td> <code> <em>option</em> </code> </td> <td> <div> <p>how should your view controller be presented (default is nil)</p> </div> </td> </tr> <tr> <td> <code> <em>parameters</em> </code> </td> <td> <div> <p>a dictionary of parameters (data) send to the presented view controller (default is empty dict)</p> </div> </td> </tr> <tr> <td> <code> <em>completion</em> </code> </td> <td> <div> <p>function called when the view controller was presented (default is empty completion)</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C10controller3url10parametersSo16UIViewControllerCSg10Foundation3URLV_SDySSypGtKF"></a> <a name="//apple_ref/swift/Method/controller(url:parameters:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C10controller3url10parametersSo16UIViewControllerCSg10Foundation3URLV_SDySSypGtKF">controller(url:parameters:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Return the view controller for a given url</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">controller</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">,</span> <span class="nv">parameters</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">])</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">UIViewController</span><span class="p">?</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>url</em> </code> </td> <td> <div> <p>url</p> </div> </td> </tr> <tr> <td> <code> <em>parameters</em> </code> </td> <td> <div> <p>parameters</p> </div> </td> </tr> </tbody> </table> </div> <div> <h4>Return Value</h4> <p>nil if no controller was found, the found controller otherwise</p> </div> </section> </div> </li> </ul> </div> <div class="task-group"> <div class="task-name-container"> <a name="/Add%20dependencies"></a> <a name="//apple_ref/swift/Section/Add dependencies" class="dashAnchor"></a> <a href="#/Add%20dependencies"> <h3 class="section-name">Add dependencies</h3> </a> </div> <ul> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add12routePatternySS_tKF"></a> <a name="//apple_ref/swift/Method/add(routePattern:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add12routePatternySS_tKF">add(routePattern:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Register a route pattern for routing. You have to register a route pattern to allow the wireframe matching it. This is done automatically if you are using a ViewFeature from SwiftyVISPER as ControllerProvider.</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">routePattern</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="k">throws</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>pattern</em> </code> </td> <td> <div> <p>the route pattern to register</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add8priority14responsibleFor7handlerySi_Sb0A5_Core11RouteResult_pcyAhI_pctKF"></a> <a name="//apple_ref/swift/Method/add(priority:responsibleFor:handler:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add8priority14responsibleFor7handlerySi_Sb0A5_Core11RouteResult_pcyAhI_pctKF">add(priority:responsibleFor:handler:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Register a handler for a route pattern The handler will be called if a route matches your route pattern. (you dont&rsquo;t have to add your pattern manually in this case)</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">responsibleFor</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">RouteResult</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">RoutingHandler</span><span class="p">)</span> <span class="k">throws</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your handler, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> <tr> <td> <code> <em>responsibleFor</em> </code> </td> <td> <div> <p>nil if this handler should be registered for every routing option, or a spec</p> </div> </td> </tr> <tr> <td> <code> <em>handler</em> </code> </td> <td> <div> <p>A handler called when a route matches your route pattern</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add18controllerProvider8priorityy0A5_Core010ControllerF0_p_SitF"></a> <a name="//apple_ref/swift/Method/add(controllerProvider:priority:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add18controllerProvider8priorityy0A5_Core010ControllerF0_p_SitF">add(controllerProvider:priority:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add an instance providing a controller for a route</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">controllerProvider</span><span class="p">:</span> <span class="kt">ControllerProvider</span><span class="p">,</span> <span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>controllerProvider</em> </code> </td> <td> <div> <p>instance providing a controller</p> </div> </td> </tr> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your provider, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add17presenterProvider8priorityy0A5_Core09PresenterF0_p_SitF"></a> <a name="//apple_ref/swift/Method/add(presenterProvider:priority:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add17presenterProvider8priorityy0A5_Core09PresenterF0_p_SitF">add(presenterProvider:priority:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add an instance providing a presenter for a route</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">presenterProvider</span><span class="p">:</span> <span class="kt">PresenterProvider</span><span class="p">,</span> <span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>provider</em> </code> </td> <td> <div> <p>instance providing a presenter</p> </div> </td> </tr> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your provider, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add14optionProvider8priorityy0A5_Core013RoutingOptionF0_p_SitF"></a> <a name="//apple_ref/swift/Method/add(optionProvider:priority:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add14optionProvider8priorityy0A5_Core013RoutingOptionF0_p_SitF">add(optionProvider:priority:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add an instance providing routing options for a route</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">optionProvider</span><span class="p">:</span> <span class="kt">RoutingOptionProvider</span><span class="p">,</span> <span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>optionProvider</em> </code> </td> <td> <div> <p>instance providing routing options for a route</p> </div> </td> </tr> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your provider, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add15routingObserver8priority12routePatterny0A5_Core07RoutingF0_p_SiSSSgtF"></a> <a name="//apple_ref/swift/Method/add(routingObserver:priority:routePattern:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add15routingObserver8priority12routePatterny0A5_Core07RoutingF0_p_SiSSSgtF">add(routingObserver:priority:routePattern:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add an instance observing controllers before they are presented</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">routingObserver</span><span class="p">:</span> <span class="kt">RoutingObserver</span><span class="p">,</span> <span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="nv">routePattern</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>routingObserver</em> </code> </td> <td> <div> <p>An instance observing controllers before they are presented</p> </div> </td> </tr> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your provider, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> <tr> <td> <code> <em>routePattern</em> </code> </td> <td> <div> <p>The route pattern to call this observer, the observer is called for every route if this pattern is nil</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add16routingPresenter8priorityy0A5_Core07RoutingF0_p_SitF"></a> <a name="//apple_ref/swift/Method/add(routingPresenter:priority:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add16routingPresenter8priorityy0A5_Core07RoutingF0_p_SitF">add(routingPresenter:priority:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add an instance responsible for presenting view controllers. It will be triggert after the wireframe resolves a route</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">routingPresenter</span><span class="p">:</span> <span class="kt">RoutingPresenter</span><span class="p">,</span><span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>routingPresenter</em> </code> </td> <td> <div> <p>An instance responsible for presenting view controllers</p> </div> </td> </tr> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your provider, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add21topControllerResolver8priorityy0A5_Core03TopfG0_p_SitF"></a> <a name="//apple_ref/swift/Method/add(topControllerResolver:priority:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add21topControllerResolver8priorityy0A5_Core03TopfG0_p_SitF">add(topControllerResolver:priority:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add a instance responsible for finding the top view controller on an other vc</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">topControllerResolver</span><span class="p">:</span> <span class="kt">TopControllerResolver</span><span class="p">,</span> <span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>topControllerResolver</em> </code> </td> <td> <div> <p>instance responsible for finding the top view controller on an other vc</p> </div> </td> </tr> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your provider, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C3add18controllerDimisser8priorityy0A5_Core19ControllerDismisser_p_SitF"></a> <a name="//apple_ref/swift/Method/add(controllerDimisser:priority:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C3add18controllerDimisser8priorityy0A5_Core19ControllerDismisser_p_SitF">add(controllerDimisser:priority:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add an instance responsible for dismissing controllers</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">controllerDimisser</span><span class="p">:</span> <span class="kt">ControllerDismisser</span><span class="p">,</span> <span class="nv">priority</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>controllerDimisser</em> </code> </td> <td> <div> <p>an instance responsible for dismissing controllers</p> </div> </td> </tr> <tr> <td> <code> <em>priority</em> </code> </td> <td> <div> <p>The priority for calling your dismisser, higher priorities are called first. (Defaults to 0)</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C10navigateOnyySo16UIViewControllerCF"></a> <a name="//apple_ref/swift/Method/navigateOn(_:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C10navigateOnyySo16UIViewControllerCF">navigateOn(_:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Add a controller that can be used to navigate in your app. Typically this will be a UINavigationController, but it could also be a UITabbarController if you have a routing presenter that can handle it. Be careful you can add more than one viewControllers if your RoutingPresenters can handle different controller types or when the active &lsquo;rootController&rsquo; changes. The last added controller will be used first. The controller will not be retained by the application (it is weakly stored), you need to store a link to them elsewhere (if you don&rsquo;t want them to be removed from memory).</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">navigateOn</span><span class="p">(</span><span class="n">_</span> <span class="nv">controller</span><span class="p">:</span> <span class="kt">UIViewController</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>controller</em> </code> </td> <td> <div> <p>a controller that can be used to navigte in your app</p> </div> </td> </tr> </tbody> </table> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C20controllerToNavigate7matchesSo16UIViewControllerCSgSbAHXE_tF"></a> <a name="//apple_ref/swift/Method/controllerToNavigate(matches:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C20controllerToNavigate7matchesSo16UIViewControllerCSgSbAHXE_tF">controllerToNavigate(matches:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>return the first navigatableController that matches in a block</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">controllerToNavigate</span><span class="p">(</span><span class="nv">matches</span><span class="p">:</span> <span class="p">(</span><span class="kt">UIViewController</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIViewController</span><span class="p">?</span></code></pre> </div> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:16VISPER_Wireframe07DefaultB0C6remove10controllerySo16UIViewControllerC_tF"></a> <a name="//apple_ref/swift/Method/remove(controller:)" class="dashAnchor"></a> <a class="token" href="#/s:16VISPER_Wireframe07DefaultB0C6remove10controllerySo16UIViewControllerC_tF">remove(controller:)</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>delegate removement of a controller to navigate</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">remove</span><span class="p">(</span><span class="nv">controller</span><span class="p">:</span> <span class="kt">UIViewController</span><span class="p">)</span></code></pre> </div> </div> </section> </div> </li> </ul> </div> </section> </section> <section id="footer"> <p>&copy; 2019 <a class="link" href="https://github.com/barteljan/VISPER" target="_blank" rel="external">Jan Bartel</a>. All rights reserved. (Last updated: 2019-02-06)</p> <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p> </section> </article> </div> </body> </div> </html>
{'content_hash': 'e317ab4e73a6baeb645c87b636abad0c', 'timestamp': '', 'source': 'github', 'line_count': 1341, 'max_line_length': 689, 'avg_line_length': 55.69425801640567, 'alnum_prop': 0.45072704389042123, 'repo_name': 'barteljan/VISPER', 'id': 'c1b6dbaf6f77d11f576cd4d9d843ff8c9e9da188', 'size': '74690', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'docs/VISPER-Wireframe/Classes/DefaultWireframe.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '208'}, {'name': 'Objective-C', 'bytes': '96183'}, {'name': 'Ruby', 'bytes': '14412'}, {'name': 'Shell', 'bytes': '969'}, {'name': 'Swift', 'bytes': '845065'}]}
github
0
package db import "time" type Session struct { ID int `db:"id" json:"id"` UserID int `db:"user_id" json:"user_id"` Created time.Time `db:"created" json:"created"` LastActive time.Time `db:"last_active" json:"last_active"` IP string `db:"ip" json:"ip"` UserAgent string `db:"user_agent" json:"user_agent"` Expired bool `db:"expired" json:"expired"` }
{'content_hash': '418ee18e1dd76724fbf35155b8676856', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 59, 'avg_line_length': 31.46153846153846, 'alnum_prop': 0.5990220048899756, 'repo_name': 'vyulabs/semaphore', 'id': '2169433e6e22c96ee3de59545dd9377348a8a919', 'size': '409', 'binary': False, 'copies': '1', 'ref': 'refs/heads/develop', 'path': 'db/Session.go', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '32372'}, {'name': 'Dockerfile', 'bytes': '718'}, {'name': 'Go', 'bytes': '117384'}, {'name': 'HTML', 'bytes': '30410'}, {'name': 'JavaScript', 'bytes': '54851'}, {'name': 'Shell', 'bytes': '13453'}, {'name': 'TSQL', 'bytes': '4061'}]}
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 (1.8.0_151) on Wed Jul 17 13:50:51 MST 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Interface org.wildfly.swarm.config.jmx.JMXRemotingConnectorSupplier (BOM: * : All 2.5.0.Final API)</title> <meta name="date" content="2019-07-17"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Interface org.wildfly.swarm.config.jmx.JMXRemotingConnectorSupplier (BOM: * : All 2.5.0.Final API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <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><a href="../../../../../../org/wildfly/swarm/config/jmx/JMXRemotingConnectorSupplier.html" title="interface in org.wildfly.swarm.config.jmx">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../overview-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 class="aboutLanguage">Thorntail API, 2.5.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/wildfly/swarm/config/jmx/class-use/JMXRemotingConnectorSupplier.html" target="_top">Frames</a></li> <li><a href="JMXRemotingConnectorSupplier.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Interface org.wildfly.swarm.config.jmx.JMXRemotingConnectorSupplier" class="title">Uses of Interface<br>org.wildfly.swarm.config.jmx.JMXRemotingConnectorSupplier</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../org/wildfly/swarm/config/jmx/JMXRemotingConnectorSupplier.html" title="interface in org.wildfly.swarm.config.jmx">JMXRemotingConnectorSupplier</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.wildfly.swarm.config">org.wildfly.swarm.config</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.wildfly.swarm.config"> <!-- --> </a> <h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/jmx/JMXRemotingConnectorSupplier.html" title="interface in org.wildfly.swarm.config.jmx">JMXRemotingConnectorSupplier</a> in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a> with parameters of type <a href="../../../../../../org/wildfly/swarm/config/jmx/JMXRemotingConnectorSupplier.html" title="interface in org.wildfly.swarm.config.jmx">JMXRemotingConnectorSupplier</a></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> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/JMX.html" title="type parameter in JMX">T</a></code></td> <td class="colLast"><span class="typeNameLabel">JMX.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/JMX.html#jmxRemotingConnector-org.wildfly.swarm.config.jmx.JMXRemotingConnectorSupplier-">jmxRemotingConnector</a></span>(<a href="../../../../../../org/wildfly/swarm/config/jmx/JMXRemotingConnectorSupplier.html" title="interface in org.wildfly.swarm.config.jmx">JMXRemotingConnectorSupplier</a>&nbsp;supplier)</code> <div class="block">A JBoss remoting connector for the JMX subsystem.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <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><a href="../../../../../../org/wildfly/swarm/config/jmx/JMXRemotingConnectorSupplier.html" title="interface in org.wildfly.swarm.config.jmx">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../overview-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 class="aboutLanguage">Thorntail API, 2.5.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/wildfly/swarm/config/jmx/class-use/JMXRemotingConnectorSupplier.html" target="_top">Frames</a></li> <li><a href="JMXRemotingConnectorSupplier.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2019 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p> </body> </html>
{'content_hash': '10f823f81577bc80d45b8e6d7f4ac7c6', 'timestamp': '', 'source': 'github', 'line_count': 170, 'max_line_length': 463, 'avg_line_length': 44.36470588235294, 'alnum_prop': 0.6466454521347123, 'repo_name': 'wildfly-swarm/wildfly-swarm-javadocs', 'id': '604d0329eb0e9af7c63fe22a7c7dce2935e42fc5', 'size': '7542', 'binary': False, 'copies': '1', 'ref': 'refs/heads/gh-pages', 'path': '2.5.0.Final/apidocs/org/wildfly/swarm/config/jmx/class-use/JMXRemotingConnectorSupplier.html', 'mode': '33188', 'license': 'apache-2.0', 'language': []}
github
0
#define HARNESS_DEFINE_PRIVATE_PUBLIC 1 #include "harness_inject_scheduler.h" #define private public #define protected public #include "tbb/concurrent_queue.h" #include "../tbb/concurrent_queue.cpp" #undef protected #undef private #include "harness.h" #if _MSC_VER==1500 && !__INTEL_COMPILER // VS2008/VC9 seems to have an issue; limits pull in math.h #pragma warning( push ) #pragma warning( disable: 4985 ) #endif #include <limits> #if _MSC_VER==1500 && !__INTEL_COMPILER #pragma warning( pop ) #endif template <typename Q> class FloggerBody : NoAssign { Q& q; size_t elem_num; public: FloggerBody(Q& q_, size_t elem_num_) : q(q_), elem_num(elem_num_) {} void operator()(const int threadID) const { typedef typename Q::value_type value_type; value_type elem = value_type(threadID); for (size_t i = 0; i < elem_num; ++i) { q.push(elem); (void) q.try_pop(elem); } } }; template <typename Q> void TestFloggerHelp(Q& q, size_t items_per_page) { size_t nq = q.my_rep->n_queue; size_t reserved_elem_num = nq * items_per_page - 1; size_t hack_val = std::numeric_limits<std::size_t>::max() & ~reserved_elem_num; q.my_rep->head_counter = hack_val; q.my_rep->tail_counter = hack_val; size_t k = q.my_rep->tail_counter & -(ptrdiff_t)nq; for (size_t i=0; i<nq; ++i) { q.my_rep->array[i].head_counter = k; q.my_rep->array[i].tail_counter = k; } NativeParallelFor(MaxThread, FloggerBody<Q>(q, reserved_elem_num + 20)); // to induce the overflow occurrence ASSERT(q.empty(), "FAILED flogger/empty test."); ASSERT(q.my_rep->head_counter < hack_val, "FAILED wraparound test."); } template <typename T> void TestFlogger() { { tbb::concurrent_queue<T> q; REMARK("Wraparound on strict_ppl::concurrent_queue..."); TestFloggerHelp(q, q.my_rep->items_per_page); REMARK(" works.\n"); } { tbb::concurrent_bounded_queue<T> q; REMARK("Wraparound on tbb::concurrent_bounded_queue..."); TestFloggerHelp(q, q.items_per_page); REMARK(" works.\n"); } } void TestWraparound() { REMARK("Testing Wraparound...\n"); TestFlogger<int>(); TestFlogger<unsigned char>(); REMARK("Done Testing Wraparound.\n"); } int TestMain () { TestWraparound(); return Harness::Done; }
{'content_hash': 'f3f60fdc5a9b3b91048896a222e53cb0', 'timestamp': '', 'source': 'github', 'line_count': 83, 'max_line_length': 113, 'avg_line_length': 28.879518072289155, 'alnum_prop': 0.6211931581143095, 'repo_name': '01org/tbb', 'id': '7460c59f193909df02fa7fdf17c29eecf91c0cfc', 'size': '3009', 'binary': False, 'copies': '2', 'ref': 'refs/heads/tbb_2019', 'path': 'src/test/test_concurrent_queue_whitebox.cpp', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Assembly', 'bytes': '111802'}, {'name': 'Batchfile', 'bytes': '4744'}, {'name': 'C', 'bytes': '387287'}, {'name': 'C++', 'bytes': '5715782'}, {'name': 'CMake', 'bytes': '35050'}, {'name': 'HTML', 'bytes': '50905'}, {'name': 'JavaScript', 'bytes': '10788'}, {'name': 'Makefile', 'bytes': '25590'}, {'name': 'PHP', 'bytes': '6430'}, {'name': 'Python', 'bytes': '59167'}, {'name': 'Shell', 'bytes': '26811'}, {'name': 'SourcePawn', 'bytes': '8917'}]}
github
0
require 'bcrypt' require 'ditty/models/base' require 'omniauth-identity' require 'active_support' require 'active_support/core_ext/object/blank' module Ditty class Identity < ::Sequel::Model include ::Ditty::Base many_to_one :user attr_accessor :password, :password_confirmation # OmniAuth Related include OmniAuth::Identity::Model def self.locate(conditions) where(conditions).first end def authenticate(unencrypted) return false if crypted_password.blank? self if ::BCrypt::Password.new(crypted_password) == unencrypted end def persisted? !new? && @destroyed != true end # Return whatever we want to pass to the omniauth hash here def info { email: username } end def uid user&.id end # Validation def validate super validates_presence :username unless username.blank? validates_unique :username validates_format(/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i, :username) end if password_required validates_presence :password validates_presence :password_confirmation validates_format( # 1 Uppercase # 1 lowercase # 1 Special Character # 1 Number # At least 8 characters %r[\A(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#&$*)(}{%^=_+|\\:";'<>,.\-/?\[\]])(?=.*[0-9]).{8,}\Z], :password, message: 'is not strong enough' ) end errors.add(:password_confirmation, 'must match password') if !password.blank? && password != password_confirmation end # Callbacks def before_save super encrypt_password unless password == '' || password.nil? end private def encrypt_password self.crypted_password = ::BCrypt::Password.create(password) end def password_required crypted_password.blank? || !password.blank? end end end
{'content_hash': '842b8b570c09ebf42aae952e8fd0d19d', 'timestamp': '', 'source': 'github', 'line_count': 85, 'max_line_length': 120, 'avg_line_length': 23.28235294117647, 'alnum_prop': 0.5891864578069732, 'repo_name': 'EagerELK/ditty', 'id': 'c67f110f9197a03e2d65cb4eecc6442615fdd002', 'size': '2010', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'lib/ditty/models/identity.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '342'}, {'name': 'Dockerfile', 'bytes': '340'}, {'name': 'HTML', 'bytes': '5894'}, {'name': 'Haml', 'bytes': '72610'}, {'name': 'JavaScript', 'bytes': '46'}, {'name': 'Ruby', 'bytes': '134448'}]}
github
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>statsmodels.tsa.ar_model.AR.hessian &#8212; statsmodels 0.9.0 documentation</title> <link rel="stylesheet" href="../_static/nature.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript" src="../_static/documentation_options.js"></script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <link rel="shortcut icon" href="../_static/statsmodels_hybi_favico.ico"/> <link rel="author" title="About these documents" href="../about.html" /> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="statsmodels.tsa.ar_model.AR.information" href="statsmodels.tsa.ar_model.AR.information.html" /> <link rel="prev" title="statsmodels.tsa.ar_model.AR.from_formula" href="statsmodels.tsa.ar_model.AR.from_formula.html" /> <link rel="stylesheet" href="../_static/examples.css" type="text/css" /> <link rel="stylesheet" href="../_static/facebox.css" type="text/css" /> <script type="text/javascript" src="../_static/scripts.js"> </script> <script type="text/javascript" src="../_static/facebox.js"> </script> <script type="text/javascript"> $.facebox.settings.closeImage = "../_static/closelabel.png" $.facebox.settings.loadingImage = "../_static/loading.gif" </script> </head><body> <div class="headerwrap"> <div class = "header"> <a href = "../index.html"> <img src="../_static/statsmodels_hybi_banner.png" alt="Logo" style="padding-left: 15px"/></a> </div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="statsmodels.tsa.ar_model.AR.information.html" title="statsmodels.tsa.ar_model.AR.information" accesskey="N">next</a> |</li> <li class="right" > <a href="statsmodels.tsa.ar_model.AR.from_formula.html" title="statsmodels.tsa.ar_model.AR.from_formula" accesskey="P">previous</a> |</li> <li><a href ="../install.html">Install</a></li> &nbsp;|&nbsp; <li><a href="https://groups.google.com/forum/?hl=en#!forum/pystatsmodels">Support</a></li> &nbsp;|&nbsp; <li><a href="https://github.com/statsmodels/statsmodels/issues">Bugs</a></li> &nbsp;|&nbsp; <li><a href="../dev/index.html">Develop</a></li> &nbsp;|&nbsp; <li><a href="../examples/index.html">Examples</a></li> &nbsp;|&nbsp; <li><a href="../faq.html">FAQ</a></li> &nbsp;|&nbsp; <li class="nav-item nav-item-1"><a href="../tsa.html" >Time Series analysis <code class="docutils literal notranslate"><span class="pre">tsa</span></code></a> |</li> <li class="nav-item nav-item-2"><a href="statsmodels.tsa.ar_model.AR.html" accesskey="U">statsmodels.tsa.ar_model.AR</a> |</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="statsmodels-tsa-ar-model-ar-hessian"> <h1>statsmodels.tsa.ar_model.AR.hessian<a class="headerlink" href="#statsmodels-tsa-ar-model-ar-hessian" title="Permalink to this headline">¶</a></h1> <dl class="method"> <dt id="statsmodels.tsa.ar_model.AR.hessian"> <code class="descclassname">AR.</code><code class="descname">hessian</code><span class="sig-paren">(</span><em>params</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/statsmodels/tsa/ar_model.html#AR.hessian"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#statsmodels.tsa.ar_model.AR.hessian" title="Permalink to this definition">¶</a></dt> <dd><p>Returns numerical hessian for now.</p> </dd></dl> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="statsmodels.tsa.ar_model.AR.from_formula.html" title="previous chapter">statsmodels.tsa.ar_model.AR.from_formula</a></p> <h4>Next topic</h4> <p class="topless"><a href="statsmodels.tsa.ar_model.AR.information.html" title="next chapter">statsmodels.tsa.ar_model.AR.information</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/generated/statsmodels.tsa.ar_model.AR.hessian.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3>Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="footer" role="contentinfo"> &#169; Copyright 2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.4. </div> </body> </html>
{'content_hash': '122b3b07145ab2259da37807db9c67c5', 'timestamp': '', 'source': 'github', 'line_count': 133, 'max_line_length': 404, 'avg_line_length': 47.46616541353384, 'alnum_prop': 0.6356724219863773, 'repo_name': 'statsmodels/statsmodels.github.io', 'id': '21ceb90ab0980cf0ca37e6f21d74f7e7a8b94952', 'size': '6317', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': '0.9.0/generated/statsmodels.tsa.ar_model.AR.hessian.html', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}
github
0
intelli.categories = function() { var vUrl = 'controller.php?file=categories'; return { oGrid: null, vUrl: vUrl, statusesStore: new Ext.data.SimpleStore( { fields: ['value', 'display'], data : [ ['active', 'active'], ['approval', 'approval'] ] }), statusesStoreFilter: new Ext.data.SimpleStore( { fields: ['value', 'display'], data : [ ['all', intelli.admin.lang._status_], ['active', intelli.admin.lang.active], ['approval', intelli.admin.lang.approval] ] }), pagingStore: new Ext.data.SimpleStore( { fields: ['value', 'display'], data : [['10', '10'],['20', '20'],['30', '30'],['40', '40'],['50', '50']] }) }; }(); var expander = new Ext.grid.RowExpander( { tpl : new Ext.Template('<p>{description}</p>') }); intelli.exGModel = Ext.extend(intelli.gmodel, { constructor: function(config) { intelli.exGModel.superclass.constructor.apply(this, arguments); }, setupReader: function() { this.record = Ext.data.Record.create([ {name: 'title', mapping: 'title'}, {name: 'path', mapping: 'path'}, {name: 'description', mapping: 'description'}, {name: 'status', mapping: 'status'}, {name: 'order', mapping: 'order'}, {name: 'level', mapping: 'level'}, {name: 'clicks', mapping: 'clicks'}, {name: 'edit', mapping: 'edit'}, {name: 'remove', mapping: 'remove'} ]); this.reader = new Ext.data.JsonReader({ root: 'data', totalProperty: 'total', id: 'id' }, this.record ); return this.reader; }, setupColumnModel: function() { this.columnModel = new Ext.grid.ColumnModel([ this.checkColumn, expander, { header: intelli.admin.lang.title, dataIndex: 'title', sortable: true, width: 350 },{ header: intelli.admin.lang.path, dataIndex: 'path', sortable: true, width: 250 },{ header: intelli.admin.lang.status, dataIndex: 'status', sortable: true, width: 100, editor: new Ext.form.ComboBox({ typeAhead: true, triggerAction: 'all', forceSelection: true, lazyRender: true, store: intelli.categories.statusesStore, displayField: 'display', valueField: 'value', mode: 'local' }), renderer: function(value, metadata) { metadata.css = value; return value; } },{ header: intelli.admin.lang.order, dataIndex: 'order', sortable: true, width: 60, editor: new Ext.form.TextField({ allowBlank: false }) },{ header: intelli.admin.lang.level, dataIndex: 'level', sortable: true, width: 60 },{ header: intelli.admin.lang.clicks, dataIndex: 'clicks', sortable: true, width: 60, editor: new Ext.form.TextField({ allowBlank: false }) },{ header: "", width: 40, dataIndex: 'edit', hideable: false, menuDisabled: true, align: 'center', renderer: function(value, metadata) { return '<img class="grid_action" alt="'+ intelli.admin.lang.edit +'" title="'+ intelli.admin.lang.edit +'" src="templates/'+ intelli.config.admin_tmpl +'/img/icons/edit-grid-ico.png" />'; } },{ header: "", width: 40, dataIndex: 'remove', hideable: false, menuDisabled: true, align: 'center', renderer: function(value, metadata) { return '<img class="grid_action" alt="'+ intelli.admin.lang.remove +'" title="'+ intelli.admin.lang.remove +'" src="templates/'+ intelli.config.admin_tmpl +'/img/icons/remove-grid-ico.png" />'; } }]); return this.columnModel; } }); intelli.exGrid = Ext.extend(intelli.grid, { model: null, constructor: function(config) { intelli.exGrid.superclass.constructor.apply(this, arguments); this.model = new intelli.exGModel({url: config.url}); this.dataStore = this.model.setupDataStore(); this.columnModel = this.model.setupColumnModel(); this.selectionModel = this.model.setupSelectionModel(); this.dataStore.setDefaultSort('level'); }, init: function() { this.plugins = [new Ext.ux.PanelResizer({ minHeight: 100 }), expander]; this.title = intelli.admin.lang.categories; this.renderTo = 'box_categories'; this.setupBaseParams(); this.setupPagingPanel(); this.setupGrid(); this.setEvents(); this.grid.autoExpandColumn = 3; this.loadData(); }, setupPagingPanel: function() { this.topToolbar = new Ext.Toolbar( { items:[ intelli.admin.lang.title + ':', { xtype: 'textfield', id: 'searchTitle', emptyText: 'Title' }, ' ', intelli.admin.lang.status + ':', { xtype: 'combo', typeAhead: true, triggerAction: 'all', forceSelection: true, lazyRender: true, store: intelli.categories.statusesStoreFilter, value: 'all', displayField: 'display', valueField: 'value', mode: 'local', id: 'stsFilter' }, { text: intelli.admin.lang.search, iconCls: 'search-grid-ico', id: 'fltBtn', handler: function() { var status = Ext.getCmp('stsFilter').getValue(); var title = Ext.getCmp('searchTitle').getValue(); if('all' != status || '' != title) { intelli.categories.oGrid.dataStore.baseParams = { action: 'get', status: status, title: title }; intelli.categories.oGrid.dataStore.reload(); } } }, '-', { text: intelli.admin.lang.reset, id: 'resetBtn', handler: function() { //Ext.getCmp('stsFilter').reset(); Ext.getCmp('stsFilter').setValue('all'); Ext.getCmp('searchTitle').reset(); intelli.categories.oGrid.dataStore.baseParams = { action: 'get', status: '', title: '' }; intelli.categories.oGrid.dataStore.reload(); } } ] }); /* * Bottom toolbar */ this.bottomToolbar = new Ext.PagingToolbar( { store: this.dataStore, autoScroll: true, pageSize: 20, displayInfo: true, plugins: new Ext.ux.ProgressBarPager(), items: [ '-', intelli.admin.lang.items_per_page + ':', { xtype: 'bettercombo', typeAhead: true, triggerAction: 'all', forceSelection: true, lazyRender: true, width: 80, store: intelli.categories.pagingStore, value: '20', displayField: 'display', valueField: 'value', mode: 'local', id: 'pgnPnl' }, '-', intelli.admin.lang.status + ':', { xtype: 'combo', typeAhead: true, triggerAction: 'all', forceSelection: true, lazyRender: true, store: intelli.categories.statusesStore, width: 80, value: 'active', displayField: 'display', valueField: 'value', mode: 'local', disabled: true, id: 'statusCmb' }, { text: intelli.admin.lang['do'], disabled: true, iconCls: 'go-grid-ico', id: 'goBtn', handler: function() { var rows = intelli.categories.oGrid.grid.getSelectionModel().getSelections(); var status = Ext.getCmp('statusCmb').getValue(); var ids = new Array(); for(var i = 0; i < rows.length; i++) { ids[i] = rows[i].json.id; } Ext.Ajax.request( { url: intelli.categories.vUrl, method: 'POST', params: { action: 'update', 'ids[]': ids, field: 'status', value: status }, failure: function() { Ext.MessageBox.alert(intelli.admin.lang.error_saving_changes); }, success: function(data) { intelli.categories.oGrid.grid.getStore().reload(); var response = Ext.decode(data.responseText); var type = response.error ? 'error' : 'notif'; intelli.admin.notifBox({msg: response.msg, type: type, autohide: true}); } }); } }, '-', { text: intelli.admin.lang.remove, id: 'removeBtn', iconCls: 'remove-grid-ico', disabled: true, handler: function() { var rows = intelli.categories.oGrid.grid.getSelectionModel().getSelections(); var ids = new Array(); for(var i = 0; i < rows.length; i++) { ids[i] = rows[i].json.id; } Ext.Msg.show( { title: intelli.admin.lang.confirm, msg: (ids.length > 1) ? intelli.admin.lang.are_you_sure_to_delete_selected_categories : intelli.admin.lang.are_you_sure_to_delete_this_category, buttons: Ext.Msg.YESNO, icon: Ext.Msg.QUESTION, fn: function(btn) { if('yes' == btn) { Ext.Ajax.request( { url: intelli.categories.vUrl, method: 'POST', params: { action: 'remove', 'ids[]': ids }, failure: function() { Ext.MessageBox.alert(intelli.admin.lang.error_saving_changes); }, success: function(data) { var response = Ext.decode(data.responseText); var type = response.error ? 'error' : 'notif'; intelli.admin.notifBox({msg: response.msg, type: type, autohide: true}); intelli.categories.oGrid.grid.getStore().reload(); Ext.getCmp('statusCmb').disable(); Ext.getCmp('goBtn').disable(); Ext.getCmp('removeBtn').disable(); } }); } } }); } } ] }); }, setupBaseParams: function() { var params = new Object(); var status = intelli.urlVal('status'); var quick_search = null; if (intelli.urlVal('quick_search')) { quick_search = intelli.urlVal('quick_search').replace('+',' '); } params.action = 'get'; if(null != status) { params.status = status; } if(null != quick_search) { params.title = quick_search; } this.dataStore.baseParams = params; }, setEvents: function() { /* * Events */ /* Edit fields */ intelli.categories.oGrid.grid.on('afteredit', function(editEvent) { Ext.Ajax.request( { url: intelli.categories.vUrl, method: 'POST', params: { action: 'update', 'ids[]': editEvent.record.id, field: editEvent.field, value: editEvent.value }, failure: function() { Ext.MessageBox.alert(intelli.admin.lang.error_saving_changes); }, success: function(data) { editEvent.grid.getStore().reload(); var response = Ext.decode(data.responseText); var type = response.error ? 'error' : 'notif'; intelli.admin.notifBox({msg: response.msg, type: type, autohide: true}); } }); }); /* Edit and remove click */ intelli.categories.oGrid.grid.on('cellclick', function(grid, rowIndex, columnIndex) { var record = grid.getStore().getAt(rowIndex); var fieldName = grid.getColumnModel().getDataIndex(columnIndex); var data = record.get(fieldName); if('edit' == fieldName) { intelli.categories.oGrid.saveGridState(); window.location = 'controller.php?file=suggest-category&do=edit&id='+ record.json.id; } if('remove' == fieldName) { Ext.Msg.show( { title: intelli.admin.lang.confirm, msg: intelli.admin.lang.are_you_sure_to_delete_this_category, buttons: Ext.Msg.YESNO, icon: Ext.Msg.QUESTION, fn: function(btn) { if('yes' == btn) { Ext.Ajax.request( { url: intelli.categories.vUrl, method: 'POST', params: { action: 'remove', 'ids[]': record.json.id }, failure: function() { Ext.MessageBox.alert(intelli.admin.lang.error_saving_changes); }, success: function(data) { var response = Ext.decode(data.responseText); var type = response.error ? 'error' : 'notif'; intelli.admin.notifBox({msg: response.msg, type: type, autohide: true}); Ext.getCmp('statusCmb').disable(); Ext.getCmp('goBtn').disable(); Ext.getCmp('removeBtn').disable(); grid.getStore().reload(); } }); } } }); } }); /* Enable disable functionality buttons */ intelli.categories.oGrid.grid.getSelectionModel().on('rowselect', function() { Ext.getCmp('statusCmb').enable(); Ext.getCmp('goBtn').enable(); Ext.getCmp('removeBtn').enable(); }); intelli.categories.oGrid.grid.getSelectionModel().on('rowdeselect', function(sm) { if(0 == sm.getCount()) { Ext.getCmp('statusCmb').disable(); Ext.getCmp('goBtn').disable(); Ext.getCmp('removeBtn').disable(); } }); /* Paging panel event */ Ext.getCmp('pgnPnl').on('change', function(field, new_value, old_value) { intelli.categories.oGrid.grid.getStore().lastOptions.params.limit = new_value; intelli.categories.oGrid.grid.bottomToolbar.pageSize = parseInt(new_value); intelli.categories.oGrid.grid.getStore().reload(); }); } }); Ext.onReady(function() { if(Ext.get('box_categories')) { intelli.categories.oGrid = new intelli.exGrid({url: intelli.categories.vUrl}); /* Initialization grid */ intelli.categories.oGrid.init(); if(intelli.urlVal('status')) { Ext.getCmp('stsFilter').setValue(intelli.urlVal('status')); } if(intelli.urlVal('quick_search')) { Ext.getCmp('searchTitle').setValue(intelli.urlVal('quick_search').replace('+', ' ')); } } });
{'content_hash': 'bff06aebaafa67ef2f4e3a5b0f9c7f0b', 'timestamp': '', 'source': 'github', 'line_count': 572, 'max_line_length': 197, 'avg_line_length': 23.346153846153847, 'alnum_prop': 0.582522090759323, 'repo_name': 'imaschio/xkvmt', 'id': 'dc425f57992810c2c864589a73d547afbdfdf4ba', 'size': '13354', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'js/admin/categories.js', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'ApacheConf', 'bytes': '1203'}, {'name': 'CSS', 'bytes': '930652'}, {'name': 'HTML', 'bytes': '126151'}, {'name': 'JavaScript', 'bytes': '1759063'}, {'name': 'PHP', 'bytes': '4783277'}, {'name': 'Shell', 'bytes': '583'}, {'name': 'Smarty', 'bytes': '452012'}]}
github
0
package com.google.javascript.jscomp.bundle; import static com.google.common.truth.Truth.assertThat; import static org.mockito.Answers.RETURNS_SMART_NULLS; import static org.mockito.Mockito.when; import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.ImmutableList; import com.google.javascript.jscomp.JSError; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.mockito.Mock; import org.mockito.MockitoAnnotations; /** Tests for {@link Transpiler}. */ @GwtIncompatible @RunWith(JUnit4.class) public final class TranspilerTest { private Source.Transformer transpiler; private Transpiler.CompilerSupplier compiler; @Mock(answer = RETURNS_SMART_NULLS) Transpiler.CompilerSupplier mockCompiler; private static final Path FOO_JS = Paths.get("foo.js"); private static final Path SOURCE_JS = Paths.get("source.js"); private static final ImmutableList<JSError> NO_ERRORS = ImmutableList.of(); @Before public void setUp() { MockitoAnnotations.initMocks(this); transpiler = new Transpiler(mockCompiler, "es6_runtime"); compiler = Transpiler.compilerSupplier(); } // Tests for Transpiler @Test public void testTranspiler_transpile() { when(mockCompiler.runtime("es6_runtime")).thenReturn("$jscomp.es6();"); when(mockCompiler.compile(FOO_JS, "bar")) .thenReturn(new Transpiler.CompileResult("result", NO_ERRORS, true, "srcmap")); assertThat(transpiler.transform(source(FOO_JS, "bar"))) .isEqualTo( Source.builder() .setPath(FOO_JS) .setOriginalCode("bar") .setCode("result") .setSourceMap("srcmap") .addRuntime("$jscomp.es6();") .build()); } @Test public void testTranspiler_noTranspilation() { when(mockCompiler.compile(FOO_JS, "bar")) .thenReturn(new Transpiler.CompileResult("result", NO_ERRORS, false, "srcmap")); assertThat(transpiler.transform(source(FOO_JS, "bar"))).isEqualTo(source(FOO_JS, "bar")); } private static Source source(Path path, String code) { return Source.builder().setPath(path).setCode(code).build(); } // Tests for CompilerSupplier @Test public void testCompilerSupplier_compileChanged() { Transpiler.CompileResult result = compiler.compile(SOURCE_JS, "const x = () => 42;"); assertThat(result.source).isEqualTo("var x = function() {\n return 42;\n};\n"); assertThat(result.errors).isEmpty(); assertThat(result.transformed).isTrue(); assertThat(result.sourceMap) .contains("\"mappings\":\"AAAA,IAAMA,IAAIA,QAAA,EAAM;AAAA,SAAA,EAAA;AAAA,CAAhB;;\""); } @Test public void testCompilerSupplier_compileNoChange() { Transpiler.CompileResult result = compiler.compile(SOURCE_JS, "var x = 42;"); assertThat(result.source).isEqualTo("var x = 42;\n"); assertThat(result.errors).isEmpty(); assertThat(result.transformed).isFalse(); assertThat(result.sourceMap).isEmpty(); } @Test public void testCompilerSupplier_runtime() { String runtime = compiler.runtime("es6_runtime"); assertThat(runtime).contains("$jscomp.polyfill(\"Map\""); assertThat(runtime).contains("$jscomp.makeIterator"); assertThat(runtime).contains("$jscomp.inherits"); } }
{'content_hash': '681ea2e0da4b30352d068574625ed3df', 'timestamp': '', 'source': 'github', 'line_count': 100, 'max_line_length': 93, 'avg_line_length': 34.13, 'alnum_prop': 0.70172868444184, 'repo_name': 'monetate/closure-compiler', 'id': '4086c43b9592d79c387e135153330ea5fb4c2819', 'size': '4025', 'binary': False, 'copies': '8', 'ref': 'refs/heads/master', 'path': 'test/com/google/javascript/jscomp/bundle/TranspilerTest.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'HTML', 'bytes': '3018'}, {'name': 'Java', 'bytes': '20634927'}, {'name': 'JavaScript', 'bytes': '12567965'}, {'name': 'Shell', 'bytes': '3465'}, {'name': 'Smarty', 'bytes': '1826'}, {'name': 'Starlark', 'bytes': '32556'}]}
github
0
#ifndef DIY_PARTNERS_BROADCAST_HPP #define DIY_PARTNERS_BROADCAST_HPP #include "merge.hpp" namespace diy { class Master; /** * \ingroup Communication * \brief Partners for broadcast * */ struct RegularBroadcastPartners: public RegularMergePartners { typedef RegularMergePartners Parent; //!< base class merge reduction //! contiguous parameter indicates whether to match partners contiguously or in a round-robin fashion; //! contiguous is useful when data needs to be united; //! round-robin is useful for vector-"halving" template<class Decomposer> RegularBroadcastPartners(const Decomposer& decomposer, //!< domain decomposition int k, //!< target k value bool contiguous = true //!< distance doubling (true) or halving (false) ): Parent(decomposer, k, contiguous) {} RegularBroadcastPartners(const DivisionVector& divs,//!< explicit division vector const KVSVector& kvs, //!< explicit k vector bool contiguous = true //!< distance doubling (true) or halving (false) ): Parent(divs, kvs, contiguous) {} //! returns total number of rounds size_t rounds() const { return Parent::rounds(); } //! returns size of a group of partners in a given round int size(int round) const { return Parent::size(parent_round(round)); } //! returns dimension (direction of partners in a regular grid) in a given round int dim(int round) const { return Parent::dim(parent_round(round)); } //! returns whether a given block in a given round has dropped out of the merge yet or not inline bool active(int round, int gid, const Master& m) const { return Parent::active(parent_round(round), gid, m); } //! returns what the current round would be in the first or second parent merge reduction int parent_round(int round) const { return rounds() - round; } // incoming is only valid for an active gid; it will only be called with an active gid inline void incoming(int round, int gid, std::vector<int>& partners, const Master& m) const { Parent::outgoing(parent_round(round), gid, partners, m); } inline void outgoing(int round, int gid, std::vector<int>& partners, const Master& m) const { Parent::incoming(parent_round(round), gid, partners, m); } }; } // diy #endif
{'content_hash': 'd7d7ffd1572c7630e0bf9522647f266d', 'timestamp': '', 'source': 'github', 'line_count': 62, 'max_line_length': 121, 'avg_line_length': 44.87096774193548, 'alnum_prop': 0.5769230769230769, 'repo_name': 'keithroe/vtkoptix', 'id': 'd3f565f82d35a1c1c3b2ee81181917efeeae88fd', 'size': '2782', 'binary': False, 'copies': '9', 'ref': 'refs/heads/master', 'path': 'ThirdParty/diy2/vtkdiy2/include/vtkdiy/partners/broadcast.hpp', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Assembly', 'bytes': '37444'}, {'name': 'Batchfile', 'bytes': '106'}, {'name': 'C', 'bytes': '46217717'}, {'name': 'C++', 'bytes': '73779038'}, {'name': 'CMake', 'bytes': '1786055'}, {'name': 'CSS', 'bytes': '7532'}, {'name': 'Cuda', 'bytes': '37418'}, {'name': 'D', 'bytes': '2081'}, {'name': 'GAP', 'bytes': '14120'}, {'name': 'GLSL', 'bytes': '222494'}, {'name': 'Groff', 'bytes': '65394'}, {'name': 'HTML', 'bytes': '193016'}, {'name': 'Java', 'bytes': '148789'}, {'name': 'JavaScript', 'bytes': '54139'}, {'name': 'Lex', 'bytes': '50109'}, {'name': 'M4', 'bytes': '159710'}, {'name': 'Makefile', 'bytes': '275672'}, {'name': 'Objective-C', 'bytes': '22779'}, {'name': 'Objective-C++', 'bytes': '191216'}, {'name': 'Perl', 'bytes': '173168'}, {'name': 'Prolog', 'bytes': '4406'}, {'name': 'Python', 'bytes': '15765617'}, {'name': 'Shell', 'bytes': '88087'}, {'name': 'Slash', 'bytes': '1476'}, {'name': 'Smarty', 'bytes': '393'}, {'name': 'Tcl', 'bytes': '1404085'}, {'name': 'Yacc', 'bytes': '191144'}]}
github
0
package com.amazonaws.services.config.model; import com.amazonaws.AmazonServiceException; /** * <p> * The specified nextToken for pagination is not valid. * </p> */ public class InvalidNextTokenException extends AmazonServiceException { private static final long serialVersionUID = 1L; /** * Constructs a new InvalidNextTokenException with the specified error * message. * * @param message Describes the error encountered. */ public InvalidNextTokenException(String message) { super(message); } }
{'content_hash': '1f6c0df3925a9f4658ac4c851830dc73', 'timestamp': '', 'source': 'github', 'line_count': 25, 'max_line_length': 74, 'avg_line_length': 23.04, 'alnum_prop': 0.6805555555555556, 'repo_name': 'keithsjohnson/aws-sdk-java', 'id': '913d96f2d942d804caa986d535bd82f77b75f630', 'size': '1163', 'binary': False, 'copies': '9', 'ref': 'refs/heads/master', 'path': 'aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/InvalidNextTokenException.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '86451563'}, {'name': 'Scilab', 'bytes': '2260'}]}
github
0
require "chef/dsl/recipe" require "chef/dsl/data_query" require "chef/dsl/platform_introspection" require "chef/dsl/include_recipe" require "chef/dsl/registry_helper" require "chef/dsl/reboot_pending" require "chef/dsl/audit" require "chef/dsl/powershell" require "chef/mixin/from_file" require "chef/mixin/deprecation" class Chef # == Chef::Recipe # A Recipe object is the context in which Chef recipes are evaluated. class Recipe attr_accessor :cookbook_name, :recipe_name, :recipe, :params, :run_context include Chef::DSL::Recipe include Chef::Mixin::FromFile include Chef::Mixin::Deprecation # Parses a potentially fully-qualified recipe name into its # cookbook name and recipe short name. # # For example: # "aws::elastic_ip" returns [:aws, "elastic_ip"] # "aws" returns [:aws, "default"] # "::elastic_ip" returns [ current_cookbook, "elastic_ip" ] #-- # TODO: Duplicates functionality of RunListItem def self.parse_recipe_name(recipe_name, current_cookbook: nil) case recipe_name when /(.+?)::(.+)/ [ $1.to_sym, $2 ] when /^::(.+)/ raise "current_cookbook is nil, cannot resolve #{recipe_name}" if current_cookbook.nil? [ current_cookbook.to_sym, $1 ] else [ recipe_name.to_sym, "default" ] end end def initialize(cookbook_name, recipe_name, run_context) @cookbook_name = cookbook_name @recipe_name = recipe_name @run_context = run_context # TODO: 5/19/2010 cw/tim: determine whether this can be removed @params = Hash.new end # Used in DSL mixins def node run_context.node end # Used by the DSL to look up resources when executing in the context of a # recipe. def resources(*args) run_context.resource_collection.find(*args) end # This was moved to Chef::Node#tag, redirecting here for compatibility def tag(*tags) run_context.node.tag(*tags) end # Returns true if the node is tagged with *all* of the supplied +tags+. # # === Parameters # tags<Array>:: A list of tags # # === Returns # true<TrueClass>:: If all the parameters are present # false<FalseClass>:: If any of the parameters are missing def tagged?(*tags) tags.each do |tag| return false unless run_context.node.tags.include?(tag) end true end # Removes the list of tags from the node. # # === Parameters # tags<Array>:: A list of tags # # === Returns # tags<Array>:: The current list of run_context.node.tags def untag(*tags) tags.each do |tag| run_context.node.tags.delete(tag) end end end end
{'content_hash': 'd91bd08b05a0174b7c7d4a2227f9fc2c', 'timestamp': '', 'source': 'github', 'line_count': 98, 'max_line_length': 95, 'avg_line_length': 27.877551020408163, 'alnum_prop': 0.6357979502196194, 'repo_name': 'webframp/chef', 'id': '3cc5634dc86d915f86c61734d82beb61fe46f4ec', 'size': '3464', 'binary': False, 'copies': '5', 'ref': 'refs/heads/master', 'path': 'lib/chef/recipe.rb', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '386'}, {'name': 'CSS', 'bytes': '21551'}, {'name': 'Groff', 'bytes': '270663'}, {'name': 'HTML', 'bytes': '539405'}, {'name': 'JavaScript', 'bytes': '49785'}, {'name': 'Makefile', 'bytes': '1326'}, {'name': 'Perl6', 'bytes': '64'}, {'name': 'PowerShell', 'bytes': '12510'}, {'name': 'Python', 'bytes': '9728'}, {'name': 'Ruby', 'bytes': '7725950'}, {'name': 'Shell', 'bytes': '688'}]}
github
0
require 'propeller/blade' def addons blade = Propeller::Blade.new(:to_env => false) addons = blade.addons addons.each do |a| if blade.addon_enabled? a.name a.git.each do |git| begin gem a.name.to_s, :git => git break rescue end end end end end def path_for_addon(addon) Gem::Specification::find_by_name(addon.to_s).gem_dir end
{'content_hash': 'dca484b2c480a32c7d858b318b8d8b6b', 'timestamp': '', 'source': 'github', 'line_count': 23, 'max_line_length': 54, 'avg_line_length': 17.608695652173914, 'alnum_prop': 0.5925925925925926, 'repo_name': 'wilkie/propeller', 'id': '4be9d455d24d1e499943fc463fc178415e948aee', 'size': '405', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'lib/propeller/bundler.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Ruby', 'bytes': '17992'}]}
github
0
package com.loftcat.ui; import java.io.IOException; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.loftcat.R; import com.loftcat.app.AppConfig; import com.loftcat.ui.adapter.ExpandableAdapter; import com.loftcat.ui.adapter.StatusExpandableAdapter; import com.loftcat.ui.utils.PullToRefreshView; import com.loftcat.ui.utils.PullToRefreshView.OnFooterRefreshListener; import com.loftcat.ui.utils.PullToRefreshView.OnHeaderRefreshListener; import com.loftcat.utils.DeviceUtil; import com.loftcat.utils.ImageUtils; import com.loftcat.utils.weibo.AccountManager; import com.loftcat.weibo.sdk.FriendshipsAPI; import com.loftcat.weibo.sdk.StatusesAPI; import com.loftcat.weibo.sdk.UsersAPI; import com.loftcat.weibo.sdk.WeiboAPI.FEATURE; import com.loftcat.weibo.vo.CommentVo; import com.loftcat.weibo.vo.FriendShipVo; import com.loftcat.weibo.vo.StatusVo; import com.loftcat.weibo.vo.UserVO; import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.ImageLoader; import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer; import com.weibo.sdk.android.WeiboException; import com.weibo.sdk.android.net.RequestListener; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.ExpandableListView; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.AbsListView.OnScrollListener; import android.widget.AdapterView.OnItemClickListener; import android.widget.ExpandableListView.OnChildClickListener; import android.widget.ExpandableListView.OnGroupClickListener; import android.widget.ExpandableListView.OnGroupCollapseListener; import android.widget.ExpandableListView.OnGroupExpandListener; public class SelfPageAty extends BaseActivity implements OnHeaderRefreshListener, OnFooterRefreshListener { private DisplayImageOptions options; protected ImageLoader imageLoader = ImageLoader.getInstance(); @Override public void onComplete(String arg0) { // TODO Auto-generated method stub } @Override public void onError(WeiboException arg0) { // TODO Auto-generated method stub } @Override public void onIOException(IOException arg0) { // TODO Auto-generated method stub } private Gson gson; TextView msg; UserVO userVo; ImageView headImage; TextView name; TextView location; TextView fans; TextView focus; TextView statues; ExpandableListView selfaty_listview; StatusesAPI statusesAPI; PullToRefreshView pullToRefreshView; RelativeLayout layout; LinearLayout fansLayout; LinearLayout focusLayout; TextView job; TextView introduce_title; TextView introduce; TextView blog_title; TextView blog; ImageView vip; TextView selfaty_relationship; TextView selfaty_atta; LinearLayout selfaty_relationship_layout; ImageView male; ProgressBar progressBar; @SuppressLint("NewApi") @Override public void initView() { setContentView(R.layout.selfaty); gson= new Gson(); progressBar = (ProgressBar) findViewById(R.id.selfaty_progress); headImage = (ImageView) findViewById(R.id.selfaty_head); name = (TextView) findViewById(R.id.selfaty_name_textview); male = (ImageView) findViewById(R.id.selfaty_male); location = (TextView) findViewById(R.id.selfaty_name_location); fans = (TextView) findViewById(R.id.selfaty_fans_textview); focus = (TextView) findViewById(R.id.selfaty_focus_textview); statues = (TextView) findViewById(R.id.selfaty_statuses_textview); layout = (RelativeLayout) findViewById(R.id.selfaty_layout); selfaty_listview = (ExpandableListView) findViewById(R.id.selfaty_listview); fansLayout = (LinearLayout) findViewById(R.id.selfaty_fans_layout); focusLayout = (LinearLayout) findViewById(R.id.selfaty_focus_layout); vip = (ImageView) findViewById(R.id.selfaty_vip); job = (TextView) findViewById(R.id.selfaty_job); introduce_title = (TextView) findViewById(R.id.selfaty_introduce_title); introduce = (TextView) findViewById(R.id.selfaty_introduce); blog_title = (TextView) findViewById(R.id.selfaty_blog_title); blog = (TextView) findViewById(R.id.selfaty_blog); selfaty_relationship = (TextView) findViewById(R.id.selfaty_relationship); selfaty_atta = (TextView) findViewById(R.id.selfaty_atta); selfaty_relationship_layout = (LinearLayout) findViewById(R.id.selfaty_relationship_layout); if (getIntent().getBooleanExtra("self", false)) { selfaty_relationship.setVisibility(View.GONE); selfaty_atta.setVisibility(View.GONE); selfaty_relationship_layout.setVisibility(View.GONE); } pullToRefreshView = (PullToRefreshView) findViewById(R.id.selfaty_pulltorefreshview); pullToRefreshView.setOnHeaderRefreshListener(this); pullToRefreshView.setOnFooterRefreshListener(this); options = new DisplayImageOptions.Builder() .showStubImage(R.drawable.head_default) .showImageForEmptyUri(R.drawable.head_default).cacheInMemory() .cacheOnDisc().displayer(new RoundedBitmapDisplayer(0)).build(); this.context = this; } String id; int count = 1; FriendshipsAPI friendshipsAPI; @Override public void initLogic() { id = getIntent().getStringExtra("userID"); UsersAPI usrApi = new UsersAPI(utility.getAccessToken()); usrApi.show(Long.parseLong(id), new RequestListener() { @Override public void onIOException(IOException arg0) { // TODO Auto-generated method stub Log.d("RESULT", "onIOException" + arg0.getMessage()); } @Override public void onError(WeiboException arg0) { Log.d("RESULT", "onError" + arg0.getMessage()); } @Override public void onComplete(final String arg0) { if (arg0 != null) { userVo = gson.fromJson(arg0, UserVO.class); if (userVo != null) { runOnUiThread(new Runnable() { @Override public void run() { imageLoader.displayImage( userVo.getAvatar_large(), headImage, options); name.setText(userVo.getName()); location.setText(userVo.getLocation()); fans.setText(String.valueOf(userVo .getFollowers_count())); focus.setText(String.valueOf(userVo .getFriends_count())); statues.setText(String.valueOf(userVo .getStatuses_count())); if (userVo.getGender().equals("m")) { Bitmap bitmap = ImageUtils.getRoundedCornerBitmap( BitmapFactory.decodeResource( getResources(), R.drawable.male), DeviceUtil.dip2px(SelfPageAty.this, 10)); male.setImageBitmap(bitmap); } else if (userVo.getGender().equals("f")) { Bitmap bitmap = ImageUtils.getRoundedCornerBitmap( BitmapFactory.decodeResource( getResources(), R.drawable.female), DeviceUtil.dip2px(SelfPageAty.this, 10)); male.setImageBitmap(bitmap); } else { Bitmap bitmap = ImageUtils.getRoundedCornerBitmap( BitmapFactory.decodeResource( getResources(), R.drawable.haha), 5); male.setImageBitmap(bitmap); } if (userVo.getVerified()) { vip.setImageResource(R.drawable.v); job.setText(userVo.getVerified_reason() == null ? "" : userVo.getVerified_reason()); } else { vip.setVisibility(View.GONE); job.setVisibility(View.GONE); } if (userVo.getDescription() != null && !userVo.getDescription().equals( "")) { introduce_title.setText("简介"); introduce.setText(userVo .getDescription()); } else { introduce_title .setVisibility(View.GONE); introduce.setVisibility(View.GONE); } if (userVo.getUrl() != null && !userVo.getUrl().equals("")) { blog_title.setText("博客"); blog.setText(userVo.getUrl()); } else { blog_title.setVisibility(View.GONE); blog.setVisibility(View.GONE); } } }); } count_progress++; if (count_progress == 3) { runOnUiThread(new Runnable() { public void run() { progressBar.setVisibility(View.INVISIBLE); } }); } } } }); statusesAPI = new StatusesAPI(utility.getAccessToken()); statusesAPI.userTimeline(Long.parseLong(id), 0, 0, 20, count++, false, FEATURE.ALL, false, new RequestListener() { @Override public void onIOException(IOException arg0) { // TODO Auto-generated method stub } @Override public void onError(WeiboException arg0) { // TODO Auto-generated method stub } @Override public void onComplete(String arg0) { Message message = new Message(); message.obj = arg0; message.what = 1; hanlder.sendMessage(message); } }); friendshipsAPI = new FriendshipsAPI(utility.getAccessToken()); friendshipsAPI.show(Long.parseLong(_account.getUid()), Long.parseLong(id), new RequestListener() { @Override public void onIOException(IOException arg0) { Log.d("RESULT", arg0.toString() + "friendShip"); } @Override public void onError(WeiboException arg0) { Log.d("RESULT", arg0.toString() + "friendShip"); } @Override public void onComplete(String arg0) { try { JSONObject jsonObject = new JSONObject(arg0); JSONObject friendShip = jsonObject .getJSONObject("source"); final FriendShipVo friendShipVo = gson.fromJson(friendShip.toString(), FriendShipVo.class); runOnUiThread(new Runnable() { @Override public void run() { if ((friendShipVo.isFollowed_by() && friendShipVo .isFollowing()) || (!friendShipVo.isFollowed_by() && friendShipVo .isFollowing())) { selfaty_relationship.setText("取消关注"); selfaty_relationship .setBackgroundColor(getResources() .getColor( R.color.button_green)); selfaty_atta.setText("@TA"); selfaty_atta .setBackgroundResource(R.drawable.button); selfaty_relationship .setOnClickListener(new TextView.OnClickListener() { @Override public void onClick(View v) { release(); } }); } else if (friendShipVo.isFollowed_by() && !friendShipVo.isFollowing()) { selfaty_relationship.setText("关注TA"); selfaty_relationship .setBackgroundColor(Color.rgb( 255, 150, 0)); selfaty_atta.setText("@TA"); selfaty_relationship .setOnClickListener(new TextView.OnClickListener() { @Override public void onClick(View v) { focus(); } }); } else if (_account.getId().equals(id)) { selfaty_relationship_layout .setVisibility(View.GONE); } else { selfaty_relationship.setText("关注TA"); selfaty_relationship .setBackgroundColor(Color.rgb( 255, 150, 0)); selfaty_atta.setText("@TA"); selfaty_relationship .setOnClickListener(new TextView.OnClickListener() { @Override public void onClick(View v) { focus(); } }); } } }); } catch (JSONException e) { Log.d("RESULT", e.toString() + "friendShip"); } count_progress++; if (count_progress == 3) { progressBar.setVisibility(View.INVISIBLE); } } }); } @Override public void initListener() { fansLayout.setOnClickListener(this); focusLayout.setOnClickListener(this); Log.d("RESULT", "xxxonclick"); selfaty_listview.setOnGroupClickListener(new OnGroupClickListener() { public boolean onGroupClick(ExpandableListView parent, View clickedView, int groupPosition, long groupId) { return false; } }); selfaty_listview.setOnChildClickListener(new OnChildClickListener() { public boolean onChildClick(ExpandableListView expandablelistview, View clickedView, int groupPosition, int childPosition, long childId) { Log.d("RESULT", "child_click"); return false;// 返回true表示此事件在此被处理了 } }); selfaty_listview .setOnGroupCollapseListener(new OnGroupCollapseListener() { public void onGroupCollapse(int groupPosition) { } }); selfaty_listview.setOnGroupExpandListener(new OnGroupExpandListener() { public void onGroupExpand(int groupPosition) { for (int i = 0; i < statusVos.size(); i++) { if (groupPosition != i) { selfaty_listview.collapseGroup(i); } } } }); selfaty_listview.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { } }); selfaty_listview.setOnScrollListener(new OnScrollListener() { public void onScrollStateChanged(AbsListView view, int scrollState) { } public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { // if (totalItemCount != 0 // && !_isFresh // && firstVisibleItem + visibleItemCount >= totalItemCount) { // if (totalItemCount < Integer.valueOf(_status_count)) { // showDialog(DIALOG_LOADING); // fresh(); // } // } } }); selfaty_atta.setOnClickListener(new TextView.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(AppConfig.INTENT_ACTION_SEND); intent.putExtra("mode", "new"); intent.putExtra("id", id); intent.putExtra("at", userVo.getName()); startActivity(intent); finish(); } }); } ArrayList<StatusVo> statusVos = null; StatusExpandableAdapter statusAdapter; private long since_id = 0l; private Context context; int count_progress = 0; private Handler hanlder = new Handler() { @SuppressWarnings("unchecked") @Override public void handleMessage(Message msg) { super.handleMessage(msg); if (msg.what == 1) { if (msg.obj != null) { try { JSONObject jsonObject = new JSONObject((String) msg.obj); JSONArray jsonArray = jsonObject .getJSONArray("statuses"); statusVos = (ArrayList<StatusVo>)gson.fromJson( jsonArray.toString(), new TypeToken<ArrayList<StatusVo>>(){}.getType()); since_id = statusVos.get(0).getId(); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } } count_progress++; if (count_progress == 3) { progressBar.setVisibility(View.INVISIBLE); } statusAdapter = new StatusExpandableAdapter(statusVos, context); selfaty_listview.setAdapter(statusAdapter); // setListner(); Log.d("RESULT", "onFooterRefresh"); } else if (msg.what == 3) { if (msg.obj != null) { try { JSONObject jsonObject = new JSONObject((String) msg.obj); JSONArray jsonArray = jsonObject .getJSONArray("statuses"); statusVos.addAll((ArrayList<StatusVo>)gson.fromJson( jsonArray.toString(), new TypeToken<ArrayList<StatusVo>>(){}.getType())); Log.d("RESULT", statusVos.size() + "statusVos.size()"); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } } statusAdapter.notifyDataSetChanged(); puRefreshView.onFooterRefreshComplete(); } else if (msg.what == 2) { if (msg.obj != null) { try { JSONObject jsonObject = new JSONObject((String) msg.obj); JSONArray jsonArray = jsonObject .getJSONArray("statuses"); ArrayList<StatusVo> cache = new ArrayList<StatusVo>(); cache.addAll((ArrayList<StatusVo>)gson.fromJson( jsonArray.toString(), new TypeToken<ArrayList<StatusVo>>(){}.getType())); cache.addAll(statusVos); statusVos = cache; Log.d("RESULT", statusVos.size() + "------------statusVos.size()"); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } } statusAdapter.reSetData(statusVos); statusAdapter.notifyDataSetChanged(); puRefreshView.onHeaderRefreshComplete(); } } }; @Override public void onFooterRefresh(PullToRefreshView view) { Log.d("RESULT", "onFooterRefresh"); puRefreshView = view; statusesAPI.userTimeline(Long.parseLong(id), 0l, 0l, 20, count++, false, FEATURE.ALL, false, new RequestListener() { @Override public void onIOException(IOException arg0) { Log.d("RESULT", "arg0: || " + arg0); } @Override public void onError(WeiboException arg0) { Log.d("RESULT", "arg0: || " + arg0); } @Override public void onComplete(String arg0) { Message message = new Message(); message.obj = arg0; message.what = 3; hanlder.sendMessage(message); } }); } PullToRefreshView puRefreshView; @Override public void onHeaderRefresh(PullToRefreshView view) { puRefreshView = view; statusesAPI.userTimeline(Long.parseLong(id), since_id, 0l, 20, 1, false, FEATURE.ALL, false, new RequestListener() { @Override public void onIOException(IOException arg0) { Log.d("RESULT", "arg0: || " + arg0); } @Override public void onError(WeiboException arg0) { Log.d("RESULT", "arg0: || " + arg0); } @Override public void onComplete(String arg0) { Message message = new Message(); message.obj = arg0; message.what = 2; hanlder.sendMessage(message); } }); } @Override public void onClick(View v) { Log.d("RESULT", "onclick"); int idx = v.getId(); switch (idx) { case R.id.selfaty_fans_layout: Intent intent = new Intent(AppConfig.INTENT_ACTION_FRIENDSLIST); intent.putExtra("mode", "fans"); intent.putExtra("id", id); startActivity(intent); break; case R.id.selfaty_focus_layout: Intent intent2 = new Intent(AppConfig.INTENT_ACTION_FRIENDSLIST); intent2.putExtra("mode", "focus"); intent2.putExtra("id", id); startActivity(intent2); break; default: break; } } private void focus() { progressBar.setVisibility(View.VISIBLE); friendshipsAPI.create(Long.parseLong(id), "", new RequestListener() { @Override public void onIOException(IOException arg0) { // TODO Auto-generated method stub } @Override public void onError(WeiboException arg0) { // TODO Auto-generated method stub } @Override public void onComplete(String arg0) { runOnUiThread(new Runnable() { @Override public void run() { selfaty_relationship.setText("取消关注"); selfaty_relationship.setBackgroundColor(getResources() .getColor(R.color.button_green)); selfaty_atta.setText("@TA"); selfaty_relationship .setOnClickListener(new TextView.OnClickListener() { @Override public void onClick(View v) { release(); } }); progressBar.setVisibility(View.GONE); } }); } }); } private void release() { progressBar.setVisibility(View.VISIBLE); friendshipsAPI.destroy(Long.parseLong(id), "", new RequestListener() { @Override public void onIOException(IOException arg0) { // TODO Auto-generated method stub } @Override public void onError(WeiboException arg0) { // TODO Auto-generated method stub } @Override public void onComplete(String arg0) { runOnUiThread(new Runnable() { @Override public void run() { selfaty_relationship.setText("关注TA"); selfaty_relationship.setBackgroundColor(getResources() .getColor(R.color.button_red)); selfaty_atta.setText("@TA"); selfaty_relationship .setOnClickListener(new TextView.OnClickListener() { @Override public void onClick(View v) { focus(); } }); progressBar.setVisibility(View.GONE); }; }); } }); } }
{'content_hash': 'd29b347fae7757f906ce39686ab87cff', 'timestamp': '', 'source': 'github', 'line_count': 720, 'max_line_length': 132, 'avg_line_length': 29.90972222222222, 'alnum_prop': 0.6420710471325749, 'repo_name': 'loftcat/WeiCat', 'id': '35bf444c7955d4d86c4cc212254715bae81602e3', 'size': '22206', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/com/loftcat/ui/SelfPageAty.java', 'mode': '33261', 'license': 'apache-2.0', 'language': [{'name': 'Groovy', 'bytes': '1242'}, {'name': 'Java', 'bytes': '1009465'}, {'name': 'Perl', 'bytes': '1309'}, {'name': 'Shell', 'bytes': '7484'}]}
github
0
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DialogueEditor")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Cyanide")] [assembly: AssemblyProduct("DialogueEditor")] [assembly: AssemblyCopyright("Copyright © Cyanide 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("6e3d6b02-af94-4fc1-87bc-f47c43f66018")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
{'content_hash': 'b10f4fa3097b1121d71712ec5d484f11', 'timestamp': '', 'source': 'github', 'line_count': 36, 'max_line_length': 84, 'avg_line_length': 40.30555555555556, 'alnum_prop': 0.729841488628532, 'repo_name': 'cyanide-studio/dialog', 'id': 'f97362c2c86e71d83636a9c3887e3d97685c3fca', 'size': '1454', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'Dev/DialogueEditorDLL/Properties/AssemblyInfo.cs', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C#', 'bytes': '551754'}]}
github
0
This is the Foundation project. We love making super awesome stuff, but even more we like to empower people to make changes on their own. Feel free to fork and improve Foundation. ## Testing Go into the test/ directory. Run `bundle exec compass compile` or `bundle exec compass watch` if you're making changes and want to see them reflected on-the-fly. Want to add a feature to Foundation? Either update one of the test/*.html files or copy `test/template.html` to a new file, add your markup to it and check it in. ## Compass Project If you have a compass project and would like updated assets you can run the following command at any given time from within your project directory: compass create -r zurb-foundation --using foundation ## Development Want to test out the Compass templates. Don't recompile the gem every time, use `bundler` like so: ```bash mkdir demo1 cd demo1 echo -e 'source :rubygems\n gem "zurb-foundation", :path => "/path/to/foundation/repo"\n gem "compass"\n' > Gemfile bundle exec compass create -r zurb-foundation --using foundation ``` On subsequent template updates use: ```bash bundle exec compass create -r zurb-foundation --using foundation --force ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Test your changes to the best of your ability. We've provided a test/ folder, feel free to add to it as necessary. 4. Commit your changes (`git commit -am 'Added some feature'`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create new Pull Request
{'content_hash': 'e015ddc7e9e2575f92fa8a6500bd2dbd', 'timestamp': '', 'source': 'github', 'line_count': 41, 'max_line_length': 181, 'avg_line_length': 38.073170731707314, 'alnum_prop': 0.75208199871877, 'repo_name': 'tarikdavis/foundation', 'id': 'd7ee7d5c6294e1e47a9aa2c17a6df9e74aad1f99', 'size': '1575', 'binary': False, 'copies': '13', 'ref': 'refs/heads/master', 'path': 'CONTRIBUTING.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Ruby', 'bytes': '9550'}]}
github
0
Driveline models {#wheeled_driveline} ===================================== \tableofcontents The driveline subsystem (aka drivetrain) is the set of components that deliver power to the vehicle's driven wheels. Currently, Chrono::Vehicle provides templates for traditional drivelines connected to a single motor (in the powertrain subsystem) and delivering power to one, two, or more of the vehicle's axles. The interfaces between the driveline and powertrain and between the driveline and the driven wheels are force-displacement connections. In particular, the powertrain supplies torque to the driveline's driveshaft and the driveline setts the driveshaft's angular velocity. Similarly, the driveline transmits and applies torques to the axles of the driven wheels and receives the current angular velocity of the wheel axles. Depending on the type of driveline and powertrain, the driveline-powertrain and driveline-wheel connections can be enforced through constraints or purely kinematically. ## Four-wheel shafts-based drivetrain {#wheeled_driveline_4WD_shafts} This drivetrain template is modeled using various Chrono 1-D shaft elements ([ChShaft](@ref chrono::ChShaft)) and specialized shaft connection elements. Such elements are used to model the differentials ([ChShaftsPlanetary](@ref chrono::ChShaftsPlanetary)), conical gears ([ChShaftsGearboxAngled](@ref chrono::ChShaftsGearboxAngled)), and clutches ([ChShaftsClutch](@ref chrono::ChShaftsClutch)) for differential locking. See [ChShaftsDriveline4WD](@ref chrono::vehicle::ChShaftsDriveline4WD) and [ShaftsDriveline4WD](@ref chrono::vehicle::ShaftsDriveline4WD). The image below shows the 4WD shafts-based driveline connected to a shafts-based powertrain model. <img src="http://www.projectchrono.org/assets/manual/vehicle/shafts_powertrain.png" width="800" /> The various template parameters available for a 4WD shafts-based driveline are illustrated in the following sample JSON specification file: \include "../../data/vehicle/hmmwv/driveline/HMMWV_Driveline4WD.json" ## Two-wheel shafts-based drivetrain {#wheeled_driveline_2WD_shafts} This drivetrain template is similar to the 4WD shafts-based drivetrain model, but can only drive the wheels associated with a single vehicle axle. This axle is arbitrary, so this drivetrain model can be used to model both front-wheel drive and rear-wheel drive vehicles. See [ChShaftsDriveline2WD](@ref chrono::vehicle::ChShaftsDriveline2WD) and [ShaftsDriveline2WD](@ref chrono::vehicle::ShaftsDriveline2WD). A sample JSON file with the specification of a 2WD shafts-based driveline is: \include "../../data/vehicle/hmmwv/driveline/HMMWV_Driveline2WD.json" ## Four-wheel kinematic drivetrain {#wheeled_driveline_4WD_simple} This template can be used to model a 4WD driveline. It uses a constant front/rear torque split (a value between 0 and 1) and a simple model for Torsen limited-slip differentials. See [ChSimpleDriveline](@ref chrono::vehicle::ChSimpleDriveline) and [SimpleDriveline](@ref chrono::vehicle::SimpleDriveline). A sample JSON file with the specification of a 2WD shafts-based driveline is: \include "../../data/vehicle/hmmwv/driveline/HMMWV_DrivelineSimple.json" ## X-wheel kinematic drivetrain {#wheeled_driveline_XWD_simple} This simple driveline template can be used to model a XWD driveline, capable of driving one or more vehicle axles. It uses a constant torque split depending on the number of driven axles and a simple model for Torsen limited-slip differentials. See [ChSimpleDrivelineXWD](@ref chrono::vehicle::ChSimpleDrivelineXWD) and [SimpleDrivelineXWD](@ref chrono::vehicle::SimpleDrivelineXWD). A sample JSON file with the specification of a 2WD shafts-based driveline is: \include "../../data/vehicle/MAN_Kat1/driveline/MAN_5t_DrivelineSimpleXWD.json"
{'content_hash': '9d155aba82c58c99d4333e9e72a920c3', 'timestamp': '', 'source': 'github', 'line_count': 53, 'max_line_length': 591, 'avg_line_length': 72.11320754716981, 'alnum_prop': 0.7974882260596546, 'repo_name': 'projectchrono/chrono', 'id': '9221c95226236051fca2916b6e929b9baa0e11c0', 'size': '3822', 'binary': False, 'copies': '4', 'ref': 'refs/heads/main', 'path': 'doxygen/documentation/manuals/vehicle/wheeled_driveline.md', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Batchfile', 'bytes': '7614'}, {'name': 'C', 'bytes': '2409870'}, {'name': 'C++', 'bytes': '26511084'}, {'name': 'CMake', 'bytes': '645492'}, {'name': 'CSS', 'bytes': '170326'}, {'name': 'Cuda', 'bytes': '1226094'}, {'name': 'Dockerfile', 'bytes': '3279'}, {'name': 'GLSL', 'bytes': '4925'}, {'name': 'HTML', 'bytes': '7922'}, {'name': 'Inno Setup', 'bytes': '24125'}, {'name': 'JavaScript', 'bytes': '4731'}, {'name': 'Lex', 'bytes': '3433'}, {'name': 'Lua', 'bytes': '651'}, {'name': 'POV-Ray SDL', 'bytes': '25421'}, {'name': 'PowerShell', 'bytes': '142'}, {'name': 'Python', 'bytes': '645743'}, {'name': 'SWIG', 'bytes': '317316'}, {'name': 'Shell', 'bytes': '4827'}]}
github
0
#include "config.h" #include "DragData.h" #include "COMPtr.h" #include "ClipboardUtilitiesWin.h" #include "Frame.h" #include "DocumentFragment.h" #include "Markup.h" #include "TextEncoding.h" #include <objidl.h> #include <shlwapi.h> #include <wininet.h> #include <wtf/Forward.h> #include <wtf/Hashmap.h> #include <wtf/PassRefPtr.h> #include <wtf/RefPtr.h> #include <wtf/text/WTFString.h> namespace WebCore { DragData::DragData(const DragDataMap& data, const IntPoint& clientPosition, const IntPoint& globalPosition, DragOperation sourceOperationMask, DragApplicationFlags flags) : m_clientPosition(clientPosition) , m_globalPosition(globalPosition) , m_platformDragData(0) , m_draggingSourceOperationMask(sourceOperationMask) , m_applicationFlags(flags) , m_dragDataMap(data) { } bool DragData::containsURL(Frame*, FilenameConversionPolicy filenamePolicy) const { if (m_platformDragData) return SUCCEEDED(m_platformDragData->QueryGetData(urlWFormat())) || SUCCEEDED(m_platformDragData->QueryGetData(urlFormat())) || (filenamePolicy == ConvertFilenames && (SUCCEEDED(m_platformDragData->QueryGetData(filenameWFormat())) || SUCCEEDED(m_platformDragData->QueryGetData(filenameFormat())))); return m_dragDataMap.contains(urlWFormat()->cfFormat) || m_dragDataMap.contains(urlFormat()->cfFormat) || (filenamePolicy == ConvertFilenames && (m_dragDataMap.contains(filenameWFormat()->cfFormat) || m_dragDataMap.contains(filenameFormat()->cfFormat))); } const DragDataMap& DragData::dragDataMap() { if (!m_dragDataMap.isEmpty() || !m_platformDragData) return m_dragDataMap; // Enumerate clipboard content and load it in the map. COMPtr<IEnumFORMATETC> itr; if (FAILED(m_platformDragData->EnumFormatEtc(DATADIR_GET, &itr)) || !itr) return m_dragDataMap; FORMATETC dataFormat; while (itr->Next(1, &dataFormat, 0) == S_OK) { Vector<String> dataStrings; getClipboardData(m_platformDragData, &dataFormat, dataStrings); if (!dataStrings.isEmpty()) m_dragDataMap.set(dataFormat.cfFormat, dataStrings); } return m_dragDataMap; } void DragData::getDragFileDescriptorData(int& size, String& pathname) { size = 0; if (m_platformDragData) getFileDescriptorData(m_platformDragData, size, pathname); } void DragData::getDragFileContentData(int size, void* dataBlob) { if (m_platformDragData) getFileContentData(m_platformDragData, size, dataBlob); } String DragData::asURL(Frame*, FilenameConversionPolicy filenamePolicy, String* title) const { return (m_platformDragData) ? getURL(m_platformDragData, filenamePolicy, title) : getURL(&m_dragDataMap, filenamePolicy, title); } bool DragData::containsFiles() const { return (m_platformDragData) ? SUCCEEDED(m_platformDragData->QueryGetData(cfHDropFormat())) : m_dragDataMap.contains(cfHDropFormat()->cfFormat); } unsigned DragData::numberOfFiles() const { if (!m_platformDragData) return 0; STGMEDIUM medium; if (FAILED(m_platformDragData->GetData(cfHDropFormat(), &medium))) return 0; HDROP hdrop = static_cast<HDROP>(GlobalLock(medium.hGlobal)); if (!hdrop) return 0; unsigned numFiles = DragQueryFileW(hdrop, 0xFFFFFFFF, 0, 0); DragFinish(hdrop); GlobalUnlock(medium.hGlobal); return numFiles; } void DragData::asFilenames(Vector<String>& result) const { if (m_platformDragData) { WCHAR filename[MAX_PATH]; STGMEDIUM medium; if (FAILED(m_platformDragData->GetData(cfHDropFormat(), &medium))) return; HDROP hdrop = reinterpret_cast<HDROP>(GlobalLock(medium.hGlobal)); if (!hdrop) return; const unsigned numFiles = DragQueryFileW(hdrop, 0xFFFFFFFF, 0, 0); for (unsigned i = 0; i < numFiles; i++) { if (!DragQueryFileW(hdrop, i, filename, WTF_ARRAY_LENGTH(filename))) continue; result.append(static_cast<UChar*>(filename)); } // Free up memory from drag DragFinish(hdrop); GlobalUnlock(medium.hGlobal); return; } result = m_dragDataMap.get(cfHDropFormat()->cfFormat); } bool DragData::containsPlainText() const { if (m_platformDragData) return SUCCEEDED(m_platformDragData->QueryGetData(plainTextWFormat())) || SUCCEEDED(m_platformDragData->QueryGetData(plainTextFormat())); return m_dragDataMap.contains(plainTextWFormat()->cfFormat) || m_dragDataMap.contains(plainTextFormat()->cfFormat); } String DragData::asPlainText(Frame*) const { return (m_platformDragData) ? getPlainText(m_platformDragData) : getPlainText(&m_dragDataMap); } bool DragData::containsColor() const { return false; } bool DragData::canSmartReplace() const { if (m_platformDragData) return SUCCEEDED(m_platformDragData->QueryGetData(smartPasteFormat())); return m_dragDataMap.contains(smartPasteFormat()->cfFormat); } bool DragData::containsCompatibleContent() const { return containsPlainText() || containsURL(0) || ((m_platformDragData) ? (containsHTML(m_platformDragData) || containsFilenames(m_platformDragData)) : (containsHTML(&m_dragDataMap) || containsFilenames(&m_dragDataMap))) || containsColor(); } PassRefPtr<DocumentFragment> DragData::asFragment(Frame* frame, PassRefPtr<Range>, bool, bool&) const { /* * Order is richest format first. On OSX this is: * * Web Archive * * Filenames * * HTML * * RTF * * TIFF * * PICT */ if (m_platformDragData) { if (containsFilenames(m_platformDragData)) { if (PassRefPtr<DocumentFragment> fragment = fragmentFromFilenames(frame->document(), m_platformDragData)) return fragment; } if (containsHTML(m_platformDragData)) { if (PassRefPtr<DocumentFragment> fragment = fragmentFromHTML(frame->document(), m_platformDragData)) return fragment; } } else { if (containsFilenames(&m_dragDataMap)) { if (PassRefPtr<DocumentFragment> fragment = fragmentFromFilenames(frame->document(), &m_dragDataMap)) return fragment; } if (containsHTML(&m_dragDataMap)) { if (PassRefPtr<DocumentFragment> fragment = fragmentFromHTML(frame->document(), &m_dragDataMap)) return fragment; } } return 0; } Color DragData::asColor() const { return Color(); } }
{'content_hash': '3406aefeeb4f041cf6528e19693e3a67', 'timestamp': '', 'source': 'github', 'line_count': 215, 'max_line_length': 159, 'avg_line_length': 30.888372093023257, 'alnum_prop': 0.6714350248456558, 'repo_name': 'yoavweiss/RespImg-WebCore', 'id': '9713870ef4345d54e881a1829b275fae54a1804d', 'size': '8052', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'platform/win/DragDataWin.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> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"> <title>Budgeting App - Educational React App</title> <link rel="preconnect" src="https://buttons.github.io" /> <link rel="preload" href="/budget.js" as="script"> <link rel="preload" href="/reports.js" as="script"> </head> <body> <div id="root"></div> <script> (function() { if('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw.js'); } })(); </script> <script type="text/javascript" src="/main.js" async></script></body> </html>
{'content_hash': 'a2c05f3066bc5b1fc3e1ecb0722b4253', 'timestamp': '', 'source': 'github', 'line_count': 21, 'max_line_length': 120, 'avg_line_length': 33.476190476190474, 'alnum_prop': 0.6088193456614509, 'repo_name': 'sahilkhan99/PosApp', 'id': 'c4a0f5586ca66262b180202e76c95b5e4c6f374b', 'size': '703', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'build/index.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '104420'}, {'name': 'HTML', 'bytes': '1242'}, {'name': 'JavaScript', 'bytes': '1771003'}]}
github
0
/* * Lob * The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? * * The version of the OpenAPI document: 1.3.0 * Contact: lob-openapi@lob.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.lob.api.client; import com.lob.api.ApiCallback; import com.lob.api.ApiClient; import com.lob.api.ApiException; import com.lob.api.ApiResponse; import com.lob.api.Configuration; import com.lob.api.Pair; import com.lob.api.ProgressRequestBody; import com.lob.api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; import com.lob.model.BankAccount; import com.lob.model.BankAccountDeletion; import com.lob.model.BankAccountList; import com.lob.model.BankAccountVerify; import com.lob.model.BankAccountWritable; import com.lob.model.LobError; import java.time.OffsetDateTime; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class BankAccountsApi { private ApiClient localVarApiClient; public BankAccountsApi() { this(Configuration.getDefaultApiClient()); } public BankAccountsApi(ApiClient apiClient) { this.localVarApiClient = apiClient; } public ApiClient getApiClient() { return localVarApiClient; } public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } /** * Build call for create * @param bankAccountWritable (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call createCall(BankAccountWritable bankAccountWritable, final ApiCallback _callback) throws ApiException { Object localVarPostBody = bankAccountWritable; // create path and map variables String localVarPath = "/bank_accounts"; List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json", "application/x-www-form-urlencoded", "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createValidateBeforeCall(BankAccountWritable bankAccountWritable, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankAccountWritable' is set if (bankAccountWritable == null) { throw new ApiException("Missing the required parameter 'bankAccountWritable' when calling create(Async)"); } okhttp3.Call localVarCall = createCall(bankAccountWritable, _callback); return localVarCall; } /** * create * Creates a new bank account with the provided properties. Bank accounts created in live mode will need to be verified via micro deposits before being able to send live checks. The deposits will appear in the bank account in 2-3 business days and have the description \&quot;VERIFICATION\&quot;. * @param bankAccountWritable (required) * @return BankAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public BankAccount create(BankAccountWritable bankAccountWritable) throws ApiException { try { ApiResponse<BankAccount> localVarResp = createWithHttpInfo(bankAccountWritable); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * create * Creates a new bank account with the provided properties. Bank accounts created in live mode will need to be verified via micro deposits before being able to send live checks. The deposits will appear in the bank account in 2-3 business days and have the description \&quot;VERIFICATION\&quot;. * @param bankAccountWritable (required) * @return ApiResponse&lt;BankAccount&gt; * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public ApiResponse<BankAccount> createWithHttpInfo(BankAccountWritable bankAccountWritable) throws ApiException { try { okhttp3.Call localVarCall = createValidateBeforeCall(bankAccountWritable, null); Type localVarReturnType = new TypeToken<BankAccount>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * create (asynchronously) * Creates a new bank account with the provided properties. Bank accounts created in live mode will need to be verified via micro deposits before being able to send live checks. The deposits will appear in the bank account in 2-3 business days and have the description \&quot;VERIFICATION\&quot;. * @param bankAccountWritable (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call createAsync(BankAccountWritable bankAccountWritable, final ApiCallback<BankAccount> _callback) throws ApiException { okhttp3.Call localVarCall = createValidateBeforeCall(bankAccountWritable, _callback); Type localVarReturnType = new TypeToken<BankAccount>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for delete * @param bankId id of the bank account (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Deleted </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call deleteCall(String bankId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/bank_accounts/{bank_id}" .replaceAll("\\{" + "bank_id" + "\\}", localVarApiClient.escapeString(bankId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteValidateBeforeCall(String bankId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankId' is set if (bankId == null) { throw new ApiException("Missing the required parameter 'bankId' when calling delete(Async)"); } okhttp3.Call localVarCall = deleteCall(bankId, _callback); return localVarCall; } /** * delete * Permanently deletes a bank account. It cannot be undone. * @param bankId id of the bank account (required) * @return BankAccountDeletion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Deleted </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public BankAccountDeletion delete(String bankId) throws ApiException { try { ApiResponse<BankAccountDeletion> localVarResp = deleteWithHttpInfo(bankId); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * delete * Permanently deletes a bank account. It cannot be undone. * @param bankId id of the bank account (required) * @return ApiResponse&lt;BankAccountDeletion&gt; * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Deleted </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public ApiResponse<BankAccountDeletion> deleteWithHttpInfo(String bankId) throws ApiException { try { okhttp3.Call localVarCall = deleteValidateBeforeCall(bankId, null); Type localVarReturnType = new TypeToken<BankAccountDeletion>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * delete (asynchronously) * Permanently deletes a bank account. It cannot be undone. * @param bankId id of the bank account (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Deleted </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call deleteAsync(String bankId, final ApiCallback<BankAccountDeletion> _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidateBeforeCall(bankId, _callback); Type localVarReturnType = new TypeToken<BankAccountDeletion>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for get * @param bankId id of the bank account (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank account object </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call getCall(String bankId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/bank_accounts/{bank_id}" .replaceAll("\\{" + "bank_id" + "\\}", localVarApiClient.escapeString(bankId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getValidateBeforeCall(String bankId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankId' is set if (bankId == null) { throw new ApiException("Missing the required parameter 'bankId' when calling get(Async)"); } okhttp3.Call localVarCall = getCall(bankId, _callback); return localVarCall; } /** * get * Retrieves the details of an existing bank account. You need only supply the unique bank account identifier that was returned upon bank account creation. * @param bankId id of the bank account (required) * @return BankAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank account object </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public BankAccount get(String bankId) throws ApiException { try { ApiResponse<BankAccount> localVarResp = getWithHttpInfo(bankId); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * get * Retrieves the details of an existing bank account. You need only supply the unique bank account identifier that was returned upon bank account creation. * @param bankId id of the bank account (required) * @return ApiResponse&lt;BankAccount&gt; * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank account object </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public ApiResponse<BankAccount> getWithHttpInfo(String bankId) throws ApiException { try { okhttp3.Call localVarCall = getValidateBeforeCall(bankId, null); Type localVarReturnType = new TypeToken<BankAccount>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * get (asynchronously) * Retrieves the details of an existing bank account. You need only supply the unique bank account identifier that was returned upon bank account creation. * @param bankId id of the bank account (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank account object </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call getAsync(String bankId, final ApiCallback<BankAccount> _callback) throws ApiException { okhttp3.Call localVarCall = getValidateBeforeCall(bankId, _callback); Type localVarReturnType = new TypeToken<BankAccount>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for verify * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call verifyCall(String bankId, BankAccountVerify bankAccountVerify, final ApiCallback _callback) throws ApiException { Object localVarPostBody = bankAccountVerify; // create path and map variables String localVarPath = "/bank_accounts/{bank_id}/verify" .replaceAll("\\{" + "bank_id" + "\\}", localVarApiClient.escapeString(bankId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json", "application/x-www-form-urlencoded", "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call verifyValidateBeforeCall(String bankId, BankAccountVerify bankAccountVerify, final ApiCallback _callback) throws ApiException { // verify the required parameter 'bankId' is set if (bankId == null) { throw new ApiException("Missing the required parameter 'bankId' when calling verify(Async)"); } // verify the required parameter 'bankAccountVerify' is set if (bankAccountVerify == null) { throw new ApiException("Missing the required parameter 'bankAccountVerify' when calling verify(Async)"); } okhttp3.Call localVarCall = verifyCall(bankId, bankAccountVerify, _callback); return localVarCall; } /** * verify * Verify a bank account in order to create a check. * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @return BankAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public BankAccount verify(String bankId, BankAccountVerify bankAccountVerify) throws ApiException { try { ApiResponse<BankAccount> localVarResp = verifyWithHttpInfo(bankId, bankAccountVerify); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * verify * Verify a bank account in order to create a check. * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @return ApiResponse&lt;BankAccount&gt; * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public ApiResponse<BankAccount> verifyWithHttpInfo(String bankId, BankAccountVerify bankAccountVerify) throws ApiException { try { okhttp3.Call localVarCall = verifyValidateBeforeCall(bankId, bankAccountVerify, null); Type localVarReturnType = new TypeToken<BankAccount>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * verify (asynchronously) * Verify a bank account in order to create a check. * @param bankId id of the bank account to be verified (required) * @param bankAccountVerify (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> Returns a bank_account object </td><td> * ratelimit-limit - <br> * ratelimit-remaining - <br> * ratelimit-reset - <br> </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call verifyAsync(String bankId, BankAccountVerify bankAccountVerify, final ApiCallback<BankAccount> _callback) throws ApiException { okhttp3.Call localVarCall = verifyValidateBeforeCall(bankId, bankAccountVerify, _callback); Type localVarReturnType = new TypeToken<BankAccount>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for list * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the &#x60;previous_url&#x60; field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the &#x60;next_url&#x60; field in the return response. (optional) * @param include Request that the response include the total count by specifying &#x60;include[]&#x3D;total_count&#x60;. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair&#x60;. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> A dictionary with a data property that contains an array of up to &#x60;limit&#x60; bank_accounts. </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call listCall(Integer limit, String before, String after, List<String> include, Map<String, OffsetDateTime> dateCreated, Map<String, String> metadata, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/bank_accounts"; List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } if (after != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("after", after)); } if (include != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "include", include)); } if (dateCreated != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("date_created", dateCreated)); } if (metadata != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("metadata", metadata)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basicAuth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List<String> include, Map<String, OffsetDateTime> dateCreated, Map<String, String> metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, _callback); return localVarCall; } /** * list * Returns a list of your bank accounts. The bank accounts are returned sorted by creation date, with the most recently created bank accounts appearing first. * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the &#x60;previous_url&#x60; field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the &#x60;next_url&#x60; field in the return response. (optional) * @param include Request that the response include the total count by specifying &#x60;include[]&#x3D;total_count&#x60;. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair&#x60;. (optional) * @return BankAccountList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> A dictionary with a data property that contains an array of up to &#x60;limit&#x60; bank_accounts. </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public BankAccountList list(Integer limit, String before, String after, List<String> include, Map<String, OffsetDateTime> dateCreated, Map<String, String> metadata) throws ApiException { try { ApiResponse<BankAccountList> localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata); return localVarResp.getData(); } catch (ApiException e) { throw e; } } /** * list * Returns a list of your bank accounts. The bank accounts are returned sorted by creation date, with the most recently created bank accounts appearing first. * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the &#x60;previous_url&#x60; field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the &#x60;next_url&#x60; field in the return response. (optional) * @param include Request that the response include the total count by specifying &#x60;include[]&#x3D;total_count&#x60;. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair&#x60;. (optional) * @return ApiResponse&lt;BankAccountList&gt; * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> A dictionary with a data property that contains an array of up to &#x60;limit&#x60; bank_accounts. </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public ApiResponse<BankAccountList> listWithHttpInfo(Integer limit, String before, String after, List<String> include, Map<String, OffsetDateTime> dateCreated, Map<String, String> metadata) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, null); Type localVarReturnType = new TypeToken<BankAccountList>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { throw e; } } /** * list (asynchronously) * Returns a list of your bank accounts. The bank accounts are returned sorted by creation date, with the most recently created bank accounts appearing first. * @param limit How many results to return. (optional, default to 10) * @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the &#x60;previous_url&#x60; field in the return response. (optional) * @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the &#x60;next_url&#x60; field in the return response. (optional) * @param include Request that the response include the total count by specifying &#x60;include[]&#x3D;total_count&#x60;. (optional) * @param dateCreated Filter by date created. (optional) * @param metadata Filter by metadata key-value pair&#x60;. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details <table summary="Response Details" border="1"> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> 200 </td><td> A dictionary with a data property that contains an array of up to &#x60;limit&#x60; bank_accounts. </td><td> - </td></tr> <tr><td> 0 </td><td> Lob uses RESTful HTTP response codes to indicate success or failure of an API request. </td><td> - </td></tr> </table> */ public okhttp3.Call listAsync(Integer limit, String before, String after, List<String> include, Map<String, OffsetDateTime> dateCreated, Map<String, String> metadata, final ApiCallback<BankAccountList> _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, _callback); Type localVarReturnType = new TypeToken<BankAccountList>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }
{'content_hash': '8155a3fc08deeec84419b57768342efe', 'timestamp': '', 'source': 'github', 'line_count': 729, 'max_line_length': 300, 'avg_line_length': 53.56241426611797, 'alnum_prop': 0.673291161933055, 'repo_name': 'lob/lob-java', 'id': 'c05d46c83d6e821d96bef74423ff8763df5891f4', 'size': '39047', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': 'src/main/java/com/lob/api/client/BankAccountsApi.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '2263595'}, {'name': 'Scala', 'bytes': '1125'}]}
github
0
test_init_preseed() { # - lxd init --preseed lxd_backend=$(storage_backend "$LXD_DIR") LXD_INIT_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) chmod +x "${LXD_INIT_DIR}" spawn_lxd "${LXD_INIT_DIR}" false ( set -e # shellcheck disable=SC2034 LXD_DIR=${LXD_INIT_DIR} storage_pool="lxdtest-$(basename "${LXD_DIR}")-data" # In case we're running against the ZFS backend, let's test # creating a zfs storage pool, otherwise just use dir. if [ "$lxd_backend" = "zfs" ]; then configure_loop_device loop_file_4 loop_device_4 # shellcheck disable=SC2154 zpool create -f -m none -O compression=on "lxdtest-$(basename "${LXD_DIR}")-preseed-pool" "${loop_device_4}" driver="zfs" source="lxdtest-$(basename "${LXD_DIR}")-preseed-pool" elif [ "$lxd_backend" = "ceph" ]; then driver="ceph" source="" else driver="dir" source="" fi cat <<EOF | lxd init --preseed config: core.https_address: 127.0.0.1:9999 images.auto_update_interval: 15 storage_pools: - name: ${storage_pool} driver: $driver config: source: $source networks: - name: lxdt$$ type: bridge config: ipv4.address: none ipv6.address: none profiles: - name: default devices: root: path: / pool: ${storage_pool} type: disk - name: test-profile description: "Test profile" config: limits.memory: 2GB devices: test0: name: test0 nictype: bridged parent: lxdt$$ type: nic EOF lxc info | grep -q 'core.https_address: 127.0.0.1:9999' lxc info | grep -q 'images.auto_update_interval: "15"' lxc network list | grep -q "lxdt$$" lxc storage list | grep -q "${storage_pool}" lxc storage show "${storage_pool}" | grep -q "$source" lxc profile list | grep -q "test-profile" lxc profile show default | grep -q "pool: ${storage_pool}" lxc profile show test-profile | grep -q "limits.memory: 2GB" lxc profile show test-profile | grep -q "nictype: bridged" lxc profile show test-profile | grep -q "parent: lxdt$$" lxc profile delete default lxc profile delete test-profile lxc network delete lxdt$$ lxc storage delete "${storage_pool}" if [ "$lxd_backend" = "zfs" ]; then # shellcheck disable=SC2154 deconfigure_loop_device "${loop_file_4}" "${loop_device_4}" fi ) kill_lxd "${LXD_INIT_DIR}" }
{'content_hash': '5e81a9fa70fc1705026e086dbd5754d5', 'timestamp': '', 'source': 'github', 'line_count': 85, 'max_line_length': 116, 'avg_line_length': 28.423529411764704, 'alnum_prop': 0.6142384105960265, 'repo_name': 'jsavikko/lxd', 'id': '066aab4409506001beaadc57ba0351f2abda74b3', 'size': '2416', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'test/suites/init_preseed.sh', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Emacs Lisp', 'bytes': '255'}, {'name': 'Go', 'bytes': '2837871'}, {'name': 'Makefile', 'bytes': '3484'}, {'name': 'Python', 'bytes': '33462'}, {'name': 'Shell', 'bytes': '246711'}]}
github
0
require "utils" require 'capistrano/recipes/deploy/scm/subversion' class DeploySCMSubversionTest < Test::Unit::TestCase class TestSCM < Capistrano::Deploy::SCM::Subversion default_command "svn" end def setup @config = { :repository => "." } def @config.exists?(name); key?(name); end @source = TestSCM.new(@config) end def test_query_revision revision = @source.query_revision('HEAD') do |o| assert_equal "svn info . -rHEAD", o %Q{Path: rails_2_3 URL: svn+ssh://example.com/var/repos/project/branches/rails_2_3 Repository Root: svn+ssh://example.com/var/repos Repository UUID: 2d86388d-c40f-0410-ad6a-a69da6a65d20 Revision: 2095 Node Kind: directory Last Changed Author: sw Last Changed Rev: 2064 Last Changed Date: 2009-03-11 11:04:25 -0700 (Wed, 11 Mar 2009) } end assert_equal 2095, revision end end
{'content_hash': '1b57c4689e0cf7bc78a9d2d727618e9b', 'timestamp': '', 'source': 'github', 'line_count': 32, 'max_line_length': 63, 'avg_line_length': 26.875, 'alnum_prop': 0.7023255813953488, 'repo_name': 'mguymon/mmd', 'id': '26d1047cbe54a4f442e556d2fe5f20c949026945', 'size': '860', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'deployer/vendor/gems/capistrano-2.5.19/test/deploy/scm/subversion_test.rb', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '897031'}, {'name': 'HTML', 'bytes': '14675'}, {'name': 'Java', 'bytes': '28557'}, {'name': 'JavaScript', 'bytes': '76369'}, {'name': 'PHP', 'bytes': '53953'}, {'name': 'Perl', 'bytes': '61631'}, {'name': 'Ruby', 'bytes': '221223'}, {'name': 'Shell', 'bytes': '62589'}]}
github
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../../..">Unstable</a></li> <li><a href=".">8.4.5 / contrib:fundamental-arithmetics 8.4.dev</a></li> <li class="active"><a href="">2014-11-21 02:59:52</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="../../../../../about.html">About</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href=".">« Up</a> <h1> contrib:fundamental-arithmetics <small> 8.4.dev <span class="label label-success">10 s</span> </small> </h1> <p><em><script>document.write(moment("2014-11-21 02:59:52 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2014-11-21 02:59:52 UTC)</em><p> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>ruby lint.rb unstable ../unstable/packages/coq:contrib:fundamental-arithmetics/coq:contrib:fundamental-arithmetics.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> <dt>Output</dt> <dd><pre>The package is valid. </pre></dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --dry-run coq:contrib:fundamental-arithmetics.8.4.dev coq.8.4.5</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>1 s</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.4.5). The following actions will be performed: - install coq:contrib:fundamental-arithmetics.8.4.dev === 1 to install === =-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Building coq:contrib:fundamental-arithmetics.8.4.dev: coq_makefile -f Make -o Makefile make -j4 make install Installing coq:contrib:fundamental-arithmetics.8.4.dev. </pre></dd> </dl> <p>Dry install without Coq, to test if the problem was incompatibility with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --deps-only coq:contrib:fundamental-arithmetics.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>1 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --verbose coq:contrib:fundamental-arithmetics.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>10 s</dd> <dt>Output</dt> <dd><pre>The following actions will be performed: - install coq:contrib:fundamental-arithmetics.8.4.dev === 1 to install === =-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [coq:contrib:fundamental-arithmetics] Fetching git://clarus.io/fundamental-arithmetics#v8.4 Initialized empty Git repository in /home/bench/.opam/packages.dev/coq:contrib:fundamental-arithmetics.8.4.dev/.git/ [master (root-commit) 73a3231] opam-git-init warning: no common commits From git://clarus.io/fundamental-arithmetics * [new branch] v8.4 -&gt; opam-ref * [new branch] v8.4 -&gt; origin/v8.4 LICENSE Make Makefile README bench.log description division.v euclide.v gcd.v missing.v nthroot.v permutation.v power.v primes.v tactics.v HEAD is now at 6ed723b Various updates: =-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Building coq:contrib:fundamental-arithmetics.8.4.dev: coq_makefile -f Make -o Makefile make -j4 make install &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;tactics.v&quot; &gt; &quot;tactics.v.d&quot; || ( RV=$?; rm -f &quot;tactics.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;missing.v&quot; &gt; &quot;missing.v.d&quot; || ( RV=$?; rm -f &quot;missing.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;division.v&quot; &gt; &quot;division.v.d&quot; || ( RV=$?; rm -f &quot;division.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;gcd.v&quot; &gt; &quot;gcd.v.d&quot; || ( RV=$?; rm -f &quot;gcd.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;primes.v&quot; &gt; &quot;primes.v.d&quot; || ( RV=$?; rm -f &quot;primes.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;power.v&quot; &gt; &quot;power.v.d&quot; || ( RV=$?; rm -f &quot;power.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;euclide.v&quot; &gt; &quot;euclide.v.d&quot; || ( RV=$?; rm -f &quot;euclide.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;nthroot.v&quot; &gt; &quot;nthroot.v.d&quot; || ( RV=$?; rm -f &quot;nthroot.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . FundamentalArithmetics &quot;permutation.v&quot; &gt; &quot;permutation.v.d&quot; || ( RV=$?; rm -f &quot;permutation.v.d&quot;; exit ${RV} ) &quot;coqc&quot; -q -R . FundamentalArithmetics missing &quot;coqc&quot; -q -R . FundamentalArithmetics tactics &quot;coqc&quot; -q -R . FundamentalArithmetics permutation &quot;coqc&quot; -q -R . FundamentalArithmetics division &quot;coqc&quot; -q -R . FundamentalArithmetics euclide &quot;coqc&quot; -q -R . FundamentalArithmetics power &quot;coqc&quot; -q -R . FundamentalArithmetics gcd &quot;coqc&quot; -q -R . FundamentalArithmetics primes &quot;coqc&quot; -q -R . FundamentalArithmetics nthroot for i in permutation.vo nthroot.vo euclide.vo power.vo primes.vo gcd.vo division.vo missing.vo tactics.vo; do \ install -d `dirname &quot;/home/bench/.opam/system/lib/coq/user-contrib&quot;/FundamentalArithmetics/$i`; \ install -m 0644 $i &quot;/home/bench/.opam/system/lib/coq/user-contrib&quot;/FundamentalArithmetics/$i; \ done Installing coq:contrib:fundamental-arithmetics.8.4.dev. </pre></dd> </dl> <h2>Installation size</h2> <p>Data not available in this bench.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq:contrib:fundamental-arithmetics.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>1 s</dd> <dt>Output</dt> <dd><pre>The following actions will be performed: - remove coq:contrib:fundamental-arithmetics.8.4.dev === 1 to remove === =-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [coq:contrib:fundamental-arithmetics] Fetching git://clarus.io/fundamental-arithmetics#v8.4 =-=- Removing Packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Removing coq:contrib:fundamental-arithmetics.8.4.dev. rm -R /home/bench/.opam/system/lib/coq/user-contrib/FundamentalArithmetics </pre></dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{'content_hash': '7d3e792173c67da4f4271221b0e3000a', 'timestamp': '', 'source': 'github', 'line_count': 216, 'max_line_length': 175, 'avg_line_length': 47.166666666666664, 'alnum_prop': 0.5610522182960346, 'repo_name': 'coq-bench/coq-bench.github.io-old', 'id': 'db7f15eb74c86798449791182dbf8e2193a37e28', 'size': '10190', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'clean/Linux-x86_64-4.02.1-1.2.0/unstable/8.4.5/contrib:fundamental-arithmetics/8.4.dev/2014-11-21_02-59-52.html', 'mode': '33188', 'license': 'mit', 'language': []}
github
0
package org.apache.hadoop.hbase.client; import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.canUpdateOnError; import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.createRegionLocations; import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.isGood; import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.removeRegionLocation; import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.replaceRegionLocation; import java.util.concurrent.CompletableFuture; import java.util.concurrent.atomic.AtomicReference; import org.apache.hadoop.hbase.HRegionLocation; import org.apache.hadoop.hbase.RegionLocations; import org.apache.hadoop.hbase.ServerName; import org.apache.yetus.audience.InterfaceAudience; /** * The asynchronous locator for meta region. */ @InterfaceAudience.Private class AsyncMetaRegionLocator { private final ConnectionRegistry registry; private final AtomicReference<RegionLocations> metaRegionLocations = new AtomicReference<>(); private final AtomicReference<CompletableFuture<RegionLocations>> metaRelocateFuture = new AtomicReference<>(); AsyncMetaRegionLocator(ConnectionRegistry registry) { this.registry = registry; } /** * Get the region locations for meta region. If the location for the given replica is not * available in the cached locations, then fetch from the HBase cluster. * <p/> * The <code>replicaId</code> parameter is important. If the region replication config for meta * region is changed, then the cached region locations may not have the locations for new * replicas. If we do not check the location for the given replica, we will always return the * cached region locations and cause an infinite loop. */ CompletableFuture<RegionLocations> getRegionLocations(int replicaId, boolean reload) { return ConnectionUtils.getOrFetch(metaRegionLocations, metaRelocateFuture, reload, registry::getMetaRegionLocations, locs -> isGood(locs, replicaId), "meta region location"); } private HRegionLocation getCacheLocation(HRegionLocation loc) { RegionLocations locs = metaRegionLocations.get(); return locs != null ? locs.getRegionLocation(loc.getRegion().getReplicaId()) : null; } private void addLocationToCache(HRegionLocation loc) { for (;;) { int replicaId = loc.getRegion().getReplicaId(); RegionLocations oldLocs = metaRegionLocations.get(); if (oldLocs == null) { RegionLocations newLocs = createRegionLocations(loc); if (metaRegionLocations.compareAndSet(null, newLocs)) { return; } } HRegionLocation oldLoc = oldLocs.getRegionLocation(replicaId); if ( oldLoc != null && (oldLoc.getSeqNum() > loc.getSeqNum() || oldLoc.getServerName().equals(loc.getServerName())) ) { return; } RegionLocations newLocs = replaceRegionLocation(oldLocs, loc); if (metaRegionLocations.compareAndSet(oldLocs, newLocs)) { return; } } } private void removeLocationFromCache(HRegionLocation loc) { for (;;) { RegionLocations oldLocs = metaRegionLocations.get(); if (oldLocs == null) { return; } HRegionLocation oldLoc = oldLocs.getRegionLocation(loc.getRegion().getReplicaId()); if (!canUpdateOnError(loc, oldLoc)) { return; } RegionLocations newLocs = removeRegionLocation(oldLocs, loc.getRegion().getReplicaId()); if (metaRegionLocations.compareAndSet(oldLocs, newLocs)) { return; } } } void updateCachedLocationOnError(HRegionLocation loc, Throwable exception) { AsyncRegionLocatorHelper.updateCachedLocationOnError(loc, exception, this::getCacheLocation, this::addLocationToCache, this::removeLocationFromCache, null); } void clearCache() { metaRegionLocations.set(null); } void clearCache(ServerName serverName) { for (;;) { RegionLocations locs = metaRegionLocations.get(); if (locs == null) { return; } RegionLocations newLocs = locs.removeByServer(serverName); if (locs == newLocs) { return; } if (newLocs.isEmpty()) { newLocs = null; } if (metaRegionLocations.compareAndSet(locs, newLocs)) { return; } } } }
{'content_hash': '0fa7c7584fc0344038eee421e1794d0e', 'timestamp': '', 'source': 'github', 'line_count': 121, 'max_line_length': 97, 'avg_line_length': 35.98347107438016, 'alnum_prop': 0.7186495176848875, 'repo_name': 'HubSpot/hbase', 'id': '136d18a96187fb5cf4d3e57ca9911acd32c528d1', 'size': '5159', 'binary': False, 'copies': '1', 'ref': 'refs/heads/hubspot-2.5', 'path': 'hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '26366'}, {'name': 'C', 'bytes': '4041'}, {'name': 'C++', 'bytes': '19726'}, {'name': 'CMake', 'bytes': '1437'}, {'name': 'CSS', 'bytes': '8033'}, {'name': 'Dockerfile', 'bytes': '13729'}, {'name': 'HTML', 'bytes': '18151'}, {'name': 'Java', 'bytes': '40683660'}, {'name': 'JavaScript', 'bytes': '9455'}, {'name': 'Makefile', 'bytes': '1359'}, {'name': 'PHP', 'bytes': '8385'}, {'name': 'Perl', 'bytes': '383739'}, {'name': 'Python', 'bytes': '102210'}, {'name': 'Roff', 'bytes': '2896'}, {'name': 'Ruby', 'bytes': '766684'}, {'name': 'Shell', 'bytes': '312013'}, {'name': 'Thrift', 'bytes': '55594'}, {'name': 'XSLT', 'bytes': '3924'}]}
github
0
package org.apache.gobblin.kafka.client; /** * A kafka message/record consumed from {@link GobblinKafkaConsumerClient}. This interface provides APIs to read message * metadata. Extension interfaces like {@link DecodeableKafkaRecord} or {@link ByteArrayBasedKafkaRecord} provide APIs * to read the actual message/record. */ public interface KafkaConsumerRecord { /** * Offset of this record */ public long getOffset(); /** * Next offset after this record */ public long getNextOffset(); /** * Size of the message in bytes. {@value BaseKafkaConsumerRecord#VALUE_SIZE_UNAVAILABLE} if kafka-client version * does not provide size (like Kafka 09 clients) */ public long getValueSizeInBytes(); }
{'content_hash': 'aea85abcee854de8b0ecbb631d829a2f', 'timestamp': '', 'source': 'github', 'line_count': 26, 'max_line_length': 120, 'avg_line_length': 28.153846153846153, 'alnum_prop': 0.7295081967213115, 'repo_name': 'aditya1105/gobblin', 'id': '5308a1836406aaacc40f3970cb684495bdf7911e', 'size': '1532', 'binary': False, 'copies': '5', 'ref': 'refs/heads/master', 'path': 'gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/kafka/client/KafkaConsumerRecord.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C++', 'bytes': '40'}, {'name': 'CSS', 'bytes': '14588'}, {'name': 'Groovy', 'bytes': '2273'}, {'name': 'HTML', 'bytes': '13792'}, {'name': 'Java', 'bytes': '12390986'}, {'name': 'JavaScript', 'bytes': '42618'}, {'name': 'PLSQL', 'bytes': '749'}, {'name': 'Python', 'bytes': '52046'}, {'name': 'Roff', 'bytes': '202'}, {'name': 'Shell', 'bytes': '72119'}, {'name': 'XSLT', 'bytes': '10197'}]}
github
0
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SeparatedFileProcessor { public class Schema { public const string Rule_Required = "Required"; public const string Rule_Int32 = "Int32"; public const string Rule_Long = "Int64"; public const string Rule_DateTime = "DateTime"; private List<Tuple<int, Func<string, string>>> _fields = new List<Tuple<int, Func<string, string>>>(); public Schema(string schema) { if (string.IsNullOrEmpty(schema)) return; var strings = schema.Split(';'); int position = 0; foreach (var s in strings) { var def = s.Split('='); int pos = def.Length == 2 ? Convert.ToInt32(def[0]) : position; string descriptor = def.Length == 2 ? def[1] : def[0]; position++; _fields.Add(new Tuple<int, Func<string, string>>( pos, GetValidator(descriptor, ""))); } } private Func<string, string> GetValidator(string descriptor, string option) { switch (descriptor) { case Schema.Rule_Required: return ((s) => s.Trim().Length == 0 ? "Field is required" : string.Empty); case Schema.Rule_Int32: int i; return ((s) => !Int32.TryParse(s, out i) ? "Field is not Int32" : string.Empty); case Schema.Rule_Long: long l; return ((s) => !Int64.TryParse(s, out l) ? "Field is not Int64" : string.Empty); case Schema.Rule_DateTime: DateTime d; return ((s) => !DateTime.TryParse(s, out d) ? "Field is not DateTime" : string.Empty); default: throw new ArgumentException("Unknown descriptor: " + descriptor); } } public string Validate(string[] fields) { var builder = new StringBuilder(); for (int i = 0; i < fields.Length; i++) { string field = fields[i]; var validator = _fields.FirstOrDefault(x => x.Item1 == i); var result = validator == null ? string.Empty : validator.Item2(field); if (!string.IsNullOrEmpty(result)) builder.AppendLine("Field index " + i + " - " + result); } return builder.ToString(); } } }
{'content_hash': '9de77357f3e03424a53509f2ade6fb09', 'timestamp': '', 'source': 'github', 'line_count': 78, 'max_line_length': 110, 'avg_line_length': 34.26923076923077, 'alnum_prop': 0.49756827534605313, 'repo_name': 'aliostad/SeparatedFileProcessor', 'id': '1951f965f1b816e0d9f5d6d2a279a89df205c910', 'size': '2675', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'src/SeparatedFileProcessor/Schema.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C#', 'bytes': '9150'}]}
github
0
"""Filename globbing utility.""" import os import fnmatch import re __all__ = ["glob"] def glob(pathname): """Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. """ if not has_magic(pathname): if os.path.exists(pathname): return [pathname] else: return [] dirname, basename = os.path.split(pathname) if has_magic(dirname): list = glob(dirname) else: list = [dirname] if not has_magic(basename): result = [] for dirname in list: if basename or os.path.isdir(dirname): name = os.path.join(dirname, basename) if os.path.exists(name): result.append(name) else: result = [] for dirname in list: sublist = glob1(dirname, basename) for name in sublist: result.append(os.path.join(dirname, name)) return result def glob1(dirname, pattern): if not dirname: dirname = os.curdir try: names = os.listdir(dirname) except os.error: return [] result = [] for name in names: if name[0] != '.' or pattern[0] == '.': if fnmatch.fnmatch(name, pattern): result.append(name) return result magic_check = re.compile('[*?[]') def has_magic(s): return magic_check.search(s) is not None
{'content_hash': 'e3aa188c0cf28130dea37f6f7a4bb4b0', 'timestamp': '', 'source': 'github', 'line_count': 57, 'max_line_length': 70, 'avg_line_length': 25.43859649122807, 'alnum_prop': 0.5627586206896552, 'repo_name': 'Integral-Technology-Solutions/ConfigNOW', 'id': 'eeb6bdd6468aeaaa0a20fdaa6850eb2a9099b5c6', 'size': '1450', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'Lib/glob.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '1499'}, {'name': 'HTML', 'bytes': '2243'}, {'name': 'Java', 'bytes': '594'}, {'name': 'Python', 'bytes': '2973691'}, {'name': 'Shell', 'bytes': '5797'}]}
github
0
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ /* * This code was generated by https://github.com/googleapis/google-api-java-client-services/ * Modify at your own risk. */ package com.google.api.services.datalabeling.v1beta1.model; /** * Details of a LabelImageSegmentation operation metadata. * * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Data Labeling API. For a detailed explanation see: * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> * </p> * * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata extends com.google.api.client.json.GenericJson { /** * Basic human annotation config. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig basicConfig; /** * Basic human annotation config. * @return value or {@code null} for none */ public GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig getBasicConfig() { return basicConfig; } /** * Basic human annotation config. * @param basicConfig basicConfig or {@code null} for none */ public GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata setBasicConfig(GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig basicConfig) { this.basicConfig = basicConfig; return this; } @Override public GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata set(String fieldName, Object value) { return (GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata) super.set(fieldName, value); } @Override public GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata clone() { return (GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata) super.clone(); } }
{'content_hash': '10a5ceea7224ee9aa5d1ab29007152ae', 'timestamp': '', 'source': 'github', 'line_count': 66, 'max_line_length': 182, 'avg_line_length': 39.378787878787875, 'alnum_prop': 0.7764524817237399, 'repo_name': 'googleapis/google-api-java-client-services', 'id': 'edf7238b4929043b369ea59ca28f5771b193268a', 'size': '2599', 'binary': False, 'copies': '3', 'ref': 'refs/heads/main', 'path': 'clients/google-api-services-datalabeling/v1beta1/2.0.0/com/google/api/services/datalabeling/v1beta1/model/GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata.java', 'mode': '33188', 'license': 'apache-2.0', 'language': []}
github
0
/*------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. -------------------------------------------------------------------------*/ /// \file vtkQtChartLegendManager.h /// \date January 8, 2009 #ifndef _vtkQtChartLegendManager_h #define _vtkQtChartLegendManager_h #include "vtkQtChartExport.h" #include <QObject> class vtkQtChartArea; class vtkQtChartLayer; class vtkQtChartLegend; class vtkQtChartLegendManagerInternal; class vtkQtChartLegendModel; class vtkQtChartSeriesLayer; class vtkQtChartSeriesModel; /// \class vtkQtChartLegendManager /// \brief /// The vtkQtChartLegendManager class builds a chart legend from the /// chart series layers. class VTKQTCHART_EXPORT vtkQtChartLegendManager : public QObject { Q_OBJECT public: /// \brief /// Creates a chart legend manager instance. /// \param parent The parent object. vtkQtChartLegendManager(QObject *parent=0); virtual ~vtkQtChartLegendManager(); /// \name Setup Methods //@{ /// \brief /// Sets the chart area that holds the chart series layers. /// \param area The new chart area. void setChartArea(vtkQtChartArea *area); /// \brief /// Sets the chart legend to manage. /// \param legend The new chart legend. void setChartLegend(vtkQtChartLegend *legend); //@} public slots: /// \brief /// Inserts a chart layer at the given index. /// \param index The index of the layer. /// \param chart The chart layer that was inserted. void insertLayer(int index, vtkQtChartLayer *chart); /// \brief /// Removes the specified chart layer from the list. /// \param index The index of the layer. /// \param chart The chart layer that will be removed. void removeLayer(int index, vtkQtChartLayer *chart); /// \brief /// Sets the visibility for the series in the given chart layer. /// \param chart The chart layer. /// \param visible True if the layer series should be visible. void setLayerVisible(vtkQtChartLayer *chart, bool visible); private slots: /// \brief /// Changes the series model for a series layer. /// \param previous The previous series model. /// \param current The current series model. void changeModel(vtkQtChartSeriesModel *previous, vtkQtChartSeriesModel *current); /// \brief /// Updates the legend model for series changes. /// \param first The first index of the series range. /// \param last The last index of the series range. void updateModelEntries(int first, int last); /// Inserts all the series for the model sending the signal. void insertModelEntries(); /// \brief /// Inserts the given series for the model sending the signal. /// \param first The first index of the series range. /// \param last The last index of the series range. void insertModelEntries(int first, int last); /// Removes all the series for the model sending the signal. void removeModelEntries(); /// \brief /// Removes the given series for the model sending the signal. /// \param first The first index of the series range. /// \param last The last index of the series range. void removeModelEntries(int first, int last); private: /// \brief /// Gets the starting legend index for the given chart layer. /// \param chart The chart series layer. /// \return /// The starting legend index for the given chart layer. int getLegendIndex(vtkQtChartSeriesLayer *chart); /// \brief /// Gets the starting legend index for the given chart model. /// \param model The chart series model. /// \param chart Used to return the model's chart layer. /// \return /// The starting legend index for the given chart model. int getLegendIndex(vtkQtChartSeriesModel *model, vtkQtChartSeriesLayer **chart=0); /// \brief /// Inserts entries into the chart legend. /// \param legend The chart legend model to modify. /// \param index The starting legend index for the chart layer. /// \param chart The chart series layer. /// \param model The chart series model. /// \param first The first model index in the series range. /// \param last The last model index in the series range. void insertLegendEntries(vtkQtChartLegendModel *legend, int index, vtkQtChartSeriesLayer *chart, vtkQtChartSeriesModel *model, int first, int last); /// \brief /// Removes entries from the chart legend. /// \param legend The chart legend model to modify. /// \param index The starting legend index for the chart layer. /// \param first The first model index in the series range. /// \param last The last model index in the series range. void removeLegendEntries(vtkQtChartLegendModel *legend, int index, int first, int last); private: vtkQtChartLegendManagerInternal *Internal; ///< Stores the layers. vtkQtChartArea *Area; ///< Stores the chart area. vtkQtChartLegend *Legend; ///< Stores the chart legend. private: vtkQtChartLegendManager(const vtkQtChartLegendManager &); vtkQtChartLegendManager &operator=(const vtkQtChartLegendManager &); }; #endif
{'content_hash': '1140d1e81360f66d9d4fcdaa14165b8a', 'timestamp': '', 'source': 'github', 'line_count': 153, 'max_line_length': 75, 'avg_line_length': 34.42483660130719, 'alnum_prop': 0.6920448072906779, 'repo_name': 'spthaolt/VTK', 'id': '34e64c5ff16cb453b844ebb892e875ccd5c416e7', 'size': '5860', 'binary': False, 'copies': '13', 'ref': 'refs/heads/5.10.1_vs2013', 'path': 'GUISupport/Qt/Chart/vtkQtChartLegendManager.h', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Assembly', 'bytes': '37780'}, {'name': 'C', 'bytes': '43108184'}, {'name': 'C++', 'bytes': '55336287'}, {'name': 'CMake', 'bytes': '1076323'}, {'name': 'CSS', 'bytes': '7532'}, {'name': 'GLSL', 'bytes': '211257'}, {'name': 'Groff', 'bytes': '65394'}, {'name': 'HTML', 'bytes': '287138'}, {'name': 'Java', 'bytes': '97801'}, {'name': 'Lex', 'bytes': '34703'}, {'name': 'Makefile', 'bytes': '7856'}, {'name': 'Objective-C', 'bytes': '14945'}, {'name': 'Objective-C++', 'bytes': '94949'}, {'name': 'Perl', 'bytes': '174900'}, {'name': 'Prolog', 'bytes': '4406'}, {'name': 'Python', 'bytes': '554641'}, {'name': 'QMake', 'bytes': '340'}, {'name': 'Shell', 'bytes': '30381'}, {'name': 'Tcl', 'bytes': '1497770'}, {'name': 'TeX', 'bytes': '123478'}, {'name': 'Yacc', 'bytes': '154162'}]}
github
0
<!-- Copyright (C) 2015 Orange Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd" logicalFilePath="paas-db-changelog"> <changeSet author="dwvd1206" id="1364977512309-2"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fk919523435de935d9ddf79cc1cf58c3cb"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-3"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fk919523436ce82918ddf79cc1cf58c3cb"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-4"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fkddf79cc1fac03d57cf58c3cb"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-5"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fk91952343e880561addf79cc1cf58c3cb"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-6"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fkcf58c3cb17829cb4"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-7"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fk91952343f1223d41ddf79cc1cf58c3cb"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-8"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fk91952343563b4f6dddf79cc1cf58c3cb"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-9"> <dropForeignKeyConstraint baseTableName="metrics_agent_instance" baseTableSchemaName="public" constraintName="fk91952343b631131ddf79cc1cf58c3cb"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-11"> <dropUniqueConstraint constraintName="metrics_agent_instance_name_key" tableName="metrics_agent_instance"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-1"> <renameTable oldTableName="metrics_agent_instance" newTableName="monitoring_agent"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-20"> <renameColumn tableName="monitoring_agent" oldColumnName="managementinstanceport_id" newColumnName="monitoringagentport_id"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-21"> <renameColumn tableName="monitoring_agent" oldColumnName="managementinstanceserverip" newColumnName="monitoringagentserverip"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-22"> <renameColumn tableName="monitoring_agent" oldColumnName="managementinstanceserverport" newColumnName="monitoringagentserverport"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-23"> <renameColumn tableName="monitoring_agent" oldColumnName="managementinstanceserverlogin" newColumnName="monitoringagentserverlogin"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-24"> <renameColumn tableName="monitoring_agent" oldColumnName="managementinstanceserverpassword" newColumnName="monitoringagentserverpassword"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-25"> <dropPrimaryKey tableName="monitoring_agent" constraintName="metrics_agent_instance_pkey"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-26"> <addPrimaryKey tableName="monitoring_agent" columnNames="id" constraintName="monitoring_agent_pkey"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-10"> <addUniqueConstraint columnNames="name" constraintName="monitoring_agent_name_key" deferrable="false" disabled="false" initiallyDeferred="false" tableName="monitoring_agent"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-12"> <addForeignKeyConstraint baseColumnNames="applogdirectory_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk919523435de935d9ddf79cc160b4e82e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="directory" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-13"> <addForeignKeyConstraint baseColumnNames="configdirectory_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk919523436ce82918ddf79cc160b4e82e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="directory" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-14"> <addForeignKeyConstraint baseColumnNames="javahomedirectory_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fkddf79cc1fac03d5760b4e82e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="directory" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-15"> <addForeignKeyConstraint baseColumnNames="logdirectory_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk91952343e880561addf79cc160b4e82e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="directory" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-16"> <addForeignKeyConstraint baseColumnNames="monitoringagentport_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk60b4e82ebfc6af2f" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="platform_port_resource" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-17"> <addForeignKeyConstraint baseColumnNames="platform_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk91952343f1223d41ddf79cc160b4e82e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="platform_server" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-18"> <addForeignKeyConstraint baseColumnNames="tmpdirectory_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk91952343563b4f6dddf79cc160b4e82e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="directory" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1364977512309-19"> <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk91952343b631131ddf79cc160b4e82e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="platform_user" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1365002929813-1"> <createTable tableName="monitoring_subscription"> <column name="id" type="integer"> <constraints nullable="false" primaryKey="true" primaryKeyName="monitoring_subscription_pkey"/> </column> <column name="name" type="VARCHAR(250)"> <constraints nullable="false"/> </column> <column name="version" type="integer"> <constraints nullable="false"/> </column> <column name="deploymentstate" type="integer"> <constraints nullable="false"/> </column> <column name="logicalmodelid" type="VARCHAR(255)"/> <column name="monitoringstate" type="integer"> <constraints nullable="false"/> </column> <column name="technicalid" type="VARCHAR(255)"/> <column name="description" type="VARCHAR(255)"/> <column name="technicaldeployment_id" type="integer"> <constraints nullable="false"/> </column> </createTable> </changeSet> <changeSet author="dwvd1206" id="1365002929813-2"> <addColumn tableName="monitoring_agent"> <column name="monitoringportalresourceurl" type="VARCHAR(255)"/> </addColumn> </changeSet> <changeSet author="dwvd1206" id="1365002929813-3"> <addColumn tableName="monitoring_agent"> <column name="subscription_id" type="integer"/> </addColumn> </changeSet> <changeSet author="dwvd1206" id="1365002929813-4"> <addUniqueConstraint columnNames="name" constraintName="monitoring_subscription_name_key" deferrable="false" disabled="false" initiallyDeferred="false" tableName="monitoring_subscription"/> </changeSet> <changeSet author="dwvd1206" id="1365002929813-5"> <addForeignKeyConstraint baseColumnNames="subscription_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk60b4e82e38ca1446" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="monitoring_subscription" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1365002929813-6"> <addForeignKeyConstraint baseColumnNames="technicaldeployment_id" baseTableName="monitoring_subscription" baseTableSchemaName="public" constraintName="fka569bd1311ae09d62c50cfb4" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="technical_deployment" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1365150003209-1"> <addColumn tableName="monitoring_agent"> <column name="datadirectory_id" type="integer"/> </addColumn> </changeSet> <changeSet author="dwvd1206" id="1365150003209-2"> <addColumn tableName="monitoring_agent"> <column name="productdirectory_id" type="integer"/> </addColumn> </changeSet> <changeSet author="dwvd1206" id="1365150003209-3"> <addForeignKeyConstraint baseColumnNames="datadirectory_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk60b4e82efb503980" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="directory" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> <changeSet author="dwvd1206" id="1365150003209-4"> <addForeignKeyConstraint baseColumnNames="productdirectory_id" baseTableName="monitoring_agent" baseTableSchemaName="public" constraintName="fk60b4e82e319c5745" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="directory" referencedTableSchemaName="public" referencesUniqueColumn="false"/> </changeSet> </databaseChangeLog>
{'content_hash': '63bbd70a12acaba2d33e7a342d8ed77b', 'timestamp': '', 'source': 'github', 'line_count': 168, 'max_line_length': 411, 'avg_line_length': 75.81547619047619, 'alnum_prop': 0.7468791709193687, 'repo_name': 'Orange-OpenSource/elpaaso-core', 'id': 'c0aa446fc0d96a7f22074ea0dbc7d32f4440ab2f', 'size': '12737', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'cloud-paas-db/src/main/resources/META-INF/liquibase/delta-changelogs/paas-db-changelog-delta-3134-env-monitoring.xml', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '3983'}, {'name': 'CSS', 'bytes': '78369'}, {'name': 'Cucumber', 'bytes': '55546'}, {'name': 'HTML', 'bytes': '170257'}, {'name': 'Java', 'bytes': '4183310'}, {'name': 'JavaScript', 'bytes': '5958'}]}
github
0
``` md #### [Madasamy Ravi Nadar Mamtha](https://github.com/Mamtha3005) <img src="images/Mamtha.png" width="150"><br> Role: Developer * Components in charge of: [Logic](https://github.com/CS2103AUG2016-W15-C3/main/blob/master/docs/DeveloperGuide.md#logic-component) * Aspects/tools in charge of: Documentation, Scheduling * Features implemented: * [Edit Command](https://github.com/CS2103AUG2016-W15-C3/main/blob/master/docs/UserGuide.md#editing-a-task--edit) * [List-date Command] (https://github.com/CS2103AUG2016-W15-C3/main/blob/master/docs/UserGuide.md#listing-a-task--list) * [List-priority Command] (https://github.com/CS2103AUG2016-W15-C3/main/blob/master/docs/UserGuide.md#listing-a-task--list) * Code Written: [[functional code](https://github.com/CS2103AUG2016-W15-C3/main/blob/master/collated/main/A0142073R.md)] [[test code](https://github.com/CS2103AUG2016-W15-C3/main/blob/master/collated/test/A0142073R.md)] [[docs](https://github.com/CS2103AUG2016-W15-C3/main/blob/master/collated/docs/A0142073R.md)] * Other major contributions: * Contributed to second round refactoring from AddressBook Level 4 to Taskell [[#64](https://github.com/CS2103AUG2016-W15-C3/main/pull/64)] * Copy, editing and revising of documentation ----- ``` ###### \DeveloperGuide.md ``` md ##Introduction Taskell is a simple software for users to keep track of their daily tasks and manage their busy schedule. Keyboard lovers will be able to experience the full benefit of Taskell as it implements a command-line interface. This developer guide will help you understand the design and implementation of Taskell. It helps you understand how Taskell works and how you can contribute for further development. This guide follows a top-down approach by giving an overview of the essential components first, followed by thorough explanation subsequently. ``` ###### \DeveloperGuide.md ``` md ## Appendix A : User Stories Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unlikely to have) - `*` Priority | As a ... | I want to ... | So that I can... -------- | :---------- | :--------- | :----------- `* * *` | new user | see user guide | refer to the different commands when I forget how to use the application. `* * *` | user | add a task | take note of all my tasks. `* * *` | user | delete a task | remove task that I no longer need. `* * *` | user | find a task by its description | locate details of tasks without having to go through the entire list. `* * *` | user | categorize my tasks | group and view tasks of similar type. `* * *` | user | view all the tasks, sorted by day, month | plan my schedule. `* * *` | user | edit task | make changes to the task created. `* * *` | user | have a start and end time for an event | take note of the duration of the event. `* * *` | user | set deadlines for a task | remember when the task is due. `* * *` | user | undo my previous action | correct any mistakes made. `* * *` | user | mark a task as done | focus on the uncompleted tasks. `* * *` | user | have flexible command format |have various options to execute a command. `* * *` | user | specify a folder with cloud syncing service as the storage location | I can easily access my task manager from different computers. `* * *` | user | I want to see a list of completed tasks | view all the tasks I had done. `* *` | user | delete tasks based on a certain index | delete a few tasks instead of one. `*` | user | set some of my task recursively | schedule them on a daily/weekly/monthly basis. `*` | user | be able to block multiple timeslots, and release the timeslots when timing is confirmed| schedule in events which have uncertain timings more efficiently. `*` | user | sort tasks by priority | view the most important tasks. `*` | user | edit my notification time period | customise if I wanted to be reminded earlier or later. `*` | user | use the history command | saves time typing repeated commands. `*` | user | view the task in either calendar form or list form | switch between the two display format. ``` ###### \UserGuide.md ``` md ## Introduction Are you having a hard time remembering all the work you have to do? Do you have trouble finding a task manager that suits your preference for keyboard input? Well, worry no more, Taskell is here for you! <br> Taskell will be your personal secretary. It will keep track of your daily tasks and remind you of any important dates and deadlines. What distinguishes Taskell from other task managers is that Taskell only requires a single line of command for every task input. This means that you can record each one of your tasks with just a single statement. You will no longer have to use a mouse if you do not wish to. <br> Ready to begin life anew with a more efficient task manager? Read on to find out more! ``` ###### \UserGuide.md ``` md #### Editing a task : `edit` To edit a task<br> Formats: - `edit ` INDEX `st: `[NEWSTARTTIME] `et: `[NEWENDTIME] `desc: `[NEWDESCRIPTION] `sd: `[NEWSTARTDATE] `ed: `[NEWENDDATE] `p: `[NEWPRIORITY]<br> <br> <img src="images/editCmd.png" width="600"> </br> Diagram 5: Edits the 1st task on the list. <br> Entering "edit 1 desc: send all emails sd: 11-11-2016 ed: 12-11-2016 st: 3pm et: 4pm p: 3", will update description to "send all emails", start date to 11-11-2016, end date to 12-11-2016, start time to 3pm end time to 4pm and priority to 3.<br> ``` ###### \UserGuide.md ``` md ## Command Summary Command | Format -------- | :-------- Add Floating Task | `add` TASK ITEM Add Event | `add` TASK ITEM <strong>by</strong> [DATE] Add Event | `add` TASK ITEM <strong>by</strong> [TIME] Add Event With Deadline | `add` TASK ITEM <strong>by</strong> [DATE][TIME] Calendar View | `calendar` or `cal` Clear | `clear` Complete | `done` INDEX Delete | `delete` INDEX Edit | `edit` INDEX NEWTASK Find | `find` KEYWORD [MORE_KEYWORDS] Find Tag | `find-tag` KEYWORD [MORE_KEYWORDS] Help | `help` History | `history` or `hist` List Incomplete Tasks| `list` List All Tasks | `list-all` List Given Day | `list-date` [DATE] List Tasks Done | `list-done` [DONE] Undo | `undo` or `undo` INDEX ## Appendix A Supported Date Format | Example -------- | :-------- DD-MM-YY |1-1-16 DD-MM-YY | 1-1-2016 DD-MM-YY | 1-Jan-2016 DD-MM-YY | 1-January-2016 DD-MM-YY | 1.Jan.2016 DD-MM-YY | 1.January.2016 MM-YY | july-16 MM | july day | today day | tdy day | tmr day | tomorrow day | thursday ## Appendix B Supported Time Format | Example -------- | :-------- 12hour |1pm 12hour |12am 12hour |11.45pm ```
{'content_hash': '26f26b21621b211df23a35bab17ad278', 'timestamp': '', 'source': 'github', 'line_count': 140, 'max_line_length': 412, 'avg_line_length': 46.957142857142856, 'alnum_prop': 0.6975965926376635, 'repo_name': 'Mamtha3005/addressbook-level4', 'id': '0b3ee61fd2a266820171eef138fd1842532add96', 'size': '6605', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'collated/docs/A0142073R.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '6194'}, {'name': 'Java', 'bytes': '496085'}, {'name': 'XSLT', 'bytes': '6290'}]}
github
0
package net.appjet.oui; import net.appjet.bodylock.{BodyLock, Executable}; import java.io.File; import java.util.{Properties, Date}; import java.lang.annotation.Annotation; import java.text.SimpleDateFormat; import scala.collection.mutable.{HashMap, SynchronizedMap, HashSet}; import scala.collection.JavaConversions; import org.mortbay.thread.QueuedThreadPool; import org.mortbay.jetty.servlet.{Context, HashSessionIdManager, FilterHolder, ServletHolder}; import org.mortbay.jetty.handler.{HandlerCollection, RequestLogHandler, HandlerList}; import org.mortbay.jetty.{Server, NCSARequestLog, Request, Response, Handler}; import org.mortbay.servlet.GzipFilter; // removed due to license restrictions; REMOVED_COS_OF_COS // import com.oreilly.servlet.MultipartFilter; import net.appjet.common.util.HttpServletRequestFactory; import net.appjet.common.util.BetterFile; import net.appjet.common.cli._; import net.appjet.bodylock.JSCompileException; import org.apache.solr.servlet.SolrDispatchFilter; object main { val startTime = new java.util.Date(); var lastTimeThreadPoolGrew = new java.util.Date(); def maybeGrowThreadPool() { if (queuedThreadPool.getIdleThreads() == 0 && queuedThreadPool.getMaxThreads() < config.maxThreads) { val now = new java.util.Date(); if (now.getTime() - lastTimeThreadPoolGrew.getTime() > config.maxThreadsIncrementDelay) { lastTimeThreadPoolGrew = now; queuedThreadPool.setMaxThreads(queuedThreadPool.getMaxThreads() + config.maxThreadsIncrementValue); } } } def quit(status: Int) { java.lang.Runtime.getRuntime().halt(status); } def setupFilesystem() { val logdir = new File(config.logDir+"/backend/access"); if (! logdir.isDirectory()) if (! logdir.mkdirs()) quit(1); } val options = for (m <- config.allProperties if (m.getAnnotation(classOf[ConfigParam]) != null)) yield { val cp = m.getAnnotation(classOf[ConfigParam]) new CliOption(m.getName(), cp.value(), if (cp.argName().length > 0) Some(cp.argName()) else None); } def printUsage() { println("\n--------------------------------------------------------------------------------"); println("usage:"); println((new CliParser(options)).usage); println("--------------------------------------------------------------------------------\n"); } def extractOptions(args: Array[String]) { val parser = new CliParser(options); val opts = try { parser.parseOptions(args)._1; } catch { case e: ParseException => { println("error: "+e.getMessage()); printUsage(); System.exit(1); null; } } if (opts.contains("configFile")) { val p = new Properties(); p.load(new java.io.FileInputStream(opts("configFile"))); extractOptions(p); } for ((k, v) <- opts) { config.values(k) = v; } } def extractOptions(props: Properties) { for (k <- for (o <- JavaConversions.enumerationAsScalaIterator(props.propertyNames())) yield o.asInstanceOf[String]) { config.values(k) = props.getProperty(k); } } lazy val startupExecutable = (new FixedDiskLibrary(new SpecialJarOrNotFile(config.ajstdlibHome, "onstartup.js"))).executable; def runOnStartup() { execution.runOutOfBand(startupExecutable, "Startup", None, { error => error match { case e: JSCompileException => { } case e: Throwable => { e.printStackTrace(); } case (sc: Int, msg: String) => { println(msg); } case x => println(x); } System.exit(1); }); } lazy val shutdownExecutable = (new FixedDiskLibrary(new SpecialJarOrNotFile(config.ajstdlibHome, "onshutdown.js"))).executable; def runOnShutdown() { execution.runOutOfBand(shutdownExecutable, "Shutdown", None, { error => error match { case e: JSCompileException => { } case e: Throwable => { } case (sc: Int, msg: String) => { println(msg); } case x => println(x); } }); } def runOnSars(q: String) = { val ec = execution.runOutOfBand(execution.sarsExecutable, "SARS", Some(Map("sarsRequest" -> q)), { error => error match { case e: JSCompileException => { throw e; } case e: Throwable => { exceptionlog(e); throw e; } case (sc: Int, msg: String) => { println(msg); throw new RuntimeException(""+sc+": "+msg) } case x => { println(x); throw new RuntimeException(x.toString()) } } }); ec.attributes.get("sarsResponse").map(_.toString()); } def stfu() { System.setProperty("org.mortbay.log.class", "net.appjet.oui.STFULogger"); System.setProperty("com.mchange.v2.log.MLog", "com.mchange.v2.log.FallbackMLog"); System.setProperty("com.mchange.v2.log.FallbackMLog.DEFAULT_CUTOFF_LEVEL", "OFF"); } var server: Server = null; var sarsServer: net.appjet.common.sars.SarsServer = null; var queuedThreadPool: QueuedThreadPool = null; var loggers = new HashSet[GenericLogger]; def main(args: Array[String]) { val etherpadProperties = getClass.getResource("/etherpad.properties"); if (etherpadProperties != null) { val p = new Properties(); p.load(etherpadProperties.openStream); extractOptions(p); } extractOptions(args); if (! config.verbose) stfu(); setupFilesystem(); if (config.devMode) config.print; if (config.profile) profiler.start(); if (config.listenMonitoring != "0:0") monitoring.startMonitoringServer(); // this needs a better place. if (config.devMode) BodyLock.map = Some(new HashMap[String, String] with SynchronizedMap[String, String]); server = new Server(); if (config.maxStartupThreads > 0) queuedThreadPool = new QueuedThreadPool(config.maxStartupThreads); else queuedThreadPool = new QueuedThreadPool(); server.setThreadPool(queuedThreadPool); // set up socket connectors val nioconnector = new CometSelectChannelConnector; var sslconnector: CometSslSelectChannelConnector = null; nioconnector.setHeaderBufferSize(8192); nioconnector.setPort(config.listenPort); if (config.listenHost.length > 0) nioconnector.setHost(config.listenHost); if (config.listenSecurePort == 0) { server.setConnectors(Array(nioconnector)); } else { sslconnector = new CometSslSelectChannelConnector; sslconnector.setPort(config.listenSecurePort); sslconnector.setHeaderBufferSize(8192); if (config.listenSecureHost.length > 0) sslconnector.setHost(config.listenSecureHost); if (! config.sslKeyStore_isSet) { val url = getClass.getResource("/mirror/snakeoil-ssl-cert"); if (url != null) sslconnector.setKeystore(url.toString()); else sslconnector.setKeystore(config.sslKeyStore); } else { sslconnector.setKeystore(config.sslKeyStore); } sslconnector.setPassword(config.sslStorePassword); sslconnector.setKeyPassword(config.sslKeyPassword); sslconnector.setTrustPassword(config.sslStorePassword); sslconnector.setExcludeCipherSuites(Array[String]( "SSL_RSA_WITH_3DES_EDE_CBC_SHA", "SSL_DHE_RSA_WITH_DES_CBC_SHA", "SSL_DHE_DSS_WITH_DES_CBC_SHA", "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA", "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA", "SSL_RSA_WITH_DES_CBC_SHA", "SSL_RSA_EXPORT_WITH_RC4_40_MD5", "SSL_RSA_EXPORT_WITH_DES40_CBC_SHA", "SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA", "SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA", "SSL_RSA_WITH_NULL_MD5", "SSL_RSA_WITH_NULL_SHA", "SSL_DH_anon_WITH_3DES_EDE_CBC_SHA", "SSL_DH_anon_WITH_DES_CBC_SHA", "SSL_DH_anon_EXPORT_WITH_RC4_40_MD5", "SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA")); server.setConnectors(Array(nioconnector, sslconnector)); } // set up Context and Servlet val handler = new Context(server, "/", Context.NO_SESSIONS | Context.NO_SECURITY); handler.addServlet(new ServletHolder(new OuiServlet), "/"); // Solr val solrHolder = handler.addFilter(classOf[SolrDispatchFilter], "/solr/*", Handler.REQUEST); solrHolder.setInitParameter("solrconfig-filename", "solrconfig.xml"); solrHolder.setInitParameter("path-prefix", "/solr"); // removed due to license restrictions; REMOVED_COS_OF_COS // val filterHolder = new FilterHolder(new MultipartFilter()); // filterHolder.setInitParameter("uploadDir", System.getProperty("java.io.tmpdir")); // handler.addFilter(filterHolder, "/*", 1); global.context = handler; //main.server.getThreadPool() // set up apache-style logging val requestLogHandler = new RequestLogHandler(); val requestLog = new NCSARequestLog(config.logDir+"/backend/access/access-yyyy_mm_dd.request.log") { override def log(req: Request, res: Response) { try { if (config.devMode || config.specialDebug) super.log(req, res); else if (res.getStatus() != 200 || config.transportPrefix == null || ! req.getRequestURI().startsWith(config.transportPrefix)) super.log(req, res); val d = new Date(); appstats.stati.foreach(_(if (res.getStatus() < 0) 404 else res.getStatus()).hit(d)); } catch { case e => { exceptionlog("Error writing to log?"); exceptionlog(e); } } } }; requestLog.setRetainDays(365); requestLog.setAppend(true); requestLog.setExtended(true); requestLog.setLogServer(true); requestLog.setLogLatency(true); requestLog.setLogTimeZone("PST"); requestLogHandler.setRequestLog(requestLog); // set handlers with server val businessHandlers = new HandlerList(); businessHandlers.setHandlers(Array(handler)); val allHandlers = new HandlerCollection(); allHandlers.setHandlers(Array(businessHandlers, requestLogHandler)); server.setHandler(allHandlers); // fix slow startup bug server.setSessionIdManager(new HashSessionIdManager(new java.util.Random())); // run the onStartup script. runOnStartup(); // preload some runners, if necessary. if (config.preloadRunners > 0) { val b = new java.util.concurrent.CountDownLatch(config.preloadRunners); for (i <- 0 until config.preloadRunners) (new Thread { ScopeReuseManager.freeRunner(ScopeReuseManager.newRunner); b.countDown(); }).start(); while (b.getCount() > 0) { b.await(); } println("Preloaded "+config.preloadRunners+" runners."); } // start SARS server. if (config.listenSarsPort > 0) { try { import net.appjet.common.sars._; sarsServer = new SarsServer(config.sarsAuthKey, new SarsMessageHandler { override def handle(q: String) = runOnSars(q) }, if (config.listenSarsHost.length > 0) Some(config.listenSarsHost) else None, config.listenSarsPort); sarsServer.daemon = true; sarsServer.start(); } catch { case e: java.net.SocketException => { println("SARS: A socket exception occurred: "+e.getMessage()+" on SARS server at "+config.listenSarsHost+":"+config.listenSarsPort); java.lang.Runtime.getRuntime().halt(1); } } } // start server java.lang.Runtime.getRuntime().addShutdownHook(new Thread() { override def run() { val df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSZ"); def printts(str: String) { println("["+df.format(new Date())+"]: "+str); } printts("Shutting down..."); handler.setShutdown(true); Thread.sleep(if (config.devMode) 500 else 3000); printts("...done, running onshutdown."); runOnShutdown(); printts("...done, stopping server."); server.stop(); server.join(); printts("...done, flushing logs."); for (l <- loggers) { l.flush(); l.close(); } printts("...done."); } }); def socketError(c: org.mortbay.jetty.Connector, e: java.net.SocketException) { var msg = e.getMessage(); println("SOCKET ERROR: "+msg+" - "+(c match { case null => "(unknown socket)"; case x => { (x.getHost() match { case null => "localhost"; case y => y; })+":"+x.getPort(); } })); if (msg.contains("Address already in use")) { println("Did you make sure that ports "+config.listenPort+" and "+config.listenSecurePort+" are not in use?"); } if (msg.contains("Permission denied")) { println("Perhaps you need to run as the root user or as an Administrator?"); } } var c: org.mortbay.jetty.Connector = null; try { c = nioconnector; c.open(); if (sslconnector != null) { c = sslconnector; c.open(); } c = null; allHandlers.start(); server.start(); } catch { case e: java.net.SocketException => { socketError(c, e); java.lang.Runtime.getRuntime().halt(1); } case e: org.mortbay.util.MultiException => { println("SERVER ERROR: Couldn't start server; multiple errors."); for (i <- JavaConversions.asScalaIterator(e.getThrowables.iterator())) { i match { case se: java.net.SocketException => { socketError(c, se); } case e => println("SERVER ERROR: Couldn't start server: "+i.asInstanceOf[Throwable].getMessage()); } } java.lang.Runtime.getRuntime().halt(1); } case e => { println("SERVER ERROR: Couldn't start server: "+e.getMessage()); java.lang.Runtime.getRuntime().halt(1); } } println("HTTP server listening on http://"+ (if (config.listenHost.length > 0) config.listenHost else "localhost")+ ":"+config.listenPort+"/"); if (config.listenSecurePort > 0) println("HTTPS server listening on https://"+ (if (config.listenSecureHost.length > 0) config.listenSecureHost else "localhost")+ ":"+config.listenSecurePort+"/"); if (config.listenSarsPort > 0) println("SARS server listening on "+ (if (config.listenSarsHost.length > 0) config.listenSarsHost else "localhost")+ ":"+config.listenSarsPort); } }
{'content_hash': '299f40276cab6e3f83ba491e081a4d24', 'timestamp': '', 'source': 'github', 'line_count': 400, 'max_line_length': 142, 'avg_line_length': 36.36, 'alnum_prop': 0.6266501650165016, 'repo_name': 'whackpad/whackpad', 'id': '19062b24900f154eae0703a91cad8d0cec0ee118', 'size': '15140', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'infrastructure/net.appjet.oui/main.scala', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '296'}, {'name': 'C++', 'bytes': '696'}, {'name': 'CSS', 'bytes': '376250'}, {'name': 'HTML', 'bytes': '233014'}, {'name': 'Java', 'bytes': '4510753'}, {'name': 'JavaScript', 'bytes': '4217147'}, {'name': 'Nginx', 'bytes': '3296'}, {'name': 'Objective-C', 'bytes': '2156476'}, {'name': 'Python', 'bytes': '77720'}, {'name': 'Scala', 'bytes': '229649'}, {'name': 'Shell', 'bytes': '32607'}]}
github
0
package org.apache.derbyTesting.functionTests.tests.jdbcapi; import org.apache.derbyTesting.functionTests.util.TestInputStream; import org.apache.derbyTesting.junit.BaseJDBCTestCase; import junit.framework.Test; import junit.framework.TestSuite; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.sql.Blob; import java.sql.Connection; import java.sql.SQLException; import java.io.IOException; import java.io.InputStream; /** * Tests reading and updating binary large objects (BLOBs). */ final public class BLOBTest extends BaseJDBCTestCase { /** * Constructor * @param name name of test case (method). */ public BLOBTest(String name) { super(name); } /** * Tests updating a Blob from a scollable resultset, using * result set update methods. * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromScrollableResultSetUsingResultSetMethods() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT * from " + BLOBDataModelSetup.getBlobTableName()); println("Last"); rs.last(); final int newVal = rs.getInt(1) + 11; final int newSize = rs.getInt(2) / 2; testUpdateBlobWithResultSetMethods(rs, newVal, newSize); println("Verify updated blob using result set"); verifyBlob(newVal, newSize, rs.getBlob(3)); rs.close(); stmt.close(); } /** * Tests updating a Blob from a forward only resultset, using * result set update methods. * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromForwardOnlyResultSetUsingResultSetMethods() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT * from " + BLOBDataModelSetup.getBlobTableName()); while (rs.next()) { println("Next"); final int val = rs.getInt(1); if (val == BLOBDataModelSetup.bigVal) break; } final int newVal = rs.getInt(1) + 11; final int newSize = rs.getInt(2) / 2; testUpdateBlobWithResultSetMethods(rs, newVal, newSize); rs.close(); stmt.close(); } /** * Tests updating a Blob from a scollable resultset, using * positioned updates. * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromScrollableResultSetUsingPositionedUpdates() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT * from " + BLOBDataModelSetup.getBlobTableName()); println("Last"); rs.last(); final int newVal = rs.getInt(1) + 11; final int newSize = rs.getInt(2) / 2; testUpdateBlobWithPositionedUpdate(rs, newVal, newSize); rs.relative(0); // Necessary after a positioned update println("Verify updated blob using result set"); verifyBlob(newVal, newSize, rs.getBlob(3)); rs.close(); stmt.close(); } /** * Tests updating a Blob from a forward only resultset, using * methods. * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromForwardOnlyResultSetUsingPositionedUpdates() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT * from " + BLOBDataModelSetup.getBlobTableName()); while (rs.next()) { println("Next"); final int val = rs.getInt(1); if (val == BLOBDataModelSetup.bigVal) break; } final int newVal = rs.getInt(1) + 11; final int newSize = rs.getInt(2) / 2; testUpdateBlobWithPositionedUpdate(rs, newVal, newSize); rs.close(); stmt.close(); } /** * Tests updating a Blob from a scollable resultset produced by a * select query with projection. Updates are made using * result set update methods. * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromScrollableResultSetWithProjectUsingResultSetMethods() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT data,val,length from " + BLOBDataModelSetup.getBlobTableName()); println("Last"); rs.last(); final int newVal = rs.getInt(2) + 11; final int newSize = rs.getInt(3) / 2; testUpdateBlobWithResultSetMethods(rs, newVal, newSize); println("Verify updated blob using result set"); verifyBlob(newVal, newSize, rs.getBlob(1)); rs.close(); stmt.close(); } /** * Tests updating a Blob from a forward only resultset, produced by * a select query with projection. Updates are made using * result set update methods. * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromForwardOnlyResultSetWithProjectUsingResultSetMethods() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT data,val,length from " + BLOBDataModelSetup.getBlobTableName()); while (rs.next()) { println("Next"); final int val = rs.getInt("VAL"); if (val == BLOBDataModelSetup.bigVal) break; } final int newVal = rs.getInt("VAL") + 11; final int newSize = BLOBDataModelSetup.bigSize / 2; testUpdateBlobWithResultSetMethods(rs, newVal, newSize); rs.close(); stmt.close(); } /** * Tests updating a Blob from a scollable resultset, produced by * a select query with projection. Updates are made using * positioned updates * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromScrollableResultSetWithProjectUsingPositionedUpdates() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT data from " + BLOBDataModelSetup.getBlobTableName() + " WHERE val= " + BLOBDataModelSetup.bigVal); println("Last"); rs.last(); final int newVal = BLOBDataModelSetup.bigVal * 2; final int newSize = BLOBDataModelSetup.bigSize / 2; testUpdateBlobWithPositionedUpdate(rs, newVal, newSize); rs.relative(0); // Necessary after a positioned update println("Verify updated blob using result set"); verifyBlob(newVal, newSize, rs.getBlob("DATA")); rs.close(); stmt.close(); } /** * Tests updating a Blob from a forward only resultset, produced by * a select query with projection. Updates are made using * positioned updates. * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ public void testUpdateBlobFromForwardOnlyResultSetWithProjectUsingPositionedUpdates() throws SQLException, IOException { final Statement stmt = createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); final ResultSet rs = stmt.executeQuery("SELECT data from " + BLOBDataModelSetup.getBlobTableName() + " WHERE val = " + BLOBDataModelSetup.bigVal); rs.next(); final int newVal = BLOBDataModelSetup.bigVal * 2; final int newSize = BLOBDataModelSetup.bigSize / 2; testUpdateBlobWithPositionedUpdate(rs, newVal, newSize); rs.close(); stmt.close(); } /** * Tests updating the Blob using result set update methods. * @param rs result set, currently positioned on row to be updated * @param newVal new value in val column and blob data * @param newSize new size of Blob * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ private void testUpdateBlobWithResultSetMethods(final ResultSet rs, final int newVal, final int newSize) throws SQLException, IOException { int val = rs.getInt("VAL"); int size = rs.getInt("LENGTH"); println("VerifyBlob"); verifyBlob(val, size, rs.getBlob("DATA")); println("UpdateBlob"); final TestInputStream newStream = new TestInputStream(newSize, newVal); rs.updateInt("VAL", newVal); rs.updateInt("LENGTH", newSize); rs.updateBinaryStream("DATA", newStream, newSize); rs.updateRow(); println("Verify updated blob with another query"); verifyNewValueInTable(newVal, newSize); } /** * Tests updating the Blob using positioned updates * @param rs result set, currently positioned on row to be updated * @param newVal new value in val column and blob data * @param newSize new size of Blob * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ private void testUpdateBlobWithPositionedUpdate(final ResultSet rs, final int newVal, final int newSize) throws SQLException, IOException { final PreparedStatement preparedStatement = prepareStatement ("UPDATE " + BLOBDataModelSetup.getBlobTableName() + " SET val=?, length = ?, data = ? WHERE CURRENT OF " + rs.getCursorName()); println("UpdateBlob"); final TestInputStream newStream = new TestInputStream(newSize, newVal); preparedStatement.setInt(1, newVal); preparedStatement.setInt(2, newSize); preparedStatement.setBinaryStream(3, newStream, newSize); preparedStatement.executeUpdate(); println("Verify updated blob with another query"); verifyNewValueInTable(newVal, newSize); } /** * Verifies that the table has row with column val=newVal * and that it its data and size columns are consistent. * @param newVal value expected to be found in the val column of a row * @param newSize expected size of size column and size of blob * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ private void verifyNewValueInTable(final int newVal, final int newSize) throws IOException, SQLException { println("Verify new value in table: " + newVal); final Statement stmt = createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); final ResultSet rs = stmt.executeQuery("SELECT * FROM " + BLOBDataModelSetup.getBlobTableName() + " WHERE val = " + newVal); println("Query executed, calling next"); boolean foundVal = false; while (rs.next()) { println("Next called, verifying row"); assertEquals("Unexpected value in val column", newVal, rs.getInt(1)); verifyBlob(newVal, newSize, rs.getBlob(3)); foundVal = true; } assertTrue("No column with value= " + newVal + " found ", foundVal); rs.close(); stmt.close(); } /** * Verifies that the blob is consistent * @param expectedVal the InputStream for the Blob should return this value * for every byte * @param expectedSize the BLOB should have this size * @param blob the BLOB to check * @exception SQLException causes test to fail with error * @exception IOException causes test to fail with error */ private void verifyBlob(final int expectedVal, final int expectedSize, final Blob blob) throws IOException, SQLException { final InputStream stream = blob.getBinaryStream(); int blobSize = 0; for (int val = stream.read(); val!=-1; val = stream.read()) { blobSize++; // avoid doing a string-concat for every byte in blob if (expectedVal!=val) { assertEquals("Unexpected value in stream at position " + blobSize, expectedVal, val); } } stream.close(); assertEquals("Unexpected size of stream ", expectedSize, blobSize); } /** * The suite decorates the tests of this class with * a setup which creates and populates the data model. */ public static Test suite() { TestSuite mainSuite = new TestSuite(BLOBTest.class, "BLOBTest"); return new BLOBDataModelSetup(mainSuite); } /** * The setup creates a Connection to the database. * @exception Exception any exception will cause test to fail with error. */ public final void setUp() throws Exception { println("Setup of: " + getName()); getConnection().setAutoCommit(false); } }
{'content_hash': 'b7f2fb51f8a28eaaac071f2303b77e71', 'timestamp': '', 'source': 'github', 'line_count': 426, 'max_line_length': 89, 'avg_line_length': 36.72769953051643, 'alnum_prop': 0.590949763517832, 'repo_name': 'gemxd/gemfirexd-oss', 'id': 'bc8ff388e8ab5a8546df2fcf8944e3ace951cfcc', 'size': '16479', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'gemfirexd/tools/src/testing/java/org/apache/derbyTesting/functionTests/tests/jdbcapi/BLOBTest.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'AGS Script', 'bytes': '90653'}, {'name': 'Assembly', 'bytes': '962433'}, {'name': 'Batchfile', 'bytes': '30248'}, {'name': 'C', 'bytes': '311620'}, {'name': 'C#', 'bytes': '1352292'}, {'name': 'C++', 'bytes': '2030283'}, {'name': 'CSS', 'bytes': '54987'}, {'name': 'Gnuplot', 'bytes': '3125'}, {'name': 'HTML', 'bytes': '8609160'}, {'name': 'Java', 'bytes': '118027963'}, {'name': 'JavaScript', 'bytes': '33027'}, {'name': 'Makefile', 'bytes': '18443'}, {'name': 'Mathematica', 'bytes': '92588'}, {'name': 'Objective-C', 'bytes': '1069'}, {'name': 'PHP', 'bytes': '581417'}, {'name': 'PLSQL', 'bytes': '86549'}, {'name': 'PLpgSQL', 'bytes': '33847'}, {'name': 'Pascal', 'bytes': '808'}, {'name': 'Perl', 'bytes': '196843'}, {'name': 'Python', 'bytes': '12796'}, {'name': 'Ruby', 'bytes': '1380'}, {'name': 'SQLPL', 'bytes': '219147'}, {'name': 'Shell', 'bytes': '533575'}, {'name': 'SourcePawn', 'bytes': '22351'}, {'name': 'Thrift', 'bytes': '33033'}, {'name': 'XSLT', 'bytes': '67112'}]}
github
0
package com.sdl.dxa.modules.model.TSI2525; import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticEntity; import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticProperty; import com.sdl.webapp.common.api.model.entity.AbstractEntityModel; import lombok.Data; import org.joda.time.DateTime; import java.text.SimpleDateFormat; import java.util.Date; import static com.sdl.webapp.common.api.mapping.semantic.config.SemanticVocabulary.SDL_CORE; @Data @SemanticEntity(entityName = "NoCachePropertyTest", vocabulary = SDL_CORE, prefix = "test") public class CacheEntityModel extends AbstractEntityModel { @SemanticProperty("test:textField") private String textField; @SemanticProperty("test:numberField") private Integer numberField; @SemanticProperty("test:dateField") private DateTime dateField; private String dateNow = new SimpleDateFormat("MM/dd/yy HH:mm:ss").format(new Date()); public CacheEntityModel() throws ClassNotFoundException { TestCacheListenerExtender.registerListeners(); } }
{'content_hash': '38117421352ee652b02777b2a8537c5f', 'timestamp': '', 'source': 'github', 'line_count': 32, 'max_line_length': 92, 'avg_line_length': 33.4375, 'alnum_prop': 0.7841121495327102, 'repo_name': 'sdl/dxa-modules', 'id': '3d234ffbb00ef99f3b065d9df952c07eeaef3388', 'size': '1070', 'binary': False, 'copies': '1', 'ref': 'refs/heads/develop', 'path': 'webapp-java/dxa-module-test/src/main/java/com/sdl/dxa/modules/model/TSI2525/CacheEntityModel.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C#', 'bytes': '281770'}, {'name': 'CSS', 'bytes': '120104'}, {'name': 'Groovy', 'bytes': '3792'}, {'name': 'HTML', 'bytes': '130538'}, {'name': 'Java', 'bytes': '811421'}, {'name': 'JavaScript', 'bytes': '297201'}, {'name': 'PowerShell', 'bytes': '34268'}, {'name': 'TypeScript', 'bytes': '938000'}]}
github
0
#include "windows.h" #include "shlobj.h" #include "TeamstudioException.h" #include "integration.h" static void fillInDataDirectory(PWSTR buf) { PWSTR szMyDocuments; HRESULT hresult = SHGetKnownFolderPath(FOLDERID_Documents, 0, NULL, &szMyDocuments); wcscpy(buf, szMyDocuments); wcscat(buf, L"\\lowla\\tests"); CoTaskMemFree(szMyDocuments); } utf16string SysGetDataDirectory() { wchar_t buf[MAX_PATH]; fillInDataDirectory(buf); CreateDirectory(buf, NULL); return utf16string((utf16char *)buf, 0, wcslen(buf)); } static void listDirectory(LPWSTR dir, int cchPrefix, std::vector<utf16string> *answer) { WIN32_FIND_DATA fd; wchar_t szFindPattern[MAX_PATH]; wcscpy(szFindPattern, dir); wcscat(szFindPattern, L"\\*"); HANDLE hFind = FindFirstFile(szFindPattern, &fd); if (INVALID_HANDLE_VALUE == hFind) { return; } do { wchar_t szBuf[MAX_PATH]; wcscpy(szBuf, dir); wcscat(szBuf, L"\\"); wcscat(szBuf, fd.cFileName); if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { if (fd.cFileName[0] != L'.') { listDirectory(szBuf, cchPrefix, answer); } } else { utf16string str((utf16char *)szBuf, cchPrefix, wcslen(szBuf) - cchPrefix); answer->push_back(str); } } while (0 != FindNextFile(hFind, &fd)); FindClose(hFind); } std::vector<utf16string> SysListFiles() { std::vector<utf16string> answer; wchar_t szBuf[MAX_PATH]; fillInDataDirectory(szBuf); listDirectory(szBuf, wcslen(szBuf) + 1, &answer); return answer; } utf16string SysNormalizePath(utf16string const& path) { utf16string answer = path.replace('\\', '/'); return answer; } static std::map<utf16string, utf16string> sm_properties; utf16string SysGetProperty(const utf16string &key, const utf16string &defaultValue) { auto it = sm_properties.find(key); if (it == sm_properties.end()) { return defaultValue; } else { return it->second; } } void SysSetProperty(const utf16string &key, const utf16string &value) { sm_properties[key] = value; } bool SysConfigureFile(const utf16string& filename) { return true; } void SysSleepMillis(int millis) { Sleep(millis); } void SysLogMessage(int level, utf16string const &context, utf16string const &message) { }
{'content_hash': '46b69ed221513e45a1e816097bdf8440', 'timestamp': '', 'source': 'github', 'line_count': 97, 'max_line_length': 86, 'avg_line_length': 22.649484536082475, 'alnum_prop': 0.7137005006827492, 'repo_name': 'lowla/liblowladb', 'id': '076f7a4539af5f591d8b9a638ee6cdbb28081765', 'size': '2341', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'windows/Tests/integration_test.cpp', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '5956298'}, {'name': 'C++', 'bytes': '2085072'}, {'name': 'CMake', 'bytes': '2302'}, {'name': 'Makefile', 'bytes': '900'}, {'name': 'Objective-C++', 'bytes': '48114'}, {'name': 'Ruby', 'bytes': '2102'}]}
github
0
ACCEPTED #### According to Index Fungorum #### Published in Kavaka 20/21(1-2): 8 (1995) #### Original name Hemicorynespora obclavata Subram. ### Remarks null
{'content_hash': '758ee52303bd159c502a177763eb5166', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 33, 'avg_line_length': 12.384615384615385, 'alnum_prop': 0.7018633540372671, 'repo_name': 'mdoering/backbone', 'id': 'ad96dfcd6061411b57ebc1ec24d41f01b4474715', 'size': '218', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'life/Fungi/Ascomycota/Sordariomycetes/Chaetosphaeriales/Chaetosphaeriaceae/Hemicorynespora/Hemicorynespora obclavata/README.md', 'mode': '33188', 'license': 'apache-2.0', 'language': []}
github
0
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Reading/Writing a noise covariance matrix &#8212; MNE 0.22.1 documentation</title> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../../_static/bootstrap-sphinx.css" type="text/css" /> <link rel="stylesheet" type="text/css" href="../../_static/graphviz.css" /> <link rel="stylesheet" type="text/css" href="../../_static/bootstrap_divs.css" /> <link rel="stylesheet" type="text/css" href="../../_static/gallery.css" /> <link rel="stylesheet" type="text/css" href="../../_static/gallery-binder.css" /> <link rel="stylesheet" type="text/css" href="../../_static/gallery-dataframe.css" /> <link rel="stylesheet" type="text/css" href="../../_static/gallery-rendered-html.css" /> <script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/bootstrap_divs.js"></script> <link rel="shortcut icon" href="../../_static/favicon.ico"/> <link rel="index" title="Index" href="../../genindex.html" /> <link rel="search" title="Search" href="../../search.html" /> <link rel="canonical" href="https://mne.tools/stable/index.html" /> <script type="text/javascript" src="../../_static/copybutton.js"></script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37225609-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <link rel="stylesheet" href="../../_static/style.css " type="text/css" /> <link rel="stylesheet" href="../../_static/font-awesome.css" type="text/css" /> <link rel="stylesheet" href="../../_static/font-source-code-pro.css" type="text/css" /> <link rel="stylesheet" href="../../_static/font-source-sans-pro.css" type="text/css" /> <link rel="stylesheet" href="../../_static/flag-icon.css" type="text/css" /> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'> <meta name="apple-mobile-web-app-capable" content="yes"> <script type="text/javascript" src="../../_static/js/jquery-1.12.4.min.js "></script> <script type="text/javascript" src="../../_static/js/jquery-fix.js "></script> <script type="text/javascript" src="../../_static/bootstrap-3.4.1/js/bootstrap.min.js "></script> <script type="text/javascript" src="../../_static/bootstrap-sphinx.js "></script> </head><body> <div id="navbar" class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <!-- .btn-navbar is used as the toggle for collapsed navbar content --> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="../../index.html"><span><img src="../../_static/mne_logo_small.svg"></span> </a> <span class="navbar-text navbar-version pull-left"><b>0.22.1</b></span> </div> <div class="collapse navbar-collapse nav-collapse"> <ul class="nav navbar-nav"> <li><a href="../../install/index.html">Install</a></li> <li><a href="../../overview/index.html">Overview</a></li> <li><a href="../../auto_tutorials/index.html">Tutorials</a></li> <li><a href="../index.html">Examples</a></li> <li><a href="../../glossary.html">Glossary</a></li> <li><a href="../../python_reference.html">API</a></li> <li class="dropdown globaltoc-container"> <a role="button" id="dLabelGlobalToc" data-toggle="dropdown" data-target="#" href="#">More<b class="caret"></b></a> <ul class="dropdown-menu globaltoc" role="menu" aria-labelledby="dLabelGlobalToc"> <li><a href="https://github.com/mne-tools/mne-python"><i class="fa fa-github"></i> GitHub</a></li> <li><a href="../../overview/get_help.html"><i class="fa fa-question-circle"></i> Get help</a></li> <li><a href="../../install/contributing.html"><i class="fa fa-code-fork"></i> Contribute</a></li> <li><a href="../../overview/cite.html"><i class="fa fa-book"></i> Cite MNE</a></li> </ul> </li> <li class="dropdown"> <button type="button" class="btn btn-primary btn-sm navbar-btn dropdown-toggle" id="dLabelMore" data-toggle="dropdown" style="margin-left: 10px"> v0.22.1 <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="dLabelMore"> <li><a href="https://mne-tools.github.io/dev/index.html">Development</a></li> <li><a href="https://mne-tools.github.io/stable/index.html">v0.22 (stable)</a></li> <li><a href="https://mne-tools.github.io/0.21/index.html">v0.21</a></li> <li><a href="https://mne-tools.github.io/0.20/index.html">v0.20</a></li> <li><a href="https://mne-tools.github.io/0.19/index.html">v0.19</a></li> <li><a href="https://mne-tools.github.io/0.18/index.html">v0.18</a></li> <li><a href="https://mne-tools.github.io/0.17/index.html">v0.17</a></li> <li><a href="https://mne-tools.github.io/0.16/index.html">v0.16</a></li> <li><a href="https://mne-tools.github.io/0.15/index.html">v0.15</a></li> <li><a href="https://mne-tools.github.io/0.14/index.html">v0.14</a></li> <li><a href="https://mne-tools.github.io/0.13/index.html">v0.13</a></li> <li><a href="https://mne-tools.github.io/0.12/index.html">v0.12</a></li> <li><a href="https://mne-tools.github.io/0.11/index.html">v0.11</a></li> </ul> </li> <li class="hidden-sm"></li> </ul> <form class="navbar-form navbar-right" action="../../search.html" method="get"> <div class="form-group"> <input type="text" name="q" class="form-control" placeholder="Search" /> </div> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> </div> <div class="container"> <div class="row"> <div class="body col-md-12 content" role="main"> <div class="sphx-glr-download-link-note admonition note"> <p class="admonition-title">Note</p> <p>Click <a class="reference internal" href="#sphx-glr-download-auto-examples-io-plot-read-noise-covariance-matrix-py"><span class="std std-ref">here</span></a> to download the full example code</p> </div> <section class="sphx-glr-example-title" id="reading-writing-a-noise-covariance-matrix"> <span id="sphx-glr-auto-examples-io-plot-read-noise-covariance-matrix-py"></span><h1>Reading/Writing a noise covariance matrix<a class="headerlink" href="#reading-writing-a-noise-covariance-matrix" title="Permalink to this headline">¶</a></h1> <p>Plot a noise covariance matrix.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># Author: Alexandre Gramfort &lt;alexandre.gramfort@inria.fr&gt;</span> <span class="c1">#</span> <span class="c1"># License: BSD (3-clause)</span> <span class="kn">from</span> <span class="nn">os</span> <span class="kn">import</span> <span class="n">path</span> <span class="k">as</span> <span class="n">op</span> <span class="kn">import</span> <span class="nn">mne</span> <span class="kn">from</span> <span class="nn">mne.datasets</span> <span class="kn">import</span> <span class="n">sample</span> <span class="nb">print</span><span class="p">(</span><span class="vm">__doc__</span><span class="p">)</span> <a href="https://docs.python.org/3/library/stdtypes.html#str" title="builtins.str" class="sphx-glr-backref-module-builtins sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">data_path</span></a> <span class="o">=</span> <a href="../../generated/mne.datasets.sample.data_path.html#mne.datasets.sample.data_path" title="mne.datasets.sample.data_path" class="sphx-glr-backref-module-mne-datasets-sample sphx-glr-backref-type-py-function"><span class="n">sample</span><span class="o">.</span><span class="n">data_path</span></a><span class="p">()</span> <a href="https://docs.python.org/3/library/stdtypes.html#str" title="builtins.str" class="sphx-glr-backref-module-builtins sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">fname_cov</span></a> <span class="o">=</span> <a href="https://docs.python.org/3/library/os.path.html#os.path.join" title="os.path.join" class="sphx-glr-backref-module-os-path sphx-glr-backref-type-py-function"><span class="n">op</span><span class="o">.</span><span class="n">join</span></a><span class="p">(</span><a href="https://docs.python.org/3/library/stdtypes.html#str" title="builtins.str" class="sphx-glr-backref-module-builtins sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">data_path</span></a><span class="p">,</span> <span class="s1">&#39;MEG&#39;</span><span class="p">,</span> <span class="s1">&#39;sample&#39;</span><span class="p">,</span> <span class="s1">&#39;sample_audvis-cov.fif&#39;</span><span class="p">)</span> <a href="https://docs.python.org/3/library/stdtypes.html#str" title="builtins.str" class="sphx-glr-backref-module-builtins sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">fname_evo</span></a> <span class="o">=</span> <a href="https://docs.python.org/3/library/os.path.html#os.path.join" title="os.path.join" class="sphx-glr-backref-module-os-path sphx-glr-backref-type-py-function"><span class="n">op</span><span class="o">.</span><span class="n">join</span></a><span class="p">(</span><a href="https://docs.python.org/3/library/stdtypes.html#str" title="builtins.str" class="sphx-glr-backref-module-builtins sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">data_path</span></a><span class="p">,</span> <span class="s1">&#39;MEG&#39;</span><span class="p">,</span> <span class="s1">&#39;sample&#39;</span><span class="p">,</span> <span class="s1">&#39;sample_audvis-ave.fif&#39;</span><span class="p">)</span> <a href="../../generated/mne.Covariance.html#mne.Covariance" title="mne.Covariance" class="sphx-glr-backref-module-mne sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">cov</span></a> <span class="o">=</span> <a href="../../generated/mne.read_cov.html#mne.read_cov" title="mne.read_cov" class="sphx-glr-backref-module-mne sphx-glr-backref-type-py-function"><span class="n">mne</span><span class="o">.</span><span class="n">read_cov</span></a><span class="p">(</span><a href="https://docs.python.org/3/library/stdtypes.html#str" title="builtins.str" class="sphx-glr-backref-module-builtins sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">fname_cov</span></a><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><a href="../../generated/mne.Covariance.html#mne.Covariance" title="mne.Covariance" class="sphx-glr-backref-module-mne sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">cov</span></a><span class="p">)</span> <a href="../../generated/mne.Evoked.html#mne.Evoked" title="mne.Evoked" class="sphx-glr-backref-module-mne sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">evoked</span></a> <span class="o">=</span> <a href="../../generated/mne.read_evokeds.html#mne.read_evokeds" title="mne.read_evokeds" class="sphx-glr-backref-module-mne sphx-glr-backref-type-py-function"><span class="n">mne</span><span class="o">.</span><span class="n">read_evokeds</span></a><span class="p">(</span><a href="https://docs.python.org/3/library/stdtypes.html#str" title="builtins.str" class="sphx-glr-backref-module-builtins sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">fname_evo</span></a><span class="p">)[</span><span class="mi">0</span><span class="p">]</span> </pre></div> </div> <p class="sphx-glr-script-out">Out:</p> <div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span> 366 x 366 full covariance (kind = 1) found. Read a total of 4 projection items: PCA-v1 (1 x 102) active PCA-v2 (1 x 102) active PCA-v3 (1 x 102) active Average EEG reference (1 x 60) active &lt;Covariance | size : 366 x 366, n_samples : 15972, data : [[ 2.27235589e-23 4.79818505e-24 7.12852747e-25 ... 4.85348042e-18 2.02846360e-18 8.26727393e-18] [ 4.79818505e-24 5.33468523e-24 1.80261790e-25 ... 2.33583009e-19 -6.93161055e-19 2.35199238e-18] [ 7.12852747e-25 1.80261790e-25 5.79073915e-26 ... 1.09498615e-19 6.16924072e-21 2.93873875e-19] ... [ 4.85348042e-18 2.33583009e-19 1.09498615e-19 ... 1.40677185e-11 1.27444183e-11 1.08634620e-11] [ 2.02846360e-18 -6.93161055e-19 6.16924072e-21 ... 1.27444183e-11 1.59818134e-11 8.51070563e-12] [ 8.26727393e-18 2.35199238e-18 2.93873875e-19 ... 1.08634620e-11 8.51070563e-12 1.53708918e-11]]&gt; Reading /home/circleci/mne_data/MNE-sample-data/MEG/sample/sample_audvis-ave.fif ... Read a total of 4 projection items: PCA-v1 (1 x 102) active PCA-v2 (1 x 102) active PCA-v3 (1 x 102) active Average EEG reference (1 x 60) active Found the data of interest: t = -199.80 ... 499.49 ms (Left Auditory) 0 CTF compensation matrices available nave = 55 - aspect type = 100 Projections have already been applied. Setting proj attribute to True. No baseline correction applied Read a total of 4 projection items: PCA-v1 (1 x 102) active PCA-v2 (1 x 102) active PCA-v3 (1 x 102) active Average EEG reference (1 x 60) active Found the data of interest: t = -199.80 ... 499.49 ms (Right Auditory) 0 CTF compensation matrices available nave = 61 - aspect type = 100 Projections have already been applied. Setting proj attribute to True. No baseline correction applied Read a total of 4 projection items: PCA-v1 (1 x 102) active PCA-v2 (1 x 102) active PCA-v3 (1 x 102) active Average EEG reference (1 x 60) active Found the data of interest: t = -199.80 ... 499.49 ms (Left visual) 0 CTF compensation matrices available nave = 67 - aspect type = 100 Projections have already been applied. Setting proj attribute to True. No baseline correction applied Read a total of 4 projection items: PCA-v1 (1 x 102) active PCA-v2 (1 x 102) active PCA-v3 (1 x 102) active Average EEG reference (1 x 60) active Found the data of interest: t = -199.80 ... 499.49 ms (Right visual) 0 CTF compensation matrices available nave = 58 - aspect type = 100 Projections have already been applied. Setting proj attribute to True. No baseline correction applied </pre></div> </div> <p>Show covariance</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><a href="../../generated/mne.Covariance.html#mne.Covariance.plot" title="mne.Covariance.plot" class="sphx-glr-backref-module-mne sphx-glr-backref-type-py-method"><span class="n">cov</span><span class="o">.</span><span class="n">plot</span></a><span class="p">(</span><a href="../../generated/mne.Info.html#mne.Info" title="mne.Info" class="sphx-glr-backref-module-mne sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">evoked</span><span class="o">.</span><span class="n">info</span></a><span class="p">,</span> <span class="n">exclude</span><span class="o">=</span><span class="s1">&#39;bads&#39;</span><span class="p">,</span> <span class="n">show_svd</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> </pre></div> </div> <img alt="Magnetometers covariance, Gradiometers covariance, EEG covariance" class="sphx-glr-single-img" src="../../_images/sphx_glr_plot_read_noise_covariance_matrix_001.png" /> <p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 2.775 seconds)</p> <p><strong>Estimated memory usage:</strong> 8 MB</p> <div class="sphx-glr-footer class sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-io-plot-read-noise-covariance-matrix-py"> <div class="sphx-glr-download sphx-glr-download-python docutils container"> <p><a class="reference download internal" download="" href="../../_downloads/3c6d665d230e61ce62bc73cf1b5165ba/plot_read_noise_covariance_matrix.py"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Python</span> <span class="pre">source</span> <span class="pre">code:</span> <span class="pre">plot_read_noise_covariance_matrix.py</span></code></a></p> </div> <div class="sphx-glr-download sphx-glr-download-jupyter docutils container"> <p><a class="reference download internal" download="" href="../../_downloads/352c73e605c2040fbc0559050b15d343/plot_read_noise_covariance_matrix.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">plot_read_noise_covariance_matrix.ipynb</span></code></a></p> </div> </div> <p class="sphx-glr-signature"><a class="reference external" href="https://sphinx-gallery.github.io">Gallery generated by Sphinx-Gallery</a></p> </section> </div> </div> </div> <footer class="footer"> <div class="container"><div class="row"> <div class="container col-md-12 institutions"> <ul class="list-unstyled"> <li><a href="https://www.massgeneral.org/"><img class="institution" src="../../_static/institution_logos/MGH.svg" title="Massachusetts General Hospital" alt="Massachusetts General Hospital"/></a></li> <li><a href="https://martinos.org/"><img class="institution" src="../../_static/institution_logos/Martinos.png" title="Athinoula A. Martinos Center for Biomedical Imaging" alt="Athinoula A. Martinos Center for Biomedical Imaging"/></a></li> <li><a href="https://hms.harvard.edu/"><img class="institution" src="../../_static/institution_logos/Harvard.png" title="Harvard Medical School" alt="Harvard Medical School"/></a></li> <li><a href="https://web.mit.edu/"><img class="institution" src="../../_static/institution_logos/MIT.svg" title="Massachusetts Institute of Technology" alt="Massachusetts Institute of Technology"/></a></li> <li><a href="https://www.nyu.edu/"><img class="institution" src="../../_static/institution_logos/NYU.png" title="New York University" alt="New York University"/></a></li> <li><a href="http://www.cea.fr/"><img class="institution" src="../../_static/institution_logos/CEA.png" title="Commissariat à l´énergie atomique et aux énergies alternatives" alt="Commissariat à l´énergie atomique et aux énergies alternatives"/></a></li> <li><a href="https://sci.aalto.fi/"><img class="institution" src="../../_static/institution_logos/Aalto.svg" title="Aalto-yliopiston perustieteiden korkeakoulu" alt="Aalto-yliopiston perustieteiden korkeakoulu"/></a></li> <li><a href="https://www.telecom-paris.fr/"><img class="institution" src="../../_static/institution_logos/Telecom_Paris_Tech.png" title="Télécom ParisTech" alt="Télécom ParisTech"/></a></li> <li><a href="https://www.washington.edu/"><img class="institution" src="../../_static/institution_logos/Washington.png" title="University of Washington" alt="University of Washington"/></a></li> <li><a href="https://icm-institute.org/"><img class="institution" src="../../_static/institution_logos/ICM.jpg" title="Institut du Cerveau et de la Moelle épinière" alt="Institut du Cerveau et de la Moelle épinière"/></a></li> <li><a href="https://www.bu.edu/"><img class="institution" src="../../_static/institution_logos/BU.svg" title="Boston University" alt="Boston University"/></a></li> <li><a href="https://www.inserm.fr/"><img class="institution" src="../../_static/institution_logos/Inserm.svg" title="Institut national de la santé et de la recherche médicale" alt="Institut national de la santé et de la recherche médicale"/></a></li> <li><a href="https://www.fz-juelich.de/"><img class="institution" src="../../_static/institution_logos/Julich.svg" title="Forschungszentrum Jülich" alt="Forschungszentrum Jülich"/></a></li> <li><a href="https://www.tu-ilmenau.de/"><img class="institution" src="../../_static/institution_logos/Ilmenau.gif" title="Technische Universität Ilmenau" alt="Technische Universität Ilmenau"/></a></li> <li><a href="https://bids.berkeley.edu/"><img class="institution" src="../../_static/institution_logos/BIDS.png" title="Berkeley Institute for Data Science" alt="Berkeley Institute for Data Science"/></a></li> <li><a href="https://www.inria.fr/"><img class="institution" src="../../_static/institution_logos/inria.png" title="Institut national de recherche en informatique et en automatique" alt="Institut national de recherche en informatique et en automatique"/></a></li> <li><a href="https://www.au.dk/"><img class="institution" src="../../_static/institution_logos/Aarhus.png" title="Aarhus Universitet" alt="Aarhus Universitet"/></a></li> <li><a href="https://www.uni-graz.at/"><img class="institution" src="../../_static/institution_logos/Graz.jpg" title="Karl-Franzens-Universität Graz" alt="Karl-Franzens-Universität Graz"/></a></li> </ul> <p class="text-center text-muted small">&copy; Copyright 2012-2021, MNE Developers. Last updated <time datetime="2021-04-02T17:37:54.428702+00:00" class="localized">2021-04-02 17:37 UTC</time> <script type="text/javascript">$(function () { $("time.localized").each(function () { var el = $(this); el.text(new Date(el.attr("datetime")).toLocaleString([], {dateStyle: "medium", timeStyle: "long"})); }); } )</script></p> </div></div></div> </footer> <script src="https://mne.tools/versionwarning.js"></script> </body> </html>
{'content_hash': 'fab6624e2d9dc86bc268ac509973e7aa', 'timestamp': '', 'source': 'github', 'line_count': 305, 'max_line_length': 960, 'avg_line_length': 77.02295081967213, 'alnum_prop': 0.652264600715137, 'repo_name': 'mne-tools/mne-tools.github.io', 'id': 'be2cae6a3f994435e5d3080059812f98b68ff808', 'size': '23519', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': '0.22/auto_examples/io/plot_read_noise_covariance_matrix.html', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'CSS', 'bytes': '708696'}, {'name': 'Dockerfile', 'bytes': '1820'}, {'name': 'HTML', 'bytes': '1526247783'}, {'name': 'JavaScript', 'bytes': '1323087'}, {'name': 'Jupyter Notebook', 'bytes': '24820047'}, {'name': 'Python', 'bytes': '18575494'}]}
github
0
package relation import ( accv1 "go-common/app/service/main/account/api" relation "go-common/app/service/main/relation/model" ) type Vip struct { Type int `json:"vipType"` DueDate int64 `json:"vipDueDate"` DueRemark string `json:"dueRemark"` AccessStatus int `json:"accessStatus"` VipStatus int `json:"vipStatus"` VipStatusWarn string `json:"vipStatusWarn"` } // Following is user followinng info. type Following struct { *relation.Following Uname string `json:"uname"` Face string `json:"face"` Sign string `json:"sign"` OfficialVerify accv1.OfficialInfo `json:"official_verify"` Vip Vip `json:"vip"` Live int `json:"live"` } type Tag struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Face string `json:"face"` Sign string `json:"sign"` OfficialVerify accv1.OfficialInfo `json:"official_verify"` Vip Vip `json:"vip"` Live int `json:"live"` } // ByMTime implements sort.Interface for []model.Following based on the MTime field. type ByMTime []*relation.Following func (mt ByMTime) Len() int { return len(mt) } func (mt ByMTime) Swap(i, j int) { mt[i], mt[j] = mt[j], mt[i] } func (mt ByMTime) Less(i, j int) bool { return mt[i].MTime < mt[j].MTime }
{'content_hash': 'c0e0980011b0a0cf8ee406e5c4761688', 'timestamp': '', 'source': 'github', 'line_count': 43, 'max_line_length': 84, 'avg_line_length': 34.72093023255814, 'alnum_prop': 0.565304755525787, 'repo_name': 'LQJJ/demo', 'id': 'a843ad669232dc98e06d28c849b13533d6ae577f', 'size': '1493', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': '126-go-common-master/app/interface/main/app-interface/model/relation/relation.go', 'mode': '33261', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '5910716'}, {'name': 'C++', 'bytes': '113072'}, {'name': 'CSS', 'bytes': '10791'}, {'name': 'Dockerfile', 'bytes': '934'}, {'name': 'Go', 'bytes': '40121403'}, {'name': 'Groovy', 'bytes': '347'}, {'name': 'HTML', 'bytes': '359263'}, {'name': 'JavaScript', 'bytes': '545384'}, {'name': 'Makefile', 'bytes': '6671'}, {'name': 'Mathematica', 'bytes': '14565'}, {'name': 'Objective-C', 'bytes': '14900720'}, {'name': 'Objective-C++', 'bytes': '20070'}, {'name': 'PureBasic', 'bytes': '4152'}, {'name': 'Python', 'bytes': '4490569'}, {'name': 'Ruby', 'bytes': '44850'}, {'name': 'Shell', 'bytes': '33251'}, {'name': 'Swift', 'bytes': '463286'}, {'name': 'TSQL', 'bytes': '108861'}]}
github
0
package org.apache.wicket.core.request.mapper; import java.util.List; import org.apache.wicket.Application; import org.apache.wicket.request.Request; import org.apache.wicket.request.Url; import org.apache.wicket.request.component.IRequestablePage; import org.apache.wicket.request.mapper.info.PageComponentInfo; import org.apache.wicket.request.mapper.parameter.IPageParametersEncoder; import org.apache.wicket.request.mapper.parameter.PageParameters; import org.apache.wicket.request.mapper.parameter.PageParametersEncoder; import org.apache.wicket.util.string.Strings; /** * Decodes and encodes the following URLs: * * <pre> * Page Class - Render (BookmarkablePageRequestHandler) * /wicket/bookmarkable/org.apache.wicket.MyPage * (will redirect to hybrid alternative if page is not stateless) * * Page Instance - Render Hybrid (RenderPageRequestHandler for pages that were created using bookmarkable URLs) * /wicket/bookmarkable/org.apache.wicket.MyPage?2 * * Page Instance - Bookmarkable Listener (BookmarkableListenerRequestHandler) * /wicket/bookmarkable/org.apache.wicket.MyPage?2-click-foo-bar-baz * /wicket/bookmarkable/org.apache.wicket.MyPage?2-click.1-foo-bar-baz (1 is behavior index) * (these will redirect to hybrid if page is not stateless) * </pre> * * @author Matej Knopp */ public class BookmarkableMapper extends AbstractBookmarkableMapper { /** * Construct. */ public BookmarkableMapper() { this(new PageParametersEncoder()); } /** * Construct. * * @param pageParametersEncoder */ public BookmarkableMapper(IPageParametersEncoder pageParametersEncoder) { super("notUsed", pageParametersEncoder); } @Override protected Url buildUrl(UrlInfo info) { Url url = new Url(); url.getSegments().add(getContext().getNamespace()); url.getSegments().add(getContext().getBookmarkableIdentifier()); url.getSegments().add(info.getPageClass().getName()); encodePageComponentInfo(url, info.getPageComponentInfo()); return encodePageParameters(url, info.getPageParameters(), pageParametersEncoder); } @Override protected UrlInfo parseRequest(Request request) { if (Application.exists()) { if (Application.get().getSecuritySettings().getEnforceMounts()) { return null; } } if (matches(request)) { Url url = request.getUrl(); // try to extract page and component information from URL PageComponentInfo info = getPageComponentInfo(url); List<String> segments = url.getSegments(); // load the page class String className; if (segments.size() >= 3) { className = segments.get(2); } else { className = segments.get(1); } if (Strings.isEmpty(className)) { return null; } Class<? extends IRequestablePage> pageClass = getPageClass(className); if (pageClass != null && IRequestablePage.class.isAssignableFrom(pageClass)) { // extract the PageParameters from URL if there are any PageParameters pageParameters = extractPageParameters(request, 3, pageParametersEncoder); if (pageParameters != null) { pageParameters.setLocale(resolveLocale()); } return new UrlInfo(info, pageClass, pageParameters); } } return null; } @Override protected boolean pageMustHaveBeenCreatedBookmarkable() { return true; } @Override public int getCompatibilityScore(Request request) { int score = 0; if (matches(request)) { score = Integer.MAX_VALUE; } return score; } private boolean matches(final Request request) { boolean matches = false; Url url = request.getUrl(); Url baseUrl = request.getClientUrl(); String namespace = getContext().getNamespace(); String bookmarkableIdentifier = getContext().getBookmarkableIdentifier(); String pageIdentifier = getContext().getPageIdentifier(); List<String> segments = url.getSegments(); int segmentsSize = segments.size(); if (segmentsSize >= 3 && urlStartsWithAndHasPageClass(url, namespace, bookmarkableIdentifier)) { matches = true; } // baseUrl = 'wicket/bookmarkable/com.example.SomePage[?...]', requestUrl = 'bookmarkable/com.example.SomePage' else if (baseUrl.getSegments().size() == 3 && urlStartsWith(baseUrl, namespace, bookmarkableIdentifier) && segmentsSize >= 2 && urlStartsWithAndHasPageClass(url, bookmarkableIdentifier)) { matches = true; } // baseUrl = 'bookmarkable/com.example.SomePage', requestUrl = 'bookmarkable/com.example.SomePage' else if (baseUrl.getSegments().size() == 2 && urlStartsWith(baseUrl, bookmarkableIdentifier) && segmentsSize == 2 && urlStartsWithAndHasPageClass(url, bookmarkableIdentifier)) { matches = true; } // baseUrl = 'wicket/page[?...]', requestUrl = 'bookmarkable/com.example.SomePage' else if (baseUrl.getSegments().size() == 2 && urlStartsWith(baseUrl, namespace, pageIdentifier) && segmentsSize >= 2 && urlStartsWithAndHasPageClass(url, bookmarkableIdentifier)) { matches = true; } return matches; } /** * Checks whether the url starts with the given segments and additionally * checks whether the following segment is non-empty * * @param url * The url to be checked * @param segments * The expected leading segments * @return {@code true} if the url starts with the given segments and there is non-empty segment after them */ protected boolean urlStartsWithAndHasPageClass(Url url, String... segments) { boolean result = urlStartsWith(url, segments); if (result) { List<String> urlSegments = url.getSegments(); if (urlSegments.size() == segments.length) { result = false; } else { String pageClassSegment = urlSegments.get(segments.length); if (Strings.isEmpty(pageClassSegment)) { result = false; } } } return result; } }
{'content_hash': 'f20abbd879f8ff784bd4d42ebf601edb', 'timestamp': '', 'source': 'github', 'line_count': 210, 'max_line_length': 113, 'avg_line_length': 27.7, 'alnum_prop': 0.7177239126697611, 'repo_name': 'bitstorm/wicket', 'id': '899500e8cf77307ba490c191504d768394bc3440', 'size': '6619', 'binary': False, 'copies': '7', 'ref': 'refs/heads/master', 'path': 'wicket-core/src/main/java/org/apache/wicket/core/request/mapper/BookmarkableMapper.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '131341'}, {'name': 'Dockerfile', 'bytes': '163'}, {'name': 'HTML', 'bytes': '897370'}, {'name': 'Java', 'bytes': '12208160'}, {'name': 'JavaScript', 'bytes': '540015'}, {'name': 'Logos', 'bytes': '146'}, {'name': 'Python', 'bytes': '1547'}, {'name': 'Shell', 'bytes': '26094'}, {'name': 'XSLT', 'bytes': '2162'}]}
github
0
<div id="chartContainer"> <script src="/lib/d3.v3.min.js"></script> <script src="/dist/dimple.{version}.js"></script> <script type="text/javascript"> var svg = dimple.newSvg("#chartContainer", 590, 400); d3.tsv("/data/example_data.tsv", function (data) { // Focus on the top 6 brands data = dimple.filterData(data, "Brand", ["Theta", "Omicron", "Kappa", "Beta", "Lambda", "Alpha"]); // The main chart var myChart = new dimple.chart(svg, data); // The chart to show in a tooltip var tipChart = null; // The other popup shapes var popup = null; // Position the main chart myChart.setBounds(60, 40, 500, 320); // Add the main chart axes myChart.addCategoryAxis("x", "Brand"); myChart.addMeasureAxis("y", "Unit Sales"); myChart.addMeasureAxis("z", "Sales Value"); // Draw bubbles by SKU colored by brand var s = myChart.addSeries(["SKU", "Brand"], dimple.plot.bubble); // Handle the hover event - overriding the default behaviour s.addEventHandler("mouseover", onHover); // Handle the leave event - overriding the default behaviour s.addEventHandler("mouseleave", onLeave); // Draw the main chart myChart.draw(); // Event to handle mouse enter function onHover(e) { // Get the properties of the selected shape var cx = parseFloat(e.selectedShape.attr("cx")), cy = parseFloat(e.selectedShape.attr("cy")), r = parseFloat(e.selectedShape.attr("r")), fill = e.selectedShape.attr("fill"), stroke = e.selectedShape.attr("stroke"); // Set the size and position of the popup var width = 150, height = 100, x = (cx + r + width + 10 < svg.attr("width") ? cx + r + 10 : cx - r - width - 20); y = (cy - height / 2 < 0 ? 15 : cy - height / 2); // Fade the popup fill mixing the shape fill with 80% white var popupFillColor = d3.rgb( d3.rgb(fill).r + 0.8 * (255 - d3.rgb(fill).r), d3.rgb(fill).g + 0.8 * (255 - d3.rgb(fill).g), d3.rgb(fill).b + 0.8 * (255 - d3.rgb(fill).b) ); // Create a group for the popup objects popup = svg.append("g"); // Add a rectangle surrounding the chart popup .append("rect") .attr("x", x + 5) .attr("y", y - 5) .attr("width", width) .attr("height", height) .attr("rx", 5) .attr("ry", 5) .style("fill", popupFillColor) .style("stroke", stroke) .style("stroke-width", 2); // Add the series value text popup .append("text") .attr("x", x + 10) .attr("y", y + 10) .text(e.seriesValue[0]) .style("font-family", "sans-serif") .style("font-size", 10) .style("fill", stroke); // Filter the data for the selected brand and sku var hoverData = dimple.filterData(data, "Brand", e.xValue); hoverData = dimple.filterData(hoverData, "SKU", e.seriesValue); // Create a new mini chart of Unit Sales over Months tipChart = new dimple.chart(svg, hoverData); tipChart.setBounds(x + 10, y + 30, width - 10, height - 40); tipChart.addCategoryAxis("x", "Date").hidden = true; tipChart.addMeasureAxis("y", "Unit Sales").hidden = true; // Add a bar series, this can be changed to a line, area or bubble // by changing the plot parameter accordingly. var popUpSeries = tipChart.addSeries("SelectedSeries", dimple.plot.bar); // Set the gap to 80% - just a style preference popUpSeries.barGap = 0.8; // Set the color to the stroke color of the selected node tipChart.assignColor("SelectedSeries", stroke, stroke); // Draw the mini chart tipChart.draw(); }; // Event to handle mouse exit function onLeave(e) { // Remove the chart if (tipChart !== null) { tipChart._group.remove(); } // Remove the popup if (popup !== null) { popup.remove(); } }; }); </script> </div>
{'content_hash': '3cadb6eaed2fa47ea694bfea4b6808dc', 'timestamp': '', 'source': 'github', 'line_count': 130, 'max_line_length': 104, 'avg_line_length': 34.89230769230769, 'alnum_prop': 0.5209435626102292, 'repo_name': 'brucemcpherson/dimple', 'id': '032dd3fb5f71cc8493e955b3d172c0fe281a1b48', 'size': '4536', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'examples/templates/advanced_lollipop_with_hover.html', 'mode': '33188', 'license': 'mit', 'language': []}
github
0
<?xml version="1.0"?> <doc> <assembly> <name>NAnt.VSNetTasks</name> </assembly> <members> <member name="T:NAnt.VSNet.Everett.Solution"> <summary> Analyses Microsoft Visual Studio .NET 2003 (Everett) solution files. </summary> </member> <member name="M:NAnt.VSNet.SolutionBase.GetProjectFileFromGuid(System.String)"> <summary> Gets the project file of the project with the given unique identifier. </summary> <param name="projectGuid">The unique identifier of the project for which the project file should be retrieves.</param> <returns> The project file of the project with the given unique identifier. </returns> <exception cref="T:NAnt.Core.BuildException">No project with unique identifier <paramref name="projectGuid"/> could be located.</exception> </member> <member name="M:NAnt.VSNet.SolutionBase.Log(NAnt.Core.Level,System.String)"> <summary> Logs a message with the given priority. </summary> <param name="messageLevel">The message priority at which the specified message is to be logged.</param> <param name="message">The message to be logged.</param> <remarks> The actual logging is delegated to the underlying task. </remarks> </member> <member name="M:NAnt.VSNet.SolutionBase.Log(NAnt.Core.Level,System.String,System.Object[])"> <summary> Logs a message with the given priority. </summary> <param name="messageLevel">The message priority at which the specified message is to be logged.</param> <param name="message">The message to log, containing zero or more format items.</param> <param name="args">An <see cref="T:System.Object"/> array containing zero or more objects to format.</param> <remarks> The actual logging is delegated to the underlying task. </remarks> </member> <member name="M:NAnt.VSNet.SolutionBase.LoadProjects(NAnt.Core.Util.GacCache,NAnt.VSNet.ReferencesResolver,System.Collections.Hashtable)"> <summary> Loads the projects from the file system and stores them in an instance variable. </summary> <param name="gacCache"><see cref="T:NAnt.Core.Util.GacCache"/> instance to use to determine whether an assembly is located in the Global Assembly Cache.</param> <param name="refResolver"><see cref="T:NAnt.VSNet.ReferencesResolver"/> instance to use to determine location and references of assemblies.</param> <param name="explicitProjectDependencies">TODO</param> <exception cref="T:NAnt.Core.BuildException">A project GUID in the solution file does not match the actual GUID of the project in the project file.</exception> </member> <member name="M:NAnt.VSNet.SolutionBase.TranslateProjectPath(System.String,System.String)"> <summary> Translates a project path, in the form of a relative file path or a URL, to an absolute file path. </summary> <param name="solutionDir">The directory of the solution.</param> <param name="projectPath">The project path to translate to an absolute file path.</param> <returns> The project path translated to an absolute file path. </returns> </member> <member name="M:NAnt.VSNet.SolutionBase.FixProjectReferences(NAnt.VSNet.ProjectBase,NAnt.VSNet.Configuration,System.Collections.Hashtable,System.Collections.Hashtable)"> <summary> Converts assembly references to projects to project references, adding a build dependency.c </summary> <param name="project">The <see cref="T:NAnt.VSNet.ProjectBase"/> to analyze.</param> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="builtProjects"><see cref="T:System.Collections.Hashtable"/> containing list of projects that have been built.</param> <param name="failedProjects"><see cref="T:System.Collections.Hashtable"/> containing list of projects that failed to build.</param> </member> <member name="M:NAnt.VSNet.SolutionBase.HasDirtyProjectDependency(NAnt.VSNet.ProjectBase,System.Collections.Hashtable)"> <summary> Determines whether any of the project dependencies of the specified project still needs to be built. </summary> <param name="project">The <see cref="T:NAnt.VSNet.ProjectBase"/> to analyze.</param> <param name="builtProjects"><see cref="T:System.Collections.Hashtable"/> containing list of projects that have been built.</param> <returns> <see langword="true"/> if one of the project dependencies has not yet been built; otherwise, <see langword="false"/>. </returns> </member> <member name="M:NAnt.VSNet.Extensibility.IProjectBuildProvider.IsSupported(System.String,System.Xml.XmlElement)"> <summary> Returns a number representing how much this file fits this project type. </summary> <param name="projectExt"></param> <param name="xmlDefinition"></param> <returns></returns> <remarks> This enables the override in other providers. Do not return big numbers, mainly when compring only on filename. </remarks> </member> <member name="T:NAnt.VSNet.Rainier.Solution"> <summary> Analyses Microsoft Visual Studio .NET 2002 (Rainier) solution files. </summary> </member> <member name="T:NAnt.VSNet.Tasks.SolutionTask"> <summary> Compiles VS.NET solutions (or sets of projects), automatically determining project dependencies from inter-project references. </summary> <remarks> <para> This task support the following projects: </para> <list type="bullet"> <item> <description>Visual Basic .NET</description> </item> <item> <description>Visual C# .NET</description> </item> <item> <description>Visual J# .NET</description> </item> <item> <description>Visual C++ .NET</description> </item> </list> <note> Right now, only Microsoft Visual Studio .NET 2002 and 2003 solutions and projects are supported. Support for .NET Compact Framework projects is also not available at this time. </note> <para> The <see cref="T:NAnt.VSNet.Tasks.SolutionTask"/> also supports the model of referencing projects by their output filenames, rather than referencing them inside the solution. It will automatically detect the existance of a file reference and convert it to a project reference. For example, if project "A" references the file in the release output directory of project "B", the <see cref="T:NAnt.VSNet.Tasks.SolutionTask"/> will automatically convert this to a project dependency on project "B" and will reference the appropriate configuration output directory at the final build time (ie: reference the debug version of "B" if the solution is built as debug). </para> <note> The <see cref="T:NAnt.VSNet.Tasks.SolutionTask"/> expects all project files to be valid XML files. </note> <h3>Resx Files</h3> <para> When building a project for a down-level target framework, special care should be given to resx files. Resx files (can) contain references to a specific version of CLR types, and as such are only upward compatible. </para> <para> For example: if you want to be able to build a project both as a .NET 1.0 and .NET 1.1 assembly, the resx files should only contain references to .NET 1.0 CLR types. Failure to do this may result in a <see cref="T:System.InvalidCastException"/> failure at runtime on machines with only the .NET Framework 1.0 installed. </para> </remarks> <example> <para> Compiles all of the projects in <c>test.sln</c>, in release mode, in the proper order. </para> <code> <![CDATA[ <solution configuration="release" solutionfile="test.sln" /> ]]> </code> </example> <example> <para> Compiles all of the projects in <c>projects.txt</c>, in the proper order. </para> <code> <![CDATA[ <solution configuration="release"> <projects> <includesfile name="projects.txt" /> </projects> </solution> ]]> </code> </example> <example> <para> Compiles projects A, B and C, using the output of project X as a reference. </para> <code> <![CDATA[ <solution configuration="release"> <projects> <include name="A\A.csproj" /> <include name="B\b.vbproj" /> <include name="C\c.csproj" /> </projects> <referenceprojects> <include name="X\x.csproj" /> </referenceprojects> </solution> ]]> </code> </example> <example> <para> Compiles all of the projects in the solution except for project A. </para> <code> <![CDATA[ <solution solutionfile="test.sln" configuration="release"> <excludeprojects> <include name="A\A.csproj" /> </excludeprojects> </solution> ]]> </code> </example> <example> <para> Compiles all of the projects in the solution mapping the specific project at http://localhost/A/A.csproj to c:\inetpub\wwwroot\A\A.csproj and any URLs under http://localhost/B/[remainder] to c:\other\B\[remainder]. This allows the build to work without WebDAV. </para> <code> <![CDATA[ <solution solutionfile="test.sln" configuration="release"> <webmap> <map url="http://localhost/A/A.csproj" path="c:\inetpub\wwwroot\A\A.csproj" /> <map url="http://localhost/B" path="c:\other\B" /> </webmap> </solution> ]]> </code> </example> <example> <para> Compiles all of the projects in the solution placing compiled outputs in <c>c:\temp</c>.</para> <code> <![CDATA[ <solution solutionfile="test.sln" configuration="release" outputdir="c:\temp" /> ]]> </code> </example> </member> <member name="M:NAnt.VSNet.Tasks.SolutionTask.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.Tasks.SolutionTask"/> class. </summary> </member> <member name="M:NAnt.VSNet.Tasks.SolutionTask.ExpandMacro(System.String)"> <summary> Expands the given macro. </summary> <param name="macro">The macro to expand.</param> <returns> The expanded macro or <see langword="null"/> if the macro is not supported. </returns> <exception cref="T:NAnt.Core.BuildException">The macro cannot be expanded.</exception> </member> <member name="M:NAnt.VSNet.Tasks.SolutionTask.BuildAssemblyFolders"> <summary> Builds the list of folders that should be scanned for assembly references. </summary> <returns> The list of folders that should be scanned for assembly references. </returns> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.Projects"> <summary> The projects to build. </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.ReferenceProjects"> <summary> The projects to scan, but not build. </summary> <remarks> These projects are used to resolve project references and are generally external to the solution being built. References to these project's output files are converted to use the appropriate solution configuration at build time. </remarks> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.SolutionFile"> <summary> The name of the VS.NET solution file to build. </summary> <remarks> <para> The <see cref="P:NAnt.VSNet.Tasks.SolutionTask.Projects"/> can be used instead to supply a list of Visual Studio.NET projects that should be built. </para> </remarks> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.Configuration"> <summary> The name of the solution configuration to build. </summary> <remarks> <para> Generally <c>release</c> or <c>debug</c>. Not case-sensitive. </para> </remarks> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.Platform"> <summary> The name of platform to build the solution for. </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.SolutionConfig"> <summary> Gets the solution configuration to build. </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.OutputDir"> <summary> The directory where compiled targets will be placed. This overrides path settings contained in the solution/project. </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.WebMaps"> <summary> WebMap of URL's to project references. </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.ExcludeProjects"> <summary> Fileset of projects to exclude. </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.AssemblyFolders"> <summary> Set of folders where references are searched when not found in path from project file (HintPath). </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.IncludeVSFolders"> <summary> Includes Visual Studio search folders in reference search path. The default is <see langword="true" />. </summary> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.EnableWebDav"> <summary> Allow the task to use WebDAV for retrieving/compiling the projects within solution. Use of <see cref="T:NAnt.VSNet.Types.WebMap"/> is preferred over WebDAV. The default is <see langword="false"/>. </summary> <remarks> <para>WebDAV support requires permission changes to be made on your project server. These changes may affect the security of the server and should not be applied to a public installation.</para> <para>Consult your web server or the NAnt Wiki documentation for more information.</para> </remarks> </member> <member name="P:NAnt.VSNet.Tasks.SolutionTask.AssemblyFolderList"> <summary> Gets the list of folders to scan for assembly references. </summary> <value> The list of folders to scan for assembly references. </value> </member> <member name="T:NAnt.VSNet.Types.UseOfATL"> <summary> Defines how the project is using the ATL library. </summary> </member> <member name="F:NAnt.VSNet.Types.UseOfATL.NotUsing"> <summary> Don't use ATL. </summary> </member> <member name="F:NAnt.VSNet.Types.UseOfATL.Static"> <summary> Use ATL in a Static Library. </summary> </member> <member name="F:NAnt.VSNet.Types.UseOfATL.Shared"> <summary> Use ATL in a Shared DLL. </summary> </member> <member name="T:NAnt.VSNet.Types.UseOfMFC"> <summary> Defines how the project is using the MFC library. </summary> </member> <member name="F:NAnt.VSNet.Types.UseOfMFC.NotUsing"> <summary> Don't use MFC. </summary> </member> <member name="F:NAnt.VSNet.Types.UseOfMFC.Static"> <summary> Use MFC in a Static Library. </summary> </member> <member name="F:NAnt.VSNet.Types.UseOfMFC.Shared"> <summary> Use MFC in a Shared DLL. </summary> </member> <member name="T:NAnt.VSNet.Types.UsePrecompiledHeader"> <summary> Indicates the possible ways in which precompiled header file use is specified in a Visual C++ project. </summary> <remarks> The integer values assigned match those specified in the Visual C++ project file for each setting. </remarks>> </member> <member name="F:NAnt.VSNet.Types.UsePrecompiledHeader.Unspecified"> <summary> Precompiled header file use not specified. </summary> </member> <member name="F:NAnt.VSNet.Types.UsePrecompiledHeader.No"> <summary> Don't use a precompiled header file. </summary> <remarks> For further information on the use of this option see the Microsoft documentation on the C++ compiler flag /Yc. </remarks> </member> <member name="F:NAnt.VSNet.Types.UsePrecompiledHeader.Create"> <summary> Create precompiled header file. </summary> <remarks> For further information on the use of this option see the Microsoft documentation on the C++ compiler flag /Yc. </remarks> </member> <member name="F:NAnt.VSNet.Types.UsePrecompiledHeader.AutoCreate"> <summary> Automatically create precompiled header file if necessary. </summary> <remarks> For further information on the use of this option see the Microsoft documentation on the C++ compiler flag /Yc. </remarks> </member> <member name="F:NAnt.VSNet.Types.UsePrecompiledHeader.Use"> <summary> Use a precompiled header file. </summary> <remarks> For further information on the use of this option see the Microsoft documentation on the C++ compiler flag /Yu. </remarks> </member> <member name="T:NAnt.VSNet.Types.WebMap"> <summary> Represents a single mapping from URL project path to physical project path. </summary> </member> <member name="P:NAnt.VSNet.Types.WebMap.Url"> <summary> Specifies the URL of the project file, or a URL fragment to match. </summary> <value> The URL of the project file or the URL fragment to match. </value> </member> <member name="P:NAnt.VSNet.Types.WebMap.Path"> <summary> Specifies the actual path to the project file, or the path fragment to replace. </summary> <value> The actual path to the project file or the path fragment to replace the URL fragment with. </value> </member> <member name="P:NAnt.VSNet.Types.WebMap.CaseSensitive"> <summary> Specifies whether the mapping is case-sensitive or not. </summary> <value> A boolean flag representing the case-sensitivity of the mapping. Default is <see langword="true" />. </value> </member> <member name="P:NAnt.VSNet.Types.WebMap.IfDefined"> <summary> Indicates if the URL of the project file should be mapped. </summary> <value> <see langword="true" /> if the URL of the project file should be mapped; otherwise, <see langword="false" />. </value> </member> <member name="P:NAnt.VSNet.Types.WebMap.UnlessDefined"> <summary> Indicates if the URL of the project file should not be mapped. </summary> <value> <see langword="true" /> if the URL of the project file should not be mapped; otherwise, <see langword="false" />. </value> </member> <member name="T:NAnt.VSNet.Types.WebMapCollection"> <summary> Contains a strongly typed collection of <see cref="T:NAnt.VSNet.Types.WebMap"/> objects. </summary> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.Types.WebMapCollection"/> class. </summary> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.#ctor(NAnt.VSNet.Types.WebMapCollection)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.Types.WebMapCollection"/> class with the specified <see cref="T:NAnt.VSNet.Types.WebMapCollection"/> instance. </summary> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.#ctor(NAnt.VSNet.Types.WebMap[])"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.Types.WebMapCollection"/> class with the specified array of <see cref="T:NAnt.VSNet.Types.WebMap"/> instances. </summary> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.FindBestMatch(System.String)"> <summary> Find the best matching <see cref="T:NAnt.VSNet.Types.WebMap"/> for the given Uri. </summary> <param name="uri">The value to match against the <see cref="T:NAnt.VSNet.Types.WebMap"/> objects in the collection.</param> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.Add(NAnt.VSNet.Types.WebMap)"> <summary> Adds a <see cref="T:NAnt.VSNet.Types.WebMap"/> to the end of the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.Types.WebMap"/> to be added to the end of the collection.</param> <returns>The position into which the new element was inserted.</returns> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.AddRange(NAnt.VSNet.Types.WebMap[])"> <summary> Adds the elements of a <see cref="T:NAnt.VSNet.Types.WebMap"/> array to the end of the collection. </summary> <param name="items">The array of <see cref="T:NAnt.VSNet.Types.WebMap"/> elements to be added to the end of the collection.</param> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.AddRange(NAnt.VSNet.Types.WebMapCollection)"> <summary> Adds the elements of a <see cref="T:NAnt.VSNet.Types.WebMapCollection"/> to the end of the collection. </summary> <param name="items">The <see cref="T:NAnt.VSNet.Types.WebMapCollection"/> to be added to the end of the collection.</param> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.Contains(NAnt.VSNet.Types.WebMap)"> <summary> Determines whether a <see cref="T:NAnt.VSNet.Types.WebMap"/> is in the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.Types.WebMap"/> to locate in the collection.</param> <returns> <see langword="true"/> if <paramref name="item"/> is found in the collection; otherwise, <see langword="false"/>. </returns> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.Contains(System.String)"> <summary> Determines whether a <see cref="T:NAnt.VSNet.Types.WebMap"/> with the specified value is in the collection. </summary> <param name="value">The argument value to locate in the collection.</param> <returns> <see langword="true"/> if a <see cref="T:NAnt.VSNet.Types.WebMap"/> with value <paramref name="value"/> is found in the collection; otherwise, <see langword="false"/>. </returns> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.CopyTo(NAnt.VSNet.Types.WebMap[],System.Int32)"> <summary> Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. </summary> <param name="array">The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.</param> <param name="index">The zero-based index in <paramref name="array"/> at which copying begins.</param> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.IndexOf(NAnt.VSNet.Types.WebMap)"> <summary> Retrieves the index of a specified <see cref="T:NAnt.VSNet.Types.WebMap"/> object in the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.Types.WebMap"/> object for which the index is returned.</param> <returns> The index of the specified <see cref="T:NAnt.VSNet.Types.WebMap"/>. If the <see cref="T:NAnt.VSNet.Types.WebMap"/> is not currently a member of the collection, it returns -1. </returns> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.Insert(System.Int32,NAnt.VSNet.Types.WebMap)"> <summary> Inserts a <see cref="T:NAnt.VSNet.Types.WebMap"/> into the collection at the specified index. </summary> <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param> <param name="item">The <see cref="T:NAnt.VSNet.Types.WebMap"/> to insert.</param> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.GetEnumerator"> <summary> Returns an enumerator that can iterate through the collection. </summary> <returns> A <see cref="T:NAnt.VSNet.Types.WebMapEnumerator"/> for the entire collection. </returns> </member> <member name="M:NAnt.VSNet.Types.WebMapCollection.Remove(NAnt.VSNet.Types.WebMap)"> <summary> Removes a member from the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.Types.WebMap"/> to remove from the collection.</param> </member> <member name="P:NAnt.VSNet.Types.WebMapCollection.Item(System.Int32)"> <summary> Gets or sets the element at the specified index. </summary> <param name="index">The zero-based index of the element to get or set.</param> </member> <member name="P:NAnt.VSNet.Types.WebMapCollection.Item(System.String)"> <summary> Gets the <see cref="T:NAnt.VSNet.Types.WebMap"/> with the specified value. </summary> <param name="value">The value of the <see cref="T:NAnt.VSNet.Types.WebMap"/> to get.</param> </member> <member name="T:NAnt.VSNet.Types.WebMapEnumerator"> <summary> Enumerates the <see cref="T:NAnt.VSNet.Types.WebMap"/> elements of a <see cref="T:NAnt.VSNet.Types.WebMapCollection"/>. </summary> </member> <member name="M:NAnt.VSNet.Types.WebMapEnumerator.#ctor(NAnt.VSNet.Types.WebMapCollection)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.Types.WebMapEnumerator"/> class with the specified <see cref="T:NAnt.VSNet.Types.WebMapCollection"/>. </summary> <param name="arguments">The collection that should be enumerated.</param> </member> <member name="M:NAnt.VSNet.Types.WebMapEnumerator.MoveNext"> <summary> Advances the enumerator to the next element of the collection. </summary> <returns> <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection. </returns> </member> <member name="M:NAnt.VSNet.Types.WebMapEnumerator.Reset"> <summary> Sets the enumerator to its initial position, which is before the first element in the collection. </summary> </member> <member name="P:NAnt.VSNet.Types.WebMapEnumerator.Current"> <summary> Gets the current element in the collection. </summary> <returns> The current element in the collection. </returns> </member> <member name="M:NAnt.VSNet.ReferenceBase.GetPrimaryOutputFile(NAnt.VSNet.Configuration)"> <summary> Gets the output path of the reference, without taking the "copy local" setting into consideration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The full output path of the reference. </returns> </member> <member name="M:NAnt.VSNet.ReferenceBase.GetOutputFiles(NAnt.VSNet.Configuration,System.Collections.Hashtable)"> <summary> Gets the complete set of output files of the reference for the specified configuration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="outputFiles">The set of output files to be updated.</param> <remarks> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </remarks> </member> <member name="M:NAnt.VSNet.ReferenceBase.GetAssemblyReferences(NAnt.VSNet.Configuration)"> <summary> Gets the complete set of assemblies that need to be referenced when a project references this component. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The complete set of assemblies that need to be referenced when a project references this component. </returns> </member> <member name="M:NAnt.VSNet.ReferenceBase.GetTimestamp(NAnt.VSNet.Configuration)"> <summary> Gets the timestamp of the reference. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The timestamp of the reference. </returns> </member> <member name="M:NAnt.VSNet.ReferenceBase.IsManaged(NAnt.VSNet.Configuration)"> <summary> Gets a value indicating whether the reference is managed for the specified configuration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> <see langword="true" /> if the reference is managed for the specified configuration; otherwise, <see langword="false" />. </returns> </member> <member name="M:NAnt.VSNet.ReferenceBase.GetFileTimestamp(System.String)"> <summary> Returns the date and time the specified file was last written to. </summary> <param name="fileName">The file for which to obtain write date and time information.</param> <returns> A <see cref="T:System.DateTime"/> structure set to the date and time that the specified file was last written to, or <see cref="F:System.DateTime.MaxValue"/> if the specified file does not exist. </returns> </member> <member name="M:NAnt.VSNet.ReferenceBase.Log(NAnt.Core.Level,System.String)"> <summary> Logs a message with the given priority. </summary> <param name="messageLevel">The message priority at which the specified message is to be logged.</param> <param name="message">The message to be logged.</param> <remarks> The actual logging is delegated to the underlying task. </remarks> </member> <member name="M:NAnt.VSNet.ReferenceBase.Log(NAnt.Core.Level,System.String,System.Object[])"> <summary> Logs a message with the given priority. </summary> <param name="messageLevel">The message priority at which the specified message is to be logged.</param> <param name="message">The message to log, containing zero or more format items.</param> <param name="args">An <see cref="T:System.Object"/> array containing zero or more objects to format.</param> <remarks> The actual logging is delegated to the underlying task. </remarks> </member> <member name="P:NAnt.VSNet.ReferenceBase.CopyLocal"> <summary> Gets a value indicating whether the output file(s) of this reference should be copied locally. </summary> <value> <see langword="true" /> if the output file(s) of this reference should be copied locally; otherwise, <see langword="false" />. </value> </member> <member name="P:NAnt.VSNet.ReferenceBase.IsSystem"> <summary> Gets a value indicating whether this reference represents a system assembly. </summary> <value> <see langword="true" /> if this reference represents a system assembly; otherwise, <see langword="false" />. </value> </member> <member name="P:NAnt.VSNet.ReferenceBase.Parent"> <summary> Gets the project in which the reference is defined. </summary> </member> <member name="M:NAnt.VSNet.FileReferenceBase.IsManaged(NAnt.VSNet.Configuration)"> <summary> Gets a value indicating whether the reference is managed for the specified configuration. </summary> <param name="config">The build configuration of the reference.</param> <returns> <see langword="true" />. </returns> </member> <member name="M:NAnt.VSNet.FileReferenceBase.GetAssemblyOutputFiles(System.String,System.Collections.Hashtable)"> <summary> Gets the complete set of output files for the specified assembly and adds them to <paremref name="outputFiles"/> collection. </summary> <param name="assemblyFile">The path of the assembly to get the output files for.</param> <param name="outputFiles">The set of output files to be updated.</param> <remarks> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </remarks> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.GetPrimaryOutputFile(NAnt.VSNet.Configuration)"> <summary> Gets the path of the reference, without taking the "copy local" setting into consideration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The output path of the reference. </returns> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.GetOutputFiles(NAnt.VSNet.Configuration,System.Collections.Hashtable)"> <summary> Gets the complete set of output files for the referenced project. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="outputFiles">The set of output files to be updated.</param> <remarks> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </remarks> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.GetAssemblyReferences(NAnt.VSNet.Configuration)"> <summary> Gets the complete set of assemblies that need to be referenced when a project references this component. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The complete set of assemblies that need to be referenced when a project references this component. </returns> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.GetTimestamp(NAnt.VSNet.Configuration)"> <summary> Gets the timestamp of the reference. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The timestamp of the reference. </returns> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.ResolveAssemblyReference"> <summary> Resolves an assembly reference. </summary> <returns> The full path to the resolved assembly, or <see langword="null" /> if the assembly reference could not be resolved. </returns> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.ResolveFromFolderList(System.Collections.Specialized.StringCollection,System.String)"> <summary> Searches for the given file in all paths in <paramref name="folderList" />. </summary> <param name="folderList">The folders to search.</param> <param name="fileName">The file to search for.</param> <returns> The path of the assembly if <paramref name="fileName" /> was found in <paramref name="folderList" />; otherwise, <see langword="null" />. </returns> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.ResolveFromFramework(System.String)"> <summary> Resolves an assembly reference in the framework assembly directory of the target framework. </summary> <param name="fileName">The file to search for.</param> <returns> The full path of the assembly file if the assembly could be located in the framework assembly directory; otherwise, <see langword="null" />. </returns> </member> <member name="M:NAnt.VSNet.AssemblyReferenceBase.ResolveFromRelativePath(System.String)"> <summary> Resolves an assembly reference using a path relative to the project directory. </summary> <returns> The full path of the assembly, or <see langword="null"/> if <paramref name="relativePath"/> is <see langword="null"/> or an empty <see cref="T:System.String"/>. </returns> </member> <member name="P:NAnt.VSNet.AssemblyReferenceBase.CopyLocal"> <summary> Gets a value indicating whether the output file(s) of this reference should be copied locally. </summary> <value> <see langword="true" /> if the output file(s) of this reference should be copied locally; otherwise, <see langword="false" />. </value> </member> <member name="P:NAnt.VSNet.AssemblyReferenceBase.IsSystem"> <summary> Gets a value indicating whether this reference represents a system assembly. </summary> <value> <see langword="true" /> if this reference represents a system assembly; otherwise, <see langword="false" />. </value> </member> <member name="M:NAnt.VSNet.ConfigurationBase.#ctor(NAnt.VSNet.ProjectBase)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ConfigurationBase"/> class with the given <see cref="T:NAnt.VSNet.ProjectBase"/>. </summary> <param name="project">The project of the configuration.</param> </member> <member name="M:NAnt.VSNet.ConfigurationBase.ExpandMacro(System.String)"> <summary> Expands the given macro. </summary> <param name="macro">The macro to expand.</param> <returns> The expanded macro. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The macro is not supported.</para> <para>-or-</para> <para>The macro is not implemented.</para> <para>-or-</para> <para>The macro cannot be expanded.</para> </exception> <exception cref="T:System.NotImplementedException"> <para>Expansion of a given macro is not yet implemented.</para> </exception> </member> <member name="M:NAnt.VSNet.ConfigurationBase.EvaluateMacro(System.Text.RegularExpressions.Match)"> <summary> Is called each time a regular expression match is found during a <see cref="M:System.Text.RegularExpressions.Regex.Replace(System.String,System.Text.RegularExpressions.MatchEvaluator)"/> operation. </summary> <param name="m">The <see cref="T:System.Text.RegularExpressions.Match"/> resulting from a single regular expression match during a <see cref="M:System.Text.RegularExpressions.Regex.Replace(System.String,System.Text.RegularExpressions.MatchEvaluator)"/>.</param> <returns> The expanded <see cref="T:System.Text.RegularExpressions.Match"/>. </returns> </member> <member name="P:NAnt.VSNet.ConfigurationBase.Project"> <summary> Gets the project. </summary> </member> <member name="P:NAnt.VSNet.ConfigurationBase.Name"> <summary> Gets the name of the configuration. </summary> </member> <member name="P:NAnt.VSNet.ConfigurationBase.ObjectDir"> <summary> Get the directory in which intermediate build output will be stored for this configuration. </summary> <remarks> <para> This is a directory relative to the project directory named <c>obj\&lt;configuration name&gt;</c>. </para> <para> <c>.resx</c> and <c>.licx</c> files will only be recompiled if the compiled resource files in the <see cref="P:NAnt.VSNet.ConfigurationBase.ObjectDir"/> are not uptodate. </para> </remarks> </member> <member name="P:NAnt.VSNet.ConfigurationBase.OutputDir"> <summary> Gets the output directory. </summary> </member> <member name="P:NAnt.VSNet.ConfigurationBase.OutputPath"> <summary> Gets the path for the output file. </summary> </member> <member name="P:NAnt.VSNet.ConfigurationBase.BuildPath"> <summary> Gets the path in which the output file will be created before its copied to the actual output path. </summary> </member> <member name="P:NAnt.VSNet.ConfigurationBase.RelativeOutputDir"> <summary> Get the path of the output directory relative to the project directory. </summary> </member> <member name="P:NAnt.VSNet.ConfigurationBase.PlatformName"> <summary> Gets the platform that the configuration targets. </summary> <value> The platform targeted by the configuration. </value> </member> <member name="P:NAnt.VSNet.ConfigurationBase.ExtraOutputFiles"> <summary> Gets the set of output files that is specific to the project configuration. </summary> <value> The set of output files that is specific to the project configuration. </value> <remarks> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </remarks> </member> <member name="M:NAnt.VSNet.ConfigurationDictionary.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ConfigurationDictionary"/> class. </summary> </member> <member name="M:NAnt.VSNet.ConfigurationMap.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ConfigurationMap"/> class. </summary> </member> <member name="M:NAnt.VSNet.ConfigurationMap.#ctor(System.Int32)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ConfigurationMap"/> class with the specified initial capacity. </summary> <param name="capacity">The appropriate number of entries that the <see cref="T:NAnt.VSNet.ConfigurationMap"/> can initially contain.</param> </member> <member name="P:NAnt.VSNet.ConfigurationSettings.PlatformName"> <summary> Gets the platform that the configuration targets. </summary> <value> The platform targeted by the configuration. </value> </member> <member name="P:NAnt.VSNet.ConfigurationSettings.BuildPath"> <summary> Gets the path in which the output file will be created before its copied to the actual output path. </summary> </member> <member name="P:NAnt.VSNet.ConfigurationSettings.RegisterForComInterop"> <summary> Gets a value indicating whether to register the project output for use with COM components. </summary> <value> <see langword="true" /> if the project output should be registered for use with COM components; otherwise, <see langword="false" />. </value> </member> <member name="T:NAnt.VSNet.ProjectBase"> <summary> Base class for all project classes. </summary> </member> <member name="M:NAnt.VSNet.ProjectBase.#ctor(System.Xml.XmlElement,NAnt.VSNet.Tasks.SolutionTask,System.CodeDom.Compiler.TempFileCollection,NAnt.Core.Util.GacCache,NAnt.VSNet.ReferencesResolver,System.IO.DirectoryInfo)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectBase"/> class. </summary> </member> <member name="M:NAnt.VSNet.ProjectBase.GetOutputFiles(NAnt.VSNet.Configuration,System.Collections.Hashtable)"> <summary> Gets the complete set of output files for the project configuration matching the specified solution configuration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="outputFiles">The set of output files to be updated.</param> <remarks> <para> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </para> <para> If the project is not configured to be built for the specified solution configuration, then no output files are added. </para> </remarks> </member> <member name="M:NAnt.VSNet.ProjectBase.IsManaged(NAnt.VSNet.Configuration)"> <summary> Gets a value indicating whether building the project for the specified build configuration results in managed output. </summary> <param name="configuration">The build configuration.</param> <returns> <see langword="true" /> if the project output for the given build configuration is managed; otherwise, <see langword="false" />. </returns> </member> <member name="M:NAnt.VSNet.ProjectBase.ExpandMacro(System.String)"> <summary> Expands the given macro. </summary> <param name="macro">The macro to expand.</param> <returns> The expanded macro or <see langword="null" /> if the macro is not supported. </returns> </member> <member name="M:NAnt.VSNet.ProjectBase.DetermineProductVersion(System.Xml.XmlElement)"> <summary> Returns the Visual Studio product version of the specified project XML fragment. </summary> <param name="docElement">XML fragment representing the project file.</param> <returns> The Visual Studio product version of the specified project XML file. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The product version could not be determined.</para> <para>-or-</para> <para>The product version is not supported.</para> </exception> </member> <member name="M:NAnt.VSNet.ProjectBase.VerifyProjectXml(System.Xml.XmlElement)"> <summary> Verifies whether the specified XML fragment represents a valid project that is supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>. </summary> <param name="docElement">XML fragment representing the project file.</param> <exception cref="T:NAnt.Core.BuildException"> <para>The XML fragment is not supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>.</para> <para>-or-</para> <para>The XML fragment does not represent a valid project (for this <see cref="T:NAnt.VSNet.ProjectBase"/>).</para> </exception> </member> <member name="M:NAnt.VSNet.ProjectBase.Prepare(NAnt.VSNet.Configuration)"> <summary> Prepares the project for being built. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <remarks> The default implementation will ensure that none of the output files are marked read-only. </remarks> </member> <member name="M:NAnt.VSNet.ProjectBase.CopyFile(System.IO.FileInfo,System.IO.FileInfo,NAnt.Core.Task)"> <summary> Copies the specified file if the destination file does not exist, or the source file has been modified since it was previously copied. </summary> <param name="srcFile">The file to copy.</param> <param name="destFile">The destination file.</param> <param name="parent">The <see cref="T:NAnt.Core.Task"/> in which context the operation will be performed.</param> </member> <member name="M:NAnt.VSNet.ProjectBase.Log(NAnt.Core.Level,System.String)"> <summary> Logs a message with the given priority. </summary> <param name="messageLevel">The message priority at which the specified message is to be logged.</param> <param name="message">The message to be logged.</param> <remarks> The actual logging is delegated to the underlying task. </remarks> </member> <member name="M:NAnt.VSNet.ProjectBase.Log(NAnt.Core.Level,System.String,System.Object[])"> <summary> Logs a message with the given priority. </summary> <param name="messageLevel">The message priority at which the specified message is to be logged.</param> <param name="message">The message to log, containing zero or more format items.</param> <param name="args">An <see cref="T:System.Object"/> array containing zero or more objects to format.</param> <remarks> The actual logging is delegated to the underlying task. </remarks> </member> <member name="P:NAnt.VSNet.ProjectBase.ProductVersion"> <summary> Gets the Visual Studio product version of the project. </summary> <value> The Visual Studio product version of the project. </value> </member> <member name="P:NAnt.VSNet.ProjectBase.Name"> <summary> Gets the name of the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.ProjectBase.Type"> <summary> Gets the type of the project. </summary> <value> The type of the project. </value> </member> <member name="P:NAnt.VSNet.ProjectBase.ProjectPath"> <summary> Gets the path of the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.ProjectBase.ProjectDirectory"> <summary> Gets the directory containing the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.ProjectBase.ProjectLocation"> <summary> Get the location of the project. </summary> </member> <member name="P:NAnt.VSNet.ProjectBase.ObjectDir"> <summary> Get the directory in which intermediate build output that is not specific to the build configuration will be stored. </summary> <remarks> <para> For <see cref="F:NAnt.VSNet.ProjectLocation.Local"/> projects, this is defined as <c>&lt;Project Directory&lt;\obj</c>. </para> <para> For <see cref="F:NAnt.VSNet.ProjectLocation.Web"/> projects, this is defined as <c>%HOMEPATH%\VSWebCache\&lt;Machine Name&gt;\&lt;Project Directory&gt;\obj</c>. </para> </remarks> </member> <member name="P:NAnt.VSNet.ProjectBase.Guid"> <summary> Gets or sets the unique identifier of the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.ProjectBase.ProjectConfigurations"> <summary> Gets a list of all configurations defined in the project. </summary> </member> <member name="P:NAnt.VSNet.ProjectBase.BuildConfigurations"> <summary> Gets a list of project configurations that can be build. </summary> <remarks> <para> Project configurations that are not in this list do not need to be compiled. </para> </remarks> </member> <member name="P:NAnt.VSNet.ProjectBase.ExtraOutputFiles"> <summary> Gets the extra set of output files for the project. </summary> <value> The extra set of output files for the project. </value> <remarks> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </remarks> </member> <member name="P:NAnt.VSNet.ProjectBase.ProjectDependencies"> <summary> Gets the set of projects that the project depends on. </summary> <value> The set of projects that the project depends on. </value> </member> <member name="P:NAnt.VSNet.ProjectBase.ProductVersionNumber"> <summary> TODO: refactor this !!! </summary> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.IsManaged(NAnt.VSNet.Configuration)"> <summary> Gets a value indicating whether building the project for the specified build configuration results in managed output. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> <see langword="true" />. </returns> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.Prepare(NAnt.VSNet.Configuration)"> <summary> Prepares the project for being built. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <remarks> Ensures the configuration-level object directory exists and ensures that none of the output files are marked read-only. </remarks> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.GetOutputFiles(NAnt.VSNet.Configuration,System.Collections.Hashtable)"> <summary> Gets the complete set of output files for the project configuration matching the specified solution configuration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="outputFiles">The set of output files to be updated.</param> <remarks> <para> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </para> <para> If the project is not configured to be built for the specified solution configuration, then no output files are added. </para> </remarks> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.GetProcessStartInfo(NAnt.VSNet.ConfigurationBase,System.String)"> <summary> Returns a <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </summary> <param name="config">The configuration to build.</param> <param name="responseFile">The response file for the compiler.</param> <returns> A <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </returns> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.DetermineProjectLocation(System.Xml.XmlElement)"> <summary> Returns the project location from the specified project XML fragment. </summary> <param name="docElement">XML fragment representing the project file.</param> <returns> The project location of the specified project XML file. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The project location could not be determined.</para> <para>-or-</para> <para>The project location is invalid.</para> </exception> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.GetTypeLibraryPath(NAnt.VSNet.ConfigurationSettings)"> <summary> Gets the absolute path of the type library for the project output. </summary> <param name="config">The configuration to build.</param> <returns> The absolute path of the type library for the project output. </returns> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.RegisterForComInterop(NAnt.VSNet.ConfigurationSettings,NAnt.VSNet.Configuration,System.String)"> <summary> Generates a type library for the specified assembly, registers it. </summary> <param name="config">The project configuration that is built.</param> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="typelibPath">The path of the type library to generate.</param> <remarks> The <c>regasm</c> tool is used to generate the type library. </remarks> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.UnregisterForComInterop(NAnt.VSNet.ConfigurationSettings,NAnt.VSNet.Configuration)"> <summary> Unregister a type library for the specified assembly, and the types in that assembly. </summary> <param name="config">The project configuration that is built.</param> <param name="solutionConfiguration">The solution configuration that is built.</param> <remarks> The <c>regasm</c> tool is used to unregister the type library, and remove the COM registration for types in the specified assembly. </remarks> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.GetLocalizedResources"> <summary> Returns <see cref="T:System.Collections.Hashtable"/> containing culture-specific resources. </summary> <returns> A <see cref="T:System.Collections.Hashtable"/> containing culture-specific resources. </returns> <remarks> The key of the <see cref="T:System.Collections.Hashtable"/> is <see cref="T:System.Globalization.CultureInfo"/> and the value is an <see cref="T:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet"/> instance for that culture. </remarks> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.CreateRegAsmTask"> <summary> Creates and initializes a <see cref="T:NAnt.Win32.Tasks.RegAsmTask"/> instance. </summary> <returns> An initialized <see cref="T:NAnt.Win32.Tasks.RegAsmTask"/> instance. </returns> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.GetProductVersion(System.Xml.XmlNode)"> <summary> Returns the Visual Studio product version of the specified project XML fragment. </summary> <param name="projectNode">XML fragment representing the project to check.</param> <returns> The Visual Studio product version of the specified project XML fragment. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The product version could not be determined.</para> <para>-or-</para> <para>The product version is not supported.</para> </exception> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.GetProjectLocation(System.Xml.XmlNode)"> <summary> Returns the <see cref="P:NAnt.VSNet.ManagedProjectBase.ProjectLocation"/> of the specified project XML fragment. </summary> <param name="projectNode">XML fragment representing the project to check.</param> <returns> The <see cref="P:NAnt.VSNet.ManagedProjectBase.ProjectLocation"/> of the specified project XML fragment. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The project location could not be determined.</para> <para>-or-</para> <para>The project location is invalid.</para> </exception> </member> <member name="F:NAnt.VSNet.ManagedProjectBase._sourceFiles"> <summary> Holds a case-insensitive list of source files. </summary> <remarks> The key of the <see cref="T:System.Collections.Hashtable"/> is the full path of the source file and the value is <see langword="null"/>. </remarks> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.FileExtension"> <summary> Gets the default file extension of sources for this project. </summary> <value> The default file extension of sources for this project. </value> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.IsWebProject"> <summary> Gets a value indicating if this is a web project. </summary> <value> <see langword="true"/> if this is a web project; otherwise, <see langword="false"/>. </value> <remarks> If the url of a web project has been mapped to a local path (using the &lt;webmap&gt; element), then this property will return <see langword="false"/> for a <see cref="F:NAnt.VSNet.ProjectLocation.Web"/> project. </remarks> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.Name"> <summary> Gets the name of the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.ProjectPath"> <summary> Gets the path of the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.ProjectDirectory"> <summary> Gets the directory containing the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.ProjectLocation"> <summary> Get the location of the project. </summary> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.Guid"> <summary> Gets or sets the unique identifier of the VS.NET project. </summary> </member> <member name="T:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet"> <summary> Groups a set of <see cref="T:NAnt.VSNet.Resource"/> instances for a specific culture. </summary> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet.#ctor(System.Globalization.CultureInfo)"> <summary> Initializes a new <see cref="T:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet"/> instance for the specified culture. </summary> <param name="culture">A <see cref="T:System.Globalization.CultureInfo"/>.</param> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet.GetBuildDirectory(NAnt.VSNet.ConfigurationSettings)"> <summary> Gets the intermediate build directory in which the satellite assembly is built. </summary> <param name="projectConfig">The project build configuration.</param> <returns> The intermediate build directory in which the satellite assembly is built. </returns> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet.GetSatelliteAssemblyPath(NAnt.VSNet.ConfigurationSettings,NAnt.VSNet.ProjectSettings)"> <summary> Gets a <see cref="T:System.IO.FileInfo"/> representing the path to the intermediate file location of the satellite assembly. </summary> <param name="projectConfig">The project build configuration.</param> <param name="projectSettings">The project settings.</param> <returns> A <see cref="T:System.IO.FileInfo"/> representing the path to the intermediate file location of the satellite assembly. </returns> </member> <member name="M:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet.GetRelativePath(NAnt.VSNet.ProjectSettings)"> <summary> Gets path of the satellite assembly, relative to the output directory. </summary> <param name="projectSettings">The project settings.</param> <returns> The path of the satellite assembly, relative to the output directory. </returns> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet.Culture"> <summary> Gets the <see cref="T:System.Globalization.CultureInfo"/> of the <see cref="T:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet"/>. </summary> </member> <member name="P:NAnt.VSNet.ManagedProjectBase.LocalizedResourceSet.Resources"> <summary> Gets the set of localized resources. </summary> </member> <member name="M:NAnt.VSNet.CSharpProject.VerifyProjectXml(System.Xml.XmlElement)"> <summary> Verifies whether the specified XML fragment represents a valid project that is supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>. </summary> <param name="docElement">XML fragment representing the project file.</param> <exception cref="T:NAnt.Core.BuildException"> <para>The XML fragment is not supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>.</para> <para>-or-</para> <para>The XML fragment does not represent a valid project (for this <see cref="T:NAnt.VSNet.ProjectBase"/>).</para> </exception> </member> <member name="M:NAnt.VSNet.CSharpProject.DetermineProductVersion(System.Xml.XmlElement)"> <summary> Returns the Visual Studio product version of the specified project XML fragment. </summary> <param name="docElement">The document element of the project.</param> <returns> The Visual Studio product version of the specified project XML fragment. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The product version could not be determined.</para> <para>-or-</para> <para>The product version is not supported.</para> </exception> </member> <member name="M:NAnt.VSNet.CSharpProject.GetProcessStartInfo(NAnt.VSNet.ConfigurationBase,System.String)"> <summary> Returns a <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </summary> <param name="config">The configuration to build.</param> <param name="responseFile">The response file for the compiler.</param> <returns> A <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </returns> </member> <member name="M:NAnt.VSNet.CSharpProject.DetermineProjectLocation(System.Xml.XmlElement)"> <summary> Returns the project location from the specified project XML fragment. </summary> <param name="docElement">XML fragment representing the project file.</param> <returns> The project location of the specified project XML file. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The project location could not be determined.</para> <para>-or-</para> <para>The project location is invalid.</para> </exception> </member> <member name="M:NAnt.VSNet.CSharpProject.IsSupported(System.Xml.XmlElement)"> <summary> Returns a value indicating whether the project represented by the specified XML fragment is supported by <see cref="T:NAnt.VSNet.CSharpProject"/>. </summary> <param name="docElement">XML fragment representing the project to check.</param> <returns> <see langword="true"/> if <see cref="T:NAnt.VSNet.CSharpProject"/> supports the specified project; otherwise, <see langword="false"/>. </returns> <remarks> <para> A project is identified as as C# project, if the XML fragment at least has the following information: </para> <code> <![CDATA[ <VisualStudioProject> <CSHARP ProductVersion="..." .... > ... </CSHARP> </VisualStudioProject> ]]> </code> </remarks> </member> <member name="P:NAnt.VSNet.CSharpProject.Type"> <summary> Gets the type of the project. </summary> <value> The type of the project. </value> </member> <member name="P:NAnt.VSNet.CSharpProject.FileExtension"> <summary> Gets the default file extension of sources for this project. </summary> <value> For C# projects, the default file extension is &quot;.cs&quot;. </value> </member> <member name="T:NAnt.VSNet.GenericSolution"> <summary> Supports grouping of individual projects, and treating them as a solution. </summary> </member> <member name="M:NAnt.VSNet.JSharpProject.VerifyProjectXml(System.Xml.XmlElement)"> <summary> Verifies whether the specified XML fragment represents a valid project that is supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>. </summary> <param name="docElement">XML fragment representing the project file.</param> <exception cref="T:NAnt.Core.BuildException"> <para>The XML fragment is not supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>.</para> <para>-or-</para> <para>The XML fragment does not represent a valid project (for this <see cref="T:NAnt.VSNet.ProjectBase"/>).</para> </exception> </member> <member name="M:NAnt.VSNet.JSharpProject.DetermineProductVersion(System.Xml.XmlElement)"> <summary> Returns the Visual Studio product version of the specified project XML fragment. </summary> <param name="docElement">The document element of the project.</param> <returns> The Visual Studio product version of the specified project XML fragment. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The product version could not be determined.</para> <para>-or-</para> <para>The product version is not supported.</para> </exception> </member> <member name="M:NAnt.VSNet.JSharpProject.Prepare(NAnt.VSNet.Configuration)"> <summary> Prepares the project for being built. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <remarks> Ensures the configuration-level object directory exists and ensures that none of the output files are marked read-only. </remarks> </member> <member name="M:NAnt.VSNet.JSharpProject.GetProcessStartInfo(NAnt.VSNet.ConfigurationBase,System.String)"> <summary> Returns a <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </summary> <param name="config">The configuration to build.</param> <param name="responseFile">The response file for the compiler.</param> <returns> A <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </returns> </member> <member name="M:NAnt.VSNet.JSharpProject.DetermineProjectLocation(System.Xml.XmlElement)"> <summary> Returns the project location from the specified project XML fragment. </summary> <param name="docElement">XML fragment representing the project file.</param> <returns> The project location of the specified project XML file. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The project location could not be determined.</para> <para>-or-</para> <para>The project location is invalid.</para> </exception> </member> <member name="M:NAnt.VSNet.JSharpProject.IsSupported(System.Xml.XmlElement)"> <summary> Returns a value indicating whether the project represented by the specified XML fragment is supported by <see cref="T:NAnt.VSNet.JSharpProject"/>. </summary> <param name="docElement">XML fragment representing the project to check.</param> <returns> <see langword="true"/> if <see cref="T:NAnt.VSNet.CSharpProject"/> supports the specified project; otherwise, <see langword="false"/>. </returns> <remarks> <para> A project is identified as as J# project, if the XML fragment at least has the following information: </para> <code> <![CDATA[ <VisualStudioProject> <JSHARP ProductVersion="..." .... > ... </JSHARP> </VisualStudioProject> ]]> </code> </remarks> </member> <member name="P:NAnt.VSNet.JSharpProject.Type"> <summary> Gets the type of the project. </summary> <value> The type of the project. </value> </member> <member name="P:NAnt.VSNet.JSharpProject.FileExtension"> <summary> Gets the default file extension of sources for this project. </summary> <value> For J# projects, the default file extension is &quot;.jsl&quot;. </value> </member> <member name="M:NAnt.VSNet.ManagedAssemblyReference.ResolveAssemblyReference"> <summary> Resolves an assembly reference. </summary> <returns> The full path to the resolved assembly, or <see langword="null" /> if the assembly reference could not be resolved. </returns> <remarks> <para> Visual Studio .NET uses the following search mechanism : </para> <list type="number"> <item> <term> The project directory. </term> </item> <item> <term> The directories specified in the "ReferencePath" property, which is stored in the .USER file. </term> </item> <item> <term> The .NET Framework directory (see KB306149) </term> </item> <item> <term> <para> The directories specified under the following registry keys: </para> <list type="bullet"> <item> <term> HKLM\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders </term> </item> <item> <term> HKCU\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders </term> </item> <item> <term> HKLM\SOFTWARE\Microsoft\VisualStudio\&lt;major version&gt;.&lt;minor version&gt;\AssemblyFolders </term> </item> <item> <term> HKCU\SOFTWARE\Microsoft\VisualStudio\&lt;major version&gt;.&lt;minor version&gt;\AssemblyFolders </term> </item> </list> <para> Future versions of Visual Studio .NET will also check in: </para> <list type="bullet"> <item> <term> HKLM\SOFTWARE\Microsoft\.NETFramework\AssemblyFoldersEx </term> </item> <item> <term> HKCU\SOFTWARE\Microsoft\.NETFramework\AssemblyFoldersEx </term> </item> </list> </term> </item> <item> <term> The HintPath. </term> </item> </list> </remarks> </member> <member name="P:NAnt.VSNet.ManagedAssemblyReference.Name"> <summary> Gets the name of the referenced assembly. </summary> <value> The name of the referenced assembly, or <see langword="null" /> if the name could not be determined. </value> </member> <member name="P:NAnt.VSNet.ManagedAssemblyReference.AssemblyFoldersKey"> <summary> Gets the Visual Studio .NET AssemblyFolders registry key matching the current target framework. </summary> <value> The Visual Studio .NET AssemblyFolders registry key matching the current target framework. </value> <exception cref="T:NAnt.Core.BuildException">The current target framework is not supported.</exception> <remarks> We use the target framework instead of the product version of the containing project file to determine what registry key to scan, as we don't want to use assemblies meant for uplevel framework versions. </remarks> </member> <member name="T:NAnt.VSNet.ManagedOutputType"> <summary> Indentifies the different output types of a managed project. </summary> <remarks> Visual Studio .NET does not support modules. </remarks> </member> <member name="F:NAnt.VSNet.ManagedOutputType.Library"> <summary> A class library. </summary> </member> <member name="F:NAnt.VSNet.ManagedOutputType.Executable"> <summary> A console application. </summary> </member> <member name="F:NAnt.VSNet.ManagedOutputType.WindowsExecutable"> <summary> A Windows program. </summary> </member> <member name="M:NAnt.VSNet.ProjectReferenceBase.GetPrimaryOutputFile(NAnt.VSNet.Configuration)"> <summary> Gets the output path of the reference, without taking the "copy local" setting into consideration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The output path of the reference. </returns> </member> <member name="M:NAnt.VSNet.ProjectReferenceBase.GetOutputFiles(NAnt.VSNet.Configuration,System.Collections.Hashtable)"> <summary> Gets the complete set of output files for the referenced project. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="outputFiles">The set of output files to be updated.</param> <returns> The complete set of output files for the referenced project. </returns> <remarks> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </remarks> </member> <member name="M:NAnt.VSNet.ProjectReferenceBase.GetAssemblyReferences(NAnt.VSNet.Configuration)"> <summary> Gets the complete set of assemblies that need to be referenced when a project references this project. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The complete set of assemblies that need to be referenced when a project references this project. </returns> <remarks> <para> Apparently, there's some hack in VB.NET that allows a type to be used that derives from a type in an assembly that is not referenced by the project. </para> <para> When building from the command line (using vbc), the following error is reported "error BC30007: Reference required to assembly 'X' containing the base class 'X'. Add one to your project". </para> <para> Somehow VB.NET can workaround this issue, without actually adding a reference to that assembly. I verified this with both VS.NET 2003 and VS.NET 2005. </para> <para> For now, we have no other option than to return all assembly references of the referenced project if the parent is a VB.NET project. </para> </remarks> </member> <member name="M:NAnt.VSNet.ProjectReferenceBase.GetTimestamp(NAnt.VSNet.Configuration)"> <summary> Gets the timestamp of the reference. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The timestamp of the reference. </returns> </member> <member name="P:NAnt.VSNet.ProjectReferenceBase.CopyLocal"> <summary> Gets a value indicating whether the output file(s) of this reference should be copied locally. </summary> <value> <see langword="true" /> if the output file(s) of this reference should be copied locally; otherwise, <see langword="false" />. </value> </member> <member name="P:NAnt.VSNet.ProjectReferenceBase.IsSystem"> <summary> Gets a value indicating whether this reference represents a system assembly. </summary> <value> <see langword="false" /> as a project by itself can never be a system assembly. </value> </member> <member name="M:NAnt.VSNet.ManagedProjectReference.IsManaged(NAnt.VSNet.Configuration)"> <summary> Gets a value indicating whether the reference is managed for the specified configuration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> <see langword="true" />. </returns> </member> <member name="M:NAnt.VSNet.WrapperReferenceBase.GetPrimaryOutputFile(NAnt.VSNet.Configuration)"> <summary> Gets the path of the reference, without taking the "copy local" setting into consideration. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The output path of the reference. </returns> </member> <member name="M:NAnt.VSNet.WrapperReferenceBase.GetOutputFiles(NAnt.VSNet.Configuration,System.Collections.Hashtable)"> <summary> Gets the complete set of output files for the referenced project. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <param name="outputFiles">The set of output files to be updated.</param> <remarks> The key of the case-insensitive <see cref="T:System.Collections.Hashtable"/> is the full path of the output file and the value is the path relative to the output directory. </remarks> </member> <member name="M:NAnt.VSNet.WrapperReferenceBase.GetAssemblyReferences(NAnt.VSNet.Configuration)"> <summary> Gets the complete set of assemblies that need to be referenced when a project references this component. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The complete set of assemblies that need to be referenced when a project references this component. </returns> </member> <member name="M:NAnt.VSNet.WrapperReferenceBase.GetTimestamp(NAnt.VSNet.Configuration)"> <summary> Gets the timestamp of the reference. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> The timestamp of the reference. </returns> </member> <member name="M:NAnt.VSNet.WrapperReferenceBase.Sync(NAnt.VSNet.ConfigurationBase)"> <summary> Removes wrapper assembly from build directory, if wrapper assembly no longer exists in output directory or is not in sync with build directory, to force rebuild. </summary> <param name="config">The project configuration.</param> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.CopyLocal"> <summary> Gets a value indicating whether the output file(s) of this reference should be copied locally. </summary> <value> <see langword="false" /> if the reference wraps a Primary Interop Assembly; otherwise, <see langword="true" />. </value> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.IsSystem"> <summary> Gets a value indicating whether this reference represents a system assembly. </summary> <value> <see langword="false" /> as none of the system assemblies are wrappers or Primary Interop Assemblies anyway. </value> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.WrapperTool"> <summary> Gets the name of the tool that should be used to create the <see cref="P:NAnt.VSNet.WrapperReferenceBase.WrapperAssembly"/>. </summary> <value> The name of the tool that should be used to create the <see cref="P:NAnt.VSNet.WrapperReferenceBase.WrapperAssembly"/>. </value> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.WrapperAssembly"> <summary> Gets the path of the wrapper assembly. </summary> <value> The path of the wrapper assembly. </value> <remarks> The wrapper assembly is stored in the object directory of the project. </remarks> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.IsCreated"> <summary> Gets a value indicating whether the wrapper assembly has already been created. </summary> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.PrimaryInteropAssembly"> <summary> Gets the path of the Primary Interop Assembly. </summary> <value> The path of the Primary Interop Assembly, or <see langword="null" /> if not available. </value> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.TypeLibVersion"> <summary> Gets the hex version of the type library as defined in the definition of the reference. </summary> <value> The hex version of the type library. </value> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.TypeLibGuid"> <summary> Gets the GUID of the type library as defined in the definition of the reference. </summary> <value> The GUID of the type library. </value> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.TypeLibLocale"> <summary> Gets the locale of the type library in hex notation. </summary> <value> The locale of the type library. </value> </member> <member name="P:NAnt.VSNet.WrapperReferenceBase.TypeLibraryName"> <summary> Gets the name of the type library. </summary> <value> The name of the type library. </value> </member> <member name="P:NAnt.VSNet.ManagedWrapperReference.Name"> <summary> Gets the name of the referenced assembly. </summary> <value> The name of the referenced assembly, or <see langword="null" /> if the name could not be determined. </value> </member> <member name="P:NAnt.VSNet.ManagedWrapperReference.WrapperTool"> <summary> Gets the name of the tool that should be used to create the <see cref="P:NAnt.VSNet.ManagedWrapperReference.WrapperAssembly"/>. </summary> <value> The name of the tool that should be used to create the <see cref="P:NAnt.VSNet.ManagedWrapperReference.WrapperAssembly"/>. </value> </member> <member name="P:NAnt.VSNet.ManagedWrapperReference.WrapperAssembly"> <summary> Gets the path of the wrapper assembly. </summary> <value> The path of the wrapper assembly. </value> <remarks> The wrapper assembly is stored in the object directory of the project. </remarks> </member> <member name="P:NAnt.VSNet.ManagedWrapperReference.PrimaryInteropAssembly"> <summary> Gets the path of the Primary Interop Assembly. </summary> <value> The path of the Primary Interop Assembly, or <see langword="null" /> if not available. </value> </member> <member name="P:NAnt.VSNet.ManagedWrapperReference.TypeLibVersion"> <summary> Gets the hex version of the type library as defined in the definition of the reference. </summary> <value> The hex version of the type library. </value> <exception cref="T:NAnt.Core.BuildException"> <para> The definition of the reference does not contain a "VersionMajor" attribute. </para> <para>-or</para> <para> The definition of the reference does not contain a "VersionMinor" attribute. </para> </exception> </member> <member name="P:NAnt.VSNet.ManagedWrapperReference.TypeLibGuid"> <summary> Gets the GUID of the type library as defined in the definition of the reference. </summary> <value> The GUID of the type library. </value> </member> <member name="P:NAnt.VSNet.ManagedWrapperReference.TypeLibLocale"> <summary> Gets the locale of the type library in hex notation. </summary> <value> The locale of the type library. </value> </member> <member name="T:NAnt.VSNet.ProjectType"> <summary> Specifies the type of the project. </summary> </member> <member name="F:NAnt.VSNet.ProjectType.VB"> <summary> A Visual Basic.NET project. </summary> </member> <member name="F:NAnt.VSNet.ProjectType.CSharp"> <summary> A Visual C# project. </summary> </member> <member name="F:NAnt.VSNet.ProjectType.VisualC"> <summary> A Visual C++ project. </summary> </member> <member name="F:NAnt.VSNet.ProjectType.JSharp"> <summary> A Visual J# project. </summary> </member> <member name="F:NAnt.VSNet.ProjectType.MSBuild"> <summary> MSBuild project. </summary> </member> <member name="T:NAnt.VSNet.BuildResult"> <summary> Specifies the result of the build. </summary> </member> <member name="F:NAnt.VSNet.BuildResult.Failed"> <summary> The build failed. </summary> </member> <member name="F:NAnt.VSNet.BuildResult.Success"> <summary> The build succeeded. </summary> </member> <member name="F:NAnt.VSNet.BuildResult.SuccessOutputUpdated"> <summary> The build succeeded and the output was updated. </summary> </member> <member name="F:NAnt.VSNet.ProductVersion.Rainier"> <summary> Visual Studio.NET 2002 </summary> </member> <member name="F:NAnt.VSNet.ProductVersion.Everett"> <summary> Visual Studio.NET 2003 </summary> </member> <member name="F:NAnt.VSNet.ProductVersion.Whidbey"> <summary> Visual Studio 2005 </summary> </member> <member name="T:NAnt.VSNet.ProjectLocation"> <summary> Indentifies the physical location of a managed project. </summary> </member> <member name="F:NAnt.VSNet.ProjectLocation.Local"> <summary> A local project. </summary> </member> <member name="F:NAnt.VSNet.ProjectLocation.Web"> <summary> A web project. </summary> </member> <member name="T:NAnt.VSNet.ProjectBaseCollection"> <summary> Contains a collection of <see cref="T:NAnt.VSNet.ProjectBase"/> elements. </summary> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectBaseCollection"/> class. </summary> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.#ctor(NAnt.VSNet.ProjectBaseCollection)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectBaseCollection"/> class with the specified <see cref="T:NAnt.VSNet.ProjectBaseCollection"/> instance. </summary> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.#ctor(NAnt.VSNet.ProjectBase[])"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectBaseCollection"/> class with the specified array of <see cref="T:NAnt.VSNet.ProjectBase"/> instances. </summary> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.Add(NAnt.VSNet.ProjectBase)"> <summary> Adds a <see cref="T:NAnt.VSNet.ProjectBase"/> to the end of the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectBase"/> to be added to the end of the collection.</param> <returns>The position into which the new element was inserted.</returns> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.AddRange(NAnt.VSNet.ProjectBase[])"> <summary> Adds the elements of a <see cref="T:NAnt.VSNet.ProjectBase"/> array to the end of the collection. </summary> <param name="items">The array of <see cref="T:NAnt.VSNet.ProjectBase"/> elements to be added to the end of the collection.</param> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.AddRange(NAnt.VSNet.ProjectBaseCollection)"> <summary> Adds the elements of a <see cref="T:NAnt.VSNet.ProjectBaseCollection"/> to the end of the collection. </summary> <param name="items">The <see cref="T:NAnt.VSNet.ProjectBaseCollection"/> to be added to the end of the collection.</param> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.Contains(NAnt.VSNet.ProjectBase)"> <summary> Determines whether a <see cref="T:NAnt.VSNet.ProjectBase"/> is in the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectBase"/> to locate in the collection.</param> <returns> <see langword="true"/> if <paramref name="item"/> is found in the collection; otherwise, <see langword="false"/>. </returns> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.Contains(System.String)"> <summary> Determines whether a <see cref="T:NAnt.VSNet.ProjectBase"/> with the specified GUID is in the collection, using a case-insensitive lookup. </summary> <param name="value">The GUID to locate in the collection.</param> <returns> <see langword="true"/> if a <see cref="T:NAnt.VSNet.ProjectBase"/> with GUID <paramref name="value"/> is found in the collection; otherwise, <see langword="false"/>. </returns> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.CopyTo(NAnt.VSNet.ProjectBase[],System.Int32)"> <summary> Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. </summary> <param name="array">The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.</param> <param name="index">The zero-based index in <paramref name="array"/> at which copying begins.</param> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.IndexOf(NAnt.VSNet.ProjectBase)"> <summary> Retrieves the index of a specified <see cref="T:NAnt.VSNet.ProjectBase"/> object in the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectBase"/> object for which the index is returned.</param> <returns> The index of the specified <see cref="T:NAnt.VSNet.ProjectBase"/>. If the <see cref="T:NAnt.VSNet.ProjectBase"/> is not currently a member of the collection, it returns -1. </returns> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.Insert(System.Int32,NAnt.VSNet.ProjectBase)"> <summary> Inserts a <see cref="T:NAnt.VSNet.ProjectBase"/> into the collection at the specified index. </summary> <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param> <param name="item">The <see cref="T:NAnt.VSNet.ProjectBase"/> to insert.</param> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.GetEnumerator"> <summary> Returns an enumerator that can iterate through the collection. </summary> <returns> A <see cref="T:NAnt.VSNet.ProjectBaseEnumerator"/> for the entire collection. </returns> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.Remove(NAnt.VSNet.ProjectBase)"> <summary> Removes a member from the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectBase"/> to remove from the collection.</param> </member> <member name="M:NAnt.VSNet.ProjectBaseCollection.Remove(System.String)"> <summary> Remove items with the specified guid from the collection. </summary> <param name="guid">The guid of the project to remove from the collection.</param> </member> <member name="P:NAnt.VSNet.ProjectBaseCollection.Item(System.Int32)"> <summary> Gets or sets the element at the specified index. </summary> <param name="index">The zero-based index of the element to get or set.</param> </member> <member name="P:NAnt.VSNet.ProjectBaseCollection.Item(System.String)"> <summary> Gets the <see cref="T:NAnt.VSNet.ProjectBase"/> with the specified GUID. </summary> <param name="guid">The GUID of the <see cref="T:NAnt.VSNet.ProjectBase"/> to get.</param> <remarks> Performs a case-insensitive lookup. </remarks> </member> <member name="T:NAnt.VSNet.ProjectBaseEnumerator"> <summary> Enumerates the <see cref="T:NAnt.VSNet.ProjectBase"/> elements of a <see cref="T:NAnt.VSNet.ProjectBaseCollection"/>. </summary> </member> <member name="M:NAnt.VSNet.ProjectBaseEnumerator.#ctor(NAnt.VSNet.ProjectBaseCollection)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectBaseEnumerator"/> class with the specified <see cref="T:NAnt.VSNet.ProjectBaseCollection"/>. </summary> <param name="arguments">The collection that should be enumerated.</param> </member> <member name="M:NAnt.VSNet.ProjectBaseEnumerator.MoveNext"> <summary> Advances the enumerator to the next element of the collection. </summary> <returns> <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection. </returns> </member> <member name="M:NAnt.VSNet.ProjectBaseEnumerator.Reset"> <summary> Sets the enumerator to its initial position, which is before the first element in the collection. </summary> </member> <member name="P:NAnt.VSNet.ProjectBaseEnumerator.Current"> <summary> Gets the current element in the collection. </summary> <returns> The current element in the collection. </returns> </member> <member name="P:NAnt.VSNet.ProjectEntry.Project"> <summary> Gets or sets the in memory representation of the project. </summary> <value> The in memory representation of the project, or <see langword="null" /> if the project is not (yet) loaded. </value> <remarks> This property will always be <see langword="null" /> for projects that are not supported. </remarks> </member> <member name="P:NAnt.VSNet.ProjectEntry.BuildConfigurations"> <summary> Return a mapping between the configurations defined in the solution file and the project build configurations. </summary> <value> Mapping between configurations defined in the solution file and the project build configurations, or <see langword="null" /> if the project is not defined in a solution file. </value> <remarks> This mapping only includes project build configurations that are configured to be built for a given solution configuration. </remarks> </member> <member name="T:NAnt.VSNet.ProjectEntryCollection"> <summary> Contains a collection of <see cref="T:NAnt.VSNet.ProjectEntry"/> elements. </summary> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectEntryCollection"/> class. </summary> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.#ctor(NAnt.VSNet.ProjectEntryCollection)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectEntryCollection"/> class with the specified <see cref="T:NAnt.VSNet.ProjectEntryCollection"/> instance. </summary> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.#ctor(NAnt.VSNet.ProjectEntry[])"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectEntryCollection"/> class with the specified array of <see cref="T:NAnt.VSNet.ProjectEntry"/> instances. </summary> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.Add(NAnt.VSNet.ProjectEntry)"> <summary> Adds a <see cref="T:NAnt.VSNet.ProjectEntry"/> to the end of the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectEntry"/> to be added to the end of the collection.</param> <returns> The position into which the new element was inserted. </returns> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.AddRange(NAnt.VSNet.ProjectEntry[])"> <summary> Adds the elements of a <see cref="T:NAnt.VSNet.ProjectEntry"/> array to the end of the collection. </summary> <param name="items">The array of <see cref="T:NAnt.VSNet.ProjectEntry"/> elements to be added to the end of the collection.</param> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.AddRange(NAnt.VSNet.ProjectEntryCollection)"> <summary> Adds the elements of a <see cref="T:NAnt.VSNet.ProjectEntryCollection"/> to the end of the collection. </summary> <param name="items">The <see cref="T:NAnt.VSNet.ProjectEntryCollection"/> to be added to the end of the collection.</param> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.Contains(NAnt.VSNet.ProjectEntry)"> <summary> Determines whether a <see cref="T:NAnt.VSNet.ProjectEntry"/> is in the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectEntry"/> to locate in the collection.</param> <returns> <see langword="true"/> if <paramref name="item"/> is found in the collection; otherwise, <see langword="false"/>. </returns> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.Contains(System.String)"> <summary> Determines whether a <see cref="T:NAnt.VSNet.ProjectEntry"/> with the specified GUID is in the collection, using a case-insensitive lookup. </summary> <param name="value">The GUID to locate in the collection.</param> <returns> <see langword="true"/> if a <see cref="T:NAnt.VSNet.ProjectEntry"/> with GUID <paramref name="value"/> is found in the collection; otherwise, <see langword="false"/>. </returns> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.CopyTo(NAnt.VSNet.ProjectEntry[],System.Int32)"> <summary> Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. </summary> <param name="array">The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.</param> <param name="index">The zero-based index in <paramref name="array"/> at which copying begins.</param> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.IndexOf(NAnt.VSNet.ProjectEntry)"> <summary> Retrieves the index of a specified <see cref="T:NAnt.VSNet.ProjectEntry"/> object in the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectEntry"/> object for which the index is returned.</param> <returns> The index of the specified <see cref="T:NAnt.VSNet.ProjectEntry"/>. If the <see cref="T:NAnt.VSNet.ProjectEntry"/> is not currently a member of the collection, it returns -1. </returns> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.Insert(System.Int32,NAnt.VSNet.ProjectEntry)"> <summary> Inserts a <see cref="T:NAnt.VSNet.ProjectEntry"/> into the collection at the specified index. </summary> <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param> <param name="item">The <see cref="T:NAnt.VSNet.ProjectEntry"/> to insert.</param> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.GetEnumerator"> <summary> Returns an enumerator that can iterate through the collection. </summary> <returns> A <see cref="T:NAnt.VSNet.ProjectEntryEnumerator"/> for the entire collection. </returns> </member> <member name="M:NAnt.VSNet.ProjectEntryCollection.Remove(NAnt.VSNet.ProjectEntry)"> <summary> Removes a member from the collection. </summary> <param name="item">The <see cref="T:NAnt.VSNet.ProjectEntry"/> to remove from the collection.</param> </member> <member name="P:NAnt.VSNet.ProjectEntryCollection.Item(System.Int32)"> <summary> Gets or sets the element at the specified index. </summary> <param name="index">The zero-based index of the element to get or set.</param> </member> <member name="P:NAnt.VSNet.ProjectEntryCollection.Item(System.String)"> <summary> Gets the <see cref="T:NAnt.VSNet.ProjectEntry"/> with the specified GUID. </summary> <param name="guid">The GUID of the <see cref="T:NAnt.VSNet.ProjectEntry"/> to get.</param> <remarks> Performs a case-insensitive lookup. </remarks> </member> <member name="T:NAnt.VSNet.ProjectEntryEnumerator"> <summary> Enumerates the <see cref="T:NAnt.VSNet.ProjectEntry"/> elements of a <see cref="T:NAnt.VSNet.ProjectEntryCollection"/>. </summary> </member> <member name="M:NAnt.VSNet.ProjectEntryEnumerator.#ctor(NAnt.VSNet.ProjectEntryCollection)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectEntryEnumerator"/> class with the specified <see cref="T:NAnt.VSNet.ProjectEntryCollection"/>. </summary> <param name="arguments">The collection that should be enumerated.</param> </member> <member name="M:NAnt.VSNet.ProjectEntryEnumerator.MoveNext"> <summary> Advances the enumerator to the next element of the collection. </summary> <returns> <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection. </returns> </member> <member name="M:NAnt.VSNet.ProjectEntryEnumerator.Reset"> <summary> Sets the enumerator to its initial position, which is before the first element in the collection. </summary> </member> <member name="P:NAnt.VSNet.ProjectEntryEnumerator.Current"> <summary> Gets the current element in the collection. </summary> <returns> The current element in the collection. </returns> </member> <member name="T:NAnt.VSNet.ProjectFactory"> <summary> Factory class for VS.NET projects. </summary> </member> <member name="M:NAnt.VSNet.ProjectFactory.#ctor(NAnt.VSNet.Tasks.SolutionTask)"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.ProjectFactory"/> class. </summary> </member> <member name="F:NAnt.VSNet.ProjectFactory._cachedProjects"> <summary> Holds a case-insensitive list of cached projects. </summary> <remarks> The key of the <see cref="T:System.Collections.Hashtable"/> is the path of the project file (for web projects this can be a URL) and the value is a <see cref="T:NAnt.Core.Project"/> instance. </remarks> </member> <member name="F:NAnt.VSNet.ProjectFactory._cachedProjectGuids"> <summary> Holds a case-insensitive list of cached project GUIDs. </summary> <remarks> The key of the <see cref="T:System.Collections.Hashtable"/> is the path of the project file (for web projects this can be a URL) and the value is the GUID of the project. </remarks> </member> <member name="F:NAnt.VSNet.ProjectFactory._cachedProjectXml"> <summary> Holds a case-insensitive list of cached project GUIDs. </summary> <remarks> The key of the <see cref="T:System.Collections.Hashtable"/> is the path of the project file (for web projects this can be a URL) and the value is the Xml of the project. </remarks> </member> <member name="M:NAnt.VSNet.ProjectSettings.GetOutputType(System.Xml.XmlElement)"> <summary> Determines the output type of the project from its XML definition. </summary> <param name="settingsXml">The XML definition of the project settings.</param> <returns> The output type of the project. </returns> <exception cref="T:NAnt.Core.BuildException"> <para> The output type of the project is not set in the specified XML definition. </para> <para>-or-</para> <para> The output type of the project is not supported. </para> </exception> </member> <member name="M:NAnt.VSNet.ProjectSettings.GetProjectGuid(System.String,System.Xml.XmlElement)"> <summary> Gets the project GUID from the given <see cref="T:System.Xml.XmlElement"/> holding a <c>&lt;VisualStudioProject&gt;</c> node. </summary> <param name="projectFile">The path of the project file.</param> <param name="elemRoot">The <c>&lt;VisualStudioProject&gt;</c> node from which the project GUID should be retrieved.</param> <returns> The project GUID from specified <c>&lt;VisualStudioProject&gt;</c> node. </returns> </member> <member name="P:NAnt.VSNet.ProjectSettings.ApplicationIcon"> <summary> Gets the .ico file to use as application icon. </summary> <value> The .ico file to use as application icon, or <see langword="null" /> if no application icon should be used. </value> </member> <member name="P:NAnt.VSNet.ProjectSettings.AssemblyOriginatorKeyFile"> <summary> Gets the key file to use to sign ActiveX/COM wrappers. </summary> <value> The path of the key file to use to sign ActiveX/COM wrappers, relative to the project root directory, or <see langword="null" /> if the wrapper assembly should not be signed using a key file. </value> </member> <member name="P:NAnt.VSNet.ProjectSettings.AssemblyKeyContainerName"> <summary> Gets the key name to use to sign ActiveX/COM wrappers. </summary> <value> The name of the key container to use to sign ActiveX/COM wrappers, or <see langword="null" /> if the wrapper assembly should not be signed using a key container. </value> </member> <member name="P:NAnt.VSNet.ProjectSettings.OutputType"> <summary> Gets the output type of this project. </summary> </member> <member name="P:NAnt.VSNet.ProjectSettings.RunPostBuildEvent"> <summary> Designates when the <see cref="P:NAnt.VSNet.ProjectSettings.PostBuildEvent"/> command line should be run. Possible values are "OnBuildSuccess", "Always" or "OnOutputUpdated". </summary> </member> <member name="P:NAnt.VSNet.ProjectSettings.PreBuildEvent"> <summary> Contains commands to be run before a build takes place. </summary> <remarks> Valid commands are those in a .bat file. For more info see MSDN. </remarks> </member> <member name="P:NAnt.VSNet.ProjectSettings.PostBuildEvent"> <summary> Contains commands to be ran after a build has taken place. </summary> <remarks> Valid commands are those in a .bat file. For more info see MSDN. </remarks> </member> <member name="M:NAnt.VSNet.ReferencesResolver.InitializeLifetimeService"> <summary> Obtains a lifetime service object to control the lifetime policy for this instance. </summary> <returns> An object of type <see cref="T:System.Runtime.Remoting.Lifetime.ILease"/> used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized with a lease that will never time out. </returns> </member> <member name="M:NAnt.VSNet.ReferencesResolver.GetAssemblyFileName(System.String)"> <summary> Gets the file name of the assembly with the given assembly name. </summary> <param name="assemblyName">The assembly name of the assembly of which the file name should be returned.</param> <returns> The file name of the assembly with the given assembly name. </returns> </member> <member name="M:NAnt.VSNet.Resource.Compile(NAnt.VSNet.Configuration)"> <summary> Compiles the resource file. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> A <see cref="T:System.IO.FileInfo"/> representing the compiled resource file. </returns> </member> <member name="M:NAnt.VSNet.Resource.GetCompiledResourceFile(NAnt.VSNet.Configuration)"> <summary> Returns a <see cref="T:System.IO.FileInfo"/> representing the compiled resource file. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> A <see cref="T:System.IO.FileInfo"/> representing the compiled resource file. </returns> <remarks> Calling this method does not force compilation of the resource file. </remarks> </member> <member name="P:NAnt.VSNet.Resource.InputFile"> <summary> Gets a <see cref="T:System.IO.FileInfo"/> representing the physical location of the resource file. </summary> </member> <member name="P:NAnt.VSNet.Resource.LogicalFile"> <summary> Gets a <see cref="T:System.IO.FileInfo"/> representing the logical location of the resource file in the project. </summary> <remarks> When the resource file is not linked, this matches the <see cref="P:NAnt.VSNet.Resource.InputFile"/>. </remarks> </member> <member name="P:NAnt.VSNet.Resource.IsResX"> <summary> Gets a value indicating whether the resource is in fact a ResX file. </summary> <value> <see langword="true" /> if the resource is a ResX file; otherwise, <see langword="false" />. </value> </member> <member name="T:NAnt.VSNet.SolutionFactory"> <summary> Factory class for VS.NET solutions. </summary> </member> <member name="M:NAnt.VSNet.SolutionFactory.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.SolutionFactory"/> class. </summary> </member> <member name="M:NAnt.VSNet.VBProject.VerifyProjectXml(System.Xml.XmlElement)"> <summary> Verifies whether the specified XML fragment represents a valid project that is supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>. </summary> <param name="docElement">XML fragment representing the project file.</param> <exception cref="T:NAnt.Core.BuildException"> <para>The XML fragment is not supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>.</para> <para>-or-</para> <para>The XML fragment does not represent a valid project (for this <see cref="T:NAnt.VSNet.ProjectBase"/>).</para> </exception> </member> <member name="M:NAnt.VSNet.VBProject.DetermineProductVersion(System.Xml.XmlElement)"> <summary> Returns the Visual Studio product version of the specified project XML fragment. </summary> <param name="docElement">The document element of the project.</param> <returns> The Visual Studio product version of the specified project XML fragment. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The product version could not be determined.</para> <para>-or-</para> <para>The product version is not supported.</para> </exception> <remarks> This method is called from the <see cref="T:NAnt.VSNet.ProjectBase"/> ctor, and at that time we're not sure the XML that is passed in, is indeed a valid Visual Basic project. </remarks> </member> <member name="M:NAnt.VSNet.VBProject.DetermineProjectLocation(System.Xml.XmlElement)"> <summary> Returns the project location from the specified project XML fragment. </summary> <param name="docElement">XML fragment representing the project file.</param> <returns> The project location of the specified project XML file. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The project location could not be determined.</para> <para>-or-</para> <para>The project location is invalid.</para> </exception> </member> <member name="M:NAnt.VSNet.VBProject.GetProcessStartInfo(NAnt.VSNet.ConfigurationBase,System.String)"> <summary> Returns a <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </summary> <param name="config">The configuration to build.</param> <param name="responseFile">The response file for the compiler.</param> <returns> A <see cref="T:System.Diagnostics.ProcessStartInfo"/> for launching the compiler for this project. </returns> </member> <member name="M:NAnt.VSNet.VBProject.IsSupported(System.Xml.XmlElement)"> <summary> Returns a value indicating whether the project represented by the specified XML fragment is supported by <see cref="T:NAnt.VSNet.VBProject"/>. </summary> <param name="docElement">XML fragment representing the project to check.</param> <returns> <see langword="true"/> if <see cref="T:NAnt.VSNet.VBProject"/> supports the specified project; otherwise, <see langword="false"/>. </returns> <remarks> <para> A project is identified as as Visual Basic project, if the XML fragment at least has the following information: </para> <code> <![CDATA[ <VisualStudioProject> <VisualBasic ProductVersion="..." .... > ... </VisualBasic> </VisualStudioProject> ]]> </code> </remarks> </member> <member name="P:NAnt.VSNet.VBProject.Type"> <summary> Gets the type of the project. </summary> <value> The type of the project. </value> </member> <member name="P:NAnt.VSNet.VBProject.FileExtension"> <summary> Gets the default file extension of sources for this project. </summary> <value> For VB projects, the default file extension is &quot;.vb&quot;. </value> </member> <member name="T:NAnt.VSNet.VcArgumentMap"> <summary> A mapping from properties in the .vcproj file to command line arguments. </summary> </member> <member name="M:NAnt.VSNet.VcArgumentMap.#ctor"> <summary> Initializes a new instance of the <see cref="T:NAnt.VSNet.VcArgumentMap"/> class. </summary> </member> <member name="M:NAnt.VSNet.VcArgumentMap.GetArgument(System.String,System.String,NAnt.VSNet.VcArgumentMap.ArgGroup)"> <summary> Gets the argument string corresponding with a configuration property named <paramref name="propName" /> with value <paramref name="propValue" />. An ignore mask can be used to eliminate some arguments from the search. </summary> <param name="propName">The name of the configuration property.</param> <param name="propValue">The value of the configuration property.</param> <param name="useIgnoreGroup">Specify any groups that needs to be ignored.</param> <returns> The argument string corresponding with a configuration property named <paramref name="propName" /> with value <paramref name="propValue" />, or <see langword="null" /> if no corresponding argument exists. </returns> </member> <member name="M:NAnt.VSNet.VcArgumentMap.CreateCLArgumentMap"> <summary> Creates a mapping between configuration properties for the Visual C++ compiler and corresponding command-line arguments. </summary> <returns> A mapping between configuration properties for the Visual C++ compiler and corresponding command-line arguments. </returns> <remarks> <para> The following configuration properties are processed by <see cref="T:NAnt.VSNet.VcProject"/>: </para> <list type="table"> <listheader> <term>Category</term> <description>Property</description> </listheader> <item> <term>General</term> <description>Addtional Include Directories (/I[path])</description> </item> <item> <term>General</term> <description>Resolve #using References (/AI[path])</description> </item> <item> <term>Preprocessor</term> <description>Preprocessor Definitions (/D[macro])</description> </item> <item> <term>Code Generation</term> <description>Enable C++ Exceptions (/EHsc)</description> </item> <item> <term>Precompiled Headers</term> <description>Create/Use Precompiled Header</description> </item> <item> <term>Precompiled Headers</term> <description>Create/Use PCH Through File</description> </item> <item> <term>Precompiled Headers</term> <description>Precompiled Header File</description> </item> <item> <term>Output Files</term> <description>Assembler Output</description> </item> <item> <term>Output Files</term> <description>ASM List Location</description> </item> <item> <term>Browse Information</term> <description>Enable Browse Information</description> </item> <item> <term>Browse Information</term> <description>Browse File</description> </item> <item> <term>Advanced</term> <description>Force Includes (/FI[name])</description> </item> <item> <term>Advanced</term> <description>Force #using (/FU[name])</description> </item> <item> <term>Advanced</term> <description>Undefine Preprocessor Definitions (/U[macro])</description> </item> </list> </remarks> </member> <member name="M:NAnt.VSNet.VcArgumentMap.CreateLinkerArgumentMap"> <summary> Creates a mapping between configuration properties for the Visual C++ linker and corresponding command-line arguments. </summary> <returns> A mapping between configuration properties for the Visual C++ linker and corresponding command-line arguments. </returns> <remarks> <para> The following configuration properties are processed by <see cref="T:NAnt.VSNet.VcProject"/>: </para> <list type="table"> <listheader> <term>Category</term> <description>Property</description> </listheader> <item> <term>General</term> <description>Output File (/OUT:[file])</description> </item> <item> <term>General</term> <description>Additional Library Directories (/LIBPATH:[dir])</description> </item> <item> <term>Input</term> <description>Additional Dependencies</description> </item> <item> <term>Input</term> <description>Add Module to Assembly (/ASSEMBLYMODULE:file)</description> </item> <item> <term>Input</term> <description>Embed Managed Resource File (/ASSEMBLYRESOURCE:file)</description> </item> <item> <term>Debugging</term> <description>Generate Debug Info (/DEBUG)</description> </item> <item> <term>Debugging</term> <description>Generate Program Database File (/PDB:name)</description> </item> <item> <term>Debugging</term> <description>Generate Map File (/MAP)</description> </item> <item> <term>Debugging</term> <description>Map File Name (/MAP:[filename])</description> </item> <item> <term>System</term> <description>Heap Reserve Size (/HEAP:reserve)</description> </item> <item> <term>System</term> <description>Heap Commit Size (/HEAP:reserve, commit)</description> </item> <item> <term>System</term> <description>Stack Reserve Size (/STACK:reserve)</description> </item> <item> <term>System</term> <description>Stack Commit Size (/STACK:reserve, commit)</description> </item> </list> <para> The following configuration properties are ignored: </para> <list type="table"> <listheader> <term>Category</term> <description>Property</description> </listheader> <item> <term>General</term> <description>Show Progress (/VERBOSE, /VERBOSE:LIB)</description> </item> <item> <term>General</term> <description>Suppress Startup Banner (/NOLOGO)</description> </item> </list> <para> Support for the following configuration properties still needs to be implemented: </para> <list type="table"> <listheader> <term>Category</term> <description>Property</description> </listheader> <item> <term>General</term> <description>Ignore Import Library</description> </item> <item> <term>General</term> <description>Register Output</description> </item> <item> <term>Input</term> <description>Delay Loaded DLLs (/DELAYLOAD:[dll_name])</description> </item> <item> <term>Embedded IDL</term> <description>MIDL Commands (/MIDL:[file])</description> </item> </list> </remarks> </member> <member name="P:NAnt.VSNet.VcArgumentMap.VcArgument.Name"> <summary> Gets the name of the command-line argument. </summary> <value> The name of the command-line argument. </value> </member> <member name="T:NAnt.VSNet.VcArgumentMap.LinkerStringArgument"> <summary> Represents a command-line arguments of which the trailing backslashes in the value should be duplicated. </summary> </member> <member name="T:NAnt.VSNet.VcArgumentMap.QuotedLinkerStringArgument"> <summary> Represents a command-line argument of which the value should be quoted, and of which trailing backslahes should be duplicated. </summary> </member> <member name="P:NAnt.VSNet.VcArgumentMap.VcBoolArgument.Match"> <summary> Gets the string that the configuration setting should match in order for the command line argument to be set. </summary> </member> <member name="T:NAnt.VSNet.VcArgumentMap.ArgGroup"> <summary> Allow us to assign an argument to a specific group. </summary> </member> <member name="F:NAnt.VSNet.VcArgumentMap.ArgGroup.Unassigned"> <summary> The argument is not assigned to any group. </summary> </member> <member name="F:NAnt.VSNet.VcArgumentMap.ArgGroup.OptiIgnoreGroup"> <summary> The argument is ignored when the optimization level is set to <b>Minimum Size</b> (1) or <b>Maximum Size</b> (2). </summary> </member> <member name="M:NAnt.VSNet.VcAssemblyReference.ResolveAssemblyReference"> <summary> Resolves an assembly reference. </summary> <returns> The full path to the resolved assembly, or <see langword="null" /> if the assembly reference could not be resolved. </returns> </member> <member name="M:NAnt.VSNet.VcAssemblyReference.EvaluateMacro(System.Text.RegularExpressions.Match)"> <summary> Is called each time a regular expression match is found during a <see cref="M:System.Text.RegularExpressions.Regex.Replace(System.String,System.Text.RegularExpressions.MatchEvaluator)"/> operation. </summary> <param name="m">The <see cref="T:System.Text.RegularExpressions.Match"/> resulting from a single regular expression match during a <see cref="M:System.Text.RegularExpressions.Regex.Replace(System.String,System.Text.RegularExpressions.MatchEvaluator)"/>.</param> <returns> The expanded <see cref="T:System.Text.RegularExpressions.Match"/>. </returns> <exception cref="T:NAnt.Core.BuildException">The macro is not supported.</exception> <exception cref="T:System.NotImplementedException">Expansion of a given macro is not yet implemented.</exception> </member> <member name="P:NAnt.VSNet.VcAssemblyReference.Name"> <summary> Gets the name of the referenced assembly. </summary> <value> The name of the referenced assembly, or <see langword="null" /> if the name could not be determined. </value> </member> <member name="T:NAnt.VSNet.VcConfigurationBase"> <summary> A single build configuration for a Visual C++ project or for a specific file in the project. </summary> </member> <member name="M:NAnt.VSNet.VcConfigurationBase.ExpandMacro(System.String)"> <summary> Expands the given macro. </summary> <param name="macro">The macro to expand.</param> <returns> The expanded macro. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The macro is not supported.</para> <para>-or-</para> <para>The macro is not implemented.</para> <para>-or-</para> <para>The macro cannot be expanded.</para> </exception> </member> <member name="M:NAnt.VSNet.VcConfigurationBase.GetToolSetting(System.String,System.String)"> <summary> Gets the value of a given setting for a specified tool. </summary> <param name="toolName">The name of the tool.</param> <param name="settingName">The name of the setting.</param> <returns> The value of a setting for the specified tool, or <see langword="null"/> if the setting is not defined for the specified tool. </returns> <remarks> An empty setting value, which is used as a means to override the project default, will be returned as a empty <see cref="T:System.String"/>. </remarks> </member> <member name="M:NAnt.VSNet.VcConfigurationBase.GetToolSetting(System.String,System.String,System.String)"> <summary> Gets the value of a given setting for a specified tool. </summary> <param name="toolName">The name of the tool.</param> <param name="settingName">The name of the setting.</param> <param name="defaultValue">The value to return if setting is not defined.</param> <returns> The value of a setting for the specified tool, or <paramref name="defaultValue"/> if the setting is not defined for the specified tool. </returns> <remarks> An empty setting value, which is used as a means to override the project default, will be returned as a empty <see cref="T:System.String"/>. </remarks> </member> <member name="P:NAnt.VSNet.VcConfigurationBase.IntermediateDir"> <summary> Gets the intermediate directory, specified relative to project directory. </summary> <value> The intermediate directory, specified relative to project directory. </value> </member> <member name="P:NAnt.VSNet.VcConfigurationBase.ReferencesPath"> <summary> Gets a comma-separated list of directories to scan for assembly references. </summary> <value> A comma-separated list of directories to scan for assembly references, or <see langword="null" /> if no additional directories should scanned. </value> </member> <member name="P:NAnt.VSNet.VcConfigurationBase.FullName"> <summary> Gets the name of the configuration, including the platform it targets. </summary> <value> Tthe name of the configuration, including the platform it targets. </value> </member> <member name="P:NAnt.VSNet.VcConfigurationBase.OutputDir"> <summary> Gets the output directory. </summary> </member> <member name="P:NAnt.VSNet.VcConfigurationBase.BuildPath"> <summary> Gets the path in which the output file will be created before its copied to the actual output path. </summary> <remarks> For Visual C++ projects, the output file will be immediately created in the output path. </remarks> </member> <member name="P:NAnt.VSNet.VcConfigurationBase.Name"> <summary> Gets the name of the configuration. </summary> <value> The name of the configuration. </value> </member> <member name="P:NAnt.VSNet.VcConfigurationBase.PlatformName"> <summary> Gets the platform that the configuration targets. </summary> <value> The platform targeted by the configuration. </value> </member> <member name="T:NAnt.VSNet.VcFileConfiguration"> <summary> Represents the configuration of a file. </summary> </member> <member name="M:NAnt.VSNet.VcFileConfiguration.ExpandMacro(System.String)"> <summary> Expands the given macro. </summary> <param name="macro">The macro to expand.</param> <returns> The expanded macro. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The macro is not supported.</para> <para>-or-</para> <para>The macro is not implemented.</para> <para>-or-</para> <para>The macro cannot be expanded.</para> </exception> </member> <member name="M:NAnt.VSNet.VcFileConfiguration.GetToolSetting(System.String,System.String,System.String)"> <summary> Gets the value of a given setting for a specified tool. </summary> <param name="toolName">The name of the tool.</param> <param name="settingName">The name of the setting.</param> <param name="projectDefault">The value to return if setting is not defined in both the file and project configuration.</param> <returns> The value of a setting for the specified tool, or <paramref name="settingName"/> if the setting is not defined in both the file and project configuration. </returns> <remarks> <para> If the setting is not defined in the file configuration, then the project level setting will be used. </para> <para> An empty setting value, which is used as a means to override the project default, will be returned as a empty <see cref="T:System.String"/>. </para> </remarks> </member> <member name="P:NAnt.VSNet.VcFileConfiguration.ExcludeFromBuild"> <summary> Gets a value indication whether the file should be excluded from the build for this configuration. </summary> <value> <see langword="true" /> if the file should be excluded from the build for this configuration; otherwise, <see langword="false" />. </value> </member> <member name="P:NAnt.VSNet.VcFileConfiguration.RelativePath"> <summary> Gets the relative path of the file. </summary> <value> The path of the file relative to the project directory. </value> </member> <member name="P:NAnt.VSNet.VcFileConfiguration.RelativeOutputDir"> <summary> Get the path of the output directory relative to the project directory. </summary> </member> <member name="P:NAnt.VSNet.VcFileConfiguration.IntermediateDir"> <summary> Gets the intermediate directory, specified relative to project directory. </summary> <value> The intermediate directory, specified relative to project directory. </value> </member> <member name="P:NAnt.VSNet.VcFileConfiguration.OutputPath"> <summary> Gets the path for the output file. </summary> <value> The path for the output file, or <see langword="null" /> if there's no output file for this configuration. </value> </member> <member name="P:NAnt.VSNet.VcFileConfiguration.ReferencesPath"> <summary> Gets a comma-separated list of directories to scan for assembly references. </summary> <value> A comma-separated list of directories to scan for assembly references, or <see langword="null" /> if no additional directories should scanned. </value> </member> <member name="T:NAnt.VSNet.VcProject"> <summary> Visual C++ project. </summary> </member> <member name="M:NAnt.VSNet.VcProject.IsManaged(NAnt.VSNet.Configuration)"> <summary> Gets a value indicating whether building the project for the specified build configuration results in managed output. </summary> <param name="solutionConfiguration">The solution configuration that is built.</param> <returns> <see langword="true" /> if the project output for the specified build configuration is either a Dynamic Library (dll) or an Application (exe), and Managed Extensions are enabled; otherwise, <see langword="false" />. </returns> </member> <member name="M:NAnt.VSNet.VcProject.VerifyProjectXml(System.Xml.XmlElement)"> <summary> Verifies whether the specified XML fragment represents a valid project that is supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>. </summary> <param name="docElement">XML fragment representing the project file.</param> <exception cref="T:NAnt.Core.BuildException"> <para>The XML fragment is not supported by this <see cref="T:NAnt.VSNet.ProjectBase"/>.</para> <para>-or-</para> <para>The XML fragment does not represent a valid project (for this <see cref="T:NAnt.VSNet.ProjectBase"/>).</para> </exception> </member> <member name="M:NAnt.VSNet.VcProject.DetermineProductVersion(System.Xml.XmlElement)"> <summary> Returns the Visual Studio product version of the specified project XML fragment. </summary> <param name="docElement">The document element of the project.</param> <returns> The Visual Studio product version of the specified project XML fragment. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The product version could not be determined.</para> <para>-or-</para> <para>The product version is not supported.</para> </exception> </member> <member name="M:NAnt.VSNet.VcProject.ExpandMacro(System.String)"> <summary> Expands the given macro. </summary> <param name="macro">The macro to expand.</param> <returns> The expanded macro or <see langword="null" /> if the macro is not supported. </returns> </member> <member name="M:NAnt.VSNet.VcProject.BuildResourceFiles(System.Collections.ArrayList,NAnt.VSNet.VcProjectConfiguration,NAnt.VSNet.VcConfigurationBase)"> <summary> Build resource files for the given configuration. </summary> <param name="fileNames">The resource files to build.</param> <param name="projectConfig">The project configuration.</param> <param name="fileConfig">The build configuration.</param> <remarks> TODO: refactor this as we should always get only one element in the <paramref name="fileNames" /> list. Each res file should be built with its own file configuration. </remarks> </member> <member name="M:NAnt.VSNet.VcProject.BuildIDLFiles(System.Collections.ArrayList,NAnt.VSNet.VcProjectConfiguration,NAnt.VSNet.VcConfigurationBase)"> <summary> Build Interface Definition Language files for the given configuration. </summary> <param name="fileNames">The IDL files to build.</param> <param name="projectConfig">The project configuration.</param> <param name="fileConfig">The build configuration.</param> <remarks> TODO: refactor this as we should always get only one element in the <paramref name="fileNames" /> list. Each IDL file should be built with its own file configuration. </remarks> </member> <member name="M:NAnt.VSNet.VcProject.MergeToolSetting(NAnt.VSNet.VcProjectConfiguration,NAnt.VSNet.VcConfigurationBase,System.String,System.String)"> <summary> Merges the specified tool setting of <paramref name="projectConfig" /> with <paramref name="fileConfig" />. </summary> <remarks> The merge is suppressed when the flag $(noinherit) is defined in <paramref name="fileConfig" />. </remarks> </member> <member name="M:NAnt.VSNet.VcProject.GetObjectFile(NAnt.VSNet.VcConfigurationBase)"> <summary> Gets the absolute path to the object file or directory. </summary> <param name="fileConfig">The build configuration</param> <returns> The absolute path to the object file or directory, or </returns> <remarks> We use an absolute path for the object file, otherwise <c>&lt;cl&gt;</c> assumes a location relative to the output directory - not the project directory. </remarks> </member> <member name="M:NAnt.VSNet.VcProject.IsSupported(System.Xml.XmlElement)"> <summary> Returns a value indicating whether the project represented by the specified XML fragment is supported by <see cref="T:NAnt.VSNet.VcProject"/>. </summary> <param name="docElement">XML fragment representing the project to check.</param> <returns> <see langword="true"/> if <see cref="T:NAnt.VSNet.VcProject"/> supports the specified project; otherwise, <see langword="false"/>. </returns> <remarks> <para> A project is identified as as Visual C++ project, if the XML fragment at least has the following information: </para> <code> <![CDATA[ <VisualStudioProject ProjectType="Visual C++" Version="..." ... > </VisualStudioProject> ]]> </code> </remarks> </member> <member name="M:NAnt.VSNet.VcProject.CleanPath(System.String)"> <summary> Removes leading and trailing quotes from the specified path. </summary> <param name="path">The path to clean.</param> </member> <member name="M:NAnt.VSNet.VcProject.GetProductVersion(System.Xml.XmlElement)"> <summary> Returns the Visual Studio product version of the specified project XML fragment. </summary> <param name="docElement">XML fragment representing the project to check.</param> <returns> The Visual Studio product version of the specified project XML fragment. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The product version could not be determined.</para> <para>-or-</para> <para>The product version is not supported.</para> </exception> </member> <member name="F:NAnt.VSNet.VcProject._projectFiles"> <summary> Holds the files included in the project. </summary> <remarks> <para> For project files with no specific file configuration, the relative path is added to the list. </para> <para> For project files that have a specific file configuration, a <see cref="T:System.Collections.Hashtable"/> containing the <see cref="T:NAnt.VSNet.VcFileConfiguration"/> instance representing the file configurations is added. </para> </remarks> </member> <member name="P:NAnt.VSNet.VcProject.Name"> <summary> Gets the name of the Visual C++ project. </summary> </member> <member name="P:NAnt.VSNet.VcProject.Type"> <summary> Gets the type of the project. </summary> <value> The type of the project. </value> </member> <member name="P:NAnt.VSNet.VcProject.ProjectPath"> <summary> Gets the path of the Visual C++ project. </summary> </member> <member name="P:NAnt.VSNet.VcProject.ProjectDirectory"> <summary> Gets the directory containing the VS.NET project. </summary> </member> <member name="P:NAnt.VSNet.VcProject.ProjectLocation"> <summary> Get the location of the project. </summary> <value> <see cref="F:NAnt.VSNet.ProjectLocation.Local"/>. </value> <remarks> For now, we only support local Visual C++ projects. </remarks> </member> <member name="P:NAnt.VSNet.VcProject.ObjectDir"> <summary> Get the directory in which intermediate build output that is not specific to the build configuration will be stored. </summary> <remarks> This is a directory relative to the project directory, named <c>temp\</c>. </remarks> </member> <member name="P:NAnt.VSNet.VcProject.Guid"> <summary> Gets or sets the unique identifier of the Visual C++ project. </summary> </member> <member name="T:NAnt.VSNet.VcProjectConfiguration"> <summary> Represents a Visual C++ project configuration. </summary> </member> <member name="M:NAnt.VSNet.VcProjectConfiguration.ExpandMacro(System.String)"> <summary> Expands the given macro. </summary> <param name="macro">The macro to expand.</param> <returns> The expanded macro. </returns> <exception cref="T:NAnt.Core.BuildException"> <para>The macro is not supported.</para> <para>-or-</para> <para>The macro is not implemented.</para> <para>-or-</para> <para>The macro cannot be expanded.</para> </exception> <exception cref="T:System.NotImplementedException"> <para>Expansion of a given macro is not yet implemented.</para> </exception> </member> <member name="M:NAnt.VSNet.VcProjectConfiguration.GetXmlAttributeValue(System.Xml.XmlNode,System.String)"> <summary> Gets the value of the specified attribute from the specified node. </summary> <param name="xmlNode">The node of which the attribute value should be retrieved.</param> <param name="attributeName">The attribute of which the value should be returned.</param> <returns> The value of the attribute with the specified name or <see langword="null" /> if the attribute does not exist or has no value. </returns> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration._outputPath"> <summary> Holds the output path for this build configuration. </summary> <remarks> Lazy initialized by <see cref="M:NAnt.VSNet.VcProjectConfiguration.Initialize"/>. </remarks> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration._objFiles"> <summary> Holds list of files to link in the order in which they are defined in the project file. </summary> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration._sourceConfigs"> <summary> Holds the C++ sources for each build configuration. </summary> <remarks> The key of the hashtable is a build configuration, and the value is an ArrayList holding the C++ source files for that build configuration. </remarks> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration._rcConfigs"> <summary> Holds the resources for each build configuration. </summary> <remarks> The key of the hashtable is a build configuration, and the value is an ArrayList holding the resources files for that build configuration. </remarks> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration._idlConfigs"> <summary> Holds the IDL files for each build configuration. </summary> <remarks> The key of the hashtable is a build configuration, and the value is an ArrayList holding the IDL files for that build configuration. </remarks> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.CharacterSet"> <summary> Tells the compiler which character set to use. </summary> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.ManagedExtensions"> <summary> Gets a value indicating whether Managed Extensions for C++ are enabled. </summary> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.UseOfMFC"> <summary> Gets a value indicating how MFC is used by the configuration. </summary> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.UseOfATL"> <summary> Gets a value indicating how ATL is used by the configuration. </summary> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.ObjFiles"> <summary> Gets the list of files to link in the order in which they are defined in the project file. </summary> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.SourceConfigs"> <summary> Holds the C++ sources for each build configuration. </summary> <remarks> The key of the hashtable is a build configuration, and the value is an ArrayList holding the C++ source files for that build configuration. </remarks> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.RcConfigs"> <summary> Gets the resources for each build configuration. </summary> <remarks> The key of the hashtable is a build configuration, and the value is an ArrayList holding the resources files for that build configuration. </remarks> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.IdlConfigs"> <summary> Get the IDL files for each build configuration. </summary> <remarks> The key of the hashtable is a build configuration, and the value is an ArrayList holding the IDL files for that build configuration. </remarks> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.TargetPath"> <summary> Gets the target path for usage in macro expansion. </summary> <value> The target path, or a zero-length string if there's no output file for this configuration. </value> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.ObjectDir"> <summary> Get the directory in which intermediate build output will be stored for this configuration. </summary> <remarks> <para> This is a directory relative to the project directory named <c>obj\&lt;configuration name&gt;</c>. </para> <para> <c>.resx</c> and <c>.licx</c> files will only be recompiled if the compiled resource files in the <see cref="P:NAnt.VSNet.VcProjectConfiguration.ObjectDir"/> are not uptodate. </para> </remarks> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.RelativeOutputDir"> <summary> Get the path of the output directory relative to the project directory. </summary> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.IntermediateDir"> <summary> Gets the intermediate directory, specified relative to project directory. </summary> <value> The intermediate directory, specified relative to project directory. </value> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.OutputPath"> <summary> Gets the absolute path for the output file. </summary> <value> The absolute path for the output file, or <see langword="null" /> if there's no output file for this configuration. </value> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.ReferencesPath"> <summary> Gets a comma-separated list of directories to scan for assembly references. </summary> <value> A comma-separated list of directories to scan for assembly references, or <see langword="null" /> if no additional directories should scanned. </value> </member> <member name="T:NAnt.VSNet.VcProjectConfiguration.ConfigurationType"> <summary> The type of output for a given configuration. </summary> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration.ConfigurationType.Makefile"> <summary> A Makefile. </summary> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration.ConfigurationType.Application"> <summary> Application (.exe). </summary> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration.ConfigurationType.DynamicLibrary"> <summary> Dynamic Library (.dll). </summary> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration.ConfigurationType.StaticLibrary"> <summary> Static Library (.lib). </summary> </member> <member name="F:NAnt.VSNet.VcProjectConfiguration.ConfigurationType.Utility"> <summary> Utility. </summary> </member> <member name="P:NAnt.VSNet.VcProjectConfiguration.LinkerConfig.ImportLibrary"> <summary> Gets a <see cref="T:System.IO.FileInfo"/> instance representing the absolute path to the import library to generate. </summary> <value> A <see cref="T:System.IO.FileInfo"/> representing the absolute path to the import library to generate, or <see langword="null"/> if no import library must be generated. </value> </member> <member name="M:NAnt.VSNet.VcProjectReference.IsManaged(NAnt.VSNet.Configuration)"> <summary> Gets a value indicating whether the reference is managed for the specified configuration. </summary> <param name="config">The build configuration of the reference.</param> <returns> <see langword="true" /> if the reference is managed for the specified configuration; otherwise, <see langword="false" />. </returns> </member> <member name="P:NAnt.VSNet.VcWrapperReference.Name"> <summary> Gets the name of the referenced assembly. </summary> <value> The name of the referenced assembly. </value> </member> <member name="P:NAnt.VSNet.VcWrapperReference.WrapperTool"> <summary> Gets the name of the tool that should be used to create the <see cref="P:NAnt.VSNet.VcWrapperReference.WrapperAssembly"/>. </summary> <value> The name of the tool that should be used to create the <see cref="P:NAnt.VSNet.VcWrapperReference.WrapperAssembly"/>. </value> </member> <member name="P:NAnt.VSNet.VcWrapperReference.WrapperAssembly"> <summary> Gets the path of the wrapper assembly. </summary> <value> The path of the wrapper assembly. </value> <remarks> The wrapper assembly is stored in the object directory of the project. </remarks> </member> <member name="P:NAnt.VSNet.VcWrapperReference.PrimaryInteropAssembly"> <summary> Gets the path of the Primary Interop Assembly. </summary> <value> The path of the Primary Interop Assembly, or <see langword="null" /> if not available. </value> </member> <member name="P:NAnt.VSNet.VcWrapperReference.TypeLibVersion"> <summary> Gets the hex version of the type library as defined in the definition of the reference. </summary> <value> The hex version of the type library. </value> <exception cref="T:NAnt.Core.BuildException">The definition of the reference does not contain a "ControlVersion" attribute.</exception> </member> <member name="P:NAnt.VSNet.VcWrapperReference.TypeLibGuid"> <summary> Gets the GUID of the type library as defined in the definition of the reference. </summary> <value> The GUID of the type library. </value> </member> <member name="P:NAnt.VSNet.VcWrapperReference.TypeLibLocale"> <summary> Gets the locale of the type library in hex notation. </summary> <value> The locale of the type library. </value> </member> </members> </doc>
{'content_hash': 'b1a84caed3bb019da5b9343ddd2b06ff', 'timestamp': '', 'source': 'github', 'line_count': 3961, 'max_line_length': 273, 'avg_line_length': 46.28225195657662, 'alnum_prop': 0.5610558355698109, 'repo_name': 'Moily/common-logging', 'id': '8108b824cd0172a0977a2667df6512f85264065c', 'size': '183324', 'binary': False, 'copies': '11', 'ref': 'refs/heads/master', 'path': 'tools/nant/bin/NAnt.VSNetTasks.xml', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '2176'}, {'name': 'C#', 'bytes': '1030227'}, {'name': 'Visual Basic', 'bytes': '294'}]}
github
0
define(function(require, exports, module) { var pc = require('pgui.pagination'), dtp = require('pgui.datetimepicker'), Class = require('class'), sc = require('pgui.shortcuts'); $(function() { var $body = $('body'); pc.setupPaginationControls($body); dtp.setupCalendarControls($body); $('[data-pg-typeahead=true]').each(function() { var typeHeadInput = $(this); require(['pgui.typeahead'], function(pt) { (new pt.PgTypeahead(typeHeadInput)); }) }); require(['pgui.layout'], function(instance){ instance.updatePopupHints($body); }); //if (IsBrowserVersion({msie: 8, opera: 'none'})) //{ if ($('table.pgui-grid.fixed-header').length > 0) { require(["jquery/jquery.fixedtableheader"], function() { if ($.browser.msie) { $('table.grid th.row-selection').width('1%'); } $('table.pgui-grid').fixedtableheader({ headerrowsize: 3, top: 0//$('.navbar.navbar-fixed-top').height() }); }); } //} sc.initializeShortCuts($body); }); });
{'content_hash': '2028255e4efed1f426c0bb601bea22db', 'timestamp': '', 'source': 'github', 'line_count': 44, 'max_line_length': 68, 'avg_line_length': 29.227272727272727, 'alnum_prop': 0.48367029548989116, 'repo_name': 'lbjlvc/Manos-de-Cristo', 'id': '3ffc63227f7f6e9c9d2414941979a4739ced9de8', 'size': '1286', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'generated/components/js/pgui.list-page-main.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '449800'}, {'name': 'JavaScript', 'bytes': '466797'}, {'name': 'PHP', 'bytes': '4786807'}]}
github
0
(function(global) { var ngVer = '@2.0.0-rc.6'; // lock in the angular package version; do not let it float to current! var routerVer = '@3.0.0-rc.2'; // lock router version var formsVer = '@0.3.0'; // lock forms version //map tells the System loader where to look for things var map = { 'app': 'app', '@angular': 'https://npmcdn.com/@angular', // sufficient if we didn't pin the version '@angular/router': 'https://npmcdn.com/@angular/router' + routerVer, '@angular/forms': 'https://npmcdn.com/@angular/forms' + formsVer, 'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api', // get latest 'rxjs': 'https://npmcdn.com/rxjs@5.0.0-beta.11' }; //packages tells the System loader how to load when no filename and/or no extension var packages = { 'app': { main: 'main.js', defaultExtension: 'js' }, 'rxjs': { defaultExtension: 'js' }, 'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' } }; var ngPackageNames = [ 'common', 'compiler', 'core', 'http', 'platform-browser', 'platform-browser-dynamic', 'upgrade' ]; // Add map entries for each angular package // only because we're pinning the version with `ngVer`. ngPackageNames.forEach(function(pkgName) { map['@angular/'+pkgName] = 'https://npmcdn.com/@angular/' + pkgName + ngVer; }); // Add package entries for angular packages ngPackageNames.concat(['forms', 'router', 'router-deprecated']).forEach(function(pkgName) { // Bundled (~40 requests): packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js' }; // Individual files (~300 requests): //packages['@angular/'+pkgName] = { main: 'index.js', defaultExtension: 'js' }; }); var config = { map: map, packages: packages }; System.config(config); })(this);
{'content_hash': 'e8cdd472a026adfacbd4612ade58faeb', 'timestamp': '', 'source': 'github', 'line_count': 58, 'max_line_length': 107, 'avg_line_length': 34.44827586206897, 'alnum_prop': 0.5890890890890891, 'repo_name': 'djapal/angular2-connect4', 'id': 'b88b07083c845d952e7bfa41bcd966773f0472a2', 'size': '1998', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'systemjs.config.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '1275'}, {'name': 'HTML', 'bytes': '934'}, {'name': 'JavaScript', 'bytes': '6039'}, {'name': 'TypeScript', 'bytes': '7247'}]}
github
0
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> DEBUG - 2014-05-16 13:07:32 --> Config Class Initialized DEBUG - 2014-05-16 13:07:32 --> Hooks Class Initialized DEBUG - 2014-05-16 13:07:32 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:07:32 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:07:32 --> URI Class Initialized DEBUG - 2014-05-16 13:07:32 --> Router Class Initialized DEBUG - 2014-05-16 13:07:32 --> No URI present. Default controller set. DEBUG - 2014-05-16 13:07:32 --> Output Class Initialized DEBUG - 2014-05-16 13:07:32 --> Security Class Initialized DEBUG - 2014-05-16 13:07:32 --> Input Class Initialized DEBUG - 2014-05-16 13:07:32 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:07:32 --> Language Class Initialized DEBUG - 2014-05-16 13:07:32 --> Loader Class Initialized DEBUG - 2014-05-16 13:07:32 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:07:32 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:07:32 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:07:32 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:07:32 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Controller Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> Model Class Initialized DEBUG - 2014-05-16 13:07:32 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:07:32 --> File loaded: application/views/home.php DEBUG - 2014-05-16 13:07:32 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:07:32 --> Final output sent to browser DEBUG - 2014-05-16 13:07:32 --> Total execution time: 0.1078 DEBUG - 2014-05-16 13:07:35 --> Config Class Initialized DEBUG - 2014-05-16 13:07:35 --> Hooks Class Initialized DEBUG - 2014-05-16 13:07:35 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:07:35 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:07:35 --> URI Class Initialized DEBUG - 2014-05-16 13:07:35 --> Router Class Initialized ERROR - 2014-05-16 13:07:35 --> 404 Page Not Found --> edit DEBUG - 2014-05-16 13:07:57 --> Config Class Initialized DEBUG - 2014-05-16 13:07:57 --> Hooks Class Initialized DEBUG - 2014-05-16 13:07:57 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:07:57 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:07:57 --> URI Class Initialized DEBUG - 2014-05-16 13:07:57 --> Router Class Initialized DEBUG - 2014-05-16 13:07:57 --> Output Class Initialized DEBUG - 2014-05-16 13:07:57 --> Security Class Initialized DEBUG - 2014-05-16 13:07:57 --> Input Class Initialized DEBUG - 2014-05-16 13:07:57 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:07:57 --> Language Class Initialized DEBUG - 2014-05-16 13:07:57 --> Loader Class Initialized DEBUG - 2014-05-16 13:07:57 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:07:57 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:07:57 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:07:57 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:07:57 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Controller Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> Model Class Initialized DEBUG - 2014-05-16 13:07:57 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:07:57 --> File loaded: application/views/petition/index.php DEBUG - 2014-05-16 13:07:57 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:07:57 --> Final output sent to browser DEBUG - 2014-05-16 13:07:57 --> Total execution time: 0.0711 DEBUG - 2014-05-16 13:08:03 --> Config Class Initialized DEBUG - 2014-05-16 13:08:03 --> Hooks Class Initialized DEBUG - 2014-05-16 13:08:03 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:08:03 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:08:03 --> URI Class Initialized DEBUG - 2014-05-16 13:08:03 --> Router Class Initialized DEBUG - 2014-05-16 13:08:03 --> Output Class Initialized DEBUG - 2014-05-16 13:08:03 --> Security Class Initialized DEBUG - 2014-05-16 13:08:03 --> Input Class Initialized DEBUG - 2014-05-16 13:08:03 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:08:03 --> Language Class Initialized DEBUG - 2014-05-16 13:08:03 --> Loader Class Initialized DEBUG - 2014-05-16 13:08:03 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:08:03 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:08:03 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:08:03 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:08:03 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:08:03 --> Model Class Initialized DEBUG - 2014-05-16 13:08:03 --> Model Class Initialized DEBUG - 2014-05-16 13:08:03 --> Controller Class Initialized DEBUG - 2014-05-16 13:08:03 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:08:03 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:08:03 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:08:03 --> Final output sent to browser DEBUG - 2014-05-16 13:08:03 --> Total execution time: 0.0440 DEBUG - 2014-05-16 13:36:40 --> Config Class Initialized DEBUG - 2014-05-16 13:36:40 --> Hooks Class Initialized DEBUG - 2014-05-16 13:36:40 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:36:40 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:36:40 --> URI Class Initialized DEBUG - 2014-05-16 13:36:40 --> Router Class Initialized DEBUG - 2014-05-16 13:36:40 --> Output Class Initialized DEBUG - 2014-05-16 13:36:40 --> Security Class Initialized DEBUG - 2014-05-16 13:36:40 --> Input Class Initialized DEBUG - 2014-05-16 13:36:40 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:36:40 --> Language Class Initialized DEBUG - 2014-05-16 13:36:40 --> Loader Class Initialized DEBUG - 2014-05-16 13:36:40 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:36:40 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:36:40 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:36:40 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:36:40 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:36:40 --> Model Class Initialized DEBUG - 2014-05-16 13:36:40 --> Model Class Initialized DEBUG - 2014-05-16 13:36:40 --> Controller Class Initialized DEBUG - 2014-05-16 13:39:21 --> Config Class Initialized DEBUG - 2014-05-16 13:39:21 --> Hooks Class Initialized DEBUG - 2014-05-16 13:39:21 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:39:21 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:39:21 --> URI Class Initialized DEBUG - 2014-05-16 13:39:21 --> Router Class Initialized DEBUG - 2014-05-16 13:39:21 --> Output Class Initialized DEBUG - 2014-05-16 13:39:21 --> Security Class Initialized DEBUG - 2014-05-16 13:39:21 --> Input Class Initialized DEBUG - 2014-05-16 13:39:21 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:39:21 --> Language Class Initialized DEBUG - 2014-05-16 13:39:21 --> Loader Class Initialized DEBUG - 2014-05-16 13:39:21 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:39:21 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:39:21 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:39:21 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:39:21 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:39:21 --> Model Class Initialized DEBUG - 2014-05-16 13:39:21 --> Model Class Initialized DEBUG - 2014-05-16 13:39:21 --> Controller Class Initialized ERROR - 2014-05-16 13:39:21 --> Severity: Notice --> Undefined property: stdClass::$local_dir /Users/calvin/Development/PetitionTemplaterV2/application/models/Petition.php 247 DEBUG - 2014-05-16 13:39:21 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:39:21 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:39:21 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:39:21 --> Final output sent to browser DEBUG - 2014-05-16 13:39:21 --> Total execution time: 0.0423 DEBUG - 2014-05-16 13:39:55 --> Config Class Initialized DEBUG - 2014-05-16 13:39:55 --> Hooks Class Initialized DEBUG - 2014-05-16 13:39:55 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:39:55 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:39:55 --> URI Class Initialized DEBUG - 2014-05-16 13:39:55 --> Router Class Initialized DEBUG - 2014-05-16 13:39:55 --> Output Class Initialized DEBUG - 2014-05-16 13:39:55 --> Security Class Initialized DEBUG - 2014-05-16 13:39:55 --> Input Class Initialized DEBUG - 2014-05-16 13:39:55 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:39:55 --> Language Class Initialized DEBUG - 2014-05-16 13:39:55 --> Loader Class Initialized DEBUG - 2014-05-16 13:39:55 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:39:55 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:39:55 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:39:55 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:39:55 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:39:55 --> Model Class Initialized DEBUG - 2014-05-16 13:39:55 --> Model Class Initialized DEBUG - 2014-05-16 13:39:55 --> Controller Class Initialized DEBUG - 2014-05-16 13:39:55 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:39:55 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:39:55 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:39:55 --> Final output sent to browser DEBUG - 2014-05-16 13:39:55 --> Total execution time: 0.0442 DEBUG - 2014-05-16 13:40:29 --> Config Class Initialized DEBUG - 2014-05-16 13:40:29 --> Hooks Class Initialized DEBUG - 2014-05-16 13:40:29 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:40:29 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:40:29 --> URI Class Initialized DEBUG - 2014-05-16 13:40:29 --> Router Class Initialized DEBUG - 2014-05-16 13:40:29 --> Output Class Initialized DEBUG - 2014-05-16 13:40:29 --> Security Class Initialized DEBUG - 2014-05-16 13:40:29 --> Input Class Initialized DEBUG - 2014-05-16 13:40:29 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:40:29 --> Language Class Initialized DEBUG - 2014-05-16 13:40:29 --> Loader Class Initialized DEBUG - 2014-05-16 13:40:29 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:40:29 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:40:29 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:40:29 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:40:29 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:40:29 --> Model Class Initialized DEBUG - 2014-05-16 13:40:29 --> Model Class Initialized DEBUG - 2014-05-16 13:40:29 --> Controller Class Initialized DEBUG - 2014-05-16 13:40:29 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:40:29 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:40:29 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:40:29 --> Final output sent to browser DEBUG - 2014-05-16 13:40:29 --> Total execution time: 0.0433 DEBUG - 2014-05-16 13:40:37 --> Config Class Initialized DEBUG - 2014-05-16 13:40:37 --> Hooks Class Initialized DEBUG - 2014-05-16 13:40:37 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:40:37 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:40:37 --> URI Class Initialized DEBUG - 2014-05-16 13:40:37 --> Router Class Initialized DEBUG - 2014-05-16 13:40:37 --> Output Class Initialized DEBUG - 2014-05-16 13:40:37 --> Security Class Initialized DEBUG - 2014-05-16 13:40:37 --> Input Class Initialized DEBUG - 2014-05-16 13:40:37 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:40:37 --> Language Class Initialized DEBUG - 2014-05-16 13:40:37 --> Loader Class Initialized DEBUG - 2014-05-16 13:40:37 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:40:37 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:40:37 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:40:37 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:40:37 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:40:37 --> Model Class Initialized DEBUG - 2014-05-16 13:40:37 --> Model Class Initialized DEBUG - 2014-05-16 13:40:37 --> Controller Class Initialized DEBUG - 2014-05-16 13:40:37 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:40:37 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:40:37 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:40:37 --> Final output sent to browser DEBUG - 2014-05-16 13:40:37 --> Total execution time: 0.0423 DEBUG - 2014-05-16 13:41:14 --> Config Class Initialized DEBUG - 2014-05-16 13:41:14 --> Hooks Class Initialized DEBUG - 2014-05-16 13:41:14 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:41:14 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:41:14 --> URI Class Initialized DEBUG - 2014-05-16 13:41:14 --> Router Class Initialized DEBUG - 2014-05-16 13:41:14 --> Output Class Initialized DEBUG - 2014-05-16 13:41:14 --> Security Class Initialized DEBUG - 2014-05-16 13:41:14 --> Input Class Initialized DEBUG - 2014-05-16 13:41:14 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:41:14 --> Language Class Initialized DEBUG - 2014-05-16 13:41:14 --> Loader Class Initialized DEBUG - 2014-05-16 13:41:14 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:41:14 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:41:14 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:41:14 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:41:14 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:41:14 --> Model Class Initialized DEBUG - 2014-05-16 13:41:14 --> Model Class Initialized DEBUG - 2014-05-16 13:41:14 --> Controller Class Initialized DEBUG - 2014-05-16 13:41:14 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:41:14 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:41:14 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:41:14 --> Final output sent to browser DEBUG - 2014-05-16 13:41:14 --> Total execution time: 0.0431 DEBUG - 2014-05-16 13:41:24 --> Config Class Initialized DEBUG - 2014-05-16 13:41:24 --> Hooks Class Initialized DEBUG - 2014-05-16 13:41:24 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:41:24 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:41:24 --> URI Class Initialized DEBUG - 2014-05-16 13:41:24 --> Router Class Initialized DEBUG - 2014-05-16 13:41:24 --> Output Class Initialized DEBUG - 2014-05-16 13:41:24 --> Security Class Initialized DEBUG - 2014-05-16 13:41:24 --> Input Class Initialized DEBUG - 2014-05-16 13:41:24 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:41:24 --> Language Class Initialized DEBUG - 2014-05-16 13:41:24 --> Loader Class Initialized DEBUG - 2014-05-16 13:41:24 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:41:24 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:41:24 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:41:24 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:41:24 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:41:24 --> Model Class Initialized DEBUG - 2014-05-16 13:41:24 --> Model Class Initialized DEBUG - 2014-05-16 13:41:24 --> Controller Class Initialized DEBUG - 2014-05-16 13:41:24 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:41:33 --> Config Class Initialized DEBUG - 2014-05-16 13:41:33 --> Hooks Class Initialized DEBUG - 2014-05-16 13:41:33 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:41:33 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:41:33 --> URI Class Initialized DEBUG - 2014-05-16 13:41:33 --> Router Class Initialized DEBUG - 2014-05-16 13:41:33 --> Output Class Initialized DEBUG - 2014-05-16 13:41:33 --> Security Class Initialized DEBUG - 2014-05-16 13:41:33 --> Input Class Initialized DEBUG - 2014-05-16 13:41:33 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:41:33 --> Language Class Initialized DEBUG - 2014-05-16 13:41:33 --> Loader Class Initialized DEBUG - 2014-05-16 13:41:33 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:41:33 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:41:33 --> Model Class Initialized DEBUG - 2014-05-16 13:41:33 --> Model Class Initialized DEBUG - 2014-05-16 13:41:33 --> Controller Class Initialized DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:41:33 --> Final output sent to browser DEBUG - 2014-05-16 13:41:33 --> Total execution time: 0.0453 DEBUG - 2014-05-16 13:41:33 --> Config Class Initialized DEBUG - 2014-05-16 13:41:33 --> Hooks Class Initialized DEBUG - 2014-05-16 13:41:33 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:41:33 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:41:33 --> URI Class Initialized DEBUG - 2014-05-16 13:41:33 --> Router Class Initialized DEBUG - 2014-05-16 13:41:33 --> Output Class Initialized DEBUG - 2014-05-16 13:41:33 --> Security Class Initialized DEBUG - 2014-05-16 13:41:33 --> Input Class Initialized DEBUG - 2014-05-16 13:41:33 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:41:33 --> Language Class Initialized DEBUG - 2014-05-16 13:41:33 --> Loader Class Initialized DEBUG - 2014-05-16 13:41:33 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:41:33 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:41:33 --> Model Class Initialized DEBUG - 2014-05-16 13:41:33 --> Model Class Initialized DEBUG - 2014-05-16 13:41:33 --> Controller Class Initialized ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Undefined index: clientID /Users/calvin/Development/PetitionTemplaterV2/application/models/Petition.php 83 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Trying to get property of non-object /Users/calvin/Development/PetitionTemplaterV2/application/models/Client.php 114 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Undefined index: templateID /Users/calvin/Development/PetitionTemplaterV2/application/models/Petition.php 84 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Trying to get property of non-object /Users/calvin/Development/PetitionTemplaterV2/application/models/Template.php 44 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Trying to get property of non-object /Users/calvin/Development/PetitionTemplaterV2/application/models/Petition.php 247 DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:41:33 --> Final output sent to browser DEBUG - 2014-05-16 13:41:33 --> Total execution time: 0.0716 DEBUG - 2014-05-16 13:41:33 --> Config Class Initialized DEBUG - 2014-05-16 13:41:33 --> Hooks Class Initialized DEBUG - 2014-05-16 13:41:33 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:41:33 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:41:33 --> URI Class Initialized DEBUG - 2014-05-16 13:41:33 --> Router Class Initialized DEBUG - 2014-05-16 13:41:33 --> Output Class Initialized DEBUG - 2014-05-16 13:41:33 --> Security Class Initialized DEBUG - 2014-05-16 13:41:33 --> Input Class Initialized DEBUG - 2014-05-16 13:41:33 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:41:33 --> Language Class Initialized DEBUG - 2014-05-16 13:41:33 --> Loader Class Initialized DEBUG - 2014-05-16 13:41:33 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:41:33 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:41:33 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:41:33 --> Model Class Initialized DEBUG - 2014-05-16 13:41:33 --> Model Class Initialized DEBUG - 2014-05-16 13:41:33 --> Controller Class Initialized ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Undefined index: clientID /Users/calvin/Development/PetitionTemplaterV2/application/models/Petition.php 83 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Trying to get property of non-object /Users/calvin/Development/PetitionTemplaterV2/application/models/Client.php 114 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Undefined index: templateID /Users/calvin/Development/PetitionTemplaterV2/application/models/Petition.php 84 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Trying to get property of non-object /Users/calvin/Development/PetitionTemplaterV2/application/models/Template.php 44 ERROR - 2014-05-16 13:41:33 --> Severity: Notice --> Trying to get property of non-object /Users/calvin/Development/PetitionTemplaterV2/application/models/Petition.php 247 DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:41:33 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:41:33 --> Final output sent to browser DEBUG - 2014-05-16 13:41:33 --> Total execution time: 0.0480 DEBUG - 2014-05-16 13:42:23 --> Config Class Initialized DEBUG - 2014-05-16 13:42:23 --> Hooks Class Initialized DEBUG - 2014-05-16 13:42:23 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:42:23 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:42:23 --> URI Class Initialized DEBUG - 2014-05-16 13:42:23 --> Router Class Initialized DEBUG - 2014-05-16 13:42:23 --> Output Class Initialized DEBUG - 2014-05-16 13:42:23 --> Security Class Initialized DEBUG - 2014-05-16 13:42:23 --> Input Class Initialized DEBUG - 2014-05-16 13:42:23 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:42:23 --> Language Class Initialized DEBUG - 2014-05-16 13:42:23 --> Loader Class Initialized DEBUG - 2014-05-16 13:42:23 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:42:23 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:42:23 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:42:23 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:42:23 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:42:23 --> Model Class Initialized DEBUG - 2014-05-16 13:42:23 --> Model Class Initialized DEBUG - 2014-05-16 13:42:23 --> Controller Class Initialized DEBUG - 2014-05-16 13:42:23 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:42:23 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:42:23 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:42:23 --> Final output sent to browser DEBUG - 2014-05-16 13:42:23 --> Total execution time: 0.0446 DEBUG - 2014-05-16 13:44:27 --> Config Class Initialized DEBUG - 2014-05-16 13:44:27 --> Hooks Class Initialized DEBUG - 2014-05-16 13:44:27 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:44:27 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:44:27 --> URI Class Initialized DEBUG - 2014-05-16 13:44:27 --> Router Class Initialized DEBUG - 2014-05-16 13:44:27 --> Output Class Initialized DEBUG - 2014-05-16 13:44:27 --> Security Class Initialized DEBUG - 2014-05-16 13:44:27 --> Input Class Initialized DEBUG - 2014-05-16 13:44:27 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:44:27 --> Language Class Initialized DEBUG - 2014-05-16 13:44:27 --> Loader Class Initialized DEBUG - 2014-05-16 13:44:27 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:44:27 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:44:27 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:44:27 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:44:27 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:44:27 --> Model Class Initialized DEBUG - 2014-05-16 13:44:27 --> Model Class Initialized DEBUG - 2014-05-16 13:44:27 --> Controller Class Initialized DEBUG - 2014-05-16 13:44:27 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:44:27 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:44:27 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:44:27 --> Final output sent to browser DEBUG - 2014-05-16 13:44:27 --> Total execution time: 0.0436 DEBUG - 2014-05-16 13:44:40 --> Config Class Initialized DEBUG - 2014-05-16 13:44:40 --> Hooks Class Initialized DEBUG - 2014-05-16 13:44:40 --> Utf8 Class Initialized DEBUG - 2014-05-16 13:44:40 --> UTF-8 Support Enabled DEBUG - 2014-05-16 13:44:40 --> URI Class Initialized DEBUG - 2014-05-16 13:44:40 --> Router Class Initialized DEBUG - 2014-05-16 13:44:40 --> Output Class Initialized DEBUG - 2014-05-16 13:44:40 --> Security Class Initialized DEBUG - 2014-05-16 13:44:40 --> Input Class Initialized DEBUG - 2014-05-16 13:44:40 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 13:44:40 --> Language Class Initialized DEBUG - 2014-05-16 13:44:40 --> Loader Class Initialized DEBUG - 2014-05-16 13:44:40 --> Helper loaded: url_helper DEBUG - 2014-05-16 13:44:40 --> Helper loaded: form_helper DEBUG - 2014-05-16 13:44:40 --> Helper loaded: html_helper DEBUG - 2014-05-16 13:44:40 --> Helper loaded: directory_helper DEBUG - 2014-05-16 13:44:40 --> Database Driver Class Initialized DEBUG - 2014-05-16 13:44:40 --> Model Class Initialized DEBUG - 2014-05-16 13:44:40 --> Model Class Initialized DEBUG - 2014-05-16 13:44:40 --> Controller Class Initialized DEBUG - 2014-05-16 13:44:40 --> File loaded: application/views/header.php DEBUG - 2014-05-16 13:44:40 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 13:44:40 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 13:44:40 --> Final output sent to browser DEBUG - 2014-05-16 13:44:40 --> Total execution time: 0.0432 DEBUG - 2014-05-16 14:18:17 --> Config Class Initialized DEBUG - 2014-05-16 14:18:17 --> Hooks Class Initialized DEBUG - 2014-05-16 14:18:17 --> Utf8 Class Initialized DEBUG - 2014-05-16 14:18:17 --> UTF-8 Support Enabled DEBUG - 2014-05-16 14:18:17 --> URI Class Initialized DEBUG - 2014-05-16 14:18:17 --> Router Class Initialized DEBUG - 2014-05-16 14:18:17 --> Output Class Initialized DEBUG - 2014-05-16 14:18:17 --> Security Class Initialized DEBUG - 2014-05-16 14:18:17 --> Input Class Initialized DEBUG - 2014-05-16 14:18:17 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 14:18:17 --> Language Class Initialized DEBUG - 2014-05-16 14:18:17 --> Loader Class Initialized DEBUG - 2014-05-16 14:18:17 --> Helper loaded: url_helper DEBUG - 2014-05-16 14:18:17 --> Helper loaded: form_helper DEBUG - 2014-05-16 14:18:17 --> Helper loaded: html_helper DEBUG - 2014-05-16 14:18:17 --> Helper loaded: directory_helper DEBUG - 2014-05-16 14:18:17 --> Database Driver Class Initialized DEBUG - 2014-05-16 14:18:17 --> Model Class Initialized DEBUG - 2014-05-16 14:18:17 --> Model Class Initialized DEBUG - 2014-05-16 14:18:17 --> Controller Class Initialized DEBUG - 2014-05-16 14:18:17 --> File loaded: application/views/header.php DEBUG - 2014-05-16 14:18:17 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 14:18:17 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 14:18:17 --> Final output sent to browser DEBUG - 2014-05-16 14:18:17 --> Total execution time: 0.1061 DEBUG - 2014-05-16 14:19:07 --> Config Class Initialized DEBUG - 2014-05-16 14:19:07 --> Hooks Class Initialized DEBUG - 2014-05-16 14:19:07 --> Utf8 Class Initialized DEBUG - 2014-05-16 14:19:07 --> UTF-8 Support Enabled DEBUG - 2014-05-16 14:19:07 --> URI Class Initialized DEBUG - 2014-05-16 14:19:07 --> Router Class Initialized DEBUG - 2014-05-16 14:19:07 --> Output Class Initialized DEBUG - 2014-05-16 14:19:07 --> Security Class Initialized DEBUG - 2014-05-16 14:19:07 --> Input Class Initialized DEBUG - 2014-05-16 14:19:07 --> Global POST and COOKIE data sanitized DEBUG - 2014-05-16 14:19:07 --> Language Class Initialized DEBUG - 2014-05-16 14:19:07 --> Loader Class Initialized DEBUG - 2014-05-16 14:19:07 --> Helper loaded: url_helper DEBUG - 2014-05-16 14:19:07 --> Helper loaded: form_helper DEBUG - 2014-05-16 14:19:07 --> Helper loaded: html_helper DEBUG - 2014-05-16 14:19:07 --> Helper loaded: directory_helper DEBUG - 2014-05-16 14:19:07 --> Database Driver Class Initialized DEBUG - 2014-05-16 14:19:07 --> Model Class Initialized DEBUG - 2014-05-16 14:19:07 --> Model Class Initialized DEBUG - 2014-05-16 14:19:07 --> Controller Class Initialized DEBUG - 2014-05-16 14:19:07 --> File loaded: application/views/header.php DEBUG - 2014-05-16 14:19:07 --> File loaded: application/views/petition/edit.php DEBUG - 2014-05-16 14:19:07 --> File loaded: application/views/footer.php DEBUG - 2014-05-16 14:19:07 --> Final output sent to browser DEBUG - 2014-05-16 14:19:07 --> Total execution time: 0.0421
{'content_hash': '72957caaf4789d6acef5f5a0533095e7', 'timestamp': '', 'source': 'github', 'line_count': 508, 'max_line_length': 176, 'avg_line_length': 62.44881889763779, 'alnum_prop': 0.71954986760812, 'repo_name': 'calvindcw/PetitionTemplater', 'id': 'a864fe9e240fb8a4949cd4f8b9937ea772fd8be3', 'size': '31724', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'application/logs/log-2014-05-16.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '131645'}, {'name': 'JavaScript', 'bytes': '197664'}, {'name': 'PHP', 'bytes': '7233234'}, {'name': 'Perl', 'bytes': '13'}, {'name': 'Shell', 'bytes': '960'}]}
github
0
// .NAME vtkAVSucdReader - reads a dataset in AVS "UCD" format // .SECTION Description // vtkAVSucdReader creates an unstructured grid dataset. It reads binary or // ASCII files stored in UCD format, with optional data stored at the nodes // or at the cells of the model. A cell-based fielddata stores the material // id. The class can automatically detect the endian-ness of the binary files. // .SECTION Thanks // Thanks to Guenole Harel and Emmanuel Colin (Supelec engineering school, // France) and Jean M. Favre (CSCS, Switzerland) who co-developed this class. // Thanks to Isabelle Surin (isabelle.surin at cea.fr, CEA-DAM, France) who // supervised the internship of the first two authors. Thanks to Daniel // Aguilera (daniel.aguilera at cea.fr, CEA-DAM, France) who contributed code // and advice. Please address all comments to Jean Favre (jfavre at cscs.ch) // .SECTION See Also // vtkGAMBITReader #ifndef __vtkAVSucdReader_h #define __vtkAVSucdReader_h #include "vtkIOGeometryExport.h" // For export macro #include "vtkUnstructuredGridAlgorithm.h" class vtkIntArray; class vtkFloatArray; class vtkIdTypeArray; class vtkDataArraySelection; class VTKIOGEOMETRY_EXPORT vtkAVSucdReader : public vtkUnstructuredGridAlgorithm { public: static vtkAVSucdReader *New(); vtkTypeMacro(vtkAVSucdReader,vtkUnstructuredGridAlgorithm); void PrintSelf(ostream& os, vtkIndent indent); // Description: // Specify file name of AVS UCD datafile to read vtkSetStringMacro(FileName); vtkGetStringMacro(FileName); // Description: // Is the file to be read written in binary format (as opposed to ascii). vtkSetMacro(BinaryFile, int); vtkGetMacro(BinaryFile, int); vtkBooleanMacro(BinaryFile, int); // Description: // Get the total number of cells. vtkGetMacro(NumberOfCells,int); // Description: // Get the total number of nodes. vtkGetMacro(NumberOfNodes,int); // Description: // Get the number of data fields at the nodes. vtkGetMacro(NumberOfNodeFields,int); // Description: // Get the number of data fields at the cell centers. vtkGetMacro(NumberOfCellFields,int); // Description: // Get the number of data fields for the model. Unused because VTK // has no methods for it. vtkGetMacro(NumberOfFields,int); // Description: // Get the number of data components at the nodes and cells. vtkGetMacro(NumberOfNodeComponents,int); vtkGetMacro(NumberOfCellComponents,int); // Description: // Set/Get the endian-ness of the binary file. void SetByteOrderToBigEndian(); void SetByteOrderToLittleEndian(); const char *GetByteOrderAsString(); vtkSetMacro(ByteOrder, int); vtkGetMacro(ByteOrder, int); // Description: // The following methods allow selective reading of solutions fields. by // default, ALL data fields are the nodes and cells are read, but this can // be modified. int GetNumberOfPointArrays(); int GetNumberOfCellArrays(); const char* GetPointArrayName(int index); const char* GetCellArrayName(int index); int GetPointArrayStatus(const char* name); int GetCellArrayStatus(const char* name); void SetPointArrayStatus(const char* name, int status); void SetCellArrayStatus(const char* name, int status); void DisableAllCellArrays(); void EnableAllCellArrays(); void DisableAllPointArrays(); void EnableAllPointArrays(); // get min and max value for the index-th value of a cell component // index varies from 0 to (veclen - 1) void GetCellDataRange(int cellComp, int index, float *min, float *max); // get min and max value for the index-th value of a node component // index varies from 0 to (veclen - 1) void GetNodeDataRange(int nodeComp, int index, float *min, float *max); protected: vtkAVSucdReader(); ~vtkAVSucdReader(); int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); char *FileName; int BinaryFile; int NumberOfNodes; int NumberOfCells; int NumberOfNodeFields; int NumberOfNodeComponents; int NumberOfCellComponents; int NumberOfCellFields; int NumberOfFields; int NlistNodes; ifstream *FileStream; vtkDataArraySelection* PointDataArraySelection; vtkDataArraySelection* CellDataArraySelection; int DecrementNodeIds; int ByteOrder; int GetLabel(char *string, int number, char *label); //BTX enum { FILE_BIG_ENDIAN=0, FILE_LITTLE_ENDIAN=1 }; enum UCDCell_type { PT = 0, LINE = 1, TRI = 2, QUAD = 3, TET = 4, PYR = 5, PRISM = 6, HEX = 7 }; struct DataInfo { long foffset; // offset in binary file int veclen; // number of components in the node or cell variable float min[3]; // pre-calculated data minima (max size 3 for vectors) float max[3]; // pre-calculated data maxima (max size 3 for vectors) }; //ETX DataInfo *NodeDataInfo; DataInfo *CellDataInfo; private: void ReadFile(vtkUnstructuredGrid *output); void ReadGeometry(vtkUnstructuredGrid *output); void ReadNodeData(vtkUnstructuredGrid *output); void ReadCellData(vtkUnstructuredGrid *output); int ReadFloatBlock(int n, float *block); int ReadIntBlock(int n, int *block); void ReadXYZCoords(vtkFloatArray *coords); void ReadBinaryCellTopology(vtkIntArray *material, int *types, vtkIdTypeArray *listcells); void ReadASCIICellTopology(vtkIntArray *material, vtkUnstructuredGrid *output); vtkAVSucdReader(const vtkAVSucdReader&); // Not implemented. void operator=(const vtkAVSucdReader&); // Not implemented. }; #endif
{'content_hash': '6c6f2d595c8ae587a7669c2c97ff5ef3', 'timestamp': '', 'source': 'github', 'line_count': 182, 'max_line_length': 92, 'avg_line_length': 31.071428571428573, 'alnum_prop': 0.7352785145888594, 'repo_name': 'cjh1/vtkmodular', 'id': '8b04b1fd6a0e9171ee442b8ee01017d1e172d0a5', 'size': '6240', 'binary': False, 'copies': '1', 'ref': 'refs/heads/modular-no-vtk4-compat', 'path': 'IO/Geometry/vtkAVSucdReader.h', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Assembly', 'bytes': '37780'}, {'name': 'C', 'bytes': '43497387'}, {'name': 'C++', 'bytes': '45441884'}, {'name': 'Objective-C', 'bytes': '96778'}, {'name': 'Perl', 'bytes': '174808'}, {'name': 'Prolog', 'bytes': '4746'}, {'name': 'Python', 'bytes': '406375'}, {'name': 'Shell', 'bytes': '11229'}, {'name': 'Tcl', 'bytes': '2383'}]}
github
0
@implementation GP_LinkedQueue @end
{'content_hash': 'd60a3078eb426cdb7bf363a638bfd4d8', 'timestamp': '', 'source': 'github', 'line_count': 3, 'max_line_length': 30, 'avg_line_length': 12.333333333333334, 'alnum_prop': 0.8108108108108109, 'repo_name': 'yangboz/TheRealBishop', 'id': '54f8d2b62ae20e5fa623eec2657d13dda532e6d4', 'size': '209', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'Non-ARC/TheRealBishop/TheRealBishop/com/lookbackon/ds/GP_LinkedQueue.m', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '20912'}, {'name': 'C++', 'bytes': '3787'}, {'name': 'Mercury', 'bytes': '10826'}, {'name': 'Objective-C', 'bytes': '197759'}, {'name': 'Swift', 'bytes': '19107'}]}
github
0
/** * @author Oleg V. Khaschansky * */ package org.apache.harmony.awt.gl.font; import java.util.HashMap; import java.util.ArrayList; import org.apache.harmony.awt.internal.nls.Messages; import com.google.code.appengine.awt.Font; import com.google.code.appengine.awt.font.GraphicAttribute; import com.google.code.appengine.awt.font.LineMetrics; /** * This class operates with an arbitrary text string which can include * any number of style, font and direction runs. It is responsible for computation * of the text metrics, such as ascent, descent, leading and advance. Actually, * each text run segment contains logic which allows it to compute its own metrics and * responsibility of this class is to combine metrics for all segments included in the text, * managed by the associated TextRunBreaker object. */ public class TextMetricsCalculator { TextRunBreaker breaker; // Associated run breaker // Metrics float ascent = 0; float descent = 0; float leading = 0; float advance = 0; private float baselineOffsets[]; int baselineIndex; public TextMetricsCalculator(TextRunBreaker breaker) { this.breaker = breaker; checkBaselines(); } /** * Returns either values cached by checkBaselines method or reasonable * values for the TOP and BOTTOM alignments. * @param baselineIndex - baseline index * @return baseline offset */ float getBaselineOffset(int baselineIndex) { if (baselineIndex >= 0) { return baselineOffsets[baselineIndex]; } else if (baselineIndex == GraphicAttribute.BOTTOM_ALIGNMENT) { return descent; } else if (baselineIndex == GraphicAttribute.TOP_ALIGNMENT) { return -ascent; } else { // awt.3F=Invalid baseline index throw new IllegalArgumentException(Messages.getString("awt.3F")); //$NON-NLS-1$ } } public float[] getBaselineOffsets() { float ret[] = new float[baselineOffsets.length]; System.arraycopy(baselineOffsets, 0, ret, 0, baselineOffsets.length); return ret; } /** * Take baseline offsets from the first font or graphic attribute * and normalizes them, than caches the results. */ public void checkBaselines() { // Take baseline offsets of the first font and normalize them HashMap<Integer, Object> fonts = breaker.fonts; Object val = fonts.get(new Integer(0)); if (val instanceof Font) { Font firstFont = (Font) val; LineMetrics lm = firstFont.getLineMetrics(breaker.text, 0, 1, breaker.frc); baselineOffsets = lm.getBaselineOffsets(); baselineIndex = lm.getBaselineIndex(); } else if (val instanceof GraphicAttribute) { // Get first graphic attribute and use it GraphicAttribute ga = (GraphicAttribute) val; int align = ga.getAlignment(); if ( align == GraphicAttribute.TOP_ALIGNMENT || align == GraphicAttribute.BOTTOM_ALIGNMENT ) { baselineIndex = GraphicAttribute.ROMAN_BASELINE; } else { baselineIndex = align; } baselineOffsets = new float[3]; baselineOffsets[0] = 0; baselineOffsets[1] = (ga.getDescent() - ga.getAscent()) / 2.f; baselineOffsets[2] = -ga.getAscent(); } else { // Use defaults - Roman baseline and zero offsets baselineIndex = GraphicAttribute.ROMAN_BASELINE; baselineOffsets = new float[3]; } // Normalize offsets if needed if (baselineOffsets[baselineIndex] != 0) { float baseOffset = baselineOffsets[baselineIndex]; for (int i = 0; i < baselineOffsets.length; i++) { baselineOffsets[i] -= baseOffset; } } } /** * Computes metrics for the text managed by the associated TextRunBreaker */ void computeMetrics() { ArrayList<TextRunSegment> segments = breaker.runSegments; float maxHeight = 0; float maxHeightLeading = 0; for (int i = 0; i < segments.size(); i++) { TextRunSegment segment = segments.get(i); BasicMetrics metrics = segment.metrics; int baseline = metrics.baseLineIndex; if (baseline >= 0) { float baselineOffset = baselineOffsets[metrics.baseLineIndex]; float fixedDescent = metrics.descent + baselineOffset; ascent = Math.max(ascent, metrics.ascent - baselineOffset); descent = Math.max(descent, fixedDescent); leading = Math.max(leading, fixedDescent + metrics.leading); } else { // Position is not fixed by the baseline, need sum of ascent and descent float height = metrics.ascent + metrics.descent; maxHeight = Math.max(maxHeight, height); maxHeightLeading = Math.max(maxHeightLeading, height + metrics.leading); } } // Need to increase sizes for graphics? if (maxHeightLeading != 0) { descent = Math.max(descent, maxHeight - ascent); leading = Math.max(leading, maxHeightLeading - ascent); } // Normalize leading leading -= descent; BasicMetrics currMetrics; float currAdvance = 0; for (int i = 0; i < segments.size(); i++) { TextRunSegment segment = segments.get(breaker.getSegmentFromVisualOrder(i)); currMetrics = segment.metrics; segment.y = getBaselineOffset(currMetrics.baseLineIndex) + currMetrics.superScriptOffset; segment.x = currAdvance; currAdvance += segment.getAdvance(); } advance = currAdvance; } /** * Computes metrics and creates BasicMetrics object from them * @return basic metrics */ public BasicMetrics createMetrics() { computeMetrics(); return new BasicMetrics(this); } /** * Corrects advance after justification. Gets BasicMetrics object * and updates advance stored into it. * @param metrics - metrics with outdated advance which should be corrected */ public void correctAdvance(BasicMetrics metrics) { ArrayList<TextRunSegment> segments = breaker.runSegments; TextRunSegment segment = segments.get(breaker .getSegmentFromVisualOrder(segments.size() - 1)); advance = segment.x + segment.getAdvance(); metrics.advance = advance; } }
{'content_hash': '238c93c8b0819b17b927d5fd31869f6d', 'timestamp': '', 'source': 'github', 'line_count': 195, 'max_line_length': 93, 'avg_line_length': 35.3948717948718, 'alnum_prop': 0.6027238481599536, 'repo_name': 'mike10004/appengine-imaging', 'id': '30a7a8921b8eaaba4b82d96c15a57c06c444a323', 'size': '7729', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'gaecompat-awt-imaging/src/awt/org/apache/harmony/awt/gl/font/TextMetricsCalculator.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '9237486'}]}
github
0
#region License Header #endregion License Header using Quantler.Broker.Model; using Quantler.Data; using System; namespace Quantler.Orders.FillModels { /// <summary> /// Fill or kill (FOK) is a type of time-in-force designation used in securities trading that instructs a /// brokerage to execute a transaction immediately and completely or not at all. This type of order is most /// likely to be used by active traders and is usually for a large quantity of stock. The order must be filled in /// its entirety or canceled (killed). /// </summary> public class FillOrKillFillModel : ImmediateFillBehaviour { #region Public Methods /// <summary> /// Fill order, if possible /// </summary> /// <param name="broker">Associated broker model</param> /// <param name="datapoint">Currently received data point</param> /// <param name="pendingorder">Pending order to check for filling</param> /// <param name="highliquidfill">If true, size of ticks are not taken in to account</param> /// <returns></returns> /// <exception cref="NotImplementedException"></exception> public override Fill FillOrder(BrokerModel broker, DataPoint datapoint, PendingOrder pendingorder, bool highliquidfill) { throw new NotImplementedException(); } #endregion Public Methods } }
{'content_hash': '1420302f4512ae91dcd3e5890511aeb1', 'timestamp': '', 'source': 'github', 'line_count': 39, 'max_line_length': 127, 'avg_line_length': 36.35897435897436, 'alnum_prop': 0.6713681241184767, 'repo_name': 'Quantler/Core', 'id': 'f32620f7b370d9e13e75f29fc04f629eaa74386f', 'size': '2073', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Quantler/Orders/FillModels/FillOrKillFillModel.cs', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C#', 'bytes': '3080408'}, {'name': 'Python', 'bytes': '15858'}]}
github
0
FN="phastCons100way.UCSC.hg19_3.7.2.tar.gz" URLS=( "https://bioconductor.org/packages/3.14/data/annotation/src/contrib/phastCons100way.UCSC.hg19_3.7.2.tar.gz" "https://bioarchive.galaxyproject.org/phastCons100way.UCSC.hg19_3.7.2.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-phastcons100way.ucsc.hg19/bioconductor-phastcons100way.ucsc.hg19_3.7.2_src_all.tar.gz" ) MD5="65aa706a567f7e328dbba0095f995cf1" # Use a staging area in the conda dir rather than temp dirs, both to avoid # permission issues as well as to have things downloaded in a predictable # manner. STAGING=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM mkdir -p $STAGING TARBALL=$STAGING/$FN SUCCESS=0 for URL in ${URLS[@]}; do curl -L $URL > $TARBALL [[ $? == 0 ]] || continue # Platform-specific md5sum checks. if [[ $(uname -s) == "Linux" ]]; then if md5sum -c <<<"$MD5 $TARBALL"; then SUCCESS=1 break fi else if [[ $(uname -s) == "Darwin" ]]; then if [[ $(md5 $TARBALL | cut -f4 -d " ") == "$MD5" ]]; then SUCCESS=1 break fi fi fi done if [[ $SUCCESS != 1 ]]; then echo "ERROR: post-link.sh was unable to download any of the following URLs with the md5sum $MD5:" printf '%s\n' "${URLS[@]}" exit 1 fi # Install and clean up R CMD INSTALL --library=$PREFIX/lib/R/library $TARBALL rm $TARBALL rmdir $STAGING
{'content_hash': '2223b82de85068d78d81e8d1ad01734a', 'timestamp': '', 'source': 'github', 'line_count': 45, 'max_line_length': 143, 'avg_line_length': 30.31111111111111, 'alnum_prop': 0.6766862170087976, 'repo_name': 'npavlovikj/bioconda-recipes', 'id': 'ce5662cbb8194112beddfe4ca41480e107838f1e', 'size': '1376', 'binary': False, 'copies': '5', 'ref': 'refs/heads/master', 'path': 'recipes/bioconductor-phastcons100way.ucsc.hg19/post-link.sh', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '3356'}, {'name': 'C', 'bytes': '154'}, {'name': 'CMake', 'bytes': '18139'}, {'name': 'Groovy', 'bytes': '1725'}, {'name': 'ImageJ Macro', 'bytes': '185'}, {'name': 'Perl', 'bytes': '47693'}, {'name': 'Python', 'bytes': '497800'}, {'name': 'Raku', 'bytes': '1067'}, {'name': 'Roff', 'bytes': '1012'}, {'name': 'Shell', 'bytes': '4159211'}]}
github
0
var doIt = require( './module-two' ).doIt; exports.doSomething = function( val ) { doIt( val ); };
{'content_hash': 'c347e2609f4003fcfe9d860eda5061f1', 'timestamp': '', 'source': 'github', 'line_count': 5, 'max_line_length': 42, 'avg_line_length': 20.2, 'alnum_prop': 0.6237623762376238, 'repo_name': 'DanTylkowski/gulp-dabbling', 'id': '7dea6c19261239af05d179c38019afd58b54ccbb', 'size': '101', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'z_play-along/src/assets/js/main.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '198'}, {'name': 'HTML', 'bytes': '49'}, {'name': 'JavaScript', 'bytes': '23024'}, {'name': 'Ruby', 'bytes': '201'}]}
github
0
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CardsAgainstIRC3.Game.DeckTypes { [DeckType("custom")] public class CustomDeck : IDeckType { private Random _random = new Random(); public Collection<Card> BlackCardList { get; set; } = new Collection<Card>(); public Collection<Card> WhiteCardList { get; set; } = new Collection<Card>(); public int BlackCards { get { return BlackCardList.Count; } } public string Description { get { return string.Format("Custom Deck: {0} white, {1} black", WhiteCards, BlackCards); } } public int WhiteCards { get { return WhiteCardList.Count; } } public Card TakeBlackCard() { int rnd = _random.Next(BlackCards); var card = BlackCardList[rnd]; BlackCardList.RemoveAt(rnd); return card; } public Card TakeWhiteCard() { int rnd = _random.Next(WhiteCards); var card = WhiteCardList[rnd]; WhiteCardList.RemoveAt(rnd); return card; } } }
{'content_hash': 'c3f21cf5471e9c35d68e5e6d78f0d398', 'timestamp': '', 'source': 'github', 'line_count': 69, 'max_line_length': 98, 'avg_line_length': 21.536231884057973, 'alnum_prop': 0.4979811574697174, 'repo_name': 'puckipedia/CardsAgainstIRC', 'id': 'f570a6308a480158f305c22c36fb6835c482a67b', 'size': '1488', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'CardsAgainstIRC3/Game/DeckTypes/CustomDeck.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '348'}, {'name': 'C#', 'bytes': '103631'}]}
github
0
package org.wso2.carbon.identity.scim.common.config; public class SCIMProviderDTO { private String providerId; private String userName; private String password; private String userEPURL; private String groupEPURL; private String bulkEPURL; public String getProviderId() { return providerId; } public void setProviderId(String providerId) { this.providerId = providerId; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getUserEPURL() { return userEPURL; } public void setUserEPURL(String userEPURL) { this.userEPURL = userEPURL; } public String getGroupEPURL() { return groupEPURL; } public void setGroupEPURL(String groupEPURL) { this.groupEPURL = groupEPURL; } public String getBulkEPURL() { return bulkEPURL; } public void setBulkEPURL(String bulkEPURL) { this.bulkEPURL = bulkEPURL; } }
{'content_hash': 'ecb314658f552fa001f88020fae5c610', 'timestamp': '', 'source': 'github', 'line_count': 60, 'max_line_length': 52, 'avg_line_length': 20.483333333333334, 'alnum_prop': 0.6427990235964198, 'repo_name': 'wattale/carbon-identity', 'id': 'e20e198135488a808302fde990d62a9be94d1039', 'size': '1896', 'binary': False, 'copies': '7', 'ref': 'refs/heads/IDENTITY-3054', 'path': 'components/identity/org.wso2.carbon.identity.scim.common/src/main/java/org/wso2/carbon/identity/scim/common/config/SCIMProviderDTO.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '180847'}, {'name': 'Java', 'bytes': '8655451'}, {'name': 'JavaScript', 'bytes': '282475'}, {'name': 'Thrift', 'bytes': '338'}, {'name': 'XML', 'bytes': '6484'}, {'name': 'XSLT', 'bytes': '951'}]}
github
0
package com.edp.myesper.engine; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import org.apache.log4j.Logger; public class SendQueryDB implements Runnable { private static final String DB_DRIVER = "com.mysql.jdbc.Driver"; final static Logger logger = Logger.getLogger(SendQueryDB.class); private Thread thread; private PropertiesLoader props; private String type; private int queryID; private String queryRedyID; private String queryStatement; private String MAC; private String timeStamp; public SendQueryDB(String type, int queryID, String queryRedyID, String queryStatement, String MAC, String timeStamp) { this.type = type; this.queryID = queryID; this.queryRedyID = queryRedyID; this.queryStatement = queryStatement; this.MAC = MAC; this.timeStamp = timeStamp; try { props = new PropertiesLoader(); } catch (IOException e) { // TODO Auto-generated catch block logger.error("Something went wrong", e); } props.getPropValues(); } public void insertRecordIntoTable() { Connection dbConnection = null; PreparedStatement preparedStatement = null; // SQL query text to insert into table String insertTableSQL = "INSERT INTO query" + "(SQL_KEY,TYPE, QUERY_ID, QUERY_REDYID, QUERY_TEXT, QUERY_MAC, TIMESTAMP) VALUES" + "(NULL,?,?,?,?,?,?)"; try { // go get connection to DB with DB_CONNECTION=IP and // DB_USER/DB_PASSWORD // frame.setTextConsole("\nTrying to send query information to // DB..."); dbConnection = getDBConnection(); preparedStatement = dbConnection.prepareStatement(insertTableSQL); // set variables to send to DB preparedStatement.setString(1, type); preparedStatement.setInt(2, queryID); preparedStatement.setString(3, queryRedyID); preparedStatement.setString(4, queryStatement); preparedStatement.setString(5, MAC); preparedStatement.setString(6, timeStamp); // execute insert SQL statement preparedStatement.executeUpdate(); logger.info("Query [" + queryID + "] was saved into 'query' table."); } catch (SQLException | NullPointerException e) { logger.error("Something went wrong", e); } finally { if (preparedStatement != null) { try { preparedStatement.close(); } catch (SQLException e) { // TODO Auto-generated catch block logger.error("Something went wrong", e); } } if (dbConnection != null) { try { dbConnection.close(); } catch (SQLException e) { // TODO Auto-generated catch block logger.error("Something went wrong", e); } } } } private Connection getDBConnection() { // Connects app to DB. Connection is only checked when data is sent Connection dbConnection = null; try { Class.forName(DB_DRIVER); String db_url = "jdbc:mysql://" + props.getDbIP() + ":" + props.getDbPort() + "/esper"; dbConnection = DriverManager.getConnection(db_url, props.getDbUser(), props.getDbPass()); return dbConnection; } catch (SQLException | ClassNotFoundException e) { logger.error("Something went wrong", e); } return dbConnection; } public void start() { if (thread == null) { thread = new Thread(this); thread.start(); } } public void stop() { try { if (thread != null) { thread.interrupt(); } } catch (Exception e) { logger.error("Something went wrong", e); } } @Override public void run() { try { insertRecordIntoTable(); } catch (NullPointerException e) { logger.error("Something went wrong", e); } } }
{'content_hash': '4fd0d10afc108b1c6b99962d2c7a9f36', 'timestamp': '', 'source': 'github', 'line_count': 133, 'max_line_length': 100, 'avg_line_length': 27.097744360902254, 'alnum_prop': 0.6928412874583796, 'repo_name': 'fms-santos/redy_realtime', 'id': 'b3f10db7a7b0b82e9a9ef09be98ae8564fe0ef90', 'size': '3604', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/com/edp/myesper/engine/SendQueryDB.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '82180'}]}
github
0
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ /* * This code was generated by https://github.com/googleapis/google-api-java-client-services/ * Modify at your own risk. */ package com.google.api.services.cloudfunctions.v2.model; /** * Location of the source in an archive file in Google Cloud Storage. * * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Functions API. For a detailed explanation see: * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> * </p> * * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class StorageSource extends com.google.api.client.json.GenericJson { /** * Google Cloud Storage bucket containing the source (see [Bucket Name * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String bucket; /** * Google Cloud Storage generation for the object. If the generation is omitted, the latest * generation will be used. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long generation; /** * Google Cloud Storage object containing the source. This object must be a gzipped archive file * (`.tar.gz`) containing source to build. * The value may be {@code null}. */ @com.google.api.client.util.Key("object") private java.lang.String object__; /** * Google Cloud Storage bucket containing the source (see [Bucket Name * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). * @return value or {@code null} for none */ public java.lang.String getBucket() { return bucket; } /** * Google Cloud Storage bucket containing the source (see [Bucket Name * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). * @param bucket bucket or {@code null} for none */ public StorageSource setBucket(java.lang.String bucket) { this.bucket = bucket; return this; } /** * Google Cloud Storage generation for the object. If the generation is omitted, the latest * generation will be used. * @return value or {@code null} for none */ public java.lang.Long getGeneration() { return generation; } /** * Google Cloud Storage generation for the object. If the generation is omitted, the latest * generation will be used. * @param generation generation or {@code null} for none */ public StorageSource setGeneration(java.lang.Long generation) { this.generation = generation; return this; } /** * Google Cloud Storage object containing the source. This object must be a gzipped archive file * (`.tar.gz`) containing source to build. * @return value or {@code null} for none */ public java.lang.String getObject() { return object__; } /** * Google Cloud Storage object containing the source. This object must be a gzipped archive file * (`.tar.gz`) containing source to build. * @param object__ object__ or {@code null} for none */ public StorageSource setObject(java.lang.String object__) { this.object__ = object__; return this; } @Override public StorageSource set(String fieldName, Object value) { return (StorageSource) super.set(fieldName, value); } @Override public StorageSource clone() { return (StorageSource) super.clone(); } }
{'content_hash': '853192026429c552067623d112cb0d7e', 'timestamp': '', 'source': 'github', 'line_count': 123, 'max_line_length': 182, 'avg_line_length': 34.00813008130081, 'alnum_prop': 0.7066698541716472, 'repo_name': 'googleapis/google-api-java-client-services', 'id': '1d2d35ef7898ae149f7a0570a2cd8fbb6e9b90d9', 'size': '4183', 'binary': False, 'copies': '2', 'ref': 'refs/heads/main', 'path': 'clients/google-api-services-cloudfunctions/v2/1.31.0/com/google/api/services/cloudfunctions/v2/model/StorageSource.java', 'mode': '33188', 'license': 'apache-2.0', 'language': []}
github
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * This page shows the actual folder path. --> <html> <head> <title>Folder path</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="browser.css" type="text/css" rel="stylesheet"> <script type="text/javascript"> // Automatically detect the correct document.domain (#1919). (function() { var d = document.domain ; while ( true ) { // Test if we can access a parent property. try { var test = window.top.document.domain ; break ; } catch( e ) {} // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... d = d.replace( /.*?(?:\.|$)/, '' ) ; if ( d.length == 0 ) break ; // It was not able to detect the domain. try { document.domain = d ; } catch (e) { break ; } } })() ; function SetCurrentFolder( resourceType, folderPath ) { document.getElementById('tdName').innerHTML = folderPath ; } window.onload = function() { window.parent.IsLoadedActualFolder = true ; } </script> </head> <body> <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td> <button style="WIDTH: 100%" type="button"> <table cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td><img height="32" alt="" src="images/FolderOpened32.gif" width="32"></td> <td>&nbsp;</td> <td id="tdName" width="100%" nowrap class="ActualFolder">/</td> <td>&nbsp;</td> <td><img height="8" src="images/ButtonArrow.gif" width="12" alt=""></td> <td>&nbsp;</td> </tr> </table> </button> </td> </tr> </table> </body> </html>
{'content_hash': '3d3ee47f8eeef0361ecd6d372e8ed55c', 'timestamp': '', 'source': 'github', 'line_count': 95, 'max_line_length': 90, 'avg_line_length': 25.50526315789474, 'alnum_prop': 0.5848122162608337, 'repo_name': 'cunhafernando/antoniofarias', 'id': 'ca574554cf6ca9fb1d208caf2187642be229ca0c', 'size': '2423', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'afadmin/includes/fileuploader/browser/frmactualfolder.html', 'mode': '33261', 'license': 'apache-2.0', 'language': [{'name': 'ApacheConf', 'bytes': '556'}, {'name': 'CSS', 'bytes': '67967'}, {'name': 'HTML', 'bytes': '65549'}, {'name': 'JavaScript', 'bytes': '286444'}, {'name': 'PHP', 'bytes': '2135477'}]}
github
0
package org.jhipster.store.config; import io.github.jhipster.config.JHipsterProperties; import io.github.jhipster.config.metrics.SpectatorLogMetricWriter; import com.netflix.spectator.api.Registry; import org.springframework.boot.actuate.autoconfigure.ExportMetricReader; import org.springframework.boot.actuate.autoconfigure.ExportMetricWriter; import org.springframework.boot.actuate.metrics.writer.MetricWriter; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.cloud.netflix.metrics.spectator.SpectatorMetricReader; import com.codahale.metrics.JmxReporter; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.Slf4jReporter; import com.codahale.metrics.health.HealthCheckRegistry; import com.codahale.metrics.jvm.*; import com.ryantenney.metrics.spring.config.annotation.EnableMetrics; import com.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.*; import javax.annotation.PostConstruct; import java.lang.management.ManagementFactory; import java.util.concurrent.TimeUnit; @Configuration @EnableMetrics(proxyTargetClass = true) public class MetricsConfiguration extends MetricsConfigurerAdapter { private static final String PROP_METRIC_REG_JVM_MEMORY = "jvm.memory"; private static final String PROP_METRIC_REG_JVM_GARBAGE = "jvm.garbage"; private static final String PROP_METRIC_REG_JVM_THREADS = "jvm.threads"; private static final String PROP_METRIC_REG_JVM_FILES = "jvm.files"; private static final String PROP_METRIC_REG_JVM_BUFFERS = "jvm.buffers"; private final Logger log = LoggerFactory.getLogger(MetricsConfiguration.class); private MetricRegistry metricRegistry = new MetricRegistry(); private HealthCheckRegistry healthCheckRegistry = new HealthCheckRegistry(); private final JHipsterProperties jHipsterProperties; public MetricsConfiguration(JHipsterProperties jHipsterProperties) { this.jHipsterProperties = jHipsterProperties; } @Override @Bean public MetricRegistry getMetricRegistry() { return metricRegistry; } @Override @Bean public HealthCheckRegistry getHealthCheckRegistry() { return healthCheckRegistry; } @PostConstruct public void init() { log.debug("Registering JVM gauges"); metricRegistry.register(PROP_METRIC_REG_JVM_MEMORY, new MemoryUsageGaugeSet()); metricRegistry.register(PROP_METRIC_REG_JVM_GARBAGE, new GarbageCollectorMetricSet()); metricRegistry.register(PROP_METRIC_REG_JVM_THREADS, new ThreadStatesGaugeSet()); metricRegistry.register(PROP_METRIC_REG_JVM_FILES, new FileDescriptorRatioGauge()); metricRegistry.register(PROP_METRIC_REG_JVM_BUFFERS, new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer())); if (jHipsterProperties.getMetrics().getJmx().isEnabled()) { log.debug("Initializing Metrics JMX reporting"); JmxReporter jmxReporter = JmxReporter.forRegistry(metricRegistry).build(); jmxReporter.start(); } if (jHipsterProperties.getMetrics().getLogs().isEnabled()) { log.info("Initializing Metrics Log reporting"); final Slf4jReporter reporter = Slf4jReporter.forRegistry(metricRegistry) .outputTo(LoggerFactory.getLogger("metrics")) .convertRatesTo(TimeUnit.SECONDS) .convertDurationsTo(TimeUnit.MILLISECONDS) .build(); reporter.start(jHipsterProperties.getMetrics().getLogs().getReportFrequency(), TimeUnit.SECONDS); } } /* Spectator metrics log reporting */ @Bean @ConditionalOnProperty("jhipster.logging.spectator-metrics.enabled") @ExportMetricReader public SpectatorMetricReader SpectatorMetricReader(Registry registry) { log.info("Initializing Spectator Metrics Log reporting"); return new SpectatorMetricReader(registry); } @Bean @ConditionalOnProperty("jhipster.logging.spectator-metrics.enabled") @ExportMetricWriter MetricWriter metricWriter() { return new SpectatorLogMetricWriter(); } }
{'content_hash': '7c9d116577f183723062632f4be42007', 'timestamp': '', 'source': 'github', 'line_count': 100, 'max_line_length': 130, 'avg_line_length': 42.74, 'alnum_prop': 0.756200280767431, 'repo_name': 'oktadeveloper/jhipster-microservices-example', 'id': 'ab4f860d71238a6cf7877e621bf35155fd401315', 'size': '4274', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'store/src/main/java/org/jhipster/store/config/MetricsConfiguration.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '157654'}, {'name': 'Dockerfile', 'bytes': '1841'}, {'name': 'HTML', 'bytes': '225426'}, {'name': 'Java', 'bytes': '628198'}, {'name': 'JavaScript', 'bytes': '32191'}, {'name': 'Scala', 'bytes': '13145'}, {'name': 'TypeScript', 'bytes': '375008'}]}
github
0
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:dropdown', 'Unit | Service | dropdown', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { var service = this.subject(); assert.ok(service); });
{'content_hash': 'e15857a567535025d762af2819f0ccf8', 'timestamp': '', 'source': 'github', 'line_count': 12, 'max_line_length': 61, 'avg_line_length': 28.083333333333332, 'alnum_prop': 0.6735905044510386, 'repo_name': 'ivanvanderbyl/flood-dropdown', 'id': '73d66037c981e825a6193df895c591c0d37c21dc', 'size': '337', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'tests/unit/services/dropdown-test.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '9833'}, {'name': 'HTML', 'bytes': '3204'}, {'name': 'JavaScript', 'bytes': '41639'}]}
github
0
cask "mycloud" do version :latest sha256 :no_check url "https://desktop-client-installer-server-mac.prod.mdl.swisscom.ch/myCloud%20Desktop%20installer.pkg", verified: "desktop-client-installer-server-mac.prod.mdl.swisscom.ch/" name "Swisscom myCloud Desktop" desc "Swiss cloud storage desktop app" homepage "https://desktop.mycloud.ch/" # pkg cannot be installed automatically installer manual: "myCloud Desktop installer.pkg" uninstall pkgutil: "com.github.tornaia.desktop-client", login_item: "myCloudDesktop", quit: "ch.swisscom.mycloud.desktop.finder", signal: ["TERM", "ch.swisscom.mycloud.desktop"] zap trash: [ "~/Library/Application Support/myCloudDesktop", "~/Library/Preferences/ch.swisscom.mycloud.desktop.plist", "~/Library/Preferences/ch.swisscom.mycloud.desktop.helper.plist", ] end
{'content_hash': 'b6fbdd23ff0ee83388d1c4b6005d30d0', 'timestamp': '', 'source': 'github', 'line_count': 24, 'max_line_length': 107, 'avg_line_length': 37.083333333333336, 'alnum_prop': 0.7044943820224719, 'repo_name': 'singingwolfboy/homebrew-cask', 'id': '05d02d6c8ae16596c93986e2a1b81361049e0cea', 'size': '890', 'binary': False, 'copies': '14', 'ref': 'refs/heads/master', 'path': 'Casks/mycloud.rb', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'Dockerfile', 'bytes': '249'}, {'name': 'Python', 'bytes': '3630'}, {'name': 'Ruby', 'bytes': '2609960'}, {'name': 'Shell', 'bytes': '32035'}]}
github
0
require 'abstract_unit' ActionController::Base.helpers_path = File.expand_path('../../../fixtures/helpers', __FILE__) module AbstractController module Testing class ControllerWithHelpers < AbstractController::Base include AbstractController::Helpers include AbstractController::Rendering include ActionView::Rendering def with_module render :inline => "Module <%= included_method %>" end end module HelperyTest def included_method "Included" end end class AbstractHelpers < ControllerWithHelpers helper(HelperyTest) do def helpery_test "World" end end helper :abc def with_block render :inline => "Hello <%= helpery_test %>" end def with_symbol render :inline => "I respond to bare_a: <%= respond_to?(:bare_a) %>" end end class ::HelperyTestController < AbstractHelpers clear_helpers end class AbstractHelpersBlock < ControllerWithHelpers helper do include AbstractController::Testing::HelperyTest end end class AbstractInvalidHelpers < AbstractHelpers include ActionController::Helpers path = File.expand_path('../../../fixtures/helpers_missing', __FILE__) $:.unshift(path) self.helpers_path = path end class TestHelpers < ActiveSupport::TestCase def setup @controller = AbstractHelpers.new end def test_helpers_with_block @controller.process(:with_block) assert_equal "Hello World", @controller.response_body end def test_helpers_with_module @controller.process(:with_module) assert_equal "Module Included", @controller.response_body end def test_helpers_with_symbol @controller.process(:with_symbol) assert_equal "I respond to bare_a: true", @controller.response_body end def test_declare_missing_helper e = assert_raise AbstractController::Helpers::MissingHelperError do AbstractHelpers.helper :missing end assert_equal "helpers/missing_helper.rb", e.path end def test_helpers_with_module_through_block @controller = AbstractHelpersBlock.new @controller.process(:with_module) assert_equal "Module Included", @controller.response_body end end class ClearHelpersTest < ActiveSupport::TestCase def setup @controller = HelperyTestController.new end def test_clears_up_previous_helpers @controller.process(:with_symbol) assert_equal "I respond to bare_a: false", @controller.response_body end def test_includes_controller_default_helper @controller.process(:with_block) assert_equal "Hello Default", @controller.response_body end end class InvalidHelpersTest < ActiveSupport::TestCase def test_controller_raise_error_about_real_require_problem e = assert_raise(LoadError) { AbstractInvalidHelpers.helper(:invalid_require) } assert_equal "No such file to load -- very_invalid_file_name", e.message end def test_controller_raise_error_about_missing_helper e = assert_raise(AbstractController::Helpers::MissingHelperError) { AbstractInvalidHelpers.helper(:missing) } assert_equal "Missing helper file helpers/missing_helper.rb", e.message end def test_missing_helper_error_has_the_right_path e = assert_raise(AbstractController::Helpers::MissingHelperError) { AbstractInvalidHelpers.helper(:missing) } assert_equal "helpers/missing_helper.rb", e.path end end end end
{'content_hash': 'c8d1facab204dec2b7342bb9ad0fc533', 'timestamp': '', 'source': 'github', 'line_count': 127, 'max_line_length': 117, 'avg_line_length': 29.1496062992126, 'alnum_prop': 0.662344678552134, 'repo_name': 'vassilevsky/rails', 'id': '7d346e917d1bac44190cec0e579fe79bc8fe460a', 'size': '3702', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'actionview/test/actionpack/abstract/helper_test.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '126797'}, {'name': 'CoffeeScript', 'bytes': '11722'}, {'name': 'E', 'bytes': '9519'}, {'name': 'HTML', 'bytes': '193118'}, {'name': 'JavaScript', 'bytes': '8239'}, {'name': 'Ruby', 'bytes': '10032472'}, {'name': 'Yacc', 'bytes': '965'}]}
github
0
#ifndef __CASS_BUFFER_HPP_INCLUDED__ #define __CASS_BUFFER_HPP_INCLUDED__ #include "ref_counted.hpp" #include "serialization.hpp" #include <uv.h> #include <vector> namespace cass { class Buffer { public: Buffer() : size_(0) { } Buffer(const char* data, size_t size) : size_(size) { if (size > FIXED_BUFFER_SIZE) { RefBuffer* buffer = RefBuffer::create(size); buffer->inc_ref(); memcpy(buffer->data(), data, size); data_.buffer = buffer; } else if (size > 0){ memcpy(data_.fixed, data, size); } } explicit Buffer(size_t size) : size_(size) { if (size > FIXED_BUFFER_SIZE) { RefBuffer* buffer = RefBuffer::create(size); buffer->inc_ref(); data_.buffer = buffer; } } Buffer(const Buffer& buf) : size_(0) { copy(buf); } Buffer& operator=(const Buffer& buf) { copy(buf); return *this; } ~Buffer() { if (size_ > FIXED_BUFFER_SIZE) { data_.buffer->dec_ref(); } } size_t encode_byte(size_t offset, uint8_t value) { assert(offset + sizeof(uint8_t) <= static_cast<size_t>(size_)); cass::encode_byte(data() + offset, value); return offset + sizeof(uint8_t); } size_t encode_uint16(size_t offset, uint16_t value) { assert(offset + sizeof(uint16_t) <= static_cast<size_t>(size_)); cass::encode_uint16(data() + offset, value); return offset + sizeof(uint16_t); } size_t encode_int16(size_t offset, int16_t value) { assert(offset + sizeof(int16_t) <= static_cast<size_t>(size_)); cass::encode_int16(data() + offset, value); return offset + sizeof(int16_t); } size_t encode_int32(size_t offset, int32_t value) { assert(offset + sizeof(int32_t) <= static_cast<size_t>(size_)); cass::encode_int32(data() + offset, value); return offset + sizeof(int32_t); } size_t encode_int64(size_t offset, int64_t value) { assert(offset + sizeof(int64_t) <= static_cast<size_t>(size_)); cass::encode_int64(data() + offset, value); return offset + sizeof(int64_t); } size_t encode_float(size_t offset, float value) { assert(offset + sizeof(float) <= static_cast<size_t>(size_)); cass::encode_float(data() + offset, value); return offset + sizeof(float); } size_t encode_double(size_t offset, double value) { assert(offset + sizeof(double) <= static_cast<size_t>(size_)); cass::encode_double(data() + offset, value); return offset + sizeof(double); } size_t encode_long_string(size_t offset, const char* value, int32_t size) { size_t pos = encode_int32(offset, size); return copy(pos, value, size); } size_t encode_bytes(size_t offset, const char* value, int32_t size) { size_t pos = encode_int32(offset, size); if (size > 0) { return copy(pos, value, size); } return pos; } size_t encode_string(size_t offset, const char* value, uint16_t size) { size_t pos = encode_uint16(offset, size); return copy(pos, value, size); } size_t encode_string_list(size_t offset, const std::vector<std::string>& value) { size_t pos = encode_uint16(offset, value.size()); for (std::vector<std::string>::const_iterator it = value.begin(), end = value.end(); it != end; ++it) { pos = encode_string(pos, it->data(), it->size()); } return pos; } size_t encode_string_map(size_t offset, const std::map<std::string, std::string>& value) { size_t pos = encode_uint16(offset, value.size()); for (std::map<std::string, std::string>::const_iterator it = value.begin(); it != value.end(); ++it) { pos = encode_string(pos, it->first.c_str(), it->first.size()); pos = encode_string(pos, it->second.c_str(), it->second.size()); } return pos; } size_t encode_uuid(size_t offset, CassUuid value) { assert(offset + sizeof(CassUuid) <= static_cast<size_t>(size_)); cass::encode_uuid(data() + offset, value); return offset + sizeof(CassUuid); } size_t copy(size_t offset, const char* value, size_t size) { assert(offset + size <= static_cast<size_t>(size_)); memcpy(data() + offset, value, size); return offset + size; } size_t copy(size_t offset, const uint8_t* source, size_t size) { return copy(offset, reinterpret_cast<const char*>(source), size); } char* data() { return size_ > FIXED_BUFFER_SIZE ? static_cast<RefBuffer*>(data_.buffer)->data() : data_.fixed; } const char* data() const { return size_ > FIXED_BUFFER_SIZE ? static_cast<RefBuffer*>(data_.buffer)->data() : data_.fixed; } size_t size() const { return size_; } private: // Enough space to avoid extra allocations for most of the basic types static const size_t FIXED_BUFFER_SIZE = 16; private: void copy(const Buffer& buf) { RefBuffer* temp = data_.buffer; if (buf.size_ > FIXED_BUFFER_SIZE) { buf.data_.buffer->inc_ref(); data_.buffer = buf.data_.buffer; } else if (buf.size_ > 0) { memcpy(data_.fixed, buf.data_.fixed, buf.size_); } if (size_ > FIXED_BUFFER_SIZE) { temp->dec_ref(); } size_ = buf.size_; } union { char fixed[FIXED_BUFFER_SIZE]; RefBuffer* buffer; } data_; size_t size_; }; typedef std::vector<Buffer> BufferVec; } // namespace cass #endif
{'content_hash': '8baff92f6bca877e8289a990076dc5c9', 'timestamp': '', 'source': 'github', 'line_count': 201, 'max_line_length': 92, 'avg_line_length': 26.5273631840796, 'alnum_prop': 0.6095273818454614, 'repo_name': 'Teino1978-Corp/cpp-driver', 'id': 'd33b29d6728fd0a8e391505c9bee74c3a95a9b20', 'size': '5911', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'src/buffer.hpp', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '65875'}, {'name': 'C', 'bytes': '291561'}, {'name': 'C++', 'bytes': '1382540'}, {'name': 'CMake', 'bytes': '55987'}, {'name': 'Makefile', 'bytes': '1052'}, {'name': 'Ruby', 'bytes': '572'}, {'name': 'Shell', 'bytes': '2553'}]}
github
0
.. include:: ../../../en/api-reference/bluetooth/esp_bt_device.rst
{'content_hash': '178c837bc84e11ba36c3d2601218cc38', 'timestamp': '', 'source': 'github', 'line_count': 1, 'max_line_length': 66, 'avg_line_length': 66.0, 'alnum_prop': 0.6666666666666666, 'repo_name': 'mashaoze/esp-idf', 'id': '9bd127aa5d9233221b699f2251d03fc00ccf1409', 'size': '66', 'binary': False, 'copies': '5', 'ref': 'refs/heads/master', 'path': 'docs/zh_CN/api-reference/bluetooth/esp_bt_device.rst', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Assembly', 'bytes': '142861'}, {'name': 'C', 'bytes': '22799712'}, {'name': 'C++', 'bytes': '1390945'}, {'name': 'CMake', 'bytes': '136271'}, {'name': 'Inno Setup', 'bytes': '8670'}, {'name': 'Lex', 'bytes': '7270'}, {'name': 'Makefile', 'bytes': '123250'}, {'name': 'Objective-C', 'bytes': '41763'}, {'name': 'Perl', 'bytes': '15204'}, {'name': 'Python', 'bytes': '701810'}, {'name': 'Shell', 'bytes': '66203'}, {'name': 'Yacc', 'bytes': '15875'}]}
github
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>V8 API Reference Guide for node.js v0.4.6 - v0.4.7: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">V8 API Reference Guide for node.js v0.4.6 - v0.4.7 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_data.html">Data</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">v8::Data Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="classv8_1_1_data.html">v8::Data</a>, including all inherited members.</p> <table class="directory"> </table></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Aug 11 2015 23:47:06 for V8 API Reference Guide for node.js v0.4.6 - v0.4.7 by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>
{'content_hash': '4980005b7ce15332a3279f563104bb75', 'timestamp': '', 'source': 'github', 'line_count': 106, 'max_line_length': 154, 'avg_line_length': 41.943396226415096, 'alnum_prop': 0.6408007197480882, 'repo_name': 'v8-dox/v8-dox.github.io', 'id': '758e731a4b389ffe6497a1dfbc3d05a262dbdda4', 'size': '4446', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': '6b5a703/html/classv8_1_1_data-members.html', 'mode': '33188', 'license': 'mit', 'language': []}
github
0
package s2 import ( "bytes" "fmt" "io" "math" "sort" "strconv" "strings" "github.com/golang/geo/r1" "github.com/golang/geo/r2" "github.com/golang/geo/r3" "github.com/golang/geo/s1" ) // CellID uniquely identifies a cell in the S2 cell decomposition. // The most significant 3 bits encode the face number (0-5). The // remaining 61 bits encode the position of the center of this cell // along the Hilbert curve on that face. The zero value and the value // (1<<64)-1 are invalid cell IDs. The first compares less than any // valid cell ID, the second as greater than any valid cell ID. // // Sequentially increasing cell IDs follow a continuous space-filling curve // over the entire sphere. They have the following properties: // // - The ID of a cell at level k consists of a 3-bit face number followed // by k bit pairs that recursively select one of the four children of // each cell. The next bit is always 1, and all other bits are 0. // Therefore, the level of a cell is determined by the position of its // lowest-numbered bit that is turned on (for a cell at level k, this // position is 2 * (maxLevel - k)). // // - The ID of a parent cell is at the midpoint of the range of IDs spanned // by its children (or by its descendants at any level). // // Leaf cells are often used to represent points on the unit sphere, and // this type provides methods for converting directly between these two // representations. For cells that represent 2D regions rather than // discrete point, it is better to use Cells. type CellID uint64 // SentinelCellID is an invalid cell ID guaranteed to be larger than any // valid cell ID. It is used primarily by ShapeIndex. The value is also used // by some S2 types when encoding data. // Note that the sentinel's RangeMin == RangeMax == itself. const SentinelCellID = CellID(^uint64(0)) // sortCellIDs sorts the slice of CellIDs in place. func sortCellIDs(ci []CellID) { sort.Sort(cellIDs(ci)) } // cellIDs implements the Sort interface for slices of CellIDs. type cellIDs []CellID func (c cellIDs) Len() int { return len(c) } func (c cellIDs) Swap(i, j int) { c[i], c[j] = c[j], c[i] } func (c cellIDs) Less(i, j int) bool { return c[i] < c[j] } // TODO(dsymonds): Some of these constants should probably be exported. const ( faceBits = 3 numFaces = 6 // This is the number of levels needed to specify a leaf cell. maxLevel = 30 // The extra position bit (61 rather than 60) lets us encode each cell as its // Hilbert curve position at the cell center (which is halfway along the // portion of the Hilbert curve that fills that cell). posBits = 2*maxLevel + 1 // The maximum index of a valid leaf cell plus one. The range of valid leaf // cell indices is [0..maxSize-1]. maxSize = 1 << maxLevel wrapOffset = uint64(numFaces) << posBits ) // CellIDFromFacePosLevel returns a cell given its face in the range // [0,5], the 61-bit Hilbert curve position pos within that face, and // the level in the range [0,maxLevel]. The position in the cell ID // will be truncated to correspond to the Hilbert curve position at // the center of the returned cell. func CellIDFromFacePosLevel(face int, pos uint64, level int) CellID { return CellID(uint64(face)<<posBits + pos | 1).Parent(level) } // CellIDFromFace returns the cell corresponding to a given S2 cube face. func CellIDFromFace(face int) CellID { return CellID((uint64(face) << posBits) + lsbForLevel(0)) } // CellIDFromLatLng returns the leaf cell containing ll. func CellIDFromLatLng(ll LatLng) CellID { return cellIDFromPoint(PointFromLatLng(ll)) } // CellIDFromToken returns a cell given a hex-encoded string of its uint64 ID. func CellIDFromToken(s string) CellID { if len(s) > 16 { return CellID(0) } n, err := strconv.ParseUint(s, 16, 64) if err != nil { return CellID(0) } // Equivalent to right-padding string with zeros to 16 characters. if len(s) < 16 { n = n << (4 * uint(16-len(s))) } return CellID(n) } // ToToken returns a hex-encoded string of the uint64 cell id, with leading // zeros included but trailing zeros stripped. func (ci CellID) ToToken() string { s := strings.TrimRight(fmt.Sprintf("%016x", uint64(ci)), "0") if len(s) == 0 { return "X" } return s } // IsValid reports whether ci represents a valid cell. func (ci CellID) IsValid() bool { return ci.Face() < numFaces && (ci.lsb()&0x1555555555555555 != 0) } // Face returns the cube face for this cell ID, in the range [0,5]. func (ci CellID) Face() int { return int(uint64(ci) >> posBits) } // Pos returns the position along the Hilbert curve of this cell ID, in the range [0,2^posBits-1]. func (ci CellID) Pos() uint64 { return uint64(ci) & (^uint64(0) >> faceBits) } // Level returns the subdivision level of this cell ID, in the range [0, maxLevel]. func (ci CellID) Level() int { return maxLevel - findLSBSetNonZero64(uint64(ci))>>1 } // IsLeaf returns whether this cell ID is at the deepest level; // that is, the level at which the cells are smallest. func (ci CellID) IsLeaf() bool { return uint64(ci)&1 != 0 } // ChildPosition returns the child position (0..3) of this cell's // ancestor at the given level, relative to its parent. The argument // should be in the range 1..kMaxLevel. For example, // ChildPosition(1) returns the position of this cell's level-1 // ancestor within its top-level face cell. func (ci CellID) ChildPosition(level int) int { return int(uint64(ci)>>uint64(2*(maxLevel-level)+1)) & 3 } // lsbForLevel returns the lowest-numbered bit that is on for cells at the given level. func lsbForLevel(level int) uint64 { return 1 << uint64(2*(maxLevel-level)) } // Parent returns the cell at the given level, which must be no greater than the current level. func (ci CellID) Parent(level int) CellID { lsb := lsbForLevel(level) return CellID((uint64(ci) & -lsb) | lsb) } // immediateParent is cheaper than Parent, but assumes !ci.isFace(). func (ci CellID) immediateParent() CellID { nlsb := CellID(ci.lsb() << 2) return (ci & -nlsb) | nlsb } // isFace returns whether this is a top-level (face) cell. func (ci CellID) isFace() bool { return uint64(ci)&(lsbForLevel(0)-1) == 0 } // lsb returns the least significant bit that is set. func (ci CellID) lsb() uint64 { return uint64(ci) & -uint64(ci) } // Children returns the four immediate children of this cell. // If ci is a leaf cell, it returns four identical cells that are not the children. func (ci CellID) Children() [4]CellID { var ch [4]CellID lsb := CellID(ci.lsb()) ch[0] = ci - lsb + lsb>>2 lsb >>= 1 ch[1] = ch[0] + lsb ch[2] = ch[1] + lsb ch[3] = ch[2] + lsb return ch } func sizeIJ(level int) int { return 1 << uint(maxLevel-level) } // EdgeNeighbors returns the four cells that are adjacent across the cell's four edges. // Edges 0, 1, 2, 3 are in the down, right, up, left directions in the face space. // All neighbors are guaranteed to be distinct. func (ci CellID) EdgeNeighbors() [4]CellID { level := ci.Level() size := sizeIJ(level) f, i, j, _ := ci.faceIJOrientation() return [4]CellID{ cellIDFromFaceIJWrap(f, i, j-size).Parent(level), cellIDFromFaceIJWrap(f, i+size, j).Parent(level), cellIDFromFaceIJWrap(f, i, j+size).Parent(level), cellIDFromFaceIJWrap(f, i-size, j).Parent(level), } } // VertexNeighbors returns the neighboring cellIDs with vertex closest to this cell at the given level. // (Normally there are four neighbors, but the closest vertex may only have three neighbors if it is one of // the 8 cube vertices.) func (ci CellID) VertexNeighbors(level int) []CellID { halfSize := sizeIJ(level + 1) size := halfSize << 1 f, i, j, _ := ci.faceIJOrientation() var isame, jsame bool var ioffset, joffset int if i&halfSize != 0 { ioffset = size isame = (i + size) < maxSize } else { ioffset = -size isame = (i - size) >= 0 } if j&halfSize != 0 { joffset = size jsame = (j + size) < maxSize } else { joffset = -size jsame = (j - size) >= 0 } results := []CellID{ ci.Parent(level), cellIDFromFaceIJSame(f, i+ioffset, j, isame).Parent(level), cellIDFromFaceIJSame(f, i, j+joffset, jsame).Parent(level), } if isame || jsame { results = append(results, cellIDFromFaceIJSame(f, i+ioffset, j+joffset, isame && jsame).Parent(level)) } return results } // AllNeighbors returns all neighbors of this cell at the given level. Two // cells X and Y are neighbors if their boundaries intersect but their // interiors do not. In particular, two cells that intersect at a single // point are neighbors. Note that for cells adjacent to a face vertex, the // same neighbor may be returned more than once. There could be up to eight // neighbors including the diagonal ones that share the vertex. // // This requires level >= ci.Level(). func (ci CellID) AllNeighbors(level int) []CellID { var neighbors []CellID face, i, j, _ := ci.faceIJOrientation() // Find the coordinates of the lower left-hand leaf cell. We need to // normalize (i,j) to a known position within the cell because level // may be larger than this cell's level. size := sizeIJ(ci.Level()) i &= -size j &= -size nbrSize := sizeIJ(level) // We compute the top-bottom, left-right, and diagonal neighbors in one // pass. The loop test is at the end of the loop to avoid 32-bit overflow. for k := -nbrSize; ; k += nbrSize { var sameFace bool if k < 0 { sameFace = (j+k >= 0) } else if k >= size { sameFace = (j+k < maxSize) } else { sameFace = true // Top and bottom neighbors. neighbors = append(neighbors, cellIDFromFaceIJSame(face, i+k, j-nbrSize, j-size >= 0).Parent(level)) neighbors = append(neighbors, cellIDFromFaceIJSame(face, i+k, j+size, j+size < maxSize).Parent(level)) } // Left, right, and diagonal neighbors. neighbors = append(neighbors, cellIDFromFaceIJSame(face, i-nbrSize, j+k, sameFace && i-size >= 0).Parent(level)) neighbors = append(neighbors, cellIDFromFaceIJSame(face, i+size, j+k, sameFace && i+size < maxSize).Parent(level)) if k >= size { break } } return neighbors } // RangeMin returns the minimum CellID that is contained within this cell. func (ci CellID) RangeMin() CellID { return CellID(uint64(ci) - (ci.lsb() - 1)) } // RangeMax returns the maximum CellID that is contained within this cell. func (ci CellID) RangeMax() CellID { return CellID(uint64(ci) + (ci.lsb() - 1)) } // Contains returns true iff the CellID contains oci. func (ci CellID) Contains(oci CellID) bool { return uint64(ci.RangeMin()) <= uint64(oci) && uint64(oci) <= uint64(ci.RangeMax()) } // Intersects returns true iff the CellID intersects oci. func (ci CellID) Intersects(oci CellID) bool { return uint64(oci.RangeMin()) <= uint64(ci.RangeMax()) && uint64(oci.RangeMax()) >= uint64(ci.RangeMin()) } // String returns the string representation of the cell ID in the form "1/3210". func (ci CellID) String() string { if !ci.IsValid() { return "Invalid: " + strconv.FormatInt(int64(ci), 16) } var b bytes.Buffer b.WriteByte("012345"[ci.Face()]) // values > 5 will have been picked off by !IsValid above b.WriteByte('/') for level := 1; level <= ci.Level(); level++ { b.WriteByte("0123"[ci.ChildPosition(level)]) } return b.String() } // cellIDFromString returns a CellID from a string in the form "1/3210". func cellIDFromString(s string) CellID { level := len(s) - 2 if level < 0 || level > maxLevel { return CellID(0) } face := int(s[0] - '0') if face < 0 || face > 5 || s[1] != '/' { return CellID(0) } id := CellIDFromFace(face) for i := 2; i < len(s); i++ { childPos := s[i] - '0' if childPos < 0 || childPos > 3 { return CellID(0) } id = id.Children()[childPos] } return id } // Point returns the center of the s2 cell on the sphere as a Point. // The maximum directional error in Point (compared to the exact // mathematical result) is 1.5 * dblEpsilon radians, and the maximum length // error is 2 * dblEpsilon (the same as Normalize). func (ci CellID) Point() Point { return Point{ci.rawPoint().Normalize()} } // LatLng returns the center of the s2 cell on the sphere as a LatLng. func (ci CellID) LatLng() LatLng { return LatLngFromPoint(Point{ci.rawPoint()}) } // ChildBegin returns the first child in a traversal of the children of this cell, in Hilbert curve order. // // for ci := c.ChildBegin(); ci != c.ChildEnd(); ci = ci.Next() { // ... // } func (ci CellID) ChildBegin() CellID { ol := ci.lsb() return CellID(uint64(ci) - ol + ol>>2) } // ChildBeginAtLevel returns the first cell in a traversal of children a given level deeper than this cell, in // Hilbert curve order. The given level must be no smaller than the cell's level. // See ChildBegin for example use. func (ci CellID) ChildBeginAtLevel(level int) CellID { return CellID(uint64(ci) - ci.lsb() + lsbForLevel(level)) } // ChildEnd returns the first cell after a traversal of the children of this cell in Hilbert curve order. // The returned cell may be invalid. func (ci CellID) ChildEnd() CellID { ol := ci.lsb() return CellID(uint64(ci) + ol + ol>>2) } // ChildEndAtLevel returns the first cell after the last child in a traversal of children a given level deeper // than this cell, in Hilbert curve order. // The given level must be no smaller than the cell's level. // The returned cell may be invalid. func (ci CellID) ChildEndAtLevel(level int) CellID { return CellID(uint64(ci) + ci.lsb() + lsbForLevel(level)) } // Next returns the next cell along the Hilbert curve. // This is expected to be used with ChildBegin and ChildEnd, // or ChildBeginAtLevel and ChildEndAtLevel. func (ci CellID) Next() CellID { return CellID(uint64(ci) + ci.lsb()<<1) } // Prev returns the previous cell along the Hilbert curve. func (ci CellID) Prev() CellID { return CellID(uint64(ci) - ci.lsb()<<1) } // NextWrap returns the next cell along the Hilbert curve, wrapping from last to // first as necessary. This should not be used with ChildBegin and ChildEnd. func (ci CellID) NextWrap() CellID { n := ci.Next() if uint64(n) < wrapOffset { return n } return CellID(uint64(n) - wrapOffset) } // PrevWrap returns the previous cell along the Hilbert curve, wrapping around from // first to last as necessary. This should not be used with ChildBegin and ChildEnd. func (ci CellID) PrevWrap() CellID { p := ci.Prev() if uint64(p) < wrapOffset { return p } return CellID(uint64(p) + wrapOffset) } // AdvanceWrap advances or retreats the indicated number of steps along the // Hilbert curve at the current level and returns the new position. The // position wraps between the first and last faces as necessary. func (ci CellID) AdvanceWrap(steps int64) CellID { if steps == 0 { return ci } // We clamp the number of steps if necessary to ensure that we do not // advance past the End() or before the Begin() of this level. shift := uint(2*(maxLevel-ci.Level()) + 1) if steps < 0 { if min := -int64(uint64(ci) >> shift); steps < min { wrap := int64(wrapOffset >> shift) steps %= wrap if steps < min { steps += wrap } } } else { // Unlike Advance(), we don't want to return End(level). if max := int64((wrapOffset - uint64(ci)) >> shift); steps > max { wrap := int64(wrapOffset >> shift) steps %= wrap if steps > max { steps -= wrap } } } // If steps is negative, then shifting it left has undefined behavior. // Cast to uint64 for a 2's complement answer. return CellID(uint64(ci) + (uint64(steps) << shift)) } // Encode encodes the CellID. func (ci CellID) Encode(w io.Writer) error { e := &encoder{w: w} ci.encode(e) return e.err } func (ci CellID) encode(e *encoder) { e.writeUint64(uint64(ci)) } // Decode decodes the CellID. func (ci *CellID) Decode(r io.Reader) error { d := &decoder{r: asByteReader(r)} ci.decode(d) return d.err } func (ci *CellID) decode(d *decoder) { *ci = CellID(d.readUint64()) } // TODO: the methods below are not exported yet. Settle on the entire API design // before doing this. Do we want to mirror the C++ one as closely as possible? // distanceFromBegin returns the number of steps along the Hilbert curve that // this cell is from the first node in the S2 hierarchy at our level. (i.e., // FromFace(0).ChildBeginAtLevel(ci.Level())). This is analogous to Pos(), but // for this cell's level. // The return value is always non-negative. func (ci CellID) distanceFromBegin() int64 { return int64(ci >> uint64(2*(maxLevel-ci.Level())+1)) } // rawPoint returns an unnormalized r3 vector from the origin through the center // of the s2 cell on the sphere. func (ci CellID) rawPoint() r3.Vector { face, si, ti := ci.faceSiTi() return faceUVToXYZ(face, stToUV((0.5/maxSize)*float64(si)), stToUV((0.5/maxSize)*float64(ti))) } // faceSiTi returns the Face/Si/Ti coordinates of the center of the cell. func (ci CellID) faceSiTi() (face int, si, ti uint32) { face, i, j, _ := ci.faceIJOrientation() delta := 0 if ci.IsLeaf() { delta = 1 } else { if (i^(int(ci)>>2))&1 != 0 { delta = 2 } } return face, uint32(2*i + delta), uint32(2*j + delta) } // faceIJOrientation uses the global lookupIJ table to unfiddle the bits of ci. func (ci CellID) faceIJOrientation() (f, i, j, orientation int) { f = ci.Face() orientation = f & swapMask nbits := maxLevel - 7*lookupBits // first iteration // Each iteration maps 8 bits of the Hilbert curve position into // 4 bits of "i" and "j". The lookup table transforms a key of the // form "ppppppppoo" to a value of the form "iiiijjjjoo", where the // letters [ijpo] represents bits of "i", "j", the Hilbert curve // position, and the Hilbert curve orientation respectively. // // On the first iteration we need to be careful to clear out the bits // representing the cube face. for k := 7; k >= 0; k-- { orientation += (int(uint64(ci)>>uint64(k*2*lookupBits+1)) & ((1 << uint(2*nbits)) - 1)) << 2 orientation = lookupIJ[orientation] i += (orientation >> (lookupBits + 2)) << uint(k*lookupBits) j += ((orientation >> 2) & ((1 << lookupBits) - 1)) << uint(k*lookupBits) orientation &= (swapMask | invertMask) nbits = lookupBits // following iterations } // The position of a non-leaf cell at level "n" consists of a prefix of // 2*n bits that identifies the cell, followed by a suffix of // 2*(maxLevel-n)+1 bits of the form 10*. If n==maxLevel, the suffix is // just "1" and has no effect. Otherwise, it consists of "10", followed // by (maxLevel-n-1) repetitions of "00", followed by "0". The "10" has // no effect, while each occurrence of "00" has the effect of reversing // the swapMask bit. if ci.lsb()&0x1111111111111110 != 0 { orientation ^= swapMask } return } // cellIDFromFaceIJ returns a leaf cell given its cube face (range 0..5) and IJ coordinates. func cellIDFromFaceIJ(f, i, j int) CellID { // Note that this value gets shifted one bit to the left at the end // of the function. n := uint64(f) << (posBits - 1) // Alternating faces have opposite Hilbert curve orientations; this // is necessary in order for all faces to have a right-handed // coordinate system. bits := f & swapMask // Each iteration maps 4 bits of "i" and "j" into 8 bits of the Hilbert // curve position. The lookup table transforms a 10-bit key of the form // "iiiijjjjoo" to a 10-bit value of the form "ppppppppoo", where the // letters [ijpo] denote bits of "i", "j", Hilbert curve position, and // Hilbert curve orientation respectively. for k := 7; k >= 0; k-- { mask := (1 << lookupBits) - 1 bits += ((i >> uint(k*lookupBits)) & mask) << (lookupBits + 2) bits += ((j >> uint(k*lookupBits)) & mask) << 2 bits = lookupPos[bits] n |= uint64(bits>>2) << (uint(k) * 2 * lookupBits) bits &= (swapMask | invertMask) } return CellID(n*2 + 1) } func cellIDFromFaceIJWrap(f, i, j int) CellID { // Convert i and j to the coordinates of a leaf cell just beyond the // boundary of this face. This prevents 32-bit overflow in the case // of finding the neighbors of a face cell. i = clampInt(i, -1, maxSize) j = clampInt(j, -1, maxSize) // We want to wrap these coordinates onto the appropriate adjacent face. // The easiest way to do this is to convert the (i,j) coordinates to (x,y,z) // (which yields a point outside the normal face boundary), and then call // xyzToFaceUV to project back onto the correct face. // // The code below converts (i,j) to (si,ti), and then (si,ti) to (u,v) using // the linear projection (u=2*s-1 and v=2*t-1). (The code further below // converts back using the inverse projection, s=0.5*(u+1) and t=0.5*(v+1). // Any projection would work here, so we use the simplest.) We also clamp // the (u,v) coordinates so that the point is barely outside the // [-1,1]x[-1,1] face rectangle, since otherwise the reprojection step // (which divides by the new z coordinate) might change the other // coordinates enough so that we end up in the wrong leaf cell. const scale = 1.0 / maxSize limit := math.Nextafter(1, 2) u := math.Max(-limit, math.Min(limit, scale*float64((i<<1)+1-maxSize))) v := math.Max(-limit, math.Min(limit, scale*float64((j<<1)+1-maxSize))) // Find the leaf cell coordinates on the adjacent face, and convert // them to a cell id at the appropriate level. f, u, v = xyzToFaceUV(faceUVToXYZ(f, u, v)) return cellIDFromFaceIJ(f, stToIJ(0.5*(u+1)), stToIJ(0.5*(v+1))) } func cellIDFromFaceIJSame(f, i, j int, sameFace bool) CellID { if sameFace { return cellIDFromFaceIJ(f, i, j) } return cellIDFromFaceIJWrap(f, i, j) } // ijToSTMin converts the i- or j-index of a leaf cell to the minimum corresponding // s- or t-value contained by that cell. The argument must be in the range // [0..2**30], i.e. up to one position beyond the normal range of valid leaf // cell indices. func ijToSTMin(i int) float64 { return float64(i) / float64(maxSize) } // stToIJ converts value in ST coordinates to a value in IJ coordinates. func stToIJ(s float64) int { return clampInt(int(math.Floor(maxSize*s)), 0, maxSize-1) } // cellIDFromPoint returns a leaf cell containing point p. Usually there is // exactly one such cell, but for points along the edge of a cell, any // adjacent cell may be (deterministically) chosen. This is because // s2.CellIDs are considered to be closed sets. The returned cell will // always contain the given point, i.e. // // CellFromPoint(p).ContainsPoint(p) // // is always true. func cellIDFromPoint(p Point) CellID { f, u, v := xyzToFaceUV(r3.Vector{p.X, p.Y, p.Z}) i := stToIJ(uvToST(u)) j := stToIJ(uvToST(v)) return cellIDFromFaceIJ(f, i, j) } // ijLevelToBoundUV returns the bounds in (u,v)-space for the cell at the given // level containing the leaf cell with the given (i,j)-coordinates. func ijLevelToBoundUV(i, j, level int) r2.Rect { cellSize := sizeIJ(level) xLo := i & -cellSize yLo := j & -cellSize return r2.Rect{ X: r1.Interval{ Lo: stToUV(ijToSTMin(xLo)), Hi: stToUV(ijToSTMin(xLo + cellSize)), }, Y: r1.Interval{ Lo: stToUV(ijToSTMin(yLo)), Hi: stToUV(ijToSTMin(yLo + cellSize)), }, } } // Constants related to the bit mangling in the Cell ID. const ( lookupBits = 4 swapMask = 0x01 invertMask = 0x02 ) // The following lookup tables are used to convert efficiently between an // (i,j) cell index and the corresponding position along the Hilbert curve. // // lookupPos maps 4 bits of "i", 4 bits of "j", and 2 bits representing the // orientation of the current cell into 8 bits representing the order in which // that subcell is visited by the Hilbert curve, plus 2 bits indicating the // new orientation of the Hilbert curve within that subcell. (Cell // orientations are represented as combination of swapMask and invertMask.) // // lookupIJ is an inverted table used for mapping in the opposite // direction. // // We also experimented with looking up 16 bits at a time (14 bits of position // plus 2 of orientation) but found that smaller lookup tables gave better // performance. (2KB fits easily in the primary cache.) var ( ijToPos = [4][4]int{ {0, 1, 3, 2}, // canonical order {0, 3, 1, 2}, // axes swapped {2, 3, 1, 0}, // bits inverted {2, 1, 3, 0}, // swapped & inverted } posToIJ = [4][4]int{ {0, 1, 3, 2}, // canonical order: (0,0), (0,1), (1,1), (1,0) {0, 2, 3, 1}, // axes swapped: (0,0), (1,0), (1,1), (0,1) {3, 2, 0, 1}, // bits inverted: (1,1), (1,0), (0,0), (0,1) {3, 1, 0, 2}, // swapped & inverted: (1,1), (0,1), (0,0), (1,0) } posToOrientation = [4]int{swapMask, 0, 0, invertMask | swapMask} lookupIJ [1 << (2*lookupBits + 2)]int lookupPos [1 << (2*lookupBits + 2)]int ) func init() { initLookupCell(0, 0, 0, 0, 0, 0) initLookupCell(0, 0, 0, swapMask, 0, swapMask) initLookupCell(0, 0, 0, invertMask, 0, invertMask) initLookupCell(0, 0, 0, swapMask|invertMask, 0, swapMask|invertMask) } // initLookupCell initializes the lookupIJ table at init time. func initLookupCell(level, i, j, origOrientation, pos, orientation int) { if level == lookupBits { ij := (i << lookupBits) + j lookupPos[(ij<<2)+origOrientation] = (pos << 2) + orientation lookupIJ[(pos<<2)+origOrientation] = (ij << 2) + orientation return } level++ i <<= 1 j <<= 1 pos <<= 2 r := posToIJ[orientation] initLookupCell(level, i+(r[0]>>1), j+(r[0]&1), origOrientation, pos, orientation^posToOrientation[0]) initLookupCell(level, i+(r[1]>>1), j+(r[1]&1), origOrientation, pos+1, orientation^posToOrientation[1]) initLookupCell(level, i+(r[2]>>1), j+(r[2]&1), origOrientation, pos+2, orientation^posToOrientation[2]) initLookupCell(level, i+(r[3]>>1), j+(r[3]&1), origOrientation, pos+3, orientation^posToOrientation[3]) } // CommonAncestorLevel returns the level of the common ancestor of the two S2 CellIDs. func (ci CellID) CommonAncestorLevel(other CellID) (level int, ok bool) { bits := uint64(ci ^ other) if bits < ci.lsb() { bits = ci.lsb() } if bits < other.lsb() { bits = other.lsb() } msbPos := findMSBSetNonZero64(bits) if msbPos > 60 { return 0, false } return (60 - msbPos) >> 1, true } // Advance advances or retreats the indicated number of steps along the // Hilbert curve at the current level, and returns the new position. The // position is never advanced past End() or before Begin(). func (ci CellID) Advance(steps int64) CellID { if steps == 0 { return ci } // We clamp the number of steps if necessary to ensure that we do not // advance past the End() or before the Begin() of this level. Note that // minSteps and maxSteps always fit in a signed 64-bit integer. stepShift := uint(2*(maxLevel-ci.Level()) + 1) if steps < 0 { minSteps := -int64(uint64(ci) >> stepShift) if steps < minSteps { steps = minSteps } } else { maxSteps := int64((wrapOffset + ci.lsb() - uint64(ci)) >> stepShift) if steps > maxSteps { steps = maxSteps } } return ci + CellID(steps)<<stepShift } // centerST return the center of the CellID in (s,t)-space. func (ci CellID) centerST() r2.Point { _, si, ti := ci.faceSiTi() return r2.Point{siTiToST(si), siTiToST(ti)} } // sizeST returns the edge length of this CellID in (s,t)-space at the given level. func (ci CellID) sizeST(level int) float64 { return ijToSTMin(sizeIJ(level)) } // boundST returns the bound of this CellID in (s,t)-space. func (ci CellID) boundST() r2.Rect { s := ci.sizeST(ci.Level()) return r2.RectFromCenterSize(ci.centerST(), r2.Point{s, s}) } // centerUV returns the center of this CellID in (u,v)-space. Note that // the center of the cell is defined as the point at which it is recursively // subdivided into four children; in general, it is not at the midpoint of // the (u,v) rectangle covered by the cell. func (ci CellID) centerUV() r2.Point { _, si, ti := ci.faceSiTi() return r2.Point{stToUV(siTiToST(si)), stToUV(siTiToST(ti))} } // boundUV returns the bound of this CellID in (u,v)-space. func (ci CellID) boundUV() r2.Rect { _, i, j, _ := ci.faceIJOrientation() return ijLevelToBoundUV(i, j, ci.Level()) } // expandEndpoint returns a new u-coordinate u' such that the distance from the // line u=u' to the given edge (u,v0)-(u,v1) is exactly the given distance // (which is specified as the sine of the angle corresponding to the distance). func expandEndpoint(u, maxV, sinDist float64) float64 { // This is based on solving a spherical right triangle, similar to the // calculation in Cap.RectBound. // Given an edge of the form (u,v0)-(u,v1), let maxV = max(abs(v0), abs(v1)). sinUShift := sinDist * math.Sqrt((1+u*u+maxV*maxV)/(1+u*u)) cosUShift := math.Sqrt(1 - sinUShift*sinUShift) // The following is an expansion of tan(atan(u) + asin(sinUShift)). return (cosUShift*u + sinUShift) / (cosUShift - sinUShift*u) } // expandedByDistanceUV returns a rectangle expanded in (u,v)-space so that it // contains all points within the given distance of the boundary, and return the // smallest such rectangle. If the distance is negative, then instead shrink this // rectangle so that it excludes all points within the given absolute distance // of the boundary. // // Distances are measured *on the sphere*, not in (u,v)-space. For example, // you can use this method to expand the (u,v)-bound of an CellID so that // it contains all points within 5km of the original cell. You can then // test whether a point lies within the expanded bounds like this: // // if u, v, ok := faceXYZtoUV(face, point); ok && bound.ContainsPoint(r2.Point{u,v}) { ... } // // Limitations: // // - Because the rectangle is drawn on one of the six cube-face planes // (i.e., {x,y,z} = +/-1), it can cover at most one hemisphere. This // limits the maximum amount that a rectangle can be expanded. For // example, CellID bounds can be expanded safely by at most 45 degrees // (about 5000 km on the Earth's surface). // // - The implementation is not exact for negative distances. The resulting // rectangle will exclude all points within the given distance of the // boundary but may be slightly smaller than necessary. func expandedByDistanceUV(uv r2.Rect, distance s1.Angle) r2.Rect { // Expand each of the four sides of the rectangle just enough to include all // points within the given distance of that side. (The rectangle may be // expanded by a different amount in (u,v)-space on each side.) maxU := math.Max(math.Abs(uv.X.Lo), math.Abs(uv.X.Hi)) maxV := math.Max(math.Abs(uv.Y.Lo), math.Abs(uv.Y.Hi)) sinDist := math.Sin(float64(distance)) return r2.Rect{ X: r1.Interval{expandEndpoint(uv.X.Lo, maxV, -sinDist), expandEndpoint(uv.X.Hi, maxV, sinDist)}, Y: r1.Interval{expandEndpoint(uv.Y.Lo, maxU, -sinDist), expandEndpoint(uv.Y.Hi, maxU, sinDist)}} } // MaxTile returns the largest cell with the same RangeMin such that // RangeMax < limit.RangeMin. It returns limit if no such cell exists. // This method can be used to generate a small set of CellIDs that covers // a given range (a tiling). This example shows how to generate a tiling // for a semi-open range of leaf cells [start, limit): // // for id := start.MaxTile(limit); id != limit; id = id.Next().MaxTile(limit)) { ... } // // Note that in general the cells in the tiling will be of different sizes; // they gradually get larger (near the middle of the range) and then // gradually get smaller as limit is approached. func (ci CellID) MaxTile(limit CellID) CellID { start := ci.RangeMin() if start >= limit.RangeMin() { return limit } if ci.RangeMax() >= limit { // The cell is too large, shrink it. Note that when generating coverings // of CellID ranges, this loop usually executes only once. Also because // ci.RangeMin() < limit.RangeMin(), we will always exit the loop by the // time we reach a leaf cell. for { ci = ci.Children()[0] if ci.RangeMax() < limit { break } } return ci } // The cell may be too small. Grow it if necessary. Note that generally // this loop only iterates once. for !ci.isFace() { parent := ci.immediateParent() if parent.RangeMin() != start || parent.RangeMax() >= limit { break } ci = parent } return ci } // centerFaceSiTi returns the (face, si, ti) coordinates of the center of the cell. // Note that although (si,ti) coordinates span the range [0,2**31] in general, // the cell center coordinates are always in the range [1,2**31-1] and // therefore can be represented using a signed 32-bit integer. func (ci CellID) centerFaceSiTi() (face, si, ti int) { // First we compute the discrete (i,j) coordinates of a leaf cell contained // within the given cell. Given that cells are represented by the Hilbert // curve position corresponding at their center, it turns out that the cell // returned by faceIJOrientation is always one of two leaf cells closest // to the center of the cell (unless the given cell is a leaf cell itself, // in which case there is only one possibility). // // Given a cell of size s >= 2 (i.e. not a leaf cell), and letting (imin, // jmin) be the coordinates of its lower left-hand corner, the leaf cell // returned by faceIJOrientation is either (imin + s/2, jmin + s/2) // (imin + s/2 - 1, jmin + s/2 - 1). The first case is the one we want. // We can distinguish these two cases by looking at the low bit of i or // j. In the second case the low bit is one, unless s == 2 (i.e. the // level just above leaf cells) in which case the low bit is zero. // // In the code below, the expression ((i ^ (int(id) >> 2)) & 1) is true // if we are in the second case described above. face, i, j, _ := ci.faceIJOrientation() delta := 0 if ci.IsLeaf() { delta = 1 } else if (int64(i)^(int64(ci)>>2))&1 == 1 { delta = 2 } // Note that (2 * {i,j} + delta) will never overflow a 32-bit integer. return face, 2*i + delta, 2*j + delta }
{'content_hash': '155b4b189ec86c391597bedd88a1ded5', 'timestamp': '', 'source': 'github', 'line_count': 930, 'max_line_length': 110, 'avg_line_length': 36.310752688172045, 'alnum_prop': 0.6887678047913767, 'repo_name': 'FrontierRobotics/pathfinder', 'id': 'c6cbaf2db72a22cd1413a2b49def1e89a6e4a9a7', 'size': '34379', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'vendor/github.com/golang/geo/s2/cellid.go', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C++', 'bytes': '3636'}]}
github
0
Simple app to track what to pack for the hospital when you are pregnant. https://itunes.apple.com/app/hospital-bag-packing-list/id1001274742 ![](assets/screenshot.png) # Libraries - [FMDB](https://github.com/ccgus/fmdb) - [KLCPopup](https://github.com/jmascia/KLCPopup) - [SloppySwiper](https://github.com/fastred/SloppySwiper) - [SVProgressHUD](https://github.com/TransitApp/SVProgressHUD) # Design - App Icon: [Rohan Gupta](https://thenounproject.com/term/luggage/40180/) # Contact - https://github.com/dkhamsing - https://twitter.com/dkhamsing # License Hospital Bag is available under the MIT license. See the LICENSE file for more info.
{'content_hash': 'ef179d8cd540b4a1613942cc44f3c920', 'timestamp': '', 'source': 'github', 'line_count': 25, 'max_line_length': 84, 'avg_line_length': 26.2, 'alnum_prop': 0.749618320610687, 'repo_name': 'dkhamsing/hospital-bag', 'id': '556a396aca65a915bf48ee87cf2dbe01ab94c8dc', 'size': '671', 'binary': False, 'copies': '1', 'ref': 'refs/heads/1.0-wip', 'path': 'README.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '11289'}, {'name': 'JavaScript', 'bytes': '2555'}, {'name': 'Objective-C', 'bytes': '24043'}, {'name': 'Ruby', 'bytes': '1289'}]}
github
0
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Electron Starter</title> <link rel="stylesheet" href="index.css"> </head> <body> <div class="container"> <header> <h1>Electron Starter</h1> </header> <section class="main"></section> <footer></footer> </div> </body> </html>
{'content_hash': '75b850b9283e50e1299461e451ee6068', 'timestamp': '', 'source': 'github', 'line_count': 17, 'max_line_length': 44, 'avg_line_length': 20.235294117647058, 'alnum_prop': 0.5523255813953488, 'repo_name': 'lw7360/electron-starter', 'id': '437ca0036a77299475e6b7de645a704a5ac79f4b', 'size': '344', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'index.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '363'}, {'name': 'HTML', 'bytes': '344'}, {'name': 'JavaScript', 'bytes': '928'}]}
github
0